Switch FnSet to containing the ComparableFunction instead of a pointer to one.
[llvm.git] / configure
blobf53a7b643de46d589487036b5d8f06ea63b146fd
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.8svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248 else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
255 _ASEOF
256 }; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
275 (as_func_return () {
276 (exit $1)
278 as_func_success () {
279 as_func_return 0
281 as_func_failure () {
282 as_func_return 1
284 as_func_ret_success () {
285 return 0
287 as_func_ret_failure () {
288 return 1
291 exitcode=0
292 if as_func_success; then
294 else
295 exitcode=1
296 echo as_func_success failed.
299 if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
306 else
307 exitcode=1
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 else
319 exitcode=1
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
331 _ASEOF
332 }; then
333 break
338 done
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
365 (exit \$1)
367 as_func_success () {
368 as_func_return 0
370 as_func_failure () {
371 as_func_return 1
373 as_func_ret_success () {
374 return 0
376 as_func_ret_failure () {
377 return 1
380 exitcode=0
381 if as_func_success; then
383 else
384 exitcode=1
385 echo as_func_success failed.
388 if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
395 else
396 exitcode=1
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 else
408 exitcode=1
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
438 /[$]LINENO/=
439 ' <$as_myself |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
444 :lineno
446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 t loop
449 s/-\n.*//
450 ' >$as_me.lineno &&
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466 else
467 as_dirname=false
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
478 ECHO_N='-n';;
479 esac
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484 else
485 as_expr=false
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491 else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503 as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506 else
507 as_ln_s='cp -p'
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
528 else
529 as_executable_p=:
531 rm -f conf$$.file
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 # Initializations.
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
562 PACKAGE_NAME='llvm'
563 PACKAGE_TARNAME='-llvm-'
564 PACKAGE_VERSION='2.8svn'
565 PACKAGE_STRING='llvm 2.8svn'
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 build
645 build_cpu
646 build_vendor
647 build_os
648 host
649 host_cpu
650 host_vendor
651 host_os
652 target
653 target_cpu
654 target_vendor
655 target_os
657 HOST_OS
658 TARGET_OS
659 LINKALL
660 NOLINKALL
661 LLVM_ON_UNIX
662 LLVM_ON_WIN32
663 ARCH
664 ENDIAN
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
673 GREP
674 EGREP
675 LLVM_CROSS_COMPILING
676 BUILD_CC
677 BUILD_EXEEXT
678 BUILD_CXX
679 CVSBUILD
680 ENABLE_OPTIMIZED
681 ENABLE_PROFILING
682 DISABLE_ASSERTIONS
683 ENABLE_EXPENSIVE_CHECKS
684 EXPENSIVE_CHECKS
685 DEBUG_RUNTIME
686 DEBUG_SYMBOLS
688 TARGET_HAS_JIT
689 ENABLE_DOXYGEN
690 ENABLE_THREADS
691 ENABLE_PIC
692 ENABLE_SHARED
693 ENABLE_TIMESTAMPS
694 TARGETS_TO_BUILD
695 LLVM_ENUM_TARGETS
696 LLVM_ENUM_ASM_PRINTERS
697 LLVM_ENUM_ASM_PARSERS
698 LLVM_ENUM_DISASSEMBLERS
699 ENABLE_CBE_PRINTF_A
700 CLANGPATH
701 CLANGXXPATH
702 ENABLE_BUILT_CLANG
703 OPTIMIZE_OPTION
704 EXTRA_OPTIONS
705 BINUTILS_INCDIR
707 CXXFLAGS
708 ac_ct_CXX
710 ifGNUmake
711 LN_S
714 DATE
715 FIND
716 MKDIR
718 RANLIB
723 BINPWD
724 GRAPHVIZ
727 NEATO
728 TWOPI
729 CIRCO
731 DOTTY
732 PERL
733 HAVE_PERL
734 INSTALL_PROGRAM
735 INSTALL_SCRIPT
736 INSTALL_DATA
737 BZIP2
739 DOXYGEN
740 GROFF
741 GZIP
742 POD2HTML
743 POD2MAN
744 PDFROFF
745 RUNTEST
746 TCLSH
748 OCAMLC
749 OCAMLOPT
750 OCAMLDEP
751 OCAMLDOC
753 HAVE_LINK_VERSION_SCRIPT
754 INSTALL_LTDL_TRUE
755 INSTALL_LTDL_FALSE
756 CONVENIENCE_LTDL_TRUE
757 CONVENIENCE_LTDL_FALSE
758 LIBADD_DL
759 LLVMGCCCOMMAND
760 LLVMGXXCOMMAND
761 LLVMGCC
762 LLVMGXX
763 LLVMCC_OPTION
764 NO_VARIADIC_MACROS
765 NO_MISSING_FIELD_INITIALIZERS
766 USE_UDIS86
767 USE_OPROFILE
768 HAVE_PTHREAD
769 HUGE_VAL_SANITY
770 MMAP_FILE
771 LLVMCC1
772 LLVMCC1PLUS
773 LLVMGCCDIR
774 LLVMGCC_LANGS
775 SHLIBEXT
776 SHLIBPATH_VAR
777 LLVM_PREFIX
778 LLVM_BINDIR
779 LLVM_LIBDIR
780 LLVM_DATADIR
781 LLVM_DOCSDIR
782 LLVM_ETCDIR
783 LLVM_INCLUDEDIR
784 LLVM_INFODIR
785 LLVM_MANDIR
786 LLVM_CONFIGTIME
787 BINDINGS_TO_BUILD
788 ALL_BINDINGS
789 OCAML_LIBDIR
790 ENABLE_VISIBILITY_INLINES_HIDDEN
791 RPATH
792 RDYNAMIC
793 LIBOBJS
794 LTLIBOBJS'
795 ac_subst_files=''
796 ac_precious_vars='build_alias
797 host_alias
798 target_alias
800 CFLAGS
801 LDFLAGS
802 CPPFLAGS
805 CXXFLAGS
806 CCC'
807 ac_subdirs_all='projects/llvm-gcc
808 projects/test-suite
809 projects/llvm-test
810 projects/poolalloc
811 projects/llvm-poolalloc
812 projects/sample
813 projects/privbracket
814 projects/llvm-stacker
815 projects/llvm-reopt
816 projects/llvm-java
817 projects/llvm-tv
818 projects/safecode
819 projects/llvm-kernel'
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
826 cache_file=/dev/null
827 exec_prefix=NONE
828 no_create=
829 no_recursion=
830 prefix=NONE
831 program_prefix=NONE
832 program_suffix=NONE
833 program_transform_name=s,x,x,
834 silent=
835 site=
836 srcdir=
837 verbose=
838 x_includes=NONE
839 x_libraries=NONE
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
859 htmldir='${docdir}'
860 dvidir='${docdir}'
861 pdfdir='${docdir}'
862 psdir='${docdir}'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
867 ac_prev=
868 ac_dashdash=
869 for ac_option
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
874 ac_prev=
875 continue
878 case $ac_option in
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *) ac_optarg=yes ;;
881 esac
883 # Accept the important Cygnus configure options, so we can diagnose typos.
885 case $ac_dashdash$ac_option in
887 ac_dashdash=yes ;;
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 bindir=$ac_optarg ;;
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
906 --config-cache | -C)
907 cache_file=config.cache ;;
909 -datadir | --datadir | --datadi | --datad)
910 ac_prev=datadir ;;
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
921 -disable-* | --disable-*)
922 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
925 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926 { (exit 1); exit 1; }; }
927 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
928 eval enable_$ac_feature=no ;;
930 -docdir | --docdir | --docdi | --doc | --do)
931 ac_prev=docdir ;;
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 docdir=$ac_optarg ;;
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 ac_prev=dvidir ;;
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 dvidir=$ac_optarg ;;
940 -enable-* | --enable-*)
941 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
944 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945 { (exit 1); exit 1; }; }
946 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
947 eval enable_$ac_feature=\$ac_optarg ;;
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
960 with_gas=yes ;;
962 -help | --help | --hel | --he | -h)
963 ac_init_help=long ;;
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 ac_prev=htmldir ;;
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 | --ht=*)
978 htmldir=$ac_optarg ;;
980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 ac_prev=infodir ;;
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
992 -libdir | --libdir | --libdi | --libd)
993 ac_prev=libdir ;;
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 libdir=$ac_optarg ;;
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1009 -localstatedir | --localstatedir | --localstatedi | --localstated \
1010 | --localstate | --localstat | --localsta | --localst | --locals)
1011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014 localstatedir=$ac_optarg ;;
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 ac_prev=mandir ;;
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1023 with_fp=no ;;
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1027 no_create=yes ;;
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 no_recursion=yes ;;
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 ac_prev=prefix ;;
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 ac_prev=pdfdir ;;
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1083 -psdir | --psdir | --psdi | --psd | --ps)
1084 ac_prev=psdir ;;
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 psdir=$ac_optarg ;;
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1090 silent=yes ;;
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093 ac_prev=sbindir ;;
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095 | --sbi=* | --sb=*)
1096 sbindir=$ac_optarg ;;
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1101 | --sha | --sh)
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106 | --sha=* | --sh=*)
1107 sharedstatedir=$ac_optarg ;;
1109 -site | --site | --sit)
1110 ac_prev=site ;;
1111 -site=* | --site=* | --sit=*)
1112 site=$ac_optarg ;;
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115 ac_prev=srcdir ;;
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 verbose=yes ;;
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1137 -with-* | --with-*)
1138 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid package name: $ac_package" >&2
1142 { (exit 1); exit 1; }; }
1143 ac_package=`echo $ac_package| sed 's/-/_/g'`
1144 eval with_$ac_package=\$ac_optarg ;;
1146 -without-* | --without-*)
1147 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150 { echo "$as_me: error: invalid package name: $ac_package" >&2
1151 { (exit 1); exit 1; }; }
1152 ac_package=`echo $ac_package | sed 's/-/_/g'`
1153 eval with_$ac_package=no ;;
1155 --x)
1156 # Obsolete; use --with-x.
1157 with_x=yes ;;
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1173 -*) { echo "$as_me: error: unrecognized option: $ac_option
1174 Try \`$0 --help' for more information." >&2
1175 { (exit 1); exit 1; }; }
1178 *=*)
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1182 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1183 { (exit 1); exit 1; }; }
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1188 # FIXME: should be removed in autoconf 3.0.
1189 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1195 esac
1196 done
1198 if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200 { echo "$as_me: error: missing argument to $ac_option" >&2
1201 { (exit 1); exit 1; }; }
1204 # Be sure to have absolute directory names.
1205 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1210 eval ac_val=\$$ac_var
1211 case $ac_val in
1212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214 esac
1215 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216 { (exit 1); exit 1; }; }
1217 done
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1222 build=$build_alias
1223 host=$host_alias
1224 target=$target_alias
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
1230 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1233 cross_compiling=yes
1237 ac_tool_prefix=
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240 test "$silent" = yes && exec 6>/dev/null
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 { echo "$as_me: error: Working directory cannot be determined" >&2
1247 { (exit 1); exit 1; }; }
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249 { echo "$as_me: error: pwd does not report name of working directory" >&2
1250 { (exit 1); exit 1; }; }
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255 ac_srcdir_defaulted=yes
1256 # Try the directory containing this script, then the parent directory.
1257 ac_confdir=`$as_dirname -- "$0" ||
1258 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$0" : 'X\(//\)[^/]' \| \
1260 X"$0" : 'X\(//\)$' \| \
1261 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1262 echo X"$0" |
1263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264 s//\1/
1267 /^X\(\/\/\)[^/].*/{
1268 s//\1/
1271 /^X\(\/\/\)$/{
1272 s//\1/
1275 /^X\(\/\).*/{
1276 s//\1/
1279 s/.*/./; q'`
1280 srcdir=$ac_confdir
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1282 srcdir=..
1284 else
1285 ac_srcdir_defaulted=no
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290 { (exit 1); exit 1; }; }
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 ac_abs_confdir=`(
1294 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1295 { (exit 1); exit 1; }; }
1296 pwd)`
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1304 case $srcdir in
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 esac
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 done
1315 # Report the --help message.
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
1321 \`configure' configures llvm 2.8svn to adapt to many kinds of systems.
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1328 Defaults for the options are specified in brackets.
1330 Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 [PREFIX]
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1352 For better control, use the options below.
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1374 _ACEOF
1376 cat <<\_ACEOF
1378 System types:
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 --target=TARGET configure for building compilers for TARGET [HOST]
1382 _ACEOF
1385 if test -n "$ac_init_help"; then
1386 case $ac_init_help in
1387 short | recursive ) echo "Configuration of llvm 2.8svn:";;
1388 esac
1389 cat <<\_ACEOF
1391 Optional Features:
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1394 --enable-optimized Compile with optimizations enabled (default is NO)
1395 --enable-profiling Compile with profiling enabled (default is NO)
1396 --enable-assertions Compile with assertion checks enabled (default is
1397 YES)
1398 --enable-expensive-checks
1399 Compile with expensive debug checks enabled (default
1400 is NO)
1401 --enable-debug-runtime Build runtime libs with debug symbols (default is
1403 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1404 optimization is on and YES if it's off)
1405 --enable-jit Enable Just In Time Compiling (default is YES)
1406 --enable-doxygen Build doxygen documentation (default is NO)
1407 --enable-threads Use threads if available (default is YES)
1408 --enable-pic Build LLVM with Position Independent Code (default
1409 is YES)
1410 --enable-shared Build a shared library and link tools against it
1411 (default is NO)
1412 --enable-timestamps Enable embedding timestamp information in build
1413 (default is YES)
1414 --enable-targets Build specific host targets: all or
1415 target1,target2,... Valid targets are: host, x86,
1416 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1417 pic16, xcore, msp430, systemz, blackfin, cbe, and
1418 cpp (default=all)
1419 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1420 %a (default is YES)
1421 --enable-bindings Build specific language bindings:
1422 all,auto,none,{binding-name} (default=auto)
1423 --enable-libffi Check for the presence of libffi (default is NO)
1424 --enable-ltdl-install install libltdl
1426 Optional Packages:
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1429 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1430 searches PATH)
1431 --with-llvmgcc Specify location of llvm-gcc driver (default
1432 searches PATH)
1433 --with-llvmgxx Specify location of llvm-g++ driver (default
1434 searches PATH)
1435 --with-clang Specify location of clang compiler (default is
1436 --with-built-clang)
1437 --with-built-clang Use the compiled Clang as the LLVM compiler
1438 (default=check)
1439 --with-optimize-option Select the compiler options to use for optimized
1440 builds
1441 --with-extra-options Specify additional options to compile LLVM with
1442 --with-ocaml-libdir Specify install location for ocaml bindings (default
1443 is stdlib)
1444 --with-c-include-dirs Colon separated list of directories clang will
1445 search for headers
1446 --with-cxx-include-root Directory with the libstdc++ headers.
1447 --with-cxx-include-arch Architecture of the libstdc++ headers.
1448 --with-cxx-include-32bit-dir
1449 32 bit multilib dir.
1450 --with-cxx-include-64bit-dir
1451 64 bit multilib directory.
1452 --with-binutils-include Specify path to binutils/include/ containing
1453 plugin-api.h file for gold plugin.
1454 --with-tclinclude directory where tcl headers are
1455 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1456 clang, or none; default=check)
1457 --with-udis86=<path> Use udis86 external x86 disassembler library
1458 --with-oprofile=<prefix>
1459 Tell OProfile >= 0.9.4 how to symbolize JIT output
1461 Some influential environment variables:
1462 CC C compiler command
1463 CFLAGS C compiler flags
1464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
1466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
1468 CPP C preprocessor
1469 CXX C++ compiler command
1470 CXXFLAGS C++ compiler flags
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1475 Report bugs to <llvmbugs@cs.uiuc.edu>.
1476 _ACEOF
1477 ac_status=$?
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" || continue
1484 ac_builddir=.
1486 case "$ac_dir" in
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 esac ;;
1496 esac
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1502 case $srcdir in
1503 .) # We are building in place.
1504 ac_srcdir=.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1511 *) # Relative name.
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 esac
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1526 else
1527 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528 fi || ac_status=$?
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1530 done
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1535 cat <<\_ACEOF
1536 llvm configure 2.8svn
1537 generated by GNU Autoconf 2.60
1539 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1540 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1544 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1545 _ACEOF
1546 exit
1548 cat >config.log <<_ACEOF
1549 This file contains any messages produced by compilers while
1550 running configure, to aid debugging if configure makes a mistake.
1552 It was created by llvm $as_me 2.8svn, which was
1553 generated by GNU Autoconf 2.60. Invocation command line was
1555 $ $0 $@
1557 _ACEOF
1558 exec 5>>config.log
1560 cat <<_ASUNAME
1561 ## --------- ##
1562 ## Platform. ##
1563 ## --------- ##
1565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1574 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1578 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1582 _ASUNAME
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 for as_dir in $PATH
1587 IFS=$as_save_IFS
1588 test -z "$as_dir" && as_dir=.
1589 echo "PATH: $as_dir"
1590 done
1591 IFS=$as_save_IFS
1593 } >&5
1595 cat >&5 <<_ACEOF
1598 ## ----------- ##
1599 ## Core tests. ##
1600 ## ----------- ##
1602 _ACEOF
1605 # Keep a trace of the command line.
1606 # Strip out --no-create and --no-recursion so they do not pile up.
1607 # Strip out --silent because we don't want to record it for future runs.
1608 # Also quote any args containing shell meta-characters.
1609 # Make two passes to allow for proper duplicate-argument suppression.
1610 ac_configure_args=
1611 ac_configure_args0=
1612 ac_configure_args1=
1613 ac_must_keep_next=false
1614 for ac_pass in 1 2
1616 for ac_arg
1618 case $ac_arg in
1619 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621 | -silent | --silent | --silen | --sile | --sil)
1622 continue ;;
1623 *\'*)
1624 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1625 esac
1626 case $ac_pass in
1627 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1629 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1630 if test $ac_must_keep_next = true; then
1631 ac_must_keep_next=false # Got value, back to normal.
1632 else
1633 case $ac_arg in
1634 *=* | --config-cache | -C | -disable-* | --disable-* \
1635 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637 | -with-* | --with-* | -without-* | --without-* | --x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640 esac
1642 -* ) ac_must_keep_next=true ;;
1643 esac
1645 ac_configure_args="$ac_configure_args '$ac_arg'"
1647 esac
1648 done
1649 done
1650 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1653 # When interrupted or exit'd, cleanup temporary files, and complete
1654 # config.log. We remove comments because anyway the quotes in there
1655 # would cause problems or look ugly.
1656 # WARNING: Use '\'' to represent an apostrophe within the trap.
1657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658 trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1661 echo
1663 cat <<\_ASBOX
1664 ## ---------------- ##
1665 ## Cache variables. ##
1666 ## ---------------- ##
1667 _ASBOX
1668 echo
1669 # The following way of writing the cache mishandles newlines in values,
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1673 case $ac_val in #(
1674 *${as_nl}*)
1675 case $ac_var in #(
1676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1678 esac
1679 case $ac_var in #(
1680 _ | IFS | as_nl) ;; #(
1681 *) $as_unset $ac_var ;;
1682 esac ;;
1683 esac
1684 done
1685 (set) 2>&1 |
1686 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687 *${as_nl}ac_space=\ *)
1688 sed -n \
1689 "s/'\''/'\''\\\\'\'''\''/g;
1690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691 ;; #(
1693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1695 esac |
1696 sort
1698 echo
1700 cat <<\_ASBOX
1701 ## ----------------- ##
1702 ## Output variables. ##
1703 ## ----------------- ##
1704 _ASBOX
1705 echo
1706 for ac_var in $ac_subst_vars
1708 eval ac_val=\$$ac_var
1709 case $ac_val in
1710 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1711 esac
1712 echo "$ac_var='\''$ac_val'\''"
1713 done | sort
1714 echo
1716 if test -n "$ac_subst_files"; then
1717 cat <<\_ASBOX
1718 ## ------------------- ##
1719 ## File substitutions. ##
1720 ## ------------------- ##
1721 _ASBOX
1722 echo
1723 for ac_var in $ac_subst_files
1725 eval ac_val=\$$ac_var
1726 case $ac_val in
1727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728 esac
1729 echo "$ac_var='\''$ac_val'\''"
1730 done | sort
1731 echo
1734 if test -s confdefs.h; then
1735 cat <<\_ASBOX
1736 ## ----------- ##
1737 ## confdefs.h. ##
1738 ## ----------- ##
1739 _ASBOX
1740 echo
1741 cat confdefs.h
1742 echo
1744 test "$ac_signal" != 0 &&
1745 echo "$as_me: caught signal $ac_signal"
1746 echo "$as_me: exit $exit_status"
1747 } >&5
1748 rm -f core *.core core.conftest.* &&
1749 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1750 exit $exit_status
1752 for ac_signal in 1 2 13 15; do
1753 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1754 done
1755 ac_signal=0
1757 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1758 rm -f -r conftest* confdefs.h
1760 # Predefined preprocessor variables.
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_NAME "$PACKAGE_NAME"
1764 _ACEOF
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769 _ACEOF
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1774 _ACEOF
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_STRING "$PACKAGE_STRING"
1779 _ACEOF
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784 _ACEOF
1787 # Let the site file select an alternate cache file if it wants to.
1788 # Prefer explicitly selected file to automatically selected ones.
1789 if test -n "$CONFIG_SITE"; then
1790 set x "$CONFIG_SITE"
1791 elif test "x$prefix" != xNONE; then
1792 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1793 else
1794 set x "$ac_default_prefix/share/config.site" \
1795 "$ac_default_prefix/etc/config.site"
1797 shift
1798 for ac_site_file
1800 if test -r "$ac_site_file"; then
1801 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802 echo "$as_me: loading site script $ac_site_file" >&6;}
1803 sed 's/^/| /' "$ac_site_file" >&5
1804 . "$ac_site_file"
1806 done
1808 if test -r "$cache_file"; then
1809 # Some versions of bash will fail to source /dev/null (special
1810 # files actually), so we avoid doing that.
1811 if test -f "$cache_file"; then
1812 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813 echo "$as_me: loading cache $cache_file" >&6;}
1814 case $cache_file in
1815 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816 *) . "./$cache_file";;
1817 esac
1819 else
1820 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821 echo "$as_me: creating cache $cache_file" >&6;}
1822 >$cache_file
1825 # Check that the precious variables saved in the cache have kept the same
1826 # value.
1827 ac_cache_corrupted=false
1828 for ac_var in $ac_precious_vars; do
1829 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830 eval ac_new_set=\$ac_env_${ac_var}_set
1831 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832 eval ac_new_val=\$ac_env_${ac_var}_value
1833 case $ac_old_set,$ac_new_set in
1834 set,)
1835 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1837 ac_cache_corrupted=: ;;
1838 ,set)
1839 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1841 ac_cache_corrupted=: ;;
1842 ,);;
1844 if test "x$ac_old_val" != "x$ac_new_val"; then
1845 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1848 echo "$as_me: former value: $ac_old_val" >&2;}
1849 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1850 echo "$as_me: current value: $ac_new_val" >&2;}
1851 ac_cache_corrupted=:
1852 fi;;
1853 esac
1854 # Pass precious variables to config.status.
1855 if test "$ac_new_set" = set; then
1856 case $ac_new_val in
1857 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1858 *) ac_arg=$ac_var=$ac_new_val ;;
1859 esac
1860 case " $ac_configure_args " in
1861 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1862 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1863 esac
1865 done
1866 if $ac_cache_corrupted; then
1867 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871 { (exit 1); exit 1; }; }
1898 ac_ext=c
1899 ac_cpp='$CPP $CPPFLAGS'
1900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1906 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1914 ac_aux_dir=
1915 for ac_dir in autoconf "$srcdir"/autoconf; do
1916 if test -f "$ac_dir/install-sh"; then
1917 ac_aux_dir=$ac_dir
1918 ac_install_sh="$ac_aux_dir/install-sh -c"
1919 break
1920 elif test -f "$ac_dir/install.sh"; then
1921 ac_aux_dir=$ac_dir
1922 ac_install_sh="$ac_aux_dir/install.sh -c"
1923 break
1924 elif test -f "$ac_dir/shtool"; then
1925 ac_aux_dir=$ac_dir
1926 ac_install_sh="$ac_aux_dir/shtool install -c"
1927 break
1929 done
1930 if test -z "$ac_aux_dir"; then
1931 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933 { (exit 1); exit 1; }; }
1936 # These three variables are undocumented and unsupported,
1937 # and are intended to be withdrawn in a future Autoconf release.
1938 # They can cause serious problems if a builder's source tree is in a directory
1939 # whose full name contains unusual characters.
1940 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1941 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1942 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1946 if test ${srcdir} != "." ; then
1947 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1948 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950 { (exit 1); exit 1; }; }
1956 if test -d ${srcdir}/projects/llvm-gcc ; then
1957 subdirs="$subdirs projects/llvm-gcc"
1961 if test -d ${srcdir}/projects/test-suite ; then
1962 subdirs="$subdirs projects/test-suite"
1966 if test -d ${srcdir}/projects/llvm-test ; then
1967 subdirs="$subdirs projects/llvm-test"
1971 if test -d ${srcdir}/projects/poolalloc ; then
1972 subdirs="$subdirs projects/poolalloc"
1976 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1977 subdirs="$subdirs projects/llvm-poolalloc"
1981 for i in `ls ${srcdir}/projects`
1983 if test -d ${srcdir}/projects/${i} ; then
1984 case ${i} in
1985 sample) subdirs="$subdirs projects/sample"
1987 privbracket) subdirs="$subdirs projects/privbracket"
1989 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1991 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1993 llvm-java) subdirs="$subdirs projects/llvm-java"
1995 llvm-tv) subdirs="$subdirs projects/llvm-tv"
1997 safecode) subdirs="$subdirs projects/safecode"
1999 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2001 llvm-gcc) ;;
2002 test-suite) ;;
2003 llvm-test) ;;
2004 poolalloc) ;;
2005 llvm-poolalloc) ;;
2007 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2008 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2010 esac
2012 done
2015 # Make sure we can run config.sub.
2016 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2017 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2018 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2019 { (exit 1); exit 1; }; }
2021 { echo "$as_me:$LINENO: checking build system type" >&5
2022 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2023 if test "${ac_cv_build+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026 ac_build_alias=$build_alias
2027 test "x$ac_build_alias" = x &&
2028 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2029 test "x$ac_build_alias" = x &&
2030 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2031 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2032 { (exit 1); exit 1; }; }
2033 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2034 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2035 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2036 { (exit 1); exit 1; }; }
2039 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2040 echo "${ECHO_T}$ac_cv_build" >&6; }
2041 case $ac_cv_build in
2042 *-*-*) ;;
2043 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2044 echo "$as_me: error: invalid value of canonical build" >&2;}
2045 { (exit 1); exit 1; }; };;
2046 esac
2047 build=$ac_cv_build
2048 ac_save_IFS=$IFS; IFS='-'
2049 set x $ac_cv_build
2050 shift
2051 build_cpu=$1
2052 build_vendor=$2
2053 shift; shift
2054 # Remember, the first character of IFS is used to create $*,
2055 # except with old shells:
2056 build_os=$*
2057 IFS=$ac_save_IFS
2058 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2061 { echo "$as_me:$LINENO: checking host system type" >&5
2062 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2063 if test "${ac_cv_host+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066 if test "x$host_alias" = x; then
2067 ac_cv_host=$ac_cv_build
2068 else
2069 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2070 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2071 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2072 { (exit 1); exit 1; }; }
2076 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2077 echo "${ECHO_T}$ac_cv_host" >&6; }
2078 case $ac_cv_host in
2079 *-*-*) ;;
2080 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2081 echo "$as_me: error: invalid value of canonical host" >&2;}
2082 { (exit 1); exit 1; }; };;
2083 esac
2084 host=$ac_cv_host
2085 ac_save_IFS=$IFS; IFS='-'
2086 set x $ac_cv_host
2087 shift
2088 host_cpu=$1
2089 host_vendor=$2
2090 shift; shift
2091 # Remember, the first character of IFS is used to create $*,
2092 # except with old shells:
2093 host_os=$*
2094 IFS=$ac_save_IFS
2095 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2098 { echo "$as_me:$LINENO: checking target system type" >&5
2099 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2100 if test "${ac_cv_target+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103 if test "x$target_alias" = x; then
2104 ac_cv_target=$ac_cv_host
2105 else
2106 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2107 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2108 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2109 { (exit 1); exit 1; }; }
2113 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2114 echo "${ECHO_T}$ac_cv_target" >&6; }
2115 case $ac_cv_target in
2116 *-*-*) ;;
2117 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2118 echo "$as_me: error: invalid value of canonical target" >&2;}
2119 { (exit 1); exit 1; }; };;
2120 esac
2121 target=$ac_cv_target
2122 ac_save_IFS=$IFS; IFS='-'
2123 set x $ac_cv_target
2124 shift
2125 target_cpu=$1
2126 target_vendor=$2
2127 shift; shift
2128 # Remember, the first character of IFS is used to create $*,
2129 # except with old shells:
2130 target_os=$*
2131 IFS=$ac_save_IFS
2132 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2135 # The aliases save the names the user supplied, while $host etc.
2136 # will get canonicalized.
2137 test -n "$target_alias" &&
2138 test "$program_prefix$program_suffix$program_transform_name" = \
2139 NONENONEs,x,x, &&
2140 program_prefix=${target_alias}-
2142 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2143 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2144 if test "${llvm_cv_os_type+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147 case $host in
2148 *-*-aix*)
2149 llvm_cv_link_all_option="-Wl,--whole-archive"
2150 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2151 llvm_cv_os_type="AIX"
2152 llvm_cv_platform_type="Unix" ;;
2153 *-*-irix*)
2154 llvm_cv_link_all_option="-Wl,--whole-archive"
2155 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2156 llvm_cv_os_type="IRIX"
2157 llvm_cv_platform_type="Unix" ;;
2158 *-*-cygwin*)
2159 llvm_cv_link_all_option="-Wl,--whole-archive"
2160 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2161 llvm_cv_os_type="Cygwin"
2162 llvm_cv_platform_type="Unix" ;;
2163 *-*-darwin*)
2164 llvm_cv_link_all_option="-Wl,-all_load"
2165 llvm_cv_no_link_all_option="-Wl,-noall_load"
2166 llvm_cv_os_type="Darwin"
2167 llvm_cv_platform_type="Unix" ;;
2168 *-*-minix*)
2169 llvm_cv_link_all_option="-Wl,-all_load"
2170 llvm_cv_no_link_all_option="-Wl,-noall_load"
2171 llvm_cv_os_type="Minix"
2172 llvm_cv_platform_type="Unix" ;;
2173 *-*-freebsd*)
2174 llvm_cv_link_all_option="-Wl,--whole-archive"
2175 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2176 llvm_cv_os_type="FreeBSD"
2177 llvm_cv_platform_type="Unix" ;;
2178 *-*-openbsd*)
2179 llvm_cv_link_all_option="-Wl,--whole-archive"
2180 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2181 llvm_cv_os_type="OpenBSD"
2182 llvm_cv_platform_type="Unix" ;;
2183 *-*-netbsd*)
2184 llvm_cv_link_all_option="-Wl,--whole-archive"
2185 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2186 llvm_cv_os_type="NetBSD"
2187 llvm_cv_platform_type="Unix" ;;
2188 *-*-dragonfly*)
2189 llvm_cv_link_all_option="-Wl,--whole-archive"
2190 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2191 llvm_cv_os_type="DragonFly"
2192 llvm_cv_platform_type="Unix" ;;
2193 *-*-hpux*)
2194 llvm_cv_link_all_option="-Wl,--whole-archive"
2195 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2196 llvm_cv_os_type="HP-UX"
2197 llvm_cv_platform_type="Unix" ;;
2198 *-*-interix*)
2199 llvm_cv_link_all_option="-Wl,--whole-archive"
2200 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2201 llvm_cv_os_type="Interix"
2202 llvm_cv_platform_type="Unix" ;;
2203 *-*-linux*)
2204 llvm_cv_link_all_option="-Wl,--whole-archive"
2205 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2206 llvm_cv_os_type="Linux"
2207 llvm_cv_platform_type="Unix" ;;
2208 *-*-solaris*)
2209 llvm_cv_link_all_option="-Wl,-z,allextract"
2210 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2211 llvm_cv_os_type="SunOS"
2212 llvm_cv_platform_type="Unix" ;;
2213 *-*-auroraux*)
2214 llvm_cv_link_all_option="-Wl,-z,allextract"
2215 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2216 llvm_cv_os_type="AuroraUX"
2217 llvm_cv_platform_type="Unix" ;;
2218 *-*-win32*)
2219 llvm_cv_link_all_option="-Wl,--whole-archive"
2220 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2221 llvm_cv_os_type="Win32"
2222 llvm_cv_platform_type="Win32" ;;
2223 *-*-mingw*)
2224 llvm_cv_link_all_option="-Wl,--whole-archive"
2225 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2226 llvm_cv_os_type="MingW"
2227 llvm_cv_platform_type="Win32" ;;
2228 *-*-haiku*)
2229 llvm_cv_link_all_option="-Wl,--whole-archive"
2230 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2231 llvm_cv_os_type="Haiku"
2232 llvm_cv_platform_type="Unix" ;;
2233 *-unknown-eabi*)
2234 llvm_cv_link_all_option="-Wl,--whole-archive"
2235 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2236 llvm_cv_os_type="Freestanding"
2237 llvm_cv_platform_type="Unix" ;;
2238 *-unknown-elf*)
2239 llvm_cv_link_all_option="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2241 llvm_cv_os_type="Freestanding"
2242 llvm_cv_platform_type="Unix" ;;
2244 llvm_cv_link_all_option=""
2245 llvm_cv_no_link_all_option=""
2246 llvm_cv_os_type="Unknown"
2247 llvm_cv_platform_type="Unknown" ;;
2248 esac
2250 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2251 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2253 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2254 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2255 if test "${llvm_cv_target_os_type+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2257 else
2258 case $target in
2259 *-*-aix*)
2260 llvm_cv_target_os_type="AIX" ;;
2261 *-*-irix*)
2262 llvm_cv_target_os_type="IRIX" ;;
2263 *-*-cygwin*)
2264 llvm_cv_target_os_type="Cygwin" ;;
2265 *-*-darwin*)
2266 llvm_cv_target_os_type="Darwin" ;;
2267 *-*-minix*)
2268 llvm_cv_target_os_type="Minix" ;;
2269 *-*-freebsd*)
2270 llvm_cv_target_os_type="FreeBSD" ;;
2271 *-*-openbsd*)
2272 llvm_cv_target_os_type="OpenBSD" ;;
2273 *-*-netbsd*)
2274 llvm_cv_target_os_type="NetBSD" ;;
2275 *-*-dragonfly*)
2276 llvm_cv_target_os_type="DragonFly" ;;
2277 *-*-hpux*)
2278 llvm_cv_target_os_type="HP-UX" ;;
2279 *-*-interix*)
2280 llvm_cv_target_os_type="Interix" ;;
2281 *-*-linux*)
2282 llvm_cv_target_os_type="Linux" ;;
2283 *-*-solaris*)
2284 llvm_cv_target_os_type="SunOS" ;;
2285 *-*-auroraux*)
2286 llvm_cv_target_os_type="AuroraUX" ;;
2287 *-*-win32*)
2288 llvm_cv_target_os_type="Win32" ;;
2289 *-*-mingw*)
2290 llvm_cv_target_os_type="MingW" ;;
2291 *-*-haiku*)
2292 llvm_cv_target_os_type="Haiku" ;;
2293 *-unknown-eabi*)
2294 llvm_cv_target_os_type="Freestanding" ;;
2296 llvm_cv_target_os_type="Unknown" ;;
2297 esac
2299 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2300 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2302 if test "$llvm_cv_os_type" = "Unknown" ; then
2303 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2304 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2305 { (exit 1); exit 1; }; }
2308 OS=$llvm_cv_os_type
2310 HOST_OS=$llvm_cv_os_type
2312 TARGET_OS=$llvm_cv_target_os_type
2315 LINKALL=$llvm_cv_link_all_option
2317 NOLINKALL=$llvm_cv_no_link_all_option
2320 case $llvm_cv_platform_type in
2321 Unix)
2323 cat >>confdefs.h <<\_ACEOF
2324 #define LLVM_ON_UNIX 1
2325 _ACEOF
2327 LLVM_ON_UNIX=1
2329 LLVM_ON_WIN32=0
2332 Win32)
2334 cat >>confdefs.h <<\_ACEOF
2335 #define LLVM_ON_WIN32 1
2336 _ACEOF
2338 LLVM_ON_UNIX=0
2340 LLVM_ON_WIN32=1
2343 esac
2345 { echo "$as_me:$LINENO: checking target architecture" >&5
2346 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2347 if test "${llvm_cv_target_arch+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 else
2350 case $target in
2351 i?86-*) llvm_cv_target_arch="x86" ;;
2352 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2353 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2354 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2355 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2356 arm*-*) llvm_cv_target_arch="ARM" ;;
2357 mips-*) llvm_cv_target_arch="Mips" ;;
2358 pic16-*) llvm_cv_target_arch="PIC16" ;;
2359 xcore-*) llvm_cv_target_arch="XCore" ;;
2360 msp430-*) llvm_cv_target_arch="MSP430" ;;
2361 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2362 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2363 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2364 *) llvm_cv_target_arch="Unknown" ;;
2365 esac
2367 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2368 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2370 if test "$llvm_cv_target_arch" = "Unknown" ; then
2371 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2372 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2375 # Determine the LLVM native architecture for the target
2376 case "$llvm_cv_target_arch" in
2377 x86) LLVM_NATIVE_ARCH="X86" ;;
2378 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2379 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2380 esac
2382 ARCH=$llvm_cv_target_arch
2385 ac_ext=c
2386 ac_cpp='$CPP $CPPFLAGS'
2387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2390 if test -n "$ac_tool_prefix"; then
2391 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2392 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2395 if test "${ac_cv_prog_CC+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 else
2398 if test -n "$CC"; then
2399 ac_cv_prog_CC="$CC" # Let the user override the test.
2400 else
2401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402 for as_dir in $PATH
2404 IFS=$as_save_IFS
2405 test -z "$as_dir" && as_dir=.
2406 for ac_exec_ext in '' $ac_executable_extensions; do
2407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2408 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2410 break 2
2412 done
2413 done
2414 IFS=$as_save_IFS
2418 CC=$ac_cv_prog_CC
2419 if test -n "$CC"; then
2420 { echo "$as_me:$LINENO: result: $CC" >&5
2421 echo "${ECHO_T}$CC" >&6; }
2422 else
2423 { echo "$as_me:$LINENO: result: no" >&5
2424 echo "${ECHO_T}no" >&6; }
2429 if test -z "$ac_cv_prog_CC"; then
2430 ac_ct_CC=$CC
2431 # Extract the first word of "gcc", so it can be a program name with args.
2432 set dummy gcc; ac_word=$2
2433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2435 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 else
2438 if test -n "$ac_ct_CC"; then
2439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2440 else
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 for as_dir in $PATH
2444 IFS=$as_save_IFS
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2448 ac_cv_prog_ac_ct_CC="gcc"
2449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 break 2
2452 done
2453 done
2454 IFS=$as_save_IFS
2458 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2459 if test -n "$ac_ct_CC"; then
2460 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2461 echo "${ECHO_T}$ac_ct_CC" >&6; }
2462 else
2463 { echo "$as_me:$LINENO: result: no" >&5
2464 echo "${ECHO_T}no" >&6; }
2467 if test "x$ac_ct_CC" = x; then
2468 CC=""
2469 else
2470 case $cross_compiling:$ac_tool_warned in
2471 yes:)
2472 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2473 whose name does not start with the host triplet. If you think this
2474 configuration is useful to you, please write to autoconf@gnu.org." >&5
2475 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2476 whose name does not start with the host triplet. If you think this
2477 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2478 ac_tool_warned=yes ;;
2479 esac
2480 CC=$ac_ct_CC
2482 else
2483 CC="$ac_cv_prog_CC"
2486 if test -z "$CC"; then
2487 if test -n "$ac_tool_prefix"; then
2488 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2489 set dummy ${ac_tool_prefix}cc; ac_word=$2
2490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2492 if test "${ac_cv_prog_CC+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 else
2495 if test -n "$CC"; then
2496 ac_cv_prog_CC="$CC" # Let the user override the test.
2497 else
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 for as_dir in $PATH
2501 IFS=$as_save_IFS
2502 test -z "$as_dir" && as_dir=.
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2505 ac_cv_prog_CC="${ac_tool_prefix}cc"
2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 break 2
2509 done
2510 done
2511 IFS=$as_save_IFS
2515 CC=$ac_cv_prog_CC
2516 if test -n "$CC"; then
2517 { echo "$as_me:$LINENO: result: $CC" >&5
2518 echo "${ECHO_T}$CC" >&6; }
2519 else
2520 { echo "$as_me:$LINENO: result: no" >&5
2521 echo "${ECHO_T}no" >&6; }
2527 if test -z "$CC"; then
2528 # Extract the first word of "cc", so it can be a program name with args.
2529 set dummy cc; ac_word=$2
2530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2532 if test "${ac_cv_prog_CC+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 else
2535 if test -n "$CC"; then
2536 ac_cv_prog_CC="$CC" # Let the user override the test.
2537 else
2538 ac_prog_rejected=no
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH
2542 IFS=$as_save_IFS
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2546 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2547 ac_prog_rejected=yes
2548 continue
2550 ac_cv_prog_CC="cc"
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 break 2
2554 done
2555 done
2556 IFS=$as_save_IFS
2558 if test $ac_prog_rejected = yes; then
2559 # We found a bogon in the path, so make sure we never use it.
2560 set dummy $ac_cv_prog_CC
2561 shift
2562 if test $# != 0; then
2563 # We chose a different compiler from the bogus one.
2564 # However, it has the same basename, so the bogon will be chosen
2565 # first if we set CC to just the basename; use the full file name.
2566 shift
2567 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2572 CC=$ac_cv_prog_CC
2573 if test -n "$CC"; then
2574 { echo "$as_me:$LINENO: result: $CC" >&5
2575 echo "${ECHO_T}$CC" >&6; }
2576 else
2577 { echo "$as_me:$LINENO: result: no" >&5
2578 echo "${ECHO_T}no" >&6; }
2583 if test -z "$CC"; then
2584 if test -n "$ac_tool_prefix"; then
2585 for ac_prog in cl.exe
2587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2588 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2591 if test "${ac_cv_prog_CC+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2593 else
2594 if test -n "$CC"; then
2595 ac_cv_prog_CC="$CC" # Let the user override the test.
2596 else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2604 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 break 2
2608 done
2609 done
2610 IFS=$as_save_IFS
2614 CC=$ac_cv_prog_CC
2615 if test -n "$CC"; then
2616 { echo "$as_me:$LINENO: result: $CC" >&5
2617 echo "${ECHO_T}$CC" >&6; }
2618 else
2619 { echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6; }
2624 test -n "$CC" && break
2625 done
2627 if test -z "$CC"; then
2628 ac_ct_CC=$CC
2629 for ac_prog in cl.exe
2631 # Extract the first word of "$ac_prog", so it can be a program name with args.
2632 set dummy $ac_prog; ac_word=$2
2633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2637 else
2638 if test -n "$ac_ct_CC"; then
2639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2640 else
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 for as_dir in $PATH
2644 IFS=$as_save_IFS
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2648 ac_cv_prog_ac_ct_CC="$ac_prog"
2649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 break 2
2652 done
2653 done
2654 IFS=$as_save_IFS
2658 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2659 if test -n "$ac_ct_CC"; then
2660 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2661 echo "${ECHO_T}$ac_ct_CC" >&6; }
2662 else
2663 { echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6; }
2668 test -n "$ac_ct_CC" && break
2669 done
2671 if test "x$ac_ct_CC" = x; then
2672 CC=""
2673 else
2674 case $cross_compiling:$ac_tool_warned in
2675 yes:)
2676 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2677 whose name does not start with the host triplet. If you think this
2678 configuration is useful to you, please write to autoconf@gnu.org." >&5
2679 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2680 whose name does not start with the host triplet. If you think this
2681 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2682 ac_tool_warned=yes ;;
2683 esac
2684 CC=$ac_ct_CC
2691 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2692 See \`config.log' for more details." >&5
2693 echo "$as_me: error: no acceptable C compiler found in \$PATH
2694 See \`config.log' for more details." >&2;}
2695 { (exit 1); exit 1; }; }
2697 # Provide some information about the compiler.
2698 echo "$as_me:$LINENO: checking for C compiler version" >&5
2699 ac_compiler=`set X $ac_compile; echo $2`
2700 { (ac_try="$ac_compiler --version >&5"
2701 case "(($ac_try" in
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2704 esac
2705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_compiler --version >&5") 2>&5
2707 ac_status=$?
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }
2710 { (ac_try="$ac_compiler -v >&5"
2711 case "(($ac_try" in
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2714 esac
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_compiler -v >&5") 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }
2720 { (ac_try="$ac_compiler -V >&5"
2721 case "(($ac_try" in
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2724 esac
2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_compiler -V >&5") 2>&5
2727 ac_status=$?
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }
2731 cat >conftest.$ac_ext <<_ACEOF
2732 /* confdefs.h. */
2733 _ACEOF
2734 cat confdefs.h >>conftest.$ac_ext
2735 cat >>conftest.$ac_ext <<_ACEOF
2736 /* end confdefs.h. */
2739 main ()
2743 return 0;
2745 _ACEOF
2746 ac_clean_files_save=$ac_clean_files
2747 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2748 # Try to create an executable without -o first, disregard a.out.
2749 # It will help us diagnose broken compilers, and finding out an intuition
2750 # of exeext.
2751 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2752 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2753 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2755 # List of possible output files, starting from the most likely.
2756 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2757 # only as a last resort. b.out is created by i960 compilers.
2758 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2760 # The IRIX 6 linker writes into existing files which may not be
2761 # executable, retaining their permissions. Remove them first so a
2762 # subsequent execution test works.
2763 ac_rmfiles=
2764 for ac_file in $ac_files
2766 case $ac_file in
2767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2768 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2769 esac
2770 done
2771 rm -f $ac_rmfiles
2773 if { (ac_try="$ac_link_default"
2774 case "(($ac_try" in
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2777 esac
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779 (eval "$ac_link_default") 2>&5
2780 ac_status=$?
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; then
2783 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2784 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2785 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2786 # so that the user can short-circuit this test for compilers unknown to
2787 # Autoconf.
2788 for ac_file in $ac_files
2790 test -f "$ac_file" || continue
2791 case $ac_file in
2792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2794 [ab].out )
2795 # We found the default executable, but exeext='' is most
2796 # certainly right.
2797 break;;
2798 *.* )
2799 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2800 then :; else
2801 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2803 # We set ac_cv_exeext here because the later test for it is not
2804 # safe: cross compilers may not add the suffix if given an `-o'
2805 # argument, so we may need to know it at that point already.
2806 # Even if this section looks crufty: it has the advantage of
2807 # actually working.
2808 break;;
2810 break;;
2811 esac
2812 done
2813 test "$ac_cv_exeext" = no && ac_cv_exeext=
2815 else
2816 echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2819 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2820 See \`config.log' for more details." >&5
2821 echo "$as_me: error: C compiler cannot create executables
2822 See \`config.log' for more details." >&2;}
2823 { (exit 77); exit 77; }; }
2826 ac_exeext=$ac_cv_exeext
2827 { echo "$as_me:$LINENO: result: $ac_file" >&5
2828 echo "${ECHO_T}$ac_file" >&6; }
2830 # Check that the compiler produces executables we can run. If not, either
2831 # the compiler is broken, or we cross compile.
2832 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2833 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2834 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2835 # If not cross compiling, check that we can run a simple program.
2836 if test "$cross_compiling" != yes; then
2837 if { ac_try='./$ac_file'
2838 { (case "(($ac_try" in
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2841 esac
2842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2843 (eval "$ac_try") 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2847 cross_compiling=no
2848 else
2849 if test "$cross_compiling" = maybe; then
2850 cross_compiling=yes
2851 else
2852 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2853 If you meant to cross compile, use \`--host'.
2854 See \`config.log' for more details." >&5
2855 echo "$as_me: error: cannot run C compiled programs.
2856 If you meant to cross compile, use \`--host'.
2857 See \`config.log' for more details." >&2;}
2858 { (exit 1); exit 1; }; }
2862 { echo "$as_me:$LINENO: result: yes" >&5
2863 echo "${ECHO_T}yes" >&6; }
2865 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2866 ac_clean_files=$ac_clean_files_save
2867 # Check that the compiler produces executables we can run. If not, either
2868 # the compiler is broken, or we cross compile.
2869 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2870 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2871 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2872 echo "${ECHO_T}$cross_compiling" >&6; }
2874 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2875 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2876 if { (ac_try="$ac_link"
2877 case "(($ac_try" in
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2880 esac
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_link") 2>&5
2883 ac_status=$?
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; then
2886 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2887 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2888 # work properly (i.e., refer to `conftest.exe'), while it won't with
2889 # `rm'.
2890 for ac_file in conftest.exe conftest conftest.*; do
2891 test -f "$ac_file" || continue
2892 case $ac_file in
2893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2894 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2895 break;;
2896 * ) break;;
2897 esac
2898 done
2899 else
2900 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2901 See \`config.log' for more details." >&5
2902 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2903 See \`config.log' for more details." >&2;}
2904 { (exit 1); exit 1; }; }
2907 rm -f conftest$ac_cv_exeext
2908 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2909 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2911 rm -f conftest.$ac_ext
2912 EXEEXT=$ac_cv_exeext
2913 ac_exeext=$EXEEXT
2914 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2915 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2916 if test "${ac_cv_objext+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 else
2919 cat >conftest.$ac_ext <<_ACEOF
2920 /* confdefs.h. */
2921 _ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2927 main ()
2931 return 0;
2933 _ACEOF
2934 rm -f conftest.o conftest.obj
2935 if { (ac_try="$ac_compile"
2936 case "(($ac_try" in
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2939 esac
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941 (eval "$ac_compile") 2>&5
2942 ac_status=$?
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; then
2945 for ac_file in conftest.o conftest.obj conftest.*; do
2946 test -f "$ac_file" || continue;
2947 case $ac_file in
2948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2949 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2950 break;;
2951 esac
2952 done
2953 else
2954 echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2957 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2958 See \`config.log' for more details." >&5
2959 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2960 See \`config.log' for more details." >&2;}
2961 { (exit 1); exit 1; }; }
2964 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2966 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2967 echo "${ECHO_T}$ac_cv_objext" >&6; }
2968 OBJEXT=$ac_cv_objext
2969 ac_objext=$OBJEXT
2970 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2971 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2972 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2974 else
2975 cat >conftest.$ac_ext <<_ACEOF
2976 /* confdefs.h. */
2977 _ACEOF
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h. */
2983 main ()
2985 #ifndef __GNUC__
2986 choke me
2987 #endif
2990 return 0;
2992 _ACEOF
2993 rm -f conftest.$ac_objext
2994 if { (ac_try="$ac_compile"
2995 case "(($ac_try" in
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2998 esac
2999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000 (eval "$ac_compile") 2>conftest.er1
3001 ac_status=$?
3002 grep -v '^ *+' conftest.er1 >conftest.err
3003 rm -f conftest.er1
3004 cat conftest.err >&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); } &&
3007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3008 { (case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3011 esac
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_try") 2>&5
3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; } &&
3017 { ac_try='test -s conftest.$ac_objext'
3018 { (case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021 esac
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_try") 2>&5
3024 ac_status=$?
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; }; then
3027 ac_compiler_gnu=yes
3028 else
3029 echo "$as_me: failed program was:" >&5
3030 sed 's/^/| /' conftest.$ac_ext >&5
3032 ac_compiler_gnu=no
3035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3036 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3039 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3040 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3041 GCC=`test $ac_compiler_gnu = yes && echo yes`
3042 ac_test_CFLAGS=${CFLAGS+set}
3043 ac_save_CFLAGS=$CFLAGS
3044 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3045 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3046 if test "${ac_cv_prog_cc_g+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3048 else
3049 ac_save_c_werror_flag=$ac_c_werror_flag
3050 ac_c_werror_flag=yes
3051 ac_cv_prog_cc_g=no
3052 CFLAGS="-g"
3053 cat >conftest.$ac_ext <<_ACEOF
3054 /* confdefs.h. */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3061 main ()
3065 return 0;
3067 _ACEOF
3068 rm -f conftest.$ac_objext
3069 if { (ac_try="$ac_compile"
3070 case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073 esac
3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_compile") 2>conftest.er1
3076 ac_status=$?
3077 grep -v '^ *+' conftest.er1 >conftest.err
3078 rm -f conftest.er1
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } &&
3082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3083 { (case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086 esac
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_try") 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; } &&
3092 { ac_try='test -s conftest.$ac_objext'
3093 { (case "(($ac_try" in
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3096 esac
3097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098 (eval "$ac_try") 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; }; then
3102 ac_cv_prog_cc_g=yes
3103 else
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3107 CFLAGS=""
3108 cat >conftest.$ac_ext <<_ACEOF
3109 /* confdefs.h. */
3110 _ACEOF
3111 cat confdefs.h >>conftest.$ac_ext
3112 cat >>conftest.$ac_ext <<_ACEOF
3113 /* end confdefs.h. */
3116 main ()
3120 return 0;
3122 _ACEOF
3123 rm -f conftest.$ac_objext
3124 if { (ac_try="$ac_compile"
3125 case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128 esac
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_compile") 2>conftest.er1
3131 ac_status=$?
3132 grep -v '^ *+' conftest.er1 >conftest.err
3133 rm -f conftest.er1
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } &&
3137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3138 { (case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141 esac
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; } &&
3147 { ac_try='test -s conftest.$ac_objext'
3148 { (case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151 esac
3152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_try") 2>&5
3154 ac_status=$?
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }; }; then
3158 else
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3162 ac_c_werror_flag=$ac_save_c_werror_flag
3163 CFLAGS="-g"
3164 cat >conftest.$ac_ext <<_ACEOF
3165 /* confdefs.h. */
3166 _ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3172 main ()
3176 return 0;
3178 _ACEOF
3179 rm -f conftest.$ac_objext
3180 if { (ac_try="$ac_compile"
3181 case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3184 esac
3185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186 (eval "$ac_compile") 2>conftest.er1
3187 ac_status=$?
3188 grep -v '^ *+' conftest.er1 >conftest.err
3189 rm -f conftest.er1
3190 cat conftest.err >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); } &&
3193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3194 { (case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197 esac
3198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_try") 2>&5
3200 ac_status=$?
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; } &&
3203 { ac_try='test -s conftest.$ac_objext'
3204 { (case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207 esac
3208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3209 (eval "$ac_try") 2>&5
3210 ac_status=$?
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; }; then
3213 ac_cv_prog_cc_g=yes
3214 else
3215 echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 ac_c_werror_flag=$ac_save_c_werror_flag
3230 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3231 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3232 if test "$ac_test_CFLAGS" = set; then
3233 CFLAGS=$ac_save_CFLAGS
3234 elif test $ac_cv_prog_cc_g = yes; then
3235 if test "$GCC" = yes; then
3236 CFLAGS="-g -O2"
3237 else
3238 CFLAGS="-g"
3240 else
3241 if test "$GCC" = yes; then
3242 CFLAGS="-O2"
3243 else
3244 CFLAGS=
3247 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3248 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3249 if test "${ac_cv_prog_cc_c89+set}" = set; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 else
3252 ac_cv_prog_cc_c89=no
3253 ac_save_CC=$CC
3254 cat >conftest.$ac_ext <<_ACEOF
3255 /* confdefs.h. */
3256 _ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3260 #include <stdarg.h>
3261 #include <stdio.h>
3262 #include <sys/types.h>
3263 #include <sys/stat.h>
3264 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3265 struct buf { int x; };
3266 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3267 static char *e (p, i)
3268 char **p;
3269 int i;
3271 return p[i];
3273 static char *f (char * (*g) (char **, int), char **p, ...)
3275 char *s;
3276 va_list v;
3277 va_start (v,p);
3278 s = g (p, va_arg (v,int));
3279 va_end (v);
3280 return s;
3283 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3284 function prototypes and stuff, but not '\xHH' hex character constants.
3285 These don't provoke an error unfortunately, instead are silently treated
3286 as 'x'. The following induces an error, until -std is added to get
3287 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3288 array size at least. It's necessary to write '\x00'==0 to get something
3289 that's true only with -std. */
3290 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3292 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3293 inside strings and character constants. */
3294 #define FOO(x) 'x'
3295 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3297 int test (int i, double x);
3298 struct s1 {int (*f) (int a);};
3299 struct s2 {int (*f) (double a);};
3300 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3301 int argc;
3302 char **argv;
3304 main ()
3306 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3308 return 0;
3310 _ACEOF
3311 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3312 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3314 CC="$ac_save_CC $ac_arg"
3315 rm -f conftest.$ac_objext
3316 if { (ac_try="$ac_compile"
3317 case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320 esac
3321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3322 (eval "$ac_compile") 2>conftest.er1
3323 ac_status=$?
3324 grep -v '^ *+' conftest.er1 >conftest.err
3325 rm -f conftest.er1
3326 cat conftest.err >&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); } &&
3329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3330 { (case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333 esac
3334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335 (eval "$ac_try") 2>&5
3336 ac_status=$?
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }; } &&
3339 { ac_try='test -s conftest.$ac_objext'
3340 { (case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3343 esac
3344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3345 (eval "$ac_try") 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; }; then
3349 ac_cv_prog_cc_c89=$ac_arg
3350 else
3351 echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3357 rm -f core conftest.err conftest.$ac_objext
3358 test "x$ac_cv_prog_cc_c89" != "xno" && break
3359 done
3360 rm -f conftest.$ac_ext
3361 CC=$ac_save_CC
3364 # AC_CACHE_VAL
3365 case "x$ac_cv_prog_cc_c89" in
3367 { echo "$as_me:$LINENO: result: none needed" >&5
3368 echo "${ECHO_T}none needed" >&6; } ;;
3369 xno)
3370 { echo "$as_me:$LINENO: result: unsupported" >&5
3371 echo "${ECHO_T}unsupported" >&6; } ;;
3373 CC="$CC $ac_cv_prog_cc_c89"
3374 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3375 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3376 esac
3379 ac_ext=c
3380 ac_cpp='$CPP $CPPFLAGS'
3381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386 ac_ext=c
3387 ac_cpp='$CPP $CPPFLAGS'
3388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3392 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3393 # On Suns, sometimes $CPP names a directory.
3394 if test -n "$CPP" && test -d "$CPP"; then
3395 CPP=
3397 if test -z "$CPP"; then
3398 if test "${ac_cv_prog_CPP+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 else
3401 # Double quotes because CPP needs to be expanded
3402 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3404 ac_preproc_ok=false
3405 for ac_c_preproc_warn_flag in '' yes
3407 # Use a header file that comes with gcc, so configuring glibc
3408 # with a fresh cross-compiler works.
3409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3410 # <limits.h> exists even on freestanding compilers.
3411 # On the NeXT, cc -E runs the code through the compiler's parser,
3412 # not just through cpp. "Syntax error" is here to catch this case.
3413 cat >conftest.$ac_ext <<_ACEOF
3414 /* confdefs.h. */
3415 _ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h. */
3419 #ifdef __STDC__
3420 # include <limits.h>
3421 #else
3422 # include <assert.h>
3423 #endif
3424 Syntax error
3425 _ACEOF
3426 if { (ac_try="$ac_cpp conftest.$ac_ext"
3427 case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430 esac
3431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3433 ac_status=$?
3434 grep -v '^ *+' conftest.er1 >conftest.err
3435 rm -f conftest.er1
3436 cat conftest.err >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } >/dev/null; then
3439 if test -s conftest.err; then
3440 ac_cpp_err=$ac_c_preproc_warn_flag
3441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3442 else
3443 ac_cpp_err=
3445 else
3446 ac_cpp_err=yes
3448 if test -z "$ac_cpp_err"; then
3450 else
3451 echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3454 # Broken: fails on valid input.
3455 continue
3458 rm -f conftest.err conftest.$ac_ext
3460 # OK, works on sane cases. Now check whether nonexistent headers
3461 # can be detected and how.
3462 cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h. */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3468 #include <ac_nonexistent.h>
3469 _ACEOF
3470 if { (ac_try="$ac_cpp conftest.$ac_ext"
3471 case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3474 esac
3475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3477 ac_status=$?
3478 grep -v '^ *+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } >/dev/null; then
3483 if test -s conftest.err; then
3484 ac_cpp_err=$ac_c_preproc_warn_flag
3485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3486 else
3487 ac_cpp_err=
3489 else
3490 ac_cpp_err=yes
3492 if test -z "$ac_cpp_err"; then
3493 # Broken: success on invalid input.
3494 continue
3495 else
3496 echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3499 # Passes both tests.
3500 ac_preproc_ok=:
3501 break
3504 rm -f conftest.err conftest.$ac_ext
3506 done
3507 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3508 rm -f conftest.err conftest.$ac_ext
3509 if $ac_preproc_ok; then
3510 break
3513 done
3514 ac_cv_prog_CPP=$CPP
3517 CPP=$ac_cv_prog_CPP
3518 else
3519 ac_cv_prog_CPP=$CPP
3521 { echo "$as_me:$LINENO: result: $CPP" >&5
3522 echo "${ECHO_T}$CPP" >&6; }
3523 ac_preproc_ok=false
3524 for ac_c_preproc_warn_flag in '' yes
3526 # Use a header file that comes with gcc, so configuring glibc
3527 # with a fresh cross-compiler works.
3528 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3529 # <limits.h> exists even on freestanding compilers.
3530 # On the NeXT, cc -E runs the code through the compiler's parser,
3531 # not just through cpp. "Syntax error" is here to catch this case.
3532 cat >conftest.$ac_ext <<_ACEOF
3533 /* confdefs.h. */
3534 _ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h. */
3538 #ifdef __STDC__
3539 # include <limits.h>
3540 #else
3541 # include <assert.h>
3542 #endif
3543 Syntax error
3544 _ACEOF
3545 if { (ac_try="$ac_cpp conftest.$ac_ext"
3546 case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3549 esac
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3552 ac_status=$?
3553 grep -v '^ *+' conftest.er1 >conftest.err
3554 rm -f conftest.er1
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } >/dev/null; then
3558 if test -s conftest.err; then
3559 ac_cpp_err=$ac_c_preproc_warn_flag
3560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3561 else
3562 ac_cpp_err=
3564 else
3565 ac_cpp_err=yes
3567 if test -z "$ac_cpp_err"; then
3569 else
3570 echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3573 # Broken: fails on valid input.
3574 continue
3577 rm -f conftest.err conftest.$ac_ext
3579 # OK, works on sane cases. Now check whether nonexistent headers
3580 # can be detected and how.
3581 cat >conftest.$ac_ext <<_ACEOF
3582 /* confdefs.h. */
3583 _ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h. */
3587 #include <ac_nonexistent.h>
3588 _ACEOF
3589 if { (ac_try="$ac_cpp conftest.$ac_ext"
3590 case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593 esac
3594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3596 ac_status=$?
3597 grep -v '^ *+' conftest.er1 >conftest.err
3598 rm -f conftest.er1
3599 cat conftest.err >&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); } >/dev/null; then
3602 if test -s conftest.err; then
3603 ac_cpp_err=$ac_c_preproc_warn_flag
3604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3605 else
3606 ac_cpp_err=
3608 else
3609 ac_cpp_err=yes
3611 if test -z "$ac_cpp_err"; then
3612 # Broken: success on invalid input.
3613 continue
3614 else
3615 echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3618 # Passes both tests.
3619 ac_preproc_ok=:
3620 break
3623 rm -f conftest.err conftest.$ac_ext
3625 done
3626 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3627 rm -f conftest.err conftest.$ac_ext
3628 if $ac_preproc_ok; then
3630 else
3631 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3632 See \`config.log' for more details." >&5
3633 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3634 See \`config.log' for more details." >&2;}
3635 { (exit 1); exit 1; }; }
3638 ac_ext=c
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3646 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3647 if test "${ac_cv_path_GREP+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3649 else
3650 # Extract the first word of "grep ggrep" to use in msg output
3651 if test -z "$GREP"; then
3652 set dummy grep ggrep; ac_prog_name=$2
3653 if test "${ac_cv_path_GREP+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656 ac_path_GREP_found=false
3657 # Loop through the user's path and test for each of PROGNAME-LIST
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3661 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=.
3663 for ac_prog in grep ggrep; do
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3666 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3667 # Check for GNU ac_path_GREP and select it if it is found.
3668 # Check for GNU $ac_path_GREP
3669 case `"$ac_path_GREP" --version 2>&1` in
3670 *GNU*)
3671 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3673 ac_count=0
3674 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3675 while :
3677 cat "conftest.in" "conftest.in" >"conftest.tmp"
3678 mv "conftest.tmp" "conftest.in"
3679 cp "conftest.in" "conftest.nl"
3680 echo 'GREP' >> "conftest.nl"
3681 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3682 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3683 ac_count=`expr $ac_count + 1`
3684 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3685 # Best one so far, save it but keep looking for a better one
3686 ac_cv_path_GREP="$ac_path_GREP"
3687 ac_path_GREP_max=$ac_count
3689 # 10*(2^10) chars as input seems more than enough
3690 test $ac_count -gt 10 && break
3691 done
3692 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3693 esac
3696 $ac_path_GREP_found && break 3
3697 done
3698 done
3700 done
3701 IFS=$as_save_IFS
3706 GREP="$ac_cv_path_GREP"
3707 if test -z "$GREP"; then
3708 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3709 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3710 { (exit 1); exit 1; }; }
3713 else
3714 ac_cv_path_GREP=$GREP
3719 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3720 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3721 GREP="$ac_cv_path_GREP"
3724 { echo "$as_me:$LINENO: checking for egrep" >&5
3725 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3726 if test "${ac_cv_path_EGREP+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 else
3729 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3730 then ac_cv_path_EGREP="$GREP -E"
3731 else
3732 # Extract the first word of "egrep" to use in msg output
3733 if test -z "$EGREP"; then
3734 set dummy egrep; ac_prog_name=$2
3735 if test "${ac_cv_path_EGREP+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738 ac_path_EGREP_found=false
3739 # Loop through the user's path and test for each of PROGNAME-LIST
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
3745 for ac_prog in egrep; do
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3748 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3749 # Check for GNU ac_path_EGREP and select it if it is found.
3750 # Check for GNU $ac_path_EGREP
3751 case `"$ac_path_EGREP" --version 2>&1` in
3752 *GNU*)
3753 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3755 ac_count=0
3756 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3757 while :
3759 cat "conftest.in" "conftest.in" >"conftest.tmp"
3760 mv "conftest.tmp" "conftest.in"
3761 cp "conftest.in" "conftest.nl"
3762 echo 'EGREP' >> "conftest.nl"
3763 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3764 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3765 ac_count=`expr $ac_count + 1`
3766 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3767 # Best one so far, save it but keep looking for a better one
3768 ac_cv_path_EGREP="$ac_path_EGREP"
3769 ac_path_EGREP_max=$ac_count
3771 # 10*(2^10) chars as input seems more than enough
3772 test $ac_count -gt 10 && break
3773 done
3774 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3775 esac
3778 $ac_path_EGREP_found && break 3
3779 done
3780 done
3782 done
3783 IFS=$as_save_IFS
3788 EGREP="$ac_cv_path_EGREP"
3789 if test -z "$EGREP"; then
3790 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3791 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3792 { (exit 1); exit 1; }; }
3795 else
3796 ac_cv_path_EGREP=$EGREP
3802 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3803 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3804 EGREP="$ac_cv_path_EGREP"
3807 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3808 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3809 if test "${ac_cv_header_stdc+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 else
3812 cat >conftest.$ac_ext <<_ACEOF
3813 /* confdefs.h. */
3814 _ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3818 #include <stdlib.h>
3819 #include <stdarg.h>
3820 #include <string.h>
3821 #include <float.h>
3824 main ()
3828 return 0;
3830 _ACEOF
3831 rm -f conftest.$ac_objext
3832 if { (ac_try="$ac_compile"
3833 case "(($ac_try" in
3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835 *) ac_try_echo=$ac_try;;
3836 esac
3837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3838 (eval "$ac_compile") 2>conftest.er1
3839 ac_status=$?
3840 grep -v '^ *+' conftest.er1 >conftest.err
3841 rm -f conftest.er1
3842 cat conftest.err >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); } &&
3845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3846 { (case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849 esac
3850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851 (eval "$ac_try") 2>&5
3852 ac_status=$?
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); }; } &&
3855 { ac_try='test -s conftest.$ac_objext'
3856 { (case "(($ac_try" in
3857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3858 *) ac_try_echo=$ac_try;;
3859 esac
3860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3861 (eval "$ac_try") 2>&5
3862 ac_status=$?
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; }; then
3865 ac_cv_header_stdc=yes
3866 else
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870 ac_cv_header_stdc=no
3873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875 if test $ac_cv_header_stdc = yes; then
3876 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3877 cat >conftest.$ac_ext <<_ACEOF
3878 /* confdefs.h. */
3879 _ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h. */
3883 #include <string.h>
3885 _ACEOF
3886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3887 $EGREP "memchr" >/dev/null 2>&1; then
3889 else
3890 ac_cv_header_stdc=no
3892 rm -f conftest*
3896 if test $ac_cv_header_stdc = yes; then
3897 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3898 cat >conftest.$ac_ext <<_ACEOF
3899 /* confdefs.h. */
3900 _ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h. */
3904 #include <stdlib.h>
3906 _ACEOF
3907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3908 $EGREP "free" >/dev/null 2>&1; then
3910 else
3911 ac_cv_header_stdc=no
3913 rm -f conftest*
3917 if test $ac_cv_header_stdc = yes; then
3918 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3919 if test "$cross_compiling" = yes; then
3921 else
3922 cat >conftest.$ac_ext <<_ACEOF
3923 /* confdefs.h. */
3924 _ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3928 #include <ctype.h>
3929 #include <stdlib.h>
3930 #if ((' ' & 0x0FF) == 0x020)
3931 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3932 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3933 #else
3934 # define ISLOWER(c) \
3935 (('a' <= (c) && (c) <= 'i') \
3936 || ('j' <= (c) && (c) <= 'r') \
3937 || ('s' <= (c) && (c) <= 'z'))
3938 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3939 #endif
3941 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3943 main ()
3945 int i;
3946 for (i = 0; i < 256; i++)
3947 if (XOR (islower (i), ISLOWER (i))
3948 || toupper (i) != TOUPPER (i))
3949 return 2;
3950 return 0;
3952 _ACEOF
3953 rm -f conftest$ac_exeext
3954 if { (ac_try="$ac_link"
3955 case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958 esac
3959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960 (eval "$ac_link") 2>&5
3961 ac_status=$?
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3964 { (case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3967 esac
3968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3969 (eval "$ac_try") 2>&5
3970 ac_status=$?
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; }; then
3974 else
3975 echo "$as_me: program exited with status $ac_status" >&5
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3979 ( exit $ac_status )
3980 ac_cv_header_stdc=no
3982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3988 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3989 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3990 if test $ac_cv_header_stdc = yes; then
3992 cat >>confdefs.h <<\_ACEOF
3993 #define STDC_HEADERS 1
3994 _ACEOF
3998 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4008 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4009 inttypes.h stdint.h unistd.h
4011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 else
4017 cat >conftest.$ac_ext <<_ACEOF
4018 /* confdefs.h. */
4019 _ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4023 $ac_includes_default
4025 #include <$ac_header>
4026 _ACEOF
4027 rm -f conftest.$ac_objext
4028 if { (ac_try="$ac_compile"
4029 case "(($ac_try" in
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4032 esac
4033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4034 (eval "$ac_compile") 2>conftest.er1
4035 ac_status=$?
4036 grep -v '^ *+' conftest.er1 >conftest.err
4037 rm -f conftest.er1
4038 cat conftest.err >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } &&
4041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4042 { (case "(($ac_try" in
4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4045 esac
4046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4047 (eval "$ac_try") 2>&5
4048 ac_status=$?
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; } &&
4051 { ac_try='test -s conftest.$ac_objext'
4052 { (case "(($ac_try" in
4053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054 *) ac_try_echo=$ac_try;;
4055 esac
4056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4057 (eval "$ac_try") 2>&5
4058 ac_status=$?
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; }; then
4061 eval "$as_ac_Header=yes"
4062 else
4063 echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4066 eval "$as_ac_Header=no"
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071 ac_res=`eval echo '${'$as_ac_Header'}'`
4072 { echo "$as_me:$LINENO: result: $ac_res" >&5
4073 echo "${ECHO_T}$ac_res" >&6; }
4074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4075 cat >>confdefs.h <<_ACEOF
4076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4077 _ACEOF
4081 done
4084 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4085 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4086 if test "${ac_cv_c_bigendian+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089 # See if sys/param.h defines the BYTE_ORDER macro.
4090 cat >conftest.$ac_ext <<_ACEOF
4091 /* confdefs.h. */
4092 _ACEOF
4093 cat confdefs.h >>conftest.$ac_ext
4094 cat >>conftest.$ac_ext <<_ACEOF
4095 /* end confdefs.h. */
4096 #include <sys/types.h>
4097 #include <sys/param.h>
4100 main ()
4102 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4103 bogus endian macros
4104 #endif
4107 return 0;
4109 _ACEOF
4110 rm -f conftest.$ac_objext
4111 if { (ac_try="$ac_compile"
4112 case "(($ac_try" in
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4115 esac
4116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4117 (eval "$ac_compile") 2>conftest.er1
4118 ac_status=$?
4119 grep -v '^ *+' conftest.er1 >conftest.err
4120 rm -f conftest.er1
4121 cat conftest.err >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } &&
4124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4125 { (case "(($ac_try" in
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4128 esac
4129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4130 (eval "$ac_try") 2>&5
4131 ac_status=$?
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); }; } &&
4134 { ac_try='test -s conftest.$ac_objext'
4135 { (case "(($ac_try" in
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4138 esac
4139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140 (eval "$ac_try") 2>&5
4141 ac_status=$?
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }; }; then
4144 # It does; now see whether it defined to BIG_ENDIAN or not.
4145 cat >conftest.$ac_ext <<_ACEOF
4146 /* confdefs.h. */
4147 _ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h. */
4151 #include <sys/types.h>
4152 #include <sys/param.h>
4155 main ()
4157 #if BYTE_ORDER != BIG_ENDIAN
4158 not big endian
4159 #endif
4162 return 0;
4164 _ACEOF
4165 rm -f conftest.$ac_objext
4166 if { (ac_try="$ac_compile"
4167 case "(($ac_try" in
4168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169 *) ac_try_echo=$ac_try;;
4170 esac
4171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4172 (eval "$ac_compile") 2>conftest.er1
4173 ac_status=$?
4174 grep -v '^ *+' conftest.er1 >conftest.err
4175 rm -f conftest.er1
4176 cat conftest.err >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } &&
4179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4180 { (case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183 esac
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_try") 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; } &&
4189 { ac_try='test -s conftest.$ac_objext'
4190 { (case "(($ac_try" in
4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192 *) ac_try_echo=$ac_try;;
4193 esac
4194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4195 (eval "$ac_try") 2>&5
4196 ac_status=$?
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }; }; then
4199 ac_cv_c_bigendian=yes
4200 else
4201 echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.$ac_ext >&5
4204 ac_cv_c_bigendian=no
4207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208 else
4209 echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4212 # It does not; compile a test program.
4213 if test "$cross_compiling" = yes; then
4214 # try to guess the endianness by grepping values into an object file
4215 ac_cv_c_bigendian=unknown
4216 cat >conftest.$ac_ext <<_ACEOF
4217 /* confdefs.h. */
4218 _ACEOF
4219 cat confdefs.h >>conftest.$ac_ext
4220 cat >>conftest.$ac_ext <<_ACEOF
4221 /* end confdefs.h. */
4222 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4223 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4224 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4225 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4226 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4227 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4229 main ()
4231 _ascii (); _ebcdic ();
4233 return 0;
4235 _ACEOF
4236 rm -f conftest.$ac_objext
4237 if { (ac_try="$ac_compile"
4238 case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4241 esac
4242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243 (eval "$ac_compile") 2>conftest.er1
4244 ac_status=$?
4245 grep -v '^ *+' conftest.er1 >conftest.err
4246 rm -f conftest.er1
4247 cat conftest.err >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } &&
4250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4251 { (case "(($ac_try" in
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4254 esac
4255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256 (eval "$ac_try") 2>&5
4257 ac_status=$?
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); }; } &&
4260 { ac_try='test -s conftest.$ac_objext'
4261 { (case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264 esac
4265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_try") 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; }; then
4270 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4271 ac_cv_c_bigendian=yes
4273 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4274 if test "$ac_cv_c_bigendian" = unknown; then
4275 ac_cv_c_bigendian=no
4276 else
4277 # finding both strings is unlikely to happen, but who knows?
4278 ac_cv_c_bigendian=unknown
4281 else
4282 echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4289 else
4290 cat >conftest.$ac_ext <<_ACEOF
4291 /* confdefs.h. */
4292 _ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h. */
4296 $ac_includes_default
4298 main ()
4301 /* Are we little or big endian? From Harbison&Steele. */
4302 union
4304 long int l;
4305 char c[sizeof (long int)];
4306 } u;
4307 u.l = 1;
4308 return u.c[sizeof (long int) - 1] == 1;
4311 return 0;
4313 _ACEOF
4314 rm -f conftest$ac_exeext
4315 if { (ac_try="$ac_link"
4316 case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4319 esac
4320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4321 (eval "$ac_link") 2>&5
4322 ac_status=$?
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4325 { (case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4328 esac
4329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330 (eval "$ac_try") 2>&5
4331 ac_status=$?
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; }; then
4334 ac_cv_c_bigendian=no
4335 else
4336 echo "$as_me: program exited with status $ac_status" >&5
4337 echo "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.$ac_ext >&5
4340 ( exit $ac_status )
4341 ac_cv_c_bigendian=yes
4343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4352 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4353 case $ac_cv_c_bigendian in
4354 yes)
4355 ENDIAN=big
4358 ENDIAN=little
4361 { { echo "$as_me:$LINENO: error: unknown endianness
4362 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4363 echo "$as_me: error: unknown endianness
4364 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4365 { (exit 1); exit 1; }; } ;;
4366 esac
4369 if test "$cross_compiling" = yes; then
4370 LLVM_CROSS_COMPILING=1
4373 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4374 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4375 if test "${ac_cv_build_exeext+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 else
4378 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4379 ac_cv_build_exeext=.exe
4380 else
4381 ac_build_prefix=${build_alias}-
4383 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4384 set dummy ${ac_build_prefix}gcc; ac_word=$2
4385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4387 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390 if test -n "$BUILD_CC"; then
4391 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4392 else
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4400 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4402 break 2
4404 done
4405 done
4406 IFS=$as_save_IFS
4410 BUILD_CC=$ac_cv_prog_BUILD_CC
4411 if test -n "$BUILD_CC"; then
4412 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4413 echo "${ECHO_T}$BUILD_CC" >&6; }
4414 else
4415 { echo "$as_me:$LINENO: result: no" >&5
4416 echo "${ECHO_T}no" >&6; }
4420 if test -z "$BUILD_CC"; then
4421 # Extract the first word of "gcc", so it can be a program name with args.
4422 set dummy gcc; ac_word=$2
4423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4425 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 else
4428 if test -n "$BUILD_CC"; then
4429 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4430 else
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4438 ac_cv_prog_BUILD_CC="gcc"
4439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440 break 2
4442 done
4443 done
4444 IFS=$as_save_IFS
4448 BUILD_CC=$ac_cv_prog_BUILD_CC
4449 if test -n "$BUILD_CC"; then
4450 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4451 echo "${ECHO_T}$BUILD_CC" >&6; }
4452 else
4453 { echo "$as_me:$LINENO: result: no" >&5
4454 echo "${ECHO_T}no" >&6; }
4458 if test -z "$BUILD_CC"; then
4459 # Extract the first word of "cc", so it can be a program name with args.
4460 set dummy cc; ac_word=$2
4461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4463 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466 if test -n "$BUILD_CC"; then
4467 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4468 else
4469 ac_prog_rejected=no
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4477 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4478 ac_prog_rejected=yes
4479 continue
4481 ac_cv_prog_BUILD_CC="cc"
4482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 break 2
4485 done
4486 done
4487 IFS=$as_save_IFS
4489 if test $ac_prog_rejected = yes; then
4490 # We found a bogon in the path, so make sure we never use it.
4491 set dummy $ac_cv_prog_BUILD_CC
4492 shift
4493 if test $# != 0; then
4494 # We chose a different compiler from the bogus one.
4495 # However, it has the same basename, so the bogon will be chosen
4496 # first if we set BUILD_CC to just the basename; use the full file name.
4497 shift
4498 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4503 BUILD_CC=$ac_cv_prog_BUILD_CC
4504 if test -n "$BUILD_CC"; then
4505 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4506 echo "${ECHO_T}$BUILD_CC" >&6; }
4507 else
4508 { echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6; }
4515 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4516 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4517 { (exit 1); exit 1; }; }
4518 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4519 rm -f conftest*
4520 echo 'int main () { return 0; }' > conftest.$ac_ext
4521 ac_cv_build_exeext=
4522 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4523 (eval $ac_build_link) 2>&5
4524 ac_status=$?
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; then
4527 for file in conftest.*; do
4528 case $file in
4529 *.c | *.o | *.obj | *.dSYM) ;;
4530 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4531 esac
4532 done
4533 else
4534 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4535 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4536 { (exit 1); exit 1; }; }
4538 rm -f conftest*
4539 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4543 BUILD_EXEEXT=""
4544 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4545 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4546 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4547 ac_build_exeext=$BUILD_EXEEXT
4549 ac_build_prefix=${build_alias}-
4550 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4551 set dummy ${ac_build_prefix}g++; ac_word=$2
4552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4554 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557 if test -n "$BUILD_CXX"; then
4558 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4559 else
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4567 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 break 2
4571 done
4572 done
4573 IFS=$as_save_IFS
4577 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4578 if test -n "$BUILD_CXX"; then
4579 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4580 echo "${ECHO_T}$BUILD_CXX" >&6; }
4581 else
4582 { echo "$as_me:$LINENO: result: no" >&5
4583 echo "${ECHO_T}no" >&6; }
4587 if test -z "$BUILD_CXX"; then
4588 # Extract the first word of "g++", so it can be a program name with args.
4589 set dummy g++; ac_word=$2
4590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4592 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595 if test -n "$BUILD_CXX"; then
4596 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4597 else
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4605 ac_cv_prog_BUILD_CXX="g++"
4606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 break 2
4609 done
4610 done
4611 IFS=$as_save_IFS
4615 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4616 if test -n "$BUILD_CXX"; then
4617 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4618 echo "${ECHO_T}$BUILD_CXX" >&6; }
4619 else
4620 { echo "$as_me:$LINENO: result: no" >&5
4621 echo "${ECHO_T}no" >&6; }
4625 if test -z "$BUILD_CXX"; then
4626 # Extract the first word of "c++", so it can be a program name with args.
4627 set dummy c++; ac_word=$2
4628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4630 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 else
4633 if test -n "$BUILD_CXX"; then
4634 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4635 else
4636 ac_prog_rejected=no
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4644 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4645 ac_prog_rejected=yes
4646 continue
4648 ac_cv_prog_BUILD_CXX="c++"
4649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 break 2
4652 done
4653 done
4654 IFS=$as_save_IFS
4656 if test $ac_prog_rejected = yes; then
4657 # We found a bogon in the path, so make sure we never use it.
4658 set dummy $ac_cv_prog_BUILD_CXX
4659 shift
4660 if test $# != 0; then
4661 # We chose a different compiler from the bogus one.
4662 # However, it has the same basename, so the bogon will be chosen
4663 # first if we set BUILD_CXX to just the basename; use the full file name.
4664 shift
4665 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4670 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4671 if test -n "$BUILD_CXX"; then
4672 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4673 echo "${ECHO_T}$BUILD_CXX" >&6; }
4674 else
4675 { echo "$as_me:$LINENO: result: no" >&5
4676 echo "${ECHO_T}no" >&6; }
4682 else
4683 LLVM_CROSS_COMPILING=0
4687 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4688 cvsbuild="yes"
4689 optimize="no"
4690 CVSBUILD=CVSBUILD=1
4692 else
4693 cvsbuild="no"
4694 optimize="yes"
4698 # Check whether --enable-optimized was given.
4699 if test "${enable_optimized+set}" = set; then
4700 enableval=$enable_optimized;
4701 else
4702 enableval=$optimize
4705 if test ${enableval} = "no" ; then
4706 ENABLE_OPTIMIZED=
4708 else
4709 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4713 # Check whether --enable-profiling was given.
4714 if test "${enable_profiling+set}" = set; then
4715 enableval=$enable_profiling;
4716 else
4717 enableval="no"
4720 if test ${enableval} = "no" ; then
4721 ENABLE_PROFILING=
4723 else
4724 ENABLE_PROFILING=ENABLE_PROFILING=1
4728 # Check whether --enable-assertions was given.
4729 if test "${enable_assertions+set}" = set; then
4730 enableval=$enable_assertions;
4731 else
4732 enableval="yes"
4735 if test ${enableval} = "yes" ; then
4736 DISABLE_ASSERTIONS=
4738 else
4739 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4743 # Check whether --enable-expensive-checks was given.
4744 if test "${enable_expensive_checks+set}" = set; then
4745 enableval=$enable_expensive_checks;
4746 else
4747 enableval="no"
4750 if test ${enableval} = "yes" ; then
4751 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4753 EXPENSIVE_CHECKS=yes
4755 else
4756 ENABLE_EXPENSIVE_CHECKS=
4758 EXPENSIVE_CHECKS=no
4762 # Check whether --enable-debug-runtime was given.
4763 if test "${enable_debug_runtime+set}" = set; then
4764 enableval=$enable_debug_runtime;
4765 else
4766 enableval=no
4769 if test ${enableval} = "no" ; then
4770 DEBUG_RUNTIME=
4772 else
4773 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4777 # Check whether --enable-debug-symbols was given.
4778 if test "${enable_debug_symbols+set}" = set; then
4779 enableval=$enable_debug_symbols;
4780 else
4781 enableval=no
4784 if test ${enableval} = "no" ; then
4785 DEBUG_SYMBOLS=
4787 else
4788 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4792 # Check whether --enable-jit was given.
4793 if test "${enable_jit+set}" = set; then
4794 enableval=$enable_jit;
4795 else
4796 enableval=default
4799 if test ${enableval} = "no"
4800 then
4801 JIT=
4803 else
4804 case "$llvm_cv_target_arch" in
4805 x86) TARGET_HAS_JIT=1
4807 Sparc) TARGET_HAS_JIT=0
4809 PowerPC) TARGET_HAS_JIT=1
4811 x86_64) TARGET_HAS_JIT=1
4813 Alpha) TARGET_HAS_JIT=1
4815 ARM) TARGET_HAS_JIT=1
4817 Mips) TARGET_HAS_JIT=0
4819 PIC16) TARGET_HAS_JIT=0
4821 XCore) TARGET_HAS_JIT=0
4823 MSP430) TARGET_HAS_JIT=0
4825 SystemZ) TARGET_HAS_JIT=0
4827 Blackfin) TARGET_HAS_JIT=0
4829 MBlaze) TARGET_HAS_JIT=0
4831 *) TARGET_HAS_JIT=0
4833 esac
4836 # Check whether --enable-doxygen was given.
4837 if test "${enable_doxygen+set}" = set; then
4838 enableval=$enable_doxygen;
4839 else
4840 enableval=default
4843 case "$enableval" in
4844 yes) ENABLE_DOXYGEN=1
4846 no) ENABLE_DOXYGEN=0
4848 default) ENABLE_DOXYGEN=0
4850 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4851 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4852 { (exit 1); exit 1; }; } ;;
4853 esac
4855 # Check whether --enable-threads was given.
4856 if test "${enable_threads+set}" = set; then
4857 enableval=$enable_threads;
4858 else
4859 enableval=default
4862 case "$enableval" in
4863 yes) ENABLE_THREADS=1
4865 no) ENABLE_THREADS=0
4867 default) ENABLE_THREADS=1
4869 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4870 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4871 { (exit 1); exit 1; }; } ;;
4872 esac
4874 cat >>confdefs.h <<_ACEOF
4875 #define ENABLE_THREADS $ENABLE_THREADS
4876 _ACEOF
4879 # Check whether --enable-pic was given.
4880 if test "${enable_pic+set}" = set; then
4881 enableval=$enable_pic;
4882 else
4883 enableval=default
4886 case "$enableval" in
4887 yes) ENABLE_PIC=1
4889 no) ENABLE_PIC=0
4891 default) ENABLE_PIC=1
4893 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4894 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4895 { (exit 1); exit 1; }; } ;;
4896 esac
4898 cat >>confdefs.h <<_ACEOF
4899 #define ENABLE_PIC $ENABLE_PIC
4900 _ACEOF
4903 # Check whether --enable-shared was given.
4904 if test "${enable_shared+set}" = set; then
4905 enableval=$enable_shared;
4906 else
4907 enableval=default
4910 case "$enableval" in
4911 yes) ENABLE_SHARED=1
4913 no) ENABLE_SHARED=0
4915 default) ENABLE_SHARED=0
4917 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4918 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4919 { (exit 1); exit 1; }; } ;;
4920 esac
4922 # Check whether --enable-timestamps was given.
4923 if test "${enable_timestamps+set}" = set; then
4924 enableval=$enable_timestamps;
4925 else
4926 enableval=default
4929 case "$enableval" in
4930 yes) ENABLE_TIMESTAMPS=1
4932 no) ENABLE_TIMESTAMPS=0
4934 default) ENABLE_TIMESTAMPS=1
4936 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4937 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4938 { (exit 1); exit 1; }; } ;;
4939 esac
4941 cat >>confdefs.h <<_ACEOF
4942 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4943 _ACEOF
4946 TARGETS_TO_BUILD=""
4947 # Check whether --enable-targets was given.
4948 if test "${enable_targets+set}" = set; then
4949 enableval=$enable_targets;
4950 else
4951 enableval=all
4954 if test "$enableval" = host-only ; then
4955 enableval=host
4957 case "$enableval" in
4958 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze" ;;
4959 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4960 case "$a_target" in
4961 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4962 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4963 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4964 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4965 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4966 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4967 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4968 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4969 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4970 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4971 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4972 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4973 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4974 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4975 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4976 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4977 host) case "$llvm_cv_target_arch" in
4978 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4979 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4980 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4981 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4982 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4983 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4984 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4985 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4986 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4987 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4988 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4989 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4990 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4991 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4992 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4993 echo "$as_me: error: Can not set target to build" >&2;}
4994 { (exit 1); exit 1; }; } ;;
4995 esac ;;
4996 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4997 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4998 { (exit 1); exit 1; }; } ;;
4999 esac
5000 done
5002 esac
5003 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5006 # Determine whether we are building LLVM support for the native architecture.
5007 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5008 for a_target in $TARGETS_TO_BUILD; do
5009 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5011 cat >>confdefs.h <<_ACEOF
5012 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5013 _ACEOF
5015 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5016 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5017 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5019 cat >>confdefs.h <<_ACEOF
5020 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5021 _ACEOF
5024 cat >>confdefs.h <<_ACEOF
5025 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5026 _ACEOF
5029 cat >>confdefs.h <<_ACEOF
5030 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5031 _ACEOF
5034 done
5036 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5037 # target feature def files.
5038 LLVM_ENUM_TARGETS=""
5039 LLVM_ENUM_ASM_PRINTERS=""
5040 LLVM_ENUM_ASM_PARSERS=""
5041 LLVM_ENUM_DISASSEMBLERS=""
5042 for target_to_build in $TARGETS_TO_BUILD; do
5043 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5044 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5045 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5047 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5048 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5050 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5051 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5053 done
5059 # Check whether --enable-cbe-printf-a was given.
5060 if test "${enable_cbe_printf_a+set}" = set; then
5061 enableval=$enable_cbe_printf_a;
5062 else
5063 enableval=default
5066 case "$enableval" in
5067 yes) ENABLE_CBE_PRINTF_A=1
5069 no) ENABLE_CBE_PRINTF_A=0
5071 default) ENABLE_CBE_PRINTF_A=1
5073 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5074 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5075 { (exit 1); exit 1; }; } ;;
5076 esac
5078 cat >>confdefs.h <<_ACEOF
5079 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5080 _ACEOF
5084 # Check whether --with-llvmgccdir was given.
5085 if test "${with_llvmgccdir+set}" = set; then
5086 withval=$with_llvmgccdir;
5087 else
5088 withval=default
5091 case "$withval" in
5092 default) WITH_LLVMGCCDIR=default ;;
5093 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5094 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5095 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5096 { (exit 1); exit 1; }; } ;;
5097 esac
5100 # Check whether --with-llvmgcc was given.
5101 if test "${with_llvmgcc+set}" = set; then
5102 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5103 WITH_LLVMGCCDIR=""
5108 # Check whether --with-llvmgxx was given.
5109 if test "${with_llvmgxx+set}" = set; then
5110 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5111 WITH_LLVMGCCDIR=""
5115 if test -n "$LLVMGCC"; then
5116 LLVMGCCCOMMAND="$LLVMGCC"
5119 if test -n "$LLVMGXX"; then
5120 LLVMGXXCOMMAND="$LLVMGXX"
5123 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5124 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5125 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5126 { (exit 1); exit 1; }; };
5129 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5130 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5131 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5132 { (exit 1); exit 1; }; };
5136 # Check whether --with-clang was given.
5137 if test "${with_clang+set}" = set; then
5138 withval=$with_clang;
5139 else
5140 with_clang=default
5145 # Check whether --with-built-clang was given.
5146 if test "${with_built_clang+set}" = set; then
5147 withval=$with_built_clang;
5148 else
5149 with_built_clang=check
5153 { echo "$as_me:$LINENO: checking clang compiler" >&5
5154 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5155 WITH_CLANGPATH=""
5156 WITH_BUILT_CLANG=0
5157 if test "$with_clang" != "default"; then
5158 WITH_CLANGPATH="$with_clang"
5159 if ! test -x "$WITH_CLANGPATH"; then
5160 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5161 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5162 { (exit 1); exit 1; }; }
5164 elif test "$with_built_clang" = "yes"; then
5165 WITH_BUILT_CLANG=1
5166 elif test "$with_built_clang" = "no"; then
5167 WITH_BUILT_CLANG=0
5168 else
5169 if test "$with_built_clang" != "check"; then
5170 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5171 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5172 { (exit 1); exit 1; }; }
5175 if test -f ${srcdir}/tools/clang/README.txt; then
5176 WITH_BUILT_CLANG=1
5180 if ! test -z "$WITH_CLANGPATH"; then
5181 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5182 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5183 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5184 elif test "$WITH_BUILT_CLANG" = "1"; then
5185 { echo "$as_me:$LINENO: result: built" >&5
5186 echo "${ECHO_T}built" >&6; }
5187 else
5188 { echo "$as_me:$LINENO: result: none" >&5
5189 echo "${ECHO_T}none" >&6; }
5191 CLANGPATH=$WITH_CLANGPATH
5193 CLANGXXPATH=$WITH_CLANGXXPATH
5195 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5199 # Check whether --with-optimize-option was given.
5200 if test "${with_optimize_option+set}" = set; then
5201 withval=$with_optimize_option;
5202 else
5203 withval=default
5206 { echo "$as_me:$LINENO: checking optimization flags" >&5
5207 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5208 case "$withval" in
5209 default)
5210 case "$llvm_cv_os_type" in
5211 FreeBSD) optimize_option=-O2 ;;
5212 MingW) optimize_option=-O2 ;;
5213 *) optimize_option=-O3 ;;
5214 esac ;;
5215 *) optimize_option="$withval" ;;
5216 esac
5217 OPTIMIZE_OPTION=$optimize_option
5219 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5220 echo "${ECHO_T}$optimize_option" >&6; }
5223 # Check whether --with-extra-options was given.
5224 if test "${with_extra_options+set}" = set; then
5225 withval=$with_extra_options;
5226 else
5227 withval=default
5230 case "$withval" in
5231 default) EXTRA_OPTIONS= ;;
5232 *) EXTRA_OPTIONS=$withval ;;
5233 esac
5234 EXTRA_OPTIONS=$EXTRA_OPTIONS
5237 # Check whether --enable-bindings was given.
5238 if test "${enable_bindings+set}" = set; then
5239 enableval=$enable_bindings;
5240 else
5241 enableval=default
5244 BINDINGS_TO_BUILD=""
5245 case "$enableval" in
5246 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5247 all ) BINDINGS_TO_BUILD="ocaml" ;;
5248 none | no) BINDINGS_TO_BUILD="" ;;
5249 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5250 case "$a_binding" in
5251 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5252 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5253 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5254 { (exit 1); exit 1; }; } ;;
5255 esac
5256 done
5258 esac
5261 # Check whether --with-ocaml-libdir was given.
5262 if test "${with_ocaml_libdir+set}" = set; then
5263 withval=$with_ocaml_libdir;
5264 else
5265 withval=auto
5268 case "$withval" in
5269 auto) with_ocaml_libdir="$withval" ;;
5270 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5271 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5272 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5273 { (exit 1); exit 1; }; } ;;
5274 esac
5277 # Check whether --with-c-include-dirs was given.
5278 if test "${with_c_include_dirs+set}" = set; then
5279 withval=$with_c_include_dirs;
5280 else
5281 withval=""
5285 cat >>confdefs.h <<_ACEOF
5286 #define C_INCLUDE_DIRS "$withval"
5287 _ACEOF
5291 # Check whether --with-cxx-include-root was given.
5292 if test "${with_cxx_include_root+set}" = set; then
5293 withval=$with_cxx_include_root;
5294 else
5295 withval=""
5299 cat >>confdefs.h <<_ACEOF
5300 #define CXX_INCLUDE_ROOT "$withval"
5301 _ACEOF
5305 # Check whether --with-cxx-include-arch was given.
5306 if test "${with_cxx_include_arch+set}" = set; then
5307 withval=$with_cxx_include_arch;
5308 else
5309 withval=""
5313 cat >>confdefs.h <<_ACEOF
5314 #define CXX_INCLUDE_ARCH "$withval"
5315 _ACEOF
5319 # Check whether --with-cxx-include-32bit-dir was given.
5320 if test "${with_cxx_include_32bit_dir+set}" = set; then
5321 withval=$with_cxx_include_32bit_dir;
5322 else
5323 withval=""
5327 cat >>confdefs.h <<_ACEOF
5328 #define CXX_INCLUDE_32BIT_DIR "$withval"
5329 _ACEOF
5333 # Check whether --with-cxx-include-64bit-dir was given.
5334 if test "${with_cxx_include_64bit_dir+set}" = set; then
5335 withval=$with_cxx_include_64bit_dir;
5336 else
5337 withval=""
5341 cat >>confdefs.h <<_ACEOF
5342 #define CXX_INCLUDE_64BIT_DIR "$withval"
5343 _ACEOF
5347 # Check whether --with-binutils-include was given.
5348 if test "${with_binutils_include+set}" = set; then
5349 withval=$with_binutils_include;
5350 else
5351 withval=default
5354 case "$withval" in
5355 default) WITH_BINUTILS_INCDIR=default ;;
5356 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5357 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5358 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5359 { (exit 1); exit 1; }; } ;;
5360 esac
5361 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5362 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5364 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5365 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5366 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5367 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5368 { (exit 1); exit 1; }; };
5372 # Check whether --enable-libffi was given.
5373 if test "${enable_libffi+set}" = set; then
5374 enableval=$enable_libffi; case "$enableval" in
5375 yes) llvm_cv_enable_libffi="yes" ;;
5376 no) llvm_cv_enable_libffi="no" ;;
5377 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5378 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5379 { (exit 1); exit 1; }; } ;;
5380 esac
5381 else
5382 llvm_cv_enable_libffi=no
5387 ac_ext=c
5388 ac_cpp='$CPP $CPPFLAGS'
5389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5392 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5393 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5394 # On Suns, sometimes $CPP names a directory.
5395 if test -n "$CPP" && test -d "$CPP"; then
5396 CPP=
5398 if test -z "$CPP"; then
5399 if test "${ac_cv_prog_CPP+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5401 else
5402 # Double quotes because CPP needs to be expanded
5403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5405 ac_preproc_ok=false
5406 for ac_c_preproc_warn_flag in '' yes
5408 # Use a header file that comes with gcc, so configuring glibc
5409 # with a fresh cross-compiler works.
5410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5411 # <limits.h> exists even on freestanding compilers.
5412 # On the NeXT, cc -E runs the code through the compiler's parser,
5413 # not just through cpp. "Syntax error" is here to catch this case.
5414 cat >conftest.$ac_ext <<_ACEOF
5415 /* confdefs.h. */
5416 _ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h. */
5420 #ifdef __STDC__
5421 # include <limits.h>
5422 #else
5423 # include <assert.h>
5424 #endif
5425 Syntax error
5426 _ACEOF
5427 if { (ac_try="$ac_cpp conftest.$ac_ext"
5428 case "(($ac_try" in
5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5431 esac
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5434 ac_status=$?
5435 grep -v '^ *+' conftest.er1 >conftest.err
5436 rm -f conftest.er1
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } >/dev/null; then
5440 if test -s conftest.err; then
5441 ac_cpp_err=$ac_c_preproc_warn_flag
5442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5443 else
5444 ac_cpp_err=
5446 else
5447 ac_cpp_err=yes
5449 if test -z "$ac_cpp_err"; then
5451 else
5452 echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5455 # Broken: fails on valid input.
5456 continue
5459 rm -f conftest.err conftest.$ac_ext
5461 # OK, works on sane cases. Now check whether nonexistent headers
5462 # can be detected and how.
5463 cat >conftest.$ac_ext <<_ACEOF
5464 /* confdefs.h. */
5465 _ACEOF
5466 cat confdefs.h >>conftest.$ac_ext
5467 cat >>conftest.$ac_ext <<_ACEOF
5468 /* end confdefs.h. */
5469 #include <ac_nonexistent.h>
5470 _ACEOF
5471 if { (ac_try="$ac_cpp conftest.$ac_ext"
5472 case "(($ac_try" in
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5475 esac
5476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5478 ac_status=$?
5479 grep -v '^ *+' conftest.er1 >conftest.err
5480 rm -f conftest.er1
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } >/dev/null; then
5484 if test -s conftest.err; then
5485 ac_cpp_err=$ac_c_preproc_warn_flag
5486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5487 else
5488 ac_cpp_err=
5490 else
5491 ac_cpp_err=yes
5493 if test -z "$ac_cpp_err"; then
5494 # Broken: success on invalid input.
5495 continue
5496 else
5497 echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5500 # Passes both tests.
5501 ac_preproc_ok=:
5502 break
5505 rm -f conftest.err conftest.$ac_ext
5507 done
5508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5509 rm -f conftest.err conftest.$ac_ext
5510 if $ac_preproc_ok; then
5511 break
5514 done
5515 ac_cv_prog_CPP=$CPP
5518 CPP=$ac_cv_prog_CPP
5519 else
5520 ac_cv_prog_CPP=$CPP
5522 { echo "$as_me:$LINENO: result: $CPP" >&5
5523 echo "${ECHO_T}$CPP" >&6; }
5524 ac_preproc_ok=false
5525 for ac_c_preproc_warn_flag in '' yes
5527 # Use a header file that comes with gcc, so configuring glibc
5528 # with a fresh cross-compiler works.
5529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5530 # <limits.h> exists even on freestanding compilers.
5531 # On the NeXT, cc -E runs the code through the compiler's parser,
5532 # not just through cpp. "Syntax error" is here to catch this case.
5533 cat >conftest.$ac_ext <<_ACEOF
5534 /* confdefs.h. */
5535 _ACEOF
5536 cat confdefs.h >>conftest.$ac_ext
5537 cat >>conftest.$ac_ext <<_ACEOF
5538 /* end confdefs.h. */
5539 #ifdef __STDC__
5540 # include <limits.h>
5541 #else
5542 # include <assert.h>
5543 #endif
5544 Syntax error
5545 _ACEOF
5546 if { (ac_try="$ac_cpp conftest.$ac_ext"
5547 case "(($ac_try" in
5548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549 *) ac_try_echo=$ac_try;;
5550 esac
5551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5553 ac_status=$?
5554 grep -v '^ *+' conftest.er1 >conftest.err
5555 rm -f conftest.er1
5556 cat conftest.err >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } >/dev/null; then
5559 if test -s conftest.err; then
5560 ac_cpp_err=$ac_c_preproc_warn_flag
5561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5562 else
5563 ac_cpp_err=
5565 else
5566 ac_cpp_err=yes
5568 if test -z "$ac_cpp_err"; then
5570 else
5571 echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5574 # Broken: fails on valid input.
5575 continue
5578 rm -f conftest.err conftest.$ac_ext
5580 # OK, works on sane cases. Now check whether nonexistent headers
5581 # can be detected and how.
5582 cat >conftest.$ac_ext <<_ACEOF
5583 /* confdefs.h. */
5584 _ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5588 #include <ac_nonexistent.h>
5589 _ACEOF
5590 if { (ac_try="$ac_cpp conftest.$ac_ext"
5591 case "(($ac_try" in
5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593 *) ac_try_echo=$ac_try;;
5594 esac
5595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5597 ac_status=$?
5598 grep -v '^ *+' conftest.er1 >conftest.err
5599 rm -f conftest.er1
5600 cat conftest.err >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } >/dev/null; then
5603 if test -s conftest.err; then
5604 ac_cpp_err=$ac_c_preproc_warn_flag
5605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5606 else
5607 ac_cpp_err=
5609 else
5610 ac_cpp_err=yes
5612 if test -z "$ac_cpp_err"; then
5613 # Broken: success on invalid input.
5614 continue
5615 else
5616 echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5619 # Passes both tests.
5620 ac_preproc_ok=:
5621 break
5624 rm -f conftest.err conftest.$ac_ext
5626 done
5627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5628 rm -f conftest.err conftest.$ac_ext
5629 if $ac_preproc_ok; then
5631 else
5632 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5633 See \`config.log' for more details." >&5
5634 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5635 See \`config.log' for more details." >&2;}
5636 { (exit 1); exit 1; }; }
5639 ac_ext=c
5640 ac_cpp='$CPP $CPPFLAGS'
5641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5645 ac_ext=c
5646 ac_cpp='$CPP $CPPFLAGS'
5647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5650 if test -n "$ac_tool_prefix"; then
5651 for ac_prog in gcc
5653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5657 if test "${ac_cv_prog_CC+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5659 else
5660 if test -n "$CC"; then
5661 ac_cv_prog_CC="$CC" # Let the user override the test.
5662 else
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 for as_dir in $PATH
5666 IFS=$as_save_IFS
5667 test -z "$as_dir" && as_dir=.
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5672 break 2
5674 done
5675 done
5676 IFS=$as_save_IFS
5680 CC=$ac_cv_prog_CC
5681 if test -n "$CC"; then
5682 { echo "$as_me:$LINENO: result: $CC" >&5
5683 echo "${ECHO_T}$CC" >&6; }
5684 else
5685 { echo "$as_me:$LINENO: result: no" >&5
5686 echo "${ECHO_T}no" >&6; }
5690 test -n "$CC" && break
5691 done
5693 if test -z "$CC"; then
5694 ac_ct_CC=$CC
5695 for ac_prog in gcc
5697 # Extract the first word of "$ac_prog", so it can be a program name with args.
5698 set dummy $ac_prog; ac_word=$2
5699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5701 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5703 else
5704 if test -n "$ac_ct_CC"; then
5705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5706 else
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 for as_dir in $PATH
5710 IFS=$as_save_IFS
5711 test -z "$as_dir" && as_dir=.
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5714 ac_cv_prog_ac_ct_CC="$ac_prog"
5715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5716 break 2
5718 done
5719 done
5720 IFS=$as_save_IFS
5724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5725 if test -n "$ac_ct_CC"; then
5726 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5727 echo "${ECHO_T}$ac_ct_CC" >&6; }
5728 else
5729 { echo "$as_me:$LINENO: result: no" >&5
5730 echo "${ECHO_T}no" >&6; }
5734 test -n "$ac_ct_CC" && break
5735 done
5737 if test "x$ac_ct_CC" = x; then
5738 CC=""
5739 else
5740 case $cross_compiling:$ac_tool_warned in
5741 yes:)
5742 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5743 whose name does not start with the host triplet. If you think this
5744 configuration is useful to you, please write to autoconf@gnu.org." >&5
5745 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5746 whose name does not start with the host triplet. If you think this
5747 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5748 ac_tool_warned=yes ;;
5749 esac
5750 CC=$ac_ct_CC
5755 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5756 See \`config.log' for more details." >&5
5757 echo "$as_me: error: no acceptable C compiler found in \$PATH
5758 See \`config.log' for more details." >&2;}
5759 { (exit 1); exit 1; }; }
5761 # Provide some information about the compiler.
5762 echo "$as_me:$LINENO: checking for C compiler version" >&5
5763 ac_compiler=`set X $ac_compile; echo $2`
5764 { (ac_try="$ac_compiler --version >&5"
5765 case "(($ac_try" in
5766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5767 *) ac_try_echo=$ac_try;;
5768 esac
5769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5770 (eval "$ac_compiler --version >&5") 2>&5
5771 ac_status=$?
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }
5774 { (ac_try="$ac_compiler -v >&5"
5775 case "(($ac_try" in
5776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5777 *) ac_try_echo=$ac_try;;
5778 esac
5779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780 (eval "$ac_compiler -v >&5") 2>&5
5781 ac_status=$?
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }
5784 { (ac_try="$ac_compiler -V >&5"
5785 case "(($ac_try" in
5786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787 *) ac_try_echo=$ac_try;;
5788 esac
5789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790 (eval "$ac_compiler -V >&5") 2>&5
5791 ac_status=$?
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }
5795 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5796 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5797 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 else
5800 cat >conftest.$ac_ext <<_ACEOF
5801 /* confdefs.h. */
5802 _ACEOF
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h. */
5808 main ()
5810 #ifndef __GNUC__
5811 choke me
5812 #endif
5815 return 0;
5817 _ACEOF
5818 rm -f conftest.$ac_objext
5819 if { (ac_try="$ac_compile"
5820 case "(($ac_try" in
5821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5822 *) ac_try_echo=$ac_try;;
5823 esac
5824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5825 (eval "$ac_compile") 2>conftest.er1
5826 ac_status=$?
5827 grep -v '^ *+' conftest.er1 >conftest.err
5828 rm -f conftest.er1
5829 cat conftest.err >&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); } &&
5832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5833 { (case "(($ac_try" in
5834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835 *) ac_try_echo=$ac_try;;
5836 esac
5837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5838 (eval "$ac_try") 2>&5
5839 ac_status=$?
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; } &&
5842 { ac_try='test -s conftest.$ac_objext'
5843 { (case "(($ac_try" in
5844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5845 *) ac_try_echo=$ac_try;;
5846 esac
5847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5848 (eval "$ac_try") 2>&5
5849 ac_status=$?
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; }; then
5852 ac_compiler_gnu=yes
5853 else
5854 echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5857 ac_compiler_gnu=no
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5864 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5865 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5866 GCC=`test $ac_compiler_gnu = yes && echo yes`
5867 ac_test_CFLAGS=${CFLAGS+set}
5868 ac_save_CFLAGS=$CFLAGS
5869 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5870 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5871 if test "${ac_cv_prog_cc_g+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874 ac_save_c_werror_flag=$ac_c_werror_flag
5875 ac_c_werror_flag=yes
5876 ac_cv_prog_cc_g=no
5877 CFLAGS="-g"
5878 cat >conftest.$ac_ext <<_ACEOF
5879 /* confdefs.h. */
5880 _ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5886 main ()
5890 return 0;
5892 _ACEOF
5893 rm -f conftest.$ac_objext
5894 if { (ac_try="$ac_compile"
5895 case "(($ac_try" in
5896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5897 *) ac_try_echo=$ac_try;;
5898 esac
5899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5900 (eval "$ac_compile") 2>conftest.er1
5901 ac_status=$?
5902 grep -v '^ *+' conftest.er1 >conftest.err
5903 rm -f conftest.er1
5904 cat conftest.err >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } &&
5907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5908 { (case "(($ac_try" in
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5911 esac
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_try") 2>&5
5914 ac_status=$?
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; } &&
5917 { ac_try='test -s conftest.$ac_objext'
5918 { (case "(($ac_try" in
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5921 esac
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_try") 2>&5
5924 ac_status=$?
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; }; then
5927 ac_cv_prog_cc_g=yes
5928 else
5929 echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5932 CFLAGS=""
5933 cat >conftest.$ac_ext <<_ACEOF
5934 /* confdefs.h. */
5935 _ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h. */
5941 main ()
5945 return 0;
5947 _ACEOF
5948 rm -f conftest.$ac_objext
5949 if { (ac_try="$ac_compile"
5950 case "(($ac_try" in
5951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5952 *) ac_try_echo=$ac_try;;
5953 esac
5954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5955 (eval "$ac_compile") 2>conftest.er1
5956 ac_status=$?
5957 grep -v '^ *+' conftest.er1 >conftest.err
5958 rm -f conftest.er1
5959 cat conftest.err >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } &&
5962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5963 { (case "(($ac_try" in
5964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965 *) ac_try_echo=$ac_try;;
5966 esac
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968 (eval "$ac_try") 2>&5
5969 ac_status=$?
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; } &&
5972 { ac_try='test -s conftest.$ac_objext'
5973 { (case "(($ac_try" in
5974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975 *) ac_try_echo=$ac_try;;
5976 esac
5977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978 (eval "$ac_try") 2>&5
5979 ac_status=$?
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); }; }; then
5983 else
5984 echo "$as_me: failed program was:" >&5
5985 sed 's/^/| /' conftest.$ac_ext >&5
5987 ac_c_werror_flag=$ac_save_c_werror_flag
5988 CFLAGS="-g"
5989 cat >conftest.$ac_ext <<_ACEOF
5990 /* confdefs.h. */
5991 _ACEOF
5992 cat confdefs.h >>conftest.$ac_ext
5993 cat >>conftest.$ac_ext <<_ACEOF
5994 /* end confdefs.h. */
5997 main ()
6001 return 0;
6003 _ACEOF
6004 rm -f conftest.$ac_objext
6005 if { (ac_try="$ac_compile"
6006 case "(($ac_try" in
6007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008 *) ac_try_echo=$ac_try;;
6009 esac
6010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011 (eval "$ac_compile") 2>conftest.er1
6012 ac_status=$?
6013 grep -v '^ *+' conftest.er1 >conftest.err
6014 rm -f conftest.er1
6015 cat conftest.err >&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } &&
6018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6019 { (case "(($ac_try" in
6020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021 *) ac_try_echo=$ac_try;;
6022 esac
6023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6024 (eval "$ac_try") 2>&5
6025 ac_status=$?
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; } &&
6028 { ac_try='test -s conftest.$ac_objext'
6029 { (case "(($ac_try" in
6030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6031 *) ac_try_echo=$ac_try;;
6032 esac
6033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6034 (eval "$ac_try") 2>&5
6035 ac_status=$?
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); }; }; then
6038 ac_cv_prog_cc_g=yes
6039 else
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053 ac_c_werror_flag=$ac_save_c_werror_flag
6055 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6056 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6057 if test "$ac_test_CFLAGS" = set; then
6058 CFLAGS=$ac_save_CFLAGS
6059 elif test $ac_cv_prog_cc_g = yes; then
6060 if test "$GCC" = yes; then
6061 CFLAGS="-g -O2"
6062 else
6063 CFLAGS="-g"
6065 else
6066 if test "$GCC" = yes; then
6067 CFLAGS="-O2"
6068 else
6069 CFLAGS=
6072 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6073 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6074 if test "${ac_cv_prog_cc_c89+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
6076 else
6077 ac_cv_prog_cc_c89=no
6078 ac_save_CC=$CC
6079 cat >conftest.$ac_ext <<_ACEOF
6080 /* confdefs.h. */
6081 _ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 #include <stdarg.h>
6086 #include <stdio.h>
6087 #include <sys/types.h>
6088 #include <sys/stat.h>
6089 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6090 struct buf { int x; };
6091 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6092 static char *e (p, i)
6093 char **p;
6094 int i;
6096 return p[i];
6098 static char *f (char * (*g) (char **, int), char **p, ...)
6100 char *s;
6101 va_list v;
6102 va_start (v,p);
6103 s = g (p, va_arg (v,int));
6104 va_end (v);
6105 return s;
6108 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6109 function prototypes and stuff, but not '\xHH' hex character constants.
6110 These don't provoke an error unfortunately, instead are silently treated
6111 as 'x'. The following induces an error, until -std is added to get
6112 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6113 array size at least. It's necessary to write '\x00'==0 to get something
6114 that's true only with -std. */
6115 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6117 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6118 inside strings and character constants. */
6119 #define FOO(x) 'x'
6120 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6122 int test (int i, double x);
6123 struct s1 {int (*f) (int a);};
6124 struct s2 {int (*f) (double a);};
6125 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6126 int argc;
6127 char **argv;
6129 main ()
6131 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6133 return 0;
6135 _ACEOF
6136 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6137 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6139 CC="$ac_save_CC $ac_arg"
6140 rm -f conftest.$ac_objext
6141 if { (ac_try="$ac_compile"
6142 case "(($ac_try" in
6143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6144 *) ac_try_echo=$ac_try;;
6145 esac
6146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6147 (eval "$ac_compile") 2>conftest.er1
6148 ac_status=$?
6149 grep -v '^ *+' conftest.er1 >conftest.err
6150 rm -f conftest.er1
6151 cat conftest.err >&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); } &&
6154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6155 { (case "(($ac_try" in
6156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157 *) ac_try_echo=$ac_try;;
6158 esac
6159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160 (eval "$ac_try") 2>&5
6161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; } &&
6164 { ac_try='test -s conftest.$ac_objext'
6165 { (case "(($ac_try" in
6166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6167 *) ac_try_echo=$ac_try;;
6168 esac
6169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6170 (eval "$ac_try") 2>&5
6171 ac_status=$?
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); }; }; then
6174 ac_cv_prog_cc_c89=$ac_arg
6175 else
6176 echo "$as_me: failed program was:" >&5
6177 sed 's/^/| /' conftest.$ac_ext >&5
6182 rm -f core conftest.err conftest.$ac_objext
6183 test "x$ac_cv_prog_cc_c89" != "xno" && break
6184 done
6185 rm -f conftest.$ac_ext
6186 CC=$ac_save_CC
6189 # AC_CACHE_VAL
6190 case "x$ac_cv_prog_cc_c89" in
6192 { echo "$as_me:$LINENO: result: none needed" >&5
6193 echo "${ECHO_T}none needed" >&6; } ;;
6194 xno)
6195 { echo "$as_me:$LINENO: result: unsupported" >&5
6196 echo "${ECHO_T}unsupported" >&6; } ;;
6198 CC="$CC $ac_cv_prog_cc_c89"
6199 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6200 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6201 esac
6204 ac_ext=c
6205 ac_cpp='$CPP $CPPFLAGS'
6206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6210 ac_ext=cpp
6211 ac_cpp='$CXXCPP $CPPFLAGS'
6212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6215 if test -z "$CXX"; then
6216 if test -n "$CCC"; then
6217 CXX=$CCC
6218 else
6219 if test -n "$ac_tool_prefix"; then
6220 for ac_prog in g++
6222 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6223 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6226 if test "${ac_cv_prog_CXX+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 else
6229 if test -n "$CXX"; then
6230 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6231 else
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH
6235 IFS=$as_save_IFS
6236 test -z "$as_dir" && as_dir=.
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6239 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6241 break 2
6243 done
6244 done
6245 IFS=$as_save_IFS
6249 CXX=$ac_cv_prog_CXX
6250 if test -n "$CXX"; then
6251 { echo "$as_me:$LINENO: result: $CXX" >&5
6252 echo "${ECHO_T}$CXX" >&6; }
6253 else
6254 { echo "$as_me:$LINENO: result: no" >&5
6255 echo "${ECHO_T}no" >&6; }
6259 test -n "$CXX" && break
6260 done
6262 if test -z "$CXX"; then
6263 ac_ct_CXX=$CXX
6264 for ac_prog in g++
6266 # Extract the first word of "$ac_prog", so it can be a program name with args.
6267 set dummy $ac_prog; ac_word=$2
6268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6270 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6272 else
6273 if test -n "$ac_ct_CXX"; then
6274 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6275 else
6276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277 for as_dir in $PATH
6279 IFS=$as_save_IFS
6280 test -z "$as_dir" && as_dir=.
6281 for ac_exec_ext in '' $ac_executable_extensions; do
6282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6283 ac_cv_prog_ac_ct_CXX="$ac_prog"
6284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6285 break 2
6287 done
6288 done
6289 IFS=$as_save_IFS
6293 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6294 if test -n "$ac_ct_CXX"; then
6295 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6296 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6297 else
6298 { echo "$as_me:$LINENO: result: no" >&5
6299 echo "${ECHO_T}no" >&6; }
6303 test -n "$ac_ct_CXX" && break
6304 done
6306 if test "x$ac_ct_CXX" = x; then
6307 CXX="g++"
6308 else
6309 case $cross_compiling:$ac_tool_warned in
6310 yes:)
6311 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6312 whose name does not start with the host triplet. If you think this
6313 configuration is useful to you, please write to autoconf@gnu.org." >&5
6314 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6315 whose name does not start with the host triplet. If you think this
6316 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6317 ac_tool_warned=yes ;;
6318 esac
6319 CXX=$ac_ct_CXX
6325 # Provide some information about the compiler.
6326 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6327 ac_compiler=`set X $ac_compile; echo $2`
6328 { (ac_try="$ac_compiler --version >&5"
6329 case "(($ac_try" in
6330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6331 *) ac_try_echo=$ac_try;;
6332 esac
6333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6334 (eval "$ac_compiler --version >&5") 2>&5
6335 ac_status=$?
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }
6338 { (ac_try="$ac_compiler -v >&5"
6339 case "(($ac_try" in
6340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6341 *) ac_try_echo=$ac_try;;
6342 esac
6343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344 (eval "$ac_compiler -v >&5") 2>&5
6345 ac_status=$?
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }
6348 { (ac_try="$ac_compiler -V >&5"
6349 case "(($ac_try" in
6350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351 *) ac_try_echo=$ac_try;;
6352 esac
6353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354 (eval "$ac_compiler -V >&5") 2>&5
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }
6359 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6360 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6361 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
6363 else
6364 cat >conftest.$ac_ext <<_ACEOF
6365 /* confdefs.h. */
6366 _ACEOF
6367 cat confdefs.h >>conftest.$ac_ext
6368 cat >>conftest.$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6372 main ()
6374 #ifndef __GNUC__
6375 choke me
6376 #endif
6379 return 0;
6381 _ACEOF
6382 rm -f conftest.$ac_objext
6383 if { (ac_try="$ac_compile"
6384 case "(($ac_try" in
6385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6386 *) ac_try_echo=$ac_try;;
6387 esac
6388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6389 (eval "$ac_compile") 2>conftest.er1
6390 ac_status=$?
6391 grep -v '^ *+' conftest.er1 >conftest.err
6392 rm -f conftest.er1
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6397 { (case "(($ac_try" in
6398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6399 *) ac_try_echo=$ac_try;;
6400 esac
6401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6402 (eval "$ac_try") 2>&5
6403 ac_status=$?
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); }; } &&
6406 { ac_try='test -s conftest.$ac_objext'
6407 { (case "(($ac_try" in
6408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409 *) ac_try_echo=$ac_try;;
6410 esac
6411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6412 (eval "$ac_try") 2>&5
6413 ac_status=$?
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; }; then
6416 ac_compiler_gnu=yes
6417 else
6418 echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6421 ac_compiler_gnu=no
6424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6428 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6429 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6430 GXX=`test $ac_compiler_gnu = yes && echo yes`
6431 ac_test_CXXFLAGS=${CXXFLAGS+set}
6432 ac_save_CXXFLAGS=$CXXFLAGS
6433 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6434 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6435 if test "${ac_cv_prog_cxx_g+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6437 else
6438 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6439 ac_cxx_werror_flag=yes
6440 ac_cv_prog_cxx_g=no
6441 CXXFLAGS="-g"
6442 cat >conftest.$ac_ext <<_ACEOF
6443 /* confdefs.h. */
6444 _ACEOF
6445 cat confdefs.h >>conftest.$ac_ext
6446 cat >>conftest.$ac_ext <<_ACEOF
6447 /* end confdefs.h. */
6450 main ()
6454 return 0;
6456 _ACEOF
6457 rm -f conftest.$ac_objext
6458 if { (ac_try="$ac_compile"
6459 case "(($ac_try" in
6460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6461 *) ac_try_echo=$ac_try;;
6462 esac
6463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464 (eval "$ac_compile") 2>conftest.er1
6465 ac_status=$?
6466 grep -v '^ *+' conftest.er1 >conftest.err
6467 rm -f conftest.er1
6468 cat conftest.err >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } &&
6471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6472 { (case "(($ac_try" in
6473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6474 *) ac_try_echo=$ac_try;;
6475 esac
6476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6477 (eval "$ac_try") 2>&5
6478 ac_status=$?
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); }; } &&
6481 { ac_try='test -s conftest.$ac_objext'
6482 { (case "(($ac_try" in
6483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484 *) ac_try_echo=$ac_try;;
6485 esac
6486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6487 (eval "$ac_try") 2>&5
6488 ac_status=$?
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); }; }; then
6491 ac_cv_prog_cxx_g=yes
6492 else
6493 echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.$ac_ext >&5
6496 CXXFLAGS=""
6497 cat >conftest.$ac_ext <<_ACEOF
6498 /* confdefs.h. */
6499 _ACEOF
6500 cat confdefs.h >>conftest.$ac_ext
6501 cat >>conftest.$ac_ext <<_ACEOF
6502 /* end confdefs.h. */
6505 main ()
6509 return 0;
6511 _ACEOF
6512 rm -f conftest.$ac_objext
6513 if { (ac_try="$ac_compile"
6514 case "(($ac_try" in
6515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6516 *) ac_try_echo=$ac_try;;
6517 esac
6518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6519 (eval "$ac_compile") 2>conftest.er1
6520 ac_status=$?
6521 grep -v '^ *+' conftest.er1 >conftest.err
6522 rm -f conftest.er1
6523 cat conftest.err >&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); } &&
6526 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6527 { (case "(($ac_try" in
6528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6529 *) ac_try_echo=$ac_try;;
6530 esac
6531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6532 (eval "$ac_try") 2>&5
6533 ac_status=$?
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; } &&
6536 { ac_try='test -s conftest.$ac_objext'
6537 { (case "(($ac_try" in
6538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6539 *) ac_try_echo=$ac_try;;
6540 esac
6541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6542 (eval "$ac_try") 2>&5
6543 ac_status=$?
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); }; }; then
6547 else
6548 echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6551 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6552 CXXFLAGS="-g"
6553 cat >conftest.$ac_ext <<_ACEOF
6554 /* confdefs.h. */
6555 _ACEOF
6556 cat confdefs.h >>conftest.$ac_ext
6557 cat >>conftest.$ac_ext <<_ACEOF
6558 /* end confdefs.h. */
6561 main ()
6565 return 0;
6567 _ACEOF
6568 rm -f conftest.$ac_objext
6569 if { (ac_try="$ac_compile"
6570 case "(($ac_try" in
6571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572 *) ac_try_echo=$ac_try;;
6573 esac
6574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6575 (eval "$ac_compile") 2>conftest.er1
6576 ac_status=$?
6577 grep -v '^ *+' conftest.er1 >conftest.err
6578 rm -f conftest.er1
6579 cat conftest.err >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); } &&
6582 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6583 { (case "(($ac_try" in
6584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6585 *) ac_try_echo=$ac_try;;
6586 esac
6587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6588 (eval "$ac_try") 2>&5
6589 ac_status=$?
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; } &&
6592 { ac_try='test -s conftest.$ac_objext'
6593 { (case "(($ac_try" in
6594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595 *) ac_try_echo=$ac_try;;
6596 esac
6597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6598 (eval "$ac_try") 2>&5
6599 ac_status=$?
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; }; then
6602 ac_cv_prog_cxx_g=yes
6603 else
6604 echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6617 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6619 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6620 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6621 if test "$ac_test_CXXFLAGS" = set; then
6622 CXXFLAGS=$ac_save_CXXFLAGS
6623 elif test $ac_cv_prog_cxx_g = yes; then
6624 if test "$GXX" = yes; then
6625 CXXFLAGS="-g -O2"
6626 else
6627 CXXFLAGS="-g"
6629 else
6630 if test "$GXX" = yes; then
6631 CXXFLAGS="-O2"
6632 else
6633 CXXFLAGS=
6636 ac_ext=c
6637 ac_cpp='$CPP $CPPFLAGS'
6638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6643 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6644 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6645 if test "${lt_cv_path_NM+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6647 else
6648 if test -n "$NM"; then
6649 # Let the user override the test.
6650 lt_cv_path_NM="$NM"
6651 else
6652 lt_nm_to_check="${ac_tool_prefix}nm"
6653 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6654 lt_nm_to_check="$lt_nm_to_check nm"
6656 for lt_tmp_nm in $lt_nm_to_check; do
6657 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6658 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6659 IFS="$lt_save_ifs"
6660 test -z "$ac_dir" && ac_dir=.
6661 tmp_nm="$ac_dir/$lt_tmp_nm"
6662 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6663 # Check to see if the nm accepts a BSD-compat flag.
6664 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6665 # nm: unknown option "B" ignored
6666 # Tru64's nm complains that /dev/null is an invalid object file
6667 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6668 */dev/null* | *'Invalid file or object type'*)
6669 lt_cv_path_NM="$tmp_nm -B"
6670 break
6673 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6674 */dev/null*)
6675 lt_cv_path_NM="$tmp_nm -p"
6676 break
6679 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6680 continue # so that we can try to find one that supports BSD flags
6682 esac
6684 esac
6686 done
6687 IFS="$lt_save_ifs"
6688 done
6689 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6692 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6693 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6694 NM="$lt_cv_path_NM"
6698 { echo "$as_me:$LINENO: checking for GNU make" >&5
6699 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6700 if test "${llvm_cv_gnu_make_command+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6702 else
6703 llvm_cv_gnu_make_command=''
6704 for a in "$MAKE" make gmake gnumake ; do
6705 if test -z "$a" ; then continue ; fi ;
6706 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6707 then
6708 llvm_cv_gnu_make_command=$a ;
6709 break;
6711 done
6713 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6714 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6715 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6716 ifGNUmake='' ;
6717 else
6718 ifGNUmake='#' ;
6719 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6720 echo "${ECHO_T}\"Not found\"" >&6; };
6724 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6725 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6726 LN_S=$as_ln_s
6727 if test "$LN_S" = "ln -s"; then
6728 { echo "$as_me:$LINENO: result: yes" >&5
6729 echo "${ECHO_T}yes" >&6; }
6730 else
6731 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6732 echo "${ECHO_T}no, using $LN_S" >&6; }
6735 # Extract the first word of "cmp", so it can be a program name with args.
6736 set dummy cmp; ac_word=$2
6737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6739 if test "${ac_cv_path_CMP+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 else
6742 case $CMP in
6743 [\\/]* | ?:[\\/]*)
6744 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 for as_dir in $PATH
6750 IFS=$as_save_IFS
6751 test -z "$as_dir" && as_dir=.
6752 for ac_exec_ext in '' $ac_executable_extensions; do
6753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6754 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6756 break 2
6758 done
6759 done
6760 IFS=$as_save_IFS
6762 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6764 esac
6766 CMP=$ac_cv_path_CMP
6767 if test -n "$CMP"; then
6768 { echo "$as_me:$LINENO: result: $CMP" >&5
6769 echo "${ECHO_T}$CMP" >&6; }
6770 else
6771 { echo "$as_me:$LINENO: result: no" >&5
6772 echo "${ECHO_T}no" >&6; }
6776 # Extract the first word of "cp", so it can be a program name with args.
6777 set dummy cp; ac_word=$2
6778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6780 if test "${ac_cv_path_CP+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6782 else
6783 case $CP in
6784 [\\/]* | ?:[\\/]*)
6785 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789 for as_dir in $PATH
6791 IFS=$as_save_IFS
6792 test -z "$as_dir" && as_dir=.
6793 for ac_exec_ext in '' $ac_executable_extensions; do
6794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6795 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6797 break 2
6799 done
6800 done
6801 IFS=$as_save_IFS
6803 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6805 esac
6807 CP=$ac_cv_path_CP
6808 if test -n "$CP"; then
6809 { echo "$as_me:$LINENO: result: $CP" >&5
6810 echo "${ECHO_T}$CP" >&6; }
6811 else
6812 { echo "$as_me:$LINENO: result: no" >&5
6813 echo "${ECHO_T}no" >&6; }
6817 # Extract the first word of "date", so it can be a program name with args.
6818 set dummy date; ac_word=$2
6819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6821 if test "${ac_cv_path_DATE+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 else
6824 case $DATE in
6825 [\\/]* | ?:[\\/]*)
6826 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 break 2
6840 done
6841 done
6842 IFS=$as_save_IFS
6844 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6846 esac
6848 DATE=$ac_cv_path_DATE
6849 if test -n "$DATE"; then
6850 { echo "$as_me:$LINENO: result: $DATE" >&5
6851 echo "${ECHO_T}$DATE" >&6; }
6852 else
6853 { echo "$as_me:$LINENO: result: no" >&5
6854 echo "${ECHO_T}no" >&6; }
6858 # Extract the first word of "find", so it can be a program name with args.
6859 set dummy find; ac_word=$2
6860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6862 if test "${ac_cv_path_FIND+set}" = set; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 else
6865 case $FIND in
6866 [\\/]* | ?:[\\/]*)
6867 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 for as_dir in $PATH
6873 IFS=$as_save_IFS
6874 test -z "$as_dir" && as_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6877 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6879 break 2
6881 done
6882 done
6883 IFS=$as_save_IFS
6885 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6887 esac
6889 FIND=$ac_cv_path_FIND
6890 if test -n "$FIND"; then
6891 { echo "$as_me:$LINENO: result: $FIND" >&5
6892 echo "${ECHO_T}$FIND" >&6; }
6893 else
6894 { echo "$as_me:$LINENO: result: no" >&5
6895 echo "${ECHO_T}no" >&6; }
6899 # Extract the first word of "grep", so it can be a program name with args.
6900 set dummy grep; ac_word=$2
6901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6903 if test "${ac_cv_path_GREP+set}" = set; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
6905 else
6906 case $GREP in
6907 [\\/]* | ?:[\\/]*)
6908 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 for as_dir in $PATH
6914 IFS=$as_save_IFS
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6918 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 break 2
6922 done
6923 done
6924 IFS=$as_save_IFS
6926 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6928 esac
6930 GREP=$ac_cv_path_GREP
6931 if test -n "$GREP"; then
6932 { echo "$as_me:$LINENO: result: $GREP" >&5
6933 echo "${ECHO_T}$GREP" >&6; }
6934 else
6935 { echo "$as_me:$LINENO: result: no" >&5
6936 echo "${ECHO_T}no" >&6; }
6940 # Extract the first word of "mkdir", so it can be a program name with args.
6941 set dummy mkdir; ac_word=$2
6942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6944 if test "${ac_cv_path_MKDIR+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6946 else
6947 case $MKDIR in
6948 [\\/]* | ?:[\\/]*)
6949 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in $PATH
6955 IFS=$as_save_IFS
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6959 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 break 2
6963 done
6964 done
6965 IFS=$as_save_IFS
6967 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6969 esac
6971 MKDIR=$ac_cv_path_MKDIR
6972 if test -n "$MKDIR"; then
6973 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6974 echo "${ECHO_T}$MKDIR" >&6; }
6975 else
6976 { echo "$as_me:$LINENO: result: no" >&5
6977 echo "${ECHO_T}no" >&6; }
6981 # Extract the first word of "mv", so it can be a program name with args.
6982 set dummy mv; ac_word=$2
6983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6985 if test "${ac_cv_path_MV+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 else
6988 case $MV in
6989 [\\/]* | ?:[\\/]*)
6990 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 for as_dir in $PATH
6996 IFS=$as_save_IFS
6997 test -z "$as_dir" && as_dir=.
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7000 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7002 break 2
7004 done
7005 done
7006 IFS=$as_save_IFS
7008 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7010 esac
7012 MV=$ac_cv_path_MV
7013 if test -n "$MV"; then
7014 { echo "$as_me:$LINENO: result: $MV" >&5
7015 echo "${ECHO_T}$MV" >&6; }
7016 else
7017 { echo "$as_me:$LINENO: result: no" >&5
7018 echo "${ECHO_T}no" >&6; }
7022 if test -n "$ac_tool_prefix"; then
7023 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7024 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7027 if test "${ac_cv_prog_RANLIB+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 else
7030 if test -n "$RANLIB"; then
7031 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7032 else
7033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 for as_dir in $PATH
7036 IFS=$as_save_IFS
7037 test -z "$as_dir" && as_dir=.
7038 for ac_exec_ext in '' $ac_executable_extensions; do
7039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7040 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7042 break 2
7044 done
7045 done
7046 IFS=$as_save_IFS
7050 RANLIB=$ac_cv_prog_RANLIB
7051 if test -n "$RANLIB"; then
7052 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7053 echo "${ECHO_T}$RANLIB" >&6; }
7054 else
7055 { echo "$as_me:$LINENO: result: no" >&5
7056 echo "${ECHO_T}no" >&6; }
7061 if test -z "$ac_cv_prog_RANLIB"; then
7062 ac_ct_RANLIB=$RANLIB
7063 # Extract the first word of "ranlib", so it can be a program name with args.
7064 set dummy ranlib; ac_word=$2
7065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7067 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 else
7070 if test -n "$ac_ct_RANLIB"; then
7071 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7072 else
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH
7076 IFS=$as_save_IFS
7077 test -z "$as_dir" && as_dir=.
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7080 ac_cv_prog_ac_ct_RANLIB="ranlib"
7081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 break 2
7084 done
7085 done
7086 IFS=$as_save_IFS
7090 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7091 if test -n "$ac_ct_RANLIB"; then
7092 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7093 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7094 else
7095 { echo "$as_me:$LINENO: result: no" >&5
7096 echo "${ECHO_T}no" >&6; }
7099 if test "x$ac_ct_RANLIB" = x; then
7100 RANLIB=":"
7101 else
7102 case $cross_compiling:$ac_tool_warned in
7103 yes:)
7104 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7105 whose name does not start with the host triplet. If you think this
7106 configuration is useful to you, please write to autoconf@gnu.org." >&5
7107 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7108 whose name does not start with the host triplet. If you think this
7109 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7110 ac_tool_warned=yes ;;
7111 esac
7112 RANLIB=$ac_ct_RANLIB
7114 else
7115 RANLIB="$ac_cv_prog_RANLIB"
7118 if test -n "$ac_tool_prefix"; then
7119 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7120 set dummy ${ac_tool_prefix}ar; ac_word=$2
7121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123 if test "${ac_cv_prog_AR+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 else
7126 if test -n "$AR"; then
7127 ac_cv_prog_AR="$AR" # Let the user override the test.
7128 else
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7132 IFS=$as_save_IFS
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7136 ac_cv_prog_AR="${ac_tool_prefix}ar"
7137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 break 2
7140 done
7141 done
7142 IFS=$as_save_IFS
7146 AR=$ac_cv_prog_AR
7147 if test -n "$AR"; then
7148 { echo "$as_me:$LINENO: result: $AR" >&5
7149 echo "${ECHO_T}$AR" >&6; }
7150 else
7151 { echo "$as_me:$LINENO: result: no" >&5
7152 echo "${ECHO_T}no" >&6; }
7157 if test -z "$ac_cv_prog_AR"; then
7158 ac_ct_AR=$AR
7159 # Extract the first word of "ar", so it can be a program name with args.
7160 set dummy ar; ac_word=$2
7161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7163 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166 if test -n "$ac_ct_AR"; then
7167 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7168 else
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7176 ac_cv_prog_ac_ct_AR="ar"
7177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 break 2
7180 done
7181 done
7182 IFS=$as_save_IFS
7186 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7187 if test -n "$ac_ct_AR"; then
7188 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7189 echo "${ECHO_T}$ac_ct_AR" >&6; }
7190 else
7191 { echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6; }
7195 if test "x$ac_ct_AR" = x; then
7196 AR="false"
7197 else
7198 case $cross_compiling:$ac_tool_warned in
7199 yes:)
7200 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7201 whose name does not start with the host triplet. If you think this
7202 configuration is useful to you, please write to autoconf@gnu.org." >&5
7203 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7204 whose name does not start with the host triplet. If you think this
7205 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7206 ac_tool_warned=yes ;;
7207 esac
7208 AR=$ac_ct_AR
7210 else
7211 AR="$ac_cv_prog_AR"
7214 # Extract the first word of "rm", so it can be a program name with args.
7215 set dummy rm; ac_word=$2
7216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7218 if test "${ac_cv_path_RM+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7220 else
7221 case $RM in
7222 [\\/]* | ?:[\\/]*)
7223 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 for as_dir in $PATH
7229 IFS=$as_save_IFS
7230 test -z "$as_dir" && as_dir=.
7231 for ac_exec_ext in '' $ac_executable_extensions; do
7232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7233 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7235 break 2
7237 done
7238 done
7239 IFS=$as_save_IFS
7241 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7243 esac
7245 RM=$ac_cv_path_RM
7246 if test -n "$RM"; then
7247 { echo "$as_me:$LINENO: result: $RM" >&5
7248 echo "${ECHO_T}$RM" >&6; }
7249 else
7250 { echo "$as_me:$LINENO: result: no" >&5
7251 echo "${ECHO_T}no" >&6; }
7255 # Extract the first word of "sed", so it can be a program name with args.
7256 set dummy sed; ac_word=$2
7257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7259 if test "${ac_cv_path_SED+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 else
7262 case $SED in
7263 [\\/]* | ?:[\\/]*)
7264 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 for as_dir in $PATH
7270 IFS=$as_save_IFS
7271 test -z "$as_dir" && as_dir=.
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7274 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 break 2
7278 done
7279 done
7280 IFS=$as_save_IFS
7282 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7284 esac
7286 SED=$ac_cv_path_SED
7287 if test -n "$SED"; then
7288 { echo "$as_me:$LINENO: result: $SED" >&5
7289 echo "${ECHO_T}$SED" >&6; }
7290 else
7291 { echo "$as_me:$LINENO: result: no" >&5
7292 echo "${ECHO_T}no" >&6; }
7296 # Extract the first word of "tar", so it can be a program name with args.
7297 set dummy tar; ac_word=$2
7298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7300 if test "${ac_cv_path_TAR+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 else
7303 case $TAR in
7304 [\\/]* | ?:[\\/]*)
7305 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 for as_dir in $PATH
7311 IFS=$as_save_IFS
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7315 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 break 2
7319 done
7320 done
7321 IFS=$as_save_IFS
7323 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7325 esac
7327 TAR=$ac_cv_path_TAR
7328 if test -n "$TAR"; then
7329 { echo "$as_me:$LINENO: result: $TAR" >&5
7330 echo "${ECHO_T}$TAR" >&6; }
7331 else
7332 { echo "$as_me:$LINENO: result: no" >&5
7333 echo "${ECHO_T}no" >&6; }
7337 # Extract the first word of "pwd", so it can be a program name with args.
7338 set dummy pwd; ac_word=$2
7339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7341 if test "${ac_cv_path_BINPWD+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7343 else
7344 case $BINPWD in
7345 [\\/]* | ?:[\\/]*)
7346 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350 for as_dir in $PATH
7352 IFS=$as_save_IFS
7353 test -z "$as_dir" && as_dir=.
7354 for ac_exec_ext in '' $ac_executable_extensions; do
7355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7356 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7358 break 2
7360 done
7361 done
7362 IFS=$as_save_IFS
7364 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7366 esac
7368 BINPWD=$ac_cv_path_BINPWD
7369 if test -n "$BINPWD"; then
7370 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7371 echo "${ECHO_T}$BINPWD" >&6; }
7372 else
7373 { echo "$as_me:$LINENO: result: no" >&5
7374 echo "${ECHO_T}no" >&6; }
7379 # Extract the first word of "Graphviz", so it can be a program name with args.
7380 set dummy Graphviz; ac_word=$2
7381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7383 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7385 else
7386 case $GRAPHVIZ in
7387 [\\/]* | ?:[\\/]*)
7388 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 for as_dir in $PATH
7394 IFS=$as_save_IFS
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7398 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7400 break 2
7402 done
7403 done
7404 IFS=$as_save_IFS
7406 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7408 esac
7410 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7411 if test -n "$GRAPHVIZ"; then
7412 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7413 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7414 else
7415 { echo "$as_me:$LINENO: result: no" >&5
7416 echo "${ECHO_T}no" >&6; }
7420 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7422 cat >>confdefs.h <<\_ACEOF
7423 #define HAVE_GRAPHVIZ 1
7424 _ACEOF
7426 if test "$llvm_cv_os_type" = "MingW" ; then
7427 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7430 cat >>confdefs.h <<_ACEOF
7431 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7432 _ACEOF
7435 # Extract the first word of "dot", so it can be a program name with args.
7436 set dummy dot; ac_word=$2
7437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7439 if test "${ac_cv_path_DOT+set}" = set; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
7441 else
7442 case $DOT in
7443 [\\/]* | ?:[\\/]*)
7444 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 for as_dir in $PATH
7450 IFS=$as_save_IFS
7451 test -z "$as_dir" && as_dir=.
7452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7454 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7456 break 2
7458 done
7459 done
7460 IFS=$as_save_IFS
7462 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7464 esac
7466 DOT=$ac_cv_path_DOT
7467 if test -n "$DOT"; then
7468 { echo "$as_me:$LINENO: result: $DOT" >&5
7469 echo "${ECHO_T}$DOT" >&6; }
7470 else
7471 { echo "$as_me:$LINENO: result: no" >&5
7472 echo "${ECHO_T}no" >&6; }
7476 if test "$DOT" != "echo dot" ; then
7478 cat >>confdefs.h <<\_ACEOF
7479 #define HAVE_DOT 1
7480 _ACEOF
7482 if test "$llvm_cv_os_type" = "MingW" ; then
7483 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7486 cat >>confdefs.h <<_ACEOF
7487 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7488 _ACEOF
7491 # Extract the first word of "fdp", so it can be a program name with args.
7492 set dummy fdp; ac_word=$2
7493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7495 if test "${ac_cv_path_FDP+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7497 else
7498 case $FDP in
7499 [\\/]* | ?:[\\/]*)
7500 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7506 IFS=$as_save_IFS
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7510 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7512 break 2
7514 done
7515 done
7516 IFS=$as_save_IFS
7518 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7520 esac
7522 FDP=$ac_cv_path_FDP
7523 if test -n "$FDP"; then
7524 { echo "$as_me:$LINENO: result: $FDP" >&5
7525 echo "${ECHO_T}$FDP" >&6; }
7526 else
7527 { echo "$as_me:$LINENO: result: no" >&5
7528 echo "${ECHO_T}no" >&6; }
7532 if test "$FDP" != "echo fdp" ; then
7534 cat >>confdefs.h <<\_ACEOF
7535 #define HAVE_FDP 1
7536 _ACEOF
7538 if test "$llvm_cv_os_type" = "MingW" ; then
7539 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7542 cat >>confdefs.h <<_ACEOF
7543 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7544 _ACEOF
7547 # Extract the first word of "neato", so it can be a program name with args.
7548 set dummy neato; ac_word=$2
7549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7551 if test "${ac_cv_path_NEATO+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 else
7554 case $NEATO in
7555 [\\/]* | ?:[\\/]*)
7556 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH
7562 IFS=$as_save_IFS
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7566 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 break 2
7570 done
7571 done
7572 IFS=$as_save_IFS
7574 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7576 esac
7578 NEATO=$ac_cv_path_NEATO
7579 if test -n "$NEATO"; then
7580 { echo "$as_me:$LINENO: result: $NEATO" >&5
7581 echo "${ECHO_T}$NEATO" >&6; }
7582 else
7583 { echo "$as_me:$LINENO: result: no" >&5
7584 echo "${ECHO_T}no" >&6; }
7588 if test "$NEATO" != "echo neato" ; then
7590 cat >>confdefs.h <<\_ACEOF
7591 #define HAVE_NEATO 1
7592 _ACEOF
7594 if test "$llvm_cv_os_type" = "MingW" ; then
7595 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7598 cat >>confdefs.h <<_ACEOF
7599 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7600 _ACEOF
7603 # Extract the first word of "twopi", so it can be a program name with args.
7604 set dummy twopi; ac_word=$2
7605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7607 if test "${ac_cv_path_TWOPI+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610 case $TWOPI in
7611 [\\/]* | ?:[\\/]*)
7612 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616 for as_dir in $PATH
7618 IFS=$as_save_IFS
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7622 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7624 break 2
7626 done
7627 done
7628 IFS=$as_save_IFS
7630 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7632 esac
7634 TWOPI=$ac_cv_path_TWOPI
7635 if test -n "$TWOPI"; then
7636 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7637 echo "${ECHO_T}$TWOPI" >&6; }
7638 else
7639 { echo "$as_me:$LINENO: result: no" >&5
7640 echo "${ECHO_T}no" >&6; }
7644 if test "$TWOPI" != "echo twopi" ; then
7646 cat >>confdefs.h <<\_ACEOF
7647 #define HAVE_TWOPI 1
7648 _ACEOF
7650 if test "$llvm_cv_os_type" = "MingW" ; then
7651 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7654 cat >>confdefs.h <<_ACEOF
7655 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7656 _ACEOF
7659 # Extract the first word of "circo", so it can be a program name with args.
7660 set dummy circo; ac_word=$2
7661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7663 if test "${ac_cv_path_CIRCO+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 else
7666 case $CIRCO in
7667 [\\/]* | ?:[\\/]*)
7668 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $PATH
7674 IFS=$as_save_IFS
7675 test -z "$as_dir" && as_dir=.
7676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7678 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7680 break 2
7682 done
7683 done
7684 IFS=$as_save_IFS
7686 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7688 esac
7690 CIRCO=$ac_cv_path_CIRCO
7691 if test -n "$CIRCO"; then
7692 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7693 echo "${ECHO_T}$CIRCO" >&6; }
7694 else
7695 { echo "$as_me:$LINENO: result: no" >&5
7696 echo "${ECHO_T}no" >&6; }
7700 if test "$CIRCO" != "echo circo" ; then
7702 cat >>confdefs.h <<\_ACEOF
7703 #define HAVE_CIRCO 1
7704 _ACEOF
7706 if test "$llvm_cv_os_type" = "MingW" ; then
7707 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7710 cat >>confdefs.h <<_ACEOF
7711 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7712 _ACEOF
7715 for ac_prog in gv gsview32
7717 # Extract the first word of "$ac_prog", so it can be a program name with args.
7718 set dummy $ac_prog; ac_word=$2
7719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7721 if test "${ac_cv_path_GV+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 else
7724 case $GV in
7725 [\\/]* | ?:[\\/]*)
7726 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 for as_dir in $PATH
7732 IFS=$as_save_IFS
7733 test -z "$as_dir" && as_dir=.
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7736 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7738 break 2
7740 done
7741 done
7742 IFS=$as_save_IFS
7745 esac
7747 GV=$ac_cv_path_GV
7748 if test -n "$GV"; then
7749 { echo "$as_me:$LINENO: result: $GV" >&5
7750 echo "${ECHO_T}$GV" >&6; }
7751 else
7752 { echo "$as_me:$LINENO: result: no" >&5
7753 echo "${ECHO_T}no" >&6; }
7757 test -n "$GV" && break
7758 done
7759 test -n "$GV" || GV="echo gv"
7761 if test "$GV" != "echo gv" ; then
7763 cat >>confdefs.h <<\_ACEOF
7764 #define HAVE_GV 1
7765 _ACEOF
7767 if test "$llvm_cv_os_type" = "MingW" ; then
7768 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7771 cat >>confdefs.h <<_ACEOF
7772 #define LLVM_PATH_GV "$GV${EXEEXT}"
7773 _ACEOF
7776 # Extract the first word of "dotty", so it can be a program name with args.
7777 set dummy dotty; ac_word=$2
7778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7780 if test "${ac_cv_path_DOTTY+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7782 else
7783 case $DOTTY in
7784 [\\/]* | ?:[\\/]*)
7785 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789 for as_dir in $PATH
7791 IFS=$as_save_IFS
7792 test -z "$as_dir" && as_dir=.
7793 for ac_exec_ext in '' $ac_executable_extensions; do
7794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7795 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 break 2
7799 done
7800 done
7801 IFS=$as_save_IFS
7803 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7805 esac
7807 DOTTY=$ac_cv_path_DOTTY
7808 if test -n "$DOTTY"; then
7809 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7810 echo "${ECHO_T}$DOTTY" >&6; }
7811 else
7812 { echo "$as_me:$LINENO: result: no" >&5
7813 echo "${ECHO_T}no" >&6; }
7817 if test "$DOTTY" != "echo dotty" ; then
7819 cat >>confdefs.h <<\_ACEOF
7820 #define HAVE_DOTTY 1
7821 _ACEOF
7823 if test "$llvm_cv_os_type" = "MingW" ; then
7824 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7827 cat >>confdefs.h <<_ACEOF
7828 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7829 _ACEOF
7834 # Extract the first word of "perl", so it can be a program name with args.
7835 set dummy perl; ac_word=$2
7836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7838 if test "${ac_cv_path_PERL+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 else
7841 case $PERL in
7842 [\\/]* | ?:[\\/]*)
7843 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847 for as_dir in $PATH
7849 IFS=$as_save_IFS
7850 test -z "$as_dir" && as_dir=.
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7853 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7855 break 2
7857 done
7858 done
7859 IFS=$as_save_IFS
7861 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7863 esac
7865 PERL=$ac_cv_path_PERL
7866 if test -n "$PERL"; then
7867 { echo "$as_me:$LINENO: result: $PERL" >&5
7868 echo "${ECHO_T}$PERL" >&6; }
7869 else
7870 { echo "$as_me:$LINENO: result: no" >&5
7871 echo "${ECHO_T}no" >&6; }
7875 if test "$PERL" != "none"; then
7876 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7877 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7878 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7879 { echo "$as_me:$LINENO: result: yes" >&5
7880 echo "${ECHO_T}yes" >&6; }
7881 else
7882 PERL=none
7883 { echo "$as_me:$LINENO: result: not found" >&5
7884 echo "${ECHO_T}not found" >&6; }
7889 if test x"$PERL" = xnone; then
7890 HAVE_PERL=0
7892 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7893 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7894 { (exit 1); exit 1; }; }
7895 else
7896 HAVE_PERL=1
7900 # Find a good install program. We prefer a C program (faster),
7901 # so one script is as good as another. But avoid the broken or
7902 # incompatible versions:
7903 # SysV /etc/install, /usr/sbin/install
7904 # SunOS /usr/etc/install
7905 # IRIX /sbin/install
7906 # AIX /bin/install
7907 # AmigaOS /C/install, which installs bootblocks on floppy discs
7908 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7909 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7910 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7911 # OS/2's system install, which has a completely different semantic
7912 # ./install, which can be erroneously created by make from ./install.sh.
7913 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7914 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7915 if test -z "$INSTALL"; then
7916 if test "${ac_cv_path_install+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 else
7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 for as_dir in $PATH
7922 IFS=$as_save_IFS
7923 test -z "$as_dir" && as_dir=.
7924 # Account for people who put trailing slashes in PATH elements.
7925 case $as_dir/ in
7926 ./ | .// | /cC/* | \
7927 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7928 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7929 /usr/ucb/* ) ;;
7931 # OSF1 and SCO ODT 3.0 have their own names for install.
7932 # Don't use installbsd from OSF since it installs stuff as root
7933 # by default.
7934 for ac_prog in ginstall scoinst install; do
7935 for ac_exec_ext in '' $ac_executable_extensions; do
7936 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7937 if test $ac_prog = install &&
7938 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7939 # AIX install. It has an incompatible calling convention.
7941 elif test $ac_prog = install &&
7942 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7943 # program-specific install script used by HP pwplus--don't use.
7945 else
7946 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7947 break 3
7950 done
7951 done
7953 esac
7954 done
7955 IFS=$as_save_IFS
7959 if test "${ac_cv_path_install+set}" = set; then
7960 INSTALL=$ac_cv_path_install
7961 else
7962 # As a last resort, use the slow shell script. Don't cache a
7963 # value for INSTALL within a source directory, because that will
7964 # break other packages using the cache if that directory is
7965 # removed, or if the value is a relative name.
7966 INSTALL=$ac_install_sh
7969 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7970 echo "${ECHO_T}$INSTALL" >&6; }
7972 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7973 # It thinks the first close brace ends the variable substitution.
7974 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7976 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7978 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7980 case "$INSTALL" in
7981 [\\/$]* | ?:[\\/]* ) ;;
7982 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7983 esac
7985 # Extract the first word of "bzip2", so it can be a program name with args.
7986 set dummy bzip2; ac_word=$2
7987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7989 if test "${ac_cv_path_BZIP2+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7991 else
7992 case $BZIP2 in
7993 [\\/]* | ?:[\\/]*)
7994 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 for as_dir in $PATH
8000 IFS=$as_save_IFS
8001 test -z "$as_dir" && as_dir=.
8002 for ac_exec_ext in '' $ac_executable_extensions; do
8003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8004 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8006 break 2
8008 done
8009 done
8010 IFS=$as_save_IFS
8013 esac
8015 BZIP2=$ac_cv_path_BZIP2
8016 if test -n "$BZIP2"; then
8017 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8018 echo "${ECHO_T}$BZIP2" >&6; }
8019 else
8020 { echo "$as_me:$LINENO: result: no" >&5
8021 echo "${ECHO_T}no" >&6; }
8025 # Extract the first word of "cat", so it can be a program name with args.
8026 set dummy cat; ac_word=$2
8027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8029 if test "${ac_cv_path_CAT+set}" = set; then
8030 echo $ECHO_N "(cached) $ECHO_C" >&6
8031 else
8032 case $CAT in
8033 [\\/]* | ?:[\\/]*)
8034 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8038 for as_dir in $PATH
8040 IFS=$as_save_IFS
8041 test -z "$as_dir" && as_dir=.
8042 for ac_exec_ext in '' $ac_executable_extensions; do
8043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8044 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8046 break 2
8048 done
8049 done
8050 IFS=$as_save_IFS
8053 esac
8055 CAT=$ac_cv_path_CAT
8056 if test -n "$CAT"; then
8057 { echo "$as_me:$LINENO: result: $CAT" >&5
8058 echo "${ECHO_T}$CAT" >&6; }
8059 else
8060 { echo "$as_me:$LINENO: result: no" >&5
8061 echo "${ECHO_T}no" >&6; }
8065 # Extract the first word of "doxygen", so it can be a program name with args.
8066 set dummy doxygen; ac_word=$2
8067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8069 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
8071 else
8072 case $DOXYGEN in
8073 [\\/]* | ?:[\\/]*)
8074 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078 for as_dir in $PATH
8080 IFS=$as_save_IFS
8081 test -z "$as_dir" && as_dir=.
8082 for ac_exec_ext in '' $ac_executable_extensions; do
8083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8084 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8086 break 2
8088 done
8089 done
8090 IFS=$as_save_IFS
8093 esac
8095 DOXYGEN=$ac_cv_path_DOXYGEN
8096 if test -n "$DOXYGEN"; then
8097 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8098 echo "${ECHO_T}$DOXYGEN" >&6; }
8099 else
8100 { echo "$as_me:$LINENO: result: no" >&5
8101 echo "${ECHO_T}no" >&6; }
8105 # Extract the first word of "groff", so it can be a program name with args.
8106 set dummy groff; ac_word=$2
8107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8109 if test "${ac_cv_path_GROFF+set}" = set; then
8110 echo $ECHO_N "(cached) $ECHO_C" >&6
8111 else
8112 case $GROFF in
8113 [\\/]* | ?:[\\/]*)
8114 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118 for as_dir in $PATH
8120 IFS=$as_save_IFS
8121 test -z "$as_dir" && as_dir=.
8122 for ac_exec_ext in '' $ac_executable_extensions; do
8123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8124 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8126 break 2
8128 done
8129 done
8130 IFS=$as_save_IFS
8133 esac
8135 GROFF=$ac_cv_path_GROFF
8136 if test -n "$GROFF"; then
8137 { echo "$as_me:$LINENO: result: $GROFF" >&5
8138 echo "${ECHO_T}$GROFF" >&6; }
8139 else
8140 { echo "$as_me:$LINENO: result: no" >&5
8141 echo "${ECHO_T}no" >&6; }
8145 # Extract the first word of "gzip", so it can be a program name with args.
8146 set dummy gzip; ac_word=$2
8147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8149 if test "${ac_cv_path_GZIP+set}" = set; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
8151 else
8152 case $GZIP in
8153 [\\/]* | ?:[\\/]*)
8154 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158 for as_dir in $PATH
8160 IFS=$as_save_IFS
8161 test -z "$as_dir" && as_dir=.
8162 for ac_exec_ext in '' $ac_executable_extensions; do
8163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8164 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8166 break 2
8168 done
8169 done
8170 IFS=$as_save_IFS
8173 esac
8175 GZIP=$ac_cv_path_GZIP
8176 if test -n "$GZIP"; then
8177 { echo "$as_me:$LINENO: result: $GZIP" >&5
8178 echo "${ECHO_T}$GZIP" >&6; }
8179 else
8180 { echo "$as_me:$LINENO: result: no" >&5
8181 echo "${ECHO_T}no" >&6; }
8185 # Extract the first word of "pod2html", so it can be a program name with args.
8186 set dummy pod2html; ac_word=$2
8187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8189 if test "${ac_cv_path_POD2HTML+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8191 else
8192 case $POD2HTML in
8193 [\\/]* | ?:[\\/]*)
8194 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8198 for as_dir in $PATH
8200 IFS=$as_save_IFS
8201 test -z "$as_dir" && as_dir=.
8202 for ac_exec_ext in '' $ac_executable_extensions; do
8203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8204 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8206 break 2
8208 done
8209 done
8210 IFS=$as_save_IFS
8213 esac
8215 POD2HTML=$ac_cv_path_POD2HTML
8216 if test -n "$POD2HTML"; then
8217 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8218 echo "${ECHO_T}$POD2HTML" >&6; }
8219 else
8220 { echo "$as_me:$LINENO: result: no" >&5
8221 echo "${ECHO_T}no" >&6; }
8225 # Extract the first word of "pod2man", so it can be a program name with args.
8226 set dummy pod2man; ac_word=$2
8227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8229 if test "${ac_cv_path_POD2MAN+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 else
8232 case $POD2MAN in
8233 [\\/]* | ?:[\\/]*)
8234 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238 for as_dir in $PATH
8240 IFS=$as_save_IFS
8241 test -z "$as_dir" && as_dir=.
8242 for ac_exec_ext in '' $ac_executable_extensions; do
8243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8244 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8246 break 2
8248 done
8249 done
8250 IFS=$as_save_IFS
8253 esac
8255 POD2MAN=$ac_cv_path_POD2MAN
8256 if test -n "$POD2MAN"; then
8257 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8258 echo "${ECHO_T}$POD2MAN" >&6; }
8259 else
8260 { echo "$as_me:$LINENO: result: no" >&5
8261 echo "${ECHO_T}no" >&6; }
8265 # Extract the first word of "pdfroff", so it can be a program name with args.
8266 set dummy pdfroff; ac_word=$2
8267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8269 if test "${ac_cv_path_PDFROFF+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8271 else
8272 case $PDFROFF in
8273 [\\/]* | ?:[\\/]*)
8274 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 for as_dir in $PATH
8280 IFS=$as_save_IFS
8281 test -z "$as_dir" && as_dir=.
8282 for ac_exec_ext in '' $ac_executable_extensions; do
8283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8284 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8286 break 2
8288 done
8289 done
8290 IFS=$as_save_IFS
8293 esac
8295 PDFROFF=$ac_cv_path_PDFROFF
8296 if test -n "$PDFROFF"; then
8297 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8298 echo "${ECHO_T}$PDFROFF" >&6; }
8299 else
8300 { echo "$as_me:$LINENO: result: no" >&5
8301 echo "${ECHO_T}no" >&6; }
8305 # Extract the first word of "runtest", so it can be a program name with args.
8306 set dummy runtest; ac_word=$2
8307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8309 if test "${ac_cv_path_RUNTEST+set}" = set; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
8311 else
8312 case $RUNTEST in
8313 [\\/]* | ?:[\\/]*)
8314 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318 for as_dir in $PATH
8320 IFS=$as_save_IFS
8321 test -z "$as_dir" && as_dir=.
8322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8324 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8326 break 2
8328 done
8329 done
8330 IFS=$as_save_IFS
8333 esac
8335 RUNTEST=$ac_cv_path_RUNTEST
8336 if test -n "$RUNTEST"; then
8337 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8338 echo "${ECHO_T}$RUNTEST" >&6; }
8339 else
8340 { echo "$as_me:$LINENO: result: no" >&5
8341 echo "${ECHO_T}no" >&6; }
8346 no_itcl=true
8347 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8348 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8350 # Check whether --with-tclinclude was given.
8351 if test "${with_tclinclude+set}" = set; then
8352 withval=$with_tclinclude; with_tclinclude=${withval}
8353 else
8354 with_tclinclude=''
8357 if test "${ac_cv_path_tclsh+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
8359 else
8361 if test x"${with_tclinclude}" != x ; then
8362 if test -f ${with_tclinclude}/tclsh ; then
8363 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8364 elif test -f ${with_tclinclude}/src/tclsh ; then
8365 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8366 else
8367 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8368 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8369 { (exit 1); exit 1; }; }
8375 if test x"${ac_cv_path_tclsh}" = x ; then
8376 { echo "$as_me:$LINENO: result: none" >&5
8377 echo "${ECHO_T}none" >&6; }
8378 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
8380 # Extract the first word of "$ac_prog", so it can be a program name with args.
8381 set dummy $ac_prog; ac_word=$2
8382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8384 if test "${ac_cv_path_TCLSH+set}" = set; then
8385 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 else
8387 case $TCLSH in
8388 [\\/]* | ?:[\\/]*)
8389 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393 for as_dir in $PATH
8395 IFS=$as_save_IFS
8396 test -z "$as_dir" && as_dir=.
8397 for ac_exec_ext in '' $ac_executable_extensions; do
8398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8399 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8401 break 2
8403 done
8404 done
8405 IFS=$as_save_IFS
8408 esac
8410 TCLSH=$ac_cv_path_TCLSH
8411 if test -n "$TCLSH"; then
8412 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8413 echo "${ECHO_T}$TCLSH" >&6; }
8414 else
8415 { echo "$as_me:$LINENO: result: no" >&5
8416 echo "${ECHO_T}no" >&6; }
8420 test -n "$TCLSH" && break
8421 done
8423 if test x"${TCLSH}" = x ; then
8424 ac_cv_path_tclsh='';
8425 else
8426 ac_cv_path_tclsh="${TCLSH}";
8428 else
8429 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8430 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8431 TCLSH="${ac_cv_path_tclsh}"
8435 # Extract the first word of "zip", so it can be a program name with args.
8436 set dummy zip; ac_word=$2
8437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8439 if test "${ac_cv_path_ZIP+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
8441 else
8442 case $ZIP in
8443 [\\/]* | ?:[\\/]*)
8444 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448 for as_dir in $PATH
8450 IFS=$as_save_IFS
8451 test -z "$as_dir" && as_dir=.
8452 for ac_exec_ext in '' $ac_executable_extensions; do
8453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8454 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8456 break 2
8458 done
8459 done
8460 IFS=$as_save_IFS
8463 esac
8465 ZIP=$ac_cv_path_ZIP
8466 if test -n "$ZIP"; then
8467 { echo "$as_me:$LINENO: result: $ZIP" >&5
8468 echo "${ECHO_T}$ZIP" >&6; }
8469 else
8470 { echo "$as_me:$LINENO: result: no" >&5
8471 echo "${ECHO_T}no" >&6; }
8475 for ac_prog in ocamlc
8477 # Extract the first word of "$ac_prog", so it can be a program name with args.
8478 set dummy $ac_prog; ac_word=$2
8479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8481 if test "${ac_cv_path_OCAMLC+set}" = set; then
8482 echo $ECHO_N "(cached) $ECHO_C" >&6
8483 else
8484 case $OCAMLC in
8485 [\\/]* | ?:[\\/]*)
8486 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8490 for as_dir in $PATH
8492 IFS=$as_save_IFS
8493 test -z "$as_dir" && as_dir=.
8494 for ac_exec_ext in '' $ac_executable_extensions; do
8495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8496 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8498 break 2
8500 done
8501 done
8502 IFS=$as_save_IFS
8505 esac
8507 OCAMLC=$ac_cv_path_OCAMLC
8508 if test -n "$OCAMLC"; then
8509 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8510 echo "${ECHO_T}$OCAMLC" >&6; }
8511 else
8512 { echo "$as_me:$LINENO: result: no" >&5
8513 echo "${ECHO_T}no" >&6; }
8517 test -n "$OCAMLC" && break
8518 done
8520 for ac_prog in ocamlopt
8522 # Extract the first word of "$ac_prog", so it can be a program name with args.
8523 set dummy $ac_prog; ac_word=$2
8524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8526 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8527 echo $ECHO_N "(cached) $ECHO_C" >&6
8528 else
8529 case $OCAMLOPT in
8530 [\\/]* | ?:[\\/]*)
8531 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8535 for as_dir in $PATH
8537 IFS=$as_save_IFS
8538 test -z "$as_dir" && as_dir=.
8539 for ac_exec_ext in '' $ac_executable_extensions; do
8540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8541 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8543 break 2
8545 done
8546 done
8547 IFS=$as_save_IFS
8550 esac
8552 OCAMLOPT=$ac_cv_path_OCAMLOPT
8553 if test -n "$OCAMLOPT"; then
8554 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8555 echo "${ECHO_T}$OCAMLOPT" >&6; }
8556 else
8557 { echo "$as_me:$LINENO: result: no" >&5
8558 echo "${ECHO_T}no" >&6; }
8562 test -n "$OCAMLOPT" && break
8563 done
8565 for ac_prog in ocamldep
8567 # Extract the first word of "$ac_prog", so it can be a program name with args.
8568 set dummy $ac_prog; ac_word=$2
8569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8571 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
8573 else
8574 case $OCAMLDEP in
8575 [\\/]* | ?:[\\/]*)
8576 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8580 for as_dir in $PATH
8582 IFS=$as_save_IFS
8583 test -z "$as_dir" && as_dir=.
8584 for ac_exec_ext in '' $ac_executable_extensions; do
8585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8586 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8588 break 2
8590 done
8591 done
8592 IFS=$as_save_IFS
8595 esac
8597 OCAMLDEP=$ac_cv_path_OCAMLDEP
8598 if test -n "$OCAMLDEP"; then
8599 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8600 echo "${ECHO_T}$OCAMLDEP" >&6; }
8601 else
8602 { echo "$as_me:$LINENO: result: no" >&5
8603 echo "${ECHO_T}no" >&6; }
8607 test -n "$OCAMLDEP" && break
8608 done
8610 for ac_prog in ocamldoc
8612 # Extract the first word of "$ac_prog", so it can be a program name with args.
8613 set dummy $ac_prog; ac_word=$2
8614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8616 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8617 echo $ECHO_N "(cached) $ECHO_C" >&6
8618 else
8619 case $OCAMLDOC in
8620 [\\/]* | ?:[\\/]*)
8621 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625 for as_dir in $PATH
8627 IFS=$as_save_IFS
8628 test -z "$as_dir" && as_dir=.
8629 for ac_exec_ext in '' $ac_executable_extensions; do
8630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8631 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8633 break 2
8635 done
8636 done
8637 IFS=$as_save_IFS
8640 esac
8642 OCAMLDOC=$ac_cv_path_OCAMLDOC
8643 if test -n "$OCAMLDOC"; then
8644 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8645 echo "${ECHO_T}$OCAMLDOC" >&6; }
8646 else
8647 { echo "$as_me:$LINENO: result: no" >&5
8648 echo "${ECHO_T}no" >&6; }
8652 test -n "$OCAMLDOC" && break
8653 done
8655 for ac_prog in gas as
8657 # Extract the first word of "$ac_prog", so it can be a program name with args.
8658 set dummy $ac_prog; ac_word=$2
8659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8661 if test "${ac_cv_path_GAS+set}" = set; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8663 else
8664 case $GAS in
8665 [\\/]* | ?:[\\/]*)
8666 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8670 for as_dir in $PATH
8672 IFS=$as_save_IFS
8673 test -z "$as_dir" && as_dir=.
8674 for ac_exec_ext in '' $ac_executable_extensions; do
8675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8676 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8678 break 2
8680 done
8681 done
8682 IFS=$as_save_IFS
8685 esac
8687 GAS=$ac_cv_path_GAS
8688 if test -n "$GAS"; then
8689 { echo "$as_me:$LINENO: result: $GAS" >&5
8690 echo "${ECHO_T}$GAS" >&6; }
8691 else
8692 { echo "$as_me:$LINENO: result: no" >&5
8693 echo "${ECHO_T}no" >&6; }
8697 test -n "$GAS" && break
8698 done
8701 { echo "$as_me:$LINENO: checking for linker version" >&5
8702 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8703 if test "${llvm_cv_link_version+set}" = set; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
8705 else
8707 version_string="$(ld -v 2>&1 | head -1)"
8709 # Check for ld64.
8710 if (echo "$version_string" | grep -q "ld64"); then
8711 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8712 else
8713 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8717 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8718 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8720 cat >>confdefs.h <<_ACEOF
8721 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8722 _ACEOF
8726 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8727 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8728 if test "${llvm_cv_link_use_r+set}" = set; then
8729 echo $ECHO_N "(cached) $ECHO_C" >&6
8730 else
8731 ac_ext=c
8732 ac_cpp='$CPP $CPPFLAGS'
8733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8737 oldcflags="$CFLAGS"
8738 CFLAGS="$CFLAGS -Wl,-R."
8739 cat >conftest.$ac_ext <<_ACEOF
8740 /* confdefs.h. */
8741 _ACEOF
8742 cat confdefs.h >>conftest.$ac_ext
8743 cat >>conftest.$ac_ext <<_ACEOF
8744 /* end confdefs.h. */
8747 main ()
8751 return 0;
8753 _ACEOF
8754 rm -f conftest.$ac_objext conftest$ac_exeext
8755 if { (ac_try="$ac_link"
8756 case "(($ac_try" in
8757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758 *) ac_try_echo=$ac_try;;
8759 esac
8760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8761 (eval "$ac_link") 2>conftest.er1
8762 ac_status=$?
8763 grep -v '^ *+' conftest.er1 >conftest.err
8764 rm -f conftest.er1
8765 cat conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } &&
8768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8769 { (case "(($ac_try" in
8770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8771 *) ac_try_echo=$ac_try;;
8772 esac
8773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8774 (eval "$ac_try") 2>&5
8775 ac_status=$?
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; } &&
8778 { ac_try='test -s conftest$ac_exeext'
8779 { (case "(($ac_try" in
8780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8781 *) ac_try_echo=$ac_try;;
8782 esac
8783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8784 (eval "$ac_try") 2>&5
8785 ac_status=$?
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); }; }; then
8788 llvm_cv_link_use_r=yes
8789 else
8790 echo "$as_me: failed program was:" >&5
8791 sed 's/^/| /' conftest.$ac_ext >&5
8793 llvm_cv_link_use_r=no
8796 rm -f core conftest.err conftest.$ac_objext \
8797 conftest$ac_exeext conftest.$ac_ext
8798 CFLAGS="$oldcflags"
8799 ac_ext=c
8800 ac_cpp='$CPP $CPPFLAGS'
8801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8807 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8808 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8809 if test "$llvm_cv_link_use_r" = yes ; then
8811 cat >>confdefs.h <<\_ACEOF
8812 #define HAVE_LINK_R 1
8813 _ACEOF
8818 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8819 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8820 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8821 echo $ECHO_N "(cached) $ECHO_C" >&6
8822 else
8823 ac_ext=c
8824 ac_cpp='$CPP $CPPFLAGS'
8825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8829 oldcflags="$CFLAGS"
8830 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8831 cat >conftest.$ac_ext <<_ACEOF
8832 /* confdefs.h. */
8833 _ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h. */
8839 main ()
8843 return 0;
8845 _ACEOF
8846 rm -f conftest.$ac_objext conftest$ac_exeext
8847 if { (ac_try="$ac_link"
8848 case "(($ac_try" in
8849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850 *) ac_try_echo=$ac_try;;
8851 esac
8852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8853 (eval "$ac_link") 2>conftest.er1
8854 ac_status=$?
8855 grep -v '^ *+' conftest.er1 >conftest.err
8856 rm -f conftest.er1
8857 cat conftest.err >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } &&
8860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8861 { (case "(($ac_try" in
8862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863 *) ac_try_echo=$ac_try;;
8864 esac
8865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8866 (eval "$ac_try") 2>&5
8867 ac_status=$?
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); }; } &&
8870 { ac_try='test -s conftest$ac_exeext'
8871 { (case "(($ac_try" in
8872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8873 *) ac_try_echo=$ac_try;;
8874 esac
8875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8876 (eval "$ac_try") 2>&5
8877 ac_status=$?
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); }; }; then
8880 llvm_cv_link_use_export_dynamic=yes
8881 else
8882 echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.$ac_ext >&5
8885 llvm_cv_link_use_export_dynamic=no
8888 rm -f core conftest.err conftest.$ac_objext \
8889 conftest$ac_exeext conftest.$ac_ext
8890 CFLAGS="$oldcflags"
8891 ac_ext=c
8892 ac_cpp='$CPP $CPPFLAGS'
8893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8899 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8900 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8901 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8903 cat >>confdefs.h <<\_ACEOF
8904 #define HAVE_LINK_EXPORT_DYNAMIC 1
8905 _ACEOF
8910 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8911 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8912 if test "${llvm_cv_link_use_version_script+set}" = set; then
8913 echo $ECHO_N "(cached) $ECHO_C" >&6
8914 else
8915 ac_ext=c
8916 ac_cpp='$CPP $CPPFLAGS'
8917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8921 oldcflags="$CFLAGS"
8923 # The following code is from the autoconf manual,
8924 # "11.13: Limitations of Usual Tools".
8925 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8926 # Use mktemp if possible; otherwise fall back on mkdir,
8927 # with $RANDOM to make collisions less likely.
8928 : ${TMPDIR=/tmp}
8930 tmp=`
8931 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8932 ` &&
8933 test -n "$tmp" && test -d "$tmp"
8934 } || {
8935 tmp=$TMPDIR/foo$$-$RANDOM
8936 (umask 077 && mkdir "$tmp")
8937 } || exit $?
8939 echo "{" > "$tmp/export.map"
8940 echo " global: main;" >> "$tmp/export.map"
8941 echo " local: *;" >> "$tmp/export.map"
8942 echo "};" >> "$tmp/export.map"
8944 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8945 cat >conftest.$ac_ext <<_ACEOF
8946 /* confdefs.h. */
8947 _ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h. */
8953 main ()
8957 return 0;
8959 _ACEOF
8960 rm -f conftest.$ac_objext conftest$ac_exeext
8961 if { (ac_try="$ac_link"
8962 case "(($ac_try" in
8963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8964 *) ac_try_echo=$ac_try;;
8965 esac
8966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8967 (eval "$ac_link") 2>conftest.er1
8968 ac_status=$?
8969 grep -v '^ *+' conftest.er1 >conftest.err
8970 rm -f conftest.er1
8971 cat conftest.err >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } &&
8974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8975 { (case "(($ac_try" in
8976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8977 *) ac_try_echo=$ac_try;;
8978 esac
8979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8980 (eval "$ac_try") 2>&5
8981 ac_status=$?
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; } &&
8984 { ac_try='test -s conftest$ac_exeext'
8985 { (case "(($ac_try" in
8986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8987 *) ac_try_echo=$ac_try;;
8988 esac
8989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8990 (eval "$ac_try") 2>&5
8991 ac_status=$?
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; }; then
8994 llvm_cv_link_use_version_script=yes
8995 else
8996 echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
8999 llvm_cv_link_use_version_script=no
9002 rm -f core conftest.err conftest.$ac_objext \
9003 conftest$ac_exeext conftest.$ac_ext
9004 rm "$tmp/export.map"
9005 rmdir "$tmp"
9006 CFLAGS="$oldcflags"
9007 ac_ext=c
9008 ac_cpp='$CPP $CPPFLAGS'
9009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9015 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9016 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9017 if test "$llvm_cv_link_use_version_script" = yes ; then
9018 HAVE_LINK_VERSION_SCRIPT=1
9025 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9026 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9027 if test "${ac_cv_c_const+set}" = set; then
9028 echo $ECHO_N "(cached) $ECHO_C" >&6
9029 else
9030 cat >conftest.$ac_ext <<_ACEOF
9031 /* confdefs.h. */
9032 _ACEOF
9033 cat confdefs.h >>conftest.$ac_ext
9034 cat >>conftest.$ac_ext <<_ACEOF
9035 /* end confdefs.h. */
9038 main ()
9040 /* FIXME: Include the comments suggested by Paul. */
9041 #ifndef __cplusplus
9042 /* Ultrix mips cc rejects this. */
9043 typedef int charset[2];
9044 const charset x;
9045 /* SunOS 4.1.1 cc rejects this. */
9046 char const *const *ccp;
9047 char **p;
9048 /* NEC SVR4.0.2 mips cc rejects this. */
9049 struct point {int x, y;};
9050 static struct point const zero = {0,0};
9051 /* AIX XL C 1.02.0.0 rejects this.
9052 It does not let you subtract one const X* pointer from another in
9053 an arm of an if-expression whose if-part is not a constant
9054 expression */
9055 const char *g = "string";
9056 ccp = &g + (g ? g-g : 0);
9057 /* HPUX 7.0 cc rejects these. */
9058 ++ccp;
9059 p = (char**) ccp;
9060 ccp = (char const *const *) p;
9061 { /* SCO 3.2v4 cc rejects this. */
9062 char *t;
9063 char const *s = 0 ? (char *) 0 : (char const *) 0;
9065 *t++ = 0;
9066 if (s) return 0;
9068 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9069 int x[] = {25, 17};
9070 const int *foo = &x[0];
9071 ++foo;
9073 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9074 typedef const int *iptr;
9075 iptr p = 0;
9076 ++p;
9078 { /* AIX XL C 1.02.0.0 rejects this saying
9079 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9080 struct s { int j; const int *ap[3]; };
9081 struct s *b; b->j = 5;
9083 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9084 const int foo = 10;
9085 if (!foo) return 0;
9087 return !x[0] && !zero.x;
9088 #endif
9091 return 0;
9093 _ACEOF
9094 rm -f conftest.$ac_objext
9095 if { (ac_try="$ac_compile"
9096 case "(($ac_try" in
9097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9098 *) ac_try_echo=$ac_try;;
9099 esac
9100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9101 (eval "$ac_compile") 2>conftest.er1
9102 ac_status=$?
9103 grep -v '^ *+' conftest.er1 >conftest.err
9104 rm -f conftest.er1
9105 cat conftest.err >&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); } &&
9108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9109 { (case "(($ac_try" in
9110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9111 *) ac_try_echo=$ac_try;;
9112 esac
9113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9114 (eval "$ac_try") 2>&5
9115 ac_status=$?
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); }; } &&
9118 { ac_try='test -s conftest.$ac_objext'
9119 { (case "(($ac_try" in
9120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9121 *) ac_try_echo=$ac_try;;
9122 esac
9123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9124 (eval "$ac_try") 2>&5
9125 ac_status=$?
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; }; then
9128 ac_cv_c_const=yes
9129 else
9130 echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.$ac_ext >&5
9133 ac_cv_c_const=no
9136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9138 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9139 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9140 if test $ac_cv_c_const = no; then
9142 cat >>confdefs.h <<\_ACEOF
9143 #define const
9144 _ACEOF
9153 ac_header_dirent=no
9154 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9155 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9156 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9157 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 else
9161 cat >conftest.$ac_ext <<_ACEOF
9162 /* confdefs.h. */
9163 _ACEOF
9164 cat confdefs.h >>conftest.$ac_ext
9165 cat >>conftest.$ac_ext <<_ACEOF
9166 /* end confdefs.h. */
9167 #include <sys/types.h>
9168 #include <$ac_hdr>
9171 main ()
9173 if ((DIR *) 0)
9174 return 0;
9176 return 0;
9178 _ACEOF
9179 rm -f conftest.$ac_objext
9180 if { (ac_try="$ac_compile"
9181 case "(($ac_try" in
9182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9183 *) ac_try_echo=$ac_try;;
9184 esac
9185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9186 (eval "$ac_compile") 2>conftest.er1
9187 ac_status=$?
9188 grep -v '^ *+' conftest.er1 >conftest.err
9189 rm -f conftest.er1
9190 cat conftest.err >&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); } &&
9193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9194 { (case "(($ac_try" in
9195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9196 *) ac_try_echo=$ac_try;;
9197 esac
9198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9199 (eval "$ac_try") 2>&5
9200 ac_status=$?
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); }; } &&
9203 { ac_try='test -s conftest.$ac_objext'
9204 { (case "(($ac_try" in
9205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9206 *) ac_try_echo=$ac_try;;
9207 esac
9208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9209 (eval "$ac_try") 2>&5
9210 ac_status=$?
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); }; }; then
9213 eval "$as_ac_Header=yes"
9214 else
9215 echo "$as_me: failed program was:" >&5
9216 sed 's/^/| /' conftest.$ac_ext >&5
9218 eval "$as_ac_Header=no"
9221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9223 ac_res=`eval echo '${'$as_ac_Header'}'`
9224 { echo "$as_me:$LINENO: result: $ac_res" >&5
9225 echo "${ECHO_T}$ac_res" >&6; }
9226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9227 cat >>confdefs.h <<_ACEOF
9228 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9229 _ACEOF
9231 ac_header_dirent=$ac_hdr; break
9234 done
9235 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9236 if test $ac_header_dirent = dirent.h; then
9237 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9238 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9239 if test "${ac_cv_search_opendir+set}" = set; then
9240 echo $ECHO_N "(cached) $ECHO_C" >&6
9241 else
9242 ac_func_search_save_LIBS=$LIBS
9243 cat >conftest.$ac_ext <<_ACEOF
9244 /* confdefs.h. */
9245 _ACEOF
9246 cat confdefs.h >>conftest.$ac_ext
9247 cat >>conftest.$ac_ext <<_ACEOF
9248 /* end confdefs.h. */
9250 /* Override any GCC internal prototype to avoid an error.
9251 Use char because int might match the return type of a GCC
9252 builtin and then its argument prototype would still apply. */
9253 #ifdef __cplusplus
9254 extern "C"
9255 #endif
9256 char opendir ();
9258 main ()
9260 return opendir ();
9262 return 0;
9264 _ACEOF
9265 for ac_lib in '' dir; do
9266 if test -z "$ac_lib"; then
9267 ac_res="none required"
9268 else
9269 ac_res=-l$ac_lib
9270 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9272 rm -f conftest.$ac_objext conftest$ac_exeext
9273 if { (ac_try="$ac_link"
9274 case "(($ac_try" in
9275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9276 *) ac_try_echo=$ac_try;;
9277 esac
9278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9279 (eval "$ac_link") 2>conftest.er1
9280 ac_status=$?
9281 grep -v '^ *+' conftest.er1 >conftest.err
9282 rm -f conftest.er1
9283 cat conftest.err >&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); } &&
9286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9287 { (case "(($ac_try" in
9288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9289 *) ac_try_echo=$ac_try;;
9290 esac
9291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9292 (eval "$ac_try") 2>&5
9293 ac_status=$?
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; } &&
9296 { ac_try='test -s conftest$ac_exeext'
9297 { (case "(($ac_try" in
9298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9299 *) ac_try_echo=$ac_try;;
9300 esac
9301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9302 (eval "$ac_try") 2>&5
9303 ac_status=$?
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); }; }; then
9306 ac_cv_search_opendir=$ac_res
9307 else
9308 echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.$ac_ext >&5
9314 rm -f core conftest.err conftest.$ac_objext \
9315 conftest$ac_exeext
9316 if test "${ac_cv_search_opendir+set}" = set; then
9317 break
9319 done
9320 if test "${ac_cv_search_opendir+set}" = set; then
9322 else
9323 ac_cv_search_opendir=no
9325 rm conftest.$ac_ext
9326 LIBS=$ac_func_search_save_LIBS
9328 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9329 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9330 ac_res=$ac_cv_search_opendir
9331 if test "$ac_res" != no; then
9332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9336 else
9337 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9338 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9339 if test "${ac_cv_search_opendir+set}" = set; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9341 else
9342 ac_func_search_save_LIBS=$LIBS
9343 cat >conftest.$ac_ext <<_ACEOF
9344 /* confdefs.h. */
9345 _ACEOF
9346 cat confdefs.h >>conftest.$ac_ext
9347 cat >>conftest.$ac_ext <<_ACEOF
9348 /* end confdefs.h. */
9350 /* Override any GCC internal prototype to avoid an error.
9351 Use char because int might match the return type of a GCC
9352 builtin and then its argument prototype would still apply. */
9353 #ifdef __cplusplus
9354 extern "C"
9355 #endif
9356 char opendir ();
9358 main ()
9360 return opendir ();
9362 return 0;
9364 _ACEOF
9365 for ac_lib in '' x; do
9366 if test -z "$ac_lib"; then
9367 ac_res="none required"
9368 else
9369 ac_res=-l$ac_lib
9370 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9372 rm -f conftest.$ac_objext conftest$ac_exeext
9373 if { (ac_try="$ac_link"
9374 case "(($ac_try" in
9375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9376 *) ac_try_echo=$ac_try;;
9377 esac
9378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9379 (eval "$ac_link") 2>conftest.er1
9380 ac_status=$?
9381 grep -v '^ *+' conftest.er1 >conftest.err
9382 rm -f conftest.er1
9383 cat conftest.err >&5
9384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385 (exit $ac_status); } &&
9386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9387 { (case "(($ac_try" in
9388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9389 *) ac_try_echo=$ac_try;;
9390 esac
9391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9392 (eval "$ac_try") 2>&5
9393 ac_status=$?
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; } &&
9396 { ac_try='test -s conftest$ac_exeext'
9397 { (case "(($ac_try" in
9398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9399 *) ac_try_echo=$ac_try;;
9400 esac
9401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9402 (eval "$ac_try") 2>&5
9403 ac_status=$?
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; }; then
9406 ac_cv_search_opendir=$ac_res
9407 else
9408 echo "$as_me: failed program was:" >&5
9409 sed 's/^/| /' conftest.$ac_ext >&5
9414 rm -f core conftest.err conftest.$ac_objext \
9415 conftest$ac_exeext
9416 if test "${ac_cv_search_opendir+set}" = set; then
9417 break
9419 done
9420 if test "${ac_cv_search_opendir+set}" = set; then
9422 else
9423 ac_cv_search_opendir=no
9425 rm conftest.$ac_ext
9426 LIBS=$ac_func_search_save_LIBS
9428 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9429 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9430 ac_res=$ac_cv_search_opendir
9431 if test "$ac_res" != no; then
9432 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9439 for ac_header in dlfcn.h
9441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9446 echo $ECHO_N "(cached) $ECHO_C" >&6
9448 ac_res=`eval echo '${'$as_ac_Header'}'`
9449 { echo "$as_me:$LINENO: result: $ac_res" >&5
9450 echo "${ECHO_T}$ac_res" >&6; }
9451 else
9452 # Is the header compilable?
9453 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9455 cat >conftest.$ac_ext <<_ACEOF
9456 /* confdefs.h. */
9457 _ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h. */
9461 $ac_includes_default
9462 #include <$ac_header>
9463 _ACEOF
9464 rm -f conftest.$ac_objext
9465 if { (ac_try="$ac_compile"
9466 case "(($ac_try" in
9467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9468 *) ac_try_echo=$ac_try;;
9469 esac
9470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9471 (eval "$ac_compile") 2>conftest.er1
9472 ac_status=$?
9473 grep -v '^ *+' conftest.er1 >conftest.err
9474 rm -f conftest.er1
9475 cat conftest.err >&5
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); } &&
9478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9479 { (case "(($ac_try" in
9480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9481 *) ac_try_echo=$ac_try;;
9482 esac
9483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9484 (eval "$ac_try") 2>&5
9485 ac_status=$?
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); }; } &&
9488 { ac_try='test -s conftest.$ac_objext'
9489 { (case "(($ac_try" in
9490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9491 *) ac_try_echo=$ac_try;;
9492 esac
9493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9494 (eval "$ac_try") 2>&5
9495 ac_status=$?
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); }; }; then
9498 ac_header_compiler=yes
9499 else
9500 echo "$as_me: failed program was:" >&5
9501 sed 's/^/| /' conftest.$ac_ext >&5
9503 ac_header_compiler=no
9506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9508 echo "${ECHO_T}$ac_header_compiler" >&6; }
9510 # Is the header present?
9511 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9513 cat >conftest.$ac_ext <<_ACEOF
9514 /* confdefs.h. */
9515 _ACEOF
9516 cat confdefs.h >>conftest.$ac_ext
9517 cat >>conftest.$ac_ext <<_ACEOF
9518 /* end confdefs.h. */
9519 #include <$ac_header>
9520 _ACEOF
9521 if { (ac_try="$ac_cpp conftest.$ac_ext"
9522 case "(($ac_try" in
9523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524 *) ac_try_echo=$ac_try;;
9525 esac
9526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9528 ac_status=$?
9529 grep -v '^ *+' conftest.er1 >conftest.err
9530 rm -f conftest.er1
9531 cat conftest.err >&5
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); } >/dev/null; then
9534 if test -s conftest.err; then
9535 ac_cpp_err=$ac_c_preproc_warn_flag
9536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9537 else
9538 ac_cpp_err=
9540 else
9541 ac_cpp_err=yes
9543 if test -z "$ac_cpp_err"; then
9544 ac_header_preproc=yes
9545 else
9546 echo "$as_me: failed program was:" >&5
9547 sed 's/^/| /' conftest.$ac_ext >&5
9549 ac_header_preproc=no
9552 rm -f conftest.err conftest.$ac_ext
9553 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9554 echo "${ECHO_T}$ac_header_preproc" >&6; }
9556 # So? What about this header?
9557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9558 yes:no: )
9559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9563 ac_header_preproc=yes
9565 no:yes:* )
9566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9569 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9573 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9578 ( cat <<\_ASBOX
9579 ## ----------------------------------- ##
9580 ## Report this to llvmbugs@cs.uiuc.edu ##
9581 ## ----------------------------------- ##
9582 _ASBOX
9583 ) | sed "s/^/$as_me: WARNING: /" >&2
9585 esac
9586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9589 echo $ECHO_N "(cached) $ECHO_C" >&6
9590 else
9591 eval "$as_ac_Header=\$ac_header_preproc"
9593 ac_res=`eval echo '${'$as_ac_Header'}'`
9594 { echo "$as_me:$LINENO: result: $ac_res" >&5
9595 echo "${ECHO_T}$ac_res" >&6; }
9598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9599 cat >>confdefs.h <<_ACEOF
9600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9601 _ACEOF
9605 done
9607 # Check whether --enable-ltdl-install was given.
9608 if test "${enable_ltdl_install+set}" = set; then
9609 enableval=$enable_ltdl_install;
9615 if test x"${enable_ltdl_install-no}" != xno; then
9616 INSTALL_LTDL_TRUE=
9617 INSTALL_LTDL_FALSE='#'
9618 else
9619 INSTALL_LTDL_TRUE='#'
9620 INSTALL_LTDL_FALSE=
9625 if test x"${enable_ltdl_convenience-no}" != xno; then
9626 CONVENIENCE_LTDL_TRUE=
9627 CONVENIENCE_LTDL_FALSE='#'
9628 else
9629 CONVENIENCE_LTDL_TRUE='#'
9630 CONVENIENCE_LTDL_FALSE=
9634 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9635 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9636 library_names_spec=
9637 libname_spec='lib$name'
9638 soname_spec=
9639 shrext_cmds=".so"
9640 postinstall_cmds=
9641 postuninstall_cmds=
9642 finish_cmds=
9643 finish_eval=
9644 shlibpath_var=
9645 shlibpath_overrides_runpath=unknown
9646 version_type=none
9647 dynamic_linker="$host_os ld.so"
9648 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9649 if test "$GCC" = yes; then
9650 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9651 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9652 # if the path contains ";" then we assume it to be the separator
9653 # otherwise default to the standard path separator (i.e. ":") - it is
9654 # assumed that no part of a normal pathname contains ";" but that should
9655 # okay in the real world where ";" in dirpaths is itself problematic.
9656 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9657 else
9658 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9660 else
9661 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9663 need_lib_prefix=unknown
9664 hardcode_into_libs=no
9666 # when you set need_version to no, make sure it does not cause -set_version
9667 # flags to be left without arguments
9668 need_version=unknown
9670 case $host_os in
9671 aix3*)
9672 version_type=linux
9673 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9674 shlibpath_var=LIBPATH
9676 # AIX 3 has no versioning support, so we append a major version to the name.
9677 soname_spec='${libname}${release}${shared_ext}$major'
9680 aix4* | aix5*)
9681 version_type=linux
9682 need_lib_prefix=no
9683 need_version=no
9684 hardcode_into_libs=yes
9685 if test "$host_cpu" = ia64; then
9686 # AIX 5 supports IA64
9687 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9688 shlibpath_var=LD_LIBRARY_PATH
9689 else
9690 # With GCC up to 2.95.x, collect2 would create an import file
9691 # for dependence libraries. The import file would start with
9692 # the line `#! .'. This would cause the generated library to
9693 # depend on `.', always an invalid library. This was fixed in
9694 # development snapshots of GCC prior to 3.0.
9695 case $host_os in
9696 aix4 | aix4.[01] | aix4.[01].*)
9697 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9698 echo ' yes '
9699 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9701 else
9702 can_build_shared=no
9705 esac
9706 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9707 # soname into executable. Probably we can add versioning support to
9708 # collect2, so additional links can be useful in future.
9709 if test "$aix_use_runtimelinking" = yes; then
9710 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9711 # instead of lib<name>.a to let people know that these are not
9712 # typical AIX shared libraries.
9713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9714 else
9715 # We preserve .a as extension for shared libraries through AIX4.2
9716 # and later when we are not doing run time linking.
9717 library_names_spec='${libname}${release}.a $libname.a'
9718 soname_spec='${libname}${release}${shared_ext}$major'
9720 shlibpath_var=LIBPATH
9724 amigaos*)
9725 library_names_spec='$libname.ixlibrary $libname.a'
9726 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9727 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'
9730 beos*)
9731 library_names_spec='${libname}${shared_ext}'
9732 dynamic_linker="$host_os ld.so"
9733 shlibpath_var=LIBRARY_PATH
9736 bsdi[45]*)
9737 version_type=linux
9738 need_version=no
9739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9740 soname_spec='${libname}${release}${shared_ext}$major'
9741 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9742 shlibpath_var=LD_LIBRARY_PATH
9743 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9744 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9745 # the default ld.so.conf also contains /usr/contrib/lib and
9746 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9747 # libtool to hard-code these into programs
9750 cygwin* | mingw* | pw32*)
9751 version_type=windows
9752 shrext_cmds=".dll"
9753 need_version=no
9754 need_lib_prefix=no
9756 case $GCC,$host_os in
9757 yes,cygwin* | yes,mingw* | yes,pw32*)
9758 library_names_spec='$libname.dll.a'
9759 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9760 postinstall_cmds='base_file=`basename \${file}`~
9761 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9762 dldir=$destdir/`dirname \$dlpath`~
9763 test -d \$dldir || mkdir -p \$dldir~
9764 $install_prog $dir/$dlname \$dldir/$dlname~
9765 chmod a+x \$dldir/$dlname'
9766 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9767 dlpath=$dir/\$dldll~
9768 $rm \$dlpath'
9769 shlibpath_overrides_runpath=yes
9771 case $host_os in
9772 cygwin*)
9773 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9774 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9775 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9777 mingw*)
9778 # MinGW DLLs use traditional 'lib' prefix
9779 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9780 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9781 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9782 # It is most probably a Windows format PATH printed by
9783 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9784 # path with ; separators, and with drive letters. We can handle the
9785 # drive letters (cygwin fileutils understands them), so leave them,
9786 # especially as we might pass files found there to a mingw objdump,
9787 # which wouldn't understand a cygwinified path. Ahh.
9788 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9789 else
9790 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9793 pw32*)
9794 # pw32 DLLs use 'pw' prefix rather than 'lib'
9795 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9797 esac
9801 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9803 esac
9804 dynamic_linker='Win32 ld.exe'
9805 # FIXME: first we should search . and the directory the executable is in
9806 shlibpath_var=PATH
9809 darwin* | rhapsody*)
9810 dynamic_linker="$host_os dyld"
9811 version_type=darwin
9812 need_lib_prefix=no
9813 need_version=no
9814 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9815 soname_spec='${libname}${release}${major}$shared_ext'
9816 shlibpath_overrides_runpath=yes
9817 shlibpath_var=DYLD_LIBRARY_PATH
9818 shrext_cmds='.dylib'
9819 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9820 if test "$GCC" = yes; then
9821 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"`
9822 else
9823 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9825 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9828 dgux*)
9829 version_type=linux
9830 need_lib_prefix=no
9831 need_version=no
9832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9833 soname_spec='${libname}${release}${shared_ext}$major'
9834 shlibpath_var=LD_LIBRARY_PATH
9837 freebsd1*)
9838 dynamic_linker=no
9841 kfreebsd*-gnu)
9842 version_type=linux
9843 need_lib_prefix=no
9844 need_version=no
9845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9846 soname_spec='${libname}${release}${shared_ext}$major'
9847 shlibpath_var=LD_LIBRARY_PATH
9848 shlibpath_overrides_runpath=no
9849 hardcode_into_libs=yes
9850 dynamic_linker='GNU ld.so'
9853 freebsd* | dragonfly*)
9854 # DragonFly does not have aout. When/if they implement a new
9855 # versioning mechanism, adjust this.
9856 if test -x /usr/bin/objformat; then
9857 objformat=`/usr/bin/objformat`
9858 else
9859 case $host_os in
9860 freebsd[123]*) objformat=aout ;;
9861 *) objformat=elf ;;
9862 esac
9864 version_type=freebsd-$objformat
9865 case $version_type in
9866 freebsd-elf*)
9867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9868 need_version=no
9869 need_lib_prefix=no
9871 freebsd-*)
9872 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9873 need_version=yes
9875 esac
9876 shlibpath_var=LD_LIBRARY_PATH
9877 case $host_os in
9878 freebsd2*)
9879 shlibpath_overrides_runpath=yes
9881 freebsd3.[01]* | freebsdelf3.[01]*)
9882 shlibpath_overrides_runpath=yes
9883 hardcode_into_libs=yes
9885 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9886 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9887 shlibpath_overrides_runpath=no
9888 hardcode_into_libs=yes
9890 freebsd*) # from 4.6 on
9891 shlibpath_overrides_runpath=yes
9892 hardcode_into_libs=yes
9894 esac
9897 gnu*)
9898 version_type=linux
9899 need_lib_prefix=no
9900 need_version=no
9901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9902 soname_spec='${libname}${release}${shared_ext}$major'
9903 shlibpath_var=LD_LIBRARY_PATH
9904 hardcode_into_libs=yes
9907 hpux9* | hpux10* | hpux11*)
9908 # Give a soname corresponding to the major version so that dld.sl refuses to
9909 # link against other versions.
9910 version_type=sunos
9911 need_lib_prefix=no
9912 need_version=no
9913 case $host_cpu in
9914 ia64*)
9915 shrext_cmds='.so'
9916 hardcode_into_libs=yes
9917 dynamic_linker="$host_os dld.so"
9918 shlibpath_var=LD_LIBRARY_PATH
9919 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9921 soname_spec='${libname}${release}${shared_ext}$major'
9922 if test "X$HPUX_IA64_MODE" = X32; then
9923 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9924 else
9925 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9927 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9929 hppa*64*)
9930 shrext_cmds='.sl'
9931 hardcode_into_libs=yes
9932 dynamic_linker="$host_os dld.sl"
9933 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9934 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9936 soname_spec='${libname}${release}${shared_ext}$major'
9937 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9938 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9941 shrext_cmds='.sl'
9942 dynamic_linker="$host_os dld.sl"
9943 shlibpath_var=SHLIB_PATH
9944 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9946 soname_spec='${libname}${release}${shared_ext}$major'
9948 esac
9949 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9950 postinstall_cmds='chmod 555 $lib'
9953 interix3*)
9954 version_type=linux
9955 need_lib_prefix=no
9956 need_version=no
9957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9958 soname_spec='${libname}${release}${shared_ext}$major'
9959 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9960 shlibpath_var=LD_LIBRARY_PATH
9961 shlibpath_overrides_runpath=no
9962 hardcode_into_libs=yes
9965 irix5* | irix6* | nonstopux*)
9966 case $host_os in
9967 nonstopux*) version_type=nonstopux ;;
9969 if test "$lt_cv_prog_gnu_ld" = yes; then
9970 version_type=linux
9971 else
9972 version_type=irix
9973 fi ;;
9974 esac
9975 need_lib_prefix=no
9976 need_version=no
9977 soname_spec='${libname}${release}${shared_ext}$major'
9978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9979 case $host_os in
9980 irix5* | nonstopux*)
9981 libsuff= shlibsuff=
9984 case $LD in # libtool.m4 will add one of these switches to LD
9985 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9986 libsuff= shlibsuff= libmagic=32-bit;;
9987 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9988 libsuff=32 shlibsuff=N32 libmagic=N32;;
9989 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9990 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9991 *) libsuff= shlibsuff= libmagic=never-match;;
9992 esac
9994 esac
9995 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9996 shlibpath_overrides_runpath=no
9997 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9998 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9999 hardcode_into_libs=yes
10002 # No shared lib support for Linux oldld, aout, or coff.
10003 linux*oldld* | linux*aout* | linux*coff*)
10004 dynamic_linker=no
10007 # This must be Linux ELF.
10008 linux*)
10009 version_type=linux
10010 need_lib_prefix=no
10011 need_version=no
10012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10013 soname_spec='${libname}${release}${shared_ext}$major'
10014 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10015 shlibpath_var=LD_LIBRARY_PATH
10016 shlibpath_overrides_runpath=no
10017 # This implies no fast_install, which is unacceptable.
10018 # Some rework will be needed to allow for fast_install
10019 # before this can be enabled.
10020 hardcode_into_libs=yes
10022 # Append ld.so.conf contents to the search path
10023 if test -f /etc/ld.so.conf; then
10024 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' ' '`
10025 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10028 # We used to test for /lib/ld.so.1 and disable shared libraries on
10029 # powerpc, because MkLinux only supported shared libraries with the
10030 # GNU dynamic linker. Since this was broken with cross compilers,
10031 # most powerpc-linux boxes support dynamic linking these days and
10032 # people can always --disable-shared, the test was removed, and we
10033 # assume the GNU/Linux dynamic linker is in use.
10034 dynamic_linker='GNU/Linux ld.so'
10037 knetbsd*-gnu)
10038 version_type=linux
10039 need_lib_prefix=no
10040 need_version=no
10041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10042 soname_spec='${libname}${release}${shared_ext}$major'
10043 shlibpath_var=LD_LIBRARY_PATH
10044 shlibpath_overrides_runpath=no
10045 hardcode_into_libs=yes
10046 dynamic_linker='GNU ld.so'
10049 netbsd*)
10050 version_type=sunos
10051 need_lib_prefix=no
10052 need_version=no
10053 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10055 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10056 dynamic_linker='NetBSD (a.out) ld.so'
10057 else
10058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10059 soname_spec='${libname}${release}${shared_ext}$major'
10060 dynamic_linker='NetBSD ld.elf_so'
10062 shlibpath_var=LD_LIBRARY_PATH
10063 shlibpath_overrides_runpath=yes
10064 hardcode_into_libs=yes
10067 newsos6)
10068 version_type=linux
10069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10070 shlibpath_var=LD_LIBRARY_PATH
10071 shlibpath_overrides_runpath=yes
10074 nto-qnx*)
10075 version_type=linux
10076 need_lib_prefix=no
10077 need_version=no
10078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10079 soname_spec='${libname}${release}${shared_ext}$major'
10080 shlibpath_var=LD_LIBRARY_PATH
10081 shlibpath_overrides_runpath=yes
10084 openbsd*)
10085 version_type=sunos
10086 sys_lib_dlsearch_path_spec="/usr/lib"
10087 need_lib_prefix=no
10088 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10089 case $host_os in
10090 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10091 *) need_version=no ;;
10092 esac
10093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10095 shlibpath_var=LD_LIBRARY_PATH
10096 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10097 case $host_os in
10098 openbsd2.[89] | openbsd2.[89].*)
10099 shlibpath_overrides_runpath=no
10102 shlibpath_overrides_runpath=yes
10104 esac
10105 else
10106 shlibpath_overrides_runpath=yes
10110 os2*)
10111 libname_spec='$name'
10112 shrext_cmds=".dll"
10113 need_lib_prefix=no
10114 library_names_spec='$libname${shared_ext} $libname.a'
10115 dynamic_linker='OS/2 ld.exe'
10116 shlibpath_var=LIBPATH
10119 osf3* | osf4* | osf5*)
10120 version_type=osf
10121 need_lib_prefix=no
10122 need_version=no
10123 soname_spec='${libname}${release}${shared_ext}$major'
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10125 shlibpath_var=LD_LIBRARY_PATH
10126 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10127 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10130 solaris*)
10131 version_type=linux
10132 need_lib_prefix=no
10133 need_version=no
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10135 soname_spec='${libname}${release}${shared_ext}$major'
10136 shlibpath_var=LD_LIBRARY_PATH
10137 shlibpath_overrides_runpath=yes
10138 hardcode_into_libs=yes
10139 # ldd complains unless libraries are executable
10140 postinstall_cmds='chmod +x $lib'
10143 sunos4*)
10144 version_type=sunos
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10146 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10147 shlibpath_var=LD_LIBRARY_PATH
10148 shlibpath_overrides_runpath=yes
10149 if test "$with_gnu_ld" = yes; then
10150 need_lib_prefix=no
10152 need_version=yes
10155 sysv4 | sysv4.3*)
10156 version_type=linux
10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10158 soname_spec='${libname}${release}${shared_ext}$major'
10159 shlibpath_var=LD_LIBRARY_PATH
10160 case $host_vendor in
10161 sni)
10162 shlibpath_overrides_runpath=no
10163 need_lib_prefix=no
10164 export_dynamic_flag_spec='${wl}-Blargedynsym'
10165 runpath_var=LD_RUN_PATH
10167 siemens)
10168 need_lib_prefix=no
10170 motorola)
10171 need_lib_prefix=no
10172 need_version=no
10173 shlibpath_overrides_runpath=no
10174 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10176 esac
10179 sysv4*MP*)
10180 if test -d /usr/nec ;then
10181 version_type=linux
10182 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10183 soname_spec='$libname${shared_ext}.$major'
10184 shlibpath_var=LD_LIBRARY_PATH
10188 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10189 version_type=freebsd-elf
10190 need_lib_prefix=no
10191 need_version=no
10192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10193 soname_spec='${libname}${release}${shared_ext}$major'
10194 shlibpath_var=LD_LIBRARY_PATH
10195 hardcode_into_libs=yes
10196 if test "$with_gnu_ld" = yes; then
10197 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10198 shlibpath_overrides_runpath=no
10199 else
10200 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10201 shlibpath_overrides_runpath=yes
10202 case $host_os in
10203 sco3.2v5*)
10204 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10206 esac
10208 sys_lib_dlsearch_path_spec='/usr/lib'
10211 uts4*)
10212 version_type=linux
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10214 soname_spec='${libname}${release}${shared_ext}$major'
10215 shlibpath_var=LD_LIBRARY_PATH
10219 dynamic_linker=no
10221 esac
10222 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10223 echo "${ECHO_T}$dynamic_linker" >&6; }
10224 test "$dynamic_linker" = no && can_build_shared=no
10226 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10227 if test "$GCC" = yes; then
10228 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10232 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10233 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10234 if test "${libltdl_cv_shlibext+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10236 else
10238 module=yes
10239 eval libltdl_cv_shlibext=$shrext_cmds
10242 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10243 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10244 if test -n "$libltdl_cv_shlibext"; then
10246 cat >>confdefs.h <<_ACEOF
10247 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10248 _ACEOF
10253 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10254 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10255 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10256 echo $ECHO_N "(cached) $ECHO_C" >&6
10257 else
10258 libltdl_cv_shlibpath_var="$shlibpath_var"
10260 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10261 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10262 if test -n "$libltdl_cv_shlibpath_var"; then
10264 cat >>confdefs.h <<_ACEOF
10265 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10266 _ACEOF
10271 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10272 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10273 if test "${libltdl_cv_sys_search_path+set}" = set; then
10274 echo $ECHO_N "(cached) $ECHO_C" >&6
10275 else
10276 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10278 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10279 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10280 if test -n "$libltdl_cv_sys_search_path"; then
10281 sys_search_path=
10282 for dir in $libltdl_cv_sys_search_path; do
10283 if test -z "$sys_search_path"; then
10284 sys_search_path="$dir"
10285 else
10286 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10288 done
10290 cat >>confdefs.h <<_ACEOF
10291 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10292 _ACEOF
10296 { echo "$as_me:$LINENO: checking for objdir" >&5
10297 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10298 if test "${libltdl_cv_objdir+set}" = set; then
10299 echo $ECHO_N "(cached) $ECHO_C" >&6
10300 else
10301 libltdl_cv_objdir="$objdir"
10302 if test -n "$objdir"; then
10304 else
10305 rm -f .libs 2>/dev/null
10306 mkdir .libs 2>/dev/null
10307 if test -d .libs; then
10308 libltdl_cv_objdir=.libs
10309 else
10310 # MS-DOS does not allow filenames that begin with a dot.
10311 libltdl_cv_objdir=_libs
10313 rmdir .libs 2>/dev/null
10317 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10318 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10320 cat >>confdefs.h <<_ACEOF
10321 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10322 _ACEOF
10329 # Check for command to grab the raw symbol name followed by C symbol from nm.
10330 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10331 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10332 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10333 echo $ECHO_N "(cached) $ECHO_C" >&6
10334 else
10336 # These are sane defaults that work on at least a few old systems.
10337 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10339 # Character class describing NM global symbol codes.
10340 symcode='[BCDEGRST]'
10342 # Regexp to match symbols that can be accessed directly from C.
10343 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10345 # Transform an extracted symbol line into a proper C declaration
10346 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10348 # Transform an extracted symbol line into symbol name and symbol address
10349 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'"
10351 # Define system-specific variables.
10352 case $host_os in
10353 aix*)
10354 symcode='[BCDT]'
10356 cygwin* | mingw* | pw32*)
10357 symcode='[ABCDGISTW]'
10359 hpux*) # Its linker distinguishes data from code symbols
10360 if test "$host_cpu" = ia64; then
10361 symcode='[ABCDEGRST]'
10363 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10364 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'"
10366 linux*)
10367 if test "$host_cpu" = ia64; then
10368 symcode='[ABCDGIRSTW]'
10369 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10370 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'"
10373 irix* | nonstopux*)
10374 symcode='[BCDEGRST]'
10376 osf*)
10377 symcode='[BCDEGQRST]'
10379 solaris*)
10380 symcode='[BDRT]'
10382 sco3.2v5*)
10383 symcode='[DT]'
10385 sysv4.2uw2*)
10386 symcode='[DT]'
10388 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10389 symcode='[ABDT]'
10391 sysv4)
10392 symcode='[DFNSTU]'
10394 esac
10396 # Handle CRLF in mingw tool chain
10397 opt_cr=
10398 case $build_os in
10399 mingw*)
10400 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10402 esac
10404 # If we're using GNU nm, then use its standard symbol codes.
10405 case `$NM -V 2>&1` in
10406 *GNU* | *'with BFD'*)
10407 symcode='[ABCDGIRSTW]' ;;
10408 esac
10410 # Try without a prefix undercore, then with it.
10411 for ac_symprfx in "" "_"; do
10413 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10414 symxfrm="\\1 $ac_symprfx\\2 \\2"
10416 # Write the raw and C identifiers.
10417 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10419 # Check to see that the pipe works correctly.
10420 pipe_works=no
10422 rm -f conftest*
10423 cat > conftest.$ac_ext <<EOF
10424 #ifdef __cplusplus
10425 extern "C" {
10426 #endif
10427 char nm_test_var;
10428 void nm_test_func(){}
10429 #ifdef __cplusplus
10431 #endif
10432 int main(){nm_test_var='a';nm_test_func();return(0);}
10435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10436 (eval $ac_compile) 2>&5
10437 ac_status=$?
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); }; then
10440 # Now try to grab the symbols.
10441 nlist=conftest.nm
10442 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10443 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10444 ac_status=$?
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); } && test -s "$nlist"; then
10447 # Try sorting and uniquifying the output.
10448 if sort "$nlist" | uniq > "$nlist"T; then
10449 mv -f "$nlist"T "$nlist"
10450 else
10451 rm -f "$nlist"T
10454 # Make sure that we snagged all the symbols we need.
10455 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10456 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10457 cat <<EOF > conftest.$ac_ext
10458 #ifdef __cplusplus
10459 extern "C" {
10460 #endif
10463 # Now generate the symbol file.
10464 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10466 cat <<EOF >> conftest.$ac_ext
10467 #if defined (__STDC__) && __STDC__
10468 # define lt_ptr_t void *
10469 #else
10470 # define lt_ptr_t char *
10471 # define const
10472 #endif
10474 /* The mapping between symbol names and symbols. */
10475 const struct {
10476 const char *name;
10477 lt_ptr_t address;
10479 lt_preloaded_symbols[] =
10482 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10483 cat <<\EOF >> conftest.$ac_ext
10484 {0, (lt_ptr_t) 0}
10487 #ifdef __cplusplus
10489 #endif
10491 # Now try linking the two files.
10492 mv conftest.$ac_objext conftstm.$ac_objext
10493 lt_save_LIBS="$LIBS"
10494 lt_save_CFLAGS="$CFLAGS"
10495 LIBS="conftstm.$ac_objext"
10496 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10498 (eval $ac_link) 2>&5
10499 ac_status=$?
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10502 pipe_works=yes
10504 LIBS="$lt_save_LIBS"
10505 CFLAGS="$lt_save_CFLAGS"
10506 else
10507 echo "cannot find nm_test_func in $nlist" >&5
10509 else
10510 echo "cannot find nm_test_var in $nlist" >&5
10512 else
10513 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10515 else
10516 echo "$progname: failed program was:" >&5
10517 cat conftest.$ac_ext >&5
10519 rm -f conftest* conftst*
10521 # Do not use the global_symbol_pipe unless it works.
10522 if test "$pipe_works" = yes; then
10523 break
10524 else
10525 lt_cv_sys_global_symbol_pipe=
10527 done
10531 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10532 lt_cv_sys_global_symbol_to_cdecl=
10534 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10535 { echo "$as_me:$LINENO: result: failed" >&5
10536 echo "${ECHO_T}failed" >&6; }
10537 else
10538 { echo "$as_me:$LINENO: result: ok" >&5
10539 echo "${ECHO_T}ok" >&6; }
10543 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10544 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10545 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10547 else
10548 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10549 libltdl_cv_preloaded_symbols=yes
10550 else
10551 libltdl_cv_preloaded_symbols=no
10555 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10556 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10557 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10559 cat >>confdefs.h <<\_ACEOF
10560 #define HAVE_PRELOADED_SYMBOLS 1
10561 _ACEOF
10565 LIBADD_DL=
10567 ac_ext=c
10568 ac_cpp='$CPP $CPPFLAGS'
10569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10574 { echo "$as_me:$LINENO: checking for shl_load" >&5
10575 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10576 if test "${ac_cv_func_shl_load+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10578 else
10579 cat >conftest.$ac_ext <<_ACEOF
10580 /* confdefs.h. */
10581 _ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h. */
10585 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10587 #define shl_load innocuous_shl_load
10589 /* System header to define __stub macros and hopefully few prototypes,
10590 which can conflict with char shl_load (); below.
10591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10592 <limits.h> exists even on freestanding compilers. */
10594 #ifdef __STDC__
10595 # include <limits.h>
10596 #else
10597 # include <assert.h>
10598 #endif
10600 #undef shl_load
10602 /* Override any GCC internal prototype to avoid an error.
10603 Use char because int might match the return type of a GCC
10604 builtin and then its argument prototype would still apply. */
10605 #ifdef __cplusplus
10606 extern "C"
10607 #endif
10608 char shl_load ();
10609 /* The GNU C library defines this for functions which it implements
10610 to always fail with ENOSYS. Some functions are actually named
10611 something starting with __ and the normal name is an alias. */
10612 #if defined __stub_shl_load || defined __stub___shl_load
10613 choke me
10614 #endif
10617 main ()
10619 return shl_load ();
10621 return 0;
10623 _ACEOF
10624 rm -f conftest.$ac_objext conftest$ac_exeext
10625 if { (ac_try="$ac_link"
10626 case "(($ac_try" in
10627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10629 esac
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_link") 2>conftest.er1
10632 ac_status=$?
10633 grep -v '^ *+' conftest.er1 >conftest.err
10634 rm -f conftest.er1
10635 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } &&
10638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10639 { (case "(($ac_try" in
10640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641 *) ac_try_echo=$ac_try;;
10642 esac
10643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644 (eval "$ac_try") 2>&5
10645 ac_status=$?
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; } &&
10648 { ac_try='test -s conftest$ac_exeext'
10649 { (case "(($ac_try" in
10650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651 *) ac_try_echo=$ac_try;;
10652 esac
10653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10654 (eval "$ac_try") 2>&5
10655 ac_status=$?
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; }; then
10658 ac_cv_func_shl_load=yes
10659 else
10660 echo "$as_me: failed program was:" >&5
10661 sed 's/^/| /' conftest.$ac_ext >&5
10663 ac_cv_func_shl_load=no
10666 rm -f core conftest.err conftest.$ac_objext \
10667 conftest$ac_exeext conftest.$ac_ext
10669 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10670 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10671 if test $ac_cv_func_shl_load = yes; then
10673 cat >>confdefs.h <<\_ACEOF
10674 #define HAVE_SHL_LOAD 1
10675 _ACEOF
10677 else
10678 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10679 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10680 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10681 echo $ECHO_N "(cached) $ECHO_C" >&6
10682 else
10683 ac_check_lib_save_LIBS=$LIBS
10684 LIBS="-ldld $LIBS"
10685 cat >conftest.$ac_ext <<_ACEOF
10686 /* confdefs.h. */
10687 _ACEOF
10688 cat confdefs.h >>conftest.$ac_ext
10689 cat >>conftest.$ac_ext <<_ACEOF
10690 /* end confdefs.h. */
10692 /* Override any GCC internal prototype to avoid an error.
10693 Use char because int might match the return type of a GCC
10694 builtin and then its argument prototype would still apply. */
10695 #ifdef __cplusplus
10696 extern "C"
10697 #endif
10698 char shl_load ();
10700 main ()
10702 return shl_load ();
10704 return 0;
10706 _ACEOF
10707 rm -f conftest.$ac_objext conftest$ac_exeext
10708 if { (ac_try="$ac_link"
10709 case "(($ac_try" in
10710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10711 *) ac_try_echo=$ac_try;;
10712 esac
10713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10714 (eval "$ac_link") 2>conftest.er1
10715 ac_status=$?
10716 grep -v '^ *+' conftest.er1 >conftest.err
10717 rm -f conftest.er1
10718 cat conftest.err >&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); } &&
10721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10722 { (case "(($ac_try" in
10723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10724 *) ac_try_echo=$ac_try;;
10725 esac
10726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10727 (eval "$ac_try") 2>&5
10728 ac_status=$?
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); }; } &&
10731 { ac_try='test -s conftest$ac_exeext'
10732 { (case "(($ac_try" in
10733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734 *) ac_try_echo=$ac_try;;
10735 esac
10736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10737 (eval "$ac_try") 2>&5
10738 ac_status=$?
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; }; then
10741 ac_cv_lib_dld_shl_load=yes
10742 else
10743 echo "$as_me: failed program was:" >&5
10744 sed 's/^/| /' conftest.$ac_ext >&5
10746 ac_cv_lib_dld_shl_load=no
10749 rm -f core conftest.err conftest.$ac_objext \
10750 conftest$ac_exeext conftest.$ac_ext
10751 LIBS=$ac_check_lib_save_LIBS
10753 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10754 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10755 if test $ac_cv_lib_dld_shl_load = yes; then
10757 cat >>confdefs.h <<\_ACEOF
10758 #define HAVE_SHL_LOAD 1
10759 _ACEOF
10761 LIBADD_DL="$LIBADD_DL -ldld"
10762 else
10763 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10764 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10765 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10766 echo $ECHO_N "(cached) $ECHO_C" >&6
10767 else
10768 ac_check_lib_save_LIBS=$LIBS
10769 LIBS="-ldl $LIBS"
10770 cat >conftest.$ac_ext <<_ACEOF
10771 /* confdefs.h. */
10772 _ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h. */
10777 /* Override any GCC internal prototype to avoid an error.
10778 Use char because int might match the return type of a GCC
10779 builtin and then its argument prototype would still apply. */
10780 #ifdef __cplusplus
10781 extern "C"
10782 #endif
10783 char dlopen ();
10785 main ()
10787 return dlopen ();
10789 return 0;
10791 _ACEOF
10792 rm -f conftest.$ac_objext conftest$ac_exeext
10793 if { (ac_try="$ac_link"
10794 case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10797 esac
10798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_link") 2>conftest.er1
10800 ac_status=$?
10801 grep -v '^ *+' conftest.er1 >conftest.err
10802 rm -f conftest.er1
10803 cat conftest.err >&5
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); } &&
10806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10807 { (case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10810 esac
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_try") 2>&5
10813 ac_status=$?
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; } &&
10816 { ac_try='test -s conftest$ac_exeext'
10817 { (case "(($ac_try" in
10818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819 *) ac_try_echo=$ac_try;;
10820 esac
10821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10822 (eval "$ac_try") 2>&5
10823 ac_status=$?
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); }; }; then
10826 ac_cv_lib_dl_dlopen=yes
10827 else
10828 echo "$as_me: failed program was:" >&5
10829 sed 's/^/| /' conftest.$ac_ext >&5
10831 ac_cv_lib_dl_dlopen=no
10834 rm -f core conftest.err conftest.$ac_objext \
10835 conftest$ac_exeext conftest.$ac_ext
10836 LIBS=$ac_check_lib_save_LIBS
10838 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10839 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10840 if test $ac_cv_lib_dl_dlopen = yes; then
10842 cat >>confdefs.h <<\_ACEOF
10843 #define HAVE_LIBDL 1
10844 _ACEOF
10846 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10847 else
10848 cat >conftest.$ac_ext <<_ACEOF
10849 /* confdefs.h. */
10850 _ACEOF
10851 cat confdefs.h >>conftest.$ac_ext
10852 cat >>conftest.$ac_ext <<_ACEOF
10853 /* end confdefs.h. */
10854 #if HAVE_DLFCN_H
10855 # include <dlfcn.h>
10856 #endif
10859 main ()
10861 dlopen(0, 0);
10863 return 0;
10865 _ACEOF
10866 rm -f conftest.$ac_objext conftest$ac_exeext
10867 if { (ac_try="$ac_link"
10868 case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10871 esac
10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_link") 2>conftest.er1
10874 ac_status=$?
10875 grep -v '^ *+' conftest.er1 >conftest.err
10876 rm -f conftest.er1
10877 cat conftest.err >&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } &&
10880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10881 { (case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10884 esac
10885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886 (eval "$ac_try") 2>&5
10887 ac_status=$?
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; } &&
10890 { ac_try='test -s conftest$ac_exeext'
10891 { (case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10894 esac
10895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896 (eval "$ac_try") 2>&5
10897 ac_status=$?
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; }; then
10901 cat >>confdefs.h <<\_ACEOF
10902 #define HAVE_LIBDL 1
10903 _ACEOF
10904 libltdl_cv_func_dlopen="yes"
10905 else
10906 echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.$ac_ext >&5
10909 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10910 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10911 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
10913 else
10914 ac_check_lib_save_LIBS=$LIBS
10915 LIBS="-lsvld $LIBS"
10916 cat >conftest.$ac_ext <<_ACEOF
10917 /* confdefs.h. */
10918 _ACEOF
10919 cat confdefs.h >>conftest.$ac_ext
10920 cat >>conftest.$ac_ext <<_ACEOF
10921 /* end confdefs.h. */
10923 /* Override any GCC internal prototype to avoid an error.
10924 Use char because int might match the return type of a GCC
10925 builtin and then its argument prototype would still apply. */
10926 #ifdef __cplusplus
10927 extern "C"
10928 #endif
10929 char dlopen ();
10931 main ()
10933 return dlopen ();
10935 return 0;
10937 _ACEOF
10938 rm -f conftest.$ac_objext conftest$ac_exeext
10939 if { (ac_try="$ac_link"
10940 case "(($ac_try" in
10941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10942 *) ac_try_echo=$ac_try;;
10943 esac
10944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10945 (eval "$ac_link") 2>conftest.er1
10946 ac_status=$?
10947 grep -v '^ *+' conftest.er1 >conftest.err
10948 rm -f conftest.er1
10949 cat conftest.err >&5
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); } &&
10952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10953 { (case "(($ac_try" in
10954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10955 *) ac_try_echo=$ac_try;;
10956 esac
10957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10958 (eval "$ac_try") 2>&5
10959 ac_status=$?
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; } &&
10962 { ac_try='test -s conftest$ac_exeext'
10963 { (case "(($ac_try" in
10964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10965 *) ac_try_echo=$ac_try;;
10966 esac
10967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10968 (eval "$ac_try") 2>&5
10969 ac_status=$?
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); }; }; then
10972 ac_cv_lib_svld_dlopen=yes
10973 else
10974 echo "$as_me: failed program was:" >&5
10975 sed 's/^/| /' conftest.$ac_ext >&5
10977 ac_cv_lib_svld_dlopen=no
10980 rm -f core conftest.err conftest.$ac_objext \
10981 conftest$ac_exeext conftest.$ac_ext
10982 LIBS=$ac_check_lib_save_LIBS
10984 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10985 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10986 if test $ac_cv_lib_svld_dlopen = yes; then
10988 cat >>confdefs.h <<\_ACEOF
10989 #define HAVE_LIBDL 1
10990 _ACEOF
10992 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10993 else
10994 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10995 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10996 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10997 echo $ECHO_N "(cached) $ECHO_C" >&6
10998 else
10999 ac_check_lib_save_LIBS=$LIBS
11000 LIBS="-ldld $LIBS"
11001 cat >conftest.$ac_ext <<_ACEOF
11002 /* confdefs.h. */
11003 _ACEOF
11004 cat confdefs.h >>conftest.$ac_ext
11005 cat >>conftest.$ac_ext <<_ACEOF
11006 /* end confdefs.h. */
11008 /* Override any GCC internal prototype to avoid an error.
11009 Use char because int might match the return type of a GCC
11010 builtin and then its argument prototype would still apply. */
11011 #ifdef __cplusplus
11012 extern "C"
11013 #endif
11014 char dld_link ();
11016 main ()
11018 return dld_link ();
11020 return 0;
11022 _ACEOF
11023 rm -f conftest.$ac_objext conftest$ac_exeext
11024 if { (ac_try="$ac_link"
11025 case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11028 esac
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_link") 2>conftest.er1
11031 ac_status=$?
11032 grep -v '^ *+' conftest.er1 >conftest.err
11033 rm -f conftest.er1
11034 cat conftest.err >&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } &&
11037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11038 { (case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11041 esac
11042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043 (eval "$ac_try") 2>&5
11044 ac_status=$?
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; } &&
11047 { ac_try='test -s conftest$ac_exeext'
11048 { (case "(($ac_try" in
11049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050 *) ac_try_echo=$ac_try;;
11051 esac
11052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053 (eval "$ac_try") 2>&5
11054 ac_status=$?
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; }; then
11057 ac_cv_lib_dld_dld_link=yes
11058 else
11059 echo "$as_me: failed program was:" >&5
11060 sed 's/^/| /' conftest.$ac_ext >&5
11062 ac_cv_lib_dld_dld_link=no
11065 rm -f core conftest.err conftest.$ac_objext \
11066 conftest$ac_exeext conftest.$ac_ext
11067 LIBS=$ac_check_lib_save_LIBS
11069 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11070 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11071 if test $ac_cv_lib_dld_dld_link = yes; then
11073 cat >>confdefs.h <<\_ACEOF
11074 #define HAVE_DLD 1
11075 _ACEOF
11077 LIBADD_DL="$LIBADD_DL -ldld"
11078 else
11079 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11080 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11081 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11083 else
11084 cat >conftest.$ac_ext <<_ACEOF
11085 /* confdefs.h. */
11086 _ACEOF
11087 cat confdefs.h >>conftest.$ac_ext
11088 cat >>conftest.$ac_ext <<_ACEOF
11089 /* end confdefs.h. */
11090 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11092 #define _dyld_func_lookup innocuous__dyld_func_lookup
11094 /* System header to define __stub macros and hopefully few prototypes,
11095 which can conflict with char _dyld_func_lookup (); below.
11096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11097 <limits.h> exists even on freestanding compilers. */
11099 #ifdef __STDC__
11100 # include <limits.h>
11101 #else
11102 # include <assert.h>
11103 #endif
11105 #undef _dyld_func_lookup
11107 /* Override any GCC internal prototype to avoid an error.
11108 Use char because int might match the return type of a GCC
11109 builtin and then its argument prototype would still apply. */
11110 #ifdef __cplusplus
11111 extern "C"
11112 #endif
11113 char _dyld_func_lookup ();
11114 /* The GNU C library defines this for functions which it implements
11115 to always fail with ENOSYS. Some functions are actually named
11116 something starting with __ and the normal name is an alias. */
11117 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11118 choke me
11119 #endif
11122 main ()
11124 return _dyld_func_lookup ();
11126 return 0;
11128 _ACEOF
11129 rm -f conftest.$ac_objext conftest$ac_exeext
11130 if { (ac_try="$ac_link"
11131 case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11134 esac
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_link") 2>conftest.er1
11137 ac_status=$?
11138 grep -v '^ *+' conftest.er1 >conftest.err
11139 rm -f conftest.er1
11140 cat conftest.err >&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); } &&
11143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11144 { (case "(($ac_try" in
11145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11146 *) ac_try_echo=$ac_try;;
11147 esac
11148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11149 (eval "$ac_try") 2>&5
11150 ac_status=$?
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); }; } &&
11153 { ac_try='test -s conftest$ac_exeext'
11154 { (case "(($ac_try" in
11155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156 *) ac_try_echo=$ac_try;;
11157 esac
11158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11159 (eval "$ac_try") 2>&5
11160 ac_status=$?
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; }; then
11163 ac_cv_func__dyld_func_lookup=yes
11164 else
11165 echo "$as_me: failed program was:" >&5
11166 sed 's/^/| /' conftest.$ac_ext >&5
11168 ac_cv_func__dyld_func_lookup=no
11171 rm -f core conftest.err conftest.$ac_objext \
11172 conftest$ac_exeext conftest.$ac_ext
11174 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11175 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11176 if test $ac_cv_func__dyld_func_lookup = yes; then
11178 cat >>confdefs.h <<\_ACEOF
11179 #define HAVE_DYLD 1
11180 _ACEOF
11193 rm -f core conftest.err conftest.$ac_objext \
11194 conftest$ac_exeext conftest.$ac_ext
11205 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11206 then
11207 lt_save_LIBS="$LIBS"
11208 LIBS="$LIBS $LIBADD_DL"
11210 for ac_func in dlerror
11212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11213 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11215 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11216 echo $ECHO_N "(cached) $ECHO_C" >&6
11217 else
11218 cat >conftest.$ac_ext <<_ACEOF
11219 /* confdefs.h. */
11220 _ACEOF
11221 cat confdefs.h >>conftest.$ac_ext
11222 cat >>conftest.$ac_ext <<_ACEOF
11223 /* end confdefs.h. */
11224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11226 #define $ac_func innocuous_$ac_func
11228 /* System header to define __stub macros and hopefully few prototypes,
11229 which can conflict with char $ac_func (); below.
11230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11231 <limits.h> exists even on freestanding compilers. */
11233 #ifdef __STDC__
11234 # include <limits.h>
11235 #else
11236 # include <assert.h>
11237 #endif
11239 #undef $ac_func
11241 /* Override any GCC internal prototype to avoid an error.
11242 Use char because int might match the return type of a GCC
11243 builtin and then its argument prototype would still apply. */
11244 #ifdef __cplusplus
11245 extern "C"
11246 #endif
11247 char $ac_func ();
11248 /* The GNU C library defines this for functions which it implements
11249 to always fail with ENOSYS. Some functions are actually named
11250 something starting with __ and the normal name is an alias. */
11251 #if defined __stub_$ac_func || defined __stub___$ac_func
11252 choke me
11253 #endif
11256 main ()
11258 return $ac_func ();
11260 return 0;
11262 _ACEOF
11263 rm -f conftest.$ac_objext conftest$ac_exeext
11264 if { (ac_try="$ac_link"
11265 case "(($ac_try" in
11266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11267 *) ac_try_echo=$ac_try;;
11268 esac
11269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11270 (eval "$ac_link") 2>conftest.er1
11271 ac_status=$?
11272 grep -v '^ *+' conftest.er1 >conftest.err
11273 rm -f conftest.er1
11274 cat conftest.err >&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); } &&
11277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11278 { (case "(($ac_try" in
11279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280 *) ac_try_echo=$ac_try;;
11281 esac
11282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283 (eval "$ac_try") 2>&5
11284 ac_status=$?
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; } &&
11287 { ac_try='test -s conftest$ac_exeext'
11288 { (case "(($ac_try" in
11289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11290 *) ac_try_echo=$ac_try;;
11291 esac
11292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11293 (eval "$ac_try") 2>&5
11294 ac_status=$?
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); }; }; then
11297 eval "$as_ac_var=yes"
11298 else
11299 echo "$as_me: failed program was:" >&5
11300 sed 's/^/| /' conftest.$ac_ext >&5
11302 eval "$as_ac_var=no"
11305 rm -f core conftest.err conftest.$ac_objext \
11306 conftest$ac_exeext conftest.$ac_ext
11308 ac_res=`eval echo '${'$as_ac_var'}'`
11309 { echo "$as_me:$LINENO: result: $ac_res" >&5
11310 echo "${ECHO_T}$ac_res" >&6; }
11311 if test `eval echo '${'$as_ac_var'}'` = yes; then
11312 cat >>confdefs.h <<_ACEOF
11313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11314 _ACEOF
11317 done
11319 LIBS="$lt_save_LIBS"
11321 ac_ext=c
11322 ac_cpp='$CPP $CPPFLAGS'
11323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11329 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11330 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11331 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11332 echo $ECHO_N "(cached) $ECHO_C" >&6
11333 else
11334 ac_cv_sys_symbol_underscore=no
11335 cat > conftest.$ac_ext <<EOF
11336 void nm_test_func(){}
11337 int main(){nm_test_func;return 0;}
11339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11340 (eval $ac_compile) 2>&5
11341 ac_status=$?
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); }; then
11344 # Now try to grab the symbols.
11345 ac_nlist=conftest.nm
11346 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11347 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11348 ac_status=$?
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); } && test -s "$ac_nlist"; then
11351 # See whether the symbols have a leading underscore.
11352 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11353 ac_cv_sys_symbol_underscore=yes
11354 else
11355 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11357 else
11358 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11361 else
11362 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11364 else
11365 echo "configure: failed program was:" >&5
11366 cat conftest.c >&5
11368 rm -rf conftest*
11371 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11372 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11375 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11376 if test x"$libltdl_cv_func_dlopen" = xyes ||
11377 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11378 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11379 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11380 if test "${libltdl_cv_need_uscore+set}" = set; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11382 else
11383 libltdl_cv_need_uscore=unknown
11384 save_LIBS="$LIBS"
11385 LIBS="$LIBS $LIBADD_DL"
11386 if test "$cross_compiling" = yes; then :
11387 libltdl_cv_need_uscore=cross
11388 else
11389 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11390 lt_status=$lt_dlunknown
11391 cat > conftest.$ac_ext <<EOF
11392 #line 11392 "configure"
11393 #include "confdefs.h"
11395 #if HAVE_DLFCN_H
11396 #include <dlfcn.h>
11397 #endif
11399 #include <stdio.h>
11401 #ifdef RTLD_GLOBAL
11402 # define LT_DLGLOBAL RTLD_GLOBAL
11403 #else
11404 # ifdef DL_GLOBAL
11405 # define LT_DLGLOBAL DL_GLOBAL
11406 # else
11407 # define LT_DLGLOBAL 0
11408 # endif
11409 #endif
11411 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11412 find out it does not work in some platform. */
11413 #ifndef LT_DLLAZY_OR_NOW
11414 # ifdef RTLD_LAZY
11415 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11416 # else
11417 # ifdef DL_LAZY
11418 # define LT_DLLAZY_OR_NOW DL_LAZY
11419 # else
11420 # ifdef RTLD_NOW
11421 # define LT_DLLAZY_OR_NOW RTLD_NOW
11422 # else
11423 # ifdef DL_NOW
11424 # define LT_DLLAZY_OR_NOW DL_NOW
11425 # else
11426 # define LT_DLLAZY_OR_NOW 0
11427 # endif
11428 # endif
11429 # endif
11430 # endif
11431 #endif
11433 #ifdef __cplusplus
11434 extern "C" void exit (int);
11435 #endif
11437 void fnord() { int i=42;}
11438 int main ()
11440 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11441 int status = $lt_dlunknown;
11443 if (self)
11445 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11446 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11447 /* dlclose (self); */
11449 else
11450 puts (dlerror ());
11452 exit (status);
11455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11456 (eval $ac_link) 2>&5
11457 ac_status=$?
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11460 (./conftest; exit; ) >&5 2>/dev/null
11461 lt_status=$?
11462 case x$lt_status in
11463 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11464 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11465 x$lt_dlunknown|x*) ;;
11466 esac
11467 else :
11468 # compilation failed
11472 rm -fr conftest*
11474 LIBS="$save_LIBS"
11477 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11478 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11482 if test x"$libltdl_cv_need_uscore" = xyes; then
11484 cat >>confdefs.h <<\_ACEOF
11485 #define NEED_USCORE 1
11486 _ACEOF
11491 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11492 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11493 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
11495 else
11496 # PORTME does your system automatically load deplibs for dlopen?
11497 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11498 # For now, we just catch OSes we know something about -- in the
11499 # future, we'll try test this programmatically.
11500 libltdl_cv_sys_dlopen_deplibs=unknown
11501 case "$host_os" in
11502 aix3*|aix4.1.*|aix4.2.*)
11503 # Unknown whether this is true for these versions of AIX, but
11504 # we want this `case' here to explicitly catch those versions.
11505 libltdl_cv_sys_dlopen_deplibs=unknown
11507 aix[45]*)
11508 libltdl_cv_sys_dlopen_deplibs=yes
11510 darwin*)
11511 # Assuming the user has installed a libdl from somewhere, this is true
11512 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11513 libltdl_cv_sys_dlopen_deplibs=yes
11515 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11516 # GNU and its variants, using gnu ld.so (Glibc)
11517 libltdl_cv_sys_dlopen_deplibs=yes
11519 hpux10*|hpux11*)
11520 libltdl_cv_sys_dlopen_deplibs=yes
11522 interix*)
11523 libltdl_cv_sys_dlopen_deplibs=yes
11525 irix[12345]*|irix6.[01]*)
11526 # Catch all versions of IRIX before 6.2, and indicate that we don't
11527 # know how it worked for any of those versions.
11528 libltdl_cv_sys_dlopen_deplibs=unknown
11530 irix*)
11531 # The case above catches anything before 6.2, and it's known that
11532 # at 6.2 and later dlopen does load deplibs.
11533 libltdl_cv_sys_dlopen_deplibs=yes
11535 netbsd*)
11536 libltdl_cv_sys_dlopen_deplibs=yes
11538 openbsd*)
11539 libltdl_cv_sys_dlopen_deplibs=yes
11541 osf[1234]*)
11542 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11543 # it did *not* use an RPATH in a shared library to find objects the
11544 # library depends on, so we explictly say `no'.
11545 libltdl_cv_sys_dlopen_deplibs=no
11547 osf5.0|osf5.0a|osf5.1)
11548 # dlopen *does* load deplibs and with the right loader patch applied
11549 # it even uses RPATH in a shared library to search for shared objects
11550 # that the library depends on, but there's no easy way to know if that
11551 # patch is installed. Since this is the case, all we can really
11552 # say is unknown -- it depends on the patch being installed. If
11553 # it is, this changes to `yes'. Without it, it would be `no'.
11554 libltdl_cv_sys_dlopen_deplibs=unknown
11556 osf*)
11557 # the two cases above should catch all versions of osf <= 5.1. Read
11558 # the comments above for what we know about them.
11559 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11560 # is used to find them so we can finally say `yes'.
11561 libltdl_cv_sys_dlopen_deplibs=yes
11563 solaris*)
11564 libltdl_cv_sys_dlopen_deplibs=yes
11566 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11567 libltdl_cv_sys_dlopen_deplibs=yes
11569 esac
11572 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11573 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11574 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11576 cat >>confdefs.h <<\_ACEOF
11577 #define LTDL_DLOPEN_DEPLIBS 1
11578 _ACEOF
11583 for ac_header in argz.h
11585 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11587 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11592 ac_res=`eval echo '${'$as_ac_Header'}'`
11593 { echo "$as_me:$LINENO: result: $ac_res" >&5
11594 echo "${ECHO_T}$ac_res" >&6; }
11595 else
11596 # Is the header compilable?
11597 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11598 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11599 cat >conftest.$ac_ext <<_ACEOF
11600 /* confdefs.h. */
11601 _ACEOF
11602 cat confdefs.h >>conftest.$ac_ext
11603 cat >>conftest.$ac_ext <<_ACEOF
11604 /* end confdefs.h. */
11605 $ac_includes_default
11606 #include <$ac_header>
11607 _ACEOF
11608 rm -f conftest.$ac_objext
11609 if { (ac_try="$ac_compile"
11610 case "(($ac_try" in
11611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612 *) ac_try_echo=$ac_try;;
11613 esac
11614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11615 (eval "$ac_compile") 2>conftest.er1
11616 ac_status=$?
11617 grep -v '^ *+' conftest.er1 >conftest.err
11618 rm -f conftest.er1
11619 cat conftest.err >&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); } &&
11622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11623 { (case "(($ac_try" in
11624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625 *) ac_try_echo=$ac_try;;
11626 esac
11627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11628 (eval "$ac_try") 2>&5
11629 ac_status=$?
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; } &&
11632 { ac_try='test -s conftest.$ac_objext'
11633 { (case "(($ac_try" in
11634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635 *) ac_try_echo=$ac_try;;
11636 esac
11637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11638 (eval "$ac_try") 2>&5
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; }; then
11642 ac_header_compiler=yes
11643 else
11644 echo "$as_me: failed program was:" >&5
11645 sed 's/^/| /' conftest.$ac_ext >&5
11647 ac_header_compiler=no
11650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11651 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11652 echo "${ECHO_T}$ac_header_compiler" >&6; }
11654 # Is the header present?
11655 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11656 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11657 cat >conftest.$ac_ext <<_ACEOF
11658 /* confdefs.h. */
11659 _ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h. */
11663 #include <$ac_header>
11664 _ACEOF
11665 if { (ac_try="$ac_cpp conftest.$ac_ext"
11666 case "(($ac_try" in
11667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668 *) ac_try_echo=$ac_try;;
11669 esac
11670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11672 ac_status=$?
11673 grep -v '^ *+' conftest.er1 >conftest.err
11674 rm -f conftest.er1
11675 cat conftest.err >&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); } >/dev/null; then
11678 if test -s conftest.err; then
11679 ac_cpp_err=$ac_c_preproc_warn_flag
11680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11681 else
11682 ac_cpp_err=
11684 else
11685 ac_cpp_err=yes
11687 if test -z "$ac_cpp_err"; then
11688 ac_header_preproc=yes
11689 else
11690 echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.$ac_ext >&5
11693 ac_header_preproc=no
11696 rm -f conftest.err conftest.$ac_ext
11697 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11698 echo "${ECHO_T}$ac_header_preproc" >&6; }
11700 # So? What about this header?
11701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11702 yes:no: )
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11707 ac_header_preproc=yes
11709 no:yes:* )
11710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11713 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11717 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11722 ( cat <<\_ASBOX
11723 ## ----------------------------------- ##
11724 ## Report this to llvmbugs@cs.uiuc.edu ##
11725 ## ----------------------------------- ##
11726 _ASBOX
11727 ) | sed "s/^/$as_me: WARNING: /" >&2
11729 esac
11730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734 else
11735 eval "$as_ac_Header=\$ac_header_preproc"
11737 ac_res=`eval echo '${'$as_ac_Header'}'`
11738 { echo "$as_me:$LINENO: result: $ac_res" >&5
11739 echo "${ECHO_T}$ac_res" >&6; }
11742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11743 cat >>confdefs.h <<_ACEOF
11744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11745 _ACEOF
11749 done
11752 { echo "$as_me:$LINENO: checking for error_t" >&5
11753 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11754 if test "${ac_cv_type_error_t+set}" = set; then
11755 echo $ECHO_N "(cached) $ECHO_C" >&6
11756 else
11757 cat >conftest.$ac_ext <<_ACEOF
11758 /* confdefs.h. */
11759 _ACEOF
11760 cat confdefs.h >>conftest.$ac_ext
11761 cat >>conftest.$ac_ext <<_ACEOF
11762 /* end confdefs.h. */
11763 #if HAVE_ARGZ_H
11764 # include <argz.h>
11765 #endif
11767 typedef error_t ac__type_new_;
11769 main ()
11771 if ((ac__type_new_ *) 0)
11772 return 0;
11773 if (sizeof (ac__type_new_))
11774 return 0;
11776 return 0;
11778 _ACEOF
11779 rm -f conftest.$ac_objext
11780 if { (ac_try="$ac_compile"
11781 case "(($ac_try" in
11782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783 *) ac_try_echo=$ac_try;;
11784 esac
11785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786 (eval "$ac_compile") 2>conftest.er1
11787 ac_status=$?
11788 grep -v '^ *+' conftest.er1 >conftest.err
11789 rm -f conftest.er1
11790 cat conftest.err >&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } &&
11793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11794 { (case "(($ac_try" in
11795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11796 *) ac_try_echo=$ac_try;;
11797 esac
11798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11799 (eval "$ac_try") 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; } &&
11803 { ac_try='test -s conftest.$ac_objext'
11804 { (case "(($ac_try" in
11805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11806 *) ac_try_echo=$ac_try;;
11807 esac
11808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11809 (eval "$ac_try") 2>&5
11810 ac_status=$?
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; }; then
11813 ac_cv_type_error_t=yes
11814 else
11815 echo "$as_me: failed program was:" >&5
11816 sed 's/^/| /' conftest.$ac_ext >&5
11818 ac_cv_type_error_t=no
11821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11823 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11824 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11825 if test $ac_cv_type_error_t = yes; then
11827 cat >>confdefs.h <<_ACEOF
11828 #define HAVE_ERROR_T 1
11829 _ACEOF
11832 else
11834 cat >>confdefs.h <<\_ACEOF
11835 #define error_t int
11836 _ACEOF
11846 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11849 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11852 echo $ECHO_N "(cached) $ECHO_C" >&6
11853 else
11854 cat >conftest.$ac_ext <<_ACEOF
11855 /* confdefs.h. */
11856 _ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h. */
11860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11862 #define $ac_func innocuous_$ac_func
11864 /* System header to define __stub macros and hopefully few prototypes,
11865 which can conflict with char $ac_func (); below.
11866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11867 <limits.h> exists even on freestanding compilers. */
11869 #ifdef __STDC__
11870 # include <limits.h>
11871 #else
11872 # include <assert.h>
11873 #endif
11875 #undef $ac_func
11877 /* Override any GCC internal prototype to avoid an error.
11878 Use char because int might match the return type of a GCC
11879 builtin and then its argument prototype would still apply. */
11880 #ifdef __cplusplus
11881 extern "C"
11882 #endif
11883 char $ac_func ();
11884 /* The GNU C library defines this for functions which it implements
11885 to always fail with ENOSYS. Some functions are actually named
11886 something starting with __ and the normal name is an alias. */
11887 #if defined __stub_$ac_func || defined __stub___$ac_func
11888 choke me
11889 #endif
11892 main ()
11894 return $ac_func ();
11896 return 0;
11898 _ACEOF
11899 rm -f conftest.$ac_objext conftest$ac_exeext
11900 if { (ac_try="$ac_link"
11901 case "(($ac_try" in
11902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11904 esac
11905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906 (eval "$ac_link") 2>conftest.er1
11907 ac_status=$?
11908 grep -v '^ *+' conftest.er1 >conftest.err
11909 rm -f conftest.er1
11910 cat conftest.err >&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } &&
11913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11914 { (case "(($ac_try" in
11915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916 *) ac_try_echo=$ac_try;;
11917 esac
11918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919 (eval "$ac_try") 2>&5
11920 ac_status=$?
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; } &&
11923 { ac_try='test -s conftest$ac_exeext'
11924 { (case "(($ac_try" in
11925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926 *) ac_try_echo=$ac_try;;
11927 esac
11928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929 (eval "$ac_try") 2>&5
11930 ac_status=$?
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; }; then
11933 eval "$as_ac_var=yes"
11934 else
11935 echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11938 eval "$as_ac_var=no"
11941 rm -f core conftest.err conftest.$ac_objext \
11942 conftest$ac_exeext conftest.$ac_ext
11944 ac_res=`eval echo '${'$as_ac_var'}'`
11945 { echo "$as_me:$LINENO: result: $ac_res" >&5
11946 echo "${ECHO_T}$ac_res" >&6; }
11947 if test `eval echo '${'$as_ac_var'}'` = yes; then
11948 cat >>confdefs.h <<_ACEOF
11949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11950 _ACEOF
11953 done
11982 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11983 stdio.h unistd.h
11985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11990 echo $ECHO_N "(cached) $ECHO_C" >&6
11992 ac_res=`eval echo '${'$as_ac_Header'}'`
11993 { echo "$as_me:$LINENO: result: $ac_res" >&5
11994 echo "${ECHO_T}$ac_res" >&6; }
11995 else
11996 # Is the header compilable?
11997 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11999 cat >conftest.$ac_ext <<_ACEOF
12000 /* confdefs.h. */
12001 _ACEOF
12002 cat confdefs.h >>conftest.$ac_ext
12003 cat >>conftest.$ac_ext <<_ACEOF
12004 /* end confdefs.h. */
12005 $ac_includes_default
12006 #include <$ac_header>
12007 _ACEOF
12008 rm -f conftest.$ac_objext
12009 if { (ac_try="$ac_compile"
12010 case "(($ac_try" in
12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12013 esac
12014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015 (eval "$ac_compile") 2>conftest.er1
12016 ac_status=$?
12017 grep -v '^ *+' conftest.er1 >conftest.err
12018 rm -f conftest.er1
12019 cat conftest.err >&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } &&
12022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12023 { (case "(($ac_try" in
12024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025 *) ac_try_echo=$ac_try;;
12026 esac
12027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12028 (eval "$ac_try") 2>&5
12029 ac_status=$?
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; } &&
12032 { ac_try='test -s conftest.$ac_objext'
12033 { (case "(($ac_try" in
12034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035 *) ac_try_echo=$ac_try;;
12036 esac
12037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038 (eval "$ac_try") 2>&5
12039 ac_status=$?
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12042 ac_header_compiler=yes
12043 else
12044 echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12047 ac_header_compiler=no
12050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12051 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12052 echo "${ECHO_T}$ac_header_compiler" >&6; }
12054 # Is the header present?
12055 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12056 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12057 cat >conftest.$ac_ext <<_ACEOF
12058 /* confdefs.h. */
12059 _ACEOF
12060 cat confdefs.h >>conftest.$ac_ext
12061 cat >>conftest.$ac_ext <<_ACEOF
12062 /* end confdefs.h. */
12063 #include <$ac_header>
12064 _ACEOF
12065 if { (ac_try="$ac_cpp conftest.$ac_ext"
12066 case "(($ac_try" in
12067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12068 *) ac_try_echo=$ac_try;;
12069 esac
12070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12072 ac_status=$?
12073 grep -v '^ *+' conftest.er1 >conftest.err
12074 rm -f conftest.er1
12075 cat conftest.err >&5
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); } >/dev/null; then
12078 if test -s conftest.err; then
12079 ac_cpp_err=$ac_c_preproc_warn_flag
12080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12081 else
12082 ac_cpp_err=
12084 else
12085 ac_cpp_err=yes
12087 if test -z "$ac_cpp_err"; then
12088 ac_header_preproc=yes
12089 else
12090 echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12093 ac_header_preproc=no
12096 rm -f conftest.err conftest.$ac_ext
12097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12098 echo "${ECHO_T}$ac_header_preproc" >&6; }
12100 # So? What about this header?
12101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12102 yes:no: )
12103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12106 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12107 ac_header_preproc=yes
12109 no:yes:* )
12110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12113 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12114 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12115 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12116 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12117 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12120 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12121 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12122 ( cat <<\_ASBOX
12123 ## ----------------------------------- ##
12124 ## Report this to llvmbugs@cs.uiuc.edu ##
12125 ## ----------------------------------- ##
12126 _ASBOX
12127 ) | sed "s/^/$as_me: WARNING: /" >&2
12129 esac
12130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12133 echo $ECHO_N "(cached) $ECHO_C" >&6
12134 else
12135 eval "$as_ac_Header=\$ac_header_preproc"
12137 ac_res=`eval echo '${'$as_ac_Header'}'`
12138 { echo "$as_me:$LINENO: result: $ac_res" >&5
12139 echo "${ECHO_T}$ac_res" >&6; }
12142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12143 cat >>confdefs.h <<_ACEOF
12144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12145 _ACEOF
12149 done
12155 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12162 echo $ECHO_N "(cached) $ECHO_C" >&6
12164 ac_res=`eval echo '${'$as_ac_Header'}'`
12165 { echo "$as_me:$LINENO: result: $ac_res" >&5
12166 echo "${ECHO_T}$ac_res" >&6; }
12167 else
12168 # Is the header compilable?
12169 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12171 cat >conftest.$ac_ext <<_ACEOF
12172 /* confdefs.h. */
12173 _ACEOF
12174 cat confdefs.h >>conftest.$ac_ext
12175 cat >>conftest.$ac_ext <<_ACEOF
12176 /* end confdefs.h. */
12177 $ac_includes_default
12178 #include <$ac_header>
12179 _ACEOF
12180 rm -f conftest.$ac_objext
12181 if { (ac_try="$ac_compile"
12182 case "(($ac_try" in
12183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184 *) ac_try_echo=$ac_try;;
12185 esac
12186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12187 (eval "$ac_compile") 2>conftest.er1
12188 ac_status=$?
12189 grep -v '^ *+' conftest.er1 >conftest.err
12190 rm -f conftest.er1
12191 cat conftest.err >&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } &&
12194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12195 { (case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12198 esac
12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_try") 2>&5
12201 ac_status=$?
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); }; } &&
12204 { ac_try='test -s conftest.$ac_objext'
12205 { (case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12208 esac
12209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210 (eval "$ac_try") 2>&5
12211 ac_status=$?
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; }; then
12214 ac_header_compiler=yes
12215 else
12216 echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.$ac_ext >&5
12219 ac_header_compiler=no
12222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12224 echo "${ECHO_T}$ac_header_compiler" >&6; }
12226 # Is the header present?
12227 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12229 cat >conftest.$ac_ext <<_ACEOF
12230 /* confdefs.h. */
12231 _ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12235 #include <$ac_header>
12236 _ACEOF
12237 if { (ac_try="$ac_cpp conftest.$ac_ext"
12238 case "(($ac_try" in
12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12241 esac
12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12244 ac_status=$?
12245 grep -v '^ *+' conftest.er1 >conftest.err
12246 rm -f conftest.er1
12247 cat conftest.err >&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } >/dev/null; then
12250 if test -s conftest.err; then
12251 ac_cpp_err=$ac_c_preproc_warn_flag
12252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12253 else
12254 ac_cpp_err=
12256 else
12257 ac_cpp_err=yes
12259 if test -z "$ac_cpp_err"; then
12260 ac_header_preproc=yes
12261 else
12262 echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12265 ac_header_preproc=no
12268 rm -f conftest.err conftest.$ac_ext
12269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12270 echo "${ECHO_T}$ac_header_preproc" >&6; }
12272 # So? What about this header?
12273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12274 yes:no: )
12275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12279 ac_header_preproc=yes
12281 no:yes:* )
12282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12294 ( cat <<\_ASBOX
12295 ## ----------------------------------- ##
12296 ## Report this to llvmbugs@cs.uiuc.edu ##
12297 ## ----------------------------------- ##
12298 _ASBOX
12299 ) | sed "s/^/$as_me: WARNING: /" >&2
12301 esac
12302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12306 else
12307 eval "$as_ac_Header=\$ac_header_preproc"
12309 ac_res=`eval echo '${'$as_ac_Header'}'`
12310 { echo "$as_me:$LINENO: result: $ac_res" >&5
12311 echo "${ECHO_T}$ac_res" >&6; }
12314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12315 cat >>confdefs.h <<_ACEOF
12316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12317 _ACEOF
12321 done
12325 for ac_header in string.h strings.h
12327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12332 echo $ECHO_N "(cached) $ECHO_C" >&6
12334 ac_res=`eval echo '${'$as_ac_Header'}'`
12335 { echo "$as_me:$LINENO: result: $ac_res" >&5
12336 echo "${ECHO_T}$ac_res" >&6; }
12337 else
12338 # Is the header compilable?
12339 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12341 cat >conftest.$ac_ext <<_ACEOF
12342 /* confdefs.h. */
12343 _ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12347 $ac_includes_default
12348 #include <$ac_header>
12349 _ACEOF
12350 rm -f conftest.$ac_objext
12351 if { (ac_try="$ac_compile"
12352 case "(($ac_try" in
12353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12354 *) ac_try_echo=$ac_try;;
12355 esac
12356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12357 (eval "$ac_compile") 2>conftest.er1
12358 ac_status=$?
12359 grep -v '^ *+' conftest.er1 >conftest.err
12360 rm -f conftest.er1
12361 cat conftest.err >&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } &&
12364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12365 { (case "(($ac_try" in
12366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12367 *) ac_try_echo=$ac_try;;
12368 esac
12369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12370 (eval "$ac_try") 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; } &&
12374 { ac_try='test -s conftest.$ac_objext'
12375 { (case "(($ac_try" in
12376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12377 *) ac_try_echo=$ac_try;;
12378 esac
12379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12380 (eval "$ac_try") 2>&5
12381 ac_status=$?
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); }; }; then
12384 ac_header_compiler=yes
12385 else
12386 echo "$as_me: failed program was:" >&5
12387 sed 's/^/| /' conftest.$ac_ext >&5
12389 ac_header_compiler=no
12392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12394 echo "${ECHO_T}$ac_header_compiler" >&6; }
12396 # Is the header present?
12397 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12399 cat >conftest.$ac_ext <<_ACEOF
12400 /* confdefs.h. */
12401 _ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h. */
12405 #include <$ac_header>
12406 _ACEOF
12407 if { (ac_try="$ac_cpp conftest.$ac_ext"
12408 case "(($ac_try" in
12409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12410 *) ac_try_echo=$ac_try;;
12411 esac
12412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12414 ac_status=$?
12415 grep -v '^ *+' conftest.er1 >conftest.err
12416 rm -f conftest.er1
12417 cat conftest.err >&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } >/dev/null; then
12420 if test -s conftest.err; then
12421 ac_cpp_err=$ac_c_preproc_warn_flag
12422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12423 else
12424 ac_cpp_err=
12426 else
12427 ac_cpp_err=yes
12429 if test -z "$ac_cpp_err"; then
12430 ac_header_preproc=yes
12431 else
12432 echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.$ac_ext >&5
12435 ac_header_preproc=no
12438 rm -f conftest.err conftest.$ac_ext
12439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12440 echo "${ECHO_T}$ac_header_preproc" >&6; }
12442 # So? What about this header?
12443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12444 yes:no: )
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12449 ac_header_preproc=yes
12451 no:yes:* )
12452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12459 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12464 ( cat <<\_ASBOX
12465 ## ----------------------------------- ##
12466 ## Report this to llvmbugs@cs.uiuc.edu ##
12467 ## ----------------------------------- ##
12468 _ASBOX
12469 ) | sed "s/^/$as_me: WARNING: /" >&2
12471 esac
12472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12475 echo $ECHO_N "(cached) $ECHO_C" >&6
12476 else
12477 eval "$as_ac_Header=\$ac_header_preproc"
12479 ac_res=`eval echo '${'$as_ac_Header'}'`
12480 { echo "$as_me:$LINENO: result: $ac_res" >&5
12481 echo "${ECHO_T}$ac_res" >&6; }
12484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12485 cat >>confdefs.h <<_ACEOF
12486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12487 _ACEOF
12488 break
12491 done
12496 for ac_func in strchr index
12498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12499 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12501 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12502 echo $ECHO_N "(cached) $ECHO_C" >&6
12503 else
12504 cat >conftest.$ac_ext <<_ACEOF
12505 /* confdefs.h. */
12506 _ACEOF
12507 cat confdefs.h >>conftest.$ac_ext
12508 cat >>conftest.$ac_ext <<_ACEOF
12509 /* end confdefs.h. */
12510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12512 #define $ac_func innocuous_$ac_func
12514 /* System header to define __stub macros and hopefully few prototypes,
12515 which can conflict with char $ac_func (); below.
12516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12517 <limits.h> exists even on freestanding compilers. */
12519 #ifdef __STDC__
12520 # include <limits.h>
12521 #else
12522 # include <assert.h>
12523 #endif
12525 #undef $ac_func
12527 /* Override any GCC internal prototype to avoid an error.
12528 Use char because int might match the return type of a GCC
12529 builtin and then its argument prototype would still apply. */
12530 #ifdef __cplusplus
12531 extern "C"
12532 #endif
12533 char $ac_func ();
12534 /* The GNU C library defines this for functions which it implements
12535 to always fail with ENOSYS. Some functions are actually named
12536 something starting with __ and the normal name is an alias. */
12537 #if defined __stub_$ac_func || defined __stub___$ac_func
12538 choke me
12539 #endif
12542 main ()
12544 return $ac_func ();
12546 return 0;
12548 _ACEOF
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (ac_try="$ac_link"
12551 case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12554 esac
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_link") 2>conftest.er1
12557 ac_status=$?
12558 grep -v '^ *+' conftest.er1 >conftest.err
12559 rm -f conftest.er1
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } &&
12563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12564 { (case "(($ac_try" in
12565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12566 *) ac_try_echo=$ac_try;;
12567 esac
12568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12569 (eval "$ac_try") 2>&5
12570 ac_status=$?
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; } &&
12573 { ac_try='test -s conftest$ac_exeext'
12574 { (case "(($ac_try" in
12575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12576 *) ac_try_echo=$ac_try;;
12577 esac
12578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12579 (eval "$ac_try") 2>&5
12580 ac_status=$?
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; }; then
12583 eval "$as_ac_var=yes"
12584 else
12585 echo "$as_me: failed program was:" >&5
12586 sed 's/^/| /' conftest.$ac_ext >&5
12588 eval "$as_ac_var=no"
12591 rm -f core conftest.err conftest.$ac_objext \
12592 conftest$ac_exeext conftest.$ac_ext
12594 ac_res=`eval echo '${'$as_ac_var'}'`
12595 { echo "$as_me:$LINENO: result: $ac_res" >&5
12596 echo "${ECHO_T}$ac_res" >&6; }
12597 if test `eval echo '${'$as_ac_var'}'` = yes; then
12598 cat >>confdefs.h <<_ACEOF
12599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12600 _ACEOF
12601 break
12603 done
12607 for ac_func in strrchr rindex
12609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12610 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12612 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12613 echo $ECHO_N "(cached) $ECHO_C" >&6
12614 else
12615 cat >conftest.$ac_ext <<_ACEOF
12616 /* confdefs.h. */
12617 _ACEOF
12618 cat confdefs.h >>conftest.$ac_ext
12619 cat >>conftest.$ac_ext <<_ACEOF
12620 /* end confdefs.h. */
12621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12623 #define $ac_func innocuous_$ac_func
12625 /* System header to define __stub macros and hopefully few prototypes,
12626 which can conflict with char $ac_func (); below.
12627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12628 <limits.h> exists even on freestanding compilers. */
12630 #ifdef __STDC__
12631 # include <limits.h>
12632 #else
12633 # include <assert.h>
12634 #endif
12636 #undef $ac_func
12638 /* Override any GCC internal prototype to avoid an error.
12639 Use char because int might match the return type of a GCC
12640 builtin and then its argument prototype would still apply. */
12641 #ifdef __cplusplus
12642 extern "C"
12643 #endif
12644 char $ac_func ();
12645 /* The GNU C library defines this for functions which it implements
12646 to always fail with ENOSYS. Some functions are actually named
12647 something starting with __ and the normal name is an alias. */
12648 #if defined __stub_$ac_func || defined __stub___$ac_func
12649 choke me
12650 #endif
12653 main ()
12655 return $ac_func ();
12657 return 0;
12659 _ACEOF
12660 rm -f conftest.$ac_objext conftest$ac_exeext
12661 if { (ac_try="$ac_link"
12662 case "(($ac_try" in
12663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12664 *) ac_try_echo=$ac_try;;
12665 esac
12666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12667 (eval "$ac_link") 2>conftest.er1
12668 ac_status=$?
12669 grep -v '^ *+' conftest.er1 >conftest.err
12670 rm -f conftest.er1
12671 cat conftest.err >&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } &&
12674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12675 { (case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12678 esac
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680 (eval "$ac_try") 2>&5
12681 ac_status=$?
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); }; } &&
12684 { ac_try='test -s conftest$ac_exeext'
12685 { (case "(($ac_try" in
12686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12687 *) ac_try_echo=$ac_try;;
12688 esac
12689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12690 (eval "$ac_try") 2>&5
12691 ac_status=$?
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; }; then
12694 eval "$as_ac_var=yes"
12695 else
12696 echo "$as_me: failed program was:" >&5
12697 sed 's/^/| /' conftest.$ac_ext >&5
12699 eval "$as_ac_var=no"
12702 rm -f core conftest.err conftest.$ac_objext \
12703 conftest$ac_exeext conftest.$ac_ext
12705 ac_res=`eval echo '${'$as_ac_var'}'`
12706 { echo "$as_me:$LINENO: result: $ac_res" >&5
12707 echo "${ECHO_T}$ac_res" >&6; }
12708 if test `eval echo '${'$as_ac_var'}'` = yes; then
12709 cat >>confdefs.h <<_ACEOF
12710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12711 _ACEOF
12712 break
12714 done
12718 for ac_func in memcpy bcopy
12720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12721 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12725 else
12726 cat >conftest.$ac_ext <<_ACEOF
12727 /* confdefs.h. */
12728 _ACEOF
12729 cat confdefs.h >>conftest.$ac_ext
12730 cat >>conftest.$ac_ext <<_ACEOF
12731 /* end confdefs.h. */
12732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12734 #define $ac_func innocuous_$ac_func
12736 /* System header to define __stub macros and hopefully few prototypes,
12737 which can conflict with char $ac_func (); below.
12738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12739 <limits.h> exists even on freestanding compilers. */
12741 #ifdef __STDC__
12742 # include <limits.h>
12743 #else
12744 # include <assert.h>
12745 #endif
12747 #undef $ac_func
12749 /* Override any GCC internal prototype to avoid an error.
12750 Use char because int might match the return type of a GCC
12751 builtin and then its argument prototype would still apply. */
12752 #ifdef __cplusplus
12753 extern "C"
12754 #endif
12755 char $ac_func ();
12756 /* The GNU C library defines this for functions which it implements
12757 to always fail with ENOSYS. Some functions are actually named
12758 something starting with __ and the normal name is an alias. */
12759 #if defined __stub_$ac_func || defined __stub___$ac_func
12760 choke me
12761 #endif
12764 main ()
12766 return $ac_func ();
12768 return 0;
12770 _ACEOF
12771 rm -f conftest.$ac_objext conftest$ac_exeext
12772 if { (ac_try="$ac_link"
12773 case "(($ac_try" in
12774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775 *) ac_try_echo=$ac_try;;
12776 esac
12777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778 (eval "$ac_link") 2>conftest.er1
12779 ac_status=$?
12780 grep -v '^ *+' conftest.er1 >conftest.err
12781 rm -f conftest.er1
12782 cat conftest.err >&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); } &&
12785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12786 { (case "(($ac_try" in
12787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788 *) ac_try_echo=$ac_try;;
12789 esac
12790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12791 (eval "$ac_try") 2>&5
12792 ac_status=$?
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); }; } &&
12795 { ac_try='test -s conftest$ac_exeext'
12796 { (case "(($ac_try" in
12797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12798 *) ac_try_echo=$ac_try;;
12799 esac
12800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12801 (eval "$ac_try") 2>&5
12802 ac_status=$?
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); }; }; then
12805 eval "$as_ac_var=yes"
12806 else
12807 echo "$as_me: failed program was:" >&5
12808 sed 's/^/| /' conftest.$ac_ext >&5
12810 eval "$as_ac_var=no"
12813 rm -f core conftest.err conftest.$ac_objext \
12814 conftest$ac_exeext conftest.$ac_ext
12816 ac_res=`eval echo '${'$as_ac_var'}'`
12817 { echo "$as_me:$LINENO: result: $ac_res" >&5
12818 echo "${ECHO_T}$ac_res" >&6; }
12819 if test `eval echo '${'$as_ac_var'}'` = yes; then
12820 cat >>confdefs.h <<_ACEOF
12821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12822 _ACEOF
12823 break
12825 done
12829 for ac_func in memmove strcmp
12831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12832 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12835 echo $ECHO_N "(cached) $ECHO_C" >&6
12836 else
12837 cat >conftest.$ac_ext <<_ACEOF
12838 /* confdefs.h. */
12839 _ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12845 #define $ac_func innocuous_$ac_func
12847 /* System header to define __stub macros and hopefully few prototypes,
12848 which can conflict with char $ac_func (); below.
12849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12850 <limits.h> exists even on freestanding compilers. */
12852 #ifdef __STDC__
12853 # include <limits.h>
12854 #else
12855 # include <assert.h>
12856 #endif
12858 #undef $ac_func
12860 /* Override any GCC internal prototype to avoid an error.
12861 Use char because int might match the return type of a GCC
12862 builtin and then its argument prototype would still apply. */
12863 #ifdef __cplusplus
12864 extern "C"
12865 #endif
12866 char $ac_func ();
12867 /* The GNU C library defines this for functions which it implements
12868 to always fail with ENOSYS. Some functions are actually named
12869 something starting with __ and the normal name is an alias. */
12870 #if defined __stub_$ac_func || defined __stub___$ac_func
12871 choke me
12872 #endif
12875 main ()
12877 return $ac_func ();
12879 return 0;
12881 _ACEOF
12882 rm -f conftest.$ac_objext conftest$ac_exeext
12883 if { (ac_try="$ac_link"
12884 case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12887 esac
12888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889 (eval "$ac_link") 2>conftest.er1
12890 ac_status=$?
12891 grep -v '^ *+' conftest.er1 >conftest.err
12892 rm -f conftest.er1
12893 cat conftest.err >&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } &&
12896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12897 { (case "(($ac_try" in
12898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899 *) ac_try_echo=$ac_try;;
12900 esac
12901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902 (eval "$ac_try") 2>&5
12903 ac_status=$?
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; } &&
12906 { ac_try='test -s conftest$ac_exeext'
12907 { (case "(($ac_try" in
12908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909 *) ac_try_echo=$ac_try;;
12910 esac
12911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12912 (eval "$ac_try") 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; }; then
12916 eval "$as_ac_var=yes"
12917 else
12918 echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.$ac_ext >&5
12921 eval "$as_ac_var=no"
12924 rm -f core conftest.err conftest.$ac_objext \
12925 conftest$ac_exeext conftest.$ac_ext
12927 ac_res=`eval echo '${'$as_ac_var'}'`
12928 { echo "$as_me:$LINENO: result: $ac_res" >&5
12929 echo "${ECHO_T}$ac_res" >&6; }
12930 if test `eval echo '${'$as_ac_var'}'` = yes; then
12931 cat >>confdefs.h <<_ACEOF
12932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12933 _ACEOF
12936 done
12941 for ac_func in closedir opendir readdir
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
13048 done
13052 if test "$WITH_LLVMGCCDIR" = "default" ; then
13053 LLVMGCC="llvm-gcc${EXEEXT}"
13054 LLVMGXX="llvm-g++${EXEEXT}"
13055 LLVMGCCCOMMAND="$LLVMGCC"
13056 LLVMGXXCOMMAND="$LLVMGXX"
13057 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13059 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13061 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13062 set dummy $LLVMGCC; ac_word=$2
13063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13065 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13067 else
13068 case $LLVMGCC in
13069 [\\/]* | ?:[\\/]*)
13070 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13074 for as_dir in $PATH
13076 IFS=$as_save_IFS
13077 test -z "$as_dir" && as_dir=.
13078 for ac_exec_ext in '' $ac_executable_extensions; do
13079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13080 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13082 break 2
13084 done
13085 done
13086 IFS=$as_save_IFS
13089 esac
13091 LLVMGCC=$ac_cv_path_LLVMGCC
13092 if test -n "$LLVMGCC"; then
13093 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13094 echo "${ECHO_T}$LLVMGCC" >&6; }
13095 else
13096 { echo "$as_me:$LINENO: result: no" >&5
13097 echo "${ECHO_T}no" >&6; }
13101 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13102 set dummy $LLVMGXX; ac_word=$2
13103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13105 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13106 echo $ECHO_N "(cached) $ECHO_C" >&6
13107 else
13108 case $LLVMGXX in
13109 [\\/]* | ?:[\\/]*)
13110 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13114 for as_dir in $PATH
13116 IFS=$as_save_IFS
13117 test -z "$as_dir" && as_dir=.
13118 for ac_exec_ext in '' $ac_executable_extensions; do
13119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13120 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13122 break 2
13124 done
13125 done
13126 IFS=$as_save_IFS
13129 esac
13131 LLVMGXX=$ac_cv_path_LLVMGXX
13132 if test -n "$LLVMGXX"; then
13133 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13134 echo "${ECHO_T}$LLVMGXX" >&6; }
13135 else
13136 { echo "$as_me:$LINENO: result: no" >&5
13137 echo "${ECHO_T}no" >&6; }
13141 else
13142 if test -z "$LLVMGCC"; then
13143 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13144 LLVMGCCCOMMAND="$LLVMGCC"
13146 if test -z "$LLVMGXX"; then
13147 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13148 LLVMGXXCOMMAND="$LLVMGXX"
13151 LLVMGCC=$LLVMGCC
13153 LLVMGXX=$LLVMGXX
13155 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13157 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13162 # Check whether --with-llvmcc was given.
13163 if test "${with_llvmcc+set}" = set; then
13164 withval=$with_llvmcc;
13165 else
13166 with_llvmcc=check
13169 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13170 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13171 if test "$with_llvmcc" != "check"; then
13172 if (test "$with_llvmcc" != "llvm-gcc" &&
13173 test "$with_llvmcc" != "clang" &&
13174 test "$with_llvmcc" != "none"); then
13175 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13176 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13177 { (exit 1); exit 1; }; }
13179 WITH_LLVMCC="$with_llvmcc"
13180 elif test -n "$LLVMGCC"; then
13181 WITH_LLVMCC=llvm-gcc
13182 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13183 WITH_LLVMCC=clang
13184 else
13185 WITH_LLVMCC=none
13187 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13188 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13189 LLVMCC_OPTION=$WITH_LLVMCC
13192 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13193 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13195 ICC=no
13196 IXX=no
13197 case $CC in
13198 icc*|icpc*)
13199 ICC=yes
13200 IXX=yes
13204 esac
13206 if test "$GCC" != "yes" && test "$ICC" != "yes"
13207 then
13208 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13209 echo "$as_me: error: gcc|icc required but not found" >&2;}
13210 { (exit 1); exit 1; }; }
13213 if test "$GXX" != "yes" && test "$IXX" != "yes"
13214 then
13215 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13216 echo "$as_me: error: g++|icc required but not found" >&2;}
13217 { (exit 1); exit 1; }; }
13220 if test "$GCC" = "yes"
13221 then
13222 cat >conftest.$ac_ext <<_ACEOF
13223 #if !defined(__GNUC__) || __GNUC__ < 3
13224 #error Unsupported GCC version
13225 #endif
13227 _ACEOF
13228 rm -f conftest.$ac_objext
13229 if { (ac_try="$ac_compile"
13230 case "(($ac_try" in
13231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232 *) ac_try_echo=$ac_try;;
13233 esac
13234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235 (eval "$ac_compile") 2>conftest.er1
13236 ac_status=$?
13237 grep -v '^ *+' conftest.er1 >conftest.err
13238 rm -f conftest.er1
13239 cat conftest.err >&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); } &&
13242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13243 { (case "(($ac_try" in
13244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13245 *) ac_try_echo=$ac_try;;
13246 esac
13247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13248 (eval "$ac_try") 2>&5
13249 ac_status=$?
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); }; } &&
13252 { ac_try='test -s conftest.$ac_objext'
13253 { (case "(($ac_try" in
13254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13255 *) ac_try_echo=$ac_try;;
13256 esac
13257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13258 (eval "$ac_try") 2>&5
13259 ac_status=$?
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; }; then
13263 else
13264 echo "$as_me: failed program was:" >&5
13265 sed 's/^/| /' conftest.$ac_ext >&5
13267 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13268 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13269 { (exit 1); exit 1; }; }
13272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13275 if test -z "$llvm_cv_gnu_make_command"
13276 then
13277 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13278 echo "$as_me: error: GNU Make required but not found" >&2;}
13279 { (exit 1); exit 1; }; }
13282 { echo "$as_me:$LINENO: result: ok" >&5
13283 echo "${ECHO_T}ok" >&6; }
13285 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13286 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13287 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13289 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13291 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13292 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13296 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13297 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13298 if test "${ac_cv_lib_m_sin+set}" = set; then
13299 echo $ECHO_N "(cached) $ECHO_C" >&6
13300 else
13301 ac_check_lib_save_LIBS=$LIBS
13302 LIBS="-lm $LIBS"
13303 cat >conftest.$ac_ext <<_ACEOF
13304 /* confdefs.h. */
13305 _ACEOF
13306 cat confdefs.h >>conftest.$ac_ext
13307 cat >>conftest.$ac_ext <<_ACEOF
13308 /* end confdefs.h. */
13310 /* Override any GCC internal prototype to avoid an error.
13311 Use char because int might match the return type of a GCC
13312 builtin and then its argument prototype would still apply. */
13313 #ifdef __cplusplus
13314 extern "C"
13315 #endif
13316 char sin ();
13318 main ()
13320 return sin ();
13322 return 0;
13324 _ACEOF
13325 rm -f conftest.$ac_objext conftest$ac_exeext
13326 if { (ac_try="$ac_link"
13327 case "(($ac_try" in
13328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329 *) ac_try_echo=$ac_try;;
13330 esac
13331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332 (eval "$ac_link") 2>conftest.er1
13333 ac_status=$?
13334 grep -v '^ *+' conftest.er1 >conftest.err
13335 rm -f conftest.er1
13336 cat conftest.err >&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); } &&
13339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13340 { (case "(($ac_try" in
13341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342 *) ac_try_echo=$ac_try;;
13343 esac
13344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13345 (eval "$ac_try") 2>&5
13346 ac_status=$?
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); }; } &&
13349 { ac_try='test -s conftest$ac_exeext'
13350 { (case "(($ac_try" in
13351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13352 *) ac_try_echo=$ac_try;;
13353 esac
13354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355 (eval "$ac_try") 2>&5
13356 ac_status=$?
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); }; }; then
13359 ac_cv_lib_m_sin=yes
13360 else
13361 echo "$as_me: failed program was:" >&5
13362 sed 's/^/| /' conftest.$ac_ext >&5
13364 ac_cv_lib_m_sin=no
13367 rm -f core conftest.err conftest.$ac_objext \
13368 conftest$ac_exeext conftest.$ac_ext
13369 LIBS=$ac_check_lib_save_LIBS
13371 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13372 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13373 if test $ac_cv_lib_m_sin = yes; then
13374 cat >>confdefs.h <<_ACEOF
13375 #define HAVE_LIBM 1
13376 _ACEOF
13378 LIBS="-lm $LIBS"
13382 if test "$llvm_cv_os_type" = "MingW" ; then
13384 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13385 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13386 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13387 echo $ECHO_N "(cached) $ECHO_C" >&6
13388 else
13389 ac_check_lib_save_LIBS=$LIBS
13390 LIBS="-limagehlp $LIBS"
13391 cat >conftest.$ac_ext <<_ACEOF
13392 /* confdefs.h. */
13393 _ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13400 main ()
13402 return main ();
13404 return 0;
13406 _ACEOF
13407 rm -f conftest.$ac_objext conftest$ac_exeext
13408 if { (ac_try="$ac_link"
13409 case "(($ac_try" in
13410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411 *) ac_try_echo=$ac_try;;
13412 esac
13413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414 (eval "$ac_link") 2>conftest.er1
13415 ac_status=$?
13416 grep -v '^ *+' conftest.er1 >conftest.err
13417 rm -f conftest.er1
13418 cat conftest.err >&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } &&
13421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13422 { (case "(($ac_try" in
13423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424 *) ac_try_echo=$ac_try;;
13425 esac
13426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13427 (eval "$ac_try") 2>&5
13428 ac_status=$?
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); }; } &&
13431 { ac_try='test -s conftest$ac_exeext'
13432 { (case "(($ac_try" in
13433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13434 *) ac_try_echo=$ac_try;;
13435 esac
13436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13437 (eval "$ac_try") 2>&5
13438 ac_status=$?
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; }; then
13441 ac_cv_lib_imagehlp_main=yes
13442 else
13443 echo "$as_me: failed program was:" >&5
13444 sed 's/^/| /' conftest.$ac_ext >&5
13446 ac_cv_lib_imagehlp_main=no
13449 rm -f core conftest.err conftest.$ac_objext \
13450 conftest$ac_exeext conftest.$ac_ext
13451 LIBS=$ac_check_lib_save_LIBS
13453 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13454 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13455 if test $ac_cv_lib_imagehlp_main = yes; then
13456 cat >>confdefs.h <<_ACEOF
13457 #define HAVE_LIBIMAGEHLP 1
13458 _ACEOF
13460 LIBS="-limagehlp $LIBS"
13465 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13466 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13467 if test "${ac_cv_lib_psapi_main+set}" = set; then
13468 echo $ECHO_N "(cached) $ECHO_C" >&6
13469 else
13470 ac_check_lib_save_LIBS=$LIBS
13471 LIBS="-lpsapi $LIBS"
13472 cat >conftest.$ac_ext <<_ACEOF
13473 /* confdefs.h. */
13474 _ACEOF
13475 cat confdefs.h >>conftest.$ac_ext
13476 cat >>conftest.$ac_ext <<_ACEOF
13477 /* end confdefs.h. */
13481 main ()
13483 return main ();
13485 return 0;
13487 _ACEOF
13488 rm -f conftest.$ac_objext conftest$ac_exeext
13489 if { (ac_try="$ac_link"
13490 case "(($ac_try" in
13491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13492 *) ac_try_echo=$ac_try;;
13493 esac
13494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13495 (eval "$ac_link") 2>conftest.er1
13496 ac_status=$?
13497 grep -v '^ *+' conftest.er1 >conftest.err
13498 rm -f conftest.er1
13499 cat conftest.err >&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); } &&
13502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13503 { (case "(($ac_try" in
13504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13505 *) ac_try_echo=$ac_try;;
13506 esac
13507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13508 (eval "$ac_try") 2>&5
13509 ac_status=$?
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); }; } &&
13512 { ac_try='test -s conftest$ac_exeext'
13513 { (case "(($ac_try" in
13514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13515 *) ac_try_echo=$ac_try;;
13516 esac
13517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13518 (eval "$ac_try") 2>&5
13519 ac_status=$?
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); }; }; then
13522 ac_cv_lib_psapi_main=yes
13523 else
13524 echo "$as_me: failed program was:" >&5
13525 sed 's/^/| /' conftest.$ac_ext >&5
13527 ac_cv_lib_psapi_main=no
13530 rm -f core conftest.err conftest.$ac_objext \
13531 conftest$ac_exeext conftest.$ac_ext
13532 LIBS=$ac_check_lib_save_LIBS
13534 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13535 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13536 if test $ac_cv_lib_psapi_main = yes; then
13537 cat >>confdefs.h <<_ACEOF
13538 #define HAVE_LIBPSAPI 1
13539 _ACEOF
13541 LIBS="-lpsapi $LIBS"
13547 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13548 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13549 if test "${ac_cv_search_dlopen+set}" = set; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13551 else
13552 ac_func_search_save_LIBS=$LIBS
13553 cat >conftest.$ac_ext <<_ACEOF
13554 /* confdefs.h. */
13555 _ACEOF
13556 cat confdefs.h >>conftest.$ac_ext
13557 cat >>conftest.$ac_ext <<_ACEOF
13558 /* end confdefs.h. */
13560 /* Override any GCC internal prototype to avoid an error.
13561 Use char because int might match the return type of a GCC
13562 builtin and then its argument prototype would still apply. */
13563 #ifdef __cplusplus
13564 extern "C"
13565 #endif
13566 char dlopen ();
13568 main ()
13570 return dlopen ();
13572 return 0;
13574 _ACEOF
13575 for ac_lib in '' dl; do
13576 if test -z "$ac_lib"; then
13577 ac_res="none required"
13578 else
13579 ac_res=-l$ac_lib
13580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13582 rm -f conftest.$ac_objext conftest$ac_exeext
13583 if { (ac_try="$ac_link"
13584 case "(($ac_try" in
13585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13586 *) ac_try_echo=$ac_try;;
13587 esac
13588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13589 (eval "$ac_link") 2>conftest.er1
13590 ac_status=$?
13591 grep -v '^ *+' conftest.er1 >conftest.err
13592 rm -f conftest.er1
13593 cat conftest.err >&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); } &&
13596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13597 { (case "(($ac_try" in
13598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13599 *) ac_try_echo=$ac_try;;
13600 esac
13601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13602 (eval "$ac_try") 2>&5
13603 ac_status=$?
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); }; } &&
13606 { ac_try='test -s conftest$ac_exeext'
13607 { (case "(($ac_try" in
13608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609 *) ac_try_echo=$ac_try;;
13610 esac
13611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612 (eval "$ac_try") 2>&5
13613 ac_status=$?
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; }; then
13616 ac_cv_search_dlopen=$ac_res
13617 else
13618 echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.$ac_ext >&5
13624 rm -f core conftest.err conftest.$ac_objext \
13625 conftest$ac_exeext
13626 if test "${ac_cv_search_dlopen+set}" = set; then
13627 break
13629 done
13630 if test "${ac_cv_search_dlopen+set}" = set; then
13632 else
13633 ac_cv_search_dlopen=no
13635 rm conftest.$ac_ext
13636 LIBS=$ac_func_search_save_LIBS
13638 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13639 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13640 ac_res=$ac_cv_search_dlopen
13641 if test "$ac_res" != no; then
13642 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13644 cat >>confdefs.h <<\_ACEOF
13645 #define HAVE_DLOPEN 1
13646 _ACEOF
13648 else
13649 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13650 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13654 if test "$llvm_cv_enable_libffi" = "yes" ; then
13655 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13656 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13657 if test "${ac_cv_search_ffi_call+set}" = set; then
13658 echo $ECHO_N "(cached) $ECHO_C" >&6
13659 else
13660 ac_func_search_save_LIBS=$LIBS
13661 cat >conftest.$ac_ext <<_ACEOF
13662 /* confdefs.h. */
13663 _ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h. */
13668 /* Override any GCC internal prototype to avoid an error.
13669 Use char because int might match the return type of a GCC
13670 builtin and then its argument prototype would still apply. */
13671 #ifdef __cplusplus
13672 extern "C"
13673 #endif
13674 char ffi_call ();
13676 main ()
13678 return ffi_call ();
13680 return 0;
13682 _ACEOF
13683 for ac_lib in '' ffi; do
13684 if test -z "$ac_lib"; then
13685 ac_res="none required"
13686 else
13687 ac_res=-l$ac_lib
13688 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13690 rm -f conftest.$ac_objext conftest$ac_exeext
13691 if { (ac_try="$ac_link"
13692 case "(($ac_try" in
13693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694 *) ac_try_echo=$ac_try;;
13695 esac
13696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13697 (eval "$ac_link") 2>conftest.er1
13698 ac_status=$?
13699 grep -v '^ *+' conftest.er1 >conftest.err
13700 rm -f conftest.er1
13701 cat conftest.err >&5
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); } &&
13704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13705 { (case "(($ac_try" in
13706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13707 *) ac_try_echo=$ac_try;;
13708 esac
13709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13710 (eval "$ac_try") 2>&5
13711 ac_status=$?
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; } &&
13714 { ac_try='test -s conftest$ac_exeext'
13715 { (case "(($ac_try" in
13716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13717 *) ac_try_echo=$ac_try;;
13718 esac
13719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13720 (eval "$ac_try") 2>&5
13721 ac_status=$?
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; }; then
13724 ac_cv_search_ffi_call=$ac_res
13725 else
13726 echo "$as_me: failed program was:" >&5
13727 sed 's/^/| /' conftest.$ac_ext >&5
13732 rm -f core conftest.err conftest.$ac_objext \
13733 conftest$ac_exeext
13734 if test "${ac_cv_search_ffi_call+set}" = set; then
13735 break
13737 done
13738 if test "${ac_cv_search_ffi_call+set}" = set; then
13740 else
13741 ac_cv_search_ffi_call=no
13743 rm conftest.$ac_ext
13744 LIBS=$ac_func_search_save_LIBS
13746 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13747 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13748 ac_res=$ac_cv_search_ffi_call
13749 if test "$ac_res" != no; then
13750 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13752 cat >>confdefs.h <<\_ACEOF
13753 #define HAVE_FFI_CALL 1
13754 _ACEOF
13756 else
13757 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13758 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13759 { (exit 1); exit 1; }; }
13764 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13765 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13766 if test "${ac_cv_search_mallinfo+set}" = set; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
13768 else
13769 ac_func_search_save_LIBS=$LIBS
13770 cat >conftest.$ac_ext <<_ACEOF
13771 /* confdefs.h. */
13772 _ACEOF
13773 cat confdefs.h >>conftest.$ac_ext
13774 cat >>conftest.$ac_ext <<_ACEOF
13775 /* end confdefs.h. */
13777 /* Override any GCC internal prototype to avoid an error.
13778 Use char because int might match the return type of a GCC
13779 builtin and then its argument prototype would still apply. */
13780 #ifdef __cplusplus
13781 extern "C"
13782 #endif
13783 char mallinfo ();
13785 main ()
13787 return mallinfo ();
13789 return 0;
13791 _ACEOF
13792 for ac_lib in '' malloc; do
13793 if test -z "$ac_lib"; then
13794 ac_res="none required"
13795 else
13796 ac_res=-l$ac_lib
13797 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13799 rm -f conftest.$ac_objext conftest$ac_exeext
13800 if { (ac_try="$ac_link"
13801 case "(($ac_try" in
13802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13803 *) ac_try_echo=$ac_try;;
13804 esac
13805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13806 (eval "$ac_link") 2>conftest.er1
13807 ac_status=$?
13808 grep -v '^ *+' conftest.er1 >conftest.err
13809 rm -f conftest.er1
13810 cat conftest.err >&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } &&
13813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13814 { (case "(($ac_try" in
13815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816 *) ac_try_echo=$ac_try;;
13817 esac
13818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819 (eval "$ac_try") 2>&5
13820 ac_status=$?
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; } &&
13823 { ac_try='test -s conftest$ac_exeext'
13824 { (case "(($ac_try" in
13825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13826 *) ac_try_echo=$ac_try;;
13827 esac
13828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13829 (eval "$ac_try") 2>&5
13830 ac_status=$?
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); }; }; then
13833 ac_cv_search_mallinfo=$ac_res
13834 else
13835 echo "$as_me: failed program was:" >&5
13836 sed 's/^/| /' conftest.$ac_ext >&5
13841 rm -f core conftest.err conftest.$ac_objext \
13842 conftest$ac_exeext
13843 if test "${ac_cv_search_mallinfo+set}" = set; then
13844 break
13846 done
13847 if test "${ac_cv_search_mallinfo+set}" = set; then
13849 else
13850 ac_cv_search_mallinfo=no
13852 rm conftest.$ac_ext
13853 LIBS=$ac_func_search_save_LIBS
13855 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13856 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13857 ac_res=$ac_cv_search_mallinfo
13858 if test "$ac_res" != no; then
13859 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13861 cat >>confdefs.h <<\_ACEOF
13862 #define HAVE_MALLINFO 1
13863 _ACEOF
13868 if test "$ENABLE_THREADS" -eq 1 ; then
13870 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13871 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13872 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13873 echo $ECHO_N "(cached) $ECHO_C" >&6
13874 else
13875 ac_check_lib_save_LIBS=$LIBS
13876 LIBS="-lpthread $LIBS"
13877 cat >conftest.$ac_ext <<_ACEOF
13878 /* confdefs.h. */
13879 _ACEOF
13880 cat confdefs.h >>conftest.$ac_ext
13881 cat >>conftest.$ac_ext <<_ACEOF
13882 /* end confdefs.h. */
13884 /* Override any GCC internal prototype to avoid an error.
13885 Use char because int might match the return type of a GCC
13886 builtin and then its argument prototype would still apply. */
13887 #ifdef __cplusplus
13888 extern "C"
13889 #endif
13890 char pthread_mutex_init ();
13892 main ()
13894 return pthread_mutex_init ();
13896 return 0;
13898 _ACEOF
13899 rm -f conftest.$ac_objext conftest$ac_exeext
13900 if { (ac_try="$ac_link"
13901 case "(($ac_try" in
13902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13903 *) ac_try_echo=$ac_try;;
13904 esac
13905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13906 (eval "$ac_link") 2>conftest.er1
13907 ac_status=$?
13908 grep -v '^ *+' conftest.er1 >conftest.err
13909 rm -f conftest.er1
13910 cat conftest.err >&5
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); } &&
13913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13914 { (case "(($ac_try" in
13915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13916 *) ac_try_echo=$ac_try;;
13917 esac
13918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13919 (eval "$ac_try") 2>&5
13920 ac_status=$?
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }; } &&
13923 { ac_try='test -s conftest$ac_exeext'
13924 { (case "(($ac_try" in
13925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13926 *) ac_try_echo=$ac_try;;
13927 esac
13928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13929 (eval "$ac_try") 2>&5
13930 ac_status=$?
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); }; }; then
13933 ac_cv_lib_pthread_pthread_mutex_init=yes
13934 else
13935 echo "$as_me: failed program was:" >&5
13936 sed 's/^/| /' conftest.$ac_ext >&5
13938 ac_cv_lib_pthread_pthread_mutex_init=no
13941 rm -f core conftest.err conftest.$ac_objext \
13942 conftest$ac_exeext conftest.$ac_ext
13943 LIBS=$ac_check_lib_save_LIBS
13945 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13946 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13947 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13948 cat >>confdefs.h <<_ACEOF
13949 #define HAVE_LIBPTHREAD 1
13950 _ACEOF
13952 LIBS="-lpthread $LIBS"
13956 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13957 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13958 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13959 echo $ECHO_N "(cached) $ECHO_C" >&6
13960 else
13961 ac_func_search_save_LIBS=$LIBS
13962 cat >conftest.$ac_ext <<_ACEOF
13963 /* confdefs.h. */
13964 _ACEOF
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h. */
13969 /* Override any GCC internal prototype to avoid an error.
13970 Use char because int might match the return type of a GCC
13971 builtin and then its argument prototype would still apply. */
13972 #ifdef __cplusplus
13973 extern "C"
13974 #endif
13975 char pthread_mutex_lock ();
13977 main ()
13979 return pthread_mutex_lock ();
13981 return 0;
13983 _ACEOF
13984 for ac_lib in '' pthread; do
13985 if test -z "$ac_lib"; then
13986 ac_res="none required"
13987 else
13988 ac_res=-l$ac_lib
13989 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13991 rm -f conftest.$ac_objext conftest$ac_exeext
13992 if { (ac_try="$ac_link"
13993 case "(($ac_try" in
13994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13995 *) ac_try_echo=$ac_try;;
13996 esac
13997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13998 (eval "$ac_link") 2>conftest.er1
13999 ac_status=$?
14000 grep -v '^ *+' conftest.er1 >conftest.err
14001 rm -f conftest.er1
14002 cat conftest.err >&5
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); } &&
14005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14006 { (case "(($ac_try" in
14007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14008 *) ac_try_echo=$ac_try;;
14009 esac
14010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14011 (eval "$ac_try") 2>&5
14012 ac_status=$?
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; } &&
14015 { ac_try='test -s conftest$ac_exeext'
14016 { (case "(($ac_try" in
14017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14018 *) ac_try_echo=$ac_try;;
14019 esac
14020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14021 (eval "$ac_try") 2>&5
14022 ac_status=$?
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; }; then
14025 ac_cv_search_pthread_mutex_lock=$ac_res
14026 else
14027 echo "$as_me: failed program was:" >&5
14028 sed 's/^/| /' conftest.$ac_ext >&5
14033 rm -f core conftest.err conftest.$ac_objext \
14034 conftest$ac_exeext
14035 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14036 break
14038 done
14039 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14041 else
14042 ac_cv_search_pthread_mutex_lock=no
14044 rm conftest.$ac_ext
14045 LIBS=$ac_func_search_save_LIBS
14047 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14048 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14049 ac_res=$ac_cv_search_pthread_mutex_lock
14050 if test "$ac_res" != no; then
14051 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14053 cat >>confdefs.h <<\_ACEOF
14054 #define HAVE_PTHREAD_MUTEX_LOCK 1
14055 _ACEOF
14059 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14060 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14061 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14062 echo $ECHO_N "(cached) $ECHO_C" >&6
14063 else
14064 ac_func_search_save_LIBS=$LIBS
14065 cat >conftest.$ac_ext <<_ACEOF
14066 /* confdefs.h. */
14067 _ACEOF
14068 cat confdefs.h >>conftest.$ac_ext
14069 cat >>conftest.$ac_ext <<_ACEOF
14070 /* end confdefs.h. */
14072 /* Override any GCC internal prototype to avoid an error.
14073 Use char because int might match the return type of a GCC
14074 builtin and then its argument prototype would still apply. */
14075 #ifdef __cplusplus
14076 extern "C"
14077 #endif
14078 char pthread_rwlock_init ();
14080 main ()
14082 return pthread_rwlock_init ();
14084 return 0;
14086 _ACEOF
14087 for ac_lib in '' pthread; do
14088 if test -z "$ac_lib"; then
14089 ac_res="none required"
14090 else
14091 ac_res=-l$ac_lib
14092 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14094 rm -f conftest.$ac_objext conftest$ac_exeext
14095 if { (ac_try="$ac_link"
14096 case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14099 esac
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_link") 2>conftest.er1
14102 ac_status=$?
14103 grep -v '^ *+' conftest.er1 >conftest.err
14104 rm -f conftest.er1
14105 cat conftest.err >&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } &&
14108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14109 { (case "(($ac_try" in
14110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14111 *) ac_try_echo=$ac_try;;
14112 esac
14113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14114 (eval "$ac_try") 2>&5
14115 ac_status=$?
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); }; } &&
14118 { ac_try='test -s conftest$ac_exeext'
14119 { (case "(($ac_try" in
14120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14121 *) ac_try_echo=$ac_try;;
14122 esac
14123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14124 (eval "$ac_try") 2>&5
14125 ac_status=$?
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); }; }; then
14128 ac_cv_search_pthread_rwlock_init=$ac_res
14129 else
14130 echo "$as_me: failed program was:" >&5
14131 sed 's/^/| /' conftest.$ac_ext >&5
14136 rm -f core conftest.err conftest.$ac_objext \
14137 conftest$ac_exeext
14138 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14139 break
14141 done
14142 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14144 else
14145 ac_cv_search_pthread_rwlock_init=no
14147 rm conftest.$ac_ext
14148 LIBS=$ac_func_search_save_LIBS
14150 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14151 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14152 ac_res=$ac_cv_search_pthread_rwlock_init
14153 if test "$ac_res" != no; then
14154 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14156 cat >>confdefs.h <<\_ACEOF
14157 #define HAVE_PTHREAD_RWLOCK_INIT 1
14158 _ACEOF
14162 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14163 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14164 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14166 else
14167 ac_func_search_save_LIBS=$LIBS
14168 cat >conftest.$ac_ext <<_ACEOF
14169 /* confdefs.h. */
14170 _ACEOF
14171 cat confdefs.h >>conftest.$ac_ext
14172 cat >>conftest.$ac_ext <<_ACEOF
14173 /* end confdefs.h. */
14175 /* Override any GCC internal prototype to avoid an error.
14176 Use char because int might match the return type of a GCC
14177 builtin and then its argument prototype would still apply. */
14178 #ifdef __cplusplus
14179 extern "C"
14180 #endif
14181 char pthread_getspecific ();
14183 main ()
14185 return pthread_getspecific ();
14187 return 0;
14189 _ACEOF
14190 for ac_lib in '' pthread; do
14191 if test -z "$ac_lib"; then
14192 ac_res="none required"
14193 else
14194 ac_res=-l$ac_lib
14195 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14197 rm -f conftest.$ac_objext conftest$ac_exeext
14198 if { (ac_try="$ac_link"
14199 case "(($ac_try" in
14200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201 *) ac_try_echo=$ac_try;;
14202 esac
14203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14204 (eval "$ac_link") 2>conftest.er1
14205 ac_status=$?
14206 grep -v '^ *+' conftest.er1 >conftest.err
14207 rm -f conftest.er1
14208 cat conftest.err >&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); } &&
14211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14212 { (case "(($ac_try" in
14213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14214 *) ac_try_echo=$ac_try;;
14215 esac
14216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14217 (eval "$ac_try") 2>&5
14218 ac_status=$?
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; } &&
14221 { ac_try='test -s conftest$ac_exeext'
14222 { (case "(($ac_try" in
14223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14224 *) ac_try_echo=$ac_try;;
14225 esac
14226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14227 (eval "$ac_try") 2>&5
14228 ac_status=$?
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); }; }; then
14231 ac_cv_search_pthread_getspecific=$ac_res
14232 else
14233 echo "$as_me: failed program was:" >&5
14234 sed 's/^/| /' conftest.$ac_ext >&5
14239 rm -f core conftest.err conftest.$ac_objext \
14240 conftest$ac_exeext
14241 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14242 break
14244 done
14245 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14247 else
14248 ac_cv_search_pthread_getspecific=no
14250 rm conftest.$ac_ext
14251 LIBS=$ac_func_search_save_LIBS
14253 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14254 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14255 ac_res=$ac_cv_search_pthread_getspecific
14256 if test "$ac_res" != no; then
14257 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14259 cat >>confdefs.h <<\_ACEOF
14260 #define HAVE_PTHREAD_GETSPECIFIC 1
14261 _ACEOF
14268 # Check whether --with-udis86 was given.
14269 if test "${with_udis86+set}" = set; then
14270 withval=$with_udis86;
14271 USE_UDIS86=1
14273 case "$withval" in
14274 /usr/lib|yes) ;;
14275 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14276 esac
14278 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14279 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14280 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14281 echo $ECHO_N "(cached) $ECHO_C" >&6
14282 else
14283 ac_check_lib_save_LIBS=$LIBS
14284 LIBS="-ludis86 $LIBS"
14285 cat >conftest.$ac_ext <<_ACEOF
14286 /* confdefs.h. */
14287 _ACEOF
14288 cat confdefs.h >>conftest.$ac_ext
14289 cat >>conftest.$ac_ext <<_ACEOF
14290 /* end confdefs.h. */
14292 /* Override any GCC internal prototype to avoid an error.
14293 Use char because int might match the return type of a GCC
14294 builtin and then its argument prototype would still apply. */
14295 #ifdef __cplusplus
14296 extern "C"
14297 #endif
14298 char ud_init ();
14300 main ()
14302 return ud_init ();
14304 return 0;
14306 _ACEOF
14307 rm -f conftest.$ac_objext conftest$ac_exeext
14308 if { (ac_try="$ac_link"
14309 case "(($ac_try" in
14310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14311 *) ac_try_echo=$ac_try;;
14312 esac
14313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14314 (eval "$ac_link") 2>conftest.er1
14315 ac_status=$?
14316 grep -v '^ *+' conftest.er1 >conftest.err
14317 rm -f conftest.er1
14318 cat conftest.err >&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } &&
14321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14322 { (case "(($ac_try" in
14323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14324 *) ac_try_echo=$ac_try;;
14325 esac
14326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14327 (eval "$ac_try") 2>&5
14328 ac_status=$?
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; } &&
14331 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14341 ac_cv_lib_udis86_ud_init=yes
14342 else
14343 echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14346 ac_cv_lib_udis86_ud_init=no
14349 rm -f core conftest.err conftest.$ac_objext \
14350 conftest$ac_exeext conftest.$ac_ext
14351 LIBS=$ac_check_lib_save_LIBS
14353 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14354 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14355 if test $ac_cv_lib_udis86_ud_init = yes; then
14356 cat >>confdefs.h <<_ACEOF
14357 #define HAVE_LIBUDIS86 1
14358 _ACEOF
14360 LIBS="-ludis86 $LIBS"
14362 else
14364 echo "Error! You need to have libudis86 around."
14365 exit -1
14370 else
14371 USE_UDIS86=0
14376 cat >>confdefs.h <<_ACEOF
14377 #define USE_UDIS86 $USE_UDIS86
14378 _ACEOF
14382 # Check whether --with-oprofile was given.
14383 if test "${with_oprofile+set}" = set; then
14384 withval=$with_oprofile;
14385 USE_OPROFILE=1
14387 case "$withval" in
14388 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14389 no) llvm_cv_oppath=
14390 USE_OPROFILE=0
14392 *) llvm_cv_oppath="${withval}/lib/oprofile"
14393 CPPFLAGS="-I${withval}/include";;
14394 esac
14395 if test -n "$llvm_cv_oppath" ; then
14396 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14397 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14398 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14399 if test "${ac_cv_search_bfd_init+set}" = set; then
14400 echo $ECHO_N "(cached) $ECHO_C" >&6
14401 else
14402 ac_func_search_save_LIBS=$LIBS
14403 cat >conftest.$ac_ext <<_ACEOF
14404 /* confdefs.h. */
14405 _ACEOF
14406 cat confdefs.h >>conftest.$ac_ext
14407 cat >>conftest.$ac_ext <<_ACEOF
14408 /* end confdefs.h. */
14410 /* Override any GCC internal prototype to avoid an error.
14411 Use char because int might match the return type of a GCC
14412 builtin and then its argument prototype would still apply. */
14413 #ifdef __cplusplus
14414 extern "C"
14415 #endif
14416 char bfd_init ();
14418 main ()
14420 return bfd_init ();
14422 return 0;
14424 _ACEOF
14425 for ac_lib in '' bfd; do
14426 if test -z "$ac_lib"; then
14427 ac_res="none required"
14428 else
14429 ac_res=-l$ac_lib
14430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14432 rm -f conftest.$ac_objext conftest$ac_exeext
14433 if { (ac_try="$ac_link"
14434 case "(($ac_try" in
14435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14436 *) ac_try_echo=$ac_try;;
14437 esac
14438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14439 (eval "$ac_link") 2>conftest.er1
14440 ac_status=$?
14441 grep -v '^ *+' conftest.er1 >conftest.err
14442 rm -f conftest.er1
14443 cat conftest.err >&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); } &&
14446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14447 { (case "(($ac_try" in
14448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14449 *) ac_try_echo=$ac_try;;
14450 esac
14451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14452 (eval "$ac_try") 2>&5
14453 ac_status=$?
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; } &&
14456 { ac_try='test -s conftest$ac_exeext'
14457 { (case "(($ac_try" in
14458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14459 *) ac_try_echo=$ac_try;;
14460 esac
14461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462 (eval "$ac_try") 2>&5
14463 ac_status=$?
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; }; then
14466 ac_cv_search_bfd_init=$ac_res
14467 else
14468 echo "$as_me: failed program was:" >&5
14469 sed 's/^/| /' conftest.$ac_ext >&5
14474 rm -f core conftest.err conftest.$ac_objext \
14475 conftest$ac_exeext
14476 if test "${ac_cv_search_bfd_init+set}" = set; then
14477 break
14479 done
14480 if test "${ac_cv_search_bfd_init+set}" = set; then
14482 else
14483 ac_cv_search_bfd_init=no
14485 rm conftest.$ac_ext
14486 LIBS=$ac_func_search_save_LIBS
14488 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14489 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14490 ac_res=$ac_cv_search_bfd_init
14491 if test "$ac_res" != no; then
14492 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14496 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14497 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14498 if test "${ac_cv_search_op_open_agent+set}" = set; then
14499 echo $ECHO_N "(cached) $ECHO_C" >&6
14500 else
14501 ac_func_search_save_LIBS=$LIBS
14502 cat >conftest.$ac_ext <<_ACEOF
14503 /* confdefs.h. */
14504 _ACEOF
14505 cat confdefs.h >>conftest.$ac_ext
14506 cat >>conftest.$ac_ext <<_ACEOF
14507 /* end confdefs.h. */
14509 /* Override any GCC internal prototype to avoid an error.
14510 Use char because int might match the return type of a GCC
14511 builtin and then its argument prototype would still apply. */
14512 #ifdef __cplusplus
14513 extern "C"
14514 #endif
14515 char op_open_agent ();
14517 main ()
14519 return op_open_agent ();
14521 return 0;
14523 _ACEOF
14524 for ac_lib in '' opagent; do
14525 if test -z "$ac_lib"; then
14526 ac_res="none required"
14527 else
14528 ac_res=-l$ac_lib
14529 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14531 rm -f conftest.$ac_objext conftest$ac_exeext
14532 if { (ac_try="$ac_link"
14533 case "(($ac_try" in
14534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14535 *) ac_try_echo=$ac_try;;
14536 esac
14537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14538 (eval "$ac_link") 2>conftest.er1
14539 ac_status=$?
14540 grep -v '^ *+' conftest.er1 >conftest.err
14541 rm -f conftest.er1
14542 cat conftest.err >&5
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); } &&
14545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14546 { (case "(($ac_try" in
14547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14548 *) ac_try_echo=$ac_try;;
14549 esac
14550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14551 (eval "$ac_try") 2>&5
14552 ac_status=$?
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; } &&
14555 { ac_try='test -s conftest$ac_exeext'
14556 { (case "(($ac_try" in
14557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14558 *) ac_try_echo=$ac_try;;
14559 esac
14560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14561 (eval "$ac_try") 2>&5
14562 ac_status=$?
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); }; }; then
14565 ac_cv_search_op_open_agent=$ac_res
14566 else
14567 echo "$as_me: failed program was:" >&5
14568 sed 's/^/| /' conftest.$ac_ext >&5
14573 rm -f core conftest.err conftest.$ac_objext \
14574 conftest$ac_exeext
14575 if test "${ac_cv_search_op_open_agent+set}" = set; then
14576 break
14578 done
14579 if test "${ac_cv_search_op_open_agent+set}" = set; then
14581 else
14582 ac_cv_search_op_open_agent=no
14584 rm conftest.$ac_ext
14585 LIBS=$ac_func_search_save_LIBS
14587 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14588 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14589 ac_res=$ac_cv_search_op_open_agent
14590 if test "$ac_res" != no; then
14591 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14593 else
14595 echo "Error! You need to have libopagent around."
14596 exit -1
14600 if test "${ac_cv_header_opagent_h+set}" = set; then
14601 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14602 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14603 if test "${ac_cv_header_opagent_h+set}" = set; then
14604 echo $ECHO_N "(cached) $ECHO_C" >&6
14606 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14607 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14608 else
14609 # Is the header compilable?
14610 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14611 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14612 cat >conftest.$ac_ext <<_ACEOF
14613 /* confdefs.h. */
14614 _ACEOF
14615 cat confdefs.h >>conftest.$ac_ext
14616 cat >>conftest.$ac_ext <<_ACEOF
14617 /* end confdefs.h. */
14618 $ac_includes_default
14619 #include <opagent.h>
14620 _ACEOF
14621 rm -f conftest.$ac_objext
14622 if { (ac_try="$ac_compile"
14623 case "(($ac_try" in
14624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625 *) ac_try_echo=$ac_try;;
14626 esac
14627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14628 (eval "$ac_compile") 2>conftest.er1
14629 ac_status=$?
14630 grep -v '^ *+' conftest.er1 >conftest.err
14631 rm -f conftest.er1
14632 cat conftest.err >&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); } &&
14635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14636 { (case "(($ac_try" in
14637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14638 *) ac_try_echo=$ac_try;;
14639 esac
14640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14641 (eval "$ac_try") 2>&5
14642 ac_status=$?
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; } &&
14645 { ac_try='test -s conftest.$ac_objext'
14646 { (case "(($ac_try" in
14647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648 *) ac_try_echo=$ac_try;;
14649 esac
14650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651 (eval "$ac_try") 2>&5
14652 ac_status=$?
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; }; then
14655 ac_header_compiler=yes
14656 else
14657 echo "$as_me: failed program was:" >&5
14658 sed 's/^/| /' conftest.$ac_ext >&5
14660 ac_header_compiler=no
14663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14665 echo "${ECHO_T}$ac_header_compiler" >&6; }
14667 # Is the header present?
14668 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14669 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14670 cat >conftest.$ac_ext <<_ACEOF
14671 /* confdefs.h. */
14672 _ACEOF
14673 cat confdefs.h >>conftest.$ac_ext
14674 cat >>conftest.$ac_ext <<_ACEOF
14675 /* end confdefs.h. */
14676 #include <opagent.h>
14677 _ACEOF
14678 if { (ac_try="$ac_cpp conftest.$ac_ext"
14679 case "(($ac_try" in
14680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14681 *) ac_try_echo=$ac_try;;
14682 esac
14683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14685 ac_status=$?
14686 grep -v '^ *+' conftest.er1 >conftest.err
14687 rm -f conftest.er1
14688 cat conftest.err >&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } >/dev/null; then
14691 if test -s conftest.err; then
14692 ac_cpp_err=$ac_c_preproc_warn_flag
14693 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14694 else
14695 ac_cpp_err=
14697 else
14698 ac_cpp_err=yes
14700 if test -z "$ac_cpp_err"; then
14701 ac_header_preproc=yes
14702 else
14703 echo "$as_me: failed program was:" >&5
14704 sed 's/^/| /' conftest.$ac_ext >&5
14706 ac_header_preproc=no
14709 rm -f conftest.err conftest.$ac_ext
14710 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14711 echo "${ECHO_T}$ac_header_preproc" >&6; }
14713 # So? What about this header?
14714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14715 yes:no: )
14716 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14717 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14718 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14719 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14720 ac_header_preproc=yes
14722 no:yes:* )
14723 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14724 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14725 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14726 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14727 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14728 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14729 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14730 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14731 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14732 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14733 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14734 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14735 ( cat <<\_ASBOX
14736 ## ----------------------------------- ##
14737 ## Report this to llvmbugs@cs.uiuc.edu ##
14738 ## ----------------------------------- ##
14739 _ASBOX
14740 ) | sed "s/^/$as_me: WARNING: /" >&2
14742 esac
14743 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14744 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14745 if test "${ac_cv_header_opagent_h+set}" = set; then
14746 echo $ECHO_N "(cached) $ECHO_C" >&6
14747 else
14748 ac_cv_header_opagent_h=$ac_header_preproc
14750 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14751 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14754 if test $ac_cv_header_opagent_h = yes; then
14756 else
14758 echo "Error! You need to have opagent.h around."
14759 exit -1
14766 else
14768 USE_OPROFILE=0
14774 cat >>confdefs.h <<_ACEOF
14775 #define USE_OPROFILE $USE_OPROFILE
14776 _ACEOF
14785 ac_header_dirent=no
14786 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14787 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14788 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14789 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14791 echo $ECHO_N "(cached) $ECHO_C" >&6
14792 else
14793 cat >conftest.$ac_ext <<_ACEOF
14794 /* confdefs.h. */
14795 _ACEOF
14796 cat confdefs.h >>conftest.$ac_ext
14797 cat >>conftest.$ac_ext <<_ACEOF
14798 /* end confdefs.h. */
14799 #include <sys/types.h>
14800 #include <$ac_hdr>
14803 main ()
14805 if ((DIR *) 0)
14806 return 0;
14808 return 0;
14810 _ACEOF
14811 rm -f conftest.$ac_objext
14812 if { (ac_try="$ac_compile"
14813 case "(($ac_try" in
14814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14815 *) ac_try_echo=$ac_try;;
14816 esac
14817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14818 (eval "$ac_compile") 2>conftest.er1
14819 ac_status=$?
14820 grep -v '^ *+' conftest.er1 >conftest.err
14821 rm -f conftest.er1
14822 cat conftest.err >&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); } &&
14825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14826 { (case "(($ac_try" in
14827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14828 *) ac_try_echo=$ac_try;;
14829 esac
14830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14831 (eval "$ac_try") 2>&5
14832 ac_status=$?
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); }; } &&
14835 { ac_try='test -s conftest.$ac_objext'
14836 { (case "(($ac_try" in
14837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14838 *) ac_try_echo=$ac_try;;
14839 esac
14840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14841 (eval "$ac_try") 2>&5
14842 ac_status=$?
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); }; }; then
14845 eval "$as_ac_Header=yes"
14846 else
14847 echo "$as_me: failed program was:" >&5
14848 sed 's/^/| /' conftest.$ac_ext >&5
14850 eval "$as_ac_Header=no"
14853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14855 ac_res=`eval echo '${'$as_ac_Header'}'`
14856 { echo "$as_me:$LINENO: result: $ac_res" >&5
14857 echo "${ECHO_T}$ac_res" >&6; }
14858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14859 cat >>confdefs.h <<_ACEOF
14860 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14861 _ACEOF
14863 ac_header_dirent=$ac_hdr; break
14866 done
14867 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14868 if test $ac_header_dirent = dirent.h; then
14869 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14870 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14871 if test "${ac_cv_search_opendir+set}" = set; then
14872 echo $ECHO_N "(cached) $ECHO_C" >&6
14873 else
14874 ac_func_search_save_LIBS=$LIBS
14875 cat >conftest.$ac_ext <<_ACEOF
14876 /* confdefs.h. */
14877 _ACEOF
14878 cat confdefs.h >>conftest.$ac_ext
14879 cat >>conftest.$ac_ext <<_ACEOF
14880 /* end confdefs.h. */
14882 /* Override any GCC internal prototype to avoid an error.
14883 Use char because int might match the return type of a GCC
14884 builtin and then its argument prototype would still apply. */
14885 #ifdef __cplusplus
14886 extern "C"
14887 #endif
14888 char opendir ();
14890 main ()
14892 return opendir ();
14894 return 0;
14896 _ACEOF
14897 for ac_lib in '' dir; do
14898 if test -z "$ac_lib"; then
14899 ac_res="none required"
14900 else
14901 ac_res=-l$ac_lib
14902 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14904 rm -f conftest.$ac_objext conftest$ac_exeext
14905 if { (ac_try="$ac_link"
14906 case "(($ac_try" in
14907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14908 *) ac_try_echo=$ac_try;;
14909 esac
14910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14911 (eval "$ac_link") 2>conftest.er1
14912 ac_status=$?
14913 grep -v '^ *+' conftest.er1 >conftest.err
14914 rm -f conftest.er1
14915 cat conftest.err >&5
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); } &&
14918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14919 { (case "(($ac_try" in
14920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14921 *) ac_try_echo=$ac_try;;
14922 esac
14923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14924 (eval "$ac_try") 2>&5
14925 ac_status=$?
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; } &&
14928 { ac_try='test -s conftest$ac_exeext'
14929 { (case "(($ac_try" in
14930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14931 *) ac_try_echo=$ac_try;;
14932 esac
14933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14934 (eval "$ac_try") 2>&5
14935 ac_status=$?
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); }; }; then
14938 ac_cv_search_opendir=$ac_res
14939 else
14940 echo "$as_me: failed program was:" >&5
14941 sed 's/^/| /' conftest.$ac_ext >&5
14946 rm -f core conftest.err conftest.$ac_objext \
14947 conftest$ac_exeext
14948 if test "${ac_cv_search_opendir+set}" = set; then
14949 break
14951 done
14952 if test "${ac_cv_search_opendir+set}" = set; then
14954 else
14955 ac_cv_search_opendir=no
14957 rm conftest.$ac_ext
14958 LIBS=$ac_func_search_save_LIBS
14960 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14961 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14962 ac_res=$ac_cv_search_opendir
14963 if test "$ac_res" != no; then
14964 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14968 else
14969 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14970 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14971 if test "${ac_cv_search_opendir+set}" = set; then
14972 echo $ECHO_N "(cached) $ECHO_C" >&6
14973 else
14974 ac_func_search_save_LIBS=$LIBS
14975 cat >conftest.$ac_ext <<_ACEOF
14976 /* confdefs.h. */
14977 _ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14982 /* Override any GCC internal prototype to avoid an error.
14983 Use char because int might match the return type of a GCC
14984 builtin and then its argument prototype would still apply. */
14985 #ifdef __cplusplus
14986 extern "C"
14987 #endif
14988 char opendir ();
14990 main ()
14992 return opendir ();
14994 return 0;
14996 _ACEOF
14997 for ac_lib in '' x; do
14998 if test -z "$ac_lib"; then
14999 ac_res="none required"
15000 else
15001 ac_res=-l$ac_lib
15002 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15004 rm -f conftest.$ac_objext conftest$ac_exeext
15005 if { (ac_try="$ac_link"
15006 case "(($ac_try" in
15007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15008 *) ac_try_echo=$ac_try;;
15009 esac
15010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15011 (eval "$ac_link") 2>conftest.er1
15012 ac_status=$?
15013 grep -v '^ *+' conftest.er1 >conftest.err
15014 rm -f conftest.er1
15015 cat conftest.err >&5
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); } &&
15018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15019 { (case "(($ac_try" in
15020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15021 *) ac_try_echo=$ac_try;;
15022 esac
15023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15024 (eval "$ac_try") 2>&5
15025 ac_status=$?
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); }; } &&
15028 { ac_try='test -s conftest$ac_exeext'
15029 { (case "(($ac_try" in
15030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15031 *) ac_try_echo=$ac_try;;
15032 esac
15033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15034 (eval "$ac_try") 2>&5
15035 ac_status=$?
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; }; then
15038 ac_cv_search_opendir=$ac_res
15039 else
15040 echo "$as_me: failed program was:" >&5
15041 sed 's/^/| /' conftest.$ac_ext >&5
15046 rm -f core conftest.err conftest.$ac_objext \
15047 conftest$ac_exeext
15048 if test "${ac_cv_search_opendir+set}" = set; then
15049 break
15051 done
15052 if test "${ac_cv_search_opendir+set}" = set; then
15054 else
15055 ac_cv_search_opendir=no
15057 rm conftest.$ac_ext
15058 LIBS=$ac_func_search_save_LIBS
15060 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15061 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15062 ac_res=$ac_cv_search_opendir
15063 if test "$ac_res" != no; then
15064 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15070 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15071 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15072 if test "${ac_cv_header_mmap_anon+set}" = set; then
15073 echo $ECHO_N "(cached) $ECHO_C" >&6
15074 else
15075 ac_ext=c
15076 ac_cpp='$CPP $CPPFLAGS'
15077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15081 cat >conftest.$ac_ext <<_ACEOF
15082 /* confdefs.h. */
15083 _ACEOF
15084 cat confdefs.h >>conftest.$ac_ext
15085 cat >>conftest.$ac_ext <<_ACEOF
15086 /* end confdefs.h. */
15087 #include <sys/mman.h>
15088 #include <unistd.h>
15089 #include <fcntl.h>
15091 main ()
15093 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15095 return 0;
15097 _ACEOF
15098 rm -f conftest.$ac_objext
15099 if { (ac_try="$ac_compile"
15100 case "(($ac_try" in
15101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15102 *) ac_try_echo=$ac_try;;
15103 esac
15104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15105 (eval "$ac_compile") 2>conftest.er1
15106 ac_status=$?
15107 grep -v '^ *+' conftest.er1 >conftest.err
15108 rm -f conftest.er1
15109 cat conftest.err >&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); } &&
15112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15113 { (case "(($ac_try" in
15114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15115 *) ac_try_echo=$ac_try;;
15116 esac
15117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15118 (eval "$ac_try") 2>&5
15119 ac_status=$?
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); }; } &&
15122 { ac_try='test -s conftest.$ac_objext'
15123 { (case "(($ac_try" in
15124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15125 *) ac_try_echo=$ac_try;;
15126 esac
15127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15128 (eval "$ac_try") 2>&5
15129 ac_status=$?
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); }; }; then
15132 ac_cv_header_mmap_anon=yes
15133 else
15134 echo "$as_me: failed program was:" >&5
15135 sed 's/^/| /' conftest.$ac_ext >&5
15137 ac_cv_header_mmap_anon=no
15140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15141 ac_ext=c
15142 ac_cpp='$CPP $CPPFLAGS'
15143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15149 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15150 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15151 if test "$ac_cv_header_mmap_anon" = yes; then
15153 cat >>confdefs.h <<\_ACEOF
15154 #define HAVE_MMAP_ANONYMOUS 1
15155 _ACEOF
15159 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15160 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15161 if test "${ac_cv_header_stat_broken+set}" = set; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
15163 else
15164 cat >conftest.$ac_ext <<_ACEOF
15165 /* confdefs.h. */
15166 _ACEOF
15167 cat confdefs.h >>conftest.$ac_ext
15168 cat >>conftest.$ac_ext <<_ACEOF
15169 /* end confdefs.h. */
15170 #include <sys/types.h>
15171 #include <sys/stat.h>
15173 #if defined S_ISBLK && defined S_IFDIR
15174 # if S_ISBLK (S_IFDIR)
15175 You lose.
15176 # endif
15177 #endif
15179 #if defined S_ISBLK && defined S_IFCHR
15180 # if S_ISBLK (S_IFCHR)
15181 You lose.
15182 # endif
15183 #endif
15185 #if defined S_ISLNK && defined S_IFREG
15186 # if S_ISLNK (S_IFREG)
15187 You lose.
15188 # endif
15189 #endif
15191 #if defined S_ISSOCK && defined S_IFREG
15192 # if S_ISSOCK (S_IFREG)
15193 You lose.
15194 # endif
15195 #endif
15197 _ACEOF
15198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15199 $EGREP "You lose" >/dev/null 2>&1; then
15200 ac_cv_header_stat_broken=yes
15201 else
15202 ac_cv_header_stat_broken=no
15204 rm -f conftest*
15207 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15208 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15209 if test $ac_cv_header_stat_broken = yes; then
15211 cat >>confdefs.h <<\_ACEOF
15212 #define STAT_MACROS_BROKEN 1
15213 _ACEOF
15217 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15218 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15219 if test "${ac_cv_header_stdc+set}" = set; then
15220 echo $ECHO_N "(cached) $ECHO_C" >&6
15221 else
15222 cat >conftest.$ac_ext <<_ACEOF
15223 /* confdefs.h. */
15224 _ACEOF
15225 cat confdefs.h >>conftest.$ac_ext
15226 cat >>conftest.$ac_ext <<_ACEOF
15227 /* end confdefs.h. */
15228 #include <stdlib.h>
15229 #include <stdarg.h>
15230 #include <string.h>
15231 #include <float.h>
15234 main ()
15238 return 0;
15240 _ACEOF
15241 rm -f conftest.$ac_objext
15242 if { (ac_try="$ac_compile"
15243 case "(($ac_try" in
15244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15245 *) ac_try_echo=$ac_try;;
15246 esac
15247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15248 (eval "$ac_compile") 2>conftest.er1
15249 ac_status=$?
15250 grep -v '^ *+' conftest.er1 >conftest.err
15251 rm -f conftest.er1
15252 cat conftest.err >&5
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); } &&
15255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15256 { (case "(($ac_try" in
15257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15258 *) ac_try_echo=$ac_try;;
15259 esac
15260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15261 (eval "$ac_try") 2>&5
15262 ac_status=$?
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); }; } &&
15265 { ac_try='test -s conftest.$ac_objext'
15266 { (case "(($ac_try" in
15267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268 *) ac_try_echo=$ac_try;;
15269 esac
15270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15271 (eval "$ac_try") 2>&5
15272 ac_status=$?
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; }; then
15275 ac_cv_header_stdc=yes
15276 else
15277 echo "$as_me: failed program was:" >&5
15278 sed 's/^/| /' conftest.$ac_ext >&5
15280 ac_cv_header_stdc=no
15283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15285 if test $ac_cv_header_stdc = yes; then
15286 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15287 cat >conftest.$ac_ext <<_ACEOF
15288 /* confdefs.h. */
15289 _ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h. */
15293 #include <string.h>
15295 _ACEOF
15296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15297 $EGREP "memchr" >/dev/null 2>&1; then
15299 else
15300 ac_cv_header_stdc=no
15302 rm -f conftest*
15306 if test $ac_cv_header_stdc = yes; then
15307 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15308 cat >conftest.$ac_ext <<_ACEOF
15309 /* confdefs.h. */
15310 _ACEOF
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h. */
15314 #include <stdlib.h>
15316 _ACEOF
15317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15318 $EGREP "free" >/dev/null 2>&1; then
15320 else
15321 ac_cv_header_stdc=no
15323 rm -f conftest*
15327 if test $ac_cv_header_stdc = yes; then
15328 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15329 if test "$cross_compiling" = yes; then
15331 else
15332 cat >conftest.$ac_ext <<_ACEOF
15333 /* confdefs.h. */
15334 _ACEOF
15335 cat confdefs.h >>conftest.$ac_ext
15336 cat >>conftest.$ac_ext <<_ACEOF
15337 /* end confdefs.h. */
15338 #include <ctype.h>
15339 #include <stdlib.h>
15340 #if ((' ' & 0x0FF) == 0x020)
15341 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15342 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15343 #else
15344 # define ISLOWER(c) \
15345 (('a' <= (c) && (c) <= 'i') \
15346 || ('j' <= (c) && (c) <= 'r') \
15347 || ('s' <= (c) && (c) <= 'z'))
15348 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15349 #endif
15351 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15353 main ()
15355 int i;
15356 for (i = 0; i < 256; i++)
15357 if (XOR (islower (i), ISLOWER (i))
15358 || toupper (i) != TOUPPER (i))
15359 return 2;
15360 return 0;
15362 _ACEOF
15363 rm -f conftest$ac_exeext
15364 if { (ac_try="$ac_link"
15365 case "(($ac_try" in
15366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367 *) ac_try_echo=$ac_try;;
15368 esac
15369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370 (eval "$ac_link") 2>&5
15371 ac_status=$?
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15374 { (case "(($ac_try" in
15375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15376 *) ac_try_echo=$ac_try;;
15377 esac
15378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15379 (eval "$ac_try") 2>&5
15380 ac_status=$?
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; }; then
15384 else
15385 echo "$as_me: program exited with status $ac_status" >&5
15386 echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15389 ( exit $ac_status )
15390 ac_cv_header_stdc=no
15392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15398 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15399 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15400 if test $ac_cv_header_stdc = yes; then
15402 cat >>confdefs.h <<\_ACEOF
15403 #define STDC_HEADERS 1
15404 _ACEOF
15408 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15409 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15410 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15412 else
15413 cat >conftest.$ac_ext <<_ACEOF
15414 /* confdefs.h. */
15415 _ACEOF
15416 cat confdefs.h >>conftest.$ac_ext
15417 cat >>conftest.$ac_ext <<_ACEOF
15418 /* end confdefs.h. */
15419 #include <sys/types.h>
15420 #include <sys/wait.h>
15421 #ifndef WEXITSTATUS
15422 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15423 #endif
15424 #ifndef WIFEXITED
15425 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15426 #endif
15429 main ()
15431 int s;
15432 wait (&s);
15433 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15435 return 0;
15437 _ACEOF
15438 rm -f conftest.$ac_objext
15439 if { (ac_try="$ac_compile"
15440 case "(($ac_try" in
15441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15442 *) ac_try_echo=$ac_try;;
15443 esac
15444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15445 (eval "$ac_compile") 2>conftest.er1
15446 ac_status=$?
15447 grep -v '^ *+' conftest.er1 >conftest.err
15448 rm -f conftest.er1
15449 cat conftest.err >&5
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); } &&
15452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15453 { (case "(($ac_try" in
15454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15455 *) ac_try_echo=$ac_try;;
15456 esac
15457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15458 (eval "$ac_try") 2>&5
15459 ac_status=$?
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); }; } &&
15462 { ac_try='test -s conftest.$ac_objext'
15463 { (case "(($ac_try" in
15464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15465 *) ac_try_echo=$ac_try;;
15466 esac
15467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15468 (eval "$ac_try") 2>&5
15469 ac_status=$?
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; }; then
15472 ac_cv_header_sys_wait_h=yes
15473 else
15474 echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.$ac_ext >&5
15477 ac_cv_header_sys_wait_h=no
15480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15482 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15483 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15484 if test $ac_cv_header_sys_wait_h = yes; then
15486 cat >>confdefs.h <<\_ACEOF
15487 #define HAVE_SYS_WAIT_H 1
15488 _ACEOF
15492 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15493 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15494 if test "${ac_cv_header_time+set}" = set; then
15495 echo $ECHO_N "(cached) $ECHO_C" >&6
15496 else
15497 cat >conftest.$ac_ext <<_ACEOF
15498 /* confdefs.h. */
15499 _ACEOF
15500 cat confdefs.h >>conftest.$ac_ext
15501 cat >>conftest.$ac_ext <<_ACEOF
15502 /* end confdefs.h. */
15503 #include <sys/types.h>
15504 #include <sys/time.h>
15505 #include <time.h>
15508 main ()
15510 if ((struct tm *) 0)
15511 return 0;
15513 return 0;
15515 _ACEOF
15516 rm -f conftest.$ac_objext
15517 if { (ac_try="$ac_compile"
15518 case "(($ac_try" in
15519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15520 *) ac_try_echo=$ac_try;;
15521 esac
15522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15523 (eval "$ac_compile") 2>conftest.er1
15524 ac_status=$?
15525 grep -v '^ *+' conftest.er1 >conftest.err
15526 rm -f conftest.er1
15527 cat conftest.err >&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } &&
15530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15531 { (case "(($ac_try" in
15532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15533 *) ac_try_echo=$ac_try;;
15534 esac
15535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15536 (eval "$ac_try") 2>&5
15537 ac_status=$?
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); }; } &&
15540 { ac_try='test -s conftest.$ac_objext'
15541 { (case "(($ac_try" in
15542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15543 *) ac_try_echo=$ac_try;;
15544 esac
15545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15546 (eval "$ac_try") 2>&5
15547 ac_status=$?
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); }; }; then
15550 ac_cv_header_time=yes
15551 else
15552 echo "$as_me: failed program was:" >&5
15553 sed 's/^/| /' conftest.$ac_ext >&5
15555 ac_cv_header_time=no
15558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15560 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15561 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15562 if test $ac_cv_header_time = yes; then
15564 cat >>confdefs.h <<\_ACEOF
15565 #define TIME_WITH_SYS_TIME 1
15566 _ACEOF
15577 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15584 echo $ECHO_N "(cached) $ECHO_C" >&6
15586 ac_res=`eval echo '${'$as_ac_Header'}'`
15587 { echo "$as_me:$LINENO: result: $ac_res" >&5
15588 echo "${ECHO_T}$ac_res" >&6; }
15589 else
15590 # Is the header compilable?
15591 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15593 cat >conftest.$ac_ext <<_ACEOF
15594 /* confdefs.h. */
15595 _ACEOF
15596 cat confdefs.h >>conftest.$ac_ext
15597 cat >>conftest.$ac_ext <<_ACEOF
15598 /* end confdefs.h. */
15599 $ac_includes_default
15600 #include <$ac_header>
15601 _ACEOF
15602 rm -f conftest.$ac_objext
15603 if { (ac_try="$ac_compile"
15604 case "(($ac_try" in
15605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15606 *) ac_try_echo=$ac_try;;
15607 esac
15608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15609 (eval "$ac_compile") 2>conftest.er1
15610 ac_status=$?
15611 grep -v '^ *+' conftest.er1 >conftest.err
15612 rm -f conftest.er1
15613 cat conftest.err >&5
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); } &&
15616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15617 { (case "(($ac_try" in
15618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15619 *) ac_try_echo=$ac_try;;
15620 esac
15621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15622 (eval "$ac_try") 2>&5
15623 ac_status=$?
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); }; } &&
15626 { ac_try='test -s conftest.$ac_objext'
15627 { (case "(($ac_try" in
15628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15629 *) ac_try_echo=$ac_try;;
15630 esac
15631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15632 (eval "$ac_try") 2>&5
15633 ac_status=$?
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); }; }; then
15636 ac_header_compiler=yes
15637 else
15638 echo "$as_me: failed program was:" >&5
15639 sed 's/^/| /' conftest.$ac_ext >&5
15641 ac_header_compiler=no
15644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15646 echo "${ECHO_T}$ac_header_compiler" >&6; }
15648 # Is the header present?
15649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15651 cat >conftest.$ac_ext <<_ACEOF
15652 /* confdefs.h. */
15653 _ACEOF
15654 cat confdefs.h >>conftest.$ac_ext
15655 cat >>conftest.$ac_ext <<_ACEOF
15656 /* end confdefs.h. */
15657 #include <$ac_header>
15658 _ACEOF
15659 if { (ac_try="$ac_cpp conftest.$ac_ext"
15660 case "(($ac_try" in
15661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15662 *) ac_try_echo=$ac_try;;
15663 esac
15664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15666 ac_status=$?
15667 grep -v '^ *+' conftest.er1 >conftest.err
15668 rm -f conftest.er1
15669 cat conftest.err >&5
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); } >/dev/null; then
15672 if test -s conftest.err; then
15673 ac_cpp_err=$ac_c_preproc_warn_flag
15674 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15675 else
15676 ac_cpp_err=
15678 else
15679 ac_cpp_err=yes
15681 if test -z "$ac_cpp_err"; then
15682 ac_header_preproc=yes
15683 else
15684 echo "$as_me: failed program was:" >&5
15685 sed 's/^/| /' conftest.$ac_ext >&5
15687 ac_header_preproc=no
15690 rm -f conftest.err conftest.$ac_ext
15691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15692 echo "${ECHO_T}$ac_header_preproc" >&6; }
15694 # So? What about this header?
15695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15696 yes:no: )
15697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15701 ac_header_preproc=yes
15703 no:yes:* )
15704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15707 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15711 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15716 ( cat <<\_ASBOX
15717 ## ----------------------------------- ##
15718 ## Report this to llvmbugs@cs.uiuc.edu ##
15719 ## ----------------------------------- ##
15720 _ASBOX
15721 ) | sed "s/^/$as_me: WARNING: /" >&2
15723 esac
15724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15727 echo $ECHO_N "(cached) $ECHO_C" >&6
15728 else
15729 eval "$as_ac_Header=\$ac_header_preproc"
15731 ac_res=`eval echo '${'$as_ac_Header'}'`
15732 { echo "$as_me:$LINENO: result: $ac_res" >&5
15733 echo "${ECHO_T}$ac_res" >&6; }
15736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15737 cat >>confdefs.h <<_ACEOF
15738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15739 _ACEOF
15743 done
15751 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15755 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15758 echo $ECHO_N "(cached) $ECHO_C" >&6
15760 ac_res=`eval echo '${'$as_ac_Header'}'`
15761 { echo "$as_me:$LINENO: result: $ac_res" >&5
15762 echo "${ECHO_T}$ac_res" >&6; }
15763 else
15764 # Is the header compilable?
15765 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15766 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15767 cat >conftest.$ac_ext <<_ACEOF
15768 /* confdefs.h. */
15769 _ACEOF
15770 cat confdefs.h >>conftest.$ac_ext
15771 cat >>conftest.$ac_ext <<_ACEOF
15772 /* end confdefs.h. */
15773 $ac_includes_default
15774 #include <$ac_header>
15775 _ACEOF
15776 rm -f conftest.$ac_objext
15777 if { (ac_try="$ac_compile"
15778 case "(($ac_try" in
15779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15780 *) ac_try_echo=$ac_try;;
15781 esac
15782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15783 (eval "$ac_compile") 2>conftest.er1
15784 ac_status=$?
15785 grep -v '^ *+' conftest.er1 >conftest.err
15786 rm -f conftest.er1
15787 cat conftest.err >&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } &&
15790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15791 { (case "(($ac_try" in
15792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15793 *) ac_try_echo=$ac_try;;
15794 esac
15795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15796 (eval "$ac_try") 2>&5
15797 ac_status=$?
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; } &&
15800 { ac_try='test -s conftest.$ac_objext'
15801 { (case "(($ac_try" in
15802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15803 *) ac_try_echo=$ac_try;;
15804 esac
15805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15806 (eval "$ac_try") 2>&5
15807 ac_status=$?
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); }; }; then
15810 ac_header_compiler=yes
15811 else
15812 echo "$as_me: failed program was:" >&5
15813 sed 's/^/| /' conftest.$ac_ext >&5
15815 ac_header_compiler=no
15818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15819 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15820 echo "${ECHO_T}$ac_header_compiler" >&6; }
15822 # Is the header present?
15823 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15825 cat >conftest.$ac_ext <<_ACEOF
15826 /* confdefs.h. */
15827 _ACEOF
15828 cat confdefs.h >>conftest.$ac_ext
15829 cat >>conftest.$ac_ext <<_ACEOF
15830 /* end confdefs.h. */
15831 #include <$ac_header>
15832 _ACEOF
15833 if { (ac_try="$ac_cpp conftest.$ac_ext"
15834 case "(($ac_try" in
15835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15836 *) ac_try_echo=$ac_try;;
15837 esac
15838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15840 ac_status=$?
15841 grep -v '^ *+' conftest.er1 >conftest.err
15842 rm -f conftest.er1
15843 cat conftest.err >&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); } >/dev/null; then
15846 if test -s conftest.err; then
15847 ac_cpp_err=$ac_c_preproc_warn_flag
15848 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15849 else
15850 ac_cpp_err=
15852 else
15853 ac_cpp_err=yes
15855 if test -z "$ac_cpp_err"; then
15856 ac_header_preproc=yes
15857 else
15858 echo "$as_me: failed program was:" >&5
15859 sed 's/^/| /' conftest.$ac_ext >&5
15861 ac_header_preproc=no
15864 rm -f conftest.err conftest.$ac_ext
15865 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15866 echo "${ECHO_T}$ac_header_preproc" >&6; }
15868 # So? What about this header?
15869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15870 yes:no: )
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15875 ac_header_preproc=yes
15877 no:yes:* )
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15881 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15885 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15890 ( cat <<\_ASBOX
15891 ## ----------------------------------- ##
15892 ## Report this to llvmbugs@cs.uiuc.edu ##
15893 ## ----------------------------------- ##
15894 _ASBOX
15895 ) | sed "s/^/$as_me: WARNING: /" >&2
15897 esac
15898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15901 echo $ECHO_N "(cached) $ECHO_C" >&6
15902 else
15903 eval "$as_ac_Header=\$ac_header_preproc"
15905 ac_res=`eval echo '${'$as_ac_Header'}'`
15906 { echo "$as_me:$LINENO: result: $ac_res" >&5
15907 echo "${ECHO_T}$ac_res" >&6; }
15910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15911 cat >>confdefs.h <<_ACEOF
15912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15913 _ACEOF
15917 done
15921 for ac_header in utime.h windows.h
15923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15928 echo $ECHO_N "(cached) $ECHO_C" >&6
15930 ac_res=`eval echo '${'$as_ac_Header'}'`
15931 { echo "$as_me:$LINENO: result: $ac_res" >&5
15932 echo "${ECHO_T}$ac_res" >&6; }
15933 else
15934 # Is the header compilable?
15935 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15937 cat >conftest.$ac_ext <<_ACEOF
15938 /* confdefs.h. */
15939 _ACEOF
15940 cat confdefs.h >>conftest.$ac_ext
15941 cat >>conftest.$ac_ext <<_ACEOF
15942 /* end confdefs.h. */
15943 $ac_includes_default
15944 #include <$ac_header>
15945 _ACEOF
15946 rm -f conftest.$ac_objext
15947 if { (ac_try="$ac_compile"
15948 case "(($ac_try" in
15949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15950 *) ac_try_echo=$ac_try;;
15951 esac
15952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15953 (eval "$ac_compile") 2>conftest.er1
15954 ac_status=$?
15955 grep -v '^ *+' conftest.er1 >conftest.err
15956 rm -f conftest.er1
15957 cat conftest.err >&5
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); } &&
15960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15961 { (case "(($ac_try" in
15962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15963 *) ac_try_echo=$ac_try;;
15964 esac
15965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15966 (eval "$ac_try") 2>&5
15967 ac_status=$?
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); }; } &&
15970 { ac_try='test -s conftest.$ac_objext'
15971 { (case "(($ac_try" in
15972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15973 *) ac_try_echo=$ac_try;;
15974 esac
15975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15976 (eval "$ac_try") 2>&5
15977 ac_status=$?
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); }; }; then
15980 ac_header_compiler=yes
15981 else
15982 echo "$as_me: failed program was:" >&5
15983 sed 's/^/| /' conftest.$ac_ext >&5
15985 ac_header_compiler=no
15988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15990 echo "${ECHO_T}$ac_header_compiler" >&6; }
15992 # Is the header present?
15993 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15995 cat >conftest.$ac_ext <<_ACEOF
15996 /* confdefs.h. */
15997 _ACEOF
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h. */
16001 #include <$ac_header>
16002 _ACEOF
16003 if { (ac_try="$ac_cpp conftest.$ac_ext"
16004 case "(($ac_try" in
16005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16006 *) ac_try_echo=$ac_try;;
16007 esac
16008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16010 ac_status=$?
16011 grep -v '^ *+' conftest.er1 >conftest.err
16012 rm -f conftest.er1
16013 cat conftest.err >&5
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); } >/dev/null; then
16016 if test -s conftest.err; then
16017 ac_cpp_err=$ac_c_preproc_warn_flag
16018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16019 else
16020 ac_cpp_err=
16022 else
16023 ac_cpp_err=yes
16025 if test -z "$ac_cpp_err"; then
16026 ac_header_preproc=yes
16027 else
16028 echo "$as_me: failed program was:" >&5
16029 sed 's/^/| /' conftest.$ac_ext >&5
16031 ac_header_preproc=no
16034 rm -f conftest.err conftest.$ac_ext
16035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16036 echo "${ECHO_T}$ac_header_preproc" >&6; }
16038 # So? What about this header?
16039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16040 yes:no: )
16041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16045 ac_header_preproc=yes
16047 no:yes:* )
16048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16055 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16060 ( cat <<\_ASBOX
16061 ## ----------------------------------- ##
16062 ## Report this to llvmbugs@cs.uiuc.edu ##
16063 ## ----------------------------------- ##
16064 _ASBOX
16065 ) | sed "s/^/$as_me: WARNING: /" >&2
16067 esac
16068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16071 echo $ECHO_N "(cached) $ECHO_C" >&6
16072 else
16073 eval "$as_ac_Header=\$ac_header_preproc"
16075 ac_res=`eval echo '${'$as_ac_Header'}'`
16076 { echo "$as_me:$LINENO: result: $ac_res" >&5
16077 echo "${ECHO_T}$ac_res" >&6; }
16080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16081 cat >>confdefs.h <<_ACEOF
16082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16083 _ACEOF
16087 done
16093 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16100 echo $ECHO_N "(cached) $ECHO_C" >&6
16102 ac_res=`eval echo '${'$as_ac_Header'}'`
16103 { echo "$as_me:$LINENO: result: $ac_res" >&5
16104 echo "${ECHO_T}$ac_res" >&6; }
16105 else
16106 # Is the header compilable?
16107 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16109 cat >conftest.$ac_ext <<_ACEOF
16110 /* confdefs.h. */
16111 _ACEOF
16112 cat confdefs.h >>conftest.$ac_ext
16113 cat >>conftest.$ac_ext <<_ACEOF
16114 /* end confdefs.h. */
16115 $ac_includes_default
16116 #include <$ac_header>
16117 _ACEOF
16118 rm -f conftest.$ac_objext
16119 if { (ac_try="$ac_compile"
16120 case "(($ac_try" in
16121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16122 *) ac_try_echo=$ac_try;;
16123 esac
16124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16125 (eval "$ac_compile") 2>conftest.er1
16126 ac_status=$?
16127 grep -v '^ *+' conftest.er1 >conftest.err
16128 rm -f conftest.er1
16129 cat conftest.err >&5
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); } &&
16132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16133 { (case "(($ac_try" in
16134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16135 *) ac_try_echo=$ac_try;;
16136 esac
16137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16138 (eval "$ac_try") 2>&5
16139 ac_status=$?
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); }; } &&
16142 { ac_try='test -s conftest.$ac_objext'
16143 { (case "(($ac_try" in
16144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16145 *) ac_try_echo=$ac_try;;
16146 esac
16147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16148 (eval "$ac_try") 2>&5
16149 ac_status=$?
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; }; then
16152 ac_header_compiler=yes
16153 else
16154 echo "$as_me: failed program was:" >&5
16155 sed 's/^/| /' conftest.$ac_ext >&5
16157 ac_header_compiler=no
16160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16161 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16162 echo "${ECHO_T}$ac_header_compiler" >&6; }
16164 # Is the header present?
16165 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16167 cat >conftest.$ac_ext <<_ACEOF
16168 /* confdefs.h. */
16169 _ACEOF
16170 cat confdefs.h >>conftest.$ac_ext
16171 cat >>conftest.$ac_ext <<_ACEOF
16172 /* end confdefs.h. */
16173 #include <$ac_header>
16174 _ACEOF
16175 if { (ac_try="$ac_cpp conftest.$ac_ext"
16176 case "(($ac_try" in
16177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16178 *) ac_try_echo=$ac_try;;
16179 esac
16180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16182 ac_status=$?
16183 grep -v '^ *+' conftest.er1 >conftest.err
16184 rm -f conftest.er1
16185 cat conftest.err >&5
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); } >/dev/null; then
16188 if test -s conftest.err; then
16189 ac_cpp_err=$ac_c_preproc_warn_flag
16190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16191 else
16192 ac_cpp_err=
16194 else
16195 ac_cpp_err=yes
16197 if test -z "$ac_cpp_err"; then
16198 ac_header_preproc=yes
16199 else
16200 echo "$as_me: failed program was:" >&5
16201 sed 's/^/| /' conftest.$ac_ext >&5
16203 ac_header_preproc=no
16206 rm -f conftest.err conftest.$ac_ext
16207 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16208 echo "${ECHO_T}$ac_header_preproc" >&6; }
16210 # So? What about this header?
16211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16212 yes:no: )
16213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16217 ac_header_preproc=yes
16219 no:yes:* )
16220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16223 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16227 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16232 ( cat <<\_ASBOX
16233 ## ----------------------------------- ##
16234 ## Report this to llvmbugs@cs.uiuc.edu ##
16235 ## ----------------------------------- ##
16236 _ASBOX
16237 ) | sed "s/^/$as_me: WARNING: /" >&2
16239 esac
16240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16243 echo $ECHO_N "(cached) $ECHO_C" >&6
16244 else
16245 eval "$as_ac_Header=\$ac_header_preproc"
16247 ac_res=`eval echo '${'$as_ac_Header'}'`
16248 { echo "$as_me:$LINENO: result: $ac_res" >&5
16249 echo "${ECHO_T}$ac_res" >&6; }
16252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16253 cat >>confdefs.h <<_ACEOF
16254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16255 _ACEOF
16259 done
16265 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16272 echo $ECHO_N "(cached) $ECHO_C" >&6
16274 ac_res=`eval echo '${'$as_ac_Header'}'`
16275 { echo "$as_me:$LINENO: result: $ac_res" >&5
16276 echo "${ECHO_T}$ac_res" >&6; }
16277 else
16278 # Is the header compilable?
16279 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16281 cat >conftest.$ac_ext <<_ACEOF
16282 /* confdefs.h. */
16283 _ACEOF
16284 cat confdefs.h >>conftest.$ac_ext
16285 cat >>conftest.$ac_ext <<_ACEOF
16286 /* end confdefs.h. */
16287 $ac_includes_default
16288 #include <$ac_header>
16289 _ACEOF
16290 rm -f conftest.$ac_objext
16291 if { (ac_try="$ac_compile"
16292 case "(($ac_try" in
16293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16294 *) ac_try_echo=$ac_try;;
16295 esac
16296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16297 (eval "$ac_compile") 2>conftest.er1
16298 ac_status=$?
16299 grep -v '^ *+' conftest.er1 >conftest.err
16300 rm -f conftest.er1
16301 cat conftest.err >&5
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); } &&
16304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16305 { (case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16308 esac
16309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_try") 2>&5
16311 ac_status=$?
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; } &&
16314 { ac_try='test -s conftest.$ac_objext'
16315 { (case "(($ac_try" in
16316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16317 *) ac_try_echo=$ac_try;;
16318 esac
16319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16320 (eval "$ac_try") 2>&5
16321 ac_status=$?
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); }; }; then
16324 ac_header_compiler=yes
16325 else
16326 echo "$as_me: failed program was:" >&5
16327 sed 's/^/| /' conftest.$ac_ext >&5
16329 ac_header_compiler=no
16332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16333 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16334 echo "${ECHO_T}$ac_header_compiler" >&6; }
16336 # Is the header present?
16337 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16339 cat >conftest.$ac_ext <<_ACEOF
16340 /* confdefs.h. */
16341 _ACEOF
16342 cat confdefs.h >>conftest.$ac_ext
16343 cat >>conftest.$ac_ext <<_ACEOF
16344 /* end confdefs.h. */
16345 #include <$ac_header>
16346 _ACEOF
16347 if { (ac_try="$ac_cpp conftest.$ac_ext"
16348 case "(($ac_try" in
16349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16350 *) ac_try_echo=$ac_try;;
16351 esac
16352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16354 ac_status=$?
16355 grep -v '^ *+' conftest.er1 >conftest.err
16356 rm -f conftest.er1
16357 cat conftest.err >&5
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); } >/dev/null; then
16360 if test -s conftest.err; then
16361 ac_cpp_err=$ac_c_preproc_warn_flag
16362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16363 else
16364 ac_cpp_err=
16366 else
16367 ac_cpp_err=yes
16369 if test -z "$ac_cpp_err"; then
16370 ac_header_preproc=yes
16371 else
16372 echo "$as_me: failed program was:" >&5
16373 sed 's/^/| /' conftest.$ac_ext >&5
16375 ac_header_preproc=no
16378 rm -f conftest.err conftest.$ac_ext
16379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16380 echo "${ECHO_T}$ac_header_preproc" >&6; }
16382 # So? What about this header?
16383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16384 yes:no: )
16385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16389 ac_header_preproc=yes
16391 no:yes:* )
16392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16399 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16404 ( cat <<\_ASBOX
16405 ## ----------------------------------- ##
16406 ## Report this to llvmbugs@cs.uiuc.edu ##
16407 ## ----------------------------------- ##
16408 _ASBOX
16409 ) | sed "s/^/$as_me: WARNING: /" >&2
16411 esac
16412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16415 echo $ECHO_N "(cached) $ECHO_C" >&6
16416 else
16417 eval "$as_ac_Header=\$ac_header_preproc"
16419 ac_res=`eval echo '${'$as_ac_Header'}'`
16420 { echo "$as_me:$LINENO: result: $ac_res" >&5
16421 echo "${ECHO_T}$ac_res" >&6; }
16424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16425 cat >>confdefs.h <<_ACEOF
16426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16427 _ACEOF
16431 done
16434 for ac_header in valgrind/valgrind.h
16436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16441 echo $ECHO_N "(cached) $ECHO_C" >&6
16443 ac_res=`eval echo '${'$as_ac_Header'}'`
16444 { echo "$as_me:$LINENO: result: $ac_res" >&5
16445 echo "${ECHO_T}$ac_res" >&6; }
16446 else
16447 # Is the header compilable?
16448 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16449 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16450 cat >conftest.$ac_ext <<_ACEOF
16451 /* confdefs.h. */
16452 _ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h. */
16456 $ac_includes_default
16457 #include <$ac_header>
16458 _ACEOF
16459 rm -f conftest.$ac_objext
16460 if { (ac_try="$ac_compile"
16461 case "(($ac_try" in
16462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16463 *) ac_try_echo=$ac_try;;
16464 esac
16465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16466 (eval "$ac_compile") 2>conftest.er1
16467 ac_status=$?
16468 grep -v '^ *+' conftest.er1 >conftest.err
16469 rm -f conftest.er1
16470 cat conftest.err >&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); } &&
16473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16474 { (case "(($ac_try" in
16475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476 *) ac_try_echo=$ac_try;;
16477 esac
16478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16479 (eval "$ac_try") 2>&5
16480 ac_status=$?
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); }; } &&
16483 { ac_try='test -s conftest.$ac_objext'
16484 { (case "(($ac_try" in
16485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16486 *) ac_try_echo=$ac_try;;
16487 esac
16488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16489 (eval "$ac_try") 2>&5
16490 ac_status=$?
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; }; then
16493 ac_header_compiler=yes
16494 else
16495 echo "$as_me: failed program was:" >&5
16496 sed 's/^/| /' conftest.$ac_ext >&5
16498 ac_header_compiler=no
16501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16502 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16503 echo "${ECHO_T}$ac_header_compiler" >&6; }
16505 # Is the header present?
16506 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16508 cat >conftest.$ac_ext <<_ACEOF
16509 /* confdefs.h. */
16510 _ACEOF
16511 cat confdefs.h >>conftest.$ac_ext
16512 cat >>conftest.$ac_ext <<_ACEOF
16513 /* end confdefs.h. */
16514 #include <$ac_header>
16515 _ACEOF
16516 if { (ac_try="$ac_cpp conftest.$ac_ext"
16517 case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16520 esac
16521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16523 ac_status=$?
16524 grep -v '^ *+' conftest.er1 >conftest.err
16525 rm -f conftest.er1
16526 cat conftest.err >&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } >/dev/null; then
16529 if test -s conftest.err; then
16530 ac_cpp_err=$ac_c_preproc_warn_flag
16531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16532 else
16533 ac_cpp_err=
16535 else
16536 ac_cpp_err=yes
16538 if test -z "$ac_cpp_err"; then
16539 ac_header_preproc=yes
16540 else
16541 echo "$as_me: failed program was:" >&5
16542 sed 's/^/| /' conftest.$ac_ext >&5
16544 ac_header_preproc=no
16547 rm -f conftest.err conftest.$ac_ext
16548 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16549 echo "${ECHO_T}$ac_header_preproc" >&6; }
16551 # So? What about this header?
16552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16553 yes:no: )
16554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16555 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16557 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16558 ac_header_preproc=yes
16560 no:yes:* )
16561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16564 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16566 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16568 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16572 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16573 ( cat <<\_ASBOX
16574 ## ----------------------------------- ##
16575 ## Report this to llvmbugs@cs.uiuc.edu ##
16576 ## ----------------------------------- ##
16577 _ASBOX
16578 ) | sed "s/^/$as_me: WARNING: /" >&2
16580 esac
16581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16584 echo $ECHO_N "(cached) $ECHO_C" >&6
16585 else
16586 eval "$as_ac_Header=\$ac_header_preproc"
16588 ac_res=`eval echo '${'$as_ac_Header'}'`
16589 { echo "$as_me:$LINENO: result: $ac_res" >&5
16590 echo "${ECHO_T}$ac_res" >&6; }
16593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16594 cat >>confdefs.h <<_ACEOF
16595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16596 _ACEOF
16600 done
16602 if test "$ENABLE_THREADS" -eq 1 ; then
16604 for ac_header in pthread.h
16606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16611 echo $ECHO_N "(cached) $ECHO_C" >&6
16613 ac_res=`eval echo '${'$as_ac_Header'}'`
16614 { echo "$as_me:$LINENO: result: $ac_res" >&5
16615 echo "${ECHO_T}$ac_res" >&6; }
16616 else
16617 # Is the header compilable?
16618 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16619 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16620 cat >conftest.$ac_ext <<_ACEOF
16621 /* confdefs.h. */
16622 _ACEOF
16623 cat confdefs.h >>conftest.$ac_ext
16624 cat >>conftest.$ac_ext <<_ACEOF
16625 /* end confdefs.h. */
16626 $ac_includes_default
16627 #include <$ac_header>
16628 _ACEOF
16629 rm -f conftest.$ac_objext
16630 if { (ac_try="$ac_compile"
16631 case "(($ac_try" in
16632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16633 *) ac_try_echo=$ac_try;;
16634 esac
16635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16636 (eval "$ac_compile") 2>conftest.er1
16637 ac_status=$?
16638 grep -v '^ *+' conftest.er1 >conftest.err
16639 rm -f conftest.er1
16640 cat conftest.err >&5
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); } &&
16643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16644 { (case "(($ac_try" in
16645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646 *) ac_try_echo=$ac_try;;
16647 esac
16648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16649 (eval "$ac_try") 2>&5
16650 ac_status=$?
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; } &&
16653 { ac_try='test -s conftest.$ac_objext'
16654 { (case "(($ac_try" in
16655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16656 *) ac_try_echo=$ac_try;;
16657 esac
16658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16659 (eval "$ac_try") 2>&5
16660 ac_status=$?
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); }; }; then
16663 ac_header_compiler=yes
16664 else
16665 echo "$as_me: failed program was:" >&5
16666 sed 's/^/| /' conftest.$ac_ext >&5
16668 ac_header_compiler=no
16671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16672 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16673 echo "${ECHO_T}$ac_header_compiler" >&6; }
16675 # Is the header present?
16676 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16677 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16678 cat >conftest.$ac_ext <<_ACEOF
16679 /* confdefs.h. */
16680 _ACEOF
16681 cat confdefs.h >>conftest.$ac_ext
16682 cat >>conftest.$ac_ext <<_ACEOF
16683 /* end confdefs.h. */
16684 #include <$ac_header>
16685 _ACEOF
16686 if { (ac_try="$ac_cpp conftest.$ac_ext"
16687 case "(($ac_try" in
16688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16689 *) ac_try_echo=$ac_try;;
16690 esac
16691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16693 ac_status=$?
16694 grep -v '^ *+' conftest.er1 >conftest.err
16695 rm -f conftest.er1
16696 cat conftest.err >&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); } >/dev/null; then
16699 if test -s conftest.err; then
16700 ac_cpp_err=$ac_c_preproc_warn_flag
16701 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16702 else
16703 ac_cpp_err=
16705 else
16706 ac_cpp_err=yes
16708 if test -z "$ac_cpp_err"; then
16709 ac_header_preproc=yes
16710 else
16711 echo "$as_me: failed program was:" >&5
16712 sed 's/^/| /' conftest.$ac_ext >&5
16714 ac_header_preproc=no
16717 rm -f conftest.err conftest.$ac_ext
16718 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16719 echo "${ECHO_T}$ac_header_preproc" >&6; }
16721 # So? What about this header?
16722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16723 yes:no: )
16724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16727 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16728 ac_header_preproc=yes
16730 no:yes:* )
16731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16734 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16736 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16738 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16742 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16743 ( cat <<\_ASBOX
16744 ## ----------------------------------- ##
16745 ## Report this to llvmbugs@cs.uiuc.edu ##
16746 ## ----------------------------------- ##
16747 _ASBOX
16748 ) | sed "s/^/$as_me: WARNING: /" >&2
16750 esac
16751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16755 else
16756 eval "$as_ac_Header=\$ac_header_preproc"
16758 ac_res=`eval echo '${'$as_ac_Header'}'`
16759 { echo "$as_me:$LINENO: result: $ac_res" >&5
16760 echo "${ECHO_T}$ac_res" >&6; }
16763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16764 cat >>confdefs.h <<_ACEOF
16765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16766 _ACEOF
16767 HAVE_PTHREAD=1
16769 else
16770 HAVE_PTHREAD=0
16774 done
16776 else
16777 HAVE_PTHREAD=0
16781 if test "$llvm_cv_enable_libffi" = "yes" ; then
16784 for ac_header in ffi.h ffi/ffi.h
16786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16791 echo $ECHO_N "(cached) $ECHO_C" >&6
16793 ac_res=`eval echo '${'$as_ac_Header'}'`
16794 { echo "$as_me:$LINENO: result: $ac_res" >&5
16795 echo "${ECHO_T}$ac_res" >&6; }
16796 else
16797 # Is the header compilable?
16798 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16800 cat >conftest.$ac_ext <<_ACEOF
16801 /* confdefs.h. */
16802 _ACEOF
16803 cat confdefs.h >>conftest.$ac_ext
16804 cat >>conftest.$ac_ext <<_ACEOF
16805 /* end confdefs.h. */
16806 $ac_includes_default
16807 #include <$ac_header>
16808 _ACEOF
16809 rm -f conftest.$ac_objext
16810 if { (ac_try="$ac_compile"
16811 case "(($ac_try" in
16812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16813 *) ac_try_echo=$ac_try;;
16814 esac
16815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16816 (eval "$ac_compile") 2>conftest.er1
16817 ac_status=$?
16818 grep -v '^ *+' conftest.er1 >conftest.err
16819 rm -f conftest.er1
16820 cat conftest.err >&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } &&
16823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16824 { (case "(($ac_try" in
16825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16826 *) ac_try_echo=$ac_try;;
16827 esac
16828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16829 (eval "$ac_try") 2>&5
16830 ac_status=$?
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; } &&
16833 { ac_try='test -s conftest.$ac_objext'
16834 { (case "(($ac_try" in
16835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16836 *) ac_try_echo=$ac_try;;
16837 esac
16838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16839 (eval "$ac_try") 2>&5
16840 ac_status=$?
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; }; then
16843 ac_header_compiler=yes
16844 else
16845 echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16848 ac_header_compiler=no
16851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16853 echo "${ECHO_T}$ac_header_compiler" >&6; }
16855 # Is the header present?
16856 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16858 cat >conftest.$ac_ext <<_ACEOF
16859 /* confdefs.h. */
16860 _ACEOF
16861 cat confdefs.h >>conftest.$ac_ext
16862 cat >>conftest.$ac_ext <<_ACEOF
16863 /* end confdefs.h. */
16864 #include <$ac_header>
16865 _ACEOF
16866 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
16873 ac_status=$?
16874 grep -v '^ *+' conftest.er1 >conftest.err
16875 rm -f conftest.er1
16876 cat conftest.err >&5
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); } >/dev/null; then
16879 if test -s conftest.err; then
16880 ac_cpp_err=$ac_c_preproc_warn_flag
16881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16882 else
16883 ac_cpp_err=
16885 else
16886 ac_cpp_err=yes
16888 if test -z "$ac_cpp_err"; then
16889 ac_header_preproc=yes
16890 else
16891 echo "$as_me: failed program was:" >&5
16892 sed 's/^/| /' conftest.$ac_ext >&5
16894 ac_header_preproc=no
16897 rm -f conftest.err conftest.$ac_ext
16898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16899 echo "${ECHO_T}$ac_header_preproc" >&6; }
16901 # So? What about this header?
16902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16903 yes:no: )
16904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16908 ac_header_preproc=yes
16910 no:yes:* )
16911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16916 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16918 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16922 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16923 ( cat <<\_ASBOX
16924 ## ----------------------------------- ##
16925 ## Report this to llvmbugs@cs.uiuc.edu ##
16926 ## ----------------------------------- ##
16927 _ASBOX
16928 ) | sed "s/^/$as_me: WARNING: /" >&2
16930 esac
16931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16935 else
16936 eval "$as_ac_Header=\$ac_header_preproc"
16938 ac_res=`eval echo '${'$as_ac_Header'}'`
16939 { echo "$as_me:$LINENO: result: $ac_res" >&5
16940 echo "${ECHO_T}$ac_res" >&6; }
16943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16944 cat >>confdefs.h <<_ACEOF
16945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16946 _ACEOF
16950 done
16955 for ac_header in CrashReporterClient.h
16957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16962 echo $ECHO_N "(cached) $ECHO_C" >&6
16964 ac_res=`eval echo '${'$as_ac_Header'}'`
16965 { echo "$as_me:$LINENO: result: $ac_res" >&5
16966 echo "${ECHO_T}$ac_res" >&6; }
16967 else
16968 # Is the header compilable?
16969 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16971 cat >conftest.$ac_ext <<_ACEOF
16972 /* confdefs.h. */
16973 _ACEOF
16974 cat confdefs.h >>conftest.$ac_ext
16975 cat >>conftest.$ac_ext <<_ACEOF
16976 /* end confdefs.h. */
16977 $ac_includes_default
16978 #include <$ac_header>
16979 _ACEOF
16980 rm -f conftest.$ac_objext
16981 if { (ac_try="$ac_compile"
16982 case "(($ac_try" in
16983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16985 esac
16986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987 (eval "$ac_compile") 2>conftest.er1
16988 ac_status=$?
16989 grep -v '^ *+' conftest.er1 >conftest.err
16990 rm -f conftest.er1
16991 cat conftest.err >&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); } &&
16994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16995 { (case "(($ac_try" in
16996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997 *) ac_try_echo=$ac_try;;
16998 esac
16999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000 (eval "$ac_try") 2>&5
17001 ac_status=$?
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }; } &&
17004 { ac_try='test -s conftest.$ac_objext'
17005 { (case "(($ac_try" in
17006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007 *) ac_try_echo=$ac_try;;
17008 esac
17009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010 (eval "$ac_try") 2>&5
17011 ac_status=$?
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); }; }; then
17014 ac_header_compiler=yes
17015 else
17016 echo "$as_me: failed program was:" >&5
17017 sed 's/^/| /' conftest.$ac_ext >&5
17019 ac_header_compiler=no
17022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17023 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17024 echo "${ECHO_T}$ac_header_compiler" >&6; }
17026 # Is the header present?
17027 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17029 cat >conftest.$ac_ext <<_ACEOF
17030 /* confdefs.h. */
17031 _ACEOF
17032 cat confdefs.h >>conftest.$ac_ext
17033 cat >>conftest.$ac_ext <<_ACEOF
17034 /* end confdefs.h. */
17035 #include <$ac_header>
17036 _ACEOF
17037 if { (ac_try="$ac_cpp conftest.$ac_ext"
17038 case "(($ac_try" in
17039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040 *) ac_try_echo=$ac_try;;
17041 esac
17042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17044 ac_status=$?
17045 grep -v '^ *+' conftest.er1 >conftest.err
17046 rm -f conftest.er1
17047 cat conftest.err >&5
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); } >/dev/null; then
17050 if test -s conftest.err; then
17051 ac_cpp_err=$ac_c_preproc_warn_flag
17052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17053 else
17054 ac_cpp_err=
17056 else
17057 ac_cpp_err=yes
17059 if test -z "$ac_cpp_err"; then
17060 ac_header_preproc=yes
17061 else
17062 echo "$as_me: failed program was:" >&5
17063 sed 's/^/| /' conftest.$ac_ext >&5
17065 ac_header_preproc=no
17068 rm -f conftest.err conftest.$ac_ext
17069 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17070 echo "${ECHO_T}$ac_header_preproc" >&6; }
17072 # So? What about this header?
17073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17074 yes:no: )
17075 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17078 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17079 ac_header_preproc=yes
17081 no:yes:* )
17082 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17083 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17084 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17085 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17086 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17087 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17088 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17089 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17091 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17092 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17093 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17094 ( cat <<\_ASBOX
17095 ## ----------------------------------- ##
17096 ## Report this to llvmbugs@cs.uiuc.edu ##
17097 ## ----------------------------------- ##
17098 _ASBOX
17099 ) | sed "s/^/$as_me: WARNING: /" >&2
17101 esac
17102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17105 echo $ECHO_N "(cached) $ECHO_C" >&6
17106 else
17107 eval "$as_ac_Header=\$ac_header_preproc"
17109 ac_res=`eval echo '${'$as_ac_Header'}'`
17110 { echo "$as_me:$LINENO: result: $ac_res" >&5
17111 echo "${ECHO_T}$ac_res" >&6; }
17114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17115 cat >>confdefs.h <<_ACEOF
17116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17117 _ACEOF
17121 done
17127 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17128 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17129 if test "${ac_cv_huge_val_sanity+set}" = set; then
17130 echo $ECHO_N "(cached) $ECHO_C" >&6
17131 else
17133 ac_ext=cpp
17134 ac_cpp='$CXXCPP $CPPFLAGS'
17135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17139 ac_save_CXXFLAGS=$CXXFLAGS
17140 CXXFLAGS=-pedantic
17141 if test "$cross_compiling" = yes; then
17142 ac_cv_huge_val_sanity=yes
17143 else
17144 cat >conftest.$ac_ext <<_ACEOF
17145 /* confdefs.h. */
17146 _ACEOF
17147 cat confdefs.h >>conftest.$ac_ext
17148 cat >>conftest.$ac_ext <<_ACEOF
17149 /* end confdefs.h. */
17150 #include <math.h>
17152 main ()
17154 double x = HUGE_VAL; return x != x;
17156 return 0;
17158 _ACEOF
17159 rm -f conftest$ac_exeext
17160 if { (ac_try="$ac_link"
17161 case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17164 esac
17165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_link") 2>&5
17167 ac_status=$?
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17170 { (case "(($ac_try" in
17171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17172 *) ac_try_echo=$ac_try;;
17173 esac
17174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17175 (eval "$ac_try") 2>&5
17176 ac_status=$?
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); }; }; then
17179 ac_cv_huge_val_sanity=yes
17180 else
17181 echo "$as_me: program exited with status $ac_status" >&5
17182 echo "$as_me: failed program was:" >&5
17183 sed 's/^/| /' conftest.$ac_ext >&5
17185 ( exit $ac_status )
17186 ac_cv_huge_val_sanity=no
17188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17192 CXXFLAGS=$ac_save_CXXFLAGS
17193 ac_ext=c
17194 ac_cpp='$CPP $CPPFLAGS'
17195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17201 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17202 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17203 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17206 { echo "$as_me:$LINENO: checking for pid_t" >&5
17207 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17208 if test "${ac_cv_type_pid_t+set}" = set; then
17209 echo $ECHO_N "(cached) $ECHO_C" >&6
17210 else
17211 cat >conftest.$ac_ext <<_ACEOF
17212 /* confdefs.h. */
17213 _ACEOF
17214 cat confdefs.h >>conftest.$ac_ext
17215 cat >>conftest.$ac_ext <<_ACEOF
17216 /* end confdefs.h. */
17217 $ac_includes_default
17218 typedef pid_t ac__type_new_;
17220 main ()
17222 if ((ac__type_new_ *) 0)
17223 return 0;
17224 if (sizeof (ac__type_new_))
17225 return 0;
17227 return 0;
17229 _ACEOF
17230 rm -f conftest.$ac_objext
17231 if { (ac_try="$ac_compile"
17232 case "(($ac_try" in
17233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234 *) ac_try_echo=$ac_try;;
17235 esac
17236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17237 (eval "$ac_compile") 2>conftest.er1
17238 ac_status=$?
17239 grep -v '^ *+' conftest.er1 >conftest.err
17240 rm -f conftest.er1
17241 cat conftest.err >&5
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); } &&
17244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17245 { (case "(($ac_try" in
17246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17247 *) ac_try_echo=$ac_try;;
17248 esac
17249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17250 (eval "$ac_try") 2>&5
17251 ac_status=$?
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); }; } &&
17254 { ac_try='test -s conftest.$ac_objext'
17255 { (case "(($ac_try" in
17256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17257 *) ac_try_echo=$ac_try;;
17258 esac
17259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17260 (eval "$ac_try") 2>&5
17261 ac_status=$?
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }; }; then
17264 ac_cv_type_pid_t=yes
17265 else
17266 echo "$as_me: failed program was:" >&5
17267 sed 's/^/| /' conftest.$ac_ext >&5
17269 ac_cv_type_pid_t=no
17272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17274 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17275 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17276 if test $ac_cv_type_pid_t = yes; then
17278 else
17280 cat >>confdefs.h <<_ACEOF
17281 #define pid_t int
17282 _ACEOF
17286 { echo "$as_me:$LINENO: checking for size_t" >&5
17287 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17288 if test "${ac_cv_type_size_t+set}" = set; then
17289 echo $ECHO_N "(cached) $ECHO_C" >&6
17290 else
17291 cat >conftest.$ac_ext <<_ACEOF
17292 /* confdefs.h. */
17293 _ACEOF
17294 cat confdefs.h >>conftest.$ac_ext
17295 cat >>conftest.$ac_ext <<_ACEOF
17296 /* end confdefs.h. */
17297 $ac_includes_default
17298 typedef size_t ac__type_new_;
17300 main ()
17302 if ((ac__type_new_ *) 0)
17303 return 0;
17304 if (sizeof (ac__type_new_))
17305 return 0;
17307 return 0;
17309 _ACEOF
17310 rm -f conftest.$ac_objext
17311 if { (ac_try="$ac_compile"
17312 case "(($ac_try" in
17313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314 *) ac_try_echo=$ac_try;;
17315 esac
17316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317 (eval "$ac_compile") 2>conftest.er1
17318 ac_status=$?
17319 grep -v '^ *+' conftest.er1 >conftest.err
17320 rm -f conftest.er1
17321 cat conftest.err >&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } &&
17324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17325 { (case "(($ac_try" in
17326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17327 *) ac_try_echo=$ac_try;;
17328 esac
17329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17330 (eval "$ac_try") 2>&5
17331 ac_status=$?
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); }; } &&
17334 { ac_try='test -s conftest.$ac_objext'
17335 { (case "(($ac_try" in
17336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337 *) ac_try_echo=$ac_try;;
17338 esac
17339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340 (eval "$ac_try") 2>&5
17341 ac_status=$?
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; }; then
17344 ac_cv_type_size_t=yes
17345 else
17346 echo "$as_me: failed program was:" >&5
17347 sed 's/^/| /' conftest.$ac_ext >&5
17349 ac_cv_type_size_t=no
17352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17354 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17355 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17356 if test $ac_cv_type_size_t = yes; then
17358 else
17360 cat >>confdefs.h <<_ACEOF
17361 #define size_t unsigned int
17362 _ACEOF
17367 cat >>confdefs.h <<_ACEOF
17368 #define RETSIGTYPE void
17369 _ACEOF
17371 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17372 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17373 if test "${ac_cv_struct_tm+set}" = set; then
17374 echo $ECHO_N "(cached) $ECHO_C" >&6
17375 else
17376 cat >conftest.$ac_ext <<_ACEOF
17377 /* confdefs.h. */
17378 _ACEOF
17379 cat confdefs.h >>conftest.$ac_ext
17380 cat >>conftest.$ac_ext <<_ACEOF
17381 /* end confdefs.h. */
17382 #include <sys/types.h>
17383 #include <time.h>
17386 main ()
17388 struct tm *tp; tp->tm_sec;
17390 return 0;
17392 _ACEOF
17393 rm -f conftest.$ac_objext
17394 if { (ac_try="$ac_compile"
17395 case "(($ac_try" in
17396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17397 *) ac_try_echo=$ac_try;;
17398 esac
17399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17400 (eval "$ac_compile") 2>conftest.er1
17401 ac_status=$?
17402 grep -v '^ *+' conftest.er1 >conftest.err
17403 rm -f conftest.er1
17404 cat conftest.err >&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); } &&
17407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17408 { (case "(($ac_try" in
17409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410 *) ac_try_echo=$ac_try;;
17411 esac
17412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17413 (eval "$ac_try") 2>&5
17414 ac_status=$?
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); }; } &&
17417 { ac_try='test -s conftest.$ac_objext'
17418 { (case "(($ac_try" in
17419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420 *) ac_try_echo=$ac_try;;
17421 esac
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423 (eval "$ac_try") 2>&5
17424 ac_status=$?
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); }; }; then
17427 ac_cv_struct_tm=time.h
17428 else
17429 echo "$as_me: failed program was:" >&5
17430 sed 's/^/| /' conftest.$ac_ext >&5
17432 ac_cv_struct_tm=sys/time.h
17435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17437 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17438 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17439 if test $ac_cv_struct_tm = sys/time.h; then
17441 cat >>confdefs.h <<\_ACEOF
17442 #define TM_IN_SYS_TIME 1
17443 _ACEOF
17447 { echo "$as_me:$LINENO: checking for int64_t" >&5
17448 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17449 if test "${ac_cv_type_int64_t+set}" = set; then
17450 echo $ECHO_N "(cached) $ECHO_C" >&6
17451 else
17452 cat >conftest.$ac_ext <<_ACEOF
17453 /* confdefs.h. */
17454 _ACEOF
17455 cat confdefs.h >>conftest.$ac_ext
17456 cat >>conftest.$ac_ext <<_ACEOF
17457 /* end confdefs.h. */
17458 $ac_includes_default
17459 typedef int64_t ac__type_new_;
17461 main ()
17463 if ((ac__type_new_ *) 0)
17464 return 0;
17465 if (sizeof (ac__type_new_))
17466 return 0;
17468 return 0;
17470 _ACEOF
17471 rm -f conftest.$ac_objext
17472 if { (ac_try="$ac_compile"
17473 case "(($ac_try" in
17474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17475 *) ac_try_echo=$ac_try;;
17476 esac
17477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17478 (eval "$ac_compile") 2>conftest.er1
17479 ac_status=$?
17480 grep -v '^ *+' conftest.er1 >conftest.err
17481 rm -f conftest.er1
17482 cat conftest.err >&5
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); } &&
17485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17486 { (case "(($ac_try" in
17487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17488 *) ac_try_echo=$ac_try;;
17489 esac
17490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17491 (eval "$ac_try") 2>&5
17492 ac_status=$?
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); }; } &&
17495 { ac_try='test -s conftest.$ac_objext'
17496 { (case "(($ac_try" in
17497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17498 *) ac_try_echo=$ac_try;;
17499 esac
17500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17501 (eval "$ac_try") 2>&5
17502 ac_status=$?
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); }; }; then
17505 ac_cv_type_int64_t=yes
17506 else
17507 echo "$as_me: failed program was:" >&5
17508 sed 's/^/| /' conftest.$ac_ext >&5
17510 ac_cv_type_int64_t=no
17513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17515 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17516 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17517 if test $ac_cv_type_int64_t = yes; then
17519 cat >>confdefs.h <<_ACEOF
17520 #define HAVE_INT64_T 1
17521 _ACEOF
17524 else
17525 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17526 echo "$as_me: error: Type int64_t required but not found" >&2;}
17527 { (exit 1); exit 1; }; }
17530 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17531 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17532 if test "${ac_cv_type_uint64_t+set}" = set; then
17533 echo $ECHO_N "(cached) $ECHO_C" >&6
17534 else
17535 cat >conftest.$ac_ext <<_ACEOF
17536 /* confdefs.h. */
17537 _ACEOF
17538 cat confdefs.h >>conftest.$ac_ext
17539 cat >>conftest.$ac_ext <<_ACEOF
17540 /* end confdefs.h. */
17541 $ac_includes_default
17542 typedef uint64_t ac__type_new_;
17544 main ()
17546 if ((ac__type_new_ *) 0)
17547 return 0;
17548 if (sizeof (ac__type_new_))
17549 return 0;
17551 return 0;
17553 _ACEOF
17554 rm -f conftest.$ac_objext
17555 if { (ac_try="$ac_compile"
17556 case "(($ac_try" in
17557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17558 *) ac_try_echo=$ac_try;;
17559 esac
17560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17561 (eval "$ac_compile") 2>conftest.er1
17562 ac_status=$?
17563 grep -v '^ *+' conftest.er1 >conftest.err
17564 rm -f conftest.er1
17565 cat conftest.err >&5
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); } &&
17568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17569 { (case "(($ac_try" in
17570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17571 *) ac_try_echo=$ac_try;;
17572 esac
17573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17574 (eval "$ac_try") 2>&5
17575 ac_status=$?
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); }; } &&
17578 { ac_try='test -s conftest.$ac_objext'
17579 { (case "(($ac_try" in
17580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581 *) ac_try_echo=$ac_try;;
17582 esac
17583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584 (eval "$ac_try") 2>&5
17585 ac_status=$?
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; }; then
17588 ac_cv_type_uint64_t=yes
17589 else
17590 echo "$as_me: failed program was:" >&5
17591 sed 's/^/| /' conftest.$ac_ext >&5
17593 ac_cv_type_uint64_t=no
17596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17598 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17599 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17600 if test $ac_cv_type_uint64_t = yes; then
17602 cat >>confdefs.h <<_ACEOF
17603 #define HAVE_UINT64_T 1
17604 _ACEOF
17607 else
17608 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17609 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17610 if test "${ac_cv_type_u_int64_t+set}" = set; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
17612 else
17613 cat >conftest.$ac_ext <<_ACEOF
17614 /* confdefs.h. */
17615 _ACEOF
17616 cat confdefs.h >>conftest.$ac_ext
17617 cat >>conftest.$ac_ext <<_ACEOF
17618 /* end confdefs.h. */
17619 $ac_includes_default
17620 typedef u_int64_t ac__type_new_;
17622 main ()
17624 if ((ac__type_new_ *) 0)
17625 return 0;
17626 if (sizeof (ac__type_new_))
17627 return 0;
17629 return 0;
17631 _ACEOF
17632 rm -f conftest.$ac_objext
17633 if { (ac_try="$ac_compile"
17634 case "(($ac_try" in
17635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636 *) ac_try_echo=$ac_try;;
17637 esac
17638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17639 (eval "$ac_compile") 2>conftest.er1
17640 ac_status=$?
17641 grep -v '^ *+' conftest.er1 >conftest.err
17642 rm -f conftest.er1
17643 cat conftest.err >&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } &&
17646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17647 { (case "(($ac_try" in
17648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649 *) ac_try_echo=$ac_try;;
17650 esac
17651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17652 (eval "$ac_try") 2>&5
17653 ac_status=$?
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; } &&
17656 { ac_try='test -s conftest.$ac_objext'
17657 { (case "(($ac_try" in
17658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659 *) ac_try_echo=$ac_try;;
17660 esac
17661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662 (eval "$ac_try") 2>&5
17663 ac_status=$?
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; }; then
17666 ac_cv_type_u_int64_t=yes
17667 else
17668 echo "$as_me: failed program was:" >&5
17669 sed 's/^/| /' conftest.$ac_ext >&5
17671 ac_cv_type_u_int64_t=no
17674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17676 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17677 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17678 if test $ac_cv_type_u_int64_t = yes; then
17680 cat >>confdefs.h <<_ACEOF
17681 #define HAVE_U_INT64_T 1
17682 _ACEOF
17685 else
17686 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17687 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17688 { (exit 1); exit 1; }; }
17702 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17705 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17707 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17708 echo $ECHO_N "(cached) $ECHO_C" >&6
17709 else
17710 cat >conftest.$ac_ext <<_ACEOF
17711 /* confdefs.h. */
17712 _ACEOF
17713 cat confdefs.h >>conftest.$ac_ext
17714 cat >>conftest.$ac_ext <<_ACEOF
17715 /* end confdefs.h. */
17716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17718 #define $ac_func innocuous_$ac_func
17720 /* System header to define __stub macros and hopefully few prototypes,
17721 which can conflict with char $ac_func (); below.
17722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17723 <limits.h> exists even on freestanding compilers. */
17725 #ifdef __STDC__
17726 # include <limits.h>
17727 #else
17728 # include <assert.h>
17729 #endif
17731 #undef $ac_func
17733 /* Override any GCC internal prototype to avoid an error.
17734 Use char because int might match the return type of a GCC
17735 builtin and then its argument prototype would still apply. */
17736 #ifdef __cplusplus
17737 extern "C"
17738 #endif
17739 char $ac_func ();
17740 /* The GNU C library defines this for functions which it implements
17741 to always fail with ENOSYS. Some functions are actually named
17742 something starting with __ and the normal name is an alias. */
17743 #if defined __stub_$ac_func || defined __stub___$ac_func
17744 choke me
17745 #endif
17748 main ()
17750 return $ac_func ();
17752 return 0;
17754 _ACEOF
17755 rm -f conftest.$ac_objext conftest$ac_exeext
17756 if { (ac_try="$ac_link"
17757 case "(($ac_try" in
17758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759 *) ac_try_echo=$ac_try;;
17760 esac
17761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762 (eval "$ac_link") 2>conftest.er1
17763 ac_status=$?
17764 grep -v '^ *+' conftest.er1 >conftest.err
17765 rm -f conftest.er1
17766 cat conftest.err >&5
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); } &&
17769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17770 { (case "(($ac_try" in
17771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772 *) ac_try_echo=$ac_try;;
17773 esac
17774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17775 (eval "$ac_try") 2>&5
17776 ac_status=$?
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); }; } &&
17779 { ac_try='test -s conftest$ac_exeext'
17780 { (case "(($ac_try" in
17781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17782 *) ac_try_echo=$ac_try;;
17783 esac
17784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17785 (eval "$ac_try") 2>&5
17786 ac_status=$?
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; }; then
17789 eval "$as_ac_var=yes"
17790 else
17791 echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.$ac_ext >&5
17794 eval "$as_ac_var=no"
17797 rm -f core conftest.err conftest.$ac_objext \
17798 conftest$ac_exeext conftest.$ac_ext
17800 ac_res=`eval echo '${'$as_ac_var'}'`
17801 { echo "$as_me:$LINENO: result: $ac_res" >&5
17802 echo "${ECHO_T}$ac_res" >&6; }
17803 if test `eval echo '${'$as_ac_var'}'` = yes; then
17804 cat >>confdefs.h <<_ACEOF
17805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17806 _ACEOF
17809 done
17815 for ac_func in powf fmodf strtof round
17817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17818 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17820 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17821 echo $ECHO_N "(cached) $ECHO_C" >&6
17822 else
17823 cat >conftest.$ac_ext <<_ACEOF
17824 /* confdefs.h. */
17825 _ACEOF
17826 cat confdefs.h >>conftest.$ac_ext
17827 cat >>conftest.$ac_ext <<_ACEOF
17828 /* end confdefs.h. */
17829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17831 #define $ac_func innocuous_$ac_func
17833 /* System header to define __stub macros and hopefully few prototypes,
17834 which can conflict with char $ac_func (); below.
17835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17836 <limits.h> exists even on freestanding compilers. */
17838 #ifdef __STDC__
17839 # include <limits.h>
17840 #else
17841 # include <assert.h>
17842 #endif
17844 #undef $ac_func
17846 /* Override any GCC internal prototype to avoid an error.
17847 Use char because int might match the return type of a GCC
17848 builtin and then its argument prototype would still apply. */
17849 #ifdef __cplusplus
17850 extern "C"
17851 #endif
17852 char $ac_func ();
17853 /* The GNU C library defines this for functions which it implements
17854 to always fail with ENOSYS. Some functions are actually named
17855 something starting with __ and the normal name is an alias. */
17856 #if defined __stub_$ac_func || defined __stub___$ac_func
17857 choke me
17858 #endif
17861 main ()
17863 return $ac_func ();
17865 return 0;
17867 _ACEOF
17868 rm -f conftest.$ac_objext conftest$ac_exeext
17869 if { (ac_try="$ac_link"
17870 case "(($ac_try" in
17871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17872 *) ac_try_echo=$ac_try;;
17873 esac
17874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17875 (eval "$ac_link") 2>conftest.er1
17876 ac_status=$?
17877 grep -v '^ *+' conftest.er1 >conftest.err
17878 rm -f conftest.er1
17879 cat conftest.err >&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); } &&
17882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17892 { ac_try='test -s conftest$ac_exeext'
17893 { (case "(($ac_try" in
17894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17895 *) ac_try_echo=$ac_try;;
17896 esac
17897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17898 (eval "$ac_try") 2>&5
17899 ac_status=$?
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; }; then
17902 eval "$as_ac_var=yes"
17903 else
17904 echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17907 eval "$as_ac_var=no"
17910 rm -f core conftest.err conftest.$ac_objext \
17911 conftest$ac_exeext conftest.$ac_ext
17913 ac_res=`eval echo '${'$as_ac_var'}'`
17914 { echo "$as_me:$LINENO: result: $ac_res" >&5
17915 echo "${ECHO_T}$ac_res" >&6; }
17916 if test `eval echo '${'$as_ac_var'}'` = yes; then
17917 cat >>confdefs.h <<_ACEOF
17918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17919 _ACEOF
17922 done
17929 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17932 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17934 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17935 echo $ECHO_N "(cached) $ECHO_C" >&6
17936 else
17937 cat >conftest.$ac_ext <<_ACEOF
17938 /* confdefs.h. */
17939 _ACEOF
17940 cat confdefs.h >>conftest.$ac_ext
17941 cat >>conftest.$ac_ext <<_ACEOF
17942 /* end confdefs.h. */
17943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17945 #define $ac_func innocuous_$ac_func
17947 /* System header to define __stub macros and hopefully few prototypes,
17948 which can conflict with char $ac_func (); below.
17949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17950 <limits.h> exists even on freestanding compilers. */
17952 #ifdef __STDC__
17953 # include <limits.h>
17954 #else
17955 # include <assert.h>
17956 #endif
17958 #undef $ac_func
17960 /* Override any GCC internal prototype to avoid an error.
17961 Use char because int might match the return type of a GCC
17962 builtin and then its argument prototype would still apply. */
17963 #ifdef __cplusplus
17964 extern "C"
17965 #endif
17966 char $ac_func ();
17967 /* The GNU C library defines this for functions which it implements
17968 to always fail with ENOSYS. Some functions are actually named
17969 something starting with __ and the normal name is an alias. */
17970 #if defined __stub_$ac_func || defined __stub___$ac_func
17971 choke me
17972 #endif
17975 main ()
17977 return $ac_func ();
17979 return 0;
17981 _ACEOF
17982 rm -f conftest.$ac_objext conftest$ac_exeext
17983 if { (ac_try="$ac_link"
17984 case "(($ac_try" in
17985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17986 *) ac_try_echo=$ac_try;;
17987 esac
17988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17989 (eval "$ac_link") 2>conftest.er1
17990 ac_status=$?
17991 grep -v '^ *+' conftest.er1 >conftest.err
17992 rm -f conftest.er1
17993 cat conftest.err >&5
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); } &&
17996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17997 { (case "(($ac_try" in
17998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17999 *) ac_try_echo=$ac_try;;
18000 esac
18001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18002 (eval "$ac_try") 2>&5
18003 ac_status=$?
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); }; } &&
18006 { ac_try='test -s conftest$ac_exeext'
18007 { (case "(($ac_try" in
18008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18009 *) ac_try_echo=$ac_try;;
18010 esac
18011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18012 (eval "$ac_try") 2>&5
18013 ac_status=$?
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; }; then
18016 eval "$as_ac_var=yes"
18017 else
18018 echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18021 eval "$as_ac_var=no"
18024 rm -f core conftest.err conftest.$ac_objext \
18025 conftest$ac_exeext conftest.$ac_ext
18027 ac_res=`eval echo '${'$as_ac_var'}'`
18028 { echo "$as_me:$LINENO: result: $ac_res" >&5
18029 echo "${ECHO_T}$ac_res" >&6; }
18030 if test `eval echo '${'$as_ac_var'}'` = yes; then
18031 cat >>confdefs.h <<_ACEOF
18032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18033 _ACEOF
18036 done
18041 for ac_func in isatty mkdtemp mkstemp
18043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18047 echo $ECHO_N "(cached) $ECHO_C" >&6
18048 else
18049 cat >conftest.$ac_ext <<_ACEOF
18050 /* confdefs.h. */
18051 _ACEOF
18052 cat confdefs.h >>conftest.$ac_ext
18053 cat >>conftest.$ac_ext <<_ACEOF
18054 /* end confdefs.h. */
18055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18057 #define $ac_func innocuous_$ac_func
18059 /* System header to define __stub macros and hopefully few prototypes,
18060 which can conflict with char $ac_func (); below.
18061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18062 <limits.h> exists even on freestanding compilers. */
18064 #ifdef __STDC__
18065 # include <limits.h>
18066 #else
18067 # include <assert.h>
18068 #endif
18070 #undef $ac_func
18072 /* Override any GCC internal prototype to avoid an error.
18073 Use char because int might match the return type of a GCC
18074 builtin and then its argument prototype would still apply. */
18075 #ifdef __cplusplus
18076 extern "C"
18077 #endif
18078 char $ac_func ();
18079 /* The GNU C library defines this for functions which it implements
18080 to always fail with ENOSYS. Some functions are actually named
18081 something starting with __ and the normal name is an alias. */
18082 #if defined __stub_$ac_func || defined __stub___$ac_func
18083 choke me
18084 #endif
18087 main ()
18089 return $ac_func ();
18091 return 0;
18093 _ACEOF
18094 rm -f conftest.$ac_objext conftest$ac_exeext
18095 if { (ac_try="$ac_link"
18096 case "(($ac_try" in
18097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18098 *) ac_try_echo=$ac_try;;
18099 esac
18100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18101 (eval "$ac_link") 2>conftest.er1
18102 ac_status=$?
18103 grep -v '^ *+' conftest.er1 >conftest.err
18104 rm -f conftest.er1
18105 cat conftest.err >&5
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); } &&
18108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18109 { (case "(($ac_try" in
18110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18111 *) ac_try_echo=$ac_try;;
18112 esac
18113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18114 (eval "$ac_try") 2>&5
18115 ac_status=$?
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; } &&
18118 { ac_try='test -s conftest$ac_exeext'
18119 { (case "(($ac_try" in
18120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121 *) ac_try_echo=$ac_try;;
18122 esac
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124 (eval "$ac_try") 2>&5
18125 ac_status=$?
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; }; then
18128 eval "$as_ac_var=yes"
18129 else
18130 echo "$as_me: failed program was:" >&5
18131 sed 's/^/| /' conftest.$ac_ext >&5
18133 eval "$as_ac_var=no"
18136 rm -f core conftest.err conftest.$ac_objext \
18137 conftest$ac_exeext conftest.$ac_ext
18139 ac_res=`eval echo '${'$as_ac_var'}'`
18140 { echo "$as_me:$LINENO: result: $ac_res" >&5
18141 echo "${ECHO_T}$ac_res" >&6; }
18142 if test `eval echo '${'$as_ac_var'}'` = yes; then
18143 cat >>confdefs.h <<_ACEOF
18144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18145 _ACEOF
18148 done
18156 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18159 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18161 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18162 echo $ECHO_N "(cached) $ECHO_C" >&6
18163 else
18164 cat >conftest.$ac_ext <<_ACEOF
18165 /* confdefs.h. */
18166 _ACEOF
18167 cat confdefs.h >>conftest.$ac_ext
18168 cat >>conftest.$ac_ext <<_ACEOF
18169 /* end confdefs.h. */
18170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18172 #define $ac_func innocuous_$ac_func
18174 /* System header to define __stub macros and hopefully few prototypes,
18175 which can conflict with char $ac_func (); below.
18176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18177 <limits.h> exists even on freestanding compilers. */
18179 #ifdef __STDC__
18180 # include <limits.h>
18181 #else
18182 # include <assert.h>
18183 #endif
18185 #undef $ac_func
18187 /* Override any GCC internal prototype to avoid an error.
18188 Use char because int might match the return type of a GCC
18189 builtin and then its argument prototype would still apply. */
18190 #ifdef __cplusplus
18191 extern "C"
18192 #endif
18193 char $ac_func ();
18194 /* The GNU C library defines this for functions which it implements
18195 to always fail with ENOSYS. Some functions are actually named
18196 something starting with __ and the normal name is an alias. */
18197 #if defined __stub_$ac_func || defined __stub___$ac_func
18198 choke me
18199 #endif
18202 main ()
18204 return $ac_func ();
18206 return 0;
18208 _ACEOF
18209 rm -f conftest.$ac_objext conftest$ac_exeext
18210 if { (ac_try="$ac_link"
18211 case "(($ac_try" in
18212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18213 *) ac_try_echo=$ac_try;;
18214 esac
18215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18216 (eval "$ac_link") 2>conftest.er1
18217 ac_status=$?
18218 grep -v '^ *+' conftest.er1 >conftest.err
18219 rm -f conftest.er1
18220 cat conftest.err >&5
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); } &&
18223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18224 { (case "(($ac_try" in
18225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18226 *) ac_try_echo=$ac_try;;
18227 esac
18228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18229 (eval "$ac_try") 2>&5
18230 ac_status=$?
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); }; } &&
18233 { ac_try='test -s conftest$ac_exeext'
18234 { (case "(($ac_try" in
18235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18236 *) ac_try_echo=$ac_try;;
18237 esac
18238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18239 (eval "$ac_try") 2>&5
18240 ac_status=$?
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; }; then
18243 eval "$as_ac_var=yes"
18244 else
18245 echo "$as_me: failed program was:" >&5
18246 sed 's/^/| /' conftest.$ac_ext >&5
18248 eval "$as_ac_var=no"
18251 rm -f core conftest.err conftest.$ac_objext \
18252 conftest$ac_exeext conftest.$ac_ext
18254 ac_res=`eval echo '${'$as_ac_var'}'`
18255 { echo "$as_me:$LINENO: result: $ac_res" >&5
18256 echo "${ECHO_T}$ac_res" >&6; }
18257 if test `eval echo '${'$as_ac_var'}'` = yes; then
18258 cat >>confdefs.h <<_ACEOF
18259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18260 _ACEOF
18263 done
18269 for ac_func in strerror strerror_r strerror_s setenv
18271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18272 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18274 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18275 echo $ECHO_N "(cached) $ECHO_C" >&6
18276 else
18277 cat >conftest.$ac_ext <<_ACEOF
18278 /* confdefs.h. */
18279 _ACEOF
18280 cat confdefs.h >>conftest.$ac_ext
18281 cat >>conftest.$ac_ext <<_ACEOF
18282 /* end confdefs.h. */
18283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18285 #define $ac_func innocuous_$ac_func
18287 /* System header to define __stub macros and hopefully few prototypes,
18288 which can conflict with char $ac_func (); below.
18289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18290 <limits.h> exists even on freestanding compilers. */
18292 #ifdef __STDC__
18293 # include <limits.h>
18294 #else
18295 # include <assert.h>
18296 #endif
18298 #undef $ac_func
18300 /* Override any GCC internal prototype to avoid an error.
18301 Use char because int might match the return type of a GCC
18302 builtin and then its argument prototype would still apply. */
18303 #ifdef __cplusplus
18304 extern "C"
18305 #endif
18306 char $ac_func ();
18307 /* The GNU C library defines this for functions which it implements
18308 to always fail with ENOSYS. Some functions are actually named
18309 something starting with __ and the normal name is an alias. */
18310 #if defined __stub_$ac_func || defined __stub___$ac_func
18311 choke me
18312 #endif
18315 main ()
18317 return $ac_func ();
18319 return 0;
18321 _ACEOF
18322 rm -f conftest.$ac_objext conftest$ac_exeext
18323 if { (ac_try="$ac_link"
18324 case "(($ac_try" in
18325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326 *) ac_try_echo=$ac_try;;
18327 esac
18328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18329 (eval "$ac_link") 2>conftest.er1
18330 ac_status=$?
18331 grep -v '^ *+' conftest.er1 >conftest.err
18332 rm -f conftest.er1
18333 cat conftest.err >&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } &&
18336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18337 { (case "(($ac_try" in
18338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339 *) ac_try_echo=$ac_try;;
18340 esac
18341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18342 (eval "$ac_try") 2>&5
18343 ac_status=$?
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); }; } &&
18346 { ac_try='test -s conftest$ac_exeext'
18347 { (case "(($ac_try" in
18348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18349 *) ac_try_echo=$ac_try;;
18350 esac
18351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18352 (eval "$ac_try") 2>&5
18353 ac_status=$?
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); }; }; then
18356 eval "$as_ac_var=yes"
18357 else
18358 echo "$as_me: failed program was:" >&5
18359 sed 's/^/| /' conftest.$ac_ext >&5
18361 eval "$as_ac_var=no"
18364 rm -f core conftest.err conftest.$ac_objext \
18365 conftest$ac_exeext conftest.$ac_ext
18367 ac_res=`eval echo '${'$as_ac_var'}'`
18368 { echo "$as_me:$LINENO: result: $ac_res" >&5
18369 echo "${ECHO_T}$ac_res" >&6; }
18370 if test `eval echo '${'$as_ac_var'}'` = yes; then
18371 cat >>confdefs.h <<_ACEOF
18372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18373 _ACEOF
18376 done
18382 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18385 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18388 echo $ECHO_N "(cached) $ECHO_C" >&6
18389 else
18390 cat >conftest.$ac_ext <<_ACEOF
18391 /* confdefs.h. */
18392 _ACEOF
18393 cat confdefs.h >>conftest.$ac_ext
18394 cat >>conftest.$ac_ext <<_ACEOF
18395 /* end confdefs.h. */
18396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18398 #define $ac_func innocuous_$ac_func
18400 /* System header to define __stub macros and hopefully few prototypes,
18401 which can conflict with char $ac_func (); below.
18402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18403 <limits.h> exists even on freestanding compilers. */
18405 #ifdef __STDC__
18406 # include <limits.h>
18407 #else
18408 # include <assert.h>
18409 #endif
18411 #undef $ac_func
18413 /* Override any GCC internal prototype to avoid an error.
18414 Use char because int might match the return type of a GCC
18415 builtin and then its argument prototype would still apply. */
18416 #ifdef __cplusplus
18417 extern "C"
18418 #endif
18419 char $ac_func ();
18420 /* The GNU C library defines this for functions which it implements
18421 to always fail with ENOSYS. Some functions are actually named
18422 something starting with __ and the normal name is an alias. */
18423 #if defined __stub_$ac_func || defined __stub___$ac_func
18424 choke me
18425 #endif
18428 main ()
18430 return $ac_func ();
18432 return 0;
18434 _ACEOF
18435 rm -f conftest.$ac_objext conftest$ac_exeext
18436 if { (ac_try="$ac_link"
18437 case "(($ac_try" in
18438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18439 *) ac_try_echo=$ac_try;;
18440 esac
18441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18442 (eval "$ac_link") 2>conftest.er1
18443 ac_status=$?
18444 grep -v '^ *+' conftest.er1 >conftest.err
18445 rm -f conftest.er1
18446 cat conftest.err >&5
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); } &&
18449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18450 { (case "(($ac_try" in
18451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18452 *) ac_try_echo=$ac_try;;
18453 esac
18454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18455 (eval "$ac_try") 2>&5
18456 ac_status=$?
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; } &&
18459 { ac_try='test -s conftest$ac_exeext'
18460 { (case "(($ac_try" in
18461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18462 *) ac_try_echo=$ac_try;;
18463 esac
18464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18465 (eval "$ac_try") 2>&5
18466 ac_status=$?
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; }; then
18469 eval "$as_ac_var=yes"
18470 else
18471 echo "$as_me: failed program was:" >&5
18472 sed 's/^/| /' conftest.$ac_ext >&5
18474 eval "$as_ac_var=no"
18477 rm -f core conftest.err conftest.$ac_objext \
18478 conftest$ac_exeext conftest.$ac_ext
18480 ac_res=`eval echo '${'$as_ac_var'}'`
18481 { echo "$as_me:$LINENO: result: $ac_res" >&5
18482 echo "${ECHO_T}$ac_res" >&6; }
18483 if test `eval echo '${'$as_ac_var'}'` = yes; then
18484 cat >>confdefs.h <<_ACEOF
18485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18486 _ACEOF
18489 done
18495 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18498 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18500 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18501 echo $ECHO_N "(cached) $ECHO_C" >&6
18502 else
18503 cat >conftest.$ac_ext <<_ACEOF
18504 /* confdefs.h. */
18505 _ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h. */
18509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18511 #define $ac_func innocuous_$ac_func
18513 /* System header to define __stub macros and hopefully few prototypes,
18514 which can conflict with char $ac_func (); below.
18515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18516 <limits.h> exists even on freestanding compilers. */
18518 #ifdef __STDC__
18519 # include <limits.h>
18520 #else
18521 # include <assert.h>
18522 #endif
18524 #undef $ac_func
18526 /* Override any GCC internal prototype to avoid an error.
18527 Use char because int might match the return type of a GCC
18528 builtin and then its argument prototype would still apply. */
18529 #ifdef __cplusplus
18530 extern "C"
18531 #endif
18532 char $ac_func ();
18533 /* The GNU C library defines this for functions which it implements
18534 to always fail with ENOSYS. Some functions are actually named
18535 something starting with __ and the normal name is an alias. */
18536 #if defined __stub_$ac_func || defined __stub___$ac_func
18537 choke me
18538 #endif
18541 main ()
18543 return $ac_func ();
18545 return 0;
18547 _ACEOF
18548 rm -f conftest.$ac_objext conftest$ac_exeext
18549 if { (ac_try="$ac_link"
18550 case "(($ac_try" in
18551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552 *) ac_try_echo=$ac_try;;
18553 esac
18554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555 (eval "$ac_link") 2>conftest.er1
18556 ac_status=$?
18557 grep -v '^ *+' conftest.er1 >conftest.err
18558 rm -f conftest.er1
18559 cat conftest.err >&5
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); } &&
18562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18563 { (case "(($ac_try" in
18564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18565 *) ac_try_echo=$ac_try;;
18566 esac
18567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18568 (eval "$ac_try") 2>&5
18569 ac_status=$?
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; } &&
18572 { ac_try='test -s conftest$ac_exeext'
18573 { (case "(($ac_try" in
18574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18575 *) ac_try_echo=$ac_try;;
18576 esac
18577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578 (eval "$ac_try") 2>&5
18579 ac_status=$?
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; }; then
18582 eval "$as_ac_var=yes"
18583 else
18584 echo "$as_me: failed program was:" >&5
18585 sed 's/^/| /' conftest.$ac_ext >&5
18587 eval "$as_ac_var=no"
18590 rm -f core conftest.err conftest.$ac_objext \
18591 conftest$ac_exeext conftest.$ac_ext
18593 ac_res=`eval echo '${'$as_ac_var'}'`
18594 { echo "$as_me:$LINENO: result: $ac_res" >&5
18595 echo "${ECHO_T}$ac_res" >&6; }
18596 if test `eval echo '${'$as_ac_var'}'` = yes; then
18597 cat >>confdefs.h <<_ACEOF
18598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18599 _ACEOF
18602 done
18604 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18605 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18606 if test "${llvm_cv_c_printf_a+set}" = set; then
18607 echo $ECHO_N "(cached) $ECHO_C" >&6
18608 else
18609 ac_ext=c
18610 ac_cpp='$CPP $CPPFLAGS'
18611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18615 if test "$cross_compiling" = yes; then
18616 llvmac_cv_c_printf_a=no
18617 else
18618 cat >conftest.$ac_ext <<_ACEOF
18620 /* confdefs.h. */
18621 _ACEOF
18622 cat confdefs.h >>conftest.$ac_ext
18623 cat >>conftest.$ac_ext <<_ACEOF
18624 /* end confdefs.h. */
18626 #include <stdio.h>
18627 #include <stdlib.h>
18630 main ()
18633 volatile double A, B;
18634 char Buffer[100];
18635 A = 1;
18636 A /= 10.0;
18637 sprintf(Buffer, "%a", A);
18638 B = atof(Buffer);
18639 if (A != B)
18640 return (1);
18641 if (A != 0x1.999999999999ap-4)
18642 return (1);
18643 return (0);
18645 return 0;
18647 _ACEOF
18648 rm -f conftest$ac_exeext
18649 if { (ac_try="$ac_link"
18650 case "(($ac_try" in
18651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18652 *) ac_try_echo=$ac_try;;
18653 esac
18654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18655 (eval "$ac_link") 2>&5
18656 ac_status=$?
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18659 { (case "(($ac_try" in
18660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18661 *) ac_try_echo=$ac_try;;
18662 esac
18663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18664 (eval "$ac_try") 2>&5
18665 ac_status=$?
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; }; then
18668 llvm_cv_c_printf_a=yes
18669 else
18670 echo "$as_me: program exited with status $ac_status" >&5
18671 echo "$as_me: failed program was:" >&5
18672 sed 's/^/| /' conftest.$ac_ext >&5
18674 ( exit $ac_status )
18675 llvmac_cv_c_printf_a=no
18677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18681 ac_ext=c
18682 ac_cpp='$CPP $CPPFLAGS'
18683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18688 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18689 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18690 if test "$llvm_cv_c_printf_a" = "yes"; then
18692 cat >>confdefs.h <<\_ACEOF
18693 #define HAVE_PRINTF_A 1
18694 _ACEOF
18699 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18700 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18701 if test "${ac_cv_func_rand48+set}" = set; then
18702 echo $ECHO_N "(cached) $ECHO_C" >&6
18703 else
18704 ac_ext=cpp
18705 ac_cpp='$CXXCPP $CPPFLAGS'
18706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18710 cat >conftest.$ac_ext <<_ACEOF
18711 /* confdefs.h. */
18712 _ACEOF
18713 cat confdefs.h >>conftest.$ac_ext
18714 cat >>conftest.$ac_ext <<_ACEOF
18715 /* end confdefs.h. */
18716 #include <stdlib.h>
18718 main ()
18720 srand48(0);lrand48();drand48();
18722 return 0;
18724 _ACEOF
18725 rm -f conftest.$ac_objext
18726 if { (ac_try="$ac_compile"
18727 case "(($ac_try" in
18728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729 *) ac_try_echo=$ac_try;;
18730 esac
18731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732 (eval "$ac_compile") 2>conftest.er1
18733 ac_status=$?
18734 grep -v '^ *+' conftest.er1 >conftest.err
18735 rm -f conftest.er1
18736 cat conftest.err >&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); } &&
18739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18740 { (case "(($ac_try" in
18741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742 *) ac_try_echo=$ac_try;;
18743 esac
18744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745 (eval "$ac_try") 2>&5
18746 ac_status=$?
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); }; } &&
18749 { ac_try='test -s conftest.$ac_objext'
18750 { (case "(($ac_try" in
18751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752 *) ac_try_echo=$ac_try;;
18753 esac
18754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755 (eval "$ac_try") 2>&5
18756 ac_status=$?
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; }; then
18759 ac_cv_func_rand48=yes
18760 else
18761 echo "$as_me: failed program was:" >&5
18762 sed 's/^/| /' conftest.$ac_ext >&5
18764 ac_cv_func_rand48=no
18767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18768 ac_ext=c
18769 ac_cpp='$CPP $CPPFLAGS'
18770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18775 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18776 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18778 if test "$ac_cv_func_rand48" = "yes" ; then
18780 cat >>confdefs.h <<\_ACEOF
18781 #define HAVE_RAND48 1
18782 _ACEOF
18788 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18789 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18790 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18791 echo $ECHO_N "(cached) $ECHO_C" >&6
18792 else
18793 ac_ext=cpp
18794 ac_cpp='$CXXCPP $CPPFLAGS'
18795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18799 cat >conftest.$ac_ext <<_ACEOF
18800 /* confdefs.h. */
18801 _ACEOF
18802 cat confdefs.h >>conftest.$ac_ext
18803 cat >>conftest.$ac_ext <<_ACEOF
18804 /* end confdefs.h. */
18805 #include <math.h>
18807 main ()
18809 float f; isnan(f);
18811 return 0;
18813 _ACEOF
18814 rm -f conftest.$ac_objext
18815 if { (ac_try="$ac_compile"
18816 case "(($ac_try" in
18817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18818 *) ac_try_echo=$ac_try;;
18819 esac
18820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18821 (eval "$ac_compile") 2>conftest.er1
18822 ac_status=$?
18823 grep -v '^ *+' conftest.er1 >conftest.err
18824 rm -f conftest.er1
18825 cat conftest.err >&5
18826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827 (exit $ac_status); } &&
18828 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18829 { (case "(($ac_try" in
18830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18831 *) ac_try_echo=$ac_try;;
18832 esac
18833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18834 (eval "$ac_try") 2>&5
18835 ac_status=$?
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); }; } &&
18838 { ac_try='test -s conftest.$ac_objext'
18839 { (case "(($ac_try" in
18840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18841 *) ac_try_echo=$ac_try;;
18842 esac
18843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18844 (eval "$ac_try") 2>&5
18845 ac_status=$?
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); }; }; then
18848 ac_cv_func_isnan_in_math_h=yes
18849 else
18850 echo "$as_me: failed program was:" >&5
18851 sed 's/^/| /' conftest.$ac_ext >&5
18853 ac_cv_func_isnan_in_math_h=no
18856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18857 ac_ext=c
18858 ac_cpp='$CPP $CPPFLAGS'
18859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18864 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18865 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18868 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18870 cat >>confdefs.h <<\_ACEOF
18871 #define HAVE_ISNAN_IN_MATH_H 1
18872 _ACEOF
18876 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18877 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18878 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18879 echo $ECHO_N "(cached) $ECHO_C" >&6
18880 else
18881 ac_ext=cpp
18882 ac_cpp='$CXXCPP $CPPFLAGS'
18883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18887 cat >conftest.$ac_ext <<_ACEOF
18888 /* confdefs.h. */
18889 _ACEOF
18890 cat confdefs.h >>conftest.$ac_ext
18891 cat >>conftest.$ac_ext <<_ACEOF
18892 /* end confdefs.h. */
18893 #include <cmath>
18895 main ()
18897 float f; isnan(f);
18899 return 0;
18901 _ACEOF
18902 rm -f conftest.$ac_objext
18903 if { (ac_try="$ac_compile"
18904 case "(($ac_try" in
18905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18906 *) ac_try_echo=$ac_try;;
18907 esac
18908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18909 (eval "$ac_compile") 2>conftest.er1
18910 ac_status=$?
18911 grep -v '^ *+' conftest.er1 >conftest.err
18912 rm -f conftest.er1
18913 cat conftest.err >&5
18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); } &&
18916 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18917 { (case "(($ac_try" in
18918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919 *) ac_try_echo=$ac_try;;
18920 esac
18921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922 (eval "$ac_try") 2>&5
18923 ac_status=$?
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); }; } &&
18926 { ac_try='test -s conftest.$ac_objext'
18927 { (case "(($ac_try" in
18928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18929 *) ac_try_echo=$ac_try;;
18930 esac
18931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18932 (eval "$ac_try") 2>&5
18933 ac_status=$?
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); }; }; then
18936 ac_cv_func_isnan_in_cmath=yes
18937 else
18938 echo "$as_me: failed program was:" >&5
18939 sed 's/^/| /' conftest.$ac_ext >&5
18941 ac_cv_func_isnan_in_cmath=no
18944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18945 ac_ext=c
18946 ac_cpp='$CPP $CPPFLAGS'
18947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18952 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18953 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18955 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18957 cat >>confdefs.h <<\_ACEOF
18958 #define HAVE_ISNAN_IN_CMATH 1
18959 _ACEOF
18963 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18964 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18965 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18966 echo $ECHO_N "(cached) $ECHO_C" >&6
18967 else
18968 ac_ext=cpp
18969 ac_cpp='$CXXCPP $CPPFLAGS'
18970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18974 cat >conftest.$ac_ext <<_ACEOF
18975 /* confdefs.h. */
18976 _ACEOF
18977 cat confdefs.h >>conftest.$ac_ext
18978 cat >>conftest.$ac_ext <<_ACEOF
18979 /* end confdefs.h. */
18980 #include <cmath>
18982 main ()
18984 float f; std::isnan(f);
18986 return 0;
18988 _ACEOF
18989 rm -f conftest.$ac_objext
18990 if { (ac_try="$ac_compile"
18991 case "(($ac_try" in
18992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18993 *) ac_try_echo=$ac_try;;
18994 esac
18995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18996 (eval "$ac_compile") 2>conftest.er1
18997 ac_status=$?
18998 grep -v '^ *+' conftest.er1 >conftest.err
18999 rm -f conftest.er1
19000 cat conftest.err >&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); } &&
19003 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19004 { (case "(($ac_try" in
19005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19006 *) ac_try_echo=$ac_try;;
19007 esac
19008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19009 (eval "$ac_try") 2>&5
19010 ac_status=$?
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); }; } &&
19013 { ac_try='test -s conftest.$ac_objext'
19014 { (case "(($ac_try" in
19015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19016 *) ac_try_echo=$ac_try;;
19017 esac
19018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19019 (eval "$ac_try") 2>&5
19020 ac_status=$?
19021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022 (exit $ac_status); }; }; then
19023 ac_cv_func_std_isnan_in_cmath=yes
19024 else
19025 echo "$as_me: failed program was:" >&5
19026 sed 's/^/| /' conftest.$ac_ext >&5
19028 ac_cv_func_std_isnan_in_cmath=no
19031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19032 ac_ext=c
19033 ac_cpp='$CPP $CPPFLAGS'
19034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19039 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19040 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19042 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19044 cat >>confdefs.h <<\_ACEOF
19045 #define HAVE_STD_ISNAN_IN_CMATH 1
19046 _ACEOF
19051 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19052 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19053 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19054 echo $ECHO_N "(cached) $ECHO_C" >&6
19055 else
19056 ac_ext=cpp
19057 ac_cpp='$CXXCPP $CPPFLAGS'
19058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19062 cat >conftest.$ac_ext <<_ACEOF
19063 /* confdefs.h. */
19064 _ACEOF
19065 cat confdefs.h >>conftest.$ac_ext
19066 cat >>conftest.$ac_ext <<_ACEOF
19067 /* end confdefs.h. */
19068 #include <math.h>
19070 main ()
19072 float f; isinf(f);
19074 return 0;
19076 _ACEOF
19077 rm -f conftest.$ac_objext
19078 if { (ac_try="$ac_compile"
19079 case "(($ac_try" in
19080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19081 *) ac_try_echo=$ac_try;;
19082 esac
19083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19084 (eval "$ac_compile") 2>conftest.er1
19085 ac_status=$?
19086 grep -v '^ *+' conftest.er1 >conftest.err
19087 rm -f conftest.er1
19088 cat conftest.err >&5
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); } &&
19091 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19092 { (case "(($ac_try" in
19093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19094 *) ac_try_echo=$ac_try;;
19095 esac
19096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19097 (eval "$ac_try") 2>&5
19098 ac_status=$?
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); }; } &&
19101 { ac_try='test -s conftest.$ac_objext'
19102 { (case "(($ac_try" in
19103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19104 *) ac_try_echo=$ac_try;;
19105 esac
19106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19107 (eval "$ac_try") 2>&5
19108 ac_status=$?
19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); }; }; then
19111 ac_cv_func_isinf_in_math_h=yes
19112 else
19113 echo "$as_me: failed program was:" >&5
19114 sed 's/^/| /' conftest.$ac_ext >&5
19116 ac_cv_func_isinf_in_math_h=no
19119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19120 ac_ext=c
19121 ac_cpp='$CPP $CPPFLAGS'
19122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19127 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19128 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19130 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19132 cat >>confdefs.h <<\_ACEOF
19133 #define HAVE_ISINF_IN_MATH_H 1
19134 _ACEOF
19138 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19139 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19140 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19141 echo $ECHO_N "(cached) $ECHO_C" >&6
19142 else
19143 ac_ext=cpp
19144 ac_cpp='$CXXCPP $CPPFLAGS'
19145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19149 cat >conftest.$ac_ext <<_ACEOF
19150 /* confdefs.h. */
19151 _ACEOF
19152 cat confdefs.h >>conftest.$ac_ext
19153 cat >>conftest.$ac_ext <<_ACEOF
19154 /* end confdefs.h. */
19155 #include <cmath>
19157 main ()
19159 float f; isinf(f);
19161 return 0;
19163 _ACEOF
19164 rm -f conftest.$ac_objext
19165 if { (ac_try="$ac_compile"
19166 case "(($ac_try" in
19167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19168 *) ac_try_echo=$ac_try;;
19169 esac
19170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19171 (eval "$ac_compile") 2>conftest.er1
19172 ac_status=$?
19173 grep -v '^ *+' conftest.er1 >conftest.err
19174 rm -f conftest.er1
19175 cat conftest.err >&5
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); } &&
19178 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19179 { (case "(($ac_try" in
19180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19181 *) ac_try_echo=$ac_try;;
19182 esac
19183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19184 (eval "$ac_try") 2>&5
19185 ac_status=$?
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); }; } &&
19188 { ac_try='test -s conftest.$ac_objext'
19189 { (case "(($ac_try" in
19190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191 *) ac_try_echo=$ac_try;;
19192 esac
19193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19194 (eval "$ac_try") 2>&5
19195 ac_status=$?
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); }; }; then
19198 ac_cv_func_isinf_in_cmath=yes
19199 else
19200 echo "$as_me: failed program was:" >&5
19201 sed 's/^/| /' conftest.$ac_ext >&5
19203 ac_cv_func_isinf_in_cmath=no
19206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19207 ac_ext=c
19208 ac_cpp='$CPP $CPPFLAGS'
19209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19214 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19215 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19217 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19219 cat >>confdefs.h <<\_ACEOF
19220 #define HAVE_ISINF_IN_CMATH 1
19221 _ACEOF
19225 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19226 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19227 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19228 echo $ECHO_N "(cached) $ECHO_C" >&6
19229 else
19230 ac_ext=cpp
19231 ac_cpp='$CXXCPP $CPPFLAGS'
19232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19236 cat >conftest.$ac_ext <<_ACEOF
19237 /* confdefs.h. */
19238 _ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h. */
19242 #include <cmath>
19244 main ()
19246 float f; std::isinf(f)}
19248 return 0;
19250 _ACEOF
19251 rm -f conftest.$ac_objext
19252 if { (ac_try="$ac_compile"
19253 case "(($ac_try" in
19254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19255 *) ac_try_echo=$ac_try;;
19256 esac
19257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19258 (eval "$ac_compile") 2>conftest.er1
19259 ac_status=$?
19260 grep -v '^ *+' conftest.er1 >conftest.err
19261 rm -f conftest.er1
19262 cat conftest.err >&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); } &&
19265 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19266 { (case "(($ac_try" in
19267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268 *) ac_try_echo=$ac_try;;
19269 esac
19270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19271 (eval "$ac_try") 2>&5
19272 ac_status=$?
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); }; } &&
19275 { ac_try='test -s conftest.$ac_objext'
19276 { (case "(($ac_try" in
19277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19278 *) ac_try_echo=$ac_try;;
19279 esac
19280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19281 (eval "$ac_try") 2>&5
19282 ac_status=$?
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; }; then
19285 ac_cv_func_std_isinf_in_cmath=yes
19286 else
19287 echo "$as_me: failed program was:" >&5
19288 sed 's/^/| /' conftest.$ac_ext >&5
19290 ac_cv_func_std_isinf_in_cmath=no
19293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19294 ac_ext=c
19295 ac_cpp='$CPP $CPPFLAGS'
19296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19301 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19302 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19304 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19306 cat >>confdefs.h <<\_ACEOF
19307 #define HAVE_STD_ISINF_IN_CMATH 1
19308 _ACEOF
19312 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19313 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19314 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19315 echo $ECHO_N "(cached) $ECHO_C" >&6
19316 else
19317 ac_ext=cpp
19318 ac_cpp='$CXXCPP $CPPFLAGS'
19319 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19320 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19321 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19323 cat >conftest.$ac_ext <<_ACEOF
19324 /* confdefs.h. */
19325 _ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h. */
19329 #include <ieeefp.h>
19331 main ()
19333 float f; finite(f);
19335 return 0;
19337 _ACEOF
19338 rm -f conftest.$ac_objext
19339 if { (ac_try="$ac_compile"
19340 case "(($ac_try" in
19341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19342 *) ac_try_echo=$ac_try;;
19343 esac
19344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19345 (eval "$ac_compile") 2>conftest.er1
19346 ac_status=$?
19347 grep -v '^ *+' conftest.er1 >conftest.err
19348 rm -f conftest.er1
19349 cat conftest.err >&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); } &&
19352 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19353 { (case "(($ac_try" in
19354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19355 *) ac_try_echo=$ac_try;;
19356 esac
19357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19358 (eval "$ac_try") 2>&5
19359 ac_status=$?
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); }; } &&
19362 { ac_try='test -s conftest.$ac_objext'
19363 { (case "(($ac_try" in
19364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19365 *) ac_try_echo=$ac_try;;
19366 esac
19367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19368 (eval "$ac_try") 2>&5
19369 ac_status=$?
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); }; }; then
19372 ac_cv_func_finite_in_ieeefp_h=yes
19373 else
19374 echo "$as_me: failed program was:" >&5
19375 sed 's/^/| /' conftest.$ac_ext >&5
19377 ac_cv_func_finite_in_ieeefp_h=no
19380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19381 ac_ext=c
19382 ac_cpp='$CPP $CPPFLAGS'
19383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19388 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19389 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19391 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19393 cat >>confdefs.h <<\_ACEOF
19394 #define HAVE_FINITE_IN_IEEEFP_H 1
19395 _ACEOF
19401 if test "$llvm_cv_platform_type" = "Unix" ; then
19404 for ac_header in stdlib.h unistd.h
19406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19411 echo $ECHO_N "(cached) $ECHO_C" >&6
19413 ac_res=`eval echo '${'$as_ac_Header'}'`
19414 { echo "$as_me:$LINENO: result: $ac_res" >&5
19415 echo "${ECHO_T}$ac_res" >&6; }
19416 else
19417 # Is the header compilable?
19418 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19420 cat >conftest.$ac_ext <<_ACEOF
19421 /* confdefs.h. */
19422 _ACEOF
19423 cat confdefs.h >>conftest.$ac_ext
19424 cat >>conftest.$ac_ext <<_ACEOF
19425 /* end confdefs.h. */
19426 $ac_includes_default
19427 #include <$ac_header>
19428 _ACEOF
19429 rm -f conftest.$ac_objext
19430 if { (ac_try="$ac_compile"
19431 case "(($ac_try" in
19432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19433 *) ac_try_echo=$ac_try;;
19434 esac
19435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436 (eval "$ac_compile") 2>conftest.er1
19437 ac_status=$?
19438 grep -v '^ *+' conftest.er1 >conftest.err
19439 rm -f conftest.er1
19440 cat conftest.err >&5
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); } &&
19443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19444 { (case "(($ac_try" in
19445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19446 *) ac_try_echo=$ac_try;;
19447 esac
19448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19449 (eval "$ac_try") 2>&5
19450 ac_status=$?
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); }; } &&
19453 { ac_try='test -s conftest.$ac_objext'
19454 { (case "(($ac_try" in
19455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456 *) ac_try_echo=$ac_try;;
19457 esac
19458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19459 (eval "$ac_try") 2>&5
19460 ac_status=$?
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }; }; then
19463 ac_header_compiler=yes
19464 else
19465 echo "$as_me: failed program was:" >&5
19466 sed 's/^/| /' conftest.$ac_ext >&5
19468 ac_header_compiler=no
19471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19473 echo "${ECHO_T}$ac_header_compiler" >&6; }
19475 # Is the header present?
19476 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19478 cat >conftest.$ac_ext <<_ACEOF
19479 /* confdefs.h. */
19480 _ACEOF
19481 cat confdefs.h >>conftest.$ac_ext
19482 cat >>conftest.$ac_ext <<_ACEOF
19483 /* end confdefs.h. */
19484 #include <$ac_header>
19485 _ACEOF
19486 if { (ac_try="$ac_cpp conftest.$ac_ext"
19487 case "(($ac_try" in
19488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19489 *) ac_try_echo=$ac_try;;
19490 esac
19491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19493 ac_status=$?
19494 grep -v '^ *+' conftest.er1 >conftest.err
19495 rm -f conftest.er1
19496 cat conftest.err >&5
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); } >/dev/null; then
19499 if test -s conftest.err; then
19500 ac_cpp_err=$ac_c_preproc_warn_flag
19501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19502 else
19503 ac_cpp_err=
19505 else
19506 ac_cpp_err=yes
19508 if test -z "$ac_cpp_err"; then
19509 ac_header_preproc=yes
19510 else
19511 echo "$as_me: failed program was:" >&5
19512 sed 's/^/| /' conftest.$ac_ext >&5
19514 ac_header_preproc=no
19517 rm -f conftest.err conftest.$ac_ext
19518 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19519 echo "${ECHO_T}$ac_header_preproc" >&6; }
19521 # So? What about this header?
19522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19523 yes:no: )
19524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19527 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19528 ac_header_preproc=yes
19530 no:yes:* )
19531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19534 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19536 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19538 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19542 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19543 ( cat <<\_ASBOX
19544 ## ----------------------------------- ##
19545 ## Report this to llvmbugs@cs.uiuc.edu ##
19546 ## ----------------------------------- ##
19547 _ASBOX
19548 ) | sed "s/^/$as_me: WARNING: /" >&2
19550 esac
19551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19554 echo $ECHO_N "(cached) $ECHO_C" >&6
19555 else
19556 eval "$as_ac_Header=\$ac_header_preproc"
19558 ac_res=`eval echo '${'$as_ac_Header'}'`
19559 { echo "$as_me:$LINENO: result: $ac_res" >&5
19560 echo "${ECHO_T}$ac_res" >&6; }
19563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19564 cat >>confdefs.h <<_ACEOF
19565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19566 _ACEOF
19570 done
19573 for ac_func in getpagesize
19575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19576 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19578 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19579 echo $ECHO_N "(cached) $ECHO_C" >&6
19580 else
19581 cat >conftest.$ac_ext <<_ACEOF
19582 /* confdefs.h. */
19583 _ACEOF
19584 cat confdefs.h >>conftest.$ac_ext
19585 cat >>conftest.$ac_ext <<_ACEOF
19586 /* end confdefs.h. */
19587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19589 #define $ac_func innocuous_$ac_func
19591 /* System header to define __stub macros and hopefully few prototypes,
19592 which can conflict with char $ac_func (); below.
19593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19594 <limits.h> exists even on freestanding compilers. */
19596 #ifdef __STDC__
19597 # include <limits.h>
19598 #else
19599 # include <assert.h>
19600 #endif
19602 #undef $ac_func
19604 /* Override any GCC internal prototype to avoid an error.
19605 Use char because int might match the return type of a GCC
19606 builtin and then its argument prototype would still apply. */
19607 #ifdef __cplusplus
19608 extern "C"
19609 #endif
19610 char $ac_func ();
19611 /* The GNU C library defines this for functions which it implements
19612 to always fail with ENOSYS. Some functions are actually named
19613 something starting with __ and the normal name is an alias. */
19614 #if defined __stub_$ac_func || defined __stub___$ac_func
19615 choke me
19616 #endif
19619 main ()
19621 return $ac_func ();
19623 return 0;
19625 _ACEOF
19626 rm -f conftest.$ac_objext conftest$ac_exeext
19627 if { (ac_try="$ac_link"
19628 case "(($ac_try" in
19629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630 *) ac_try_echo=$ac_try;;
19631 esac
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633 (eval "$ac_link") 2>conftest.er1
19634 ac_status=$?
19635 grep -v '^ *+' conftest.er1 >conftest.err
19636 rm -f conftest.er1
19637 cat conftest.err >&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); } &&
19640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19641 { (case "(($ac_try" in
19642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643 *) ac_try_echo=$ac_try;;
19644 esac
19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646 (eval "$ac_try") 2>&5
19647 ac_status=$?
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; } &&
19650 { ac_try='test -s conftest$ac_exeext'
19651 { (case "(($ac_try" in
19652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653 *) ac_try_echo=$ac_try;;
19654 esac
19655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656 (eval "$ac_try") 2>&5
19657 ac_status=$?
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }; }; then
19660 eval "$as_ac_var=yes"
19661 else
19662 echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19665 eval "$as_ac_var=no"
19668 rm -f core conftest.err conftest.$ac_objext \
19669 conftest$ac_exeext conftest.$ac_ext
19671 ac_res=`eval echo '${'$as_ac_var'}'`
19672 { echo "$as_me:$LINENO: result: $ac_res" >&5
19673 echo "${ECHO_T}$ac_res" >&6; }
19674 if test `eval echo '${'$as_ac_var'}'` = yes; then
19675 cat >>confdefs.h <<_ACEOF
19676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19677 _ACEOF
19680 done
19682 { echo "$as_me:$LINENO: checking for working mmap" >&5
19683 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19684 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19685 echo $ECHO_N "(cached) $ECHO_C" >&6
19686 else
19687 if test "$cross_compiling" = yes; then
19688 ac_cv_func_mmap_fixed_mapped=no
19689 else
19690 cat >conftest.$ac_ext <<_ACEOF
19691 /* confdefs.h. */
19692 _ACEOF
19693 cat confdefs.h >>conftest.$ac_ext
19694 cat >>conftest.$ac_ext <<_ACEOF
19695 /* end confdefs.h. */
19696 $ac_includes_default
19697 /* malloc might have been renamed as rpl_malloc. */
19698 #undef malloc
19700 /* Thanks to Mike Haertel and Jim Avera for this test.
19701 Here is a matrix of mmap possibilities:
19702 mmap private not fixed
19703 mmap private fixed at somewhere currently unmapped
19704 mmap private fixed at somewhere already mapped
19705 mmap shared not fixed
19706 mmap shared fixed at somewhere currently unmapped
19707 mmap shared fixed at somewhere already mapped
19708 For private mappings, we should verify that changes cannot be read()
19709 back from the file, nor mmap's back from the file at a different
19710 address. (There have been systems where private was not correctly
19711 implemented like the infamous i386 svr4.0, and systems where the
19712 VM page cache was not coherent with the file system buffer cache
19713 like early versions of FreeBSD and possibly contemporary NetBSD.)
19714 For shared mappings, we should conversely verify that changes get
19715 propagated back to all the places they're supposed to be.
19717 Grep wants private fixed already mapped.
19718 The main things grep needs to know about mmap are:
19719 * does it exist and is it safe to write into the mmap'd area
19720 * how to use it (BSD variants) */
19722 #include <fcntl.h>
19723 #include <sys/mman.h>
19725 #if !STDC_HEADERS && !HAVE_STDLIB_H
19726 char *malloc ();
19727 #endif
19729 /* This mess was copied from the GNU getpagesize.h. */
19730 #if !HAVE_GETPAGESIZE
19731 /* Assume that all systems that can run configure have sys/param.h. */
19732 # if !HAVE_SYS_PARAM_H
19733 # define HAVE_SYS_PARAM_H 1
19734 # endif
19736 # ifdef _SC_PAGESIZE
19737 # define getpagesize() sysconf(_SC_PAGESIZE)
19738 # else /* no _SC_PAGESIZE */
19739 # if HAVE_SYS_PARAM_H
19740 # include <sys/param.h>
19741 # ifdef EXEC_PAGESIZE
19742 # define getpagesize() EXEC_PAGESIZE
19743 # else /* no EXEC_PAGESIZE */
19744 # ifdef NBPG
19745 # define getpagesize() NBPG * CLSIZE
19746 # ifndef CLSIZE
19747 # define CLSIZE 1
19748 # endif /* no CLSIZE */
19749 # else /* no NBPG */
19750 # ifdef NBPC
19751 # define getpagesize() NBPC
19752 # else /* no NBPC */
19753 # ifdef PAGESIZE
19754 # define getpagesize() PAGESIZE
19755 # endif /* PAGESIZE */
19756 # endif /* no NBPC */
19757 # endif /* no NBPG */
19758 # endif /* no EXEC_PAGESIZE */
19759 # else /* no HAVE_SYS_PARAM_H */
19760 # define getpagesize() 8192 /* punt totally */
19761 # endif /* no HAVE_SYS_PARAM_H */
19762 # endif /* no _SC_PAGESIZE */
19764 #endif /* no HAVE_GETPAGESIZE */
19767 main ()
19769 char *data, *data2, *data3;
19770 int i, pagesize;
19771 int fd;
19773 pagesize = getpagesize ();
19775 /* First, make a file with some known garbage in it. */
19776 data = (char *) malloc (pagesize);
19777 if (!data)
19778 return 1;
19779 for (i = 0; i < pagesize; ++i)
19780 *(data + i) = rand ();
19781 umask (0);
19782 fd = creat ("conftest.mmap", 0600);
19783 if (fd < 0)
19784 return 1;
19785 if (write (fd, data, pagesize) != pagesize)
19786 return 1;
19787 close (fd);
19789 /* Next, try to mmap the file at a fixed address which already has
19790 something else allocated at it. If we can, also make sure that
19791 we see the same garbage. */
19792 fd = open ("conftest.mmap", O_RDWR);
19793 if (fd < 0)
19794 return 1;
19795 data2 = (char *) malloc (2 * pagesize);
19796 if (!data2)
19797 return 1;
19798 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19799 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19800 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19801 return 1;
19802 for (i = 0; i < pagesize; ++i)
19803 if (*(data + i) != *(data2 + i))
19804 return 1;
19806 /* Finally, make sure that changes to the mapped area do not
19807 percolate back to the file as seen by read(). (This is a bug on
19808 some variants of i386 svr4.0.) */
19809 for (i = 0; i < pagesize; ++i)
19810 *(data2 + i) = *(data2 + i) + 1;
19811 data3 = (char *) malloc (pagesize);
19812 if (!data3)
19813 return 1;
19814 if (read (fd, data3, pagesize) != pagesize)
19815 return 1;
19816 for (i = 0; i < pagesize; ++i)
19817 if (*(data + i) != *(data3 + i))
19818 return 1;
19819 close (fd);
19820 return 0;
19822 _ACEOF
19823 rm -f conftest$ac_exeext
19824 if { (ac_try="$ac_link"
19825 case "(($ac_try" in
19826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19827 *) ac_try_echo=$ac_try;;
19828 esac
19829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19830 (eval "$ac_link") 2>&5
19831 ac_status=$?
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19834 { (case "(($ac_try" in
19835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19836 *) ac_try_echo=$ac_try;;
19837 esac
19838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19839 (eval "$ac_try") 2>&5
19840 ac_status=$?
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); }; }; then
19843 ac_cv_func_mmap_fixed_mapped=yes
19844 else
19845 echo "$as_me: program exited with status $ac_status" >&5
19846 echo "$as_me: failed program was:" >&5
19847 sed 's/^/| /' conftest.$ac_ext >&5
19849 ( exit $ac_status )
19850 ac_cv_func_mmap_fixed_mapped=no
19852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19857 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19858 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19859 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19861 cat >>confdefs.h <<\_ACEOF
19862 #define HAVE_MMAP 1
19863 _ACEOF
19866 rm -f conftest.mmap
19868 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19869 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19870 if test "${ac_cv_func_mmap_file+set}" = set; then
19871 echo $ECHO_N "(cached) $ECHO_C" >&6
19872 else
19873 ac_ext=c
19874 ac_cpp='$CPP $CPPFLAGS'
19875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19879 if test "$cross_compiling" = yes; then
19880 ac_cv_func_mmap_file=no
19881 else
19882 cat >conftest.$ac_ext <<_ACEOF
19884 /* confdefs.h. */
19885 _ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h. */
19890 #include <sys/types.h>
19891 #include <sys/mman.h>
19892 #include <fcntl.h>
19895 main ()
19898 int fd;
19899 fd = creat ("foo",0777);
19900 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19901 unlink ("foo");
19902 return (fd != (int) MAP_FAILED);
19904 return 0;
19906 _ACEOF
19907 rm -f conftest$ac_exeext
19908 if { (ac_try="$ac_link"
19909 case "(($ac_try" in
19910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911 *) ac_try_echo=$ac_try;;
19912 esac
19913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914 (eval "$ac_link") 2>&5
19915 ac_status=$?
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19918 { (case "(($ac_try" in
19919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19920 *) ac_try_echo=$ac_try;;
19921 esac
19922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19923 (eval "$ac_try") 2>&5
19924 ac_status=$?
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); }; }; then
19927 ac_cv_func_mmap_file=yes
19928 else
19929 echo "$as_me: program exited with status $ac_status" >&5
19930 echo "$as_me: failed program was:" >&5
19931 sed 's/^/| /' conftest.$ac_ext >&5
19933 ( exit $ac_status )
19934 ac_cv_func_mmap_file=no
19936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19940 ac_ext=c
19941 ac_cpp='$CPP $CPPFLAGS'
19942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19948 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19949 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19950 if test "$ac_cv_func_mmap_file" = yes; then
19952 cat >>confdefs.h <<\_ACEOF
19953 #define HAVE_MMAP_FILE
19954 _ACEOF
19956 MMAP_FILE=yes
19960 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19961 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19962 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19963 echo $ECHO_N "(cached) $ECHO_C" >&6
19964 else
19965 if test "$llvm_cv_os_type" = "Interix" ; then
19966 ac_cv_need_dev_zero_for_mmap=yes
19967 else
19968 ac_cv_need_dev_zero_for_mmap=no
19972 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19973 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19974 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19976 cat >>confdefs.h <<\_ACEOF
19977 #define NEED_DEV_ZERO_FOR_MMAP 1
19978 _ACEOF
19982 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19983 then
19984 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19985 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19987 if test "$ac_cv_func_mmap_file" = "no"
19988 then
19989 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19990 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19994 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19995 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19996 ac_ext=cpp
19997 ac_cpp='$CXXCPP $CPPFLAGS'
19998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20002 cat >conftest.$ac_ext <<_ACEOF
20003 /* confdefs.h. */
20004 _ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h. */
20008 int main() {
20009 volatile unsigned long val = 1;
20010 __sync_synchronize();
20011 __sync_val_compare_and_swap(&val, 1, 0);
20012 __sync_add_and_fetch(&val, 1);
20013 __sync_sub_and_fetch(&val, 1);
20014 return 0;
20017 _ACEOF
20018 rm -f conftest.$ac_objext conftest$ac_exeext
20019 if { (ac_try="$ac_link"
20020 case "(($ac_try" in
20021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20022 *) ac_try_echo=$ac_try;;
20023 esac
20024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20025 (eval "$ac_link") 2>conftest.er1
20026 ac_status=$?
20027 grep -v '^ *+' conftest.er1 >conftest.err
20028 rm -f conftest.er1
20029 cat conftest.err >&5
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); } &&
20032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20033 { (case "(($ac_try" in
20034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20035 *) ac_try_echo=$ac_try;;
20036 esac
20037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20038 (eval "$ac_try") 2>&5
20039 ac_status=$?
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); }; } &&
20042 { ac_try='test -s conftest$ac_exeext'
20043 { (case "(($ac_try" in
20044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045 *) ac_try_echo=$ac_try;;
20046 esac
20047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20048 (eval "$ac_try") 2>&5
20049 ac_status=$?
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; }; then
20052 ac_ext=c
20053 ac_cpp='$CPP $CPPFLAGS'
20054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20058 { echo "$as_me:$LINENO: result: yes" >&5
20059 echo "${ECHO_T}yes" >&6; }
20061 cat >>confdefs.h <<\_ACEOF
20062 #define LLVM_MULTITHREADED 1
20063 _ACEOF
20065 else
20066 echo "$as_me: failed program was:" >&5
20067 sed 's/^/| /' conftest.$ac_ext >&5
20069 { echo "$as_me:$LINENO: result: no" >&5
20070 echo "${ECHO_T}no" >&6; }
20072 cat >>confdefs.h <<\_ACEOF
20073 #define LLVM_MULTITHREADED 0
20074 _ACEOF
20076 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20077 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20080 rm -f core conftest.err conftest.$ac_objext \
20081 conftest$ac_exeext conftest.$ac_ext
20084 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20085 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20086 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20087 if test "${llvm_cv_linux_mixed+set}" = set; then
20088 echo $ECHO_N "(cached) $ECHO_C" >&6
20089 else
20090 ac_ext=c
20091 ac_cpp='$CPP $CPPFLAGS'
20092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20096 cat >conftest.$ac_ext <<_ACEOF
20097 /* confdefs.h. */
20098 _ACEOF
20099 cat confdefs.h >>conftest.$ac_ext
20100 cat >>conftest.$ac_ext <<_ACEOF
20101 /* end confdefs.h. */
20102 #ifndef __x86_64__
20103 error: Not x86-64 even if uname says so!
20104 #endif
20107 main ()
20111 return 0;
20113 _ACEOF
20114 rm -f conftest.$ac_objext
20115 if { (ac_try="$ac_compile"
20116 case "(($ac_try" in
20117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20118 *) ac_try_echo=$ac_try;;
20119 esac
20120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20121 (eval "$ac_compile") 2>conftest.er1
20122 ac_status=$?
20123 grep -v '^ *+' conftest.er1 >conftest.err
20124 rm -f conftest.er1
20125 cat conftest.err >&5
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); } &&
20128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20129 { (case "(($ac_try" in
20130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20131 *) ac_try_echo=$ac_try;;
20132 esac
20133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20134 (eval "$ac_try") 2>&5
20135 ac_status=$?
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); }; } &&
20138 { ac_try='test -s conftest.$ac_objext'
20139 { (case "(($ac_try" in
20140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141 *) ac_try_echo=$ac_try;;
20142 esac
20143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20144 (eval "$ac_try") 2>&5
20145 ac_status=$?
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; }; then
20148 llvm_cv_linux_mixed=no
20149 else
20150 echo "$as_me: failed program was:" >&5
20151 sed 's/^/| /' conftest.$ac_ext >&5
20153 llvm_cv_linux_mixed=yes
20156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20157 ac_ext=c
20158 ac_cpp='$CPP $CPPFLAGS'
20159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20165 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20166 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20168 if test "$llvm_cv_linux_mixed" = "yes"; then
20169 llvm_cv_target_arch="x86"
20170 ARCH="x86"
20175 for ac_func in __dso_handle
20177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20181 echo $ECHO_N "(cached) $ECHO_C" >&6
20182 else
20183 cat >conftest.$ac_ext <<_ACEOF
20184 /* confdefs.h. */
20185 _ACEOF
20186 cat confdefs.h >>conftest.$ac_ext
20187 cat >>conftest.$ac_ext <<_ACEOF
20188 /* end confdefs.h. */
20189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20191 #define $ac_func innocuous_$ac_func
20193 /* System header to define __stub macros and hopefully few prototypes,
20194 which can conflict with char $ac_func (); below.
20195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20196 <limits.h> exists even on freestanding compilers. */
20198 #ifdef __STDC__
20199 # include <limits.h>
20200 #else
20201 # include <assert.h>
20202 #endif
20204 #undef $ac_func
20206 /* Override any GCC internal prototype to avoid an error.
20207 Use char because int might match the return type of a GCC
20208 builtin and then its argument prototype would still apply. */
20209 #ifdef __cplusplus
20210 extern "C"
20211 #endif
20212 char $ac_func ();
20213 /* The GNU C library defines this for functions which it implements
20214 to always fail with ENOSYS. Some functions are actually named
20215 something starting with __ and the normal name is an alias. */
20216 #if defined __stub_$ac_func || defined __stub___$ac_func
20217 choke me
20218 #endif
20221 main ()
20223 return $ac_func ();
20225 return 0;
20227 _ACEOF
20228 rm -f conftest.$ac_objext conftest$ac_exeext
20229 if { (ac_try="$ac_link"
20230 case "(($ac_try" in
20231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232 *) ac_try_echo=$ac_try;;
20233 esac
20234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20235 (eval "$ac_link") 2>conftest.er1
20236 ac_status=$?
20237 grep -v '^ *+' conftest.er1 >conftest.err
20238 rm -f conftest.er1
20239 cat conftest.err >&5
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } &&
20242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20243 { (case "(($ac_try" in
20244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245 *) ac_try_echo=$ac_try;;
20246 esac
20247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248 (eval "$ac_try") 2>&5
20249 ac_status=$?
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); }; } &&
20252 { ac_try='test -s conftest$ac_exeext'
20253 { (case "(($ac_try" in
20254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20255 *) ac_try_echo=$ac_try;;
20256 esac
20257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20258 (eval "$ac_try") 2>&5
20259 ac_status=$?
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); }; }; then
20262 eval "$as_ac_var=yes"
20263 else
20264 echo "$as_me: failed program was:" >&5
20265 sed 's/^/| /' conftest.$ac_ext >&5
20267 eval "$as_ac_var=no"
20270 rm -f core conftest.err conftest.$ac_objext \
20271 conftest$ac_exeext conftest.$ac_ext
20273 ac_res=`eval echo '${'$as_ac_var'}'`
20274 { echo "$as_me:$LINENO: result: $ac_res" >&5
20275 echo "${ECHO_T}$ac_res" >&6; }
20276 if test `eval echo '${'$as_ac_var'}'` = yes; then
20277 cat >>confdefs.h <<_ACEOF
20278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20279 _ACEOF
20282 done
20285 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20286 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20287 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20288 echo $ECHO_N "(cached) $ECHO_C" >&6
20289 else
20290 llvm_cv_llvmgcc_sanity="no"
20291 if test -x "$LLVMGCC" ; then
20292 cp /dev/null conftest.c
20293 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20294 grep 'target datalayout =' > /dev/null 2>&1
20295 if test $? -eq 0 ; then
20296 llvm_cv_llvmgcc_sanity="yes"
20298 rm conftest.c
20301 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20302 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20304 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20305 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20306 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20307 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20308 LLVMCC1=$llvmcc1path
20310 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20311 LLVMCC1PLUS=$llvmcc1pluspath
20313 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20314 LLVMGCCDIR=$llvmgccdir
20316 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20317 LLVMGCC_LANGS=$llvmgcclangs
20319 { echo "$as_me:$LINENO: result: ok" >&5
20320 echo "${ECHO_T}ok" >&6; }
20323 SHLIBEXT=$libltdl_cv_shlibext
20326 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20329 # Translate the various configuration directories and other basic
20330 # information into substitutions that will end up in Makefile.config.in
20331 # that these configured values can be used by the makefiles
20332 if test "${prefix}" = "NONE" ; then
20333 prefix="/usr/local"
20335 eval LLVM_PREFIX="${prefix}";
20336 eval LLVM_BINDIR="${prefix}/bin";
20337 eval LLVM_LIBDIR="${prefix}/lib";
20338 eval LLVM_DATADIR="${prefix}/share/llvm";
20339 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20340 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20341 eval LLVM_INCLUDEDIR="${prefix}/include";
20342 eval LLVM_INFODIR="${prefix}/info";
20343 eval LLVM_MANDIR="${prefix}/man";
20344 LLVM_CONFIGTIME=`date`
20356 # Place the various directores into the config.h file as #defines so that we
20357 # can know about the installation paths within LLVM.
20359 cat >>confdefs.h <<_ACEOF
20360 #define LLVM_PREFIX "$LLVM_PREFIX"
20361 _ACEOF
20364 cat >>confdefs.h <<_ACEOF
20365 #define LLVM_BINDIR "$LLVM_BINDIR"
20366 _ACEOF
20369 cat >>confdefs.h <<_ACEOF
20370 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20371 _ACEOF
20374 cat >>confdefs.h <<_ACEOF
20375 #define LLVM_DATADIR "$LLVM_DATADIR"
20376 _ACEOF
20379 cat >>confdefs.h <<_ACEOF
20380 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20381 _ACEOF
20384 cat >>confdefs.h <<_ACEOF
20385 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20386 _ACEOF
20389 cat >>confdefs.h <<_ACEOF
20390 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20391 _ACEOF
20394 cat >>confdefs.h <<_ACEOF
20395 #define LLVM_INFODIR "$LLVM_INFODIR"
20396 _ACEOF
20399 cat >>confdefs.h <<_ACEOF
20400 #define LLVM_MANDIR "$LLVM_MANDIR"
20401 _ACEOF
20404 cat >>confdefs.h <<_ACEOF
20405 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20406 _ACEOF
20409 cat >>confdefs.h <<_ACEOF
20410 #define LLVM_HOSTTRIPLE "$host"
20411 _ACEOF
20414 # Determine which bindings to build.
20415 if test "$BINDINGS_TO_BUILD" = auto ; then
20416 BINDINGS_TO_BUILD=""
20417 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20418 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20421 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20424 # This isn't really configurey, but it avoids having to repeat the list in
20425 # other files.
20426 ALL_BINDINGS=ocaml
20429 # Do any work necessary to ensure that bindings have what they need.
20430 binding_prereqs_failed=0
20431 for a_binding in $BINDINGS_TO_BUILD ; do
20432 case "$a_binding" in
20433 ocaml)
20434 if test "x$OCAMLC" = x ; then
20435 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20436 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20437 binding_prereqs_failed=1
20439 if test "x$OCAMLDEP" = x ; then
20440 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20441 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20442 binding_prereqs_failed=1
20444 if test "x$OCAMLOPT" = x ; then
20445 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20446 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20448 if test "x$with_ocaml_libdir" != xauto ; then
20449 OCAML_LIBDIR=$with_ocaml_libdir
20451 else
20452 ocaml_stdlib="`"$OCAMLC" -where`"
20453 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20454 then
20455 # ocaml stdlib is beneath our prefix; use stdlib
20456 OCAML_LIBDIR=$ocaml_stdlib
20458 else
20459 # ocaml stdlib is outside our prefix; use libdir/ocaml
20460 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20465 esac
20466 done
20467 if test "$binding_prereqs_failed" = 1 ; then
20468 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20469 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20470 { (exit 1); exit 1; }; }
20473 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20474 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20475 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20476 echo $ECHO_N "(cached) $ECHO_C" >&6
20477 else
20478 ac_ext=cpp
20479 ac_cpp='$CXXCPP $CPPFLAGS'
20480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20484 oldcxxflags="$CXXFLAGS"
20485 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20486 cat >conftest.$ac_ext <<_ACEOF
20487 /* confdefs.h. */
20488 _ACEOF
20489 cat confdefs.h >>conftest.$ac_ext
20490 cat >>conftest.$ac_ext <<_ACEOF
20491 /* end confdefs.h. */
20494 main ()
20498 return 0;
20500 _ACEOF
20501 rm -f conftest.$ac_objext
20502 if { (ac_try="$ac_compile"
20503 case "(($ac_try" in
20504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20505 *) ac_try_echo=$ac_try;;
20506 esac
20507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20508 (eval "$ac_compile") 2>conftest.er1
20509 ac_status=$?
20510 grep -v '^ *+' conftest.er1 >conftest.err
20511 rm -f conftest.er1
20512 cat conftest.err >&5
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); } &&
20515 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20516 { (case "(($ac_try" in
20517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518 *) ac_try_echo=$ac_try;;
20519 esac
20520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20521 (eval "$ac_try") 2>&5
20522 ac_status=$?
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); }; } &&
20525 { ac_try='test -s conftest.$ac_objext'
20526 { (case "(($ac_try" in
20527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20528 *) ac_try_echo=$ac_try;;
20529 esac
20530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20531 (eval "$ac_try") 2>&5
20532 ac_status=$?
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); }; }; then
20535 llvm_cv_cxx_visibility_inlines_hidden=yes
20536 else
20537 echo "$as_me: failed program was:" >&5
20538 sed 's/^/| /' conftest.$ac_ext >&5
20540 llvm_cv_cxx_visibility_inlines_hidden=no
20543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20544 CXXFLAGS="$oldcxxflags"
20545 ac_ext=c
20546 ac_cpp='$CPP $CPPFLAGS'
20547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20553 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20554 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20555 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20556 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20558 else
20559 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20564 if test "$llvm_cv_link_use_r" = "yes" ; then
20565 RPATH="-Wl,-R"
20566 else
20567 RPATH="-Wl,-rpath"
20571 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20572 RDYNAMIC="-Wl,-export-dynamic"
20573 else
20574 RDYNAMIC=""
20579 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
20586 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20588 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20590 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20592 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20594 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20597 ac_config_files="$ac_config_files Makefile.config"
20600 ac_config_files="$ac_config_files llvm.spec"
20603 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
20606 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20609 ac_config_commands="$ac_config_commands setup"
20611 ac_config_commands="$ac_config_commands Makefile"
20614 ac_config_commands="$ac_config_commands Makefile.common"
20617 ac_config_commands="$ac_config_commands examples/Makefile"
20620 ac_config_commands="$ac_config_commands lib/Makefile"
20623 ac_config_commands="$ac_config_commands runtime/Makefile"
20626 ac_config_commands="$ac_config_commands test/Makefile"
20629 ac_config_commands="$ac_config_commands test/Makefile.tests"
20632 ac_config_commands="$ac_config_commands unittests/Makefile"
20635 ac_config_commands="$ac_config_commands tools/Makefile"
20638 ac_config_commands="$ac_config_commands utils/Makefile"
20641 ac_config_commands="$ac_config_commands projects/Makefile"
20644 ac_config_commands="$ac_config_commands bindings/Makefile"
20647 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20651 cat >confcache <<\_ACEOF
20652 # This file is a shell script that caches the results of configure
20653 # tests run on this system so they can be shared between configure
20654 # scripts and configure runs, see configure's option --config-cache.
20655 # It is not useful on other systems. If it contains results you don't
20656 # want to keep, you may remove or edit it.
20658 # config.status only pays attention to the cache file if you give it
20659 # the --recheck option to rerun configure.
20661 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20662 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20663 # following values.
20665 _ACEOF
20667 # The following way of writing the cache mishandles newlines in values,
20668 # but we know of no workaround that is simple, portable, and efficient.
20669 # So, we kill variables containing newlines.
20670 # Ultrix sh set writes to stderr and can't be redirected directly,
20671 # and sets the high bit in the cache file unless we assign to the vars.
20673 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20674 eval ac_val=\$$ac_var
20675 case $ac_val in #(
20676 *${as_nl}*)
20677 case $ac_var in #(
20678 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20679 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20680 esac
20681 case $ac_var in #(
20682 _ | IFS | as_nl) ;; #(
20683 *) $as_unset $ac_var ;;
20684 esac ;;
20685 esac
20686 done
20688 (set) 2>&1 |
20689 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20690 *${as_nl}ac_space=\ *)
20691 # `set' does not quote correctly, so add quotes (double-quote
20692 # substitution turns \\\\ into \\, and sed turns \\ into \).
20693 sed -n \
20694 "s/'/'\\\\''/g;
20695 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20696 ;; #(
20698 # `set' quotes correctly as required by POSIX, so do not add quotes.
20699 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20701 esac |
20702 sort
20704 sed '
20705 /^ac_cv_env_/b end
20706 t clear
20707 :clear
20708 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20709 t end
20710 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20711 :end' >>confcache
20712 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20713 if test -w "$cache_file"; then
20714 test "x$cache_file" != "x/dev/null" &&
20715 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20716 echo "$as_me: updating cache $cache_file" >&6;}
20717 cat confcache >$cache_file
20718 else
20719 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20720 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20723 rm -f confcache
20725 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20726 # Let make expand exec_prefix.
20727 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20729 DEFS=-DHAVE_CONFIG_H
20731 ac_libobjs=
20732 ac_ltlibobjs=
20733 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20734 # 1. Remove the extension, and $U if already installed.
20735 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20736 ac_i=`echo "$ac_i" | sed "$ac_script"`
20737 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20738 # will be set to the directory where LIBOBJS objects are built.
20739 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20740 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20741 done
20742 LIBOBJS=$ac_libobjs
20744 LTLIBOBJS=$ac_ltlibobjs
20747 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20748 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20749 Usually this means the macro was only invoked conditionally." >&5
20750 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20751 Usually this means the macro was only invoked conditionally." >&2;}
20752 { (exit 1); exit 1; }; }
20754 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20755 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20756 Usually this means the macro was only invoked conditionally." >&5
20757 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20758 Usually this means the macro was only invoked conditionally." >&2;}
20759 { (exit 1); exit 1; }; }
20762 : ${CONFIG_STATUS=./config.status}
20763 ac_clean_files_save=$ac_clean_files
20764 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20765 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20766 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20767 cat >$CONFIG_STATUS <<_ACEOF
20768 #! $SHELL
20769 # Generated by $as_me.
20770 # Run this file to recreate the current configuration.
20771 # Compiler output produced by configure, useful for debugging
20772 # configure, is in config.log if it exists.
20774 debug=false
20775 ac_cs_recheck=false
20776 ac_cs_silent=false
20777 SHELL=\${CONFIG_SHELL-$SHELL}
20778 _ACEOF
20780 cat >>$CONFIG_STATUS <<\_ACEOF
20781 ## --------------------- ##
20782 ## M4sh Initialization. ##
20783 ## --------------------- ##
20785 # Be Bourne compatible
20786 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20787 emulate sh
20788 NULLCMD=:
20789 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20790 # is contrary to our usage. Disable this feature.
20791 alias -g '${1+"$@"}'='"$@"'
20792 setopt NO_GLOB_SUBST
20793 else
20794 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20796 BIN_SH=xpg4; export BIN_SH # for Tru64
20797 DUALCASE=1; export DUALCASE # for MKS sh
20800 # PATH needs CR
20801 # Avoid depending upon Character Ranges.
20802 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20803 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20804 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20805 as_cr_digits='0123456789'
20806 as_cr_alnum=$as_cr_Letters$as_cr_digits
20808 # The user is always right.
20809 if test "${PATH_SEPARATOR+set}" != set; then
20810 echo "#! /bin/sh" >conf$$.sh
20811 echo "exit 0" >>conf$$.sh
20812 chmod +x conf$$.sh
20813 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20814 PATH_SEPARATOR=';'
20815 else
20816 PATH_SEPARATOR=:
20818 rm -f conf$$.sh
20821 # Support unset when possible.
20822 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20823 as_unset=unset
20824 else
20825 as_unset=false
20829 # IFS
20830 # We need space, tab and new line, in precisely that order. Quoting is
20831 # there to prevent editors from complaining about space-tab.
20832 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20833 # splitting by setting IFS to empty value.)
20834 as_nl='
20836 IFS=" "" $as_nl"
20838 # Find who we are. Look in the path if we contain no directory separator.
20839 case $0 in
20840 *[\\/]* ) as_myself=$0 ;;
20841 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20842 for as_dir in $PATH
20844 IFS=$as_save_IFS
20845 test -z "$as_dir" && as_dir=.
20846 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20847 done
20848 IFS=$as_save_IFS
20851 esac
20852 # We did not find ourselves, most probably we were run as `sh COMMAND'
20853 # in which case we are not to be found in the path.
20854 if test "x$as_myself" = x; then
20855 as_myself=$0
20857 if test ! -f "$as_myself"; then
20858 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20859 { (exit 1); exit 1; }
20862 # Work around bugs in pre-3.0 UWIN ksh.
20863 for as_var in ENV MAIL MAILPATH
20864 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20865 done
20866 PS1='$ '
20867 PS2='> '
20868 PS4='+ '
20870 # NLS nuisances.
20871 for as_var in \
20872 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20873 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20874 LC_TELEPHONE LC_TIME
20876 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20877 eval $as_var=C; export $as_var
20878 else
20879 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20881 done
20883 # Required to use basename.
20884 if expr a : '\(a\)' >/dev/null 2>&1 &&
20885 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20886 as_expr=expr
20887 else
20888 as_expr=false
20891 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20892 as_basename=basename
20893 else
20894 as_basename=false
20898 # Name of the executable.
20899 as_me=`$as_basename -- "$0" ||
20900 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20901 X"$0" : 'X\(//\)$' \| \
20902 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20903 echo X/"$0" |
20904 sed '/^.*\/\([^/][^/]*\)\/*$/{
20905 s//\1/
20908 /^X\/\(\/\/\)$/{
20909 s//\1/
20912 /^X\/\(\/\).*/{
20913 s//\1/
20916 s/.*/./; q'`
20918 # CDPATH.
20919 $as_unset CDPATH
20923 as_lineno_1=$LINENO
20924 as_lineno_2=$LINENO
20925 test "x$as_lineno_1" != "x$as_lineno_2" &&
20926 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20928 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20929 # uniformly replaced by the line number. The first 'sed' inserts a
20930 # line-number line after each line using $LINENO; the second 'sed'
20931 # does the real work. The second script uses 'N' to pair each
20932 # line-number line with the line containing $LINENO, and appends
20933 # trailing '-' during substitution so that $LINENO is not a special
20934 # case at line end.
20935 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20936 # scripts with optimization help from Paolo Bonzini. Blame Lee
20937 # E. McMahon (1931-1989) for sed's syntax. :-)
20938 sed -n '
20940 /[$]LINENO/=
20941 ' <$as_myself |
20942 sed '
20943 s/[$]LINENO.*/&-/
20944 t lineno
20946 :lineno
20948 :loop
20949 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20950 t loop
20951 s/-\n.*//
20952 ' >$as_me.lineno &&
20953 chmod +x "$as_me.lineno" ||
20954 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20955 { (exit 1); exit 1; }; }
20957 # Don't try to exec as it changes $[0], causing all sort of problems
20958 # (the dirname of $[0] is not the place where we might find the
20959 # original and so on. Autoconf is especially sensitive to this).
20960 . "./$as_me.lineno"
20961 # Exit status is that of the last command.
20962 exit
20966 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20967 as_dirname=dirname
20968 else
20969 as_dirname=false
20972 ECHO_C= ECHO_N= ECHO_T=
20973 case `echo -n x` in
20974 -n*)
20975 case `echo 'x\c'` in
20976 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20977 *) ECHO_C='\c';;
20978 esac;;
20980 ECHO_N='-n';;
20981 esac
20983 if expr a : '\(a\)' >/dev/null 2>&1 &&
20984 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20985 as_expr=expr
20986 else
20987 as_expr=false
20990 rm -f conf$$ conf$$.exe conf$$.file
20991 if test -d conf$$.dir; then
20992 rm -f conf$$.dir/conf$$.file
20993 else
20994 rm -f conf$$.dir
20995 mkdir conf$$.dir
20997 echo >conf$$.file
20998 if ln -s conf$$.file conf$$ 2>/dev/null; then
20999 as_ln_s='ln -s'
21000 # ... but there are two gotchas:
21001 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21002 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21003 # In both cases, we have to default to `cp -p'.
21004 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21005 as_ln_s='cp -p'
21006 elif ln conf$$.file conf$$ 2>/dev/null; then
21007 as_ln_s=ln
21008 else
21009 as_ln_s='cp -p'
21011 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21012 rmdir conf$$.dir 2>/dev/null
21014 if mkdir -p . 2>/dev/null; then
21015 as_mkdir_p=:
21016 else
21017 test -d ./-p && rmdir ./-p
21018 as_mkdir_p=false
21021 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21022 # systems may use methods other than mode bits to determine executability.
21023 cat >conf$$.file <<_ASEOF
21024 #! /bin/sh
21025 exit 0
21026 _ASEOF
21027 chmod +x conf$$.file
21028 if test -x conf$$.file >/dev/null 2>&1; then
21029 as_executable_p="test -x"
21030 else
21031 as_executable_p=:
21033 rm -f conf$$.file
21035 # Sed expression to map a string onto a valid CPP name.
21036 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21038 # Sed expression to map a string onto a valid variable name.
21039 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21042 exec 6>&1
21044 # Save the log message, to keep $[0] and so on meaningful, and to
21045 # report actual input values of CONFIG_FILES etc. instead of their
21046 # values after options handling.
21047 ac_log="
21048 This file was extended by llvm $as_me 2.8svn, which was
21049 generated by GNU Autoconf 2.60. Invocation command line was
21051 CONFIG_FILES = $CONFIG_FILES
21052 CONFIG_HEADERS = $CONFIG_HEADERS
21053 CONFIG_LINKS = $CONFIG_LINKS
21054 CONFIG_COMMANDS = $CONFIG_COMMANDS
21055 $ $0 $@
21057 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21060 _ACEOF
21062 cat >>$CONFIG_STATUS <<_ACEOF
21063 # Files that config.status was made for.
21064 config_files="$ac_config_files"
21065 config_headers="$ac_config_headers"
21066 config_commands="$ac_config_commands"
21068 _ACEOF
21070 cat >>$CONFIG_STATUS <<\_ACEOF
21071 ac_cs_usage="\
21072 \`$as_me' instantiates files from templates according to the
21073 current configuration.
21075 Usage: $0 [OPTIONS] [FILE]...
21077 -h, --help print this help, then exit
21078 -V, --version print version number, then exit
21079 -q, --quiet do not print progress messages
21080 -d, --debug don't remove temporary files
21081 --recheck update $as_me by reconfiguring in the same conditions
21082 --file=FILE[:TEMPLATE]
21083 instantiate the configuration file FILE
21084 --header=FILE[:TEMPLATE]
21085 instantiate the configuration header FILE
21087 Configuration files:
21088 $config_files
21090 Configuration headers:
21091 $config_headers
21093 Configuration commands:
21094 $config_commands
21096 Report bugs to <bug-autoconf@gnu.org>."
21098 _ACEOF
21099 cat >>$CONFIG_STATUS <<_ACEOF
21100 ac_cs_version="\\
21101 llvm config.status 2.8svn
21102 configured by $0, generated by GNU Autoconf 2.60,
21103 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21105 Copyright (C) 2006 Free Software Foundation, Inc.
21106 This config.status script is free software; the Free Software Foundation
21107 gives unlimited permission to copy, distribute and modify it."
21109 ac_pwd='$ac_pwd'
21110 srcdir='$srcdir'
21111 INSTALL='$INSTALL'
21112 _ACEOF
21114 cat >>$CONFIG_STATUS <<\_ACEOF
21115 # If no file are specified by the user, then we need to provide default
21116 # value. By we need to know if files were specified by the user.
21117 ac_need_defaults=:
21118 while test $# != 0
21120 case $1 in
21121 --*=*)
21122 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21123 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21124 ac_shift=:
21127 ac_option=$1
21128 ac_optarg=$2
21129 ac_shift=shift
21131 esac
21133 case $ac_option in
21134 # Handling of the options.
21135 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21136 ac_cs_recheck=: ;;
21137 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21138 echo "$ac_cs_version"; exit ;;
21139 --debug | --debu | --deb | --de | --d | -d )
21140 debug=: ;;
21141 --file | --fil | --fi | --f )
21142 $ac_shift
21143 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21144 ac_need_defaults=false;;
21145 --header | --heade | --head | --hea )
21146 $ac_shift
21147 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21148 ac_need_defaults=false;;
21149 --he | --h)
21150 # Conflict between --help and --header
21151 { echo "$as_me: error: ambiguous option: $1
21152 Try \`$0 --help' for more information." >&2
21153 { (exit 1); exit 1; }; };;
21154 --help | --hel | -h )
21155 echo "$ac_cs_usage"; exit ;;
21156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21157 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21158 ac_cs_silent=: ;;
21160 # This is an error.
21161 -*) { echo "$as_me: error: unrecognized option: $1
21162 Try \`$0 --help' for more information." >&2
21163 { (exit 1); exit 1; }; } ;;
21165 *) ac_config_targets="$ac_config_targets $1"
21166 ac_need_defaults=false ;;
21168 esac
21169 shift
21170 done
21172 ac_configure_extra_args=
21174 if $ac_cs_silent; then
21175 exec 6>/dev/null
21176 ac_configure_extra_args="$ac_configure_extra_args --silent"
21179 _ACEOF
21180 cat >>$CONFIG_STATUS <<_ACEOF
21181 if \$ac_cs_recheck; then
21182 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21183 CONFIG_SHELL=$SHELL
21184 export CONFIG_SHELL
21185 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21188 _ACEOF
21189 cat >>$CONFIG_STATUS <<\_ACEOF
21190 exec 5>>config.log
21192 echo
21193 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21194 ## Running $as_me. ##
21195 _ASBOX
21196 echo "$ac_log"
21197 } >&5
21199 _ACEOF
21200 cat >>$CONFIG_STATUS <<_ACEOF
21202 # INIT-COMMANDS
21204 llvm_src="${srcdir}"
21206 _ACEOF
21208 cat >>$CONFIG_STATUS <<\_ACEOF
21210 # Handling of arguments.
21211 for ac_config_target in $ac_config_targets
21213 case $ac_config_target in
21214 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21215 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21216 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21217 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21218 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21219 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21220 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21221 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21222 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21223 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
21224 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21225 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21226 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21227 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21228 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21229 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21230 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21231 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21232 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21233 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21234 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21235 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21236 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21237 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21238 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21240 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21241 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21242 { (exit 1); exit 1; }; };;
21243 esac
21244 done
21247 # If the user did not use the arguments to specify the items to instantiate,
21248 # then the envvar interface is used. Set only those that are not.
21249 # We use the long form for the default assignment because of an extremely
21250 # bizarre bug on SunOS 4.1.3.
21251 if $ac_need_defaults; then
21252 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21253 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21254 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21257 # Have a temporary directory for convenience. Make it in the build tree
21258 # simply because there is no reason against having it here, and in addition,
21259 # creating and moving files from /tmp can sometimes cause problems.
21260 # Hook for its removal unless debugging.
21261 # Note that there is a small window in which the directory will not be cleaned:
21262 # after its creation but before its name has been assigned to `$tmp'.
21263 $debug ||
21265 tmp=
21266 trap 'exit_status=$?
21267 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21269 trap '{ (exit 1); exit 1; }' 1 2 13 15
21271 # Create a (secure) tmp directory for tmp files.
21274 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21275 test -n "$tmp" && test -d "$tmp"
21276 } ||
21278 tmp=./conf$$-$RANDOM
21279 (umask 077 && mkdir "$tmp")
21280 } ||
21282 echo "$me: cannot create a temporary directory in ." >&2
21283 { (exit 1); exit 1; }
21287 # Set up the sed scripts for CONFIG_FILES section.
21290 # No need to generate the scripts if there are no CONFIG_FILES.
21291 # This happens for instance when ./config.status config.h
21292 if test -n "$CONFIG_FILES"; then
21294 _ACEOF
21298 ac_delim='%!_!# '
21299 for ac_last_try in false false false false false :; do
21300 cat >conf$$subs.sed <<_ACEOF
21301 SHELL!$SHELL$ac_delim
21302 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21303 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21304 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21305 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21306 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21307 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21308 exec_prefix!$exec_prefix$ac_delim
21309 prefix!$prefix$ac_delim
21310 program_transform_name!$program_transform_name$ac_delim
21311 bindir!$bindir$ac_delim
21312 sbindir!$sbindir$ac_delim
21313 libexecdir!$libexecdir$ac_delim
21314 datarootdir!$datarootdir$ac_delim
21315 datadir!$datadir$ac_delim
21316 sysconfdir!$sysconfdir$ac_delim
21317 sharedstatedir!$sharedstatedir$ac_delim
21318 localstatedir!$localstatedir$ac_delim
21319 includedir!$includedir$ac_delim
21320 oldincludedir!$oldincludedir$ac_delim
21321 docdir!$docdir$ac_delim
21322 infodir!$infodir$ac_delim
21323 htmldir!$htmldir$ac_delim
21324 dvidir!$dvidir$ac_delim
21325 pdfdir!$pdfdir$ac_delim
21326 psdir!$psdir$ac_delim
21327 libdir!$libdir$ac_delim
21328 localedir!$localedir$ac_delim
21329 mandir!$mandir$ac_delim
21330 DEFS!$DEFS$ac_delim
21331 ECHO_C!$ECHO_C$ac_delim
21332 ECHO_N!$ECHO_N$ac_delim
21333 ECHO_T!$ECHO_T$ac_delim
21334 LIBS!$LIBS$ac_delim
21335 build_alias!$build_alias$ac_delim
21336 host_alias!$host_alias$ac_delim
21337 target_alias!$target_alias$ac_delim
21338 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21339 subdirs!$subdirs$ac_delim
21340 build!$build$ac_delim
21341 build_cpu!$build_cpu$ac_delim
21342 build_vendor!$build_vendor$ac_delim
21343 build_os!$build_os$ac_delim
21344 host!$host$ac_delim
21345 host_cpu!$host_cpu$ac_delim
21346 host_vendor!$host_vendor$ac_delim
21347 host_os!$host_os$ac_delim
21348 target!$target$ac_delim
21349 target_cpu!$target_cpu$ac_delim
21350 target_vendor!$target_vendor$ac_delim
21351 target_os!$target_os$ac_delim
21352 OS!$OS$ac_delim
21353 HOST_OS!$HOST_OS$ac_delim
21354 TARGET_OS!$TARGET_OS$ac_delim
21355 LINKALL!$LINKALL$ac_delim
21356 NOLINKALL!$NOLINKALL$ac_delim
21357 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21358 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21359 ARCH!$ARCH$ac_delim
21360 ENDIAN!$ENDIAN$ac_delim
21361 CC!$CC$ac_delim
21362 CFLAGS!$CFLAGS$ac_delim
21363 LDFLAGS!$LDFLAGS$ac_delim
21364 CPPFLAGS!$CPPFLAGS$ac_delim
21365 ac_ct_CC!$ac_ct_CC$ac_delim
21366 EXEEXT!$EXEEXT$ac_delim
21367 OBJEXT!$OBJEXT$ac_delim
21368 CPP!$CPP$ac_delim
21369 GREP!$GREP$ac_delim
21370 EGREP!$EGREP$ac_delim
21371 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21372 BUILD_CC!$BUILD_CC$ac_delim
21373 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21374 BUILD_CXX!$BUILD_CXX$ac_delim
21375 CVSBUILD!$CVSBUILD$ac_delim
21376 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21377 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21378 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21379 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21380 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21381 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21382 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21383 JIT!$JIT$ac_delim
21384 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21385 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21386 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21387 ENABLE_PIC!$ENABLE_PIC$ac_delim
21388 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21389 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21390 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21391 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21392 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21393 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21394 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21395 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21396 CLANGPATH!$CLANGPATH$ac_delim
21397 CLANGXXPATH!$CLANGXXPATH$ac_delim
21398 _ACEOF
21400 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21401 break
21402 elif $ac_last_try; then
21403 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21404 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21405 { (exit 1); exit 1; }; }
21406 else
21407 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21409 done
21411 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21412 if test -n "$ac_eof"; then
21413 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21414 ac_eof=`expr $ac_eof + 1`
21417 cat >>$CONFIG_STATUS <<_ACEOF
21418 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21419 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21420 _ACEOF
21421 sed '
21422 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21423 s/^/s,@/; s/!/@,|#_!!_#|/
21426 s/'"$ac_delim"'$/,g/; t
21427 s/$/\\/; p
21428 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21429 ' >>$CONFIG_STATUS <conf$$subs.sed
21430 rm -f conf$$subs.sed
21431 cat >>$CONFIG_STATUS <<_ACEOF
21432 CEOF$ac_eof
21433 _ACEOF
21436 ac_delim='%!_!# '
21437 for ac_last_try in false false false false false :; do
21438 cat >conf$$subs.sed <<_ACEOF
21439 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21440 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21441 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21442 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21443 CXX!$CXX$ac_delim
21444 CXXFLAGS!$CXXFLAGS$ac_delim
21445 ac_ct_CXX!$ac_ct_CXX$ac_delim
21446 NM!$NM$ac_delim
21447 ifGNUmake!$ifGNUmake$ac_delim
21448 LN_S!$LN_S$ac_delim
21449 CMP!$CMP$ac_delim
21450 CP!$CP$ac_delim
21451 DATE!$DATE$ac_delim
21452 FIND!$FIND$ac_delim
21453 MKDIR!$MKDIR$ac_delim
21454 MV!$MV$ac_delim
21455 RANLIB!$RANLIB$ac_delim
21456 AR!$AR$ac_delim
21457 RM!$RM$ac_delim
21458 SED!$SED$ac_delim
21459 TAR!$TAR$ac_delim
21460 BINPWD!$BINPWD$ac_delim
21461 GRAPHVIZ!$GRAPHVIZ$ac_delim
21462 DOT!$DOT$ac_delim
21463 FDP!$FDP$ac_delim
21464 NEATO!$NEATO$ac_delim
21465 TWOPI!$TWOPI$ac_delim
21466 CIRCO!$CIRCO$ac_delim
21467 GV!$GV$ac_delim
21468 DOTTY!$DOTTY$ac_delim
21469 PERL!$PERL$ac_delim
21470 HAVE_PERL!$HAVE_PERL$ac_delim
21471 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21472 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21473 INSTALL_DATA!$INSTALL_DATA$ac_delim
21474 BZIP2!$BZIP2$ac_delim
21475 CAT!$CAT$ac_delim
21476 DOXYGEN!$DOXYGEN$ac_delim
21477 GROFF!$GROFF$ac_delim
21478 GZIP!$GZIP$ac_delim
21479 POD2HTML!$POD2HTML$ac_delim
21480 POD2MAN!$POD2MAN$ac_delim
21481 PDFROFF!$PDFROFF$ac_delim
21482 RUNTEST!$RUNTEST$ac_delim
21483 TCLSH!$TCLSH$ac_delim
21484 ZIP!$ZIP$ac_delim
21485 OCAMLC!$OCAMLC$ac_delim
21486 OCAMLOPT!$OCAMLOPT$ac_delim
21487 OCAMLDEP!$OCAMLDEP$ac_delim
21488 OCAMLDOC!$OCAMLDOC$ac_delim
21489 GAS!$GAS$ac_delim
21490 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21491 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21492 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21493 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21494 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21495 LIBADD_DL!$LIBADD_DL$ac_delim
21496 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21497 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21498 LLVMGCC!$LLVMGCC$ac_delim
21499 LLVMGXX!$LLVMGXX$ac_delim
21500 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21501 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21502 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21503 USE_UDIS86!$USE_UDIS86$ac_delim
21504 USE_OPROFILE!$USE_OPROFILE$ac_delim
21505 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21506 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21507 MMAP_FILE!$MMAP_FILE$ac_delim
21508 LLVMCC1!$LLVMCC1$ac_delim
21509 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21510 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21511 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21512 SHLIBEXT!$SHLIBEXT$ac_delim
21513 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21514 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21515 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21516 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21517 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21518 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21519 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21520 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21521 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21522 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21523 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21524 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21525 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21526 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21527 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21528 RPATH!$RPATH$ac_delim
21529 RDYNAMIC!$RDYNAMIC$ac_delim
21530 LIBOBJS!$LIBOBJS$ac_delim
21531 LTLIBOBJS!$LTLIBOBJS$ac_delim
21532 _ACEOF
21534 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
21535 break
21536 elif $ac_last_try; then
21537 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21538 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21539 { (exit 1); exit 1; }; }
21540 else
21541 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21543 done
21545 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21546 if test -n "$ac_eof"; then
21547 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21548 ac_eof=`expr $ac_eof + 1`
21551 cat >>$CONFIG_STATUS <<_ACEOF
21552 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21553 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21554 _ACEOF
21555 sed '
21556 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21557 s/^/s,@/; s/!/@,|#_!!_#|/
21560 s/'"$ac_delim"'$/,g/; t
21561 s/$/\\/; p
21562 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21563 ' >>$CONFIG_STATUS <conf$$subs.sed
21564 rm -f conf$$subs.sed
21565 cat >>$CONFIG_STATUS <<_ACEOF
21566 :end
21567 s/|#_!!_#|//g
21568 CEOF$ac_eof
21569 _ACEOF
21572 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21573 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21574 # trailing colons and then remove the whole line if VPATH becomes empty
21575 # (actually we leave an empty line to preserve line numbers).
21576 if test "x$srcdir" = x.; then
21577 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21578 s/:*\$(srcdir):*/:/
21579 s/:*\${srcdir}:*/:/
21580 s/:*@srcdir@:*/:/
21581 s/^\([^=]*=[ ]*\):*/\1/
21582 s/:*$//
21583 s/^[^=]*=[ ]*$//
21587 cat >>$CONFIG_STATUS <<\_ACEOF
21588 fi # test -n "$CONFIG_FILES"
21591 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21593 case $ac_tag in
21594 :[FHLC]) ac_mode=$ac_tag; continue;;
21595 esac
21596 case $ac_mode$ac_tag in
21597 :[FHL]*:*);;
21598 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21599 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21600 { (exit 1); exit 1; }; };;
21601 :[FH]-) ac_tag=-:-;;
21602 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21603 esac
21604 ac_save_IFS=$IFS
21605 IFS=:
21606 set x $ac_tag
21607 IFS=$ac_save_IFS
21608 shift
21609 ac_file=$1
21610 shift
21612 case $ac_mode in
21613 :L) ac_source=$1;;
21614 :[FH])
21615 ac_file_inputs=
21616 for ac_f
21618 case $ac_f in
21619 -) ac_f="$tmp/stdin";;
21620 *) # Look for the file first in the build tree, then in the source tree
21621 # (if the path is not absolute). The absolute path cannot be DOS-style,
21622 # because $ac_f cannot contain `:'.
21623 test -f "$ac_f" ||
21624 case $ac_f in
21625 [\\/$]*) false;;
21626 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21627 esac ||
21628 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21629 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21630 { (exit 1); exit 1; }; };;
21631 esac
21632 ac_file_inputs="$ac_file_inputs $ac_f"
21633 done
21635 # Let's still pretend it is `configure' which instantiates (i.e., don't
21636 # use $as_me), people would be surprised to read:
21637 # /* config.h. Generated by config.status. */
21638 configure_input="Generated from "`IFS=:
21639 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21640 if test x"$ac_file" != x-; then
21641 configure_input="$ac_file. $configure_input"
21642 { echo "$as_me:$LINENO: creating $ac_file" >&5
21643 echo "$as_me: creating $ac_file" >&6;}
21646 case $ac_tag in
21647 *:-:* | *:-) cat >"$tmp/stdin";;
21648 esac
21650 esac
21652 ac_dir=`$as_dirname -- "$ac_file" ||
21653 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21654 X"$ac_file" : 'X\(//\)[^/]' \| \
21655 X"$ac_file" : 'X\(//\)$' \| \
21656 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21657 echo X"$ac_file" |
21658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21659 s//\1/
21662 /^X\(\/\/\)[^/].*/{
21663 s//\1/
21666 /^X\(\/\/\)$/{
21667 s//\1/
21670 /^X\(\/\).*/{
21671 s//\1/
21674 s/.*/./; q'`
21675 { as_dir="$ac_dir"
21676 case $as_dir in #(
21677 -*) as_dir=./$as_dir;;
21678 esac
21679 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21680 as_dirs=
21681 while :; do
21682 case $as_dir in #(
21683 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21684 *) as_qdir=$as_dir;;
21685 esac
21686 as_dirs="'$as_qdir' $as_dirs"
21687 as_dir=`$as_dirname -- "$as_dir" ||
21688 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21689 X"$as_dir" : 'X\(//\)[^/]' \| \
21690 X"$as_dir" : 'X\(//\)$' \| \
21691 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21692 echo X"$as_dir" |
21693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21694 s//\1/
21697 /^X\(\/\/\)[^/].*/{
21698 s//\1/
21701 /^X\(\/\/\)$/{
21702 s//\1/
21705 /^X\(\/\).*/{
21706 s//\1/
21709 s/.*/./; q'`
21710 test -d "$as_dir" && break
21711 done
21712 test -z "$as_dirs" || eval "mkdir $as_dirs"
21713 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21714 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21715 { (exit 1); exit 1; }; }; }
21716 ac_builddir=.
21718 case "$ac_dir" in
21719 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21721 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21722 # A ".." for each directory in $ac_dir_suffix.
21723 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21724 case $ac_top_builddir_sub in
21725 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21726 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21727 esac ;;
21728 esac
21729 ac_abs_top_builddir=$ac_pwd
21730 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21731 # for backward compatibility:
21732 ac_top_builddir=$ac_top_build_prefix
21734 case $srcdir in
21735 .) # We are building in place.
21736 ac_srcdir=.
21737 ac_top_srcdir=$ac_top_builddir_sub
21738 ac_abs_top_srcdir=$ac_pwd ;;
21739 [\\/]* | ?:[\\/]* ) # Absolute name.
21740 ac_srcdir=$srcdir$ac_dir_suffix;
21741 ac_top_srcdir=$srcdir
21742 ac_abs_top_srcdir=$srcdir ;;
21743 *) # Relative name.
21744 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21745 ac_top_srcdir=$ac_top_build_prefix$srcdir
21746 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21747 esac
21748 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21751 case $ac_mode in
21754 # CONFIG_FILE
21757 case $INSTALL in
21758 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21759 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21760 esac
21761 _ACEOF
21763 cat >>$CONFIG_STATUS <<\_ACEOF
21764 # If the template does not know about datarootdir, expand it.
21765 # FIXME: This hack should be removed a few years after 2.60.
21766 ac_datarootdir_hack=; ac_datarootdir_seen=
21768 case `sed -n '/datarootdir/ {
21772 /@datadir@/p
21773 /@docdir@/p
21774 /@infodir@/p
21775 /@localedir@/p
21776 /@mandir@/p
21777 ' $ac_file_inputs` in
21778 *datarootdir*) ac_datarootdir_seen=yes;;
21779 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21780 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21781 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21782 _ACEOF
21783 cat >>$CONFIG_STATUS <<_ACEOF
21784 ac_datarootdir_hack='
21785 s&@datadir@&$datadir&g
21786 s&@docdir@&$docdir&g
21787 s&@infodir@&$infodir&g
21788 s&@localedir@&$localedir&g
21789 s&@mandir@&$mandir&g
21790 s&\\\${datarootdir}&$datarootdir&g' ;;
21791 esac
21792 _ACEOF
21794 # Neutralize VPATH when `$srcdir' = `.'.
21795 # Shell code in configure.ac might set extrasub.
21796 # FIXME: do we really want to maintain this feature?
21797 cat >>$CONFIG_STATUS <<_ACEOF
21798 sed "$ac_vpsub
21799 $extrasub
21800 _ACEOF
21801 cat >>$CONFIG_STATUS <<\_ACEOF
21803 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21804 s&@configure_input@&$configure_input&;t t
21805 s&@top_builddir@&$ac_top_builddir_sub&;t t
21806 s&@srcdir@&$ac_srcdir&;t t
21807 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21808 s&@top_srcdir@&$ac_top_srcdir&;t t
21809 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21810 s&@builddir@&$ac_builddir&;t t
21811 s&@abs_builddir@&$ac_abs_builddir&;t t
21812 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21813 s&@INSTALL@&$ac_INSTALL&;t t
21814 $ac_datarootdir_hack
21815 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21817 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21818 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21819 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21820 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21821 which seems to be undefined. Please make sure it is defined." >&5
21822 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21823 which seems to be undefined. Please make sure it is defined." >&2;}
21825 rm -f "$tmp/stdin"
21826 case $ac_file in
21827 -) cat "$tmp/out"; rm -f "$tmp/out";;
21828 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21829 esac
21833 # CONFIG_HEADER
21835 _ACEOF
21837 # Transform confdefs.h into a sed script `conftest.defines', that
21838 # substitutes the proper values into config.h.in to produce config.h.
21839 rm -f conftest.defines conftest.tail
21840 # First, append a space to every undef/define line, to ease matching.
21841 echo 's/$/ /' >conftest.defines
21842 # Then, protect against being on the right side of a sed subst, or in
21843 # an unquoted here document, in config.status. If some macros were
21844 # called several times there might be several #defines for the same
21845 # symbol, which is useless. But do not sort them, since the last
21846 # AC_DEFINE must be honored.
21847 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21848 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21849 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21850 # PARAMS is the parameter list in the macro definition--in most cases, it's
21851 # just an empty string.
21852 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21853 ac_dB='\\)[ (].*,\\1define\\2'
21854 ac_dC=' '
21855 ac_dD=' ,'
21857 uniq confdefs.h |
21858 sed -n '
21859 t rset
21860 :rset
21861 s/^[ ]*#[ ]*define[ ][ ]*//
21862 t ok
21865 s/[\\&,]/\\&/g
21866 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21867 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21868 ' >>conftest.defines
21870 # Remove the space that was appended to ease matching.
21871 # Then replace #undef with comments. This is necessary, for
21872 # example, in the case of _POSIX_SOURCE, which is predefined and required
21873 # on some systems where configure will not decide to define it.
21874 # (The regexp can be short, since the line contains either #define or #undef.)
21875 echo 's/ $//
21876 s,^[ #]*u.*,/* & */,' >>conftest.defines
21878 # Break up conftest.defines:
21879 ac_max_sed_lines=50
21881 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21882 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21883 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21884 # et cetera.
21885 ac_in='$ac_file_inputs'
21886 ac_out='"$tmp/out1"'
21887 ac_nxt='"$tmp/out2"'
21889 while :
21891 # Write a here document:
21892 cat >>$CONFIG_STATUS <<_ACEOF
21893 # First, check the format of the line:
21894 cat >"\$tmp/defines.sed" <<\\CEOF
21895 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21896 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21898 :def
21899 _ACEOF
21900 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21901 echo 'CEOF
21902 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21903 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21904 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21905 grep . conftest.tail >/dev/null || break
21906 rm -f conftest.defines
21907 mv conftest.tail conftest.defines
21908 done
21909 rm -f conftest.defines conftest.tail
21911 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21912 cat >>$CONFIG_STATUS <<\_ACEOF
21913 if test x"$ac_file" != x-; then
21914 echo "/* $configure_input */" >"$tmp/config.h"
21915 cat "$ac_result" >>"$tmp/config.h"
21916 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21917 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21918 echo "$as_me: $ac_file is unchanged" >&6;}
21919 else
21920 rm -f $ac_file
21921 mv "$tmp/config.h" $ac_file
21923 else
21924 echo "/* $configure_input */"
21925 cat "$ac_result"
21927 rm -f "$tmp/out12"
21930 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21931 echo "$as_me: executing $ac_file commands" >&6;}
21933 esac
21936 case $ac_file$ac_mode in
21937 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21938 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21939 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21940 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21941 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21942 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21943 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21944 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21945 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21946 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21947 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21948 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21949 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21950 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21951 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21952 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21953 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21954 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21955 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21956 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21957 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21958 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21959 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21960 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21961 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21962 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21964 esac
21965 done # for ac_tag
21968 { (exit 0); exit 0; }
21969 _ACEOF
21970 chmod +x $CONFIG_STATUS
21971 ac_clean_files=$ac_clean_files_save
21974 # configure is writing to config.log, and then calls config.status.
21975 # config.status does its own redirection, appending to config.log.
21976 # Unfortunately, on DOS this fails, as config.log is still kept open
21977 # by configure, so config.status won't be able to write to it; its
21978 # output is simply discarded. So we exec the FD to /dev/null,
21979 # effectively closing config.log, so it can be properly (re)opened and
21980 # appended to by config.status. When coming back to configure, we
21981 # need to make the FD available again.
21982 if test "$no_create" != yes; then
21983 ac_cs_success=:
21984 ac_config_status_args=
21985 test "$silent" = yes &&
21986 ac_config_status_args="$ac_config_status_args --quiet"
21987 exec 5>/dev/null
21988 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21989 exec 5>>config.log
21990 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21991 # would make configure fail if this is the last instruction.
21992 $ac_cs_success || { (exit 1); exit 1; }
21996 # CONFIG_SUBDIRS section.
21998 if test "$no_recursion" != yes; then
22000 # Remove --cache-file and --srcdir arguments so they do not pile up.
22001 ac_sub_configure_args=
22002 ac_prev=
22003 eval "set x $ac_configure_args"
22004 shift
22005 for ac_arg
22007 if test -n "$ac_prev"; then
22008 ac_prev=
22009 continue
22011 case $ac_arg in
22012 -cache-file | --cache-file | --cache-fil | --cache-fi \
22013 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22014 ac_prev=cache_file ;;
22015 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22016 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22017 | --c=*)
22019 --config-cache | -C)
22021 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22022 ac_prev=srcdir ;;
22023 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22026 ac_prev=prefix ;;
22027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22030 case $ac_arg in
22031 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22032 esac
22033 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22034 esac
22035 done
22037 # Always prepend --prefix to ensure using the same prefix
22038 # in subdir configurations.
22039 ac_arg="--prefix=$prefix"
22040 case $ac_arg in
22041 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22042 esac
22043 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22045 ac_popdir=`pwd`
22046 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22048 # Do not complain, so a configure script can configure whichever
22049 # parts of a large source tree are present.
22050 test -d "$srcdir/$ac_dir" || continue
22052 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22053 echo "$as_me:$LINENO: $ac_msg" >&5
22054 echo "$ac_msg" >&6
22055 { as_dir="$ac_dir"
22056 case $as_dir in #(
22057 -*) as_dir=./$as_dir;;
22058 esac
22059 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22060 as_dirs=
22061 while :; do
22062 case $as_dir in #(
22063 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22064 *) as_qdir=$as_dir;;
22065 esac
22066 as_dirs="'$as_qdir' $as_dirs"
22067 as_dir=`$as_dirname -- "$as_dir" ||
22068 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22069 X"$as_dir" : 'X\(//\)[^/]' \| \
22070 X"$as_dir" : 'X\(//\)$' \| \
22071 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22072 echo X"$as_dir" |
22073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22074 s//\1/
22077 /^X\(\/\/\)[^/].*/{
22078 s//\1/
22081 /^X\(\/\/\)$/{
22082 s//\1/
22085 /^X\(\/\).*/{
22086 s//\1/
22089 s/.*/./; q'`
22090 test -d "$as_dir" && break
22091 done
22092 test -z "$as_dirs" || eval "mkdir $as_dirs"
22093 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22094 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22095 { (exit 1); exit 1; }; }; }
22096 ac_builddir=.
22098 case "$ac_dir" in
22099 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22101 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22102 # A ".." for each directory in $ac_dir_suffix.
22103 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22104 case $ac_top_builddir_sub in
22105 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22106 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22107 esac ;;
22108 esac
22109 ac_abs_top_builddir=$ac_pwd
22110 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22111 # for backward compatibility:
22112 ac_top_builddir=$ac_top_build_prefix
22114 case $srcdir in
22115 .) # We are building in place.
22116 ac_srcdir=.
22117 ac_top_srcdir=$ac_top_builddir_sub
22118 ac_abs_top_srcdir=$ac_pwd ;;
22119 [\\/]* | ?:[\\/]* ) # Absolute name.
22120 ac_srcdir=$srcdir$ac_dir_suffix;
22121 ac_top_srcdir=$srcdir
22122 ac_abs_top_srcdir=$srcdir ;;
22123 *) # Relative name.
22124 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22125 ac_top_srcdir=$ac_top_build_prefix$srcdir
22126 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22127 esac
22128 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22131 cd "$ac_dir"
22133 # Check for guested configure; otherwise get Cygnus style configure.
22134 if test -f "$ac_srcdir/configure.gnu"; then
22135 ac_sub_configure=$ac_srcdir/configure.gnu
22136 elif test -f "$ac_srcdir/configure"; then
22137 ac_sub_configure=$ac_srcdir/configure
22138 elif test -f "$ac_srcdir/configure.in"; then
22139 # This should be Cygnus configure.
22140 ac_sub_configure=$ac_aux_dir/configure
22141 else
22142 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22143 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22144 ac_sub_configure=
22147 # The recursion is here.
22148 if test -n "$ac_sub_configure"; then
22149 # Make the cache file name correct relative to the subdirectory.
22150 case $cache_file in
22151 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22152 *) # Relative name.
22153 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22154 esac
22156 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22157 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22158 # The eval makes quoting arguments work.
22159 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22160 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22161 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22162 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22163 { (exit 1); exit 1; }; }
22166 cd "$ac_popdir"
22167 done