Make Clang happy.
[llvm.git] / configure
blob755746ff502464501b00c853766a74114b8eeeb1
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
706 ENABLE_LLVMC_DYNAMIC
707 ENABLE_LLVMC_DYNAMIC_PLUGINS
709 CXXFLAGS
710 ac_ct_CXX
712 ifGNUmake
713 LN_S
716 DATE
717 FIND
718 MKDIR
720 RANLIB
725 BINPWD
726 GRAPHVIZ
729 NEATO
730 TWOPI
731 CIRCO
733 DOTTY
734 PERL
735 HAVE_PERL
736 INSTALL_PROGRAM
737 INSTALL_SCRIPT
738 INSTALL_DATA
739 BZIP2
741 DOXYGEN
742 GROFF
743 GZIP
744 POD2HTML
745 POD2MAN
746 PDFROFF
747 RUNTEST
748 TCLSH
750 OCAMLC
751 OCAMLOPT
752 OCAMLDEP
753 OCAMLDOC
755 HAVE_LINK_RETAIN_SYMBOLS_FILE
756 INSTALL_LTDL_TRUE
757 INSTALL_LTDL_FALSE
758 CONVENIENCE_LTDL_TRUE
759 CONVENIENCE_LTDL_FALSE
760 LIBADD_DL
761 LLVMGCCCOMMAND
762 LLVMGXXCOMMAND
763 LLVMGCC
764 LLVMGXX
765 LLVMCC_OPTION
766 NO_VARIADIC_MACROS
767 NO_MISSING_FIELD_INITIALIZERS
768 USE_UDIS86
769 USE_OPROFILE
770 HAVE_PTHREAD
771 HUGE_VAL_SANITY
772 MMAP_FILE
773 LLVMCC1
774 LLVMCC1PLUS
775 LLVMGCCDIR
776 LLVMGCC_LANGS
777 SHLIBEXT
778 SHLIBPATH_VAR
779 LLVM_PREFIX
780 LLVM_BINDIR
781 LLVM_LIBDIR
782 LLVM_DATADIR
783 LLVM_DOCSDIR
784 LLVM_ETCDIR
785 LLVM_INCLUDEDIR
786 LLVM_INFODIR
787 LLVM_MANDIR
788 LLVM_CONFIGTIME
789 BINDINGS_TO_BUILD
790 ALL_BINDINGS
791 OCAML_LIBDIR
792 ENABLE_VISIBILITY_INLINES_HIDDEN
793 RPATH
794 RDYNAMIC
795 LIBOBJS
796 LTLIBOBJS'
797 ac_subst_files=''
798 ac_precious_vars='build_alias
799 host_alias
800 target_alias
802 CFLAGS
803 LDFLAGS
804 CPPFLAGS
807 CXXFLAGS
808 CCC'
809 ac_subdirs_all='projects/llvm-gcc
810 projects/test-suite
811 projects/llvm-test
812 projects/poolalloc
813 projects/llvm-poolalloc
814 projects/sample
815 projects/privbracket
816 projects/llvm-stacker
817 projects/llvm-reopt
818 projects/llvm-java
819 projects/llvm-tv
820 projects/safecode
821 projects/llvm-kernel'
823 # Initialize some variables set by options.
824 ac_init_help=
825 ac_init_version=false
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
869 ac_prev=
870 ac_dashdash=
871 for ac_option
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
876 ac_prev=
877 continue
880 case $ac_option in
881 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *) ac_optarg=yes ;;
883 esac
885 # Accept the important Cygnus configure options, so we can diagnose typos.
887 case $ac_dashdash$ac_option in
889 ac_dashdash=yes ;;
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 ac_prev=bindir ;;
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 bindir=$ac_optarg ;;
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
908 --config-cache | -C)
909 cache_file=config.cache ;;
911 -datadir | --datadir | --datadi | --datad)
912 ac_prev=datadir ;;
913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
914 datadir=$ac_optarg ;;
916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
923 -disable-* | --disable-*)
924 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928 { (exit 1); exit 1; }; }
929 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930 eval enable_$ac_feature=no ;;
932 -docdir | --docdir | --docdi | --doc | --do)
933 ac_prev=docdir ;;
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 docdir=$ac_optarg ;;
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 ac_prev=dvidir ;;
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 dvidir=$ac_optarg ;;
942 -enable-* | --enable-*)
943 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
946 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
947 { (exit 1); exit 1; }; }
948 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
949 eval enable_$ac_feature=\$ac_optarg ;;
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
962 with_gas=yes ;;
964 -help | --help | --hel | --he | -h)
965 ac_init_help=long ;;
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 ac_prev=htmldir ;;
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 | --ht=*)
980 htmldir=$ac_optarg ;;
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 ac_prev=infodir ;;
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
994 -libdir | --libdir | --libdi | --libd)
995 ac_prev=libdir ;;
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 libdir=$ac_optarg ;;
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 ac_prev=mandir ;;
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1025 with_fp=no ;;
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1029 no_create=yes ;;
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 no_recursion=yes ;;
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 ac_prev=prefix ;;
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 ac_prev=pdfdir ;;
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1085 -psdir | --psdir | --psdi | --psd | --ps)
1086 ac_prev=psdir ;;
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 psdir=$ac_optarg ;;
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 silent=yes ;;
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 ac_prev=sbindir ;;
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 | --sbi=* | --sb=*)
1098 sbindir=$ac_optarg ;;
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1103 | --sha | --sh)
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 | --sha=* | --sh=*)
1109 sharedstatedir=$ac_optarg ;;
1111 -site | --site | --sit)
1112 ac_prev=site ;;
1113 -site=* | --site=* | --sit=*)
1114 site=$ac_optarg ;;
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 ac_prev=srcdir ;;
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 verbose=yes ;;
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1139 -with-* | --with-*)
1140 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1143 { echo "$as_me: error: invalid package name: $ac_package" >&2
1144 { (exit 1); exit 1; }; }
1145 ac_package=`echo $ac_package| sed 's/-/_/g'`
1146 eval with_$ac_package=\$ac_optarg ;;
1148 -without-* | --without-*)
1149 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package | sed 's/-/_/g'`
1155 eval with_$ac_package=no ;;
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1175 -*) { echo "$as_me: error: unrecognized option: $ac_option
1176 Try \`$0 --help' for more information." >&2
1177 { (exit 1); exit 1; }; }
1180 *=*)
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1184 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1185 { (exit 1); exit 1; }; }
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1190 # FIXME: should be removed in autoconf 3.0.
1191 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197 esac
1198 done
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 { echo "$as_me: error: missing argument to $ac_option" >&2
1203 { (exit 1); exit 1; }; }
1206 # Be sure to have absolute directory names.
1207 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1212 eval ac_val=\$$ac_var
1213 case $ac_val in
1214 [\\/$]* | ?:[\\/]* ) continue;;
1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216 esac
1217 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1218 { (exit 1); exit 1; }; }
1219 done
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1224 build=$build_alias
1225 host=$host_alias
1226 target=$target_alias
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x; then
1230 if test "x$build_alias" = x; then
1231 cross_compiling=maybe
1232 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1233 If a cross compiler is detected then cross compile mode will be used." >&2
1234 elif test "x$build_alias" != "x$host_alias"; then
1235 cross_compiling=yes
1239 ac_tool_prefix=
1240 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242 test "$silent" = yes && exec 6>/dev/null
1245 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246 ac_ls_di=`ls -di .` &&
1247 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248 { echo "$as_me: error: Working directory cannot be determined" >&2
1249 { (exit 1); exit 1; }; }
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 { echo "$as_me: error: pwd does not report name of working directory" >&2
1252 { (exit 1); exit 1; }; }
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$0" ||
1260 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$0" : 'X\(//\)[^/]' \| \
1262 X"$0" : 'X\(//\)$' \| \
1263 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1264 echo X"$0" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1273 /^X\(\/\/\)$/{
1274 s//\1/
1277 /^X\(\/\).*/{
1278 s//\1/
1281 s/.*/./; q'`
1282 srcdir=$ac_confdir
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 srcdir=..
1286 else
1287 ac_srcdir_defaulted=no
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1292 { (exit 1); exit 1; }; }
1294 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 ac_abs_confdir=`(
1296 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1297 { (exit 1); exit 1; }; }
1298 pwd)`
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 srcdir=.
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1306 case $srcdir in
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 esac
1309 for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 done
1317 # Report the --help message.
1319 if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1322 cat <<_ACEOF
1323 \`configure' configures llvm 2.8svn to adapt to many kinds of systems.
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE. See below for descriptions of some of the useful variables.
1330 Defaults for the options are specified in brackets.
1332 Configuration:
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343 Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 [PREFIX]
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1354 For better control, use the options below.
1356 Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
1376 _ACEOF
1378 cat <<\_ACEOF
1380 System types:
1381 --build=BUILD configure for building on BUILD [guessed]
1382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383 --target=TARGET configure for building compilers for TARGET [HOST]
1384 _ACEOF
1387 if test -n "$ac_init_help"; then
1388 case $ac_init_help in
1389 short | recursive ) echo "Configuration of llvm 2.8svn:";;
1390 esac
1391 cat <<\_ACEOF
1393 Optional Features:
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1396 --enable-optimized Compile with optimizations enabled (default is NO)
1397 --enable-profiling Compile with profiling enabled (default is NO)
1398 --enable-assertions Compile with assertion checks enabled (default is
1399 YES)
1400 --enable-expensive-checks
1401 Compile with expensive debug checks enabled (default
1402 is NO)
1403 --enable-debug-runtime Build runtime libs with debug symbols (default is
1405 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1406 optimization is on and YES if it's off)
1407 --enable-jit Enable Just In Time Compiling (default is YES)
1408 --enable-doxygen Build doxygen documentation (default is NO)
1409 --enable-threads Use threads if available (default is YES)
1410 --enable-pic Build LLVM with Position Independent Code (default
1411 is YES)
1412 --enable-shared Build a shared library and link tools against it
1413 (default is NO)
1414 --enable-timestamps Enable embedding timestamp information in build
1415 (default is YES)
1416 --enable-targets Build specific host targets: all or
1417 target1,target2,... Valid targets are: host, x86,
1418 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1419 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1420 and cpp (default=all)
1421 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1422 %a (default is YES)
1423 --enable-bindings Build specific language bindings:
1424 all,auto,none,{binding-name} (default=auto)
1425 --enable-libffi Check for the presence of libffi (default is NO)
1426 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1427 Win32)
1428 --enable-llvmc-dynamic-plugins
1429 Enable dynamic LLVMC plugins (default is YES)
1430 --enable-ltdl-install install libltdl
1432 Optional Packages:
1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1435 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1436 searches PATH)
1437 --with-llvmgcc Specify location of llvm-gcc driver (default
1438 searches PATH)
1439 --with-llvmgxx Specify location of llvm-g++ driver (default
1440 searches PATH)
1441 --with-clang Specify location of clang compiler (default is
1442 --with-built-clang)
1443 --with-built-clang Use the compiled Clang as the LLVM compiler
1444 (default=check)
1445 --with-optimize-option Select the compiler options to use for optimized
1446 builds
1447 --with-extra-options Specify additional options to compile LLVM with
1448 --with-ocaml-libdir Specify install location for ocaml bindings (default
1449 is stdlib)
1450 --with-c-include-dirs Colon separated list of directories clang will
1451 search for headers
1452 --with-cxx-include-root Directory with the libstdc++ headers.
1453 --with-cxx-include-arch Architecture of the libstdc++ headers.
1454 --with-cxx-include-32bit-dir
1455 32 bit multilib dir.
1456 --with-cxx-include-64bit-dir
1457 64 bit multilib directory.
1458 --with-binutils-include Specify path to binutils/include/ containing
1459 plugin-api.h file for gold plugin.
1460 --with-tclinclude directory where tcl headers are
1461 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1462 clang, or none; default=check)
1463 --with-udis86=<path> Use udis86 external x86 disassembler library
1464 --with-oprofile=<prefix>
1465 Tell OProfile >= 0.9.4 how to symbolize JIT output
1467 Some influential environment variables:
1468 CC C compiler command
1469 CFLAGS C compiler flags
1470 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1471 nonstandard directory <lib dir>
1472 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1473 you have headers in a nonstandard directory <include dir>
1474 CPP C preprocessor
1475 CXX C++ compiler command
1476 CXXFLAGS C++ compiler flags
1478 Use these variables to override the choices made by `configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1481 Report bugs to <llvmbugs@cs.uiuc.edu>.
1482 _ACEOF
1483 ac_status=$?
1486 if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489 test -d "$ac_dir" || continue
1490 ac_builddir=.
1492 case "$ac_dir" in
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1496 # A ".." for each directory in $ac_dir_suffix.
1497 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501 esac ;;
1502 esac
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1508 case $srcdir in
1509 .) # We are building in place.
1510 ac_srcdir=.
1511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
1514 ac_srcdir=$srcdir$ac_dir_suffix;
1515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1517 *) # Relative name.
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 esac
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1527 echo &&
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure" --help=recursive
1532 else
1533 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534 fi || ac_status=$?
1535 cd "$ac_pwd" || { ac_status=$?; break; }
1536 done
1539 test -n "$ac_init_help" && exit $ac_status
1540 if $ac_init_version; then
1541 cat <<\_ACEOF
1542 llvm configure 2.8svn
1543 generated by GNU Autoconf 2.60
1545 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1546 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1550 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1551 _ACEOF
1552 exit
1554 cat >config.log <<_ACEOF
1555 This file contains any messages produced by compilers while
1556 running configure, to aid debugging if configure makes a mistake.
1558 It was created by llvm $as_me 2.8svn, which was
1559 generated by GNU Autoconf 2.60. Invocation command line was
1561 $ $0 $@
1563 _ACEOF
1564 exec 5>>config.log
1566 cat <<_ASUNAME
1567 ## --------- ##
1568 ## Platform. ##
1569 ## --------- ##
1571 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1572 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1573 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1574 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1575 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1577 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1578 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1580 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1581 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1582 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1583 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1584 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1585 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1586 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1588 _ASUNAME
1590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591 for as_dir in $PATH
1593 IFS=$as_save_IFS
1594 test -z "$as_dir" && as_dir=.
1595 echo "PATH: $as_dir"
1596 done
1597 IFS=$as_save_IFS
1599 } >&5
1601 cat >&5 <<_ACEOF
1604 ## ----------- ##
1605 ## Core tests. ##
1606 ## ----------- ##
1608 _ACEOF
1611 # Keep a trace of the command line.
1612 # Strip out --no-create and --no-recursion so they do not pile up.
1613 # Strip out --silent because we don't want to record it for future runs.
1614 # Also quote any args containing shell meta-characters.
1615 # Make two passes to allow for proper duplicate-argument suppression.
1616 ac_configure_args=
1617 ac_configure_args0=
1618 ac_configure_args1=
1619 ac_must_keep_next=false
1620 for ac_pass in 1 2
1622 for ac_arg
1624 case $ac_arg in
1625 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1626 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1627 | -silent | --silent | --silen | --sile | --sil)
1628 continue ;;
1629 *\'*)
1630 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1631 esac
1632 case $ac_pass in
1633 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1635 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1636 if test $ac_must_keep_next = true; then
1637 ac_must_keep_next=false # Got value, back to normal.
1638 else
1639 case $ac_arg in
1640 *=* | --config-cache | -C | -disable-* | --disable-* \
1641 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1642 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1643 | -with-* | --with-* | -without-* | --without-* | --x)
1644 case "$ac_configure_args0 " in
1645 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1646 esac
1648 -* ) ac_must_keep_next=true ;;
1649 esac
1651 ac_configure_args="$ac_configure_args '$ac_arg'"
1653 esac
1654 done
1655 done
1656 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1657 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1659 # When interrupted or exit'd, cleanup temporary files, and complete
1660 # config.log. We remove comments because anyway the quotes in there
1661 # would cause problems or look ugly.
1662 # WARNING: Use '\'' to represent an apostrophe within the trap.
1663 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1664 trap 'exit_status=$?
1665 # Save into config.log some information that might help in debugging.
1667 echo
1669 cat <<\_ASBOX
1670 ## ---------------- ##
1671 ## Cache variables. ##
1672 ## ---------------- ##
1673 _ASBOX
1674 echo
1675 # The following way of writing the cache mishandles newlines in values,
1677 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1678 eval ac_val=\$$ac_var
1679 case $ac_val in #(
1680 *${as_nl}*)
1681 case $ac_var in #(
1682 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1683 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1684 esac
1685 case $ac_var in #(
1686 _ | IFS | as_nl) ;; #(
1687 *) $as_unset $ac_var ;;
1688 esac ;;
1689 esac
1690 done
1691 (set) 2>&1 |
1692 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1693 *${as_nl}ac_space=\ *)
1694 sed -n \
1695 "s/'\''/'\''\\\\'\'''\''/g;
1696 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1697 ;; #(
1699 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1701 esac |
1702 sort
1704 echo
1706 cat <<\_ASBOX
1707 ## ----------------- ##
1708 ## Output variables. ##
1709 ## ----------------- ##
1710 _ASBOX
1711 echo
1712 for ac_var in $ac_subst_vars
1714 eval ac_val=\$$ac_var
1715 case $ac_val in
1716 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1717 esac
1718 echo "$ac_var='\''$ac_val'\''"
1719 done | sort
1720 echo
1722 if test -n "$ac_subst_files"; then
1723 cat <<\_ASBOX
1724 ## ------------------- ##
1725 ## File substitutions. ##
1726 ## ------------------- ##
1727 _ASBOX
1728 echo
1729 for ac_var in $ac_subst_files
1731 eval ac_val=\$$ac_var
1732 case $ac_val in
1733 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1734 esac
1735 echo "$ac_var='\''$ac_val'\''"
1736 done | sort
1737 echo
1740 if test -s confdefs.h; then
1741 cat <<\_ASBOX
1742 ## ----------- ##
1743 ## confdefs.h. ##
1744 ## ----------- ##
1745 _ASBOX
1746 echo
1747 cat confdefs.h
1748 echo
1750 test "$ac_signal" != 0 &&
1751 echo "$as_me: caught signal $ac_signal"
1752 echo "$as_me: exit $exit_status"
1753 } >&5
1754 rm -f core *.core core.conftest.* &&
1755 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1756 exit $exit_status
1758 for ac_signal in 1 2 13 15; do
1759 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1760 done
1761 ac_signal=0
1763 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1764 rm -f -r conftest* confdefs.h
1766 # Predefined preprocessor variables.
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_NAME "$PACKAGE_NAME"
1770 _ACEOF
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1775 _ACEOF
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1780 _ACEOF
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_STRING "$PACKAGE_STRING"
1785 _ACEOF
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1790 _ACEOF
1793 # Let the site file select an alternate cache file if it wants to.
1794 # Prefer explicitly selected file to automatically selected ones.
1795 if test -n "$CONFIG_SITE"; then
1796 set x "$CONFIG_SITE"
1797 elif test "x$prefix" != xNONE; then
1798 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1799 else
1800 set x "$ac_default_prefix/share/config.site" \
1801 "$ac_default_prefix/etc/config.site"
1803 shift
1804 for ac_site_file
1806 if test -r "$ac_site_file"; then
1807 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1808 echo "$as_me: loading site script $ac_site_file" >&6;}
1809 sed 's/^/| /' "$ac_site_file" >&5
1810 . "$ac_site_file"
1812 done
1814 if test -r "$cache_file"; then
1815 # Some versions of bash will fail to source /dev/null (special
1816 # files actually), so we avoid doing that.
1817 if test -f "$cache_file"; then
1818 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1819 echo "$as_me: loading cache $cache_file" >&6;}
1820 case $cache_file in
1821 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1822 *) . "./$cache_file";;
1823 esac
1825 else
1826 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1827 echo "$as_me: creating cache $cache_file" >&6;}
1828 >$cache_file
1831 # Check that the precious variables saved in the cache have kept the same
1832 # value.
1833 ac_cache_corrupted=false
1834 for ac_var in $ac_precious_vars; do
1835 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1836 eval ac_new_set=\$ac_env_${ac_var}_set
1837 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1838 eval ac_new_val=\$ac_env_${ac_var}_value
1839 case $ac_old_set,$ac_new_set in
1840 set,)
1841 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1842 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1843 ac_cache_corrupted=: ;;
1844 ,set)
1845 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1846 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1847 ac_cache_corrupted=: ;;
1848 ,);;
1850 if test "x$ac_old_val" != "x$ac_new_val"; then
1851 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1852 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1853 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1854 echo "$as_me: former value: $ac_old_val" >&2;}
1855 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1856 echo "$as_me: current value: $ac_new_val" >&2;}
1857 ac_cache_corrupted=:
1858 fi;;
1859 esac
1860 # Pass precious variables to config.status.
1861 if test "$ac_new_set" = set; then
1862 case $ac_new_val in
1863 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1864 *) ac_arg=$ac_var=$ac_new_val ;;
1865 esac
1866 case " $ac_configure_args " in
1867 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1868 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1869 esac
1871 done
1872 if $ac_cache_corrupted; then
1873 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1874 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1875 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1876 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1877 { (exit 1); exit 1; }; }
1904 ac_ext=c
1905 ac_cpp='$CPP $CPPFLAGS'
1906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1912 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1920 ac_aux_dir=
1921 for ac_dir in autoconf "$srcdir"/autoconf; do
1922 if test -f "$ac_dir/install-sh"; then
1923 ac_aux_dir=$ac_dir
1924 ac_install_sh="$ac_aux_dir/install-sh -c"
1925 break
1926 elif test -f "$ac_dir/install.sh"; then
1927 ac_aux_dir=$ac_dir
1928 ac_install_sh="$ac_aux_dir/install.sh -c"
1929 break
1930 elif test -f "$ac_dir/shtool"; then
1931 ac_aux_dir=$ac_dir
1932 ac_install_sh="$ac_aux_dir/shtool install -c"
1933 break
1935 done
1936 if test -z "$ac_aux_dir"; then
1937 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1938 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1939 { (exit 1); exit 1; }; }
1942 # These three variables are undocumented and unsupported,
1943 # and are intended to be withdrawn in a future Autoconf release.
1944 # They can cause serious problems if a builder's source tree is in a directory
1945 # whose full name contains unusual characters.
1946 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1947 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1948 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1952 if test ${srcdir} != "." ; then
1953 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1954 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1955 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1956 { (exit 1); exit 1; }; }
1962 if test -d ${srcdir}/projects/llvm-gcc ; then
1963 subdirs="$subdirs projects/llvm-gcc"
1967 if test -d ${srcdir}/projects/test-suite ; then
1968 subdirs="$subdirs projects/test-suite"
1972 if test -d ${srcdir}/projects/llvm-test ; then
1973 subdirs="$subdirs projects/llvm-test"
1977 if test -d ${srcdir}/projects/poolalloc ; then
1978 subdirs="$subdirs projects/poolalloc"
1982 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1983 subdirs="$subdirs projects/llvm-poolalloc"
1987 for i in `ls ${srcdir}/projects`
1989 if test -d ${srcdir}/projects/${i} ; then
1990 case ${i} in
1991 CVS) ;;
1992 sample) subdirs="$subdirs projects/sample"
1994 privbracket) subdirs="$subdirs projects/privbracket"
1996 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1998 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2000 llvm-java) subdirs="$subdirs projects/llvm-java"
2002 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2004 safecode) subdirs="$subdirs projects/safecode"
2006 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2008 llvm-gcc) ;;
2009 test-suite) ;;
2010 llvm-test) ;;
2011 poolalloc) ;;
2012 llvm-poolalloc) ;;
2014 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2015 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2017 esac
2019 done
2022 # Make sure we can run config.sub.
2023 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2024 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2025 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2026 { (exit 1); exit 1; }; }
2028 { echo "$as_me:$LINENO: checking build system type" >&5
2029 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2030 if test "${ac_cv_build+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033 ac_build_alias=$build_alias
2034 test "x$ac_build_alias" = x &&
2035 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2036 test "x$ac_build_alias" = x &&
2037 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2038 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2039 { (exit 1); exit 1; }; }
2040 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2041 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2042 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2043 { (exit 1); exit 1; }; }
2046 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2047 echo "${ECHO_T}$ac_cv_build" >&6; }
2048 case $ac_cv_build in
2049 *-*-*) ;;
2050 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2051 echo "$as_me: error: invalid value of canonical build" >&2;}
2052 { (exit 1); exit 1; }; };;
2053 esac
2054 build=$ac_cv_build
2055 ac_save_IFS=$IFS; IFS='-'
2056 set x $ac_cv_build
2057 shift
2058 build_cpu=$1
2059 build_vendor=$2
2060 shift; shift
2061 # Remember, the first character of IFS is used to create $*,
2062 # except with old shells:
2063 build_os=$*
2064 IFS=$ac_save_IFS
2065 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2068 { echo "$as_me:$LINENO: checking host system type" >&5
2069 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2070 if test "${ac_cv_host+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073 if test "x$host_alias" = x; then
2074 ac_cv_host=$ac_cv_build
2075 else
2076 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2077 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2078 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2079 { (exit 1); exit 1; }; }
2083 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2084 echo "${ECHO_T}$ac_cv_host" >&6; }
2085 case $ac_cv_host in
2086 *-*-*) ;;
2087 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2088 echo "$as_me: error: invalid value of canonical host" >&2;}
2089 { (exit 1); exit 1; }; };;
2090 esac
2091 host=$ac_cv_host
2092 ac_save_IFS=$IFS; IFS='-'
2093 set x $ac_cv_host
2094 shift
2095 host_cpu=$1
2096 host_vendor=$2
2097 shift; shift
2098 # Remember, the first character of IFS is used to create $*,
2099 # except with old shells:
2100 host_os=$*
2101 IFS=$ac_save_IFS
2102 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2105 { echo "$as_me:$LINENO: checking target system type" >&5
2106 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2107 if test "${ac_cv_target+set}" = set; then
2108 echo $ECHO_N "(cached) $ECHO_C" >&6
2109 else
2110 if test "x$target_alias" = x; then
2111 ac_cv_target=$ac_cv_host
2112 else
2113 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2114 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2115 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2116 { (exit 1); exit 1; }; }
2120 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2121 echo "${ECHO_T}$ac_cv_target" >&6; }
2122 case $ac_cv_target in
2123 *-*-*) ;;
2124 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2125 echo "$as_me: error: invalid value of canonical target" >&2;}
2126 { (exit 1); exit 1; }; };;
2127 esac
2128 target=$ac_cv_target
2129 ac_save_IFS=$IFS; IFS='-'
2130 set x $ac_cv_target
2131 shift
2132 target_cpu=$1
2133 target_vendor=$2
2134 shift; shift
2135 # Remember, the first character of IFS is used to create $*,
2136 # except with old shells:
2137 target_os=$*
2138 IFS=$ac_save_IFS
2139 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2142 # The aliases save the names the user supplied, while $host etc.
2143 # will get canonicalized.
2144 test -n "$target_alias" &&
2145 test "$program_prefix$program_suffix$program_transform_name" = \
2146 NONENONEs,x,x, &&
2147 program_prefix=${target_alias}-
2149 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2150 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2151 if test "${llvm_cv_os_type+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154 case $host in
2155 *-*-aix*)
2156 llvm_cv_link_all_option="-Wl,--whole-archive"
2157 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2158 llvm_cv_os_type="AIX"
2159 llvm_cv_platform_type="Unix" ;;
2160 *-*-irix*)
2161 llvm_cv_link_all_option="-Wl,--whole-archive"
2162 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2163 llvm_cv_os_type="IRIX"
2164 llvm_cv_platform_type="Unix" ;;
2165 *-*-cygwin*)
2166 llvm_cv_link_all_option="-Wl,--whole-archive"
2167 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2168 llvm_cv_os_type="Cygwin"
2169 llvm_cv_platform_type="Unix" ;;
2170 *-*-darwin*)
2171 llvm_cv_link_all_option="-Wl,-all_load"
2172 llvm_cv_no_link_all_option="-Wl,-noall_load"
2173 llvm_cv_os_type="Darwin"
2174 llvm_cv_platform_type="Unix" ;;
2175 *-*-minix*)
2176 llvm_cv_link_all_option="-Wl,-all_load"
2177 llvm_cv_no_link_all_option="-Wl,-noall_load"
2178 llvm_cv_os_type="Minix"
2179 llvm_cv_platform_type="Unix" ;;
2180 *-*-freebsd*)
2181 llvm_cv_link_all_option="-Wl,--whole-archive"
2182 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2183 llvm_cv_os_type="FreeBSD"
2184 llvm_cv_platform_type="Unix" ;;
2185 *-*-openbsd*)
2186 llvm_cv_link_all_option="-Wl,--whole-archive"
2187 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2188 llvm_cv_os_type="OpenBSD"
2189 llvm_cv_platform_type="Unix" ;;
2190 *-*-netbsd*)
2191 llvm_cv_link_all_option="-Wl,--whole-archive"
2192 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2193 llvm_cv_os_type="NetBSD"
2194 llvm_cv_platform_type="Unix" ;;
2195 *-*-dragonfly*)
2196 llvm_cv_link_all_option="-Wl,--whole-archive"
2197 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2198 llvm_cv_os_type="DragonFly"
2199 llvm_cv_platform_type="Unix" ;;
2200 *-*-hpux*)
2201 llvm_cv_link_all_option="-Wl,--whole-archive"
2202 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2203 llvm_cv_os_type="HP-UX"
2204 llvm_cv_platform_type="Unix" ;;
2205 *-*-interix*)
2206 llvm_cv_link_all_option="-Wl,--whole-archive"
2207 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2208 llvm_cv_os_type="Interix"
2209 llvm_cv_platform_type="Unix" ;;
2210 *-*-linux*)
2211 llvm_cv_link_all_option="-Wl,--whole-archive"
2212 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2213 llvm_cv_os_type="Linux"
2214 llvm_cv_platform_type="Unix" ;;
2215 *-*-solaris*)
2216 llvm_cv_link_all_option="-Wl,-z,allextract"
2217 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2218 llvm_cv_os_type="SunOS"
2219 llvm_cv_platform_type="Unix" ;;
2220 *-*-auroraux*)
2221 llvm_cv_link_all_option="-Wl,-z,allextract"
2222 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2223 llvm_cv_os_type="AuroraUX"
2224 llvm_cv_platform_type="Unix" ;;
2225 *-*-win32*)
2226 llvm_cv_link_all_option="-Wl,--whole-archive"
2227 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2228 llvm_cv_os_type="Win32"
2229 llvm_cv_platform_type="Win32" ;;
2230 *-*-mingw*)
2231 llvm_cv_link_all_option="-Wl,--whole-archive"
2232 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2233 llvm_cv_os_type="MingW"
2234 llvm_cv_platform_type="Win32" ;;
2235 *-*-haiku*)
2236 llvm_cv_link_all_option="-Wl,--whole-archive"
2237 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2238 llvm_cv_os_type="Haiku"
2239 llvm_cv_platform_type="Unix" ;;
2240 *-unknown-eabi*)
2241 llvm_cv_link_all_option="-Wl,--whole-archive"
2242 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2243 llvm_cv_os_type="Freestanding"
2244 llvm_cv_platform_type="Unix" ;;
2245 *-unknown-elf*)
2246 llvm_cv_link_all_option="-Wl,--whole-archive"
2247 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2248 llvm_cv_os_type="Freestanding"
2249 llvm_cv_platform_type="Unix" ;;
2251 llvm_cv_link_all_option=""
2252 llvm_cv_no_link_all_option=""
2253 llvm_cv_os_type="Unknown"
2254 llvm_cv_platform_type="Unknown" ;;
2255 esac
2257 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2258 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2260 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2261 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2262 if test "${llvm_cv_target_os_type+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2264 else
2265 case $target in
2266 *-*-aix*)
2267 llvm_cv_target_os_type="AIX" ;;
2268 *-*-irix*)
2269 llvm_cv_target_os_type="IRIX" ;;
2270 *-*-cygwin*)
2271 llvm_cv_target_os_type="Cygwin" ;;
2272 *-*-darwin*)
2273 llvm_cv_target_os_type="Darwin" ;;
2274 *-*-minix*)
2275 llvm_cv_target_os_type="Minix" ;;
2276 *-*-freebsd*)
2277 llvm_cv_target_os_type="FreeBSD" ;;
2278 *-*-openbsd*)
2279 llvm_cv_target_os_type="OpenBSD" ;;
2280 *-*-netbsd*)
2281 llvm_cv_target_os_type="NetBSD" ;;
2282 *-*-dragonfly*)
2283 llvm_cv_target_os_type="DragonFly" ;;
2284 *-*-hpux*)
2285 llvm_cv_target_os_type="HP-UX" ;;
2286 *-*-interix*)
2287 llvm_cv_target_os_type="Interix" ;;
2288 *-*-linux*)
2289 llvm_cv_target_os_type="Linux" ;;
2290 *-*-solaris*)
2291 llvm_cv_target_os_type="SunOS" ;;
2292 *-*-auroraux*)
2293 llvm_cv_target_os_type="AuroraUX" ;;
2294 *-*-win32*)
2295 llvm_cv_target_os_type="Win32" ;;
2296 *-*-mingw*)
2297 llvm_cv_target_os_type="MingW" ;;
2298 *-*-haiku*)
2299 llvm_cv_target_os_type="Haiku" ;;
2300 *-unknown-eabi*)
2301 llvm_cv_target_os_type="Freestanding" ;;
2303 llvm_cv_target_os_type="Unknown" ;;
2304 esac
2306 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2307 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2309 if test "$llvm_cv_os_type" = "Unknown" ; then
2310 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2311 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2312 { (exit 1); exit 1; }; }
2315 OS=$llvm_cv_os_type
2317 HOST_OS=$llvm_cv_os_type
2319 TARGET_OS=$llvm_cv_target_os_type
2322 LINKALL=$llvm_cv_link_all_option
2324 NOLINKALL=$llvm_cv_no_link_all_option
2327 case $llvm_cv_platform_type in
2328 Unix)
2330 cat >>confdefs.h <<\_ACEOF
2331 #define LLVM_ON_UNIX 1
2332 _ACEOF
2334 LLVM_ON_UNIX=1
2336 LLVM_ON_WIN32=0
2339 Win32)
2341 cat >>confdefs.h <<\_ACEOF
2342 #define LLVM_ON_WIN32 1
2343 _ACEOF
2345 LLVM_ON_UNIX=0
2347 LLVM_ON_WIN32=1
2350 esac
2352 { echo "$as_me:$LINENO: checking target architecture" >&5
2353 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2354 if test "${llvm_cv_target_arch+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357 case $target in
2358 i?86-*) llvm_cv_target_arch="x86" ;;
2359 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2360 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2361 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2362 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2363 arm*-*) llvm_cv_target_arch="ARM" ;;
2364 mips-*) llvm_cv_target_arch="Mips" ;;
2365 pic16-*) llvm_cv_target_arch="PIC16" ;;
2366 xcore-*) llvm_cv_target_arch="XCore" ;;
2367 msp430-*) llvm_cv_target_arch="MSP430" ;;
2368 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2369 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2370 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2371 *) llvm_cv_target_arch="Unknown" ;;
2372 esac
2374 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2375 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2377 if test "$llvm_cv_target_arch" = "Unknown" ; then
2378 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2379 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2382 # Determine the LLVM native architecture for the target
2383 case "$llvm_cv_target_arch" in
2384 x86) LLVM_NATIVE_ARCH="X86" ;;
2385 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2386 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2387 esac
2389 ARCH=$llvm_cv_target_arch
2392 ac_ext=c
2393 ac_cpp='$CPP $CPPFLAGS'
2394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2397 if test -n "$ac_tool_prefix"; then
2398 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2399 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2402 if test "${ac_cv_prog_CC+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 else
2405 if test -n "$CC"; then
2406 ac_cv_prog_CC="$CC" # Let the user override the test.
2407 else
2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409 for as_dir in $PATH
2411 IFS=$as_save_IFS
2412 test -z "$as_dir" && as_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2415 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 break 2
2419 done
2420 done
2421 IFS=$as_save_IFS
2425 CC=$ac_cv_prog_CC
2426 if test -n "$CC"; then
2427 { echo "$as_me:$LINENO: result: $CC" >&5
2428 echo "${ECHO_T}$CC" >&6; }
2429 else
2430 { echo "$as_me:$LINENO: result: no" >&5
2431 echo "${ECHO_T}no" >&6; }
2436 if test -z "$ac_cv_prog_CC"; then
2437 ac_ct_CC=$CC
2438 # Extract the first word of "gcc", so it can be a program name with args.
2439 set dummy gcc; ac_word=$2
2440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445 if test -n "$ac_ct_CC"; then
2446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2455 ac_cv_prog_ac_ct_CC="gcc"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 break 2
2459 done
2460 done
2461 IFS=$as_save_IFS
2465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2466 if test -n "$ac_ct_CC"; then
2467 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2468 echo "${ECHO_T}$ac_ct_CC" >&6; }
2469 else
2470 { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2474 if test "x$ac_ct_CC" = x; then
2475 CC=""
2476 else
2477 case $cross_compiling:$ac_tool_warned in
2478 yes:)
2479 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2480 whose name does not start with the host triplet. If you think this
2481 configuration is useful to you, please write to autoconf@gnu.org." >&5
2482 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2483 whose name does not start with the host triplet. If you think this
2484 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2485 ac_tool_warned=yes ;;
2486 esac
2487 CC=$ac_ct_CC
2489 else
2490 CC="$ac_cv_prog_CC"
2493 if test -z "$CC"; then
2494 if test -n "$ac_tool_prefix"; then
2495 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2496 set dummy ${ac_tool_prefix}cc; ac_word=$2
2497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2499 if test "${ac_cv_prog_CC+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502 if test -n "$CC"; then
2503 ac_cv_prog_CC="$CC" # Let the user override the test.
2504 else
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 for as_dir in $PATH
2508 IFS=$as_save_IFS
2509 test -z "$as_dir" && as_dir=.
2510 for ac_exec_ext in '' $ac_executable_extensions; do
2511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2512 ac_cv_prog_CC="${ac_tool_prefix}cc"
2513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2514 break 2
2516 done
2517 done
2518 IFS=$as_save_IFS
2522 CC=$ac_cv_prog_CC
2523 if test -n "$CC"; then
2524 { echo "$as_me:$LINENO: result: $CC" >&5
2525 echo "${ECHO_T}$CC" >&6; }
2526 else
2527 { echo "$as_me:$LINENO: result: no" >&5
2528 echo "${ECHO_T}no" >&6; }
2534 if test -z "$CC"; then
2535 # Extract the first word of "cc", so it can be a program name with args.
2536 set dummy cc; ac_word=$2
2537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2539 if test "${ac_cv_prog_CC+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2541 else
2542 if test -n "$CC"; then
2543 ac_cv_prog_CC="$CC" # Let the user override the test.
2544 else
2545 ac_prog_rejected=no
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2553 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2554 ac_prog_rejected=yes
2555 continue
2557 ac_cv_prog_CC="cc"
2558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2559 break 2
2561 done
2562 done
2563 IFS=$as_save_IFS
2565 if test $ac_prog_rejected = yes; then
2566 # We found a bogon in the path, so make sure we never use it.
2567 set dummy $ac_cv_prog_CC
2568 shift
2569 if test $# != 0; then
2570 # We chose a different compiler from the bogus one.
2571 # However, it has the same basename, so the bogon will be chosen
2572 # first if we set CC to just the basename; use the full file name.
2573 shift
2574 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2579 CC=$ac_cv_prog_CC
2580 if test -n "$CC"; then
2581 { echo "$as_me:$LINENO: result: $CC" >&5
2582 echo "${ECHO_T}$CC" >&6; }
2583 else
2584 { echo "$as_me:$LINENO: result: no" >&5
2585 echo "${ECHO_T}no" >&6; }
2590 if test -z "$CC"; then
2591 if test -n "$ac_tool_prefix"; then
2592 for ac_prog in cl.exe
2594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2595 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2598 if test "${ac_cv_prog_CC+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2601 if test -n "$CC"; then
2602 ac_cv_prog_CC="$CC" # Let the user override the test.
2603 else
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2607 IFS=$as_save_IFS
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2611 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 break 2
2615 done
2616 done
2617 IFS=$as_save_IFS
2621 CC=$ac_cv_prog_CC
2622 if test -n "$CC"; then
2623 { echo "$as_me:$LINENO: result: $CC" >&5
2624 echo "${ECHO_T}$CC" >&6; }
2625 else
2626 { echo "$as_me:$LINENO: result: no" >&5
2627 echo "${ECHO_T}no" >&6; }
2631 test -n "$CC" && break
2632 done
2634 if test -z "$CC"; then
2635 ac_ct_CC=$CC
2636 for ac_prog in cl.exe
2638 # Extract the first word of "$ac_prog", so it can be a program name with args.
2639 set dummy $ac_prog; ac_word=$2
2640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2642 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2644 else
2645 if test -n "$ac_ct_CC"; then
2646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2647 else
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2655 ac_cv_prog_ac_ct_CC="$ac_prog"
2656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 break 2
2659 done
2660 done
2661 IFS=$as_save_IFS
2665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2666 if test -n "$ac_ct_CC"; then
2667 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2668 echo "${ECHO_T}$ac_ct_CC" >&6; }
2669 else
2670 { echo "$as_me:$LINENO: result: no" >&5
2671 echo "${ECHO_T}no" >&6; }
2675 test -n "$ac_ct_CC" && break
2676 done
2678 if test "x$ac_ct_CC" = x; then
2679 CC=""
2680 else
2681 case $cross_compiling:$ac_tool_warned in
2682 yes:)
2683 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2684 whose name does not start with the host triplet. If you think this
2685 configuration is useful to you, please write to autoconf@gnu.org." >&5
2686 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2687 whose name does not start with the host triplet. If you think this
2688 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2689 ac_tool_warned=yes ;;
2690 esac
2691 CC=$ac_ct_CC
2698 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2699 See \`config.log' for more details." >&5
2700 echo "$as_me: error: no acceptable C compiler found in \$PATH
2701 See \`config.log' for more details." >&2;}
2702 { (exit 1); exit 1; }; }
2704 # Provide some information about the compiler.
2705 echo "$as_me:$LINENO: checking for C compiler version" >&5
2706 ac_compiler=`set X $ac_compile; echo $2`
2707 { (ac_try="$ac_compiler --version >&5"
2708 case "(($ac_try" in
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2711 esac
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713 (eval "$ac_compiler --version >&5") 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }
2717 { (ac_try="$ac_compiler -v >&5"
2718 case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2721 esac
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_compiler -v >&5") 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }
2727 { (ac_try="$ac_compiler -V >&5"
2728 case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2731 esac
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_compiler -V >&5") 2>&5
2734 ac_status=$?
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }
2738 cat >conftest.$ac_ext <<_ACEOF
2739 /* confdefs.h. */
2740 _ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h. */
2746 main ()
2750 return 0;
2752 _ACEOF
2753 ac_clean_files_save=$ac_clean_files
2754 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2755 # Try to create an executable without -o first, disregard a.out.
2756 # It will help us diagnose broken compilers, and finding out an intuition
2757 # of exeext.
2758 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2759 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2760 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2762 # List of possible output files, starting from the most likely.
2763 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2764 # only as a last resort. b.out is created by i960 compilers.
2765 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2767 # The IRIX 6 linker writes into existing files which may not be
2768 # executable, retaining their permissions. Remove them first so a
2769 # subsequent execution test works.
2770 ac_rmfiles=
2771 for ac_file in $ac_files
2773 case $ac_file in
2774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2775 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2776 esac
2777 done
2778 rm -f $ac_rmfiles
2780 if { (ac_try="$ac_link_default"
2781 case "(($ac_try" in
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2784 esac
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786 (eval "$ac_link_default") 2>&5
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; then
2790 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2791 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2792 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2793 # so that the user can short-circuit this test for compilers unknown to
2794 # Autoconf.
2795 for ac_file in $ac_files
2797 test -f "$ac_file" || continue
2798 case $ac_file in
2799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2801 [ab].out )
2802 # We found the default executable, but exeext='' is most
2803 # certainly right.
2804 break;;
2805 *.* )
2806 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2807 then :; else
2808 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2810 # We set ac_cv_exeext here because the later test for it is not
2811 # safe: cross compilers may not add the suffix if given an `-o'
2812 # argument, so we may need to know it at that point already.
2813 # Even if this section looks crufty: it has the advantage of
2814 # actually working.
2815 break;;
2817 break;;
2818 esac
2819 done
2820 test "$ac_cv_exeext" = no && ac_cv_exeext=
2822 else
2823 echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2826 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2827 See \`config.log' for more details." >&5
2828 echo "$as_me: error: C compiler cannot create executables
2829 See \`config.log' for more details." >&2;}
2830 { (exit 77); exit 77; }; }
2833 ac_exeext=$ac_cv_exeext
2834 { echo "$as_me:$LINENO: result: $ac_file" >&5
2835 echo "${ECHO_T}$ac_file" >&6; }
2837 # Check that the compiler produces executables we can run. If not, either
2838 # the compiler is broken, or we cross compile.
2839 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2840 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2841 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2842 # If not cross compiling, check that we can run a simple program.
2843 if test "$cross_compiling" != yes; then
2844 if { ac_try='./$ac_file'
2845 { (case "(($ac_try" in
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2848 esac
2849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850 (eval "$ac_try") 2>&5
2851 ac_status=$?
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; }; then
2854 cross_compiling=no
2855 else
2856 if test "$cross_compiling" = maybe; then
2857 cross_compiling=yes
2858 else
2859 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2860 If you meant to cross compile, use \`--host'.
2861 See \`config.log' for more details." >&5
2862 echo "$as_me: error: cannot run C compiled programs.
2863 If you meant to cross compile, use \`--host'.
2864 See \`config.log' for more details." >&2;}
2865 { (exit 1); exit 1; }; }
2869 { echo "$as_me:$LINENO: result: yes" >&5
2870 echo "${ECHO_T}yes" >&6; }
2872 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2873 ac_clean_files=$ac_clean_files_save
2874 # Check that the compiler produces executables we can run. If not, either
2875 # the compiler is broken, or we cross compile.
2876 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2877 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2878 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2879 echo "${ECHO_T}$cross_compiling" >&6; }
2881 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2882 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2883 if { (ac_try="$ac_link"
2884 case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887 esac
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_link") 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; then
2893 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2894 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2895 # work properly (i.e., refer to `conftest.exe'), while it won't with
2896 # `rm'.
2897 for ac_file in conftest.exe conftest conftest.*; do
2898 test -f "$ac_file" || continue
2899 case $ac_file in
2900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2901 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2902 break;;
2903 * ) break;;
2904 esac
2905 done
2906 else
2907 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2908 See \`config.log' for more details." >&5
2909 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2910 See \`config.log' for more details." >&2;}
2911 { (exit 1); exit 1; }; }
2914 rm -f conftest$ac_cv_exeext
2915 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2916 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2918 rm -f conftest.$ac_ext
2919 EXEEXT=$ac_cv_exeext
2920 ac_exeext=$EXEEXT
2921 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2922 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2923 if test "${ac_cv_objext+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 else
2926 cat >conftest.$ac_ext <<_ACEOF
2927 /* confdefs.h. */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2934 main ()
2938 return 0;
2940 _ACEOF
2941 rm -f conftest.o conftest.obj
2942 if { (ac_try="$ac_compile"
2943 case "(($ac_try" in
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2946 esac
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_compile") 2>&5
2949 ac_status=$?
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; then
2952 for ac_file in conftest.o conftest.obj conftest.*; do
2953 test -f "$ac_file" || continue;
2954 case $ac_file in
2955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2956 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2957 break;;
2958 esac
2959 done
2960 else
2961 echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2964 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2965 See \`config.log' for more details." >&5
2966 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2967 See \`config.log' for more details." >&2;}
2968 { (exit 1); exit 1; }; }
2971 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2973 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2974 echo "${ECHO_T}$ac_cv_objext" >&6; }
2975 OBJEXT=$ac_cv_objext
2976 ac_objext=$OBJEXT
2977 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2978 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2979 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 else
2982 cat >conftest.$ac_ext <<_ACEOF
2983 /* confdefs.h. */
2984 _ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
2990 main ()
2992 #ifndef __GNUC__
2993 choke me
2994 #endif
2997 return 0;
2999 _ACEOF
3000 rm -f conftest.$ac_objext
3001 if { (ac_try="$ac_compile"
3002 case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005 esac
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compile") 2>conftest.er1
3008 ac_status=$?
3009 grep -v '^ *+' conftest.er1 >conftest.err
3010 rm -f conftest.er1
3011 cat conftest.err >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } &&
3014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3015 { (case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3018 esac
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_try") 2>&5
3021 ac_status=$?
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }; } &&
3024 { ac_try='test -s conftest.$ac_objext'
3025 { (case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028 esac
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_try") 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; }; then
3034 ac_compiler_gnu=yes
3035 else
3036 echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3039 ac_compiler_gnu=no
3042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3043 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3046 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3047 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3048 GCC=`test $ac_compiler_gnu = yes && echo yes`
3049 ac_test_CFLAGS=${CFLAGS+set}
3050 ac_save_CFLAGS=$CFLAGS
3051 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3052 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3053 if test "${ac_cv_prog_cc_g+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3055 else
3056 ac_save_c_werror_flag=$ac_c_werror_flag
3057 ac_c_werror_flag=yes
3058 ac_cv_prog_cc_g=no
3059 CFLAGS="-g"
3060 cat >conftest.$ac_ext <<_ACEOF
3061 /* confdefs.h. */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3068 main ()
3072 return 0;
3074 _ACEOF
3075 rm -f conftest.$ac_objext
3076 if { (ac_try="$ac_compile"
3077 case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080 esac
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_compile") 2>conftest.er1
3083 ac_status=$?
3084 grep -v '^ *+' conftest.er1 >conftest.err
3085 rm -f conftest.er1
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } &&
3089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3090 { (case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093 esac
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_try") 2>&5
3096 ac_status=$?
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; } &&
3099 { ac_try='test -s conftest.$ac_objext'
3100 { (case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103 esac
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_try") 2>&5
3106 ac_status=$?
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
3109 ac_cv_prog_cc_g=yes
3110 else
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3114 CFLAGS=""
3115 cat >conftest.$ac_ext <<_ACEOF
3116 /* confdefs.h. */
3117 _ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h. */
3123 main ()
3127 return 0;
3129 _ACEOF
3130 rm -f conftest.$ac_objext
3131 if { (ac_try="$ac_compile"
3132 case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135 esac
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compile") 2>conftest.er1
3138 ac_status=$?
3139 grep -v '^ *+' conftest.er1 >conftest.err
3140 rm -f conftest.er1
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } &&
3144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3145 { (case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3148 esac
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_try") 2>&5
3151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; } &&
3154 { ac_try='test -s conftest.$ac_objext'
3155 { (case "(($ac_try" in
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3158 esac
3159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160 (eval "$ac_try") 2>&5
3161 ac_status=$?
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; }; then
3165 else
3166 echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3169 ac_c_werror_flag=$ac_save_c_werror_flag
3170 CFLAGS="-g"
3171 cat >conftest.$ac_ext <<_ACEOF
3172 /* confdefs.h. */
3173 _ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3179 main ()
3183 return 0;
3185 _ACEOF
3186 rm -f conftest.$ac_objext
3187 if { (ac_try="$ac_compile"
3188 case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191 esac
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_compile") 2>conftest.er1
3194 ac_status=$?
3195 grep -v '^ *+' conftest.er1 >conftest.err
3196 rm -f conftest.er1
3197 cat conftest.err >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } &&
3200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3201 { (case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204 esac
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_try") 2>&5
3207 ac_status=$?
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; } &&
3210 { ac_try='test -s conftest.$ac_objext'
3211 { (case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214 esac
3215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3216 (eval "$ac_try") 2>&5
3217 ac_status=$?
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3220 ac_cv_prog_cc_g=yes
3221 else
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 ac_c_werror_flag=$ac_save_c_werror_flag
3237 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3238 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3239 if test "$ac_test_CFLAGS" = set; then
3240 CFLAGS=$ac_save_CFLAGS
3241 elif test $ac_cv_prog_cc_g = yes; then
3242 if test "$GCC" = yes; then
3243 CFLAGS="-g -O2"
3244 else
3245 CFLAGS="-g"
3247 else
3248 if test "$GCC" = yes; then
3249 CFLAGS="-O2"
3250 else
3251 CFLAGS=
3254 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3255 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3256 if test "${ac_cv_prog_cc_c89+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259 ac_cv_prog_cc_c89=no
3260 ac_save_CC=$CC
3261 cat >conftest.$ac_ext <<_ACEOF
3262 /* confdefs.h. */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3267 #include <stdarg.h>
3268 #include <stdio.h>
3269 #include <sys/types.h>
3270 #include <sys/stat.h>
3271 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3272 struct buf { int x; };
3273 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3274 static char *e (p, i)
3275 char **p;
3276 int i;
3278 return p[i];
3280 static char *f (char * (*g) (char **, int), char **p, ...)
3282 char *s;
3283 va_list v;
3284 va_start (v,p);
3285 s = g (p, va_arg (v,int));
3286 va_end (v);
3287 return s;
3290 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3291 function prototypes and stuff, but not '\xHH' hex character constants.
3292 These don't provoke an error unfortunately, instead are silently treated
3293 as 'x'. The following induces an error, until -std is added to get
3294 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3295 array size at least. It's necessary to write '\x00'==0 to get something
3296 that's true only with -std. */
3297 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3299 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3300 inside strings and character constants. */
3301 #define FOO(x) 'x'
3302 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3304 int test (int i, double x);
3305 struct s1 {int (*f) (int a);};
3306 struct s2 {int (*f) (double a);};
3307 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3308 int argc;
3309 char **argv;
3311 main ()
3313 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3315 return 0;
3317 _ACEOF
3318 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3319 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3321 CC="$ac_save_CC $ac_arg"
3322 rm -f conftest.$ac_objext
3323 if { (ac_try="$ac_compile"
3324 case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327 esac
3328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_compile") 2>conftest.er1
3330 ac_status=$?
3331 grep -v '^ *+' conftest.er1 >conftest.err
3332 rm -f conftest.er1
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } &&
3336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3337 { (case "(($ac_try" in
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3340 esac
3341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342 (eval "$ac_try") 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; } &&
3346 { ac_try='test -s conftest.$ac_objext'
3347 { (case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350 esac
3351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352 (eval "$ac_try") 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; }; then
3356 ac_cv_prog_cc_c89=$ac_arg
3357 else
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3364 rm -f core conftest.err conftest.$ac_objext
3365 test "x$ac_cv_prog_cc_c89" != "xno" && break
3366 done
3367 rm -f conftest.$ac_ext
3368 CC=$ac_save_CC
3371 # AC_CACHE_VAL
3372 case "x$ac_cv_prog_cc_c89" in
3374 { echo "$as_me:$LINENO: result: none needed" >&5
3375 echo "${ECHO_T}none needed" >&6; } ;;
3376 xno)
3377 { echo "$as_me:$LINENO: result: unsupported" >&5
3378 echo "${ECHO_T}unsupported" >&6; } ;;
3380 CC="$CC $ac_cv_prog_cc_c89"
3381 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3382 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3383 esac
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
3393 ac_ext=c
3394 ac_cpp='$CPP $CPPFLAGS'
3395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3399 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3400 # On Suns, sometimes $CPP names a directory.
3401 if test -n "$CPP" && test -d "$CPP"; then
3402 CPP=
3404 if test -z "$CPP"; then
3405 if test "${ac_cv_prog_CPP+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408 # Double quotes because CPP needs to be expanded
3409 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3411 ac_preproc_ok=false
3412 for ac_c_preproc_warn_flag in '' yes
3414 # Use a header file that comes with gcc, so configuring glibc
3415 # with a fresh cross-compiler works.
3416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3417 # <limits.h> exists even on freestanding compilers.
3418 # On the NeXT, cc -E runs the code through the compiler's parser,
3419 # not just through cpp. "Syntax error" is here to catch this case.
3420 cat >conftest.$ac_ext <<_ACEOF
3421 /* confdefs.h. */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3426 #ifdef __STDC__
3427 # include <limits.h>
3428 #else
3429 # include <assert.h>
3430 #endif
3431 Syntax error
3432 _ACEOF
3433 if { (ac_try="$ac_cpp conftest.$ac_ext"
3434 case "(($ac_try" in
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3437 esac
3438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3440 ac_status=$?
3441 grep -v '^ *+' conftest.er1 >conftest.err
3442 rm -f conftest.er1
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } >/dev/null; then
3446 if test -s conftest.err; then
3447 ac_cpp_err=$ac_c_preproc_warn_flag
3448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3449 else
3450 ac_cpp_err=
3452 else
3453 ac_cpp_err=yes
3455 if test -z "$ac_cpp_err"; then
3457 else
3458 echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3461 # Broken: fails on valid input.
3462 continue
3465 rm -f conftest.err conftest.$ac_ext
3467 # OK, works on sane cases. Now check whether nonexistent headers
3468 # can be detected and how.
3469 cat >conftest.$ac_ext <<_ACEOF
3470 /* confdefs.h. */
3471 _ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h. */
3475 #include <ac_nonexistent.h>
3476 _ACEOF
3477 if { (ac_try="$ac_cpp conftest.$ac_ext"
3478 case "(($ac_try" in
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3481 esac
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3484 ac_status=$?
3485 grep -v '^ *+' conftest.er1 >conftest.err
3486 rm -f conftest.er1
3487 cat conftest.err >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } >/dev/null; then
3490 if test -s conftest.err; then
3491 ac_cpp_err=$ac_c_preproc_warn_flag
3492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3493 else
3494 ac_cpp_err=
3496 else
3497 ac_cpp_err=yes
3499 if test -z "$ac_cpp_err"; then
3500 # Broken: success on invalid input.
3501 continue
3502 else
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3506 # Passes both tests.
3507 ac_preproc_ok=:
3508 break
3511 rm -f conftest.err conftest.$ac_ext
3513 done
3514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3515 rm -f conftest.err conftest.$ac_ext
3516 if $ac_preproc_ok; then
3517 break
3520 done
3521 ac_cv_prog_CPP=$CPP
3524 CPP=$ac_cv_prog_CPP
3525 else
3526 ac_cv_prog_CPP=$CPP
3528 { echo "$as_me:$LINENO: result: $CPP" >&5
3529 echo "${ECHO_T}$CPP" >&6; }
3530 ac_preproc_ok=false
3531 for ac_c_preproc_warn_flag in '' yes
3533 # Use a header file that comes with gcc, so configuring glibc
3534 # with a fresh cross-compiler works.
3535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3536 # <limits.h> exists even on freestanding compilers.
3537 # On the NeXT, cc -E runs the code through the compiler's parser,
3538 # not just through cpp. "Syntax error" is here to catch this case.
3539 cat >conftest.$ac_ext <<_ACEOF
3540 /* confdefs.h. */
3541 _ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3545 #ifdef __STDC__
3546 # include <limits.h>
3547 #else
3548 # include <assert.h>
3549 #endif
3550 Syntax error
3551 _ACEOF
3552 if { (ac_try="$ac_cpp conftest.$ac_ext"
3553 case "(($ac_try" in
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3556 esac
3557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3559 ac_status=$?
3560 grep -v '^ *+' conftest.er1 >conftest.err
3561 rm -f conftest.er1
3562 cat conftest.err >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } >/dev/null; then
3565 if test -s conftest.err; then
3566 ac_cpp_err=$ac_c_preproc_warn_flag
3567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3568 else
3569 ac_cpp_err=
3571 else
3572 ac_cpp_err=yes
3574 if test -z "$ac_cpp_err"; then
3576 else
3577 echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3580 # Broken: fails on valid input.
3581 continue
3584 rm -f conftest.err conftest.$ac_ext
3586 # OK, works on sane cases. Now check whether nonexistent headers
3587 # can be detected and how.
3588 cat >conftest.$ac_ext <<_ACEOF
3589 /* confdefs.h. */
3590 _ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h. */
3594 #include <ac_nonexistent.h>
3595 _ACEOF
3596 if { (ac_try="$ac_cpp conftest.$ac_ext"
3597 case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3600 esac
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3603 ac_status=$?
3604 grep -v '^ *+' conftest.er1 >conftest.err
3605 rm -f conftest.er1
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } >/dev/null; then
3609 if test -s conftest.err; then
3610 ac_cpp_err=$ac_c_preproc_warn_flag
3611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3612 else
3613 ac_cpp_err=
3615 else
3616 ac_cpp_err=yes
3618 if test -z "$ac_cpp_err"; then
3619 # Broken: success on invalid input.
3620 continue
3621 else
3622 echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3625 # Passes both tests.
3626 ac_preproc_ok=:
3627 break
3630 rm -f conftest.err conftest.$ac_ext
3632 done
3633 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3634 rm -f conftest.err conftest.$ac_ext
3635 if $ac_preproc_ok; then
3637 else
3638 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3639 See \`config.log' for more details." >&5
3640 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3641 See \`config.log' for more details." >&2;}
3642 { (exit 1); exit 1; }; }
3645 ac_ext=c
3646 ac_cpp='$CPP $CPPFLAGS'
3647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3652 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3653 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3654 if test "${ac_cv_path_GREP+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657 # Extract the first word of "grep ggrep" to use in msg output
3658 if test -z "$GREP"; then
3659 set dummy grep ggrep; ac_prog_name=$2
3660 if test "${ac_cv_path_GREP+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663 ac_path_GREP_found=false
3664 # Loop through the user's path and test for each of PROGNAME-LIST
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3668 IFS=$as_save_IFS
3669 test -z "$as_dir" && as_dir=.
3670 for ac_prog in grep ggrep; do
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3673 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3674 # Check for GNU ac_path_GREP and select it if it is found.
3675 # Check for GNU $ac_path_GREP
3676 case `"$ac_path_GREP" --version 2>&1` in
3677 *GNU*)
3678 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3680 ac_count=0
3681 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3682 while :
3684 cat "conftest.in" "conftest.in" >"conftest.tmp"
3685 mv "conftest.tmp" "conftest.in"
3686 cp "conftest.in" "conftest.nl"
3687 echo 'GREP' >> "conftest.nl"
3688 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3690 ac_count=`expr $ac_count + 1`
3691 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3692 # Best one so far, save it but keep looking for a better one
3693 ac_cv_path_GREP="$ac_path_GREP"
3694 ac_path_GREP_max=$ac_count
3696 # 10*(2^10) chars as input seems more than enough
3697 test $ac_count -gt 10 && break
3698 done
3699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3700 esac
3703 $ac_path_GREP_found && break 3
3704 done
3705 done
3707 done
3708 IFS=$as_save_IFS
3713 GREP="$ac_cv_path_GREP"
3714 if test -z "$GREP"; then
3715 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3716 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3717 { (exit 1); exit 1; }; }
3720 else
3721 ac_cv_path_GREP=$GREP
3726 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3727 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3728 GREP="$ac_cv_path_GREP"
3731 { echo "$as_me:$LINENO: checking for egrep" >&5
3732 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3733 if test "${ac_cv_path_EGREP+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3737 then ac_cv_path_EGREP="$GREP -E"
3738 else
3739 # Extract the first word of "egrep" to use in msg output
3740 if test -z "$EGREP"; then
3741 set dummy egrep; ac_prog_name=$2
3742 if test "${ac_cv_path_EGREP+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745 ac_path_EGREP_found=false
3746 # Loop through the user's path and test for each of PROGNAME-LIST
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3750 IFS=$as_save_IFS
3751 test -z "$as_dir" && as_dir=.
3752 for ac_prog in egrep; do
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3755 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3756 # Check for GNU ac_path_EGREP and select it if it is found.
3757 # Check for GNU $ac_path_EGREP
3758 case `"$ac_path_EGREP" --version 2>&1` in
3759 *GNU*)
3760 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3762 ac_count=0
3763 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3764 while :
3766 cat "conftest.in" "conftest.in" >"conftest.tmp"
3767 mv "conftest.tmp" "conftest.in"
3768 cp "conftest.in" "conftest.nl"
3769 echo 'EGREP' >> "conftest.nl"
3770 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3771 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3772 ac_count=`expr $ac_count + 1`
3773 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3774 # Best one so far, save it but keep looking for a better one
3775 ac_cv_path_EGREP="$ac_path_EGREP"
3776 ac_path_EGREP_max=$ac_count
3778 # 10*(2^10) chars as input seems more than enough
3779 test $ac_count -gt 10 && break
3780 done
3781 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3782 esac
3785 $ac_path_EGREP_found && break 3
3786 done
3787 done
3789 done
3790 IFS=$as_save_IFS
3795 EGREP="$ac_cv_path_EGREP"
3796 if test -z "$EGREP"; then
3797 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3798 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3799 { (exit 1); exit 1; }; }
3802 else
3803 ac_cv_path_EGREP=$EGREP
3809 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3810 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3811 EGREP="$ac_cv_path_EGREP"
3814 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3815 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3816 if test "${ac_cv_header_stdc+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 else
3819 cat >conftest.$ac_ext <<_ACEOF
3820 /* confdefs.h. */
3821 _ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3825 #include <stdlib.h>
3826 #include <stdarg.h>
3827 #include <string.h>
3828 #include <float.h>
3831 main ()
3835 return 0;
3837 _ACEOF
3838 rm -f conftest.$ac_objext
3839 if { (ac_try="$ac_compile"
3840 case "(($ac_try" in
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3843 esac
3844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845 (eval "$ac_compile") 2>conftest.er1
3846 ac_status=$?
3847 grep -v '^ *+' conftest.er1 >conftest.err
3848 rm -f conftest.er1
3849 cat conftest.err >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } &&
3852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3853 { (case "(($ac_try" in
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3856 esac
3857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3858 (eval "$ac_try") 2>&5
3859 ac_status=$?
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; } &&
3862 { ac_try='test -s conftest.$ac_objext'
3863 { (case "(($ac_try" in
3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865 *) ac_try_echo=$ac_try;;
3866 esac
3867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3868 (eval "$ac_try") 2>&5
3869 ac_status=$?
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; }; then
3872 ac_cv_header_stdc=yes
3873 else
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3877 ac_cv_header_stdc=no
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 if test $ac_cv_header_stdc = yes; then
3883 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3884 cat >conftest.$ac_ext <<_ACEOF
3885 /* confdefs.h. */
3886 _ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h. */
3890 #include <string.h>
3892 _ACEOF
3893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3894 $EGREP "memchr" >/dev/null 2>&1; then
3896 else
3897 ac_cv_header_stdc=no
3899 rm -f conftest*
3903 if test $ac_cv_header_stdc = yes; then
3904 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3905 cat >conftest.$ac_ext <<_ACEOF
3906 /* confdefs.h. */
3907 _ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3911 #include <stdlib.h>
3913 _ACEOF
3914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3915 $EGREP "free" >/dev/null 2>&1; then
3917 else
3918 ac_cv_header_stdc=no
3920 rm -f conftest*
3924 if test $ac_cv_header_stdc = yes; then
3925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3926 if test "$cross_compiling" = yes; then
3928 else
3929 cat >conftest.$ac_ext <<_ACEOF
3930 /* confdefs.h. */
3931 _ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3935 #include <ctype.h>
3936 #include <stdlib.h>
3937 #if ((' ' & 0x0FF) == 0x020)
3938 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3939 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3940 #else
3941 # define ISLOWER(c) \
3942 (('a' <= (c) && (c) <= 'i') \
3943 || ('j' <= (c) && (c) <= 'r') \
3944 || ('s' <= (c) && (c) <= 'z'))
3945 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3946 #endif
3948 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3950 main ()
3952 int i;
3953 for (i = 0; i < 256; i++)
3954 if (XOR (islower (i), ISLOWER (i))
3955 || toupper (i) != TOUPPER (i))
3956 return 2;
3957 return 0;
3959 _ACEOF
3960 rm -f conftest$ac_exeext
3961 if { (ac_try="$ac_link"
3962 case "(($ac_try" in
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3965 esac
3966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3967 (eval "$ac_link") 2>&5
3968 ac_status=$?
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3971 { (case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3974 esac
3975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3976 (eval "$ac_try") 2>&5
3977 ac_status=$?
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; }; then
3981 else
3982 echo "$as_me: program exited with status $ac_status" >&5
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3986 ( exit $ac_status )
3987 ac_cv_header_stdc=no
3989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3995 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3996 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3997 if test $ac_cv_header_stdc = yes; then
3999 cat >>confdefs.h <<\_ACEOF
4000 #define STDC_HEADERS 1
4001 _ACEOF
4005 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4015 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4016 inttypes.h stdint.h unistd.h
4018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024 cat >conftest.$ac_ext <<_ACEOF
4025 /* confdefs.h. */
4026 _ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h. */
4030 $ac_includes_default
4032 #include <$ac_header>
4033 _ACEOF
4034 rm -f conftest.$ac_objext
4035 if { (ac_try="$ac_compile"
4036 case "(($ac_try" in
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4039 esac
4040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4041 (eval "$ac_compile") 2>conftest.er1
4042 ac_status=$?
4043 grep -v '^ *+' conftest.er1 >conftest.err
4044 rm -f conftest.er1
4045 cat conftest.err >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } &&
4048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4049 { (case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4052 esac
4053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4054 (eval "$ac_try") 2>&5
4055 ac_status=$?
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; } &&
4058 { ac_try='test -s conftest.$ac_objext'
4059 { (case "(($ac_try" in
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4062 esac
4063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4064 (eval "$ac_try") 2>&5
4065 ac_status=$?
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; }; then
4068 eval "$as_ac_Header=yes"
4069 else
4070 echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4073 eval "$as_ac_Header=no"
4076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078 ac_res=`eval echo '${'$as_ac_Header'}'`
4079 { echo "$as_me:$LINENO: result: $ac_res" >&5
4080 echo "${ECHO_T}$ac_res" >&6; }
4081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4082 cat >>confdefs.h <<_ACEOF
4083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4084 _ACEOF
4088 done
4091 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4092 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4093 if test "${ac_cv_c_bigendian+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 else
4096 # See if sys/param.h defines the BYTE_ORDER macro.
4097 cat >conftest.$ac_ext <<_ACEOF
4098 /* confdefs.h. */
4099 _ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4103 #include <sys/types.h>
4104 #include <sys/param.h>
4107 main ()
4109 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4110 bogus endian macros
4111 #endif
4114 return 0;
4116 _ACEOF
4117 rm -f conftest.$ac_objext
4118 if { (ac_try="$ac_compile"
4119 case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4122 esac
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_compile") 2>conftest.er1
4125 ac_status=$?
4126 grep -v '^ *+' conftest.er1 >conftest.err
4127 rm -f conftest.er1
4128 cat conftest.err >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); } &&
4131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4132 { (case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4135 esac
4136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_try") 2>&5
4138 ac_status=$?
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); }; } &&
4141 { ac_try='test -s conftest.$ac_objext'
4142 { (case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4145 esac
4146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147 (eval "$ac_try") 2>&5
4148 ac_status=$?
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; }; then
4151 # It does; now see whether it defined to BIG_ENDIAN or not.
4152 cat >conftest.$ac_ext <<_ACEOF
4153 /* confdefs.h. */
4154 _ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4158 #include <sys/types.h>
4159 #include <sys/param.h>
4162 main ()
4164 #if BYTE_ORDER != BIG_ENDIAN
4165 not big endian
4166 #endif
4169 return 0;
4171 _ACEOF
4172 rm -f conftest.$ac_objext
4173 if { (ac_try="$ac_compile"
4174 case "(($ac_try" in
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4177 esac
4178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179 (eval "$ac_compile") 2>conftest.er1
4180 ac_status=$?
4181 grep -v '^ *+' conftest.er1 >conftest.err
4182 rm -f conftest.er1
4183 cat conftest.err >&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); } &&
4186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4187 { (case "(($ac_try" in
4188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189 *) ac_try_echo=$ac_try;;
4190 esac
4191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4192 (eval "$ac_try") 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; } &&
4196 { ac_try='test -s conftest.$ac_objext'
4197 { (case "(($ac_try" in
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4200 esac
4201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202 (eval "$ac_try") 2>&5
4203 ac_status=$?
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }; }; then
4206 ac_cv_c_bigendian=yes
4207 else
4208 echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4211 ac_cv_c_bigendian=no
4214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 else
4216 echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4219 # It does not; compile a test program.
4220 if test "$cross_compiling" = yes; then
4221 # try to guess the endianness by grepping values into an object file
4222 ac_cv_c_bigendian=unknown
4223 cat >conftest.$ac_ext <<_ACEOF
4224 /* confdefs.h. */
4225 _ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4229 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4230 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4231 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4232 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4233 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4234 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4236 main ()
4238 _ascii (); _ebcdic ();
4240 return 0;
4242 _ACEOF
4243 rm -f conftest.$ac_objext
4244 if { (ac_try="$ac_compile"
4245 case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4248 esac
4249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250 (eval "$ac_compile") 2>conftest.er1
4251 ac_status=$?
4252 grep -v '^ *+' conftest.er1 >conftest.err
4253 rm -f conftest.er1
4254 cat conftest.err >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } &&
4257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4258 { (case "(($ac_try" in
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4261 esac
4262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263 (eval "$ac_try") 2>&5
4264 ac_status=$?
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); }; } &&
4267 { ac_try='test -s conftest.$ac_objext'
4268 { (case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4271 esac
4272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4273 (eval "$ac_try") 2>&5
4274 ac_status=$?
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); }; }; then
4277 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4278 ac_cv_c_bigendian=yes
4280 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4281 if test "$ac_cv_c_bigendian" = unknown; then
4282 ac_cv_c_bigendian=no
4283 else
4284 # finding both strings is unlikely to happen, but who knows?
4285 ac_cv_c_bigendian=unknown
4288 else
4289 echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.$ac_ext >&5
4295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296 else
4297 cat >conftest.$ac_ext <<_ACEOF
4298 /* confdefs.h. */
4299 _ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4303 $ac_includes_default
4305 main ()
4308 /* Are we little or big endian? From Harbison&Steele. */
4309 union
4311 long int l;
4312 char c[sizeof (long int)];
4313 } u;
4314 u.l = 1;
4315 return u.c[sizeof (long int) - 1] == 1;
4318 return 0;
4320 _ACEOF
4321 rm -f conftest$ac_exeext
4322 if { (ac_try="$ac_link"
4323 case "(($ac_try" in
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4326 esac
4327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4328 (eval "$ac_link") 2>&5
4329 ac_status=$?
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4332 { (case "(($ac_try" in
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4335 esac
4336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337 (eval "$ac_try") 2>&5
4338 ac_status=$?
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; }; then
4341 ac_cv_c_bigendian=no
4342 else
4343 echo "$as_me: program exited with status $ac_status" >&5
4344 echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4347 ( exit $ac_status )
4348 ac_cv_c_bigendian=yes
4350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4358 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4359 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4360 case $ac_cv_c_bigendian in
4361 yes)
4362 ENDIAN=big
4365 ENDIAN=little
4368 { { echo "$as_me:$LINENO: error: unknown endianness
4369 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4370 echo "$as_me: error: unknown endianness
4371 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4372 { (exit 1); exit 1; }; } ;;
4373 esac
4376 if test "$cross_compiling" = yes; then
4377 LLVM_CROSS_COMPILING=1
4380 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4381 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4382 if test "${ac_cv_build_exeext+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 else
4385 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4386 ac_cv_build_exeext=.exe
4387 else
4388 ac_build_prefix=${build_alias}-
4390 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4391 set dummy ${ac_build_prefix}gcc; ac_word=$2
4392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4394 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397 if test -n "$BUILD_CC"; then
4398 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4399 else
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4407 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 break 2
4411 done
4412 done
4413 IFS=$as_save_IFS
4417 BUILD_CC=$ac_cv_prog_BUILD_CC
4418 if test -n "$BUILD_CC"; then
4419 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4420 echo "${ECHO_T}$BUILD_CC" >&6; }
4421 else
4422 { echo "$as_me:$LINENO: result: no" >&5
4423 echo "${ECHO_T}no" >&6; }
4427 if test -z "$BUILD_CC"; then
4428 # Extract the first word of "gcc", so it can be a program name with args.
4429 set dummy gcc; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435 if test -n "$BUILD_CC"; then
4436 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 ac_cv_prog_BUILD_CC="gcc"
4446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 break 2
4449 done
4450 done
4451 IFS=$as_save_IFS
4455 BUILD_CC=$ac_cv_prog_BUILD_CC
4456 if test -n "$BUILD_CC"; then
4457 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4458 echo "${ECHO_T}$BUILD_CC" >&6; }
4459 else
4460 { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4465 if test -z "$BUILD_CC"; then
4466 # Extract the first word of "cc", so it can be a program name with args.
4467 set dummy cc; ac_word=$2
4468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 else
4473 if test -n "$BUILD_CC"; then
4474 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4475 else
4476 ac_prog_rejected=no
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH
4480 IFS=$as_save_IFS
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4484 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4485 ac_prog_rejected=yes
4486 continue
4488 ac_cv_prog_BUILD_CC="cc"
4489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 break 2
4492 done
4493 done
4494 IFS=$as_save_IFS
4496 if test $ac_prog_rejected = yes; then
4497 # We found a bogon in the path, so make sure we never use it.
4498 set dummy $ac_cv_prog_BUILD_CC
4499 shift
4500 if test $# != 0; then
4501 # We chose a different compiler from the bogus one.
4502 # However, it has the same basename, so the bogon will be chosen
4503 # first if we set BUILD_CC to just the basename; use the full file name.
4504 shift
4505 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4510 BUILD_CC=$ac_cv_prog_BUILD_CC
4511 if test -n "$BUILD_CC"; then
4512 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4513 echo "${ECHO_T}$BUILD_CC" >&6; }
4514 else
4515 { echo "$as_me:$LINENO: result: no" >&5
4516 echo "${ECHO_T}no" >&6; }
4522 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4523 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4524 { (exit 1); exit 1; }; }
4525 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4526 rm -f conftest*
4527 echo 'int main () { return 0; }' > conftest.$ac_ext
4528 ac_cv_build_exeext=
4529 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4530 (eval $ac_build_link) 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; then
4534 for file in conftest.*; do
4535 case $file in
4536 *.c | *.o | *.obj | *.dSYM) ;;
4537 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4538 esac
4539 done
4540 else
4541 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4542 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4543 { (exit 1); exit 1; }; }
4545 rm -f conftest*
4546 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4550 BUILD_EXEEXT=""
4551 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4552 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4553 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4554 ac_build_exeext=$BUILD_EXEEXT
4556 ac_build_prefix=${build_alias}-
4557 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4558 set dummy ${ac_build_prefix}g++; ac_word=$2
4559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4561 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 else
4564 if test -n "$BUILD_CXX"; then
4565 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4566 else
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH
4570 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4574 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 break 2
4578 done
4579 done
4580 IFS=$as_save_IFS
4584 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4585 if test -n "$BUILD_CXX"; then
4586 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4587 echo "${ECHO_T}$BUILD_CXX" >&6; }
4588 else
4589 { echo "$as_me:$LINENO: result: no" >&5
4590 echo "${ECHO_T}no" >&6; }
4594 if test -z "$BUILD_CXX"; then
4595 # Extract the first word of "g++", so it can be a program name with args.
4596 set dummy g++; ac_word=$2
4597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4599 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 else
4602 if test -n "$BUILD_CXX"; then
4603 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4604 else
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4612 ac_cv_prog_BUILD_CXX="g++"
4613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 break 2
4616 done
4617 done
4618 IFS=$as_save_IFS
4622 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4623 if test -n "$BUILD_CXX"; then
4624 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4625 echo "${ECHO_T}$BUILD_CXX" >&6; }
4626 else
4627 { echo "$as_me:$LINENO: result: no" >&5
4628 echo "${ECHO_T}no" >&6; }
4632 if test -z "$BUILD_CXX"; then
4633 # Extract the first word of "c++", so it can be a program name with args.
4634 set dummy c++; ac_word=$2
4635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4637 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640 if test -n "$BUILD_CXX"; then
4641 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4642 else
4643 ac_prog_rejected=no
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4651 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4652 ac_prog_rejected=yes
4653 continue
4655 ac_cv_prog_BUILD_CXX="c++"
4656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 break 2
4659 done
4660 done
4661 IFS=$as_save_IFS
4663 if test $ac_prog_rejected = yes; then
4664 # We found a bogon in the path, so make sure we never use it.
4665 set dummy $ac_cv_prog_BUILD_CXX
4666 shift
4667 if test $# != 0; then
4668 # We chose a different compiler from the bogus one.
4669 # However, it has the same basename, so the bogon will be chosen
4670 # first if we set BUILD_CXX to just the basename; use the full file name.
4671 shift
4672 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4677 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4678 if test -n "$BUILD_CXX"; then
4679 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4680 echo "${ECHO_T}$BUILD_CXX" >&6; }
4681 else
4682 { echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6; }
4689 else
4690 LLVM_CROSS_COMPILING=0
4694 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4695 cvsbuild="yes"
4696 optimize="no"
4697 CVSBUILD=CVSBUILD=1
4699 else
4700 cvsbuild="no"
4701 optimize="yes"
4705 # Check whether --enable-optimized was given.
4706 if test "${enable_optimized+set}" = set; then
4707 enableval=$enable_optimized;
4708 else
4709 enableval=$optimize
4712 if test ${enableval} = "no" ; then
4713 ENABLE_OPTIMIZED=
4715 else
4716 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4720 # Check whether --enable-profiling was given.
4721 if test "${enable_profiling+set}" = set; then
4722 enableval=$enable_profiling;
4723 else
4724 enableval="no"
4727 if test ${enableval} = "no" ; then
4728 ENABLE_PROFILING=
4730 else
4731 ENABLE_PROFILING=ENABLE_PROFILING=1
4735 # Check whether --enable-assertions was given.
4736 if test "${enable_assertions+set}" = set; then
4737 enableval=$enable_assertions;
4738 else
4739 enableval="yes"
4742 if test ${enableval} = "yes" ; then
4743 DISABLE_ASSERTIONS=
4745 else
4746 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4750 # Check whether --enable-expensive-checks was given.
4751 if test "${enable_expensive_checks+set}" = set; then
4752 enableval=$enable_expensive_checks;
4753 else
4754 enableval="no"
4757 if test ${enableval} = "yes" ; then
4758 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4760 EXPENSIVE_CHECKS=yes
4762 else
4763 ENABLE_EXPENSIVE_CHECKS=
4765 EXPENSIVE_CHECKS=no
4769 # Check whether --enable-debug-runtime was given.
4770 if test "${enable_debug_runtime+set}" = set; then
4771 enableval=$enable_debug_runtime;
4772 else
4773 enableval=no
4776 if test ${enableval} = "no" ; then
4777 DEBUG_RUNTIME=
4779 else
4780 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4784 # Check whether --enable-debug-symbols was given.
4785 if test "${enable_debug_symbols+set}" = set; then
4786 enableval=$enable_debug_symbols;
4787 else
4788 enableval=no
4791 if test ${enableval} = "no" ; then
4792 DEBUG_SYMBOLS=
4794 else
4795 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4799 # Check whether --enable-jit was given.
4800 if test "${enable_jit+set}" = set; then
4801 enableval=$enable_jit;
4802 else
4803 enableval=default
4806 if test ${enableval} = "no"
4807 then
4808 JIT=
4810 else
4811 case "$llvm_cv_target_arch" in
4812 x86) TARGET_HAS_JIT=1
4814 Sparc) TARGET_HAS_JIT=0
4816 PowerPC) TARGET_HAS_JIT=1
4818 x86_64) TARGET_HAS_JIT=1
4820 Alpha) TARGET_HAS_JIT=1
4822 ARM) TARGET_HAS_JIT=1
4824 Mips) TARGET_HAS_JIT=0
4826 PIC16) TARGET_HAS_JIT=0
4828 XCore) TARGET_HAS_JIT=0
4830 MSP430) TARGET_HAS_JIT=0
4832 SystemZ) TARGET_HAS_JIT=0
4834 Blackfin) TARGET_HAS_JIT=0
4836 MBlaze) TARGET_HAS_JIT=0
4838 *) TARGET_HAS_JIT=0
4840 esac
4843 # Check whether --enable-doxygen was given.
4844 if test "${enable_doxygen+set}" = set; then
4845 enableval=$enable_doxygen;
4846 else
4847 enableval=default
4850 case "$enableval" in
4851 yes) ENABLE_DOXYGEN=1
4853 no) ENABLE_DOXYGEN=0
4855 default) ENABLE_DOXYGEN=0
4857 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4858 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4859 { (exit 1); exit 1; }; } ;;
4860 esac
4862 # Check whether --enable-threads was given.
4863 if test "${enable_threads+set}" = set; then
4864 enableval=$enable_threads;
4865 else
4866 enableval=default
4869 case "$enableval" in
4870 yes) ENABLE_THREADS=1
4872 no) ENABLE_THREADS=0
4874 default) ENABLE_THREADS=1
4876 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4877 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4878 { (exit 1); exit 1; }; } ;;
4879 esac
4881 cat >>confdefs.h <<_ACEOF
4882 #define ENABLE_THREADS $ENABLE_THREADS
4883 _ACEOF
4886 # Check whether --enable-pic was given.
4887 if test "${enable_pic+set}" = set; then
4888 enableval=$enable_pic;
4889 else
4890 enableval=default
4893 case "$enableval" in
4894 yes) ENABLE_PIC=1
4896 no) ENABLE_PIC=0
4898 default) ENABLE_PIC=1
4900 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4901 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4902 { (exit 1); exit 1; }; } ;;
4903 esac
4905 cat >>confdefs.h <<_ACEOF
4906 #define ENABLE_PIC $ENABLE_PIC
4907 _ACEOF
4910 # Check whether --enable-shared was given.
4911 if test "${enable_shared+set}" = set; then
4912 enableval=$enable_shared;
4913 else
4914 enableval=default
4917 case "$enableval" in
4918 yes) ENABLE_SHARED=1
4920 no) ENABLE_SHARED=0
4922 default) ENABLE_SHARED=0
4924 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4925 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4926 { (exit 1); exit 1; }; } ;;
4927 esac
4929 # Check whether --enable-timestamps was given.
4930 if test "${enable_timestamps+set}" = set; then
4931 enableval=$enable_timestamps;
4932 else
4933 enableval=default
4936 case "$enableval" in
4937 yes) ENABLE_TIMESTAMPS=1
4939 no) ENABLE_TIMESTAMPS=0
4941 default) ENABLE_TIMESTAMPS=1
4943 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4944 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4945 { (exit 1); exit 1; }; } ;;
4946 esac
4948 cat >>confdefs.h <<_ACEOF
4949 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4950 _ACEOF
4953 TARGETS_TO_BUILD=""
4954 # Check whether --enable-targets was given.
4955 if test "${enable_targets+set}" = set; then
4956 enableval=$enable_targets;
4957 else
4958 enableval=all
4961 if test "$enableval" = host-only ; then
4962 enableval=host
4964 case "$enableval" in
4965 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
4966 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4967 case "$a_target" in
4968 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4969 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4970 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4971 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4972 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4973 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4974 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4975 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4976 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4977 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4978 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4979 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4980 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4981 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4982 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4983 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4984 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4985 host) case "$llvm_cv_target_arch" in
4986 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4987 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4988 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4989 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4990 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4991 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4992 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4993 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4994 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4995 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4996 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4997 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4998 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4999 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5000 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5001 echo "$as_me: error: Can not set target to build" >&2;}
5002 { (exit 1); exit 1; }; } ;;
5003 esac ;;
5004 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5005 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5006 { (exit 1); exit 1; }; } ;;
5007 esac
5008 done
5010 esac
5011 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5014 # Determine whether we are building LLVM support for the native architecture.
5015 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5016 for a_target in $TARGETS_TO_BUILD; do
5017 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5018 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5020 cat >>confdefs.h <<_ACEOF
5021 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5022 _ACEOF
5025 done
5027 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5028 # target feature def files.
5029 LLVM_ENUM_TARGETS=""
5030 LLVM_ENUM_ASM_PRINTERS=""
5031 LLVM_ENUM_ASM_PARSERS=""
5032 LLVM_ENUM_DISASSEMBLERS=""
5033 for target_to_build in $TARGETS_TO_BUILD; do
5034 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5035 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5036 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5038 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5039 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5041 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5042 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5044 done
5050 # Check whether --enable-cbe-printf-a was given.
5051 if test "${enable_cbe_printf_a+set}" = set; then
5052 enableval=$enable_cbe_printf_a;
5053 else
5054 enableval=default
5057 case "$enableval" in
5058 yes) ENABLE_CBE_PRINTF_A=1
5060 no) ENABLE_CBE_PRINTF_A=0
5062 default) ENABLE_CBE_PRINTF_A=1
5064 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5065 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5066 { (exit 1); exit 1; }; } ;;
5067 esac
5069 cat >>confdefs.h <<_ACEOF
5070 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5071 _ACEOF
5075 # Check whether --with-llvmgccdir was given.
5076 if test "${with_llvmgccdir+set}" = set; then
5077 withval=$with_llvmgccdir;
5078 else
5079 withval=default
5082 case "$withval" in
5083 default) WITH_LLVMGCCDIR=default ;;
5084 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5085 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5086 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5087 { (exit 1); exit 1; }; } ;;
5088 esac
5091 # Check whether --with-llvmgcc was given.
5092 if test "${with_llvmgcc+set}" = set; then
5093 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5094 WITH_LLVMGCCDIR=""
5099 # Check whether --with-llvmgxx was given.
5100 if test "${with_llvmgxx+set}" = set; then
5101 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5102 WITH_LLVMGCCDIR=""
5106 if test -n "$LLVMGCC"; then
5107 LLVMGCCCOMMAND="$LLVMGCC"
5110 if test -n "$LLVMGXX"; then
5111 LLVMGXXCOMMAND="$LLVMGXX"
5114 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5115 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5116 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5117 { (exit 1); exit 1; }; };
5120 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5121 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5122 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5123 { (exit 1); exit 1; }; };
5127 # Check whether --with-clang was given.
5128 if test "${with_clang+set}" = set; then
5129 withval=$with_clang;
5130 else
5131 with_clang=default
5136 # Check whether --with-built-clang was given.
5137 if test "${with_built_clang+set}" = set; then
5138 withval=$with_built_clang;
5139 else
5140 with_built_clang=check
5144 { echo "$as_me:$LINENO: checking clang compiler" >&5
5145 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5146 WITH_CLANGPATH=""
5147 WITH_BUILT_CLANG=0
5148 if test "$with_clang" != "default"; then
5149 WITH_CLANGPATH="$with_clang"
5150 if ! test -x "$WITH_CLANGPATH"; then
5151 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5152 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5153 { (exit 1); exit 1; }; }
5155 elif test "$with_built_clang" = "yes"; then
5156 WITH_BUILT_CLANG=1
5157 elif test "$with_built_clang" = "no"; then
5158 WITH_BUILT_CLANG=0
5159 else
5160 if test "$with_built_clang" != "check"; then
5161 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5162 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5163 { (exit 1); exit 1; }; }
5166 if test -f ${srcdir}/tools/clang/README.txt; then
5167 WITH_BUILT_CLANG=1
5171 if ! test -z "$WITH_CLANGPATH"; then
5172 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5173 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5174 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5175 elif test "$WITH_BUILT_CLANG" = "1"; then
5176 { echo "$as_me:$LINENO: result: built" >&5
5177 echo "${ECHO_T}built" >&6; }
5178 else
5179 { echo "$as_me:$LINENO: result: none" >&5
5180 echo "${ECHO_T}none" >&6; }
5182 CLANGPATH=$WITH_CLANGPATH
5184 CLANGXXPATH=$WITH_CLANGXXPATH
5186 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5190 # Check whether --with-optimize-option was given.
5191 if test "${with_optimize_option+set}" = set; then
5192 withval=$with_optimize_option;
5193 else
5194 withval=default
5197 { echo "$as_me:$LINENO: checking optimization flags" >&5
5198 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5199 case "$withval" in
5200 default)
5201 case "$llvm_cv_os_type" in
5202 FreeBSD) optimize_option=-O2 ;;
5203 MingW) optimize_option=-O2 ;;
5204 *) optimize_option=-O3 ;;
5205 esac ;;
5206 *) optimize_option="$withval" ;;
5207 esac
5208 OPTIMIZE_OPTION=$optimize_option
5210 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5211 echo "${ECHO_T}$optimize_option" >&6; }
5214 # Check whether --with-extra-options was given.
5215 if test "${with_extra_options+set}" = set; then
5216 withval=$with_extra_options;
5217 else
5218 withval=default
5221 case "$withval" in
5222 default) EXTRA_OPTIONS= ;;
5223 *) EXTRA_OPTIONS=$withval ;;
5224 esac
5225 EXTRA_OPTIONS=$EXTRA_OPTIONS
5228 # Check whether --enable-bindings was given.
5229 if test "${enable_bindings+set}" = set; then
5230 enableval=$enable_bindings;
5231 else
5232 enableval=default
5235 BINDINGS_TO_BUILD=""
5236 case "$enableval" in
5237 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5238 all ) BINDINGS_TO_BUILD="ocaml" ;;
5239 none | no) BINDINGS_TO_BUILD="" ;;
5240 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5241 case "$a_binding" in
5242 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5243 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5244 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5245 { (exit 1); exit 1; }; } ;;
5246 esac
5247 done
5249 esac
5252 # Check whether --with-ocaml-libdir was given.
5253 if test "${with_ocaml_libdir+set}" = set; then
5254 withval=$with_ocaml_libdir;
5255 else
5256 withval=auto
5259 case "$withval" in
5260 auto) with_ocaml_libdir="$withval" ;;
5261 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5262 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5263 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5264 { (exit 1); exit 1; }; } ;;
5265 esac
5268 # Check whether --with-c-include-dirs was given.
5269 if test "${with_c_include_dirs+set}" = set; then
5270 withval=$with_c_include_dirs;
5271 else
5272 withval=""
5276 cat >>confdefs.h <<_ACEOF
5277 #define C_INCLUDE_DIRS "$withval"
5278 _ACEOF
5282 # Check whether --with-cxx-include-root was given.
5283 if test "${with_cxx_include_root+set}" = set; then
5284 withval=$with_cxx_include_root;
5285 else
5286 withval=""
5290 cat >>confdefs.h <<_ACEOF
5291 #define CXX_INCLUDE_ROOT "$withval"
5292 _ACEOF
5296 # Check whether --with-cxx-include-arch was given.
5297 if test "${with_cxx_include_arch+set}" = set; then
5298 withval=$with_cxx_include_arch;
5299 else
5300 withval=""
5304 cat >>confdefs.h <<_ACEOF
5305 #define CXX_INCLUDE_ARCH "$withval"
5306 _ACEOF
5310 # Check whether --with-cxx-include-32bit-dir was given.
5311 if test "${with_cxx_include_32bit_dir+set}" = set; then
5312 withval=$with_cxx_include_32bit_dir;
5313 else
5314 withval=""
5318 cat >>confdefs.h <<_ACEOF
5319 #define CXX_INCLUDE_32BIT_DIR "$withval"
5320 _ACEOF
5324 # Check whether --with-cxx-include-64bit-dir was given.
5325 if test "${with_cxx_include_64bit_dir+set}" = set; then
5326 withval=$with_cxx_include_64bit_dir;
5327 else
5328 withval=""
5332 cat >>confdefs.h <<_ACEOF
5333 #define CXX_INCLUDE_64BIT_DIR "$withval"
5334 _ACEOF
5338 # Check whether --with-binutils-include was given.
5339 if test "${with_binutils_include+set}" = set; then
5340 withval=$with_binutils_include;
5341 else
5342 withval=default
5345 case "$withval" in
5346 default) WITH_BINUTILS_INCDIR=default ;;
5347 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5348 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5349 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5350 { (exit 1); exit 1; }; } ;;
5351 esac
5352 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5353 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5355 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5356 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5357 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5358 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5359 { (exit 1); exit 1; }; };
5363 # Check whether --enable-libffi was given.
5364 if test "${enable_libffi+set}" = set; then
5365 enableval=$enable_libffi; case "$enableval" in
5366 yes) llvm_cv_enable_libffi="yes" ;;
5367 no) llvm_cv_enable_libffi="no" ;;
5368 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5369 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5370 { (exit 1); exit 1; }; } ;;
5371 esac
5372 else
5373 llvm_cv_enable_libffi=no
5377 if test "$llvm_cv_os_type" = "Win32" ; then
5378 llvmc_dynamic="yes"
5379 else
5380 llvmc_dynamic="no"
5383 # Check whether --enable-llvmc-dynamic was given.
5384 if test "${enable_llvmc_dynamic+set}" = set; then
5385 enableval=$enable_llvmc_dynamic;
5386 else
5387 enableval=$llvmc_dynamic
5390 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5391 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5393 else
5394 ENABLE_LLVMC_DYNAMIC=
5398 # Check whether --enable-llvmc-dynamic-plugins was given.
5399 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5400 enableval=$enable_llvmc_dynamic_plugins;
5401 else
5402 enableval=yes
5405 if test ${enableval} = "yes" ; then
5406 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5408 else
5409 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5414 ac_ext=c
5415 ac_cpp='$CPP $CPPFLAGS'
5416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5419 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5420 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5421 # On Suns, sometimes $CPP names a directory.
5422 if test -n "$CPP" && test -d "$CPP"; then
5423 CPP=
5425 if test -z "$CPP"; then
5426 if test "${ac_cv_prog_CPP+set}" = set; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 else
5429 # Double quotes because CPP needs to be expanded
5430 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5432 ac_preproc_ok=false
5433 for ac_c_preproc_warn_flag in '' yes
5435 # Use a header file that comes with gcc, so configuring glibc
5436 # with a fresh cross-compiler works.
5437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5438 # <limits.h> exists even on freestanding compilers.
5439 # On the NeXT, cc -E runs the code through the compiler's parser,
5440 # not just through cpp. "Syntax error" is here to catch this case.
5441 cat >conftest.$ac_ext <<_ACEOF
5442 /* confdefs.h. */
5443 _ACEOF
5444 cat confdefs.h >>conftest.$ac_ext
5445 cat >>conftest.$ac_ext <<_ACEOF
5446 /* end confdefs.h. */
5447 #ifdef __STDC__
5448 # include <limits.h>
5449 #else
5450 # include <assert.h>
5451 #endif
5452 Syntax error
5453 _ACEOF
5454 if { (ac_try="$ac_cpp conftest.$ac_ext"
5455 case "(($ac_try" in
5456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5457 *) ac_try_echo=$ac_try;;
5458 esac
5459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5461 ac_status=$?
5462 grep -v '^ *+' conftest.er1 >conftest.err
5463 rm -f conftest.er1
5464 cat conftest.err >&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } >/dev/null; then
5467 if test -s conftest.err; then
5468 ac_cpp_err=$ac_c_preproc_warn_flag
5469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5470 else
5471 ac_cpp_err=
5473 else
5474 ac_cpp_err=yes
5476 if test -z "$ac_cpp_err"; then
5478 else
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5482 # Broken: fails on valid input.
5483 continue
5486 rm -f conftest.err conftest.$ac_ext
5488 # OK, works on sane cases. Now check whether nonexistent headers
5489 # can be detected and how.
5490 cat >conftest.$ac_ext <<_ACEOF
5491 /* confdefs.h. */
5492 _ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h. */
5496 #include <ac_nonexistent.h>
5497 _ACEOF
5498 if { (ac_try="$ac_cpp conftest.$ac_ext"
5499 case "(($ac_try" in
5500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5501 *) ac_try_echo=$ac_try;;
5502 esac
5503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5505 ac_status=$?
5506 grep -v '^ *+' conftest.er1 >conftest.err
5507 rm -f conftest.er1
5508 cat conftest.err >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } >/dev/null; then
5511 if test -s conftest.err; then
5512 ac_cpp_err=$ac_c_preproc_warn_flag
5513 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5514 else
5515 ac_cpp_err=
5517 else
5518 ac_cpp_err=yes
5520 if test -z "$ac_cpp_err"; then
5521 # Broken: success on invalid input.
5522 continue
5523 else
5524 echo "$as_me: failed program was:" >&5
5525 sed 's/^/| /' conftest.$ac_ext >&5
5527 # Passes both tests.
5528 ac_preproc_ok=:
5529 break
5532 rm -f conftest.err conftest.$ac_ext
5534 done
5535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5536 rm -f conftest.err conftest.$ac_ext
5537 if $ac_preproc_ok; then
5538 break
5541 done
5542 ac_cv_prog_CPP=$CPP
5545 CPP=$ac_cv_prog_CPP
5546 else
5547 ac_cv_prog_CPP=$CPP
5549 { echo "$as_me:$LINENO: result: $CPP" >&5
5550 echo "${ECHO_T}$CPP" >&6; }
5551 ac_preproc_ok=false
5552 for ac_c_preproc_warn_flag in '' yes
5554 # Use a header file that comes with gcc, so configuring glibc
5555 # with a fresh cross-compiler works.
5556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5557 # <limits.h> exists even on freestanding compilers.
5558 # On the NeXT, cc -E runs the code through the compiler's parser,
5559 # not just through cpp. "Syntax error" is here to catch this case.
5560 cat >conftest.$ac_ext <<_ACEOF
5561 /* confdefs.h. */
5562 _ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5566 #ifdef __STDC__
5567 # include <limits.h>
5568 #else
5569 # include <assert.h>
5570 #endif
5571 Syntax error
5572 _ACEOF
5573 if { (ac_try="$ac_cpp conftest.$ac_ext"
5574 case "(($ac_try" in
5575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576 *) ac_try_echo=$ac_try;;
5577 esac
5578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5580 ac_status=$?
5581 grep -v '^ *+' conftest.er1 >conftest.err
5582 rm -f conftest.er1
5583 cat conftest.err >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } >/dev/null; then
5586 if test -s conftest.err; then
5587 ac_cpp_err=$ac_c_preproc_warn_flag
5588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5589 else
5590 ac_cpp_err=
5592 else
5593 ac_cpp_err=yes
5595 if test -z "$ac_cpp_err"; then
5597 else
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5601 # Broken: fails on valid input.
5602 continue
5605 rm -f conftest.err conftest.$ac_ext
5607 # OK, works on sane cases. Now check whether nonexistent headers
5608 # can be detected and how.
5609 cat >conftest.$ac_ext <<_ACEOF
5610 /* confdefs.h. */
5611 _ACEOF
5612 cat confdefs.h >>conftest.$ac_ext
5613 cat >>conftest.$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5615 #include <ac_nonexistent.h>
5616 _ACEOF
5617 if { (ac_try="$ac_cpp conftest.$ac_ext"
5618 case "(($ac_try" in
5619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620 *) ac_try_echo=$ac_try;;
5621 esac
5622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5624 ac_status=$?
5625 grep -v '^ *+' conftest.er1 >conftest.err
5626 rm -f conftest.er1
5627 cat conftest.err >&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); } >/dev/null; then
5630 if test -s conftest.err; then
5631 ac_cpp_err=$ac_c_preproc_warn_flag
5632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5633 else
5634 ac_cpp_err=
5636 else
5637 ac_cpp_err=yes
5639 if test -z "$ac_cpp_err"; then
5640 # Broken: success on invalid input.
5641 continue
5642 else
5643 echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5646 # Passes both tests.
5647 ac_preproc_ok=:
5648 break
5651 rm -f conftest.err conftest.$ac_ext
5653 done
5654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5655 rm -f conftest.err conftest.$ac_ext
5656 if $ac_preproc_ok; then
5658 else
5659 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5660 See \`config.log' for more details." >&5
5661 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5662 See \`config.log' for more details." >&2;}
5663 { (exit 1); exit 1; }; }
5666 ac_ext=c
5667 ac_cpp='$CPP $CPPFLAGS'
5668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5672 ac_ext=c
5673 ac_cpp='$CPP $CPPFLAGS'
5674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5677 if test -n "$ac_tool_prefix"; then
5678 for ac_prog in gcc
5680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5681 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5684 if test "${ac_cv_prog_CC+set}" = set; then
5685 echo $ECHO_N "(cached) $ECHO_C" >&6
5686 else
5687 if test -n "$CC"; then
5688 ac_cv_prog_CC="$CC" # Let the user override the test.
5689 else
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691 for as_dir in $PATH
5693 IFS=$as_save_IFS
5694 test -z "$as_dir" && as_dir=.
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5697 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5699 break 2
5701 done
5702 done
5703 IFS=$as_save_IFS
5707 CC=$ac_cv_prog_CC
5708 if test -n "$CC"; then
5709 { echo "$as_me:$LINENO: result: $CC" >&5
5710 echo "${ECHO_T}$CC" >&6; }
5711 else
5712 { echo "$as_me:$LINENO: result: no" >&5
5713 echo "${ECHO_T}no" >&6; }
5717 test -n "$CC" && break
5718 done
5720 if test -z "$CC"; then
5721 ac_ct_CC=$CC
5722 for ac_prog in gcc
5724 # Extract the first word of "$ac_prog", so it can be a program name with args.
5725 set dummy $ac_prog; ac_word=$2
5726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5728 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731 if test -n "$ac_ct_CC"; then
5732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5733 else
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5737 IFS=$as_save_IFS
5738 test -z "$as_dir" && as_dir=.
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5741 ac_cv_prog_ac_ct_CC="$ac_prog"
5742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 break 2
5745 done
5746 done
5747 IFS=$as_save_IFS
5751 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5752 if test -n "$ac_ct_CC"; then
5753 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5754 echo "${ECHO_T}$ac_ct_CC" >&6; }
5755 else
5756 { echo "$as_me:$LINENO: result: no" >&5
5757 echo "${ECHO_T}no" >&6; }
5761 test -n "$ac_ct_CC" && break
5762 done
5764 if test "x$ac_ct_CC" = x; then
5765 CC=""
5766 else
5767 case $cross_compiling:$ac_tool_warned in
5768 yes:)
5769 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5770 whose name does not start with the host triplet. If you think this
5771 configuration is useful to you, please write to autoconf@gnu.org." >&5
5772 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5773 whose name does not start with the host triplet. If you think this
5774 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5775 ac_tool_warned=yes ;;
5776 esac
5777 CC=$ac_ct_CC
5782 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5783 See \`config.log' for more details." >&5
5784 echo "$as_me: error: no acceptable C compiler found in \$PATH
5785 See \`config.log' for more details." >&2;}
5786 { (exit 1); exit 1; }; }
5788 # Provide some information about the compiler.
5789 echo "$as_me:$LINENO: checking for C compiler version" >&5
5790 ac_compiler=`set X $ac_compile; echo $2`
5791 { (ac_try="$ac_compiler --version >&5"
5792 case "(($ac_try" in
5793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794 *) ac_try_echo=$ac_try;;
5795 esac
5796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797 (eval "$ac_compiler --version >&5") 2>&5
5798 ac_status=$?
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }
5801 { (ac_try="$ac_compiler -v >&5"
5802 case "(($ac_try" in
5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5805 esac
5806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5807 (eval "$ac_compiler -v >&5") 2>&5
5808 ac_status=$?
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }
5811 { (ac_try="$ac_compiler -V >&5"
5812 case "(($ac_try" in
5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814 *) ac_try_echo=$ac_try;;
5815 esac
5816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5817 (eval "$ac_compiler -V >&5") 2>&5
5818 ac_status=$?
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }
5822 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5823 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5824 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 else
5827 cat >conftest.$ac_ext <<_ACEOF
5828 /* confdefs.h. */
5829 _ACEOF
5830 cat confdefs.h >>conftest.$ac_ext
5831 cat >>conftest.$ac_ext <<_ACEOF
5832 /* end confdefs.h. */
5835 main ()
5837 #ifndef __GNUC__
5838 choke me
5839 #endif
5842 return 0;
5844 _ACEOF
5845 rm -f conftest.$ac_objext
5846 if { (ac_try="$ac_compile"
5847 case "(($ac_try" in
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5850 esac
5851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852 (eval "$ac_compile") 2>conftest.er1
5853 ac_status=$?
5854 grep -v '^ *+' conftest.er1 >conftest.err
5855 rm -f conftest.er1
5856 cat conftest.err >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } &&
5859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5860 { (case "(($ac_try" in
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5863 esac
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_try") 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; } &&
5869 { ac_try='test -s conftest.$ac_objext'
5870 { (case "(($ac_try" in
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5873 esac
5874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_try") 2>&5
5876 ac_status=$?
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
5879 ac_compiler_gnu=yes
5880 else
5881 echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5884 ac_compiler_gnu=no
5887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5891 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5892 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5893 GCC=`test $ac_compiler_gnu = yes && echo yes`
5894 ac_test_CFLAGS=${CFLAGS+set}
5895 ac_save_CFLAGS=$CFLAGS
5896 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5897 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5898 if test "${ac_cv_prog_cc_g+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
5900 else
5901 ac_save_c_werror_flag=$ac_c_werror_flag
5902 ac_c_werror_flag=yes
5903 ac_cv_prog_cc_g=no
5904 CFLAGS="-g"
5905 cat >conftest.$ac_ext <<_ACEOF
5906 /* confdefs.h. */
5907 _ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5913 main ()
5917 return 0;
5919 _ACEOF
5920 rm -f conftest.$ac_objext
5921 if { (ac_try="$ac_compile"
5922 case "(($ac_try" in
5923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924 *) ac_try_echo=$ac_try;;
5925 esac
5926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927 (eval "$ac_compile") 2>conftest.er1
5928 ac_status=$?
5929 grep -v '^ *+' conftest.er1 >conftest.err
5930 rm -f conftest.er1
5931 cat conftest.err >&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } &&
5934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5935 { (case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5938 esac
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_try") 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try='test -s conftest.$ac_objext'
5945 { (case "(($ac_try" in
5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5948 esac
5949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950 (eval "$ac_try") 2>&5
5951 ac_status=$?
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }; }; then
5954 ac_cv_prog_cc_g=yes
5955 else
5956 echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5959 CFLAGS=""
5960 cat >conftest.$ac_ext <<_ACEOF
5961 /* confdefs.h. */
5962 _ACEOF
5963 cat confdefs.h >>conftest.$ac_ext
5964 cat >>conftest.$ac_ext <<_ACEOF
5965 /* end confdefs.h. */
5968 main ()
5972 return 0;
5974 _ACEOF
5975 rm -f conftest.$ac_objext
5976 if { (ac_try="$ac_compile"
5977 case "(($ac_try" in
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5980 esac
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_compile") 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5990 { (case "(($ac_try" in
5991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992 *) ac_try_echo=$ac_try;;
5993 esac
5994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995 (eval "$ac_try") 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest.$ac_objext'
6000 { (case "(($ac_try" in
6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6003 esac
6004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005 (eval "$ac_try") 2>&5
6006 ac_status=$?
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6010 else
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6014 ac_c_werror_flag=$ac_save_c_werror_flag
6015 CFLAGS="-g"
6016 cat >conftest.$ac_ext <<_ACEOF
6017 /* confdefs.h. */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6024 main ()
6028 return 0;
6030 _ACEOF
6031 rm -f conftest.$ac_objext
6032 if { (ac_try="$ac_compile"
6033 case "(($ac_try" in
6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6036 esac
6037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038 (eval "$ac_compile") 2>conftest.er1
6039 ac_status=$?
6040 grep -v '^ *+' conftest.er1 >conftest.err
6041 rm -f conftest.er1
6042 cat conftest.err >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } &&
6045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6046 { (case "(($ac_try" in
6047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048 *) ac_try_echo=$ac_try;;
6049 esac
6050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051 (eval "$ac_try") 2>&5
6052 ac_status=$?
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }; } &&
6055 { ac_try='test -s conftest.$ac_objext'
6056 { (case "(($ac_try" in
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6059 esac
6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_try") 2>&5
6062 ac_status=$?
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }; }; then
6065 ac_cv_prog_cc_g=yes
6066 else
6067 echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.$ac_ext >&5
6073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6080 ac_c_werror_flag=$ac_save_c_werror_flag
6082 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6083 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6084 if test "$ac_test_CFLAGS" = set; then
6085 CFLAGS=$ac_save_CFLAGS
6086 elif test $ac_cv_prog_cc_g = yes; then
6087 if test "$GCC" = yes; then
6088 CFLAGS="-g -O2"
6089 else
6090 CFLAGS="-g"
6092 else
6093 if test "$GCC" = yes; then
6094 CFLAGS="-O2"
6095 else
6096 CFLAGS=
6099 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6100 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6101 if test "${ac_cv_prog_cc_c89+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 else
6104 ac_cv_prog_cc_c89=no
6105 ac_save_CC=$CC
6106 cat >conftest.$ac_ext <<_ACEOF
6107 /* confdefs.h. */
6108 _ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6112 #include <stdarg.h>
6113 #include <stdio.h>
6114 #include <sys/types.h>
6115 #include <sys/stat.h>
6116 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6117 struct buf { int x; };
6118 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6119 static char *e (p, i)
6120 char **p;
6121 int i;
6123 return p[i];
6125 static char *f (char * (*g) (char **, int), char **p, ...)
6127 char *s;
6128 va_list v;
6129 va_start (v,p);
6130 s = g (p, va_arg (v,int));
6131 va_end (v);
6132 return s;
6135 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6136 function prototypes and stuff, but not '\xHH' hex character constants.
6137 These don't provoke an error unfortunately, instead are silently treated
6138 as 'x'. The following induces an error, until -std is added to get
6139 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6140 array size at least. It's necessary to write '\x00'==0 to get something
6141 that's true only with -std. */
6142 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6144 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6145 inside strings and character constants. */
6146 #define FOO(x) 'x'
6147 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6149 int test (int i, double x);
6150 struct s1 {int (*f) (int a);};
6151 struct s2 {int (*f) (double a);};
6152 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6153 int argc;
6154 char **argv;
6156 main ()
6158 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6160 return 0;
6162 _ACEOF
6163 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6164 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6166 CC="$ac_save_CC $ac_arg"
6167 rm -f conftest.$ac_objext
6168 if { (ac_try="$ac_compile"
6169 case "(($ac_try" in
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6172 esac
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_compile") 2>conftest.er1
6175 ac_status=$?
6176 grep -v '^ *+' conftest.er1 >conftest.err
6177 rm -f conftest.er1
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } &&
6181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6182 { (case "(($ac_try" in
6183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184 *) ac_try_echo=$ac_try;;
6185 esac
6186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6187 (eval "$ac_try") 2>&5
6188 ac_status=$?
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); }; } &&
6191 { ac_try='test -s conftest.$ac_objext'
6192 { (case "(($ac_try" in
6193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6194 *) ac_try_echo=$ac_try;;
6195 esac
6196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6197 (eval "$ac_try") 2>&5
6198 ac_status=$?
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 ac_cv_prog_cc_c89=$ac_arg
6202 else
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6209 rm -f core conftest.err conftest.$ac_objext
6210 test "x$ac_cv_prog_cc_c89" != "xno" && break
6211 done
6212 rm -f conftest.$ac_ext
6213 CC=$ac_save_CC
6216 # AC_CACHE_VAL
6217 case "x$ac_cv_prog_cc_c89" in
6219 { echo "$as_me:$LINENO: result: none needed" >&5
6220 echo "${ECHO_T}none needed" >&6; } ;;
6221 xno)
6222 { echo "$as_me:$LINENO: result: unsupported" >&5
6223 echo "${ECHO_T}unsupported" >&6; } ;;
6225 CC="$CC $ac_cv_prog_cc_c89"
6226 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6227 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6228 esac
6231 ac_ext=c
6232 ac_cpp='$CPP $CPPFLAGS'
6233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6237 ac_ext=cpp
6238 ac_cpp='$CXXCPP $CPPFLAGS'
6239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6242 if test -z "$CXX"; then
6243 if test -n "$CCC"; then
6244 CXX=$CCC
6245 else
6246 if test -n "$ac_tool_prefix"; then
6247 for ac_prog in g++
6249 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6250 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6253 if test "${ac_cv_prog_CXX+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 else
6256 if test -n "$CXX"; then
6257 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6258 else
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in $PATH
6262 IFS=$as_save_IFS
6263 test -z "$as_dir" && as_dir=.
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6266 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 break 2
6270 done
6271 done
6272 IFS=$as_save_IFS
6276 CXX=$ac_cv_prog_CXX
6277 if test -n "$CXX"; then
6278 { echo "$as_me:$LINENO: result: $CXX" >&5
6279 echo "${ECHO_T}$CXX" >&6; }
6280 else
6281 { echo "$as_me:$LINENO: result: no" >&5
6282 echo "${ECHO_T}no" >&6; }
6286 test -n "$CXX" && break
6287 done
6289 if test -z "$CXX"; then
6290 ac_ct_CXX=$CXX
6291 for ac_prog in g++
6293 # Extract the first word of "$ac_prog", so it can be a program name with args.
6294 set dummy $ac_prog; ac_word=$2
6295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6297 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 else
6300 if test -n "$ac_ct_CXX"; then
6301 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6302 else
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 for as_dir in $PATH
6306 IFS=$as_save_IFS
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6310 ac_cv_prog_ac_ct_CXX="$ac_prog"
6311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 break 2
6314 done
6315 done
6316 IFS=$as_save_IFS
6320 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6321 if test -n "$ac_ct_CXX"; then
6322 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6323 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6324 else
6325 { echo "$as_me:$LINENO: result: no" >&5
6326 echo "${ECHO_T}no" >&6; }
6330 test -n "$ac_ct_CXX" && break
6331 done
6333 if test "x$ac_ct_CXX" = x; then
6334 CXX="g++"
6335 else
6336 case $cross_compiling:$ac_tool_warned in
6337 yes:)
6338 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6339 whose name does not start with the host triplet. If you think this
6340 configuration is useful to you, please write to autoconf@gnu.org." >&5
6341 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6342 whose name does not start with the host triplet. If you think this
6343 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6344 ac_tool_warned=yes ;;
6345 esac
6346 CXX=$ac_ct_CXX
6352 # Provide some information about the compiler.
6353 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6354 ac_compiler=`set X $ac_compile; echo $2`
6355 { (ac_try="$ac_compiler --version >&5"
6356 case "(($ac_try" in
6357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6358 *) ac_try_echo=$ac_try;;
6359 esac
6360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6361 (eval "$ac_compiler --version >&5") 2>&5
6362 ac_status=$?
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }
6365 { (ac_try="$ac_compiler -v >&5"
6366 case "(($ac_try" in
6367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368 *) ac_try_echo=$ac_try;;
6369 esac
6370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6371 (eval "$ac_compiler -v >&5") 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }
6375 { (ac_try="$ac_compiler -V >&5"
6376 case "(($ac_try" in
6377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6378 *) ac_try_echo=$ac_try;;
6379 esac
6380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6381 (eval "$ac_compiler -V >&5") 2>&5
6382 ac_status=$?
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); }
6386 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6387 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6388 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 else
6391 cat >conftest.$ac_ext <<_ACEOF
6392 /* confdefs.h. */
6393 _ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6399 main ()
6401 #ifndef __GNUC__
6402 choke me
6403 #endif
6406 return 0;
6408 _ACEOF
6409 rm -f conftest.$ac_objext
6410 if { (ac_try="$ac_compile"
6411 case "(($ac_try" in
6412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413 *) ac_try_echo=$ac_try;;
6414 esac
6415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416 (eval "$ac_compile") 2>conftest.er1
6417 ac_status=$?
6418 grep -v '^ *+' conftest.er1 >conftest.err
6419 rm -f conftest.er1
6420 cat conftest.err >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } &&
6423 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6424 { (case "(($ac_try" in
6425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6426 *) ac_try_echo=$ac_try;;
6427 esac
6428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429 (eval "$ac_try") 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; } &&
6433 { ac_try='test -s conftest.$ac_objext'
6434 { (case "(($ac_try" in
6435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6436 *) ac_try_echo=$ac_try;;
6437 esac
6438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6439 (eval "$ac_try") 2>&5
6440 ac_status=$?
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); }; }; then
6443 ac_compiler_gnu=yes
6444 else
6445 echo "$as_me: failed program was:" >&5
6446 sed 's/^/| /' conftest.$ac_ext >&5
6448 ac_compiler_gnu=no
6451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6452 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6455 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6456 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6457 GXX=`test $ac_compiler_gnu = yes && echo yes`
6458 ac_test_CXXFLAGS=${CXXFLAGS+set}
6459 ac_save_CXXFLAGS=$CXXFLAGS
6460 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6461 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6462 if test "${ac_cv_prog_cxx_g+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6466 ac_cxx_werror_flag=yes
6467 ac_cv_prog_cxx_g=no
6468 CXXFLAGS="-g"
6469 cat >conftest.$ac_ext <<_ACEOF
6470 /* confdefs.h. */
6471 _ACEOF
6472 cat confdefs.h >>conftest.$ac_ext
6473 cat >>conftest.$ac_ext <<_ACEOF
6474 /* end confdefs.h. */
6477 main ()
6481 return 0;
6483 _ACEOF
6484 rm -f conftest.$ac_objext
6485 if { (ac_try="$ac_compile"
6486 case "(($ac_try" in
6487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6488 *) ac_try_echo=$ac_try;;
6489 esac
6490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6491 (eval "$ac_compile") 2>conftest.er1
6492 ac_status=$?
6493 grep -v '^ *+' conftest.er1 >conftest.err
6494 rm -f conftest.er1
6495 cat conftest.err >&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } &&
6498 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6499 { (case "(($ac_try" in
6500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6501 *) ac_try_echo=$ac_try;;
6502 esac
6503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6504 (eval "$ac_try") 2>&5
6505 ac_status=$?
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); }; } &&
6508 { ac_try='test -s conftest.$ac_objext'
6509 { (case "(($ac_try" in
6510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6511 *) ac_try_echo=$ac_try;;
6512 esac
6513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6514 (eval "$ac_try") 2>&5
6515 ac_status=$?
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; }; then
6518 ac_cv_prog_cxx_g=yes
6519 else
6520 echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6523 CXXFLAGS=""
6524 cat >conftest.$ac_ext <<_ACEOF
6525 /* confdefs.h. */
6526 _ACEOF
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h. */
6532 main ()
6536 return 0;
6538 _ACEOF
6539 rm -f conftest.$ac_objext
6540 if { (ac_try="$ac_compile"
6541 case "(($ac_try" in
6542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6543 *) ac_try_echo=$ac_try;;
6544 esac
6545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6546 (eval "$ac_compile") 2>conftest.er1
6547 ac_status=$?
6548 grep -v '^ *+' conftest.er1 >conftest.err
6549 rm -f conftest.er1
6550 cat conftest.err >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } &&
6553 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6554 { (case "(($ac_try" in
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6557 esac
6558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559 (eval "$ac_try") 2>&5
6560 ac_status=$?
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; } &&
6563 { ac_try='test -s conftest.$ac_objext'
6564 { (case "(($ac_try" in
6565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6566 *) ac_try_echo=$ac_try;;
6567 esac
6568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6569 (eval "$ac_try") 2>&5
6570 ac_status=$?
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }; }; then
6574 else
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6578 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6579 CXXFLAGS="-g"
6580 cat >conftest.$ac_ext <<_ACEOF
6581 /* confdefs.h. */
6582 _ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6588 main ()
6592 return 0;
6594 _ACEOF
6595 rm -f conftest.$ac_objext
6596 if { (ac_try="$ac_compile"
6597 case "(($ac_try" in
6598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6599 *) ac_try_echo=$ac_try;;
6600 esac
6601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6602 (eval "$ac_compile") 2>conftest.er1
6603 ac_status=$?
6604 grep -v '^ *+' conftest.er1 >conftest.err
6605 rm -f conftest.er1
6606 cat conftest.err >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } &&
6609 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6610 { (case "(($ac_try" in
6611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6612 *) ac_try_echo=$ac_try;;
6613 esac
6614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6615 (eval "$ac_try") 2>&5
6616 ac_status=$?
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); }; } &&
6619 { ac_try='test -s conftest.$ac_objext'
6620 { (case "(($ac_try" in
6621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6622 *) ac_try_echo=$ac_try;;
6623 esac
6624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6625 (eval "$ac_try") 2>&5
6626 ac_status=$?
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); }; }; then
6629 ac_cv_prog_cxx_g=yes
6630 else
6631 echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6644 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6646 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6647 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6648 if test "$ac_test_CXXFLAGS" = set; then
6649 CXXFLAGS=$ac_save_CXXFLAGS
6650 elif test $ac_cv_prog_cxx_g = yes; then
6651 if test "$GXX" = yes; then
6652 CXXFLAGS="-g -O2"
6653 else
6654 CXXFLAGS="-g"
6656 else
6657 if test "$GXX" = yes; then
6658 CXXFLAGS="-O2"
6659 else
6660 CXXFLAGS=
6663 ac_ext=c
6664 ac_cpp='$CPP $CPPFLAGS'
6665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6670 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6671 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6672 if test "${lt_cv_path_NM+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6674 else
6675 if test -n "$NM"; then
6676 # Let the user override the test.
6677 lt_cv_path_NM="$NM"
6678 else
6679 lt_nm_to_check="${ac_tool_prefix}nm"
6680 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6681 lt_nm_to_check="$lt_nm_to_check nm"
6683 for lt_tmp_nm in $lt_nm_to_check; do
6684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6685 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6686 IFS="$lt_save_ifs"
6687 test -z "$ac_dir" && ac_dir=.
6688 tmp_nm="$ac_dir/$lt_tmp_nm"
6689 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6690 # Check to see if the nm accepts a BSD-compat flag.
6691 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6692 # nm: unknown option "B" ignored
6693 # Tru64's nm complains that /dev/null is an invalid object file
6694 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6695 */dev/null* | *'Invalid file or object type'*)
6696 lt_cv_path_NM="$tmp_nm -B"
6697 break
6700 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6701 */dev/null*)
6702 lt_cv_path_NM="$tmp_nm -p"
6703 break
6706 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6707 continue # so that we can try to find one that supports BSD flags
6709 esac
6711 esac
6713 done
6714 IFS="$lt_save_ifs"
6715 done
6716 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6719 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6720 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6721 NM="$lt_cv_path_NM"
6725 { echo "$as_me:$LINENO: checking for GNU make" >&5
6726 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6727 if test "${llvm_cv_gnu_make_command+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6729 else
6730 llvm_cv_gnu_make_command=''
6731 for a in "$MAKE" make gmake gnumake ; do
6732 if test -z "$a" ; then continue ; fi ;
6733 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6734 then
6735 llvm_cv_gnu_make_command=$a ;
6736 break;
6738 done
6740 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6741 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6742 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6743 ifGNUmake='' ;
6744 else
6745 ifGNUmake='#' ;
6746 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6747 echo "${ECHO_T}\"Not found\"" >&6; };
6751 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6752 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6753 LN_S=$as_ln_s
6754 if test "$LN_S" = "ln -s"; then
6755 { echo "$as_me:$LINENO: result: yes" >&5
6756 echo "${ECHO_T}yes" >&6; }
6757 else
6758 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6759 echo "${ECHO_T}no, using $LN_S" >&6; }
6762 # Extract the first word of "cmp", so it can be a program name with args.
6763 set dummy cmp; ac_word=$2
6764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766 if test "${ac_cv_path_CMP+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 else
6769 case $CMP in
6770 [\\/]* | ?:[\\/]*)
6771 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 break 2
6785 done
6786 done
6787 IFS=$as_save_IFS
6789 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6791 esac
6793 CMP=$ac_cv_path_CMP
6794 if test -n "$CMP"; then
6795 { echo "$as_me:$LINENO: result: $CMP" >&5
6796 echo "${ECHO_T}$CMP" >&6; }
6797 else
6798 { echo "$as_me:$LINENO: result: no" >&5
6799 echo "${ECHO_T}no" >&6; }
6803 # Extract the first word of "cp", so it can be a program name with args.
6804 set dummy cp; ac_word=$2
6805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6807 if test "${ac_cv_path_CP+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6809 else
6810 case $CP in
6811 [\\/]* | ?:[\\/]*)
6812 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 for as_dir in $PATH
6818 IFS=$as_save_IFS
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6822 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6824 break 2
6826 done
6827 done
6828 IFS=$as_save_IFS
6830 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6832 esac
6834 CP=$ac_cv_path_CP
6835 if test -n "$CP"; then
6836 { echo "$as_me:$LINENO: result: $CP" >&5
6837 echo "${ECHO_T}$CP" >&6; }
6838 else
6839 { echo "$as_me:$LINENO: result: no" >&5
6840 echo "${ECHO_T}no" >&6; }
6844 # Extract the first word of "date", so it can be a program name with args.
6845 set dummy date; ac_word=$2
6846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6848 if test "${ac_cv_path_DATE+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 else
6851 case $DATE in
6852 [\\/]* | ?:[\\/]*)
6853 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6859 IFS=$as_save_IFS
6860 test -z "$as_dir" && as_dir=.
6861 for ac_exec_ext in '' $ac_executable_extensions; do
6862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6863 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6865 break 2
6867 done
6868 done
6869 IFS=$as_save_IFS
6871 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6873 esac
6875 DATE=$ac_cv_path_DATE
6876 if test -n "$DATE"; then
6877 { echo "$as_me:$LINENO: result: $DATE" >&5
6878 echo "${ECHO_T}$DATE" >&6; }
6879 else
6880 { echo "$as_me:$LINENO: result: no" >&5
6881 echo "${ECHO_T}no" >&6; }
6885 # Extract the first word of "find", so it can be a program name with args.
6886 set dummy find; ac_word=$2
6887 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6889 if test "${ac_cv_path_FIND+set}" = set; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
6891 else
6892 case $FIND in
6893 [\\/]* | ?:[\\/]*)
6894 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 for as_dir in $PATH
6900 IFS=$as_save_IFS
6901 test -z "$as_dir" && as_dir=.
6902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6904 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6906 break 2
6908 done
6909 done
6910 IFS=$as_save_IFS
6912 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6914 esac
6916 FIND=$ac_cv_path_FIND
6917 if test -n "$FIND"; then
6918 { echo "$as_me:$LINENO: result: $FIND" >&5
6919 echo "${ECHO_T}$FIND" >&6; }
6920 else
6921 { echo "$as_me:$LINENO: result: no" >&5
6922 echo "${ECHO_T}no" >&6; }
6926 # Extract the first word of "grep", so it can be a program name with args.
6927 set dummy grep; ac_word=$2
6928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6930 if test "${ac_cv_path_GREP+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 else
6933 case $GREP in
6934 [\\/]* | ?:[\\/]*)
6935 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 for as_dir in $PATH
6941 IFS=$as_save_IFS
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6945 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6947 break 2
6949 done
6950 done
6951 IFS=$as_save_IFS
6953 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6955 esac
6957 GREP=$ac_cv_path_GREP
6958 if test -n "$GREP"; then
6959 { echo "$as_me:$LINENO: result: $GREP" >&5
6960 echo "${ECHO_T}$GREP" >&6; }
6961 else
6962 { echo "$as_me:$LINENO: result: no" >&5
6963 echo "${ECHO_T}no" >&6; }
6967 # Extract the first word of "mkdir", so it can be a program name with args.
6968 set dummy mkdir; ac_word=$2
6969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6971 if test "${ac_cv_path_MKDIR+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 else
6974 case $MKDIR in
6975 [\\/]* | ?:[\\/]*)
6976 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980 for as_dir in $PATH
6982 IFS=$as_save_IFS
6983 test -z "$as_dir" && as_dir=.
6984 for ac_exec_ext in '' $ac_executable_extensions; do
6985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6986 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6988 break 2
6990 done
6991 done
6992 IFS=$as_save_IFS
6994 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6996 esac
6998 MKDIR=$ac_cv_path_MKDIR
6999 if test -n "$MKDIR"; then
7000 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7001 echo "${ECHO_T}$MKDIR" >&6; }
7002 else
7003 { echo "$as_me:$LINENO: result: no" >&5
7004 echo "${ECHO_T}no" >&6; }
7008 # Extract the first word of "mv", so it can be a program name with args.
7009 set dummy mv; ac_word=$2
7010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7012 if test "${ac_cv_path_MV+set}" = set; then
7013 echo $ECHO_N "(cached) $ECHO_C" >&6
7014 else
7015 case $MV in
7016 [\\/]* | ?:[\\/]*)
7017 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 for as_dir in $PATH
7023 IFS=$as_save_IFS
7024 test -z "$as_dir" && as_dir=.
7025 for ac_exec_ext in '' $ac_executable_extensions; do
7026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7027 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7029 break 2
7031 done
7032 done
7033 IFS=$as_save_IFS
7035 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7037 esac
7039 MV=$ac_cv_path_MV
7040 if test -n "$MV"; then
7041 { echo "$as_me:$LINENO: result: $MV" >&5
7042 echo "${ECHO_T}$MV" >&6; }
7043 else
7044 { echo "$as_me:$LINENO: result: no" >&5
7045 echo "${ECHO_T}no" >&6; }
7049 if test -n "$ac_tool_prefix"; then
7050 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7051 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7054 if test "${ac_cv_prog_RANLIB+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 else
7057 if test -n "$RANLIB"; then
7058 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7059 else
7060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 for as_dir in $PATH
7063 IFS=$as_save_IFS
7064 test -z "$as_dir" && as_dir=.
7065 for ac_exec_ext in '' $ac_executable_extensions; do
7066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7067 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7069 break 2
7071 done
7072 done
7073 IFS=$as_save_IFS
7077 RANLIB=$ac_cv_prog_RANLIB
7078 if test -n "$RANLIB"; then
7079 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7080 echo "${ECHO_T}$RANLIB" >&6; }
7081 else
7082 { echo "$as_me:$LINENO: result: no" >&5
7083 echo "${ECHO_T}no" >&6; }
7088 if test -z "$ac_cv_prog_RANLIB"; then
7089 ac_ct_RANLIB=$RANLIB
7090 # Extract the first word of "ranlib", so it can be a program name with args.
7091 set dummy ranlib; ac_word=$2
7092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7094 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7095 echo $ECHO_N "(cached) $ECHO_C" >&6
7096 else
7097 if test -n "$ac_ct_RANLIB"; then
7098 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7099 else
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 for as_dir in $PATH
7103 IFS=$as_save_IFS
7104 test -z "$as_dir" && as_dir=.
7105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7107 ac_cv_prog_ac_ct_RANLIB="ranlib"
7108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7109 break 2
7111 done
7112 done
7113 IFS=$as_save_IFS
7117 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7118 if test -n "$ac_ct_RANLIB"; then
7119 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7120 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7121 else
7122 { echo "$as_me:$LINENO: result: no" >&5
7123 echo "${ECHO_T}no" >&6; }
7126 if test "x$ac_ct_RANLIB" = x; then
7127 RANLIB=":"
7128 else
7129 case $cross_compiling:$ac_tool_warned in
7130 yes:)
7131 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7132 whose name does not start with the host triplet. If you think this
7133 configuration is useful to you, please write to autoconf@gnu.org." >&5
7134 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7135 whose name does not start with the host triplet. If you think this
7136 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7137 ac_tool_warned=yes ;;
7138 esac
7139 RANLIB=$ac_ct_RANLIB
7141 else
7142 RANLIB="$ac_cv_prog_RANLIB"
7145 if test -n "$ac_tool_prefix"; then
7146 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7147 set dummy ${ac_tool_prefix}ar; ac_word=$2
7148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7150 if test "${ac_cv_prog_AR+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 else
7153 if test -n "$AR"; then
7154 ac_cv_prog_AR="$AR" # Let the user override the test.
7155 else
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7163 ac_cv_prog_AR="${ac_tool_prefix}ar"
7164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 break 2
7167 done
7168 done
7169 IFS=$as_save_IFS
7173 AR=$ac_cv_prog_AR
7174 if test -n "$AR"; then
7175 { echo "$as_me:$LINENO: result: $AR" >&5
7176 echo "${ECHO_T}$AR" >&6; }
7177 else
7178 { echo "$as_me:$LINENO: result: no" >&5
7179 echo "${ECHO_T}no" >&6; }
7184 if test -z "$ac_cv_prog_AR"; then
7185 ac_ct_AR=$AR
7186 # Extract the first word of "ar", so it can be a program name with args.
7187 set dummy ar; ac_word=$2
7188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7190 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7191 echo $ECHO_N "(cached) $ECHO_C" >&6
7192 else
7193 if test -n "$ac_ct_AR"; then
7194 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7195 else
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7199 IFS=$as_save_IFS
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7203 ac_cv_prog_ac_ct_AR="ar"
7204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 break 2
7207 done
7208 done
7209 IFS=$as_save_IFS
7213 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7214 if test -n "$ac_ct_AR"; then
7215 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7216 echo "${ECHO_T}$ac_ct_AR" >&6; }
7217 else
7218 { echo "$as_me:$LINENO: result: no" >&5
7219 echo "${ECHO_T}no" >&6; }
7222 if test "x$ac_ct_AR" = x; then
7223 AR="false"
7224 else
7225 case $cross_compiling:$ac_tool_warned in
7226 yes:)
7227 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7228 whose name does not start with the host triplet. If you think this
7229 configuration is useful to you, please write to autoconf@gnu.org." >&5
7230 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7231 whose name does not start with the host triplet. If you think this
7232 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7233 ac_tool_warned=yes ;;
7234 esac
7235 AR=$ac_ct_AR
7237 else
7238 AR="$ac_cv_prog_AR"
7241 # Extract the first word of "rm", so it can be a program name with args.
7242 set dummy rm; ac_word=$2
7243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7245 if test "${ac_cv_path_RM+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 else
7248 case $RM in
7249 [\\/]* | ?:[\\/]*)
7250 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7256 IFS=$as_save_IFS
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 break 2
7264 done
7265 done
7266 IFS=$as_save_IFS
7268 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7270 esac
7272 RM=$ac_cv_path_RM
7273 if test -n "$RM"; then
7274 { echo "$as_me:$LINENO: result: $RM" >&5
7275 echo "${ECHO_T}$RM" >&6; }
7276 else
7277 { echo "$as_me:$LINENO: result: no" >&5
7278 echo "${ECHO_T}no" >&6; }
7282 # Extract the first word of "sed", so it can be a program name with args.
7283 set dummy sed; ac_word=$2
7284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7286 if test "${ac_cv_path_SED+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7288 else
7289 case $SED in
7290 [\\/]* | ?:[\\/]*)
7291 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 for as_dir in $PATH
7297 IFS=$as_save_IFS
7298 test -z "$as_dir" && as_dir=.
7299 for ac_exec_ext in '' $ac_executable_extensions; do
7300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7301 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7303 break 2
7305 done
7306 done
7307 IFS=$as_save_IFS
7309 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7311 esac
7313 SED=$ac_cv_path_SED
7314 if test -n "$SED"; then
7315 { echo "$as_me:$LINENO: result: $SED" >&5
7316 echo "${ECHO_T}$SED" >&6; }
7317 else
7318 { echo "$as_me:$LINENO: result: no" >&5
7319 echo "${ECHO_T}no" >&6; }
7323 # Extract the first word of "tar", so it can be a program name with args.
7324 set dummy tar; ac_word=$2
7325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7327 if test "${ac_cv_path_TAR+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 else
7330 case $TAR in
7331 [\\/]* | ?:[\\/]*)
7332 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336 for as_dir in $PATH
7338 IFS=$as_save_IFS
7339 test -z "$as_dir" && as_dir=.
7340 for ac_exec_ext in '' $ac_executable_extensions; do
7341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7342 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7344 break 2
7346 done
7347 done
7348 IFS=$as_save_IFS
7350 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7352 esac
7354 TAR=$ac_cv_path_TAR
7355 if test -n "$TAR"; then
7356 { echo "$as_me:$LINENO: result: $TAR" >&5
7357 echo "${ECHO_T}$TAR" >&6; }
7358 else
7359 { echo "$as_me:$LINENO: result: no" >&5
7360 echo "${ECHO_T}no" >&6; }
7364 # Extract the first word of "pwd", so it can be a program name with args.
7365 set dummy pwd; ac_word=$2
7366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7368 if test "${ac_cv_path_BINPWD+set}" = set; then
7369 echo $ECHO_N "(cached) $ECHO_C" >&6
7370 else
7371 case $BINPWD in
7372 [\\/]* | ?:[\\/]*)
7373 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377 for as_dir in $PATH
7379 IFS=$as_save_IFS
7380 test -z "$as_dir" && as_dir=.
7381 for ac_exec_ext in '' $ac_executable_extensions; do
7382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7383 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7385 break 2
7387 done
7388 done
7389 IFS=$as_save_IFS
7391 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7393 esac
7395 BINPWD=$ac_cv_path_BINPWD
7396 if test -n "$BINPWD"; then
7397 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7398 echo "${ECHO_T}$BINPWD" >&6; }
7399 else
7400 { echo "$as_me:$LINENO: result: no" >&5
7401 echo "${ECHO_T}no" >&6; }
7406 # Extract the first word of "Graphviz", so it can be a program name with args.
7407 set dummy Graphviz; ac_word=$2
7408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7410 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7412 else
7413 case $GRAPHVIZ in
7414 [\\/]* | ?:[\\/]*)
7415 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 for as_dir in $PATH
7421 IFS=$as_save_IFS
7422 test -z "$as_dir" && as_dir=.
7423 for ac_exec_ext in '' $ac_executable_extensions; do
7424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7425 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7427 break 2
7429 done
7430 done
7431 IFS=$as_save_IFS
7433 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7435 esac
7437 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7438 if test -n "$GRAPHVIZ"; then
7439 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7440 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7441 else
7442 { echo "$as_me:$LINENO: result: no" >&5
7443 echo "${ECHO_T}no" >&6; }
7447 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7449 cat >>confdefs.h <<\_ACEOF
7450 #define HAVE_GRAPHVIZ 1
7451 _ACEOF
7453 if test "$llvm_cv_os_type" = "MingW" ; then
7454 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7457 cat >>confdefs.h <<_ACEOF
7458 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7459 _ACEOF
7462 # Extract the first word of "dot", so it can be a program name with args.
7463 set dummy dot; ac_word=$2
7464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7466 if test "${ac_cv_path_DOT+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7468 else
7469 case $DOT in
7470 [\\/]* | ?:[\\/]*)
7471 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 for as_dir in $PATH
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7481 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 break 2
7485 done
7486 done
7487 IFS=$as_save_IFS
7489 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7491 esac
7493 DOT=$ac_cv_path_DOT
7494 if test -n "$DOT"; then
7495 { echo "$as_me:$LINENO: result: $DOT" >&5
7496 echo "${ECHO_T}$DOT" >&6; }
7497 else
7498 { echo "$as_me:$LINENO: result: no" >&5
7499 echo "${ECHO_T}no" >&6; }
7503 if test "$DOT" != "echo dot" ; then
7505 cat >>confdefs.h <<\_ACEOF
7506 #define HAVE_DOT 1
7507 _ACEOF
7509 if test "$llvm_cv_os_type" = "MingW" ; then
7510 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7513 cat >>confdefs.h <<_ACEOF
7514 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7515 _ACEOF
7518 # Extract the first word of "fdp", so it can be a program name with args.
7519 set dummy fdp; ac_word=$2
7520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7522 if test "${ac_cv_path_FDP+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7524 else
7525 case $FDP in
7526 [\\/]* | ?:[\\/]*)
7527 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531 for as_dir in $PATH
7533 IFS=$as_save_IFS
7534 test -z "$as_dir" && as_dir=.
7535 for ac_exec_ext in '' $ac_executable_extensions; do
7536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7537 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 break 2
7541 done
7542 done
7543 IFS=$as_save_IFS
7545 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7547 esac
7549 FDP=$ac_cv_path_FDP
7550 if test -n "$FDP"; then
7551 { echo "$as_me:$LINENO: result: $FDP" >&5
7552 echo "${ECHO_T}$FDP" >&6; }
7553 else
7554 { echo "$as_me:$LINENO: result: no" >&5
7555 echo "${ECHO_T}no" >&6; }
7559 if test "$FDP" != "echo fdp" ; then
7561 cat >>confdefs.h <<\_ACEOF
7562 #define HAVE_FDP 1
7563 _ACEOF
7565 if test "$llvm_cv_os_type" = "MingW" ; then
7566 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7569 cat >>confdefs.h <<_ACEOF
7570 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7571 _ACEOF
7574 # Extract the first word of "neato", so it can be a program name with args.
7575 set dummy neato; ac_word=$2
7576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7578 if test "${ac_cv_path_NEATO+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7580 else
7581 case $NEATO in
7582 [\\/]* | ?:[\\/]*)
7583 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 for as_dir in $PATH
7589 IFS=$as_save_IFS
7590 test -z "$as_dir" && as_dir=.
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7593 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 break 2
7597 done
7598 done
7599 IFS=$as_save_IFS
7601 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7603 esac
7605 NEATO=$ac_cv_path_NEATO
7606 if test -n "$NEATO"; then
7607 { echo "$as_me:$LINENO: result: $NEATO" >&5
7608 echo "${ECHO_T}$NEATO" >&6; }
7609 else
7610 { echo "$as_me:$LINENO: result: no" >&5
7611 echo "${ECHO_T}no" >&6; }
7615 if test "$NEATO" != "echo neato" ; then
7617 cat >>confdefs.h <<\_ACEOF
7618 #define HAVE_NEATO 1
7619 _ACEOF
7621 if test "$llvm_cv_os_type" = "MingW" ; then
7622 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7625 cat >>confdefs.h <<_ACEOF
7626 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7627 _ACEOF
7630 # Extract the first word of "twopi", so it can be a program name with args.
7631 set dummy twopi; ac_word=$2
7632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7634 if test "${ac_cv_path_TWOPI+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637 case $TWOPI in
7638 [\\/]* | ?:[\\/]*)
7639 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 for as_dir in $PATH
7645 IFS=$as_save_IFS
7646 test -z "$as_dir" && as_dir=.
7647 for ac_exec_ext in '' $ac_executable_extensions; do
7648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7649 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7651 break 2
7653 done
7654 done
7655 IFS=$as_save_IFS
7657 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7659 esac
7661 TWOPI=$ac_cv_path_TWOPI
7662 if test -n "$TWOPI"; then
7663 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7664 echo "${ECHO_T}$TWOPI" >&6; }
7665 else
7666 { echo "$as_me:$LINENO: result: no" >&5
7667 echo "${ECHO_T}no" >&6; }
7671 if test "$TWOPI" != "echo twopi" ; then
7673 cat >>confdefs.h <<\_ACEOF
7674 #define HAVE_TWOPI 1
7675 _ACEOF
7677 if test "$llvm_cv_os_type" = "MingW" ; then
7678 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7681 cat >>confdefs.h <<_ACEOF
7682 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7683 _ACEOF
7686 # Extract the first word of "circo", so it can be a program name with args.
7687 set dummy circo; ac_word=$2
7688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7690 if test "${ac_cv_path_CIRCO+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
7692 else
7693 case $CIRCO in
7694 [\\/]* | ?:[\\/]*)
7695 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 for as_dir in $PATH
7701 IFS=$as_save_IFS
7702 test -z "$as_dir" && as_dir=.
7703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7705 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7707 break 2
7709 done
7710 done
7711 IFS=$as_save_IFS
7713 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7715 esac
7717 CIRCO=$ac_cv_path_CIRCO
7718 if test -n "$CIRCO"; then
7719 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7720 echo "${ECHO_T}$CIRCO" >&6; }
7721 else
7722 { echo "$as_me:$LINENO: result: no" >&5
7723 echo "${ECHO_T}no" >&6; }
7727 if test "$CIRCO" != "echo circo" ; then
7729 cat >>confdefs.h <<\_ACEOF
7730 #define HAVE_CIRCO 1
7731 _ACEOF
7733 if test "$llvm_cv_os_type" = "MingW" ; then
7734 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7737 cat >>confdefs.h <<_ACEOF
7738 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7739 _ACEOF
7742 for ac_prog in gv gsview32
7744 # Extract the first word of "$ac_prog", so it can be a program name with args.
7745 set dummy $ac_prog; ac_word=$2
7746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7748 if test "${ac_cv_path_GV+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7750 else
7751 case $GV in
7752 [\\/]* | ?:[\\/]*)
7753 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757 for as_dir in $PATH
7759 IFS=$as_save_IFS
7760 test -z "$as_dir" && as_dir=.
7761 for ac_exec_ext in '' $ac_executable_extensions; do
7762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7763 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7765 break 2
7767 done
7768 done
7769 IFS=$as_save_IFS
7772 esac
7774 GV=$ac_cv_path_GV
7775 if test -n "$GV"; then
7776 { echo "$as_me:$LINENO: result: $GV" >&5
7777 echo "${ECHO_T}$GV" >&6; }
7778 else
7779 { echo "$as_me:$LINENO: result: no" >&5
7780 echo "${ECHO_T}no" >&6; }
7784 test -n "$GV" && break
7785 done
7786 test -n "$GV" || GV="echo gv"
7788 if test "$GV" != "echo gv" ; then
7790 cat >>confdefs.h <<\_ACEOF
7791 #define HAVE_GV 1
7792 _ACEOF
7794 if test "$llvm_cv_os_type" = "MingW" ; then
7795 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7798 cat >>confdefs.h <<_ACEOF
7799 #define LLVM_PATH_GV "$GV${EXEEXT}"
7800 _ACEOF
7803 # Extract the first word of "dotty", so it can be a program name with args.
7804 set dummy dotty; ac_word=$2
7805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7807 if test "${ac_cv_path_DOTTY+set}" = set; then
7808 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 else
7810 case $DOTTY in
7811 [\\/]* | ?:[\\/]*)
7812 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 for as_dir in $PATH
7818 IFS=$as_save_IFS
7819 test -z "$as_dir" && as_dir=.
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7822 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7824 break 2
7826 done
7827 done
7828 IFS=$as_save_IFS
7830 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7832 esac
7834 DOTTY=$ac_cv_path_DOTTY
7835 if test -n "$DOTTY"; then
7836 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7837 echo "${ECHO_T}$DOTTY" >&6; }
7838 else
7839 { echo "$as_me:$LINENO: result: no" >&5
7840 echo "${ECHO_T}no" >&6; }
7844 if test "$DOTTY" != "echo dotty" ; then
7846 cat >>confdefs.h <<\_ACEOF
7847 #define HAVE_DOTTY 1
7848 _ACEOF
7850 if test "$llvm_cv_os_type" = "MingW" ; then
7851 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7854 cat >>confdefs.h <<_ACEOF
7855 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7856 _ACEOF
7861 # Extract the first word of "perl", so it can be a program name with args.
7862 set dummy perl; ac_word=$2
7863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7865 if test "${ac_cv_path_PERL+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
7867 else
7868 case $PERL in
7869 [\\/]* | ?:[\\/]*)
7870 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 for as_dir in $PATH
7876 IFS=$as_save_IFS
7877 test -z "$as_dir" && as_dir=.
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7880 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7882 break 2
7884 done
7885 done
7886 IFS=$as_save_IFS
7888 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7890 esac
7892 PERL=$ac_cv_path_PERL
7893 if test -n "$PERL"; then
7894 { echo "$as_me:$LINENO: result: $PERL" >&5
7895 echo "${ECHO_T}$PERL" >&6; }
7896 else
7897 { echo "$as_me:$LINENO: result: no" >&5
7898 echo "${ECHO_T}no" >&6; }
7902 if test "$PERL" != "none"; then
7903 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7904 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7905 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7906 { echo "$as_me:$LINENO: result: yes" >&5
7907 echo "${ECHO_T}yes" >&6; }
7908 else
7909 PERL=none
7910 { echo "$as_me:$LINENO: result: not found" >&5
7911 echo "${ECHO_T}not found" >&6; }
7916 if test x"$PERL" = xnone; then
7917 HAVE_PERL=0
7919 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7920 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7921 { (exit 1); exit 1; }; }
7922 else
7923 HAVE_PERL=1
7927 # Find a good install program. We prefer a C program (faster),
7928 # so one script is as good as another. But avoid the broken or
7929 # incompatible versions:
7930 # SysV /etc/install, /usr/sbin/install
7931 # SunOS /usr/etc/install
7932 # IRIX /sbin/install
7933 # AIX /bin/install
7934 # AmigaOS /C/install, which installs bootblocks on floppy discs
7935 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7936 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7937 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7938 # OS/2's system install, which has a completely different semantic
7939 # ./install, which can be erroneously created by make from ./install.sh.
7940 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7941 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7942 if test -z "$INSTALL"; then
7943 if test "${ac_cv_path_install+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 else
7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947 for as_dir in $PATH
7949 IFS=$as_save_IFS
7950 test -z "$as_dir" && as_dir=.
7951 # Account for people who put trailing slashes in PATH elements.
7952 case $as_dir/ in
7953 ./ | .// | /cC/* | \
7954 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7955 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7956 /usr/ucb/* ) ;;
7958 # OSF1 and SCO ODT 3.0 have their own names for install.
7959 # Don't use installbsd from OSF since it installs stuff as root
7960 # by default.
7961 for ac_prog in ginstall scoinst install; do
7962 for ac_exec_ext in '' $ac_executable_extensions; do
7963 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7964 if test $ac_prog = install &&
7965 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7966 # AIX install. It has an incompatible calling convention.
7968 elif test $ac_prog = install &&
7969 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7970 # program-specific install script used by HP pwplus--don't use.
7972 else
7973 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7974 break 3
7977 done
7978 done
7980 esac
7981 done
7982 IFS=$as_save_IFS
7986 if test "${ac_cv_path_install+set}" = set; then
7987 INSTALL=$ac_cv_path_install
7988 else
7989 # As a last resort, use the slow shell script. Don't cache a
7990 # value for INSTALL within a source directory, because that will
7991 # break other packages using the cache if that directory is
7992 # removed, or if the value is a relative name.
7993 INSTALL=$ac_install_sh
7996 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7997 echo "${ECHO_T}$INSTALL" >&6; }
7999 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8000 # It thinks the first close brace ends the variable substitution.
8001 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8003 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8005 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8008 # Extract the first word of "bzip2", so it can be a program name with args.
8009 set dummy bzip2; ac_word=$2
8010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8012 if test "${ac_cv_path_BZIP2+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8014 else
8015 case $BZIP2 in
8016 [\\/]* | ?:[\\/]*)
8017 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021 for as_dir in $PATH
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
8026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8027 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 break 2
8031 done
8032 done
8033 IFS=$as_save_IFS
8036 esac
8038 BZIP2=$ac_cv_path_BZIP2
8039 if test -n "$BZIP2"; then
8040 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8041 echo "${ECHO_T}$BZIP2" >&6; }
8042 else
8043 { echo "$as_me:$LINENO: result: no" >&5
8044 echo "${ECHO_T}no" >&6; }
8048 # Extract the first word of "cat", so it can be a program name with args.
8049 set dummy cat; ac_word=$2
8050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8052 if test "${ac_cv_path_CAT+set}" = set; then
8053 echo $ECHO_N "(cached) $ECHO_C" >&6
8054 else
8055 case $CAT in
8056 [\\/]* | ?:[\\/]*)
8057 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061 for as_dir in $PATH
8063 IFS=$as_save_IFS
8064 test -z "$as_dir" && as_dir=.
8065 for ac_exec_ext in '' $ac_executable_extensions; do
8066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8067 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8069 break 2
8071 done
8072 done
8073 IFS=$as_save_IFS
8076 esac
8078 CAT=$ac_cv_path_CAT
8079 if test -n "$CAT"; then
8080 { echo "$as_me:$LINENO: result: $CAT" >&5
8081 echo "${ECHO_T}$CAT" >&6; }
8082 else
8083 { echo "$as_me:$LINENO: result: no" >&5
8084 echo "${ECHO_T}no" >&6; }
8088 # Extract the first word of "doxygen", so it can be a program name with args.
8089 set dummy doxygen; ac_word=$2
8090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8092 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8094 else
8095 case $DOXYGEN in
8096 [\\/]* | ?:[\\/]*)
8097 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 for as_dir in $PATH
8103 IFS=$as_save_IFS
8104 test -z "$as_dir" && as_dir=.
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8107 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8109 break 2
8111 done
8112 done
8113 IFS=$as_save_IFS
8116 esac
8118 DOXYGEN=$ac_cv_path_DOXYGEN
8119 if test -n "$DOXYGEN"; then
8120 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8121 echo "${ECHO_T}$DOXYGEN" >&6; }
8122 else
8123 { echo "$as_me:$LINENO: result: no" >&5
8124 echo "${ECHO_T}no" >&6; }
8128 # Extract the first word of "groff", so it can be a program name with args.
8129 set dummy groff; ac_word=$2
8130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8132 if test "${ac_cv_path_GROFF+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 else
8135 case $GROFF in
8136 [\\/]* | ?:[\\/]*)
8137 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 for as_dir in $PATH
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8147 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 break 2
8151 done
8152 done
8153 IFS=$as_save_IFS
8156 esac
8158 GROFF=$ac_cv_path_GROFF
8159 if test -n "$GROFF"; then
8160 { echo "$as_me:$LINENO: result: $GROFF" >&5
8161 echo "${ECHO_T}$GROFF" >&6; }
8162 else
8163 { echo "$as_me:$LINENO: result: no" >&5
8164 echo "${ECHO_T}no" >&6; }
8168 # Extract the first word of "gzip", so it can be a program name with args.
8169 set dummy gzip; ac_word=$2
8170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8172 if test "${ac_cv_path_GZIP+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8174 else
8175 case $GZIP in
8176 [\\/]* | ?:[\\/]*)
8177 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181 for as_dir in $PATH
8183 IFS=$as_save_IFS
8184 test -z "$as_dir" && as_dir=.
8185 for ac_exec_ext in '' $ac_executable_extensions; do
8186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8187 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8189 break 2
8191 done
8192 done
8193 IFS=$as_save_IFS
8196 esac
8198 GZIP=$ac_cv_path_GZIP
8199 if test -n "$GZIP"; then
8200 { echo "$as_me:$LINENO: result: $GZIP" >&5
8201 echo "${ECHO_T}$GZIP" >&6; }
8202 else
8203 { echo "$as_me:$LINENO: result: no" >&5
8204 echo "${ECHO_T}no" >&6; }
8208 # Extract the first word of "pod2html", so it can be a program name with args.
8209 set dummy pod2html; ac_word=$2
8210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8212 if test "${ac_cv_path_POD2HTML+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
8214 else
8215 case $POD2HTML in
8216 [\\/]* | ?:[\\/]*)
8217 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221 for as_dir in $PATH
8223 IFS=$as_save_IFS
8224 test -z "$as_dir" && as_dir=.
8225 for ac_exec_ext in '' $ac_executable_extensions; do
8226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8227 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8229 break 2
8231 done
8232 done
8233 IFS=$as_save_IFS
8236 esac
8238 POD2HTML=$ac_cv_path_POD2HTML
8239 if test -n "$POD2HTML"; then
8240 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8241 echo "${ECHO_T}$POD2HTML" >&6; }
8242 else
8243 { echo "$as_me:$LINENO: result: no" >&5
8244 echo "${ECHO_T}no" >&6; }
8248 # Extract the first word of "pod2man", so it can be a program name with args.
8249 set dummy pod2man; ac_word=$2
8250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8252 if test "${ac_cv_path_POD2MAN+set}" = set; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 else
8255 case $POD2MAN in
8256 [\\/]* | ?:[\\/]*)
8257 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261 for as_dir in $PATH
8263 IFS=$as_save_IFS
8264 test -z "$as_dir" && as_dir=.
8265 for ac_exec_ext in '' $ac_executable_extensions; do
8266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8267 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8269 break 2
8271 done
8272 done
8273 IFS=$as_save_IFS
8276 esac
8278 POD2MAN=$ac_cv_path_POD2MAN
8279 if test -n "$POD2MAN"; then
8280 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8281 echo "${ECHO_T}$POD2MAN" >&6; }
8282 else
8283 { echo "$as_me:$LINENO: result: no" >&5
8284 echo "${ECHO_T}no" >&6; }
8288 # Extract the first word of "pdfroff", so it can be a program name with args.
8289 set dummy pdfroff; ac_word=$2
8290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8292 if test "${ac_cv_path_PDFROFF+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8294 else
8295 case $PDFROFF in
8296 [\\/]* | ?:[\\/]*)
8297 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301 for as_dir in $PATH
8303 IFS=$as_save_IFS
8304 test -z "$as_dir" && as_dir=.
8305 for ac_exec_ext in '' $ac_executable_extensions; do
8306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8307 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8309 break 2
8311 done
8312 done
8313 IFS=$as_save_IFS
8316 esac
8318 PDFROFF=$ac_cv_path_PDFROFF
8319 if test -n "$PDFROFF"; then
8320 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8321 echo "${ECHO_T}$PDFROFF" >&6; }
8322 else
8323 { echo "$as_me:$LINENO: result: no" >&5
8324 echo "${ECHO_T}no" >&6; }
8328 # Extract the first word of "runtest", so it can be a program name with args.
8329 set dummy runtest; ac_word=$2
8330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8332 if test "${ac_cv_path_RUNTEST+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 else
8335 case $RUNTEST in
8336 [\\/]* | ?:[\\/]*)
8337 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8341 for as_dir in $PATH
8343 IFS=$as_save_IFS
8344 test -z "$as_dir" && as_dir=.
8345 for ac_exec_ext in '' $ac_executable_extensions; do
8346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8347 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8349 break 2
8351 done
8352 done
8353 IFS=$as_save_IFS
8356 esac
8358 RUNTEST=$ac_cv_path_RUNTEST
8359 if test -n "$RUNTEST"; then
8360 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8361 echo "${ECHO_T}$RUNTEST" >&6; }
8362 else
8363 { echo "$as_me:$LINENO: result: no" >&5
8364 echo "${ECHO_T}no" >&6; }
8369 no_itcl=true
8370 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8371 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8373 # Check whether --with-tclinclude was given.
8374 if test "${with_tclinclude+set}" = set; then
8375 withval=$with_tclinclude; with_tclinclude=${withval}
8376 else
8377 with_tclinclude=''
8380 if test "${ac_cv_path_tclsh+set}" = set; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
8382 else
8384 if test x"${with_tclinclude}" != x ; then
8385 if test -f ${with_tclinclude}/tclsh ; then
8386 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8387 elif test -f ${with_tclinclude}/src/tclsh ; then
8388 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8389 else
8390 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8391 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8392 { (exit 1); exit 1; }; }
8398 if test x"${ac_cv_path_tclsh}" = x ; then
8399 { echo "$as_me:$LINENO: result: none" >&5
8400 echo "${ECHO_T}none" >&6; }
8401 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
8403 # Extract the first word of "$ac_prog", so it can be a program name with args.
8404 set dummy $ac_prog; ac_word=$2
8405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8407 if test "${ac_cv_path_TCLSH+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
8409 else
8410 case $TCLSH in
8411 [\\/]* | ?:[\\/]*)
8412 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416 for as_dir in $PATH
8418 IFS=$as_save_IFS
8419 test -z "$as_dir" && as_dir=.
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8422 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8424 break 2
8426 done
8427 done
8428 IFS=$as_save_IFS
8431 esac
8433 TCLSH=$ac_cv_path_TCLSH
8434 if test -n "$TCLSH"; then
8435 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8436 echo "${ECHO_T}$TCLSH" >&6; }
8437 else
8438 { echo "$as_me:$LINENO: result: no" >&5
8439 echo "${ECHO_T}no" >&6; }
8443 test -n "$TCLSH" && break
8444 done
8446 if test x"${TCLSH}" = x ; then
8447 ac_cv_path_tclsh='';
8448 else
8449 ac_cv_path_tclsh="${TCLSH}";
8451 else
8452 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8453 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8454 TCLSH="${ac_cv_path_tclsh}"
8458 # Extract the first word of "zip", so it can be a program name with args.
8459 set dummy zip; ac_word=$2
8460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8462 if test "${ac_cv_path_ZIP+set}" = set; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
8464 else
8465 case $ZIP in
8466 [\\/]* | ?:[\\/]*)
8467 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471 for as_dir in $PATH
8473 IFS=$as_save_IFS
8474 test -z "$as_dir" && as_dir=.
8475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8477 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8479 break 2
8481 done
8482 done
8483 IFS=$as_save_IFS
8486 esac
8488 ZIP=$ac_cv_path_ZIP
8489 if test -n "$ZIP"; then
8490 { echo "$as_me:$LINENO: result: $ZIP" >&5
8491 echo "${ECHO_T}$ZIP" >&6; }
8492 else
8493 { echo "$as_me:$LINENO: result: no" >&5
8494 echo "${ECHO_T}no" >&6; }
8498 for ac_prog in ocamlc
8500 # Extract the first word of "$ac_prog", so it can be a program name with args.
8501 set dummy $ac_prog; ac_word=$2
8502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8504 if test "${ac_cv_path_OCAMLC+set}" = set; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8506 else
8507 case $OCAMLC in
8508 [\\/]* | ?:[\\/]*)
8509 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513 for as_dir in $PATH
8515 IFS=$as_save_IFS
8516 test -z "$as_dir" && as_dir=.
8517 for ac_exec_ext in '' $ac_executable_extensions; do
8518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8519 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8521 break 2
8523 done
8524 done
8525 IFS=$as_save_IFS
8528 esac
8530 OCAMLC=$ac_cv_path_OCAMLC
8531 if test -n "$OCAMLC"; then
8532 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8533 echo "${ECHO_T}$OCAMLC" >&6; }
8534 else
8535 { echo "$as_me:$LINENO: result: no" >&5
8536 echo "${ECHO_T}no" >&6; }
8540 test -n "$OCAMLC" && break
8541 done
8543 for ac_prog in ocamlopt
8545 # Extract the first word of "$ac_prog", so it can be a program name with args.
8546 set dummy $ac_prog; ac_word=$2
8547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8549 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8550 echo $ECHO_N "(cached) $ECHO_C" >&6
8551 else
8552 case $OCAMLOPT in
8553 [\\/]* | ?:[\\/]*)
8554 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8558 for as_dir in $PATH
8560 IFS=$as_save_IFS
8561 test -z "$as_dir" && as_dir=.
8562 for ac_exec_ext in '' $ac_executable_extensions; do
8563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8564 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8566 break 2
8568 done
8569 done
8570 IFS=$as_save_IFS
8573 esac
8575 OCAMLOPT=$ac_cv_path_OCAMLOPT
8576 if test -n "$OCAMLOPT"; then
8577 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8578 echo "${ECHO_T}$OCAMLOPT" >&6; }
8579 else
8580 { echo "$as_me:$LINENO: result: no" >&5
8581 echo "${ECHO_T}no" >&6; }
8585 test -n "$OCAMLOPT" && break
8586 done
8588 for ac_prog in ocamldep
8590 # Extract the first word of "$ac_prog", so it can be a program name with args.
8591 set dummy $ac_prog; ac_word=$2
8592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8594 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8595 echo $ECHO_N "(cached) $ECHO_C" >&6
8596 else
8597 case $OCAMLDEP in
8598 [\\/]* | ?:[\\/]*)
8599 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603 for as_dir in $PATH
8605 IFS=$as_save_IFS
8606 test -z "$as_dir" && as_dir=.
8607 for ac_exec_ext in '' $ac_executable_extensions; do
8608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8609 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8611 break 2
8613 done
8614 done
8615 IFS=$as_save_IFS
8618 esac
8620 OCAMLDEP=$ac_cv_path_OCAMLDEP
8621 if test -n "$OCAMLDEP"; then
8622 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8623 echo "${ECHO_T}$OCAMLDEP" >&6; }
8624 else
8625 { echo "$as_me:$LINENO: result: no" >&5
8626 echo "${ECHO_T}no" >&6; }
8630 test -n "$OCAMLDEP" && break
8631 done
8633 for ac_prog in ocamldoc
8635 # Extract the first word of "$ac_prog", so it can be a program name with args.
8636 set dummy $ac_prog; ac_word=$2
8637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8639 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8640 echo $ECHO_N "(cached) $ECHO_C" >&6
8641 else
8642 case $OCAMLDOC in
8643 [\\/]* | ?:[\\/]*)
8644 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8648 for as_dir in $PATH
8650 IFS=$as_save_IFS
8651 test -z "$as_dir" && as_dir=.
8652 for ac_exec_ext in '' $ac_executable_extensions; do
8653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8654 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8656 break 2
8658 done
8659 done
8660 IFS=$as_save_IFS
8663 esac
8665 OCAMLDOC=$ac_cv_path_OCAMLDOC
8666 if test -n "$OCAMLDOC"; then
8667 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8668 echo "${ECHO_T}$OCAMLDOC" >&6; }
8669 else
8670 { echo "$as_me:$LINENO: result: no" >&5
8671 echo "${ECHO_T}no" >&6; }
8675 test -n "$OCAMLDOC" && break
8676 done
8678 for ac_prog in gas as
8680 # Extract the first word of "$ac_prog", so it can be a program name with args.
8681 set dummy $ac_prog; ac_word=$2
8682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8684 if test "${ac_cv_path_GAS+set}" = set; then
8685 echo $ECHO_N "(cached) $ECHO_C" >&6
8686 else
8687 case $GAS in
8688 [\\/]* | ?:[\\/]*)
8689 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693 for as_dir in $PATH
8695 IFS=$as_save_IFS
8696 test -z "$as_dir" && as_dir=.
8697 for ac_exec_ext in '' $ac_executable_extensions; do
8698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8699 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8701 break 2
8703 done
8704 done
8705 IFS=$as_save_IFS
8708 esac
8710 GAS=$ac_cv_path_GAS
8711 if test -n "$GAS"; then
8712 { echo "$as_me:$LINENO: result: $GAS" >&5
8713 echo "${ECHO_T}$GAS" >&6; }
8714 else
8715 { echo "$as_me:$LINENO: result: no" >&5
8716 echo "${ECHO_T}no" >&6; }
8720 test -n "$GAS" && break
8721 done
8724 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8725 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8726 if test "${llvm_cv_link_use_r+set}" = set; then
8727 echo $ECHO_N "(cached) $ECHO_C" >&6
8728 else
8729 ac_ext=c
8730 ac_cpp='$CPP $CPPFLAGS'
8731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8735 oldcflags="$CFLAGS"
8736 CFLAGS="$CFLAGS -Wl,-R."
8737 cat >conftest.$ac_ext <<_ACEOF
8738 /* confdefs.h. */
8739 _ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h. */
8745 main ()
8749 return 0;
8751 _ACEOF
8752 rm -f conftest.$ac_objext conftest$ac_exeext
8753 if { (ac_try="$ac_link"
8754 case "(($ac_try" in
8755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8756 *) ac_try_echo=$ac_try;;
8757 esac
8758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8759 (eval "$ac_link") 2>conftest.er1
8760 ac_status=$?
8761 grep -v '^ *+' conftest.er1 >conftest.err
8762 rm -f conftest.er1
8763 cat conftest.err >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } &&
8766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8767 { (case "(($ac_try" in
8768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8769 *) ac_try_echo=$ac_try;;
8770 esac
8771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8772 (eval "$ac_try") 2>&5
8773 ac_status=$?
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); }; } &&
8776 { ac_try='test -s conftest$ac_exeext'
8777 { (case "(($ac_try" in
8778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8779 *) ac_try_echo=$ac_try;;
8780 esac
8781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8782 (eval "$ac_try") 2>&5
8783 ac_status=$?
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); }; }; then
8786 llvm_cv_link_use_r=yes
8787 else
8788 echo "$as_me: failed program was:" >&5
8789 sed 's/^/| /' conftest.$ac_ext >&5
8791 llvm_cv_link_use_r=no
8794 rm -f core conftest.err conftest.$ac_objext \
8795 conftest$ac_exeext conftest.$ac_ext
8796 CFLAGS="$oldcflags"
8797 ac_ext=c
8798 ac_cpp='$CPP $CPPFLAGS'
8799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8805 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8806 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8807 if test "$llvm_cv_link_use_r" = yes ; then
8809 cat >>confdefs.h <<\_ACEOF
8810 #define HAVE_LINK_R 1
8811 _ACEOF
8816 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8817 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8818 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
8820 else
8821 ac_ext=c
8822 ac_cpp='$CPP $CPPFLAGS'
8823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8827 oldcflags="$CFLAGS"
8828 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8829 cat >conftest.$ac_ext <<_ACEOF
8830 /* confdefs.h. */
8831 _ACEOF
8832 cat confdefs.h >>conftest.$ac_ext
8833 cat >>conftest.$ac_ext <<_ACEOF
8834 /* end confdefs.h. */
8837 main ()
8841 return 0;
8843 _ACEOF
8844 rm -f conftest.$ac_objext conftest$ac_exeext
8845 if { (ac_try="$ac_link"
8846 case "(($ac_try" in
8847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8848 *) ac_try_echo=$ac_try;;
8849 esac
8850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8851 (eval "$ac_link") 2>conftest.er1
8852 ac_status=$?
8853 grep -v '^ *+' conftest.er1 >conftest.err
8854 rm -f conftest.er1
8855 cat conftest.err >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } &&
8858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8859 { (case "(($ac_try" in
8860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8861 *) ac_try_echo=$ac_try;;
8862 esac
8863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8864 (eval "$ac_try") 2>&5
8865 ac_status=$?
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; } &&
8868 { ac_try='test -s conftest$ac_exeext'
8869 { (case "(($ac_try" in
8870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8871 *) ac_try_echo=$ac_try;;
8872 esac
8873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8874 (eval "$ac_try") 2>&5
8875 ac_status=$?
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; }; then
8878 llvm_cv_link_use_export_dynamic=yes
8879 else
8880 echo "$as_me: failed program was:" >&5
8881 sed 's/^/| /' conftest.$ac_ext >&5
8883 llvm_cv_link_use_export_dynamic=no
8886 rm -f core conftest.err conftest.$ac_objext \
8887 conftest$ac_exeext conftest.$ac_ext
8888 CFLAGS="$oldcflags"
8889 ac_ext=c
8890 ac_cpp='$CPP $CPPFLAGS'
8891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8897 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8898 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8899 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8901 cat >>confdefs.h <<\_ACEOF
8902 #define HAVE_LINK_EXPORT_DYNAMIC 1
8903 _ACEOF
8908 { echo "$as_me:$LINENO: checking for compiler -Wl,-retain-symbols-file option" >&5
8909 echo $ECHO_N "checking for compiler -Wl,-retain-symbols-file option... $ECHO_C" >&6; }
8910 if test "${llvm_cv_link_use_retain_symbols_file+set}" = set; then
8911 echo $ECHO_N "(cached) $ECHO_C" >&6
8912 else
8913 ac_ext=c
8914 ac_cpp='$CPP $CPPFLAGS'
8915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8919 oldcflags="$CFLAGS"
8921 # The following code is from the autoconf manual,
8922 # "11.13: Limitations of Usual Tools".
8923 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8924 # Use mktemp if possible; otherwise fall back on mkdir,
8925 # with $RANDOM to make collisions less likely.
8926 : ${TMPDIR=/tmp}
8928 tmp=`
8929 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8930 ` &&
8931 test -n "$tmp" && test -d "$tmp"
8932 } || {
8933 tmp=$TMPDIR/foo$$-$RANDOM
8934 (umask 077 && mkdir "$tmp")
8935 } || exit $?
8937 echo "main" > "$tmp/exports"
8939 CFLAGS="$CFLAGS -Wl,-retain-symbols-file=$tmp/exports"
8940 cat >conftest.$ac_ext <<_ACEOF
8941 /* confdefs.h. */
8942 _ACEOF
8943 cat confdefs.h >>conftest.$ac_ext
8944 cat >>conftest.$ac_ext <<_ACEOF
8945 /* end confdefs.h. */
8948 main ()
8952 return 0;
8954 _ACEOF
8955 rm -f conftest.$ac_objext conftest$ac_exeext
8956 if { (ac_try="$ac_link"
8957 case "(($ac_try" in
8958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959 *) ac_try_echo=$ac_try;;
8960 esac
8961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962 (eval "$ac_link") 2>conftest.er1
8963 ac_status=$?
8964 grep -v '^ *+' conftest.er1 >conftest.err
8965 rm -f conftest.er1
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } &&
8969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8970 { (case "(($ac_try" in
8971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8972 *) ac_try_echo=$ac_try;;
8973 esac
8974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975 (eval "$ac_try") 2>&5
8976 ac_status=$?
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; } &&
8979 { ac_try='test -s conftest$ac_exeext'
8980 { (case "(($ac_try" in
8981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8982 *) ac_try_echo=$ac_try;;
8983 esac
8984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985 (eval "$ac_try") 2>&5
8986 ac_status=$?
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; }; then
8989 llvm_cv_link_use_retain_symbols_file=yes
8990 else
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8994 llvm_cv_link_use_retain_symbols_file=no
8997 rm -f core conftest.err conftest.$ac_objext \
8998 conftest$ac_exeext conftest.$ac_ext
8999 rm "$tmp/exports"
9000 rmdir "$tmp"
9001 CFLAGS="$oldcflags"
9002 ac_ext=c
9003 ac_cpp='$CPP $CPPFLAGS'
9004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9010 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_retain_symbols_file" >&5
9011 echo "${ECHO_T}$llvm_cv_link_use_retain_symbols_file" >&6; }
9012 if test "$llvm_cv_link_use_retain_symbols_file" = yes ; then
9013 HAVE_LINK_RETAIN_SYMBOLS_FILE=1
9020 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9021 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9022 if test "${ac_cv_c_const+set}" = set; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9024 else
9025 cat >conftest.$ac_ext <<_ACEOF
9026 /* confdefs.h. */
9027 _ACEOF
9028 cat confdefs.h >>conftest.$ac_ext
9029 cat >>conftest.$ac_ext <<_ACEOF
9030 /* end confdefs.h. */
9033 main ()
9035 /* FIXME: Include the comments suggested by Paul. */
9036 #ifndef __cplusplus
9037 /* Ultrix mips cc rejects this. */
9038 typedef int charset[2];
9039 const charset x;
9040 /* SunOS 4.1.1 cc rejects this. */
9041 char const *const *ccp;
9042 char **p;
9043 /* NEC SVR4.0.2 mips cc rejects this. */
9044 struct point {int x, y;};
9045 static struct point const zero = {0,0};
9046 /* AIX XL C 1.02.0.0 rejects this.
9047 It does not let you subtract one const X* pointer from another in
9048 an arm of an if-expression whose if-part is not a constant
9049 expression */
9050 const char *g = "string";
9051 ccp = &g + (g ? g-g : 0);
9052 /* HPUX 7.0 cc rejects these. */
9053 ++ccp;
9054 p = (char**) ccp;
9055 ccp = (char const *const *) p;
9056 { /* SCO 3.2v4 cc rejects this. */
9057 char *t;
9058 char const *s = 0 ? (char *) 0 : (char const *) 0;
9060 *t++ = 0;
9061 if (s) return 0;
9063 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9064 int x[] = {25, 17};
9065 const int *foo = &x[0];
9066 ++foo;
9068 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9069 typedef const int *iptr;
9070 iptr p = 0;
9071 ++p;
9073 { /* AIX XL C 1.02.0.0 rejects this saying
9074 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9075 struct s { int j; const int *ap[3]; };
9076 struct s *b; b->j = 5;
9078 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9079 const int foo = 10;
9080 if (!foo) return 0;
9082 return !x[0] && !zero.x;
9083 #endif
9086 return 0;
9088 _ACEOF
9089 rm -f conftest.$ac_objext
9090 if { (ac_try="$ac_compile"
9091 case "(($ac_try" in
9092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9093 *) ac_try_echo=$ac_try;;
9094 esac
9095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9096 (eval "$ac_compile") 2>conftest.er1
9097 ac_status=$?
9098 grep -v '^ *+' conftest.er1 >conftest.err
9099 rm -f conftest.er1
9100 cat conftest.err >&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); } &&
9103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9104 { (case "(($ac_try" in
9105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9106 *) ac_try_echo=$ac_try;;
9107 esac
9108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9109 (eval "$ac_try") 2>&5
9110 ac_status=$?
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); }; } &&
9113 { ac_try='test -s conftest.$ac_objext'
9114 { (case "(($ac_try" in
9115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9116 *) ac_try_echo=$ac_try;;
9117 esac
9118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9119 (eval "$ac_try") 2>&5
9120 ac_status=$?
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); }; }; then
9123 ac_cv_c_const=yes
9124 else
9125 echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.$ac_ext >&5
9128 ac_cv_c_const=no
9131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9133 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9134 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9135 if test $ac_cv_c_const = no; then
9137 cat >>confdefs.h <<\_ACEOF
9138 #define const
9139 _ACEOF
9148 ac_header_dirent=no
9149 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9150 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9151 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9152 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9154 echo $ECHO_N "(cached) $ECHO_C" >&6
9155 else
9156 cat >conftest.$ac_ext <<_ACEOF
9157 /* confdefs.h. */
9158 _ACEOF
9159 cat confdefs.h >>conftest.$ac_ext
9160 cat >>conftest.$ac_ext <<_ACEOF
9161 /* end confdefs.h. */
9162 #include <sys/types.h>
9163 #include <$ac_hdr>
9166 main ()
9168 if ((DIR *) 0)
9169 return 0;
9171 return 0;
9173 _ACEOF
9174 rm -f conftest.$ac_objext
9175 if { (ac_try="$ac_compile"
9176 case "(($ac_try" in
9177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9178 *) ac_try_echo=$ac_try;;
9179 esac
9180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9181 (eval "$ac_compile") 2>conftest.er1
9182 ac_status=$?
9183 grep -v '^ *+' conftest.er1 >conftest.err
9184 rm -f conftest.er1
9185 cat conftest.err >&5
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); } &&
9188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9189 { (case "(($ac_try" in
9190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9191 *) ac_try_echo=$ac_try;;
9192 esac
9193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9194 (eval "$ac_try") 2>&5
9195 ac_status=$?
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); }; } &&
9198 { ac_try='test -s conftest.$ac_objext'
9199 { (case "(($ac_try" in
9200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9201 *) ac_try_echo=$ac_try;;
9202 esac
9203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9204 (eval "$ac_try") 2>&5
9205 ac_status=$?
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; }; then
9208 eval "$as_ac_Header=yes"
9209 else
9210 echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.$ac_ext >&5
9213 eval "$as_ac_Header=no"
9216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9218 ac_res=`eval echo '${'$as_ac_Header'}'`
9219 { echo "$as_me:$LINENO: result: $ac_res" >&5
9220 echo "${ECHO_T}$ac_res" >&6; }
9221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9222 cat >>confdefs.h <<_ACEOF
9223 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9224 _ACEOF
9226 ac_header_dirent=$ac_hdr; break
9229 done
9230 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9231 if test $ac_header_dirent = dirent.h; then
9232 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9233 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9234 if test "${ac_cv_search_opendir+set}" = set; then
9235 echo $ECHO_N "(cached) $ECHO_C" >&6
9236 else
9237 ac_func_search_save_LIBS=$LIBS
9238 cat >conftest.$ac_ext <<_ACEOF
9239 /* confdefs.h. */
9240 _ACEOF
9241 cat confdefs.h >>conftest.$ac_ext
9242 cat >>conftest.$ac_ext <<_ACEOF
9243 /* end confdefs.h. */
9245 /* Override any GCC internal prototype to avoid an error.
9246 Use char because int might match the return type of a GCC
9247 builtin and then its argument prototype would still apply. */
9248 #ifdef __cplusplus
9249 extern "C"
9250 #endif
9251 char opendir ();
9253 main ()
9255 return opendir ();
9257 return 0;
9259 _ACEOF
9260 for ac_lib in '' dir; do
9261 if test -z "$ac_lib"; then
9262 ac_res="none required"
9263 else
9264 ac_res=-l$ac_lib
9265 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9267 rm -f conftest.$ac_objext conftest$ac_exeext
9268 if { (ac_try="$ac_link"
9269 case "(($ac_try" in
9270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9271 *) ac_try_echo=$ac_try;;
9272 esac
9273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9274 (eval "$ac_link") 2>conftest.er1
9275 ac_status=$?
9276 grep -v '^ *+' conftest.er1 >conftest.err
9277 rm -f conftest.er1
9278 cat conftest.err >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } &&
9281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9282 { (case "(($ac_try" in
9283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9284 *) ac_try_echo=$ac_try;;
9285 esac
9286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9287 (eval "$ac_try") 2>&5
9288 ac_status=$?
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); }; } &&
9291 { ac_try='test -s conftest$ac_exeext'
9292 { (case "(($ac_try" in
9293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9294 *) ac_try_echo=$ac_try;;
9295 esac
9296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9297 (eval "$ac_try") 2>&5
9298 ac_status=$?
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; }; then
9301 ac_cv_search_opendir=$ac_res
9302 else
9303 echo "$as_me: failed program was:" >&5
9304 sed 's/^/| /' conftest.$ac_ext >&5
9309 rm -f core conftest.err conftest.$ac_objext \
9310 conftest$ac_exeext
9311 if test "${ac_cv_search_opendir+set}" = set; then
9312 break
9314 done
9315 if test "${ac_cv_search_opendir+set}" = set; then
9317 else
9318 ac_cv_search_opendir=no
9320 rm conftest.$ac_ext
9321 LIBS=$ac_func_search_save_LIBS
9323 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9324 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9325 ac_res=$ac_cv_search_opendir
9326 if test "$ac_res" != no; then
9327 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9331 else
9332 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9333 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9334 if test "${ac_cv_search_opendir+set}" = set; then
9335 echo $ECHO_N "(cached) $ECHO_C" >&6
9336 else
9337 ac_func_search_save_LIBS=$LIBS
9338 cat >conftest.$ac_ext <<_ACEOF
9339 /* confdefs.h. */
9340 _ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9345 /* Override any GCC internal prototype to avoid an error.
9346 Use char because int might match the return type of a GCC
9347 builtin and then its argument prototype would still apply. */
9348 #ifdef __cplusplus
9349 extern "C"
9350 #endif
9351 char opendir ();
9353 main ()
9355 return opendir ();
9357 return 0;
9359 _ACEOF
9360 for ac_lib in '' x; do
9361 if test -z "$ac_lib"; then
9362 ac_res="none required"
9363 else
9364 ac_res=-l$ac_lib
9365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9367 rm -f conftest.$ac_objext conftest$ac_exeext
9368 if { (ac_try="$ac_link"
9369 case "(($ac_try" in
9370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9371 *) ac_try_echo=$ac_try;;
9372 esac
9373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9374 (eval "$ac_link") 2>conftest.er1
9375 ac_status=$?
9376 grep -v '^ *+' conftest.er1 >conftest.err
9377 rm -f conftest.er1
9378 cat conftest.err >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); } &&
9381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9382 { (case "(($ac_try" in
9383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9384 *) ac_try_echo=$ac_try;;
9385 esac
9386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9387 (eval "$ac_try") 2>&5
9388 ac_status=$?
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); }; } &&
9391 { ac_try='test -s conftest$ac_exeext'
9392 { (case "(($ac_try" in
9393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9394 *) ac_try_echo=$ac_try;;
9395 esac
9396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9397 (eval "$ac_try") 2>&5
9398 ac_status=$?
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; }; then
9401 ac_cv_search_opendir=$ac_res
9402 else
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9409 rm -f core conftest.err conftest.$ac_objext \
9410 conftest$ac_exeext
9411 if test "${ac_cv_search_opendir+set}" = set; then
9412 break
9414 done
9415 if test "${ac_cv_search_opendir+set}" = set; then
9417 else
9418 ac_cv_search_opendir=no
9420 rm conftest.$ac_ext
9421 LIBS=$ac_func_search_save_LIBS
9423 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9424 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9425 ac_res=$ac_cv_search_opendir
9426 if test "$ac_res" != no; then
9427 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9434 for ac_header in dlfcn.h
9436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9443 ac_res=`eval echo '${'$as_ac_Header'}'`
9444 { echo "$as_me:$LINENO: result: $ac_res" >&5
9445 echo "${ECHO_T}$ac_res" >&6; }
9446 else
9447 # Is the header compilable?
9448 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9449 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9450 cat >conftest.$ac_ext <<_ACEOF
9451 /* confdefs.h. */
9452 _ACEOF
9453 cat confdefs.h >>conftest.$ac_ext
9454 cat >>conftest.$ac_ext <<_ACEOF
9455 /* end confdefs.h. */
9456 $ac_includes_default
9457 #include <$ac_header>
9458 _ACEOF
9459 rm -f conftest.$ac_objext
9460 if { (ac_try="$ac_compile"
9461 case "(($ac_try" in
9462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9463 *) ac_try_echo=$ac_try;;
9464 esac
9465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9466 (eval "$ac_compile") 2>conftest.er1
9467 ac_status=$?
9468 grep -v '^ *+' conftest.er1 >conftest.err
9469 rm -f conftest.er1
9470 cat conftest.err >&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); } &&
9473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9474 { (case "(($ac_try" in
9475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9476 *) ac_try_echo=$ac_try;;
9477 esac
9478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9479 (eval "$ac_try") 2>&5
9480 ac_status=$?
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); }; } &&
9483 { ac_try='test -s conftest.$ac_objext'
9484 { (case "(($ac_try" in
9485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486 *) ac_try_echo=$ac_try;;
9487 esac
9488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9489 (eval "$ac_try") 2>&5
9490 ac_status=$?
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; }; then
9493 ac_header_compiler=yes
9494 else
9495 echo "$as_me: failed program was:" >&5
9496 sed 's/^/| /' conftest.$ac_ext >&5
9498 ac_header_compiler=no
9501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9502 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9503 echo "${ECHO_T}$ac_header_compiler" >&6; }
9505 # Is the header present?
9506 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9508 cat >conftest.$ac_ext <<_ACEOF
9509 /* confdefs.h. */
9510 _ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9514 #include <$ac_header>
9515 _ACEOF
9516 if { (ac_try="$ac_cpp conftest.$ac_ext"
9517 case "(($ac_try" in
9518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9519 *) ac_try_echo=$ac_try;;
9520 esac
9521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9523 ac_status=$?
9524 grep -v '^ *+' conftest.er1 >conftest.err
9525 rm -f conftest.er1
9526 cat conftest.err >&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); } >/dev/null; then
9529 if test -s conftest.err; then
9530 ac_cpp_err=$ac_c_preproc_warn_flag
9531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9532 else
9533 ac_cpp_err=
9535 else
9536 ac_cpp_err=yes
9538 if test -z "$ac_cpp_err"; then
9539 ac_header_preproc=yes
9540 else
9541 echo "$as_me: failed program was:" >&5
9542 sed 's/^/| /' conftest.$ac_ext >&5
9544 ac_header_preproc=no
9547 rm -f conftest.err conftest.$ac_ext
9548 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9549 echo "${ECHO_T}$ac_header_preproc" >&6; }
9551 # So? What about this header?
9552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9553 yes:no: )
9554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9555 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9557 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9558 ac_header_preproc=yes
9560 no:yes:* )
9561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9564 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9566 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9568 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9572 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9573 ( cat <<\_ASBOX
9574 ## ----------------------------------- ##
9575 ## Report this to llvmbugs@cs.uiuc.edu ##
9576 ## ----------------------------------- ##
9577 _ASBOX
9578 ) | sed "s/^/$as_me: WARNING: /" >&2
9580 esac
9581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9584 echo $ECHO_N "(cached) $ECHO_C" >&6
9585 else
9586 eval "$as_ac_Header=\$ac_header_preproc"
9588 ac_res=`eval echo '${'$as_ac_Header'}'`
9589 { echo "$as_me:$LINENO: result: $ac_res" >&5
9590 echo "${ECHO_T}$ac_res" >&6; }
9593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9594 cat >>confdefs.h <<_ACEOF
9595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9596 _ACEOF
9600 done
9602 # Check whether --enable-ltdl-install was given.
9603 if test "${enable_ltdl_install+set}" = set; then
9604 enableval=$enable_ltdl_install;
9610 if test x"${enable_ltdl_install-no}" != xno; then
9611 INSTALL_LTDL_TRUE=
9612 INSTALL_LTDL_FALSE='#'
9613 else
9614 INSTALL_LTDL_TRUE='#'
9615 INSTALL_LTDL_FALSE=
9620 if test x"${enable_ltdl_convenience-no}" != xno; then
9621 CONVENIENCE_LTDL_TRUE=
9622 CONVENIENCE_LTDL_FALSE='#'
9623 else
9624 CONVENIENCE_LTDL_TRUE='#'
9625 CONVENIENCE_LTDL_FALSE=
9629 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9630 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9631 library_names_spec=
9632 libname_spec='lib$name'
9633 soname_spec=
9634 shrext_cmds=".so"
9635 postinstall_cmds=
9636 postuninstall_cmds=
9637 finish_cmds=
9638 finish_eval=
9639 shlibpath_var=
9640 shlibpath_overrides_runpath=unknown
9641 version_type=none
9642 dynamic_linker="$host_os ld.so"
9643 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9644 if test "$GCC" = yes; then
9645 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9646 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9647 # if the path contains ";" then we assume it to be the separator
9648 # otherwise default to the standard path separator (i.e. ":") - it is
9649 # assumed that no part of a normal pathname contains ";" but that should
9650 # okay in the real world where ";" in dirpaths is itself problematic.
9651 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9652 else
9653 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9655 else
9656 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9658 need_lib_prefix=unknown
9659 hardcode_into_libs=no
9661 # when you set need_version to no, make sure it does not cause -set_version
9662 # flags to be left without arguments
9663 need_version=unknown
9665 case $host_os in
9666 aix3*)
9667 version_type=linux
9668 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9669 shlibpath_var=LIBPATH
9671 # AIX 3 has no versioning support, so we append a major version to the name.
9672 soname_spec='${libname}${release}${shared_ext}$major'
9675 aix4* | aix5*)
9676 version_type=linux
9677 need_lib_prefix=no
9678 need_version=no
9679 hardcode_into_libs=yes
9680 if test "$host_cpu" = ia64; then
9681 # AIX 5 supports IA64
9682 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9683 shlibpath_var=LD_LIBRARY_PATH
9684 else
9685 # With GCC up to 2.95.x, collect2 would create an import file
9686 # for dependence libraries. The import file would start with
9687 # the line `#! .'. This would cause the generated library to
9688 # depend on `.', always an invalid library. This was fixed in
9689 # development snapshots of GCC prior to 3.0.
9690 case $host_os in
9691 aix4 | aix4.[01] | aix4.[01].*)
9692 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9693 echo ' yes '
9694 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9696 else
9697 can_build_shared=no
9700 esac
9701 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9702 # soname into executable. Probably we can add versioning support to
9703 # collect2, so additional links can be useful in future.
9704 if test "$aix_use_runtimelinking" = yes; then
9705 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9706 # instead of lib<name>.a to let people know that these are not
9707 # typical AIX shared libraries.
9708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9709 else
9710 # We preserve .a as extension for shared libraries through AIX4.2
9711 # and later when we are not doing run time linking.
9712 library_names_spec='${libname}${release}.a $libname.a'
9713 soname_spec='${libname}${release}${shared_ext}$major'
9715 shlibpath_var=LIBPATH
9719 amigaos*)
9720 library_names_spec='$libname.ixlibrary $libname.a'
9721 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9722 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'
9725 beos*)
9726 library_names_spec='${libname}${shared_ext}'
9727 dynamic_linker="$host_os ld.so"
9728 shlibpath_var=LIBRARY_PATH
9731 bsdi[45]*)
9732 version_type=linux
9733 need_version=no
9734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9735 soname_spec='${libname}${release}${shared_ext}$major'
9736 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9737 shlibpath_var=LD_LIBRARY_PATH
9738 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9739 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9740 # the default ld.so.conf also contains /usr/contrib/lib and
9741 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9742 # libtool to hard-code these into programs
9745 cygwin* | mingw* | pw32*)
9746 version_type=windows
9747 shrext_cmds=".dll"
9748 need_version=no
9749 need_lib_prefix=no
9751 case $GCC,$host_os in
9752 yes,cygwin* | yes,mingw* | yes,pw32*)
9753 library_names_spec='$libname.dll.a'
9754 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9755 postinstall_cmds='base_file=`basename \${file}`~
9756 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9757 dldir=$destdir/`dirname \$dlpath`~
9758 test -d \$dldir || mkdir -p \$dldir~
9759 $install_prog $dir/$dlname \$dldir/$dlname~
9760 chmod a+x \$dldir/$dlname'
9761 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9762 dlpath=$dir/\$dldll~
9763 $rm \$dlpath'
9764 shlibpath_overrides_runpath=yes
9766 case $host_os in
9767 cygwin*)
9768 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9769 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9770 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9772 mingw*)
9773 # MinGW DLLs use traditional 'lib' prefix
9774 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9775 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9776 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9777 # It is most probably a Windows format PATH printed by
9778 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9779 # path with ; separators, and with drive letters. We can handle the
9780 # drive letters (cygwin fileutils understands them), so leave them,
9781 # especially as we might pass files found there to a mingw objdump,
9782 # which wouldn't understand a cygwinified path. Ahh.
9783 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9784 else
9785 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9788 pw32*)
9789 # pw32 DLLs use 'pw' prefix rather than 'lib'
9790 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9792 esac
9796 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9798 esac
9799 dynamic_linker='Win32 ld.exe'
9800 # FIXME: first we should search . and the directory the executable is in
9801 shlibpath_var=PATH
9804 darwin* | rhapsody*)
9805 dynamic_linker="$host_os dyld"
9806 version_type=darwin
9807 need_lib_prefix=no
9808 need_version=no
9809 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9810 soname_spec='${libname}${release}${major}$shared_ext'
9811 shlibpath_overrides_runpath=yes
9812 shlibpath_var=DYLD_LIBRARY_PATH
9813 shrext_cmds='.dylib'
9814 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9815 if test "$GCC" = yes; then
9816 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"`
9817 else
9818 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9820 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9823 dgux*)
9824 version_type=linux
9825 need_lib_prefix=no
9826 need_version=no
9827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9828 soname_spec='${libname}${release}${shared_ext}$major'
9829 shlibpath_var=LD_LIBRARY_PATH
9832 freebsd1*)
9833 dynamic_linker=no
9836 kfreebsd*-gnu)
9837 version_type=linux
9838 need_lib_prefix=no
9839 need_version=no
9840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9841 soname_spec='${libname}${release}${shared_ext}$major'
9842 shlibpath_var=LD_LIBRARY_PATH
9843 shlibpath_overrides_runpath=no
9844 hardcode_into_libs=yes
9845 dynamic_linker='GNU ld.so'
9848 freebsd* | dragonfly*)
9849 # DragonFly does not have aout. When/if they implement a new
9850 # versioning mechanism, adjust this.
9851 if test -x /usr/bin/objformat; then
9852 objformat=`/usr/bin/objformat`
9853 else
9854 case $host_os in
9855 freebsd[123]*) objformat=aout ;;
9856 *) objformat=elf ;;
9857 esac
9859 version_type=freebsd-$objformat
9860 case $version_type in
9861 freebsd-elf*)
9862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9863 need_version=no
9864 need_lib_prefix=no
9866 freebsd-*)
9867 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9868 need_version=yes
9870 esac
9871 shlibpath_var=LD_LIBRARY_PATH
9872 case $host_os in
9873 freebsd2*)
9874 shlibpath_overrides_runpath=yes
9876 freebsd3.[01]* | freebsdelf3.[01]*)
9877 shlibpath_overrides_runpath=yes
9878 hardcode_into_libs=yes
9880 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9881 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9882 shlibpath_overrides_runpath=no
9883 hardcode_into_libs=yes
9885 freebsd*) # from 4.6 on
9886 shlibpath_overrides_runpath=yes
9887 hardcode_into_libs=yes
9889 esac
9892 gnu*)
9893 version_type=linux
9894 need_lib_prefix=no
9895 need_version=no
9896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9897 soname_spec='${libname}${release}${shared_ext}$major'
9898 shlibpath_var=LD_LIBRARY_PATH
9899 hardcode_into_libs=yes
9902 hpux9* | hpux10* | hpux11*)
9903 # Give a soname corresponding to the major version so that dld.sl refuses to
9904 # link against other versions.
9905 version_type=sunos
9906 need_lib_prefix=no
9907 need_version=no
9908 case $host_cpu in
9909 ia64*)
9910 shrext_cmds='.so'
9911 hardcode_into_libs=yes
9912 dynamic_linker="$host_os dld.so"
9913 shlibpath_var=LD_LIBRARY_PATH
9914 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9916 soname_spec='${libname}${release}${shared_ext}$major'
9917 if test "X$HPUX_IA64_MODE" = X32; then
9918 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9919 else
9920 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9922 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9924 hppa*64*)
9925 shrext_cmds='.sl'
9926 hardcode_into_libs=yes
9927 dynamic_linker="$host_os dld.sl"
9928 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9929 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9931 soname_spec='${libname}${release}${shared_ext}$major'
9932 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9933 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9936 shrext_cmds='.sl'
9937 dynamic_linker="$host_os dld.sl"
9938 shlibpath_var=SHLIB_PATH
9939 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9941 soname_spec='${libname}${release}${shared_ext}$major'
9943 esac
9944 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9945 postinstall_cmds='chmod 555 $lib'
9948 interix3*)
9949 version_type=linux
9950 need_lib_prefix=no
9951 need_version=no
9952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9953 soname_spec='${libname}${release}${shared_ext}$major'
9954 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9955 shlibpath_var=LD_LIBRARY_PATH
9956 shlibpath_overrides_runpath=no
9957 hardcode_into_libs=yes
9960 irix5* | irix6* | nonstopux*)
9961 case $host_os in
9962 nonstopux*) version_type=nonstopux ;;
9964 if test "$lt_cv_prog_gnu_ld" = yes; then
9965 version_type=linux
9966 else
9967 version_type=irix
9968 fi ;;
9969 esac
9970 need_lib_prefix=no
9971 need_version=no
9972 soname_spec='${libname}${release}${shared_ext}$major'
9973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9974 case $host_os in
9975 irix5* | nonstopux*)
9976 libsuff= shlibsuff=
9979 case $LD in # libtool.m4 will add one of these switches to LD
9980 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9981 libsuff= shlibsuff= libmagic=32-bit;;
9982 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9983 libsuff=32 shlibsuff=N32 libmagic=N32;;
9984 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9985 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9986 *) libsuff= shlibsuff= libmagic=never-match;;
9987 esac
9989 esac
9990 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9991 shlibpath_overrides_runpath=no
9992 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9993 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9994 hardcode_into_libs=yes
9997 # No shared lib support for Linux oldld, aout, or coff.
9998 linux*oldld* | linux*aout* | linux*coff*)
9999 dynamic_linker=no
10002 # This must be Linux ELF.
10003 linux*)
10004 version_type=linux
10005 need_lib_prefix=no
10006 need_version=no
10007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10008 soname_spec='${libname}${release}${shared_ext}$major'
10009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10010 shlibpath_var=LD_LIBRARY_PATH
10011 shlibpath_overrides_runpath=no
10012 # This implies no fast_install, which is unacceptable.
10013 # Some rework will be needed to allow for fast_install
10014 # before this can be enabled.
10015 hardcode_into_libs=yes
10017 # Append ld.so.conf contents to the search path
10018 if test -f /etc/ld.so.conf; then
10019 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' ' '`
10020 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10023 # We used to test for /lib/ld.so.1 and disable shared libraries on
10024 # powerpc, because MkLinux only supported shared libraries with the
10025 # GNU dynamic linker. Since this was broken with cross compilers,
10026 # most powerpc-linux boxes support dynamic linking these days and
10027 # people can always --disable-shared, the test was removed, and we
10028 # assume the GNU/Linux dynamic linker is in use.
10029 dynamic_linker='GNU/Linux ld.so'
10032 knetbsd*-gnu)
10033 version_type=linux
10034 need_lib_prefix=no
10035 need_version=no
10036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10037 soname_spec='${libname}${release}${shared_ext}$major'
10038 shlibpath_var=LD_LIBRARY_PATH
10039 shlibpath_overrides_runpath=no
10040 hardcode_into_libs=yes
10041 dynamic_linker='GNU ld.so'
10044 netbsd*)
10045 version_type=sunos
10046 need_lib_prefix=no
10047 need_version=no
10048 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10051 dynamic_linker='NetBSD (a.out) ld.so'
10052 else
10053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10054 soname_spec='${libname}${release}${shared_ext}$major'
10055 dynamic_linker='NetBSD ld.elf_so'
10057 shlibpath_var=LD_LIBRARY_PATH
10058 shlibpath_overrides_runpath=yes
10059 hardcode_into_libs=yes
10062 newsos6)
10063 version_type=linux
10064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10065 shlibpath_var=LD_LIBRARY_PATH
10066 shlibpath_overrides_runpath=yes
10069 nto-qnx*)
10070 version_type=linux
10071 need_lib_prefix=no
10072 need_version=no
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10074 soname_spec='${libname}${release}${shared_ext}$major'
10075 shlibpath_var=LD_LIBRARY_PATH
10076 shlibpath_overrides_runpath=yes
10079 openbsd*)
10080 version_type=sunos
10081 sys_lib_dlsearch_path_spec="/usr/lib"
10082 need_lib_prefix=no
10083 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10084 case $host_os in
10085 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10086 *) need_version=no ;;
10087 esac
10088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10090 shlibpath_var=LD_LIBRARY_PATH
10091 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10092 case $host_os in
10093 openbsd2.[89] | openbsd2.[89].*)
10094 shlibpath_overrides_runpath=no
10097 shlibpath_overrides_runpath=yes
10099 esac
10100 else
10101 shlibpath_overrides_runpath=yes
10105 os2*)
10106 libname_spec='$name'
10107 shrext_cmds=".dll"
10108 need_lib_prefix=no
10109 library_names_spec='$libname${shared_ext} $libname.a'
10110 dynamic_linker='OS/2 ld.exe'
10111 shlibpath_var=LIBPATH
10114 osf3* | osf4* | osf5*)
10115 version_type=osf
10116 need_lib_prefix=no
10117 need_version=no
10118 soname_spec='${libname}${release}${shared_ext}$major'
10119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10120 shlibpath_var=LD_LIBRARY_PATH
10121 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10122 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10125 solaris*)
10126 version_type=linux
10127 need_lib_prefix=no
10128 need_version=no
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10130 soname_spec='${libname}${release}${shared_ext}$major'
10131 shlibpath_var=LD_LIBRARY_PATH
10132 shlibpath_overrides_runpath=yes
10133 hardcode_into_libs=yes
10134 # ldd complains unless libraries are executable
10135 postinstall_cmds='chmod +x $lib'
10138 sunos4*)
10139 version_type=sunos
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10141 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10142 shlibpath_var=LD_LIBRARY_PATH
10143 shlibpath_overrides_runpath=yes
10144 if test "$with_gnu_ld" = yes; then
10145 need_lib_prefix=no
10147 need_version=yes
10150 sysv4 | sysv4.3*)
10151 version_type=linux
10152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10153 soname_spec='${libname}${release}${shared_ext}$major'
10154 shlibpath_var=LD_LIBRARY_PATH
10155 case $host_vendor in
10156 sni)
10157 shlibpath_overrides_runpath=no
10158 need_lib_prefix=no
10159 export_dynamic_flag_spec='${wl}-Blargedynsym'
10160 runpath_var=LD_RUN_PATH
10162 siemens)
10163 need_lib_prefix=no
10165 motorola)
10166 need_lib_prefix=no
10167 need_version=no
10168 shlibpath_overrides_runpath=no
10169 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10171 esac
10174 sysv4*MP*)
10175 if test -d /usr/nec ;then
10176 version_type=linux
10177 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10178 soname_spec='$libname${shared_ext}.$major'
10179 shlibpath_var=LD_LIBRARY_PATH
10183 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10184 version_type=freebsd-elf
10185 need_lib_prefix=no
10186 need_version=no
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10188 soname_spec='${libname}${release}${shared_ext}$major'
10189 shlibpath_var=LD_LIBRARY_PATH
10190 hardcode_into_libs=yes
10191 if test "$with_gnu_ld" = yes; then
10192 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10193 shlibpath_overrides_runpath=no
10194 else
10195 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10196 shlibpath_overrides_runpath=yes
10197 case $host_os in
10198 sco3.2v5*)
10199 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10201 esac
10203 sys_lib_dlsearch_path_spec='/usr/lib'
10206 uts4*)
10207 version_type=linux
10208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10209 soname_spec='${libname}${release}${shared_ext}$major'
10210 shlibpath_var=LD_LIBRARY_PATH
10214 dynamic_linker=no
10216 esac
10217 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10218 echo "${ECHO_T}$dynamic_linker" >&6; }
10219 test "$dynamic_linker" = no && can_build_shared=no
10221 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10222 if test "$GCC" = yes; then
10223 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10227 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10228 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10229 if test "${libltdl_cv_shlibext+set}" = set; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10231 else
10233 module=yes
10234 eval libltdl_cv_shlibext=$shrext_cmds
10237 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10238 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10239 if test -n "$libltdl_cv_shlibext"; then
10241 cat >>confdefs.h <<_ACEOF
10242 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10243 _ACEOF
10248 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10249 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10250 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10251 echo $ECHO_N "(cached) $ECHO_C" >&6
10252 else
10253 libltdl_cv_shlibpath_var="$shlibpath_var"
10255 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10256 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10257 if test -n "$libltdl_cv_shlibpath_var"; then
10259 cat >>confdefs.h <<_ACEOF
10260 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10261 _ACEOF
10266 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10267 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10268 if test "${libltdl_cv_sys_search_path+set}" = set; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 else
10271 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10273 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10274 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10275 if test -n "$libltdl_cv_sys_search_path"; then
10276 sys_search_path=
10277 for dir in $libltdl_cv_sys_search_path; do
10278 if test -z "$sys_search_path"; then
10279 sys_search_path="$dir"
10280 else
10281 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10283 done
10285 cat >>confdefs.h <<_ACEOF
10286 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10287 _ACEOF
10291 { echo "$as_me:$LINENO: checking for objdir" >&5
10292 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10293 if test "${libltdl_cv_objdir+set}" = set; then
10294 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 else
10296 libltdl_cv_objdir="$objdir"
10297 if test -n "$objdir"; then
10299 else
10300 rm -f .libs 2>/dev/null
10301 mkdir .libs 2>/dev/null
10302 if test -d .libs; then
10303 libltdl_cv_objdir=.libs
10304 else
10305 # MS-DOS does not allow filenames that begin with a dot.
10306 libltdl_cv_objdir=_libs
10308 rmdir .libs 2>/dev/null
10312 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10313 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10315 cat >>confdefs.h <<_ACEOF
10316 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10317 _ACEOF
10324 # Check for command to grab the raw symbol name followed by C symbol from nm.
10325 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10326 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10327 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10329 else
10331 # These are sane defaults that work on at least a few old systems.
10332 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10334 # Character class describing NM global symbol codes.
10335 symcode='[BCDEGRST]'
10337 # Regexp to match symbols that can be accessed directly from C.
10338 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10340 # Transform an extracted symbol line into a proper C declaration
10341 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10343 # Transform an extracted symbol line into symbol name and symbol address
10344 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'"
10346 # Define system-specific variables.
10347 case $host_os in
10348 aix*)
10349 symcode='[BCDT]'
10351 cygwin* | mingw* | pw32*)
10352 symcode='[ABCDGISTW]'
10354 hpux*) # Its linker distinguishes data from code symbols
10355 if test "$host_cpu" = ia64; then
10356 symcode='[ABCDEGRST]'
10358 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10359 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'"
10361 linux*)
10362 if test "$host_cpu" = ia64; then
10363 symcode='[ABCDGIRSTW]'
10364 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10365 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'"
10368 irix* | nonstopux*)
10369 symcode='[BCDEGRST]'
10371 osf*)
10372 symcode='[BCDEGQRST]'
10374 solaris*)
10375 symcode='[BDRT]'
10377 sco3.2v5*)
10378 symcode='[DT]'
10380 sysv4.2uw2*)
10381 symcode='[DT]'
10383 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10384 symcode='[ABDT]'
10386 sysv4)
10387 symcode='[DFNSTU]'
10389 esac
10391 # Handle CRLF in mingw tool chain
10392 opt_cr=
10393 case $build_os in
10394 mingw*)
10395 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10397 esac
10399 # If we're using GNU nm, then use its standard symbol codes.
10400 case `$NM -V 2>&1` in
10401 *GNU* | *'with BFD'*)
10402 symcode='[ABCDGIRSTW]' ;;
10403 esac
10405 # Try without a prefix undercore, then with it.
10406 for ac_symprfx in "" "_"; do
10408 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10409 symxfrm="\\1 $ac_symprfx\\2 \\2"
10411 # Write the raw and C identifiers.
10412 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10414 # Check to see that the pipe works correctly.
10415 pipe_works=no
10417 rm -f conftest*
10418 cat > conftest.$ac_ext <<EOF
10419 #ifdef __cplusplus
10420 extern "C" {
10421 #endif
10422 char nm_test_var;
10423 void nm_test_func(){}
10424 #ifdef __cplusplus
10426 #endif
10427 int main(){nm_test_var='a';nm_test_func();return(0);}
10430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10431 (eval $ac_compile) 2>&5
10432 ac_status=$?
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; then
10435 # Now try to grab the symbols.
10436 nlist=conftest.nm
10437 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10438 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10439 ac_status=$?
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); } && test -s "$nlist"; then
10442 # Try sorting and uniquifying the output.
10443 if sort "$nlist" | uniq > "$nlist"T; then
10444 mv -f "$nlist"T "$nlist"
10445 else
10446 rm -f "$nlist"T
10449 # Make sure that we snagged all the symbols we need.
10450 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10451 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10452 cat <<EOF > conftest.$ac_ext
10453 #ifdef __cplusplus
10454 extern "C" {
10455 #endif
10458 # Now generate the symbol file.
10459 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10461 cat <<EOF >> conftest.$ac_ext
10462 #if defined (__STDC__) && __STDC__
10463 # define lt_ptr_t void *
10464 #else
10465 # define lt_ptr_t char *
10466 # define const
10467 #endif
10469 /* The mapping between symbol names and symbols. */
10470 const struct {
10471 const char *name;
10472 lt_ptr_t address;
10474 lt_preloaded_symbols[] =
10477 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10478 cat <<\EOF >> conftest.$ac_ext
10479 {0, (lt_ptr_t) 0}
10482 #ifdef __cplusplus
10484 #endif
10486 # Now try linking the two files.
10487 mv conftest.$ac_objext conftstm.$ac_objext
10488 lt_save_LIBS="$LIBS"
10489 lt_save_CFLAGS="$CFLAGS"
10490 LIBS="conftstm.$ac_objext"
10491 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10493 (eval $ac_link) 2>&5
10494 ac_status=$?
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10497 pipe_works=yes
10499 LIBS="$lt_save_LIBS"
10500 CFLAGS="$lt_save_CFLAGS"
10501 else
10502 echo "cannot find nm_test_func in $nlist" >&5
10504 else
10505 echo "cannot find nm_test_var in $nlist" >&5
10507 else
10508 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10510 else
10511 echo "$progname: failed program was:" >&5
10512 cat conftest.$ac_ext >&5
10514 rm -f conftest* conftst*
10516 # Do not use the global_symbol_pipe unless it works.
10517 if test "$pipe_works" = yes; then
10518 break
10519 else
10520 lt_cv_sys_global_symbol_pipe=
10522 done
10526 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10527 lt_cv_sys_global_symbol_to_cdecl=
10529 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10530 { echo "$as_me:$LINENO: result: failed" >&5
10531 echo "${ECHO_T}failed" >&6; }
10532 else
10533 { echo "$as_me:$LINENO: result: ok" >&5
10534 echo "${ECHO_T}ok" >&6; }
10538 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10539 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10540 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10541 echo $ECHO_N "(cached) $ECHO_C" >&6
10542 else
10543 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10544 libltdl_cv_preloaded_symbols=yes
10545 else
10546 libltdl_cv_preloaded_symbols=no
10550 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10551 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10552 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10554 cat >>confdefs.h <<\_ACEOF
10555 #define HAVE_PRELOADED_SYMBOLS 1
10556 _ACEOF
10560 LIBADD_DL=
10562 ac_ext=c
10563 ac_cpp='$CPP $CPPFLAGS'
10564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10569 { echo "$as_me:$LINENO: checking for shl_load" >&5
10570 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10571 if test "${ac_cv_func_shl_load+set}" = set; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10573 else
10574 cat >conftest.$ac_ext <<_ACEOF
10575 /* confdefs.h. */
10576 _ACEOF
10577 cat confdefs.h >>conftest.$ac_ext
10578 cat >>conftest.$ac_ext <<_ACEOF
10579 /* end confdefs.h. */
10580 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10582 #define shl_load innocuous_shl_load
10584 /* System header to define __stub macros and hopefully few prototypes,
10585 which can conflict with char shl_load (); below.
10586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10587 <limits.h> exists even on freestanding compilers. */
10589 #ifdef __STDC__
10590 # include <limits.h>
10591 #else
10592 # include <assert.h>
10593 #endif
10595 #undef shl_load
10597 /* Override any GCC internal prototype to avoid an error.
10598 Use char because int might match the return type of a GCC
10599 builtin and then its argument prototype would still apply. */
10600 #ifdef __cplusplus
10601 extern "C"
10602 #endif
10603 char shl_load ();
10604 /* The GNU C library defines this for functions which it implements
10605 to always fail with ENOSYS. Some functions are actually named
10606 something starting with __ and the normal name is an alias. */
10607 #if defined __stub_shl_load || defined __stub___shl_load
10608 choke me
10609 #endif
10612 main ()
10614 return shl_load ();
10616 return 0;
10618 _ACEOF
10619 rm -f conftest.$ac_objext conftest$ac_exeext
10620 if { (ac_try="$ac_link"
10621 case "(($ac_try" in
10622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10623 *) ac_try_echo=$ac_try;;
10624 esac
10625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10626 (eval "$ac_link") 2>conftest.er1
10627 ac_status=$?
10628 grep -v '^ *+' conftest.er1 >conftest.err
10629 rm -f conftest.er1
10630 cat conftest.err >&5
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); } &&
10633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10634 { (case "(($ac_try" in
10635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10636 *) ac_try_echo=$ac_try;;
10637 esac
10638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10639 (eval "$ac_try") 2>&5
10640 ac_status=$?
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); }; } &&
10643 { ac_try='test -s conftest$ac_exeext'
10644 { (case "(($ac_try" in
10645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10646 *) ac_try_echo=$ac_try;;
10647 esac
10648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10649 (eval "$ac_try") 2>&5
10650 ac_status=$?
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; }; then
10653 ac_cv_func_shl_load=yes
10654 else
10655 echo "$as_me: failed program was:" >&5
10656 sed 's/^/| /' conftest.$ac_ext >&5
10658 ac_cv_func_shl_load=no
10661 rm -f core conftest.err conftest.$ac_objext \
10662 conftest$ac_exeext conftest.$ac_ext
10664 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10665 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10666 if test $ac_cv_func_shl_load = yes; then
10668 cat >>confdefs.h <<\_ACEOF
10669 #define HAVE_SHL_LOAD 1
10670 _ACEOF
10672 else
10673 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10674 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10675 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10676 echo $ECHO_N "(cached) $ECHO_C" >&6
10677 else
10678 ac_check_lib_save_LIBS=$LIBS
10679 LIBS="-ldld $LIBS"
10680 cat >conftest.$ac_ext <<_ACEOF
10681 /* confdefs.h. */
10682 _ACEOF
10683 cat confdefs.h >>conftest.$ac_ext
10684 cat >>conftest.$ac_ext <<_ACEOF
10685 /* end confdefs.h. */
10687 /* Override any GCC internal prototype to avoid an error.
10688 Use char because int might match the return type of a GCC
10689 builtin and then its argument prototype would still apply. */
10690 #ifdef __cplusplus
10691 extern "C"
10692 #endif
10693 char shl_load ();
10695 main ()
10697 return shl_load ();
10699 return 0;
10701 _ACEOF
10702 rm -f conftest.$ac_objext conftest$ac_exeext
10703 if { (ac_try="$ac_link"
10704 case "(($ac_try" in
10705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706 *) ac_try_echo=$ac_try;;
10707 esac
10708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10709 (eval "$ac_link") 2>conftest.er1
10710 ac_status=$?
10711 grep -v '^ *+' conftest.er1 >conftest.err
10712 rm -f conftest.er1
10713 cat conftest.err >&5
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); } &&
10716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10717 { (case "(($ac_try" in
10718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719 *) ac_try_echo=$ac_try;;
10720 esac
10721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10722 (eval "$ac_try") 2>&5
10723 ac_status=$?
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; } &&
10726 { ac_try='test -s conftest$ac_exeext'
10727 { (case "(($ac_try" in
10728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729 *) ac_try_echo=$ac_try;;
10730 esac
10731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732 (eval "$ac_try") 2>&5
10733 ac_status=$?
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; }; then
10736 ac_cv_lib_dld_shl_load=yes
10737 else
10738 echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10741 ac_cv_lib_dld_shl_load=no
10744 rm -f core conftest.err conftest.$ac_objext \
10745 conftest$ac_exeext conftest.$ac_ext
10746 LIBS=$ac_check_lib_save_LIBS
10748 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10749 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10750 if test $ac_cv_lib_dld_shl_load = yes; then
10752 cat >>confdefs.h <<\_ACEOF
10753 #define HAVE_SHL_LOAD 1
10754 _ACEOF
10756 LIBADD_DL="$LIBADD_DL -ldld"
10757 else
10758 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10759 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10760 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10761 echo $ECHO_N "(cached) $ECHO_C" >&6
10762 else
10763 ac_check_lib_save_LIBS=$LIBS
10764 LIBS="-ldl $LIBS"
10765 cat >conftest.$ac_ext <<_ACEOF
10766 /* confdefs.h. */
10767 _ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h. */
10772 /* Override any GCC internal prototype to avoid an error.
10773 Use char because int might match the return type of a GCC
10774 builtin and then its argument prototype would still apply. */
10775 #ifdef __cplusplus
10776 extern "C"
10777 #endif
10778 char dlopen ();
10780 main ()
10782 return dlopen ();
10784 return 0;
10786 _ACEOF
10787 rm -f conftest.$ac_objext conftest$ac_exeext
10788 if { (ac_try="$ac_link"
10789 case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10792 esac
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_link") 2>conftest.er1
10795 ac_status=$?
10796 grep -v '^ *+' conftest.er1 >conftest.err
10797 rm -f conftest.er1
10798 cat conftest.err >&5
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); } &&
10801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10802 { (case "(($ac_try" in
10803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804 *) ac_try_echo=$ac_try;;
10805 esac
10806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807 (eval "$ac_try") 2>&5
10808 ac_status=$?
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; } &&
10811 { ac_try='test -s conftest$ac_exeext'
10812 { (case "(($ac_try" in
10813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814 *) ac_try_echo=$ac_try;;
10815 esac
10816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817 (eval "$ac_try") 2>&5
10818 ac_status=$?
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; }; then
10821 ac_cv_lib_dl_dlopen=yes
10822 else
10823 echo "$as_me: failed program was:" >&5
10824 sed 's/^/| /' conftest.$ac_ext >&5
10826 ac_cv_lib_dl_dlopen=no
10829 rm -f core conftest.err conftest.$ac_objext \
10830 conftest$ac_exeext conftest.$ac_ext
10831 LIBS=$ac_check_lib_save_LIBS
10833 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10834 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10835 if test $ac_cv_lib_dl_dlopen = yes; then
10837 cat >>confdefs.h <<\_ACEOF
10838 #define HAVE_LIBDL 1
10839 _ACEOF
10841 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10842 else
10843 cat >conftest.$ac_ext <<_ACEOF
10844 /* confdefs.h. */
10845 _ACEOF
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h. */
10849 #if HAVE_DLFCN_H
10850 # include <dlfcn.h>
10851 #endif
10854 main ()
10856 dlopen(0, 0);
10858 return 0;
10860 _ACEOF
10861 rm -f conftest.$ac_objext conftest$ac_exeext
10862 if { (ac_try="$ac_link"
10863 case "(($ac_try" in
10864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865 *) ac_try_echo=$ac_try;;
10866 esac
10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868 (eval "$ac_link") 2>conftest.er1
10869 ac_status=$?
10870 grep -v '^ *+' conftest.er1 >conftest.err
10871 rm -f conftest.er1
10872 cat conftest.err >&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } &&
10875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10876 { (case "(($ac_try" in
10877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878 *) ac_try_echo=$ac_try;;
10879 esac
10880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10881 (eval "$ac_try") 2>&5
10882 ac_status=$?
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); }; } &&
10885 { ac_try='test -s conftest$ac_exeext'
10886 { (case "(($ac_try" in
10887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888 *) ac_try_echo=$ac_try;;
10889 esac
10890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891 (eval "$ac_try") 2>&5
10892 ac_status=$?
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }; }; then
10896 cat >>confdefs.h <<\_ACEOF
10897 #define HAVE_LIBDL 1
10898 _ACEOF
10899 libltdl_cv_func_dlopen="yes"
10900 else
10901 echo "$as_me: failed program was:" >&5
10902 sed 's/^/| /' conftest.$ac_ext >&5
10904 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10905 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10906 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10907 echo $ECHO_N "(cached) $ECHO_C" >&6
10908 else
10909 ac_check_lib_save_LIBS=$LIBS
10910 LIBS="-lsvld $LIBS"
10911 cat >conftest.$ac_ext <<_ACEOF
10912 /* confdefs.h. */
10913 _ACEOF
10914 cat confdefs.h >>conftest.$ac_ext
10915 cat >>conftest.$ac_ext <<_ACEOF
10916 /* end confdefs.h. */
10918 /* Override any GCC internal prototype to avoid an error.
10919 Use char because int might match the return type of a GCC
10920 builtin and then its argument prototype would still apply. */
10921 #ifdef __cplusplus
10922 extern "C"
10923 #endif
10924 char dlopen ();
10926 main ()
10928 return dlopen ();
10930 return 0;
10932 _ACEOF
10933 rm -f conftest.$ac_objext conftest$ac_exeext
10934 if { (ac_try="$ac_link"
10935 case "(($ac_try" in
10936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937 *) ac_try_echo=$ac_try;;
10938 esac
10939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10940 (eval "$ac_link") 2>conftest.er1
10941 ac_status=$?
10942 grep -v '^ *+' conftest.er1 >conftest.err
10943 rm -f conftest.er1
10944 cat conftest.err >&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); } &&
10947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10948 { (case "(($ac_try" in
10949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950 *) ac_try_echo=$ac_try;;
10951 esac
10952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953 (eval "$ac_try") 2>&5
10954 ac_status=$?
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; } &&
10957 { ac_try='test -s conftest$ac_exeext'
10958 { (case "(($ac_try" in
10959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960 *) ac_try_echo=$ac_try;;
10961 esac
10962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10963 (eval "$ac_try") 2>&5
10964 ac_status=$?
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; }; then
10967 ac_cv_lib_svld_dlopen=yes
10968 else
10969 echo "$as_me: failed program was:" >&5
10970 sed 's/^/| /' conftest.$ac_ext >&5
10972 ac_cv_lib_svld_dlopen=no
10975 rm -f core conftest.err conftest.$ac_objext \
10976 conftest$ac_exeext conftest.$ac_ext
10977 LIBS=$ac_check_lib_save_LIBS
10979 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10980 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10981 if test $ac_cv_lib_svld_dlopen = yes; then
10983 cat >>confdefs.h <<\_ACEOF
10984 #define HAVE_LIBDL 1
10985 _ACEOF
10987 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10988 else
10989 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10990 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10991 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10993 else
10994 ac_check_lib_save_LIBS=$LIBS
10995 LIBS="-ldld $LIBS"
10996 cat >conftest.$ac_ext <<_ACEOF
10997 /* confdefs.h. */
10998 _ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h. */
11003 /* Override any GCC internal prototype to avoid an error.
11004 Use char because int might match the return type of a GCC
11005 builtin and then its argument prototype would still apply. */
11006 #ifdef __cplusplus
11007 extern "C"
11008 #endif
11009 char dld_link ();
11011 main ()
11013 return dld_link ();
11015 return 0;
11017 _ACEOF
11018 rm -f conftest.$ac_objext conftest$ac_exeext
11019 if { (ac_try="$ac_link"
11020 case "(($ac_try" in
11021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022 *) ac_try_echo=$ac_try;;
11023 esac
11024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025 (eval "$ac_link") 2>conftest.er1
11026 ac_status=$?
11027 grep -v '^ *+' conftest.er1 >conftest.err
11028 rm -f conftest.er1
11029 cat conftest.err >&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); } &&
11032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11033 { (case "(($ac_try" in
11034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11035 *) ac_try_echo=$ac_try;;
11036 esac
11037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11038 (eval "$ac_try") 2>&5
11039 ac_status=$?
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); }; } &&
11042 { ac_try='test -s conftest$ac_exeext'
11043 { (case "(($ac_try" in
11044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045 *) ac_try_echo=$ac_try;;
11046 esac
11047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048 (eval "$ac_try") 2>&5
11049 ac_status=$?
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }; }; then
11052 ac_cv_lib_dld_dld_link=yes
11053 else
11054 echo "$as_me: failed program was:" >&5
11055 sed 's/^/| /' conftest.$ac_ext >&5
11057 ac_cv_lib_dld_dld_link=no
11060 rm -f core conftest.err conftest.$ac_objext \
11061 conftest$ac_exeext conftest.$ac_ext
11062 LIBS=$ac_check_lib_save_LIBS
11064 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11065 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11066 if test $ac_cv_lib_dld_dld_link = yes; then
11068 cat >>confdefs.h <<\_ACEOF
11069 #define HAVE_DLD 1
11070 _ACEOF
11072 LIBADD_DL="$LIBADD_DL -ldld"
11073 else
11074 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11075 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11076 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11078 else
11079 cat >conftest.$ac_ext <<_ACEOF
11080 /* confdefs.h. */
11081 _ACEOF
11082 cat confdefs.h >>conftest.$ac_ext
11083 cat >>conftest.$ac_ext <<_ACEOF
11084 /* end confdefs.h. */
11085 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11087 #define _dyld_func_lookup innocuous__dyld_func_lookup
11089 /* System header to define __stub macros and hopefully few prototypes,
11090 which can conflict with char _dyld_func_lookup (); below.
11091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11092 <limits.h> exists even on freestanding compilers. */
11094 #ifdef __STDC__
11095 # include <limits.h>
11096 #else
11097 # include <assert.h>
11098 #endif
11100 #undef _dyld_func_lookup
11102 /* Override any GCC internal prototype to avoid an error.
11103 Use char because int might match the return type of a GCC
11104 builtin and then its argument prototype would still apply. */
11105 #ifdef __cplusplus
11106 extern "C"
11107 #endif
11108 char _dyld_func_lookup ();
11109 /* The GNU C library defines this for functions which it implements
11110 to always fail with ENOSYS. Some functions are actually named
11111 something starting with __ and the normal name is an alias. */
11112 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11113 choke me
11114 #endif
11117 main ()
11119 return _dyld_func_lookup ();
11121 return 0;
11123 _ACEOF
11124 rm -f conftest.$ac_objext conftest$ac_exeext
11125 if { (ac_try="$ac_link"
11126 case "(($ac_try" in
11127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11128 *) ac_try_echo=$ac_try;;
11129 esac
11130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11131 (eval "$ac_link") 2>conftest.er1
11132 ac_status=$?
11133 grep -v '^ *+' conftest.er1 >conftest.err
11134 rm -f conftest.er1
11135 cat conftest.err >&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); } &&
11138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11139 { (case "(($ac_try" in
11140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11141 *) ac_try_echo=$ac_try;;
11142 esac
11143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11144 (eval "$ac_try") 2>&5
11145 ac_status=$?
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); }; } &&
11148 { ac_try='test -s conftest$ac_exeext'
11149 { (case "(($ac_try" in
11150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11151 *) ac_try_echo=$ac_try;;
11152 esac
11153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11154 (eval "$ac_try") 2>&5
11155 ac_status=$?
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); }; }; then
11158 ac_cv_func__dyld_func_lookup=yes
11159 else
11160 echo "$as_me: failed program was:" >&5
11161 sed 's/^/| /' conftest.$ac_ext >&5
11163 ac_cv_func__dyld_func_lookup=no
11166 rm -f core conftest.err conftest.$ac_objext \
11167 conftest$ac_exeext conftest.$ac_ext
11169 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11170 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11171 if test $ac_cv_func__dyld_func_lookup = yes; then
11173 cat >>confdefs.h <<\_ACEOF
11174 #define HAVE_DYLD 1
11175 _ACEOF
11188 rm -f core conftest.err conftest.$ac_objext \
11189 conftest$ac_exeext conftest.$ac_ext
11200 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11201 then
11202 lt_save_LIBS="$LIBS"
11203 LIBS="$LIBS $LIBADD_DL"
11205 for ac_func in dlerror
11207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11208 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11212 else
11213 cat >conftest.$ac_ext <<_ACEOF
11214 /* confdefs.h. */
11215 _ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11221 #define $ac_func innocuous_$ac_func
11223 /* System header to define __stub macros and hopefully few prototypes,
11224 which can conflict with char $ac_func (); below.
11225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11226 <limits.h> exists even on freestanding compilers. */
11228 #ifdef __STDC__
11229 # include <limits.h>
11230 #else
11231 # include <assert.h>
11232 #endif
11234 #undef $ac_func
11236 /* Override any GCC internal prototype to avoid an error.
11237 Use char because int might match the return type of a GCC
11238 builtin and then its argument prototype would still apply. */
11239 #ifdef __cplusplus
11240 extern "C"
11241 #endif
11242 char $ac_func ();
11243 /* The GNU C library defines this for functions which it implements
11244 to always fail with ENOSYS. Some functions are actually named
11245 something starting with __ and the normal name is an alias. */
11246 #if defined __stub_$ac_func || defined __stub___$ac_func
11247 choke me
11248 #endif
11251 main ()
11253 return $ac_func ();
11255 return 0;
11257 _ACEOF
11258 rm -f conftest.$ac_objext conftest$ac_exeext
11259 if { (ac_try="$ac_link"
11260 case "(($ac_try" in
11261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11262 *) ac_try_echo=$ac_try;;
11263 esac
11264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11265 (eval "$ac_link") 2>conftest.er1
11266 ac_status=$?
11267 grep -v '^ *+' conftest.er1 >conftest.err
11268 rm -f conftest.er1
11269 cat conftest.err >&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } &&
11272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11273 { (case "(($ac_try" in
11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11276 esac
11277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278 (eval "$ac_try") 2>&5
11279 ac_status=$?
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; } &&
11282 { ac_try='test -s conftest$ac_exeext'
11283 { (case "(($ac_try" in
11284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11285 *) ac_try_echo=$ac_try;;
11286 esac
11287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11288 (eval "$ac_try") 2>&5
11289 ac_status=$?
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; }; then
11292 eval "$as_ac_var=yes"
11293 else
11294 echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.$ac_ext >&5
11297 eval "$as_ac_var=no"
11300 rm -f core conftest.err conftest.$ac_objext \
11301 conftest$ac_exeext conftest.$ac_ext
11303 ac_res=`eval echo '${'$as_ac_var'}'`
11304 { echo "$as_me:$LINENO: result: $ac_res" >&5
11305 echo "${ECHO_T}$ac_res" >&6; }
11306 if test `eval echo '${'$as_ac_var'}'` = yes; then
11307 cat >>confdefs.h <<_ACEOF
11308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11309 _ACEOF
11312 done
11314 LIBS="$lt_save_LIBS"
11316 ac_ext=c
11317 ac_cpp='$CPP $CPPFLAGS'
11318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11324 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11325 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11326 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11327 echo $ECHO_N "(cached) $ECHO_C" >&6
11328 else
11329 ac_cv_sys_symbol_underscore=no
11330 cat > conftest.$ac_ext <<EOF
11331 void nm_test_func(){}
11332 int main(){nm_test_func;return 0;}
11334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11335 (eval $ac_compile) 2>&5
11336 ac_status=$?
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; then
11339 # Now try to grab the symbols.
11340 ac_nlist=conftest.nm
11341 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11342 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11343 ac_status=$?
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } && test -s "$ac_nlist"; then
11346 # See whether the symbols have a leading underscore.
11347 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11348 ac_cv_sys_symbol_underscore=yes
11349 else
11350 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11352 else
11353 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11356 else
11357 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11359 else
11360 echo "configure: failed program was:" >&5
11361 cat conftest.c >&5
11363 rm -rf conftest*
11366 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11367 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11370 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11371 if test x"$libltdl_cv_func_dlopen" = xyes ||
11372 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11373 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11374 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11375 if test "${libltdl_cv_need_uscore+set}" = set; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 else
11378 libltdl_cv_need_uscore=unknown
11379 save_LIBS="$LIBS"
11380 LIBS="$LIBS $LIBADD_DL"
11381 if test "$cross_compiling" = yes; then :
11382 libltdl_cv_need_uscore=cross
11383 else
11384 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11385 lt_status=$lt_dlunknown
11386 cat > conftest.$ac_ext <<EOF
11387 #line 11387 "configure"
11388 #include "confdefs.h"
11390 #if HAVE_DLFCN_H
11391 #include <dlfcn.h>
11392 #endif
11394 #include <stdio.h>
11396 #ifdef RTLD_GLOBAL
11397 # define LT_DLGLOBAL RTLD_GLOBAL
11398 #else
11399 # ifdef DL_GLOBAL
11400 # define LT_DLGLOBAL DL_GLOBAL
11401 # else
11402 # define LT_DLGLOBAL 0
11403 # endif
11404 #endif
11406 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11407 find out it does not work in some platform. */
11408 #ifndef LT_DLLAZY_OR_NOW
11409 # ifdef RTLD_LAZY
11410 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11411 # else
11412 # ifdef DL_LAZY
11413 # define LT_DLLAZY_OR_NOW DL_LAZY
11414 # else
11415 # ifdef RTLD_NOW
11416 # define LT_DLLAZY_OR_NOW RTLD_NOW
11417 # else
11418 # ifdef DL_NOW
11419 # define LT_DLLAZY_OR_NOW DL_NOW
11420 # else
11421 # define LT_DLLAZY_OR_NOW 0
11422 # endif
11423 # endif
11424 # endif
11425 # endif
11426 #endif
11428 #ifdef __cplusplus
11429 extern "C" void exit (int);
11430 #endif
11432 void fnord() { int i=42;}
11433 int main ()
11435 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11436 int status = $lt_dlunknown;
11438 if (self)
11440 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11441 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11442 /* dlclose (self); */
11444 else
11445 puts (dlerror ());
11447 exit (status);
11450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11451 (eval $ac_link) 2>&5
11452 ac_status=$?
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11455 (./conftest; exit; ) >&5 2>/dev/null
11456 lt_status=$?
11457 case x$lt_status in
11458 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11459 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11460 x$lt_dlunknown|x*) ;;
11461 esac
11462 else :
11463 # compilation failed
11467 rm -fr conftest*
11469 LIBS="$save_LIBS"
11472 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11473 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11477 if test x"$libltdl_cv_need_uscore" = xyes; then
11479 cat >>confdefs.h <<\_ACEOF
11480 #define NEED_USCORE 1
11481 _ACEOF
11486 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11487 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11488 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11489 echo $ECHO_N "(cached) $ECHO_C" >&6
11490 else
11491 # PORTME does your system automatically load deplibs for dlopen?
11492 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11493 # For now, we just catch OSes we know something about -- in the
11494 # future, we'll try test this programmatically.
11495 libltdl_cv_sys_dlopen_deplibs=unknown
11496 case "$host_os" in
11497 aix3*|aix4.1.*|aix4.2.*)
11498 # Unknown whether this is true for these versions of AIX, but
11499 # we want this `case' here to explicitly catch those versions.
11500 libltdl_cv_sys_dlopen_deplibs=unknown
11502 aix[45]*)
11503 libltdl_cv_sys_dlopen_deplibs=yes
11505 darwin*)
11506 # Assuming the user has installed a libdl from somewhere, this is true
11507 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11508 libltdl_cv_sys_dlopen_deplibs=yes
11510 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11511 # GNU and its variants, using gnu ld.so (Glibc)
11512 libltdl_cv_sys_dlopen_deplibs=yes
11514 hpux10*|hpux11*)
11515 libltdl_cv_sys_dlopen_deplibs=yes
11517 interix*)
11518 libltdl_cv_sys_dlopen_deplibs=yes
11520 irix[12345]*|irix6.[01]*)
11521 # Catch all versions of IRIX before 6.2, and indicate that we don't
11522 # know how it worked for any of those versions.
11523 libltdl_cv_sys_dlopen_deplibs=unknown
11525 irix*)
11526 # The case above catches anything before 6.2, and it's known that
11527 # at 6.2 and later dlopen does load deplibs.
11528 libltdl_cv_sys_dlopen_deplibs=yes
11530 netbsd*)
11531 libltdl_cv_sys_dlopen_deplibs=yes
11533 openbsd*)
11534 libltdl_cv_sys_dlopen_deplibs=yes
11536 osf[1234]*)
11537 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11538 # it did *not* use an RPATH in a shared library to find objects the
11539 # library depends on, so we explictly say `no'.
11540 libltdl_cv_sys_dlopen_deplibs=no
11542 osf5.0|osf5.0a|osf5.1)
11543 # dlopen *does* load deplibs and with the right loader patch applied
11544 # it even uses RPATH in a shared library to search for shared objects
11545 # that the library depends on, but there's no easy way to know if that
11546 # patch is installed. Since this is the case, all we can really
11547 # say is unknown -- it depends on the patch being installed. If
11548 # it is, this changes to `yes'. Without it, it would be `no'.
11549 libltdl_cv_sys_dlopen_deplibs=unknown
11551 osf*)
11552 # the two cases above should catch all versions of osf <= 5.1. Read
11553 # the comments above for what we know about them.
11554 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11555 # is used to find them so we can finally say `yes'.
11556 libltdl_cv_sys_dlopen_deplibs=yes
11558 solaris*)
11559 libltdl_cv_sys_dlopen_deplibs=yes
11561 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11562 libltdl_cv_sys_dlopen_deplibs=yes
11564 esac
11567 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11568 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11569 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11571 cat >>confdefs.h <<\_ACEOF
11572 #define LTDL_DLOPEN_DEPLIBS 1
11573 _ACEOF
11578 for ac_header in argz.h
11580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11587 ac_res=`eval echo '${'$as_ac_Header'}'`
11588 { echo "$as_me:$LINENO: result: $ac_res" >&5
11589 echo "${ECHO_T}$ac_res" >&6; }
11590 else
11591 # Is the header compilable?
11592 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11594 cat >conftest.$ac_ext <<_ACEOF
11595 /* confdefs.h. */
11596 _ACEOF
11597 cat confdefs.h >>conftest.$ac_ext
11598 cat >>conftest.$ac_ext <<_ACEOF
11599 /* end confdefs.h. */
11600 $ac_includes_default
11601 #include <$ac_header>
11602 _ACEOF
11603 rm -f conftest.$ac_objext
11604 if { (ac_try="$ac_compile"
11605 case "(($ac_try" in
11606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607 *) ac_try_echo=$ac_try;;
11608 esac
11609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11610 (eval "$ac_compile") 2>conftest.er1
11611 ac_status=$?
11612 grep -v '^ *+' conftest.er1 >conftest.err
11613 rm -f conftest.er1
11614 cat conftest.err >&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); } &&
11617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11618 { (case "(($ac_try" in
11619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620 *) ac_try_echo=$ac_try;;
11621 esac
11622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11623 (eval "$ac_try") 2>&5
11624 ac_status=$?
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; } &&
11627 { ac_try='test -s conftest.$ac_objext'
11628 { (case "(($ac_try" in
11629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630 *) ac_try_echo=$ac_try;;
11631 esac
11632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633 (eval "$ac_try") 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; }; then
11637 ac_header_compiler=yes
11638 else
11639 echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11642 ac_header_compiler=no
11645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11646 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11647 echo "${ECHO_T}$ac_header_compiler" >&6; }
11649 # Is the header present?
11650 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11651 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11652 cat >conftest.$ac_ext <<_ACEOF
11653 /* confdefs.h. */
11654 _ACEOF
11655 cat confdefs.h >>conftest.$ac_ext
11656 cat >>conftest.$ac_ext <<_ACEOF
11657 /* end confdefs.h. */
11658 #include <$ac_header>
11659 _ACEOF
11660 if { (ac_try="$ac_cpp conftest.$ac_ext"
11661 case "(($ac_try" in
11662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11663 *) ac_try_echo=$ac_try;;
11664 esac
11665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11667 ac_status=$?
11668 grep -v '^ *+' conftest.er1 >conftest.err
11669 rm -f conftest.er1
11670 cat conftest.err >&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } >/dev/null; then
11673 if test -s conftest.err; then
11674 ac_cpp_err=$ac_c_preproc_warn_flag
11675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11676 else
11677 ac_cpp_err=
11679 else
11680 ac_cpp_err=yes
11682 if test -z "$ac_cpp_err"; then
11683 ac_header_preproc=yes
11684 else
11685 echo "$as_me: failed program was:" >&5
11686 sed 's/^/| /' conftest.$ac_ext >&5
11688 ac_header_preproc=no
11691 rm -f conftest.err conftest.$ac_ext
11692 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11693 echo "${ECHO_T}$ac_header_preproc" >&6; }
11695 # So? What about this header?
11696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11697 yes:no: )
11698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11701 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11702 ac_header_preproc=yes
11704 no:yes:* )
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11709 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11710 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11711 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11712 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11715 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11716 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11717 ( cat <<\_ASBOX
11718 ## ----------------------------------- ##
11719 ## Report this to llvmbugs@cs.uiuc.edu ##
11720 ## ----------------------------------- ##
11721 _ASBOX
11722 ) | sed "s/^/$as_me: WARNING: /" >&2
11724 esac
11725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11728 echo $ECHO_N "(cached) $ECHO_C" >&6
11729 else
11730 eval "$as_ac_Header=\$ac_header_preproc"
11732 ac_res=`eval echo '${'$as_ac_Header'}'`
11733 { echo "$as_me:$LINENO: result: $ac_res" >&5
11734 echo "${ECHO_T}$ac_res" >&6; }
11737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11738 cat >>confdefs.h <<_ACEOF
11739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11740 _ACEOF
11744 done
11747 { echo "$as_me:$LINENO: checking for error_t" >&5
11748 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11749 if test "${ac_cv_type_error_t+set}" = set; then
11750 echo $ECHO_N "(cached) $ECHO_C" >&6
11751 else
11752 cat >conftest.$ac_ext <<_ACEOF
11753 /* confdefs.h. */
11754 _ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h. */
11758 #if HAVE_ARGZ_H
11759 # include <argz.h>
11760 #endif
11762 typedef error_t ac__type_new_;
11764 main ()
11766 if ((ac__type_new_ *) 0)
11767 return 0;
11768 if (sizeof (ac__type_new_))
11769 return 0;
11771 return 0;
11773 _ACEOF
11774 rm -f conftest.$ac_objext
11775 if { (ac_try="$ac_compile"
11776 case "(($ac_try" in
11777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778 *) ac_try_echo=$ac_try;;
11779 esac
11780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11781 (eval "$ac_compile") 2>conftest.er1
11782 ac_status=$?
11783 grep -v '^ *+' conftest.er1 >conftest.err
11784 rm -f conftest.er1
11785 cat conftest.err >&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } &&
11788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11789 { (case "(($ac_try" in
11790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11791 *) ac_try_echo=$ac_try;;
11792 esac
11793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11794 (eval "$ac_try") 2>&5
11795 ac_status=$?
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); }; } &&
11798 { ac_try='test -s conftest.$ac_objext'
11799 { (case "(($ac_try" in
11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11802 esac
11803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804 (eval "$ac_try") 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; }; then
11808 ac_cv_type_error_t=yes
11809 else
11810 echo "$as_me: failed program was:" >&5
11811 sed 's/^/| /' conftest.$ac_ext >&5
11813 ac_cv_type_error_t=no
11816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11818 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11819 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11820 if test $ac_cv_type_error_t = yes; then
11822 cat >>confdefs.h <<_ACEOF
11823 #define HAVE_ERROR_T 1
11824 _ACEOF
11827 else
11829 cat >>confdefs.h <<\_ACEOF
11830 #define error_t int
11831 _ACEOF
11841 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11844 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11846 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11847 echo $ECHO_N "(cached) $ECHO_C" >&6
11848 else
11849 cat >conftest.$ac_ext <<_ACEOF
11850 /* confdefs.h. */
11851 _ACEOF
11852 cat confdefs.h >>conftest.$ac_ext
11853 cat >>conftest.$ac_ext <<_ACEOF
11854 /* end confdefs.h. */
11855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11857 #define $ac_func innocuous_$ac_func
11859 /* System header to define __stub macros and hopefully few prototypes,
11860 which can conflict with char $ac_func (); below.
11861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11862 <limits.h> exists even on freestanding compilers. */
11864 #ifdef __STDC__
11865 # include <limits.h>
11866 #else
11867 # include <assert.h>
11868 #endif
11870 #undef $ac_func
11872 /* Override any GCC internal prototype to avoid an error.
11873 Use char because int might match the return type of a GCC
11874 builtin and then its argument prototype would still apply. */
11875 #ifdef __cplusplus
11876 extern "C"
11877 #endif
11878 char $ac_func ();
11879 /* The GNU C library defines this for functions which it implements
11880 to always fail with ENOSYS. Some functions are actually named
11881 something starting with __ and the normal name is an alias. */
11882 #if defined __stub_$ac_func || defined __stub___$ac_func
11883 choke me
11884 #endif
11887 main ()
11889 return $ac_func ();
11891 return 0;
11893 _ACEOF
11894 rm -f conftest.$ac_objext conftest$ac_exeext
11895 if { (ac_try="$ac_link"
11896 case "(($ac_try" in
11897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11898 *) ac_try_echo=$ac_try;;
11899 esac
11900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11901 (eval "$ac_link") 2>conftest.er1
11902 ac_status=$?
11903 grep -v '^ *+' conftest.er1 >conftest.err
11904 rm -f conftest.er1
11905 cat conftest.err >&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } &&
11908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11909 { (case "(($ac_try" in
11910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911 *) ac_try_echo=$ac_try;;
11912 esac
11913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11914 (eval "$ac_try") 2>&5
11915 ac_status=$?
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; } &&
11918 { ac_try='test -s conftest$ac_exeext'
11919 { (case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11922 esac
11923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924 (eval "$ac_try") 2>&5
11925 ac_status=$?
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; }; then
11928 eval "$as_ac_var=yes"
11929 else
11930 echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11933 eval "$as_ac_var=no"
11936 rm -f core conftest.err conftest.$ac_objext \
11937 conftest$ac_exeext conftest.$ac_ext
11939 ac_res=`eval echo '${'$as_ac_var'}'`
11940 { echo "$as_me:$LINENO: result: $ac_res" >&5
11941 echo "${ECHO_T}$ac_res" >&6; }
11942 if test `eval echo '${'$as_ac_var'}'` = yes; then
11943 cat >>confdefs.h <<_ACEOF
11944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11945 _ACEOF
11948 done
11977 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11978 stdio.h unistd.h
11980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11987 ac_res=`eval echo '${'$as_ac_Header'}'`
11988 { echo "$as_me:$LINENO: result: $ac_res" >&5
11989 echo "${ECHO_T}$ac_res" >&6; }
11990 else
11991 # Is the header compilable?
11992 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11994 cat >conftest.$ac_ext <<_ACEOF
11995 /* confdefs.h. */
11996 _ACEOF
11997 cat confdefs.h >>conftest.$ac_ext
11998 cat >>conftest.$ac_ext <<_ACEOF
11999 /* end confdefs.h. */
12000 $ac_includes_default
12001 #include <$ac_header>
12002 _ACEOF
12003 rm -f conftest.$ac_objext
12004 if { (ac_try="$ac_compile"
12005 case "(($ac_try" in
12006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12007 *) ac_try_echo=$ac_try;;
12008 esac
12009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12010 (eval "$ac_compile") 2>conftest.er1
12011 ac_status=$?
12012 grep -v '^ *+' conftest.er1 >conftest.err
12013 rm -f conftest.er1
12014 cat conftest.err >&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } &&
12017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12018 { (case "(($ac_try" in
12019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12020 *) ac_try_echo=$ac_try;;
12021 esac
12022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12023 (eval "$ac_try") 2>&5
12024 ac_status=$?
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); }; } &&
12027 { ac_try='test -s conftest.$ac_objext'
12028 { (case "(($ac_try" in
12029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030 *) ac_try_echo=$ac_try;;
12031 esac
12032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12033 (eval "$ac_try") 2>&5
12034 ac_status=$?
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); }; }; then
12037 ac_header_compiler=yes
12038 else
12039 echo "$as_me: failed program was:" >&5
12040 sed 's/^/| /' conftest.$ac_ext >&5
12042 ac_header_compiler=no
12045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12047 echo "${ECHO_T}$ac_header_compiler" >&6; }
12049 # Is the header present?
12050 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12052 cat >conftest.$ac_ext <<_ACEOF
12053 /* confdefs.h. */
12054 _ACEOF
12055 cat confdefs.h >>conftest.$ac_ext
12056 cat >>conftest.$ac_ext <<_ACEOF
12057 /* end confdefs.h. */
12058 #include <$ac_header>
12059 _ACEOF
12060 if { (ac_try="$ac_cpp conftest.$ac_ext"
12061 case "(($ac_try" in
12062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063 *) ac_try_echo=$ac_try;;
12064 esac
12065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12067 ac_status=$?
12068 grep -v '^ *+' conftest.er1 >conftest.err
12069 rm -f conftest.er1
12070 cat conftest.err >&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); } >/dev/null; then
12073 if test -s conftest.err; then
12074 ac_cpp_err=$ac_c_preproc_warn_flag
12075 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12076 else
12077 ac_cpp_err=
12079 else
12080 ac_cpp_err=yes
12082 if test -z "$ac_cpp_err"; then
12083 ac_header_preproc=yes
12084 else
12085 echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12088 ac_header_preproc=no
12091 rm -f conftest.err conftest.$ac_ext
12092 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12093 echo "${ECHO_T}$ac_header_preproc" >&6; }
12095 # So? What about this header?
12096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12097 yes:no: )
12098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12102 ac_header_preproc=yes
12104 no:yes:* )
12105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12112 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12117 ( cat <<\_ASBOX
12118 ## ----------------------------------- ##
12119 ## Report this to llvmbugs@cs.uiuc.edu ##
12120 ## ----------------------------------- ##
12121 _ASBOX
12122 ) | sed "s/^/$as_me: WARNING: /" >&2
12124 esac
12125 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12128 echo $ECHO_N "(cached) $ECHO_C" >&6
12129 else
12130 eval "$as_ac_Header=\$ac_header_preproc"
12132 ac_res=`eval echo '${'$as_ac_Header'}'`
12133 { echo "$as_me:$LINENO: result: $ac_res" >&5
12134 echo "${ECHO_T}$ac_res" >&6; }
12137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12138 cat >>confdefs.h <<_ACEOF
12139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12140 _ACEOF
12144 done
12150 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12157 echo $ECHO_N "(cached) $ECHO_C" >&6
12159 ac_res=`eval echo '${'$as_ac_Header'}'`
12160 { echo "$as_me:$LINENO: result: $ac_res" >&5
12161 echo "${ECHO_T}$ac_res" >&6; }
12162 else
12163 # Is the header compilable?
12164 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12166 cat >conftest.$ac_ext <<_ACEOF
12167 /* confdefs.h. */
12168 _ACEOF
12169 cat confdefs.h >>conftest.$ac_ext
12170 cat >>conftest.$ac_ext <<_ACEOF
12171 /* end confdefs.h. */
12172 $ac_includes_default
12173 #include <$ac_header>
12174 _ACEOF
12175 rm -f conftest.$ac_objext
12176 if { (ac_try="$ac_compile"
12177 case "(($ac_try" in
12178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179 *) ac_try_echo=$ac_try;;
12180 esac
12181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182 (eval "$ac_compile") 2>conftest.er1
12183 ac_status=$?
12184 grep -v '^ *+' conftest.er1 >conftest.err
12185 rm -f conftest.er1
12186 cat conftest.err >&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } &&
12189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12190 { (case "(($ac_try" in
12191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192 *) ac_try_echo=$ac_try;;
12193 esac
12194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195 (eval "$ac_try") 2>&5
12196 ac_status=$?
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); }; } &&
12199 { ac_try='test -s conftest.$ac_objext'
12200 { (case "(($ac_try" in
12201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202 *) ac_try_echo=$ac_try;;
12203 esac
12204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12205 (eval "$ac_try") 2>&5
12206 ac_status=$?
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; }; then
12209 ac_header_compiler=yes
12210 else
12211 echo "$as_me: failed program was:" >&5
12212 sed 's/^/| /' conftest.$ac_ext >&5
12214 ac_header_compiler=no
12217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12218 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12219 echo "${ECHO_T}$ac_header_compiler" >&6; }
12221 # Is the header present?
12222 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12224 cat >conftest.$ac_ext <<_ACEOF
12225 /* confdefs.h. */
12226 _ACEOF
12227 cat confdefs.h >>conftest.$ac_ext
12228 cat >>conftest.$ac_ext <<_ACEOF
12229 /* end confdefs.h. */
12230 #include <$ac_header>
12231 _ACEOF
12232 if { (ac_try="$ac_cpp conftest.$ac_ext"
12233 case "(($ac_try" in
12234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12235 *) ac_try_echo=$ac_try;;
12236 esac
12237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12239 ac_status=$?
12240 grep -v '^ *+' conftest.er1 >conftest.err
12241 rm -f conftest.er1
12242 cat conftest.err >&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); } >/dev/null; then
12245 if test -s conftest.err; then
12246 ac_cpp_err=$ac_c_preproc_warn_flag
12247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12248 else
12249 ac_cpp_err=
12251 else
12252 ac_cpp_err=yes
12254 if test -z "$ac_cpp_err"; then
12255 ac_header_preproc=yes
12256 else
12257 echo "$as_me: failed program was:" >&5
12258 sed 's/^/| /' conftest.$ac_ext >&5
12260 ac_header_preproc=no
12263 rm -f conftest.err conftest.$ac_ext
12264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12265 echo "${ECHO_T}$ac_header_preproc" >&6; }
12267 # So? What about this header?
12268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12269 yes:no: )
12270 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12273 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12274 ac_header_preproc=yes
12276 no:yes:* )
12277 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12278 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12279 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12280 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12281 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12282 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12283 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12284 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12287 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12288 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12289 ( cat <<\_ASBOX
12290 ## ----------------------------------- ##
12291 ## Report this to llvmbugs@cs.uiuc.edu ##
12292 ## ----------------------------------- ##
12293 _ASBOX
12294 ) | sed "s/^/$as_me: WARNING: /" >&2
12296 esac
12297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12300 echo $ECHO_N "(cached) $ECHO_C" >&6
12301 else
12302 eval "$as_ac_Header=\$ac_header_preproc"
12304 ac_res=`eval echo '${'$as_ac_Header'}'`
12305 { echo "$as_me:$LINENO: result: $ac_res" >&5
12306 echo "${ECHO_T}$ac_res" >&6; }
12309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12310 cat >>confdefs.h <<_ACEOF
12311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12312 _ACEOF
12316 done
12320 for ac_header in string.h strings.h
12322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12327 echo $ECHO_N "(cached) $ECHO_C" >&6
12329 ac_res=`eval echo '${'$as_ac_Header'}'`
12330 { echo "$as_me:$LINENO: result: $ac_res" >&5
12331 echo "${ECHO_T}$ac_res" >&6; }
12332 else
12333 # Is the header compilable?
12334 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12336 cat >conftest.$ac_ext <<_ACEOF
12337 /* confdefs.h. */
12338 _ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h. */
12342 $ac_includes_default
12343 #include <$ac_header>
12344 _ACEOF
12345 rm -f conftest.$ac_objext
12346 if { (ac_try="$ac_compile"
12347 case "(($ac_try" in
12348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12349 *) ac_try_echo=$ac_try;;
12350 esac
12351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12352 (eval "$ac_compile") 2>conftest.er1
12353 ac_status=$?
12354 grep -v '^ *+' conftest.er1 >conftest.err
12355 rm -f conftest.er1
12356 cat conftest.err >&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } &&
12359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12360 { (case "(($ac_try" in
12361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12362 *) ac_try_echo=$ac_try;;
12363 esac
12364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12365 (eval "$ac_try") 2>&5
12366 ac_status=$?
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; } &&
12369 { ac_try='test -s conftest.$ac_objext'
12370 { (case "(($ac_try" in
12371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372 *) ac_try_echo=$ac_try;;
12373 esac
12374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12375 (eval "$ac_try") 2>&5
12376 ac_status=$?
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; }; then
12379 ac_header_compiler=yes
12380 else
12381 echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.$ac_ext >&5
12384 ac_header_compiler=no
12387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12388 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12389 echo "${ECHO_T}$ac_header_compiler" >&6; }
12391 # Is the header present?
12392 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12394 cat >conftest.$ac_ext <<_ACEOF
12395 /* confdefs.h. */
12396 _ACEOF
12397 cat confdefs.h >>conftest.$ac_ext
12398 cat >>conftest.$ac_ext <<_ACEOF
12399 /* end confdefs.h. */
12400 #include <$ac_header>
12401 _ACEOF
12402 if { (ac_try="$ac_cpp conftest.$ac_ext"
12403 case "(($ac_try" in
12404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405 *) ac_try_echo=$ac_try;;
12406 esac
12407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12409 ac_status=$?
12410 grep -v '^ *+' conftest.er1 >conftest.err
12411 rm -f conftest.er1
12412 cat conftest.err >&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); } >/dev/null; then
12415 if test -s conftest.err; then
12416 ac_cpp_err=$ac_c_preproc_warn_flag
12417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12418 else
12419 ac_cpp_err=
12421 else
12422 ac_cpp_err=yes
12424 if test -z "$ac_cpp_err"; then
12425 ac_header_preproc=yes
12426 else
12427 echo "$as_me: failed program was:" >&5
12428 sed 's/^/| /' conftest.$ac_ext >&5
12430 ac_header_preproc=no
12433 rm -f conftest.err conftest.$ac_ext
12434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12435 echo "${ECHO_T}$ac_header_preproc" >&6; }
12437 # So? What about this header?
12438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12439 yes:no: )
12440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12444 ac_header_preproc=yes
12446 no:yes:* )
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12454 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12459 ( cat <<\_ASBOX
12460 ## ----------------------------------- ##
12461 ## Report this to llvmbugs@cs.uiuc.edu ##
12462 ## ----------------------------------- ##
12463 _ASBOX
12464 ) | sed "s/^/$as_me: WARNING: /" >&2
12466 esac
12467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12470 echo $ECHO_N "(cached) $ECHO_C" >&6
12471 else
12472 eval "$as_ac_Header=\$ac_header_preproc"
12474 ac_res=`eval echo '${'$as_ac_Header'}'`
12475 { echo "$as_me:$LINENO: result: $ac_res" >&5
12476 echo "${ECHO_T}$ac_res" >&6; }
12479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12480 cat >>confdefs.h <<_ACEOF
12481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12482 _ACEOF
12483 break
12486 done
12491 for ac_func in strchr index
12493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12494 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12496 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12498 else
12499 cat >conftest.$ac_ext <<_ACEOF
12500 /* confdefs.h. */
12501 _ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h. */
12505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12507 #define $ac_func innocuous_$ac_func
12509 /* System header to define __stub macros and hopefully few prototypes,
12510 which can conflict with char $ac_func (); below.
12511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12512 <limits.h> exists even on freestanding compilers. */
12514 #ifdef __STDC__
12515 # include <limits.h>
12516 #else
12517 # include <assert.h>
12518 #endif
12520 #undef $ac_func
12522 /* Override any GCC internal prototype to avoid an error.
12523 Use char because int might match the return type of a GCC
12524 builtin and then its argument prototype would still apply. */
12525 #ifdef __cplusplus
12526 extern "C"
12527 #endif
12528 char $ac_func ();
12529 /* The GNU C library defines this for functions which it implements
12530 to always fail with ENOSYS. Some functions are actually named
12531 something starting with __ and the normal name is an alias. */
12532 #if defined __stub_$ac_func || defined __stub___$ac_func
12533 choke me
12534 #endif
12537 main ()
12539 return $ac_func ();
12541 return 0;
12543 _ACEOF
12544 rm -f conftest.$ac_objext conftest$ac_exeext
12545 if { (ac_try="$ac_link"
12546 case "(($ac_try" in
12547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12548 *) ac_try_echo=$ac_try;;
12549 esac
12550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12551 (eval "$ac_link") 2>conftest.er1
12552 ac_status=$?
12553 grep -v '^ *+' conftest.er1 >conftest.err
12554 rm -f conftest.er1
12555 cat conftest.err >&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } &&
12558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12559 { (case "(($ac_try" in
12560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12561 *) ac_try_echo=$ac_try;;
12562 esac
12563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12564 (eval "$ac_try") 2>&5
12565 ac_status=$?
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); }; } &&
12568 { ac_try='test -s conftest$ac_exeext'
12569 { (case "(($ac_try" in
12570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12571 *) ac_try_echo=$ac_try;;
12572 esac
12573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12574 (eval "$ac_try") 2>&5
12575 ac_status=$?
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; }; then
12578 eval "$as_ac_var=yes"
12579 else
12580 echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.$ac_ext >&5
12583 eval "$as_ac_var=no"
12586 rm -f core conftest.err conftest.$ac_objext \
12587 conftest$ac_exeext conftest.$ac_ext
12589 ac_res=`eval echo '${'$as_ac_var'}'`
12590 { echo "$as_me:$LINENO: result: $ac_res" >&5
12591 echo "${ECHO_T}$ac_res" >&6; }
12592 if test `eval echo '${'$as_ac_var'}'` = yes; then
12593 cat >>confdefs.h <<_ACEOF
12594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12595 _ACEOF
12596 break
12598 done
12602 for ac_func in strrchr rindex
12604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12605 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12607 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12608 echo $ECHO_N "(cached) $ECHO_C" >&6
12609 else
12610 cat >conftest.$ac_ext <<_ACEOF
12611 /* confdefs.h. */
12612 _ACEOF
12613 cat confdefs.h >>conftest.$ac_ext
12614 cat >>conftest.$ac_ext <<_ACEOF
12615 /* end confdefs.h. */
12616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12618 #define $ac_func innocuous_$ac_func
12620 /* System header to define __stub macros and hopefully few prototypes,
12621 which can conflict with char $ac_func (); below.
12622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12623 <limits.h> exists even on freestanding compilers. */
12625 #ifdef __STDC__
12626 # include <limits.h>
12627 #else
12628 # include <assert.h>
12629 #endif
12631 #undef $ac_func
12633 /* Override any GCC internal prototype to avoid an error.
12634 Use char because int might match the return type of a GCC
12635 builtin and then its argument prototype would still apply. */
12636 #ifdef __cplusplus
12637 extern "C"
12638 #endif
12639 char $ac_func ();
12640 /* The GNU C library defines this for functions which it implements
12641 to always fail with ENOSYS. Some functions are actually named
12642 something starting with __ and the normal name is an alias. */
12643 #if defined __stub_$ac_func || defined __stub___$ac_func
12644 choke me
12645 #endif
12648 main ()
12650 return $ac_func ();
12652 return 0;
12654 _ACEOF
12655 rm -f conftest.$ac_objext conftest$ac_exeext
12656 if { (ac_try="$ac_link"
12657 case "(($ac_try" in
12658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12659 *) ac_try_echo=$ac_try;;
12660 esac
12661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12662 (eval "$ac_link") 2>conftest.er1
12663 ac_status=$?
12664 grep -v '^ *+' conftest.er1 >conftest.err
12665 rm -f conftest.er1
12666 cat conftest.err >&5
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); } &&
12669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12670 { (case "(($ac_try" in
12671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12672 *) ac_try_echo=$ac_try;;
12673 esac
12674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12675 (eval "$ac_try") 2>&5
12676 ac_status=$?
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; } &&
12679 { ac_try='test -s conftest$ac_exeext'
12680 { (case "(($ac_try" in
12681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682 *) ac_try_echo=$ac_try;;
12683 esac
12684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685 (eval "$ac_try") 2>&5
12686 ac_status=$?
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }; }; then
12689 eval "$as_ac_var=yes"
12690 else
12691 echo "$as_me: failed program was:" >&5
12692 sed 's/^/| /' conftest.$ac_ext >&5
12694 eval "$as_ac_var=no"
12697 rm -f core conftest.err conftest.$ac_objext \
12698 conftest$ac_exeext conftest.$ac_ext
12700 ac_res=`eval echo '${'$as_ac_var'}'`
12701 { echo "$as_me:$LINENO: result: $ac_res" >&5
12702 echo "${ECHO_T}$ac_res" >&6; }
12703 if test `eval echo '${'$as_ac_var'}'` = yes; then
12704 cat >>confdefs.h <<_ACEOF
12705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12706 _ACEOF
12707 break
12709 done
12713 for ac_func in memcpy bcopy
12715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12716 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12718 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12719 echo $ECHO_N "(cached) $ECHO_C" >&6
12720 else
12721 cat >conftest.$ac_ext <<_ACEOF
12722 /* confdefs.h. */
12723 _ACEOF
12724 cat confdefs.h >>conftest.$ac_ext
12725 cat >>conftest.$ac_ext <<_ACEOF
12726 /* end confdefs.h. */
12727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12729 #define $ac_func innocuous_$ac_func
12731 /* System header to define __stub macros and hopefully few prototypes,
12732 which can conflict with char $ac_func (); below.
12733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12734 <limits.h> exists even on freestanding compilers. */
12736 #ifdef __STDC__
12737 # include <limits.h>
12738 #else
12739 # include <assert.h>
12740 #endif
12742 #undef $ac_func
12744 /* Override any GCC internal prototype to avoid an error.
12745 Use char because int might match the return type of a GCC
12746 builtin and then its argument prototype would still apply. */
12747 #ifdef __cplusplus
12748 extern "C"
12749 #endif
12750 char $ac_func ();
12751 /* The GNU C library defines this for functions which it implements
12752 to always fail with ENOSYS. Some functions are actually named
12753 something starting with __ and the normal name is an alias. */
12754 #if defined __stub_$ac_func || defined __stub___$ac_func
12755 choke me
12756 #endif
12759 main ()
12761 return $ac_func ();
12763 return 0;
12765 _ACEOF
12766 rm -f conftest.$ac_objext conftest$ac_exeext
12767 if { (ac_try="$ac_link"
12768 case "(($ac_try" in
12769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12770 *) ac_try_echo=$ac_try;;
12771 esac
12772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12773 (eval "$ac_link") 2>conftest.er1
12774 ac_status=$?
12775 grep -v '^ *+' conftest.er1 >conftest.err
12776 rm -f conftest.er1
12777 cat conftest.err >&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } &&
12780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12781 { (case "(($ac_try" in
12782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783 *) ac_try_echo=$ac_try;;
12784 esac
12785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12786 (eval "$ac_try") 2>&5
12787 ac_status=$?
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; } &&
12790 { ac_try='test -s conftest$ac_exeext'
12791 { (case "(($ac_try" in
12792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12793 *) ac_try_echo=$ac_try;;
12794 esac
12795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12796 (eval "$ac_try") 2>&5
12797 ac_status=$?
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; }; then
12800 eval "$as_ac_var=yes"
12801 else
12802 echo "$as_me: failed program was:" >&5
12803 sed 's/^/| /' conftest.$ac_ext >&5
12805 eval "$as_ac_var=no"
12808 rm -f core conftest.err conftest.$ac_objext \
12809 conftest$ac_exeext conftest.$ac_ext
12811 ac_res=`eval echo '${'$as_ac_var'}'`
12812 { echo "$as_me:$LINENO: result: $ac_res" >&5
12813 echo "${ECHO_T}$ac_res" >&6; }
12814 if test `eval echo '${'$as_ac_var'}'` = yes; then
12815 cat >>confdefs.h <<_ACEOF
12816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12817 _ACEOF
12818 break
12820 done
12824 for ac_func in memmove strcmp
12826 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12827 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12829 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12830 echo $ECHO_N "(cached) $ECHO_C" >&6
12831 else
12832 cat >conftest.$ac_ext <<_ACEOF
12833 /* confdefs.h. */
12834 _ACEOF
12835 cat confdefs.h >>conftest.$ac_ext
12836 cat >>conftest.$ac_ext <<_ACEOF
12837 /* end confdefs.h. */
12838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12840 #define $ac_func innocuous_$ac_func
12842 /* System header to define __stub macros and hopefully few prototypes,
12843 which can conflict with char $ac_func (); below.
12844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12845 <limits.h> exists even on freestanding compilers. */
12847 #ifdef __STDC__
12848 # include <limits.h>
12849 #else
12850 # include <assert.h>
12851 #endif
12853 #undef $ac_func
12855 /* Override any GCC internal prototype to avoid an error.
12856 Use char because int might match the return type of a GCC
12857 builtin and then its argument prototype would still apply. */
12858 #ifdef __cplusplus
12859 extern "C"
12860 #endif
12861 char $ac_func ();
12862 /* The GNU C library defines this for functions which it implements
12863 to always fail with ENOSYS. Some functions are actually named
12864 something starting with __ and the normal name is an alias. */
12865 #if defined __stub_$ac_func || defined __stub___$ac_func
12866 choke me
12867 #endif
12870 main ()
12872 return $ac_func ();
12874 return 0;
12876 _ACEOF
12877 rm -f conftest.$ac_objext conftest$ac_exeext
12878 if { (ac_try="$ac_link"
12879 case "(($ac_try" in
12880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12881 *) ac_try_echo=$ac_try;;
12882 esac
12883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12884 (eval "$ac_link") 2>conftest.er1
12885 ac_status=$?
12886 grep -v '^ *+' conftest.er1 >conftest.err
12887 rm -f conftest.er1
12888 cat conftest.err >&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); } &&
12891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12892 { (case "(($ac_try" in
12893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12895 esac
12896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897 (eval "$ac_try") 2>&5
12898 ac_status=$?
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; } &&
12901 { ac_try='test -s conftest$ac_exeext'
12902 { (case "(($ac_try" in
12903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904 *) ac_try_echo=$ac_try;;
12905 esac
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907 (eval "$ac_try") 2>&5
12908 ac_status=$?
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; }; then
12911 eval "$as_ac_var=yes"
12912 else
12913 echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.$ac_ext >&5
12916 eval "$as_ac_var=no"
12919 rm -f core conftest.err conftest.$ac_objext \
12920 conftest$ac_exeext conftest.$ac_ext
12922 ac_res=`eval echo '${'$as_ac_var'}'`
12923 { echo "$as_me:$LINENO: result: $ac_res" >&5
12924 echo "${ECHO_T}$ac_res" >&6; }
12925 if test `eval echo '${'$as_ac_var'}'` = yes; then
12926 cat >>confdefs.h <<_ACEOF
12927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12928 _ACEOF
12931 done
12936 for ac_func in closedir opendir readdir
12938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12939 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12941 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12942 echo $ECHO_N "(cached) $ECHO_C" >&6
12943 else
12944 cat >conftest.$ac_ext <<_ACEOF
12945 /* confdefs.h. */
12946 _ACEOF
12947 cat confdefs.h >>conftest.$ac_ext
12948 cat >>conftest.$ac_ext <<_ACEOF
12949 /* end confdefs.h. */
12950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12952 #define $ac_func innocuous_$ac_func
12954 /* System header to define __stub macros and hopefully few prototypes,
12955 which can conflict with char $ac_func (); below.
12956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12957 <limits.h> exists even on freestanding compilers. */
12959 #ifdef __STDC__
12960 # include <limits.h>
12961 #else
12962 # include <assert.h>
12963 #endif
12965 #undef $ac_func
12967 /* Override any GCC internal prototype to avoid an error.
12968 Use char because int might match the return type of a GCC
12969 builtin and then its argument prototype would still apply. */
12970 #ifdef __cplusplus
12971 extern "C"
12972 #endif
12973 char $ac_func ();
12974 /* The GNU C library defines this for functions which it implements
12975 to always fail with ENOSYS. Some functions are actually named
12976 something starting with __ and the normal name is an alias. */
12977 #if defined __stub_$ac_func || defined __stub___$ac_func
12978 choke me
12979 #endif
12982 main ()
12984 return $ac_func ();
12986 return 0;
12988 _ACEOF
12989 rm -f conftest.$ac_objext conftest$ac_exeext
12990 if { (ac_try="$ac_link"
12991 case "(($ac_try" in
12992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12993 *) ac_try_echo=$ac_try;;
12994 esac
12995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12996 (eval "$ac_link") 2>conftest.er1
12997 ac_status=$?
12998 grep -v '^ *+' conftest.er1 >conftest.err
12999 rm -f conftest.er1
13000 cat conftest.err >&5
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); } &&
13003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13004 { (case "(($ac_try" in
13005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13006 *) ac_try_echo=$ac_try;;
13007 esac
13008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13009 (eval "$ac_try") 2>&5
13010 ac_status=$?
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; } &&
13013 { ac_try='test -s conftest$ac_exeext'
13014 { (case "(($ac_try" in
13015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13016 *) ac_try_echo=$ac_try;;
13017 esac
13018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13019 (eval "$ac_try") 2>&5
13020 ac_status=$?
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }; }; then
13023 eval "$as_ac_var=yes"
13024 else
13025 echo "$as_me: failed program was:" >&5
13026 sed 's/^/| /' conftest.$ac_ext >&5
13028 eval "$as_ac_var=no"
13031 rm -f core conftest.err conftest.$ac_objext \
13032 conftest$ac_exeext conftest.$ac_ext
13034 ac_res=`eval echo '${'$as_ac_var'}'`
13035 { echo "$as_me:$LINENO: result: $ac_res" >&5
13036 echo "${ECHO_T}$ac_res" >&6; }
13037 if test `eval echo '${'$as_ac_var'}'` = yes; then
13038 cat >>confdefs.h <<_ACEOF
13039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13040 _ACEOF
13043 done
13047 if test "$WITH_LLVMGCCDIR" = "default" ; then
13048 LLVMGCC="llvm-gcc${EXEEXT}"
13049 LLVMGXX="llvm-g++${EXEEXT}"
13050 LLVMGCCCOMMAND="$LLVMGCC"
13051 LLVMGXXCOMMAND="$LLVMGXX"
13052 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13054 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13056 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13057 set dummy $LLVMGCC; ac_word=$2
13058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13060 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13061 echo $ECHO_N "(cached) $ECHO_C" >&6
13062 else
13063 case $LLVMGCC in
13064 [\\/]* | ?:[\\/]*)
13065 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13069 for as_dir in $PATH
13071 IFS=$as_save_IFS
13072 test -z "$as_dir" && as_dir=.
13073 for ac_exec_ext in '' $ac_executable_extensions; do
13074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13075 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13077 break 2
13079 done
13080 done
13081 IFS=$as_save_IFS
13084 esac
13086 LLVMGCC=$ac_cv_path_LLVMGCC
13087 if test -n "$LLVMGCC"; then
13088 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13089 echo "${ECHO_T}$LLVMGCC" >&6; }
13090 else
13091 { echo "$as_me:$LINENO: result: no" >&5
13092 echo "${ECHO_T}no" >&6; }
13096 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13097 set dummy $LLVMGXX; ac_word=$2
13098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13100 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13101 echo $ECHO_N "(cached) $ECHO_C" >&6
13102 else
13103 case $LLVMGXX in
13104 [\\/]* | ?:[\\/]*)
13105 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13109 for as_dir in $PATH
13111 IFS=$as_save_IFS
13112 test -z "$as_dir" && as_dir=.
13113 for ac_exec_ext in '' $ac_executable_extensions; do
13114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13115 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13117 break 2
13119 done
13120 done
13121 IFS=$as_save_IFS
13124 esac
13126 LLVMGXX=$ac_cv_path_LLVMGXX
13127 if test -n "$LLVMGXX"; then
13128 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13129 echo "${ECHO_T}$LLVMGXX" >&6; }
13130 else
13131 { echo "$as_me:$LINENO: result: no" >&5
13132 echo "${ECHO_T}no" >&6; }
13136 else
13137 if test -z "$LLVMGCC"; then
13138 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13139 LLVMGCCCOMMAND="$LLVMGCC"
13141 if test -z "$LLVMGXX"; then
13142 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13143 LLVMGXXCOMMAND="$LLVMGXX"
13146 LLVMGCC=$LLVMGCC
13148 LLVMGXX=$LLVMGXX
13150 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13152 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13157 # Check whether --with-llvmcc was given.
13158 if test "${with_llvmcc+set}" = set; then
13159 withval=$with_llvmcc;
13160 else
13161 with_llvmcc=check
13164 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13165 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13166 if test "$with_llvmcc" != "check"; then
13167 if (test "$with_llvmcc" != "llvm-gcc" &&
13168 test "$with_llvmcc" != "clang" &&
13169 test "$with_llvmcc" != "none"); then
13170 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13171 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13172 { (exit 1); exit 1; }; }
13174 WITH_LLVMCC="$with_llvmcc"
13175 elif test -n "$LLVMGCC"; then
13176 WITH_LLVMCC=llvm-gcc
13177 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13178 WITH_LLVMCC=clang
13179 else
13180 WITH_LLVMCC=none
13182 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13183 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13184 LLVMCC_OPTION=$WITH_LLVMCC
13187 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13188 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13190 ICC=no
13191 IXX=no
13192 case $CC in
13193 icc*|icpc*)
13194 ICC=yes
13195 IXX=yes
13199 esac
13201 if test "$GCC" != "yes" && test "$ICC" != "yes"
13202 then
13203 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13204 echo "$as_me: error: gcc|icc required but not found" >&2;}
13205 { (exit 1); exit 1; }; }
13208 if test "$GXX" != "yes" && test "$IXX" != "yes"
13209 then
13210 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13211 echo "$as_me: error: g++|icc required but not found" >&2;}
13212 { (exit 1); exit 1; }; }
13215 if test "$GCC" = "yes"
13216 then
13217 cat >conftest.$ac_ext <<_ACEOF
13218 #if !defined(__GNUC__) || __GNUC__ < 3
13219 #error Unsupported GCC version
13220 #endif
13222 _ACEOF
13223 rm -f conftest.$ac_objext
13224 if { (ac_try="$ac_compile"
13225 case "(($ac_try" in
13226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13227 *) ac_try_echo=$ac_try;;
13228 esac
13229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13230 (eval "$ac_compile") 2>conftest.er1
13231 ac_status=$?
13232 grep -v '^ *+' conftest.er1 >conftest.err
13233 rm -f conftest.er1
13234 cat conftest.err >&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); } &&
13237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13238 { (case "(($ac_try" in
13239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13240 *) ac_try_echo=$ac_try;;
13241 esac
13242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13243 (eval "$ac_try") 2>&5
13244 ac_status=$?
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); }; } &&
13247 { ac_try='test -s conftest.$ac_objext'
13248 { (case "(($ac_try" in
13249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250 *) ac_try_echo=$ac_try;;
13251 esac
13252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13253 (eval "$ac_try") 2>&5
13254 ac_status=$?
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; }; then
13258 else
13259 echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13262 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13263 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13264 { (exit 1); exit 1; }; }
13267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13270 if test -z "$llvm_cv_gnu_make_command"
13271 then
13272 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13273 echo "$as_me: error: GNU Make required but not found" >&2;}
13274 { (exit 1); exit 1; }; }
13277 { echo "$as_me:$LINENO: result: ok" >&5
13278 echo "${ECHO_T}ok" >&6; }
13280 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13281 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13282 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13284 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13286 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13287 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13291 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13292 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13293 if test "${ac_cv_lib_m_sin+set}" = set; then
13294 echo $ECHO_N "(cached) $ECHO_C" >&6
13295 else
13296 ac_check_lib_save_LIBS=$LIBS
13297 LIBS="-lm $LIBS"
13298 cat >conftest.$ac_ext <<_ACEOF
13299 /* confdefs.h. */
13300 _ACEOF
13301 cat confdefs.h >>conftest.$ac_ext
13302 cat >>conftest.$ac_ext <<_ACEOF
13303 /* end confdefs.h. */
13305 /* Override any GCC internal prototype to avoid an error.
13306 Use char because int might match the return type of a GCC
13307 builtin and then its argument prototype would still apply. */
13308 #ifdef __cplusplus
13309 extern "C"
13310 #endif
13311 char sin ();
13313 main ()
13315 return sin ();
13317 return 0;
13319 _ACEOF
13320 rm -f conftest.$ac_objext conftest$ac_exeext
13321 if { (ac_try="$ac_link"
13322 case "(($ac_try" in
13323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13324 *) ac_try_echo=$ac_try;;
13325 esac
13326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13327 (eval "$ac_link") 2>conftest.er1
13328 ac_status=$?
13329 grep -v '^ *+' conftest.er1 >conftest.err
13330 rm -f conftest.er1
13331 cat conftest.err >&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); } &&
13334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13335 { (case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13338 esac
13339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_try") 2>&5
13341 ac_status=$?
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; } &&
13344 { ac_try='test -s conftest$ac_exeext'
13345 { (case "(($ac_try" in
13346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347 *) ac_try_echo=$ac_try;;
13348 esac
13349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350 (eval "$ac_try") 2>&5
13351 ac_status=$?
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; }; then
13354 ac_cv_lib_m_sin=yes
13355 else
13356 echo "$as_me: failed program was:" >&5
13357 sed 's/^/| /' conftest.$ac_ext >&5
13359 ac_cv_lib_m_sin=no
13362 rm -f core conftest.err conftest.$ac_objext \
13363 conftest$ac_exeext conftest.$ac_ext
13364 LIBS=$ac_check_lib_save_LIBS
13366 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13367 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13368 if test $ac_cv_lib_m_sin = yes; then
13369 cat >>confdefs.h <<_ACEOF
13370 #define HAVE_LIBM 1
13371 _ACEOF
13373 LIBS="-lm $LIBS"
13377 if test "$llvm_cv_os_type" = "MingW" ; then
13379 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13380 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13381 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13382 echo $ECHO_N "(cached) $ECHO_C" >&6
13383 else
13384 ac_check_lib_save_LIBS=$LIBS
13385 LIBS="-limagehlp $LIBS"
13386 cat >conftest.$ac_ext <<_ACEOF
13387 /* confdefs.h. */
13388 _ACEOF
13389 cat confdefs.h >>conftest.$ac_ext
13390 cat >>conftest.$ac_ext <<_ACEOF
13391 /* end confdefs.h. */
13395 main ()
13397 return main ();
13399 return 0;
13401 _ACEOF
13402 rm -f conftest.$ac_objext conftest$ac_exeext
13403 if { (ac_try="$ac_link"
13404 case "(($ac_try" in
13405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406 *) ac_try_echo=$ac_try;;
13407 esac
13408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409 (eval "$ac_link") 2>conftest.er1
13410 ac_status=$?
13411 grep -v '^ *+' conftest.er1 >conftest.err
13412 rm -f conftest.er1
13413 cat conftest.err >&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } &&
13416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13417 { (case "(($ac_try" in
13418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419 *) ac_try_echo=$ac_try;;
13420 esac
13421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422 (eval "$ac_try") 2>&5
13423 ac_status=$?
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; } &&
13426 { ac_try='test -s conftest$ac_exeext'
13427 { (case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13430 esac
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_try") 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }; then
13436 ac_cv_lib_imagehlp_main=yes
13437 else
13438 echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13441 ac_cv_lib_imagehlp_main=no
13444 rm -f core conftest.err conftest.$ac_objext \
13445 conftest$ac_exeext conftest.$ac_ext
13446 LIBS=$ac_check_lib_save_LIBS
13448 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13449 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13450 if test $ac_cv_lib_imagehlp_main = yes; then
13451 cat >>confdefs.h <<_ACEOF
13452 #define HAVE_LIBIMAGEHLP 1
13453 _ACEOF
13455 LIBS="-limagehlp $LIBS"
13460 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13461 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13462 if test "${ac_cv_lib_psapi_main+set}" = set; then
13463 echo $ECHO_N "(cached) $ECHO_C" >&6
13464 else
13465 ac_check_lib_save_LIBS=$LIBS
13466 LIBS="-lpsapi $LIBS"
13467 cat >conftest.$ac_ext <<_ACEOF
13468 /* confdefs.h. */
13469 _ACEOF
13470 cat confdefs.h >>conftest.$ac_ext
13471 cat >>conftest.$ac_ext <<_ACEOF
13472 /* end confdefs.h. */
13476 main ()
13478 return main ();
13480 return 0;
13482 _ACEOF
13483 rm -f conftest.$ac_objext conftest$ac_exeext
13484 if { (ac_try="$ac_link"
13485 case "(($ac_try" in
13486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13487 *) ac_try_echo=$ac_try;;
13488 esac
13489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13490 (eval "$ac_link") 2>conftest.er1
13491 ac_status=$?
13492 grep -v '^ *+' conftest.er1 >conftest.err
13493 rm -f conftest.er1
13494 cat conftest.err >&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); } &&
13497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13498 { (case "(($ac_try" in
13499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13500 *) ac_try_echo=$ac_try;;
13501 esac
13502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13503 (eval "$ac_try") 2>&5
13504 ac_status=$?
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; } &&
13507 { ac_try='test -s conftest$ac_exeext'
13508 { (case "(($ac_try" in
13509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13510 *) ac_try_echo=$ac_try;;
13511 esac
13512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13513 (eval "$ac_try") 2>&5
13514 ac_status=$?
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; }; then
13517 ac_cv_lib_psapi_main=yes
13518 else
13519 echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13522 ac_cv_lib_psapi_main=no
13525 rm -f core conftest.err conftest.$ac_objext \
13526 conftest$ac_exeext conftest.$ac_ext
13527 LIBS=$ac_check_lib_save_LIBS
13529 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13530 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13531 if test $ac_cv_lib_psapi_main = yes; then
13532 cat >>confdefs.h <<_ACEOF
13533 #define HAVE_LIBPSAPI 1
13534 _ACEOF
13536 LIBS="-lpsapi $LIBS"
13542 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13543 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13544 if test "${ac_cv_search_dlopen+set}" = set; then
13545 echo $ECHO_N "(cached) $ECHO_C" >&6
13546 else
13547 ac_func_search_save_LIBS=$LIBS
13548 cat >conftest.$ac_ext <<_ACEOF
13549 /* confdefs.h. */
13550 _ACEOF
13551 cat confdefs.h >>conftest.$ac_ext
13552 cat >>conftest.$ac_ext <<_ACEOF
13553 /* end confdefs.h. */
13555 /* Override any GCC internal prototype to avoid an error.
13556 Use char because int might match the return type of a GCC
13557 builtin and then its argument prototype would still apply. */
13558 #ifdef __cplusplus
13559 extern "C"
13560 #endif
13561 char dlopen ();
13563 main ()
13565 return dlopen ();
13567 return 0;
13569 _ACEOF
13570 for ac_lib in '' dl; do
13571 if test -z "$ac_lib"; then
13572 ac_res="none required"
13573 else
13574 ac_res=-l$ac_lib
13575 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13577 rm -f conftest.$ac_objext conftest$ac_exeext
13578 if { (ac_try="$ac_link"
13579 case "(($ac_try" in
13580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13581 *) ac_try_echo=$ac_try;;
13582 esac
13583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13584 (eval "$ac_link") 2>conftest.er1
13585 ac_status=$?
13586 grep -v '^ *+' conftest.er1 >conftest.err
13587 rm -f conftest.er1
13588 cat conftest.err >&5
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); } &&
13591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13592 { (case "(($ac_try" in
13593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13594 *) ac_try_echo=$ac_try;;
13595 esac
13596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13597 (eval "$ac_try") 2>&5
13598 ac_status=$?
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); }; } &&
13601 { ac_try='test -s conftest$ac_exeext'
13602 { (case "(($ac_try" in
13603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13604 *) ac_try_echo=$ac_try;;
13605 esac
13606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13607 (eval "$ac_try") 2>&5
13608 ac_status=$?
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; }; then
13611 ac_cv_search_dlopen=$ac_res
13612 else
13613 echo "$as_me: failed program was:" >&5
13614 sed 's/^/| /' conftest.$ac_ext >&5
13619 rm -f core conftest.err conftest.$ac_objext \
13620 conftest$ac_exeext
13621 if test "${ac_cv_search_dlopen+set}" = set; then
13622 break
13624 done
13625 if test "${ac_cv_search_dlopen+set}" = set; then
13627 else
13628 ac_cv_search_dlopen=no
13630 rm conftest.$ac_ext
13631 LIBS=$ac_func_search_save_LIBS
13633 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13634 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13635 ac_res=$ac_cv_search_dlopen
13636 if test "$ac_res" != no; then
13637 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13639 cat >>confdefs.h <<\_ACEOF
13640 #define HAVE_DLOPEN 1
13641 _ACEOF
13643 else
13644 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13645 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13649 if test "$llvm_cv_enable_libffi" = "yes" ; then
13650 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13651 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13652 if test "${ac_cv_search_ffi_call+set}" = set; then
13653 echo $ECHO_N "(cached) $ECHO_C" >&6
13654 else
13655 ac_func_search_save_LIBS=$LIBS
13656 cat >conftest.$ac_ext <<_ACEOF
13657 /* confdefs.h. */
13658 _ACEOF
13659 cat confdefs.h >>conftest.$ac_ext
13660 cat >>conftest.$ac_ext <<_ACEOF
13661 /* end confdefs.h. */
13663 /* Override any GCC internal prototype to avoid an error.
13664 Use char because int might match the return type of a GCC
13665 builtin and then its argument prototype would still apply. */
13666 #ifdef __cplusplus
13667 extern "C"
13668 #endif
13669 char ffi_call ();
13671 main ()
13673 return ffi_call ();
13675 return 0;
13677 _ACEOF
13678 for ac_lib in '' ffi; do
13679 if test -z "$ac_lib"; then
13680 ac_res="none required"
13681 else
13682 ac_res=-l$ac_lib
13683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13685 rm -f conftest.$ac_objext conftest$ac_exeext
13686 if { (ac_try="$ac_link"
13687 case "(($ac_try" in
13688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689 *) ac_try_echo=$ac_try;;
13690 esac
13691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692 (eval "$ac_link") 2>conftest.er1
13693 ac_status=$?
13694 grep -v '^ *+' conftest.er1 >conftest.err
13695 rm -f conftest.er1
13696 cat conftest.err >&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } &&
13699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13700 { (case "(($ac_try" in
13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13703 esac
13704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705 (eval "$ac_try") 2>&5
13706 ac_status=$?
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; } &&
13709 { ac_try='test -s conftest$ac_exeext'
13710 { (case "(($ac_try" in
13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712 *) ac_try_echo=$ac_try;;
13713 esac
13714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715 (eval "$ac_try") 2>&5
13716 ac_status=$?
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; }; then
13719 ac_cv_search_ffi_call=$ac_res
13720 else
13721 echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13727 rm -f core conftest.err conftest.$ac_objext \
13728 conftest$ac_exeext
13729 if test "${ac_cv_search_ffi_call+set}" = set; then
13730 break
13732 done
13733 if test "${ac_cv_search_ffi_call+set}" = set; then
13735 else
13736 ac_cv_search_ffi_call=no
13738 rm conftest.$ac_ext
13739 LIBS=$ac_func_search_save_LIBS
13741 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13742 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13743 ac_res=$ac_cv_search_ffi_call
13744 if test "$ac_res" != no; then
13745 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13747 cat >>confdefs.h <<\_ACEOF
13748 #define HAVE_FFI_CALL 1
13749 _ACEOF
13751 else
13752 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13753 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13754 { (exit 1); exit 1; }; }
13759 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13760 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13761 if test "${ac_cv_search_mallinfo+set}" = set; then
13762 echo $ECHO_N "(cached) $ECHO_C" >&6
13763 else
13764 ac_func_search_save_LIBS=$LIBS
13765 cat >conftest.$ac_ext <<_ACEOF
13766 /* confdefs.h. */
13767 _ACEOF
13768 cat confdefs.h >>conftest.$ac_ext
13769 cat >>conftest.$ac_ext <<_ACEOF
13770 /* end confdefs.h. */
13772 /* Override any GCC internal prototype to avoid an error.
13773 Use char because int might match the return type of a GCC
13774 builtin and then its argument prototype would still apply. */
13775 #ifdef __cplusplus
13776 extern "C"
13777 #endif
13778 char mallinfo ();
13780 main ()
13782 return mallinfo ();
13784 return 0;
13786 _ACEOF
13787 for ac_lib in '' malloc; do
13788 if test -z "$ac_lib"; then
13789 ac_res="none required"
13790 else
13791 ac_res=-l$ac_lib
13792 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13794 rm -f conftest.$ac_objext conftest$ac_exeext
13795 if { (ac_try="$ac_link"
13796 case "(($ac_try" in
13797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13798 *) ac_try_echo=$ac_try;;
13799 esac
13800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13801 (eval "$ac_link") 2>conftest.er1
13802 ac_status=$?
13803 grep -v '^ *+' conftest.er1 >conftest.err
13804 rm -f conftest.er1
13805 cat conftest.err >&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); } &&
13808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13809 { (case "(($ac_try" in
13810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13811 *) ac_try_echo=$ac_try;;
13812 esac
13813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13814 (eval "$ac_try") 2>&5
13815 ac_status=$?
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; } &&
13818 { ac_try='test -s conftest$ac_exeext'
13819 { (case "(($ac_try" in
13820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13821 *) ac_try_echo=$ac_try;;
13822 esac
13823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13824 (eval "$ac_try") 2>&5
13825 ac_status=$?
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; }; then
13828 ac_cv_search_mallinfo=$ac_res
13829 else
13830 echo "$as_me: failed program was:" >&5
13831 sed 's/^/| /' conftest.$ac_ext >&5
13836 rm -f core conftest.err conftest.$ac_objext \
13837 conftest$ac_exeext
13838 if test "${ac_cv_search_mallinfo+set}" = set; then
13839 break
13841 done
13842 if test "${ac_cv_search_mallinfo+set}" = set; then
13844 else
13845 ac_cv_search_mallinfo=no
13847 rm conftest.$ac_ext
13848 LIBS=$ac_func_search_save_LIBS
13850 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13851 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13852 ac_res=$ac_cv_search_mallinfo
13853 if test "$ac_res" != no; then
13854 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13856 cat >>confdefs.h <<\_ACEOF
13857 #define HAVE_MALLINFO 1
13858 _ACEOF
13863 if test "$ENABLE_THREADS" -eq 1 ; then
13865 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13866 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13867 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13868 echo $ECHO_N "(cached) $ECHO_C" >&6
13869 else
13870 ac_check_lib_save_LIBS=$LIBS
13871 LIBS="-lpthread $LIBS"
13872 cat >conftest.$ac_ext <<_ACEOF
13873 /* confdefs.h. */
13874 _ACEOF
13875 cat confdefs.h >>conftest.$ac_ext
13876 cat >>conftest.$ac_ext <<_ACEOF
13877 /* end confdefs.h. */
13879 /* Override any GCC internal prototype to avoid an error.
13880 Use char because int might match the return type of a GCC
13881 builtin and then its argument prototype would still apply. */
13882 #ifdef __cplusplus
13883 extern "C"
13884 #endif
13885 char pthread_mutex_init ();
13887 main ()
13889 return pthread_mutex_init ();
13891 return 0;
13893 _ACEOF
13894 rm -f conftest.$ac_objext conftest$ac_exeext
13895 if { (ac_try="$ac_link"
13896 case "(($ac_try" in
13897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13898 *) ac_try_echo=$ac_try;;
13899 esac
13900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13901 (eval "$ac_link") 2>conftest.er1
13902 ac_status=$?
13903 grep -v '^ *+' conftest.er1 >conftest.err
13904 rm -f conftest.er1
13905 cat conftest.err >&5
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); } &&
13908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13909 { (case "(($ac_try" in
13910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13911 *) ac_try_echo=$ac_try;;
13912 esac
13913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13914 (eval "$ac_try") 2>&5
13915 ac_status=$?
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; } &&
13918 { ac_try='test -s conftest$ac_exeext'
13919 { (case "(($ac_try" in
13920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13921 *) ac_try_echo=$ac_try;;
13922 esac
13923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13924 (eval "$ac_try") 2>&5
13925 ac_status=$?
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); }; }; then
13928 ac_cv_lib_pthread_pthread_mutex_init=yes
13929 else
13930 echo "$as_me: failed program was:" >&5
13931 sed 's/^/| /' conftest.$ac_ext >&5
13933 ac_cv_lib_pthread_pthread_mutex_init=no
13936 rm -f core conftest.err conftest.$ac_objext \
13937 conftest$ac_exeext conftest.$ac_ext
13938 LIBS=$ac_check_lib_save_LIBS
13940 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13941 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13942 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13943 cat >>confdefs.h <<_ACEOF
13944 #define HAVE_LIBPTHREAD 1
13945 _ACEOF
13947 LIBS="-lpthread $LIBS"
13951 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13952 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13953 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13955 else
13956 ac_func_search_save_LIBS=$LIBS
13957 cat >conftest.$ac_ext <<_ACEOF
13958 /* confdefs.h. */
13959 _ACEOF
13960 cat confdefs.h >>conftest.$ac_ext
13961 cat >>conftest.$ac_ext <<_ACEOF
13962 /* end confdefs.h. */
13964 /* Override any GCC internal prototype to avoid an error.
13965 Use char because int might match the return type of a GCC
13966 builtin and then its argument prototype would still apply. */
13967 #ifdef __cplusplus
13968 extern "C"
13969 #endif
13970 char pthread_mutex_lock ();
13972 main ()
13974 return pthread_mutex_lock ();
13976 return 0;
13978 _ACEOF
13979 for ac_lib in '' pthread; do
13980 if test -z "$ac_lib"; then
13981 ac_res="none required"
13982 else
13983 ac_res=-l$ac_lib
13984 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13986 rm -f conftest.$ac_objext conftest$ac_exeext
13987 if { (ac_try="$ac_link"
13988 case "(($ac_try" in
13989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990 *) ac_try_echo=$ac_try;;
13991 esac
13992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13993 (eval "$ac_link") 2>conftest.er1
13994 ac_status=$?
13995 grep -v '^ *+' conftest.er1 >conftest.err
13996 rm -f conftest.er1
13997 cat conftest.err >&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); } &&
14000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14001 { (case "(($ac_try" in
14002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14003 *) ac_try_echo=$ac_try;;
14004 esac
14005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14006 (eval "$ac_try") 2>&5
14007 ac_status=$?
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; } &&
14010 { ac_try='test -s conftest$ac_exeext'
14011 { (case "(($ac_try" in
14012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14013 *) ac_try_echo=$ac_try;;
14014 esac
14015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14016 (eval "$ac_try") 2>&5
14017 ac_status=$?
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; }; then
14020 ac_cv_search_pthread_mutex_lock=$ac_res
14021 else
14022 echo "$as_me: failed program was:" >&5
14023 sed 's/^/| /' conftest.$ac_ext >&5
14028 rm -f core conftest.err conftest.$ac_objext \
14029 conftest$ac_exeext
14030 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14031 break
14033 done
14034 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14036 else
14037 ac_cv_search_pthread_mutex_lock=no
14039 rm conftest.$ac_ext
14040 LIBS=$ac_func_search_save_LIBS
14042 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14043 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14044 ac_res=$ac_cv_search_pthread_mutex_lock
14045 if test "$ac_res" != no; then
14046 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14048 cat >>confdefs.h <<\_ACEOF
14049 #define HAVE_PTHREAD_MUTEX_LOCK 1
14050 _ACEOF
14054 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14055 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14056 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14057 echo $ECHO_N "(cached) $ECHO_C" >&6
14058 else
14059 ac_func_search_save_LIBS=$LIBS
14060 cat >conftest.$ac_ext <<_ACEOF
14061 /* confdefs.h. */
14062 _ACEOF
14063 cat confdefs.h >>conftest.$ac_ext
14064 cat >>conftest.$ac_ext <<_ACEOF
14065 /* end confdefs.h. */
14067 /* Override any GCC internal prototype to avoid an error.
14068 Use char because int might match the return type of a GCC
14069 builtin and then its argument prototype would still apply. */
14070 #ifdef __cplusplus
14071 extern "C"
14072 #endif
14073 char pthread_rwlock_init ();
14075 main ()
14077 return pthread_rwlock_init ();
14079 return 0;
14081 _ACEOF
14082 for ac_lib in '' pthread; do
14083 if test -z "$ac_lib"; then
14084 ac_res="none required"
14085 else
14086 ac_res=-l$ac_lib
14087 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14089 rm -f conftest.$ac_objext conftest$ac_exeext
14090 if { (ac_try="$ac_link"
14091 case "(($ac_try" in
14092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14093 *) ac_try_echo=$ac_try;;
14094 esac
14095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14096 (eval "$ac_link") 2>conftest.er1
14097 ac_status=$?
14098 grep -v '^ *+' conftest.er1 >conftest.err
14099 rm -f conftest.er1
14100 cat conftest.err >&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } &&
14103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14104 { (case "(($ac_try" in
14105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14106 *) ac_try_echo=$ac_try;;
14107 esac
14108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14109 (eval "$ac_try") 2>&5
14110 ac_status=$?
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; } &&
14113 { ac_try='test -s conftest$ac_exeext'
14114 { (case "(($ac_try" in
14115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14116 *) ac_try_echo=$ac_try;;
14117 esac
14118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14119 (eval "$ac_try") 2>&5
14120 ac_status=$?
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; }; then
14123 ac_cv_search_pthread_rwlock_init=$ac_res
14124 else
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14131 rm -f core conftest.err conftest.$ac_objext \
14132 conftest$ac_exeext
14133 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14134 break
14136 done
14137 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14139 else
14140 ac_cv_search_pthread_rwlock_init=no
14142 rm conftest.$ac_ext
14143 LIBS=$ac_func_search_save_LIBS
14145 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14146 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14147 ac_res=$ac_cv_search_pthread_rwlock_init
14148 if test "$ac_res" != no; then
14149 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14151 cat >>confdefs.h <<\_ACEOF
14152 #define HAVE_PTHREAD_RWLOCK_INIT 1
14153 _ACEOF
14157 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14158 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14159 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14160 echo $ECHO_N "(cached) $ECHO_C" >&6
14161 else
14162 ac_func_search_save_LIBS=$LIBS
14163 cat >conftest.$ac_ext <<_ACEOF
14164 /* confdefs.h. */
14165 _ACEOF
14166 cat confdefs.h >>conftest.$ac_ext
14167 cat >>conftest.$ac_ext <<_ACEOF
14168 /* end confdefs.h. */
14170 /* Override any GCC internal prototype to avoid an error.
14171 Use char because int might match the return type of a GCC
14172 builtin and then its argument prototype would still apply. */
14173 #ifdef __cplusplus
14174 extern "C"
14175 #endif
14176 char pthread_getspecific ();
14178 main ()
14180 return pthread_getspecific ();
14182 return 0;
14184 _ACEOF
14185 for ac_lib in '' pthread; do
14186 if test -z "$ac_lib"; then
14187 ac_res="none required"
14188 else
14189 ac_res=-l$ac_lib
14190 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14192 rm -f conftest.$ac_objext conftest$ac_exeext
14193 if { (ac_try="$ac_link"
14194 case "(($ac_try" in
14195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196 *) ac_try_echo=$ac_try;;
14197 esac
14198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199 (eval "$ac_link") 2>conftest.er1
14200 ac_status=$?
14201 grep -v '^ *+' conftest.er1 >conftest.err
14202 rm -f conftest.er1
14203 cat conftest.err >&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); } &&
14206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14207 { (case "(($ac_try" in
14208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14210 esac
14211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212 (eval "$ac_try") 2>&5
14213 ac_status=$?
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; } &&
14216 { ac_try='test -s conftest$ac_exeext'
14217 { (case "(($ac_try" in
14218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219 *) ac_try_echo=$ac_try;;
14220 esac
14221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222 (eval "$ac_try") 2>&5
14223 ac_status=$?
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); }; }; then
14226 ac_cv_search_pthread_getspecific=$ac_res
14227 else
14228 echo "$as_me: failed program was:" >&5
14229 sed 's/^/| /' conftest.$ac_ext >&5
14234 rm -f core conftest.err conftest.$ac_objext \
14235 conftest$ac_exeext
14236 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14237 break
14239 done
14240 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14242 else
14243 ac_cv_search_pthread_getspecific=no
14245 rm conftest.$ac_ext
14246 LIBS=$ac_func_search_save_LIBS
14248 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14249 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14250 ac_res=$ac_cv_search_pthread_getspecific
14251 if test "$ac_res" != no; then
14252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14254 cat >>confdefs.h <<\_ACEOF
14255 #define HAVE_PTHREAD_GETSPECIFIC 1
14256 _ACEOF
14263 # Check whether --with-udis86 was given.
14264 if test "${with_udis86+set}" = set; then
14265 withval=$with_udis86;
14266 USE_UDIS86=1
14268 case "$withval" in
14269 /usr/lib|yes) ;;
14270 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14271 esac
14273 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14274 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14275 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14276 echo $ECHO_N "(cached) $ECHO_C" >&6
14277 else
14278 ac_check_lib_save_LIBS=$LIBS
14279 LIBS="-ludis86 $LIBS"
14280 cat >conftest.$ac_ext <<_ACEOF
14281 /* confdefs.h. */
14282 _ACEOF
14283 cat confdefs.h >>conftest.$ac_ext
14284 cat >>conftest.$ac_ext <<_ACEOF
14285 /* end confdefs.h. */
14287 /* Override any GCC internal prototype to avoid an error.
14288 Use char because int might match the return type of a GCC
14289 builtin and then its argument prototype would still apply. */
14290 #ifdef __cplusplus
14291 extern "C"
14292 #endif
14293 char ud_init ();
14295 main ()
14297 return ud_init ();
14299 return 0;
14301 _ACEOF
14302 rm -f conftest.$ac_objext conftest$ac_exeext
14303 if { (ac_try="$ac_link"
14304 case "(($ac_try" in
14305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306 *) ac_try_echo=$ac_try;;
14307 esac
14308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309 (eval "$ac_link") 2>conftest.er1
14310 ac_status=$?
14311 grep -v '^ *+' conftest.er1 >conftest.err
14312 rm -f conftest.er1
14313 cat conftest.err >&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); } &&
14316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14317 { (case "(($ac_try" in
14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14320 esac
14321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_try") 2>&5
14323 ac_status=$?
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; } &&
14326 { ac_try='test -s conftest$ac_exeext'
14327 { (case "(($ac_try" in
14328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329 *) ac_try_echo=$ac_try;;
14330 esac
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332 (eval "$ac_try") 2>&5
14333 ac_status=$?
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; }; then
14336 ac_cv_lib_udis86_ud_init=yes
14337 else
14338 echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.$ac_ext >&5
14341 ac_cv_lib_udis86_ud_init=no
14344 rm -f core conftest.err conftest.$ac_objext \
14345 conftest$ac_exeext conftest.$ac_ext
14346 LIBS=$ac_check_lib_save_LIBS
14348 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14349 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14350 if test $ac_cv_lib_udis86_ud_init = yes; then
14351 cat >>confdefs.h <<_ACEOF
14352 #define HAVE_LIBUDIS86 1
14353 _ACEOF
14355 LIBS="-ludis86 $LIBS"
14357 else
14359 echo "Error! You need to have libudis86 around."
14360 exit -1
14365 else
14366 USE_UDIS86=0
14371 cat >>confdefs.h <<_ACEOF
14372 #define USE_UDIS86 $USE_UDIS86
14373 _ACEOF
14377 # Check whether --with-oprofile was given.
14378 if test "${with_oprofile+set}" = set; then
14379 withval=$with_oprofile;
14380 USE_OPROFILE=1
14382 case "$withval" in
14383 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14384 no) llvm_cv_oppath=
14385 USE_OPROFILE=0
14387 *) llvm_cv_oppath="${withval}/lib/oprofile"
14388 CPPFLAGS="-I${withval}/include";;
14389 esac
14390 if test -n "$llvm_cv_oppath" ; then
14391 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14392 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14393 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14394 if test "${ac_cv_search_bfd_init+set}" = set; then
14395 echo $ECHO_N "(cached) $ECHO_C" >&6
14396 else
14397 ac_func_search_save_LIBS=$LIBS
14398 cat >conftest.$ac_ext <<_ACEOF
14399 /* confdefs.h. */
14400 _ACEOF
14401 cat confdefs.h >>conftest.$ac_ext
14402 cat >>conftest.$ac_ext <<_ACEOF
14403 /* end confdefs.h. */
14405 /* Override any GCC internal prototype to avoid an error.
14406 Use char because int might match the return type of a GCC
14407 builtin and then its argument prototype would still apply. */
14408 #ifdef __cplusplus
14409 extern "C"
14410 #endif
14411 char bfd_init ();
14413 main ()
14415 return bfd_init ();
14417 return 0;
14419 _ACEOF
14420 for ac_lib in '' bfd; do
14421 if test -z "$ac_lib"; then
14422 ac_res="none required"
14423 else
14424 ac_res=-l$ac_lib
14425 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14427 rm -f conftest.$ac_objext conftest$ac_exeext
14428 if { (ac_try="$ac_link"
14429 case "(($ac_try" in
14430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14431 *) ac_try_echo=$ac_try;;
14432 esac
14433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14434 (eval "$ac_link") 2>conftest.er1
14435 ac_status=$?
14436 grep -v '^ *+' conftest.er1 >conftest.err
14437 rm -f conftest.er1
14438 cat conftest.err >&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } &&
14441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14442 { (case "(($ac_try" in
14443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444 *) ac_try_echo=$ac_try;;
14445 esac
14446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447 (eval "$ac_try") 2>&5
14448 ac_status=$?
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; } &&
14451 { ac_try='test -s conftest$ac_exeext'
14452 { (case "(($ac_try" in
14453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14454 *) ac_try_echo=$ac_try;;
14455 esac
14456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14457 (eval "$ac_try") 2>&5
14458 ac_status=$?
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); }; }; then
14461 ac_cv_search_bfd_init=$ac_res
14462 else
14463 echo "$as_me: failed program was:" >&5
14464 sed 's/^/| /' conftest.$ac_ext >&5
14469 rm -f core conftest.err conftest.$ac_objext \
14470 conftest$ac_exeext
14471 if test "${ac_cv_search_bfd_init+set}" = set; then
14472 break
14474 done
14475 if test "${ac_cv_search_bfd_init+set}" = set; then
14477 else
14478 ac_cv_search_bfd_init=no
14480 rm conftest.$ac_ext
14481 LIBS=$ac_func_search_save_LIBS
14483 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14484 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14485 ac_res=$ac_cv_search_bfd_init
14486 if test "$ac_res" != no; then
14487 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14491 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14492 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14493 if test "${ac_cv_search_op_open_agent+set}" = set; then
14494 echo $ECHO_N "(cached) $ECHO_C" >&6
14495 else
14496 ac_func_search_save_LIBS=$LIBS
14497 cat >conftest.$ac_ext <<_ACEOF
14498 /* confdefs.h. */
14499 _ACEOF
14500 cat confdefs.h >>conftest.$ac_ext
14501 cat >>conftest.$ac_ext <<_ACEOF
14502 /* end confdefs.h. */
14504 /* Override any GCC internal prototype to avoid an error.
14505 Use char because int might match the return type of a GCC
14506 builtin and then its argument prototype would still apply. */
14507 #ifdef __cplusplus
14508 extern "C"
14509 #endif
14510 char op_open_agent ();
14512 main ()
14514 return op_open_agent ();
14516 return 0;
14518 _ACEOF
14519 for ac_lib in '' opagent; do
14520 if test -z "$ac_lib"; then
14521 ac_res="none required"
14522 else
14523 ac_res=-l$ac_lib
14524 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14526 rm -f conftest.$ac_objext conftest$ac_exeext
14527 if { (ac_try="$ac_link"
14528 case "(($ac_try" in
14529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14530 *) ac_try_echo=$ac_try;;
14531 esac
14532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14533 (eval "$ac_link") 2>conftest.er1
14534 ac_status=$?
14535 grep -v '^ *+' conftest.er1 >conftest.err
14536 rm -f conftest.er1
14537 cat conftest.err >&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); } &&
14540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14541 { (case "(($ac_try" in
14542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14543 *) ac_try_echo=$ac_try;;
14544 esac
14545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14546 (eval "$ac_try") 2>&5
14547 ac_status=$?
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); }; } &&
14550 { ac_try='test -s conftest$ac_exeext'
14551 { (case "(($ac_try" in
14552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553 *) ac_try_echo=$ac_try;;
14554 esac
14555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14556 (eval "$ac_try") 2>&5
14557 ac_status=$?
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); }; }; then
14560 ac_cv_search_op_open_agent=$ac_res
14561 else
14562 echo "$as_me: failed program was:" >&5
14563 sed 's/^/| /' conftest.$ac_ext >&5
14568 rm -f core conftest.err conftest.$ac_objext \
14569 conftest$ac_exeext
14570 if test "${ac_cv_search_op_open_agent+set}" = set; then
14571 break
14573 done
14574 if test "${ac_cv_search_op_open_agent+set}" = set; then
14576 else
14577 ac_cv_search_op_open_agent=no
14579 rm conftest.$ac_ext
14580 LIBS=$ac_func_search_save_LIBS
14582 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14583 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14584 ac_res=$ac_cv_search_op_open_agent
14585 if test "$ac_res" != no; then
14586 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14588 else
14590 echo "Error! You need to have libopagent around."
14591 exit -1
14595 if test "${ac_cv_header_opagent_h+set}" = set; then
14596 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14597 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14598 if test "${ac_cv_header_opagent_h+set}" = set; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14601 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14602 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14603 else
14604 # Is the header compilable?
14605 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14606 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14607 cat >conftest.$ac_ext <<_ACEOF
14608 /* confdefs.h. */
14609 _ACEOF
14610 cat confdefs.h >>conftest.$ac_ext
14611 cat >>conftest.$ac_ext <<_ACEOF
14612 /* end confdefs.h. */
14613 $ac_includes_default
14614 #include <opagent.h>
14615 _ACEOF
14616 rm -f conftest.$ac_objext
14617 if { (ac_try="$ac_compile"
14618 case "(($ac_try" in
14619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620 *) ac_try_echo=$ac_try;;
14621 esac
14622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623 (eval "$ac_compile") 2>conftest.er1
14624 ac_status=$?
14625 grep -v '^ *+' conftest.er1 >conftest.err
14626 rm -f conftest.er1
14627 cat conftest.err >&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } &&
14630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14631 { (case "(($ac_try" in
14632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14633 *) ac_try_echo=$ac_try;;
14634 esac
14635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14636 (eval "$ac_try") 2>&5
14637 ac_status=$?
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); }; } &&
14640 { ac_try='test -s conftest.$ac_objext'
14641 { (case "(($ac_try" in
14642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643 *) ac_try_echo=$ac_try;;
14644 esac
14645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646 (eval "$ac_try") 2>&5
14647 ac_status=$?
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; }; then
14650 ac_header_compiler=yes
14651 else
14652 echo "$as_me: failed program was:" >&5
14653 sed 's/^/| /' conftest.$ac_ext >&5
14655 ac_header_compiler=no
14658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14659 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14660 echo "${ECHO_T}$ac_header_compiler" >&6; }
14662 # Is the header present?
14663 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14664 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14665 cat >conftest.$ac_ext <<_ACEOF
14666 /* confdefs.h. */
14667 _ACEOF
14668 cat confdefs.h >>conftest.$ac_ext
14669 cat >>conftest.$ac_ext <<_ACEOF
14670 /* end confdefs.h. */
14671 #include <opagent.h>
14672 _ACEOF
14673 if { (ac_try="$ac_cpp conftest.$ac_ext"
14674 case "(($ac_try" in
14675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14676 *) ac_try_echo=$ac_try;;
14677 esac
14678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14680 ac_status=$?
14681 grep -v '^ *+' conftest.er1 >conftest.err
14682 rm -f conftest.er1
14683 cat conftest.err >&5
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); } >/dev/null; then
14686 if test -s conftest.err; then
14687 ac_cpp_err=$ac_c_preproc_warn_flag
14688 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14689 else
14690 ac_cpp_err=
14692 else
14693 ac_cpp_err=yes
14695 if test -z "$ac_cpp_err"; then
14696 ac_header_preproc=yes
14697 else
14698 echo "$as_me: failed program was:" >&5
14699 sed 's/^/| /' conftest.$ac_ext >&5
14701 ac_header_preproc=no
14704 rm -f conftest.err conftest.$ac_ext
14705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14706 echo "${ECHO_T}$ac_header_preproc" >&6; }
14708 # So? What about this header?
14709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14710 yes:no: )
14711 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14712 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14713 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14714 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14715 ac_header_preproc=yes
14717 no:yes:* )
14718 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14719 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14720 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14721 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14722 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14723 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14724 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14725 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14726 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14727 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14728 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14729 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14730 ( cat <<\_ASBOX
14731 ## ----------------------------------- ##
14732 ## Report this to llvmbugs@cs.uiuc.edu ##
14733 ## ----------------------------------- ##
14734 _ASBOX
14735 ) | sed "s/^/$as_me: WARNING: /" >&2
14737 esac
14738 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14739 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14740 if test "${ac_cv_header_opagent_h+set}" = set; then
14741 echo $ECHO_N "(cached) $ECHO_C" >&6
14742 else
14743 ac_cv_header_opagent_h=$ac_header_preproc
14745 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14746 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14749 if test $ac_cv_header_opagent_h = yes; then
14751 else
14753 echo "Error! You need to have opagent.h around."
14754 exit -1
14761 else
14763 USE_OPROFILE=0
14769 cat >>confdefs.h <<_ACEOF
14770 #define USE_OPROFILE $USE_OPROFILE
14771 _ACEOF
14780 ac_header_dirent=no
14781 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14782 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14783 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14784 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14786 echo $ECHO_N "(cached) $ECHO_C" >&6
14787 else
14788 cat >conftest.$ac_ext <<_ACEOF
14789 /* confdefs.h. */
14790 _ACEOF
14791 cat confdefs.h >>conftest.$ac_ext
14792 cat >>conftest.$ac_ext <<_ACEOF
14793 /* end confdefs.h. */
14794 #include <sys/types.h>
14795 #include <$ac_hdr>
14798 main ()
14800 if ((DIR *) 0)
14801 return 0;
14803 return 0;
14805 _ACEOF
14806 rm -f conftest.$ac_objext
14807 if { (ac_try="$ac_compile"
14808 case "(($ac_try" in
14809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14810 *) ac_try_echo=$ac_try;;
14811 esac
14812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14813 (eval "$ac_compile") 2>conftest.er1
14814 ac_status=$?
14815 grep -v '^ *+' conftest.er1 >conftest.err
14816 rm -f conftest.er1
14817 cat conftest.err >&5
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); } &&
14820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14821 { (case "(($ac_try" in
14822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14823 *) ac_try_echo=$ac_try;;
14824 esac
14825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14826 (eval "$ac_try") 2>&5
14827 ac_status=$?
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; } &&
14830 { ac_try='test -s conftest.$ac_objext'
14831 { (case "(($ac_try" in
14832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14833 *) ac_try_echo=$ac_try;;
14834 esac
14835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14836 (eval "$ac_try") 2>&5
14837 ac_status=$?
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); }; }; then
14840 eval "$as_ac_Header=yes"
14841 else
14842 echo "$as_me: failed program was:" >&5
14843 sed 's/^/| /' conftest.$ac_ext >&5
14845 eval "$as_ac_Header=no"
14848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14850 ac_res=`eval echo '${'$as_ac_Header'}'`
14851 { echo "$as_me:$LINENO: result: $ac_res" >&5
14852 echo "${ECHO_T}$ac_res" >&6; }
14853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14854 cat >>confdefs.h <<_ACEOF
14855 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14856 _ACEOF
14858 ac_header_dirent=$ac_hdr; break
14861 done
14862 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14863 if test $ac_header_dirent = dirent.h; then
14864 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14865 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14866 if test "${ac_cv_search_opendir+set}" = set; then
14867 echo $ECHO_N "(cached) $ECHO_C" >&6
14868 else
14869 ac_func_search_save_LIBS=$LIBS
14870 cat >conftest.$ac_ext <<_ACEOF
14871 /* confdefs.h. */
14872 _ACEOF
14873 cat confdefs.h >>conftest.$ac_ext
14874 cat >>conftest.$ac_ext <<_ACEOF
14875 /* end confdefs.h. */
14877 /* Override any GCC internal prototype to avoid an error.
14878 Use char because int might match the return type of a GCC
14879 builtin and then its argument prototype would still apply. */
14880 #ifdef __cplusplus
14881 extern "C"
14882 #endif
14883 char opendir ();
14885 main ()
14887 return opendir ();
14889 return 0;
14891 _ACEOF
14892 for ac_lib in '' dir; do
14893 if test -z "$ac_lib"; then
14894 ac_res="none required"
14895 else
14896 ac_res=-l$ac_lib
14897 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14899 rm -f conftest.$ac_objext conftest$ac_exeext
14900 if { (ac_try="$ac_link"
14901 case "(($ac_try" in
14902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14903 *) ac_try_echo=$ac_try;;
14904 esac
14905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14906 (eval "$ac_link") 2>conftest.er1
14907 ac_status=$?
14908 grep -v '^ *+' conftest.er1 >conftest.err
14909 rm -f conftest.er1
14910 cat conftest.err >&5
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); } &&
14913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14914 { (case "(($ac_try" in
14915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916 *) ac_try_echo=$ac_try;;
14917 esac
14918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919 (eval "$ac_try") 2>&5
14920 ac_status=$?
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; } &&
14923 { ac_try='test -s conftest$ac_exeext'
14924 { (case "(($ac_try" in
14925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14926 *) ac_try_echo=$ac_try;;
14927 esac
14928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14929 (eval "$ac_try") 2>&5
14930 ac_status=$?
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); }; }; then
14933 ac_cv_search_opendir=$ac_res
14934 else
14935 echo "$as_me: failed program was:" >&5
14936 sed 's/^/| /' conftest.$ac_ext >&5
14941 rm -f core conftest.err conftest.$ac_objext \
14942 conftest$ac_exeext
14943 if test "${ac_cv_search_opendir+set}" = set; then
14944 break
14946 done
14947 if test "${ac_cv_search_opendir+set}" = set; then
14949 else
14950 ac_cv_search_opendir=no
14952 rm conftest.$ac_ext
14953 LIBS=$ac_func_search_save_LIBS
14955 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14956 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14957 ac_res=$ac_cv_search_opendir
14958 if test "$ac_res" != no; then
14959 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14963 else
14964 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14965 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14966 if test "${ac_cv_search_opendir+set}" = set; then
14967 echo $ECHO_N "(cached) $ECHO_C" >&6
14968 else
14969 ac_func_search_save_LIBS=$LIBS
14970 cat >conftest.$ac_ext <<_ACEOF
14971 /* confdefs.h. */
14972 _ACEOF
14973 cat confdefs.h >>conftest.$ac_ext
14974 cat >>conftest.$ac_ext <<_ACEOF
14975 /* end confdefs.h. */
14977 /* Override any GCC internal prototype to avoid an error.
14978 Use char because int might match the return type of a GCC
14979 builtin and then its argument prototype would still apply. */
14980 #ifdef __cplusplus
14981 extern "C"
14982 #endif
14983 char opendir ();
14985 main ()
14987 return opendir ();
14989 return 0;
14991 _ACEOF
14992 for ac_lib in '' x; do
14993 if test -z "$ac_lib"; then
14994 ac_res="none required"
14995 else
14996 ac_res=-l$ac_lib
14997 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14999 rm -f conftest.$ac_objext conftest$ac_exeext
15000 if { (ac_try="$ac_link"
15001 case "(($ac_try" in
15002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15003 *) ac_try_echo=$ac_try;;
15004 esac
15005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15006 (eval "$ac_link") 2>conftest.er1
15007 ac_status=$?
15008 grep -v '^ *+' conftest.er1 >conftest.err
15009 rm -f conftest.er1
15010 cat conftest.err >&5
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); } &&
15013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15014 { (case "(($ac_try" in
15015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15016 *) ac_try_echo=$ac_try;;
15017 esac
15018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15019 (eval "$ac_try") 2>&5
15020 ac_status=$?
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); }; } &&
15023 { ac_try='test -s conftest$ac_exeext'
15024 { (case "(($ac_try" in
15025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15026 *) ac_try_echo=$ac_try;;
15027 esac
15028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15029 (eval "$ac_try") 2>&5
15030 ac_status=$?
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; }; then
15033 ac_cv_search_opendir=$ac_res
15034 else
15035 echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.$ac_ext >&5
15041 rm -f core conftest.err conftest.$ac_objext \
15042 conftest$ac_exeext
15043 if test "${ac_cv_search_opendir+set}" = set; then
15044 break
15046 done
15047 if test "${ac_cv_search_opendir+set}" = set; then
15049 else
15050 ac_cv_search_opendir=no
15052 rm conftest.$ac_ext
15053 LIBS=$ac_func_search_save_LIBS
15055 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15056 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15057 ac_res=$ac_cv_search_opendir
15058 if test "$ac_res" != no; then
15059 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15065 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15066 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15067 if test "${ac_cv_header_mmap_anon+set}" = set; then
15068 echo $ECHO_N "(cached) $ECHO_C" >&6
15069 else
15070 ac_ext=c
15071 ac_cpp='$CPP $CPPFLAGS'
15072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15076 cat >conftest.$ac_ext <<_ACEOF
15077 /* confdefs.h. */
15078 _ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h. */
15082 #include <sys/mman.h>
15083 #include <unistd.h>
15084 #include <fcntl.h>
15086 main ()
15088 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15090 return 0;
15092 _ACEOF
15093 rm -f conftest.$ac_objext
15094 if { (ac_try="$ac_compile"
15095 case "(($ac_try" in
15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15098 esac
15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100 (eval "$ac_compile") 2>conftest.er1
15101 ac_status=$?
15102 grep -v '^ *+' conftest.er1 >conftest.err
15103 rm -f conftest.er1
15104 cat conftest.err >&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } &&
15107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15108 { (case "(($ac_try" in
15109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15110 *) ac_try_echo=$ac_try;;
15111 esac
15112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15113 (eval "$ac_try") 2>&5
15114 ac_status=$?
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); }; } &&
15117 { ac_try='test -s conftest.$ac_objext'
15118 { (case "(($ac_try" in
15119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15120 *) ac_try_echo=$ac_try;;
15121 esac
15122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123 (eval "$ac_try") 2>&5
15124 ac_status=$?
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; }; then
15127 ac_cv_header_mmap_anon=yes
15128 else
15129 echo "$as_me: failed program was:" >&5
15130 sed 's/^/| /' conftest.$ac_ext >&5
15132 ac_cv_header_mmap_anon=no
15135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15136 ac_ext=c
15137 ac_cpp='$CPP $CPPFLAGS'
15138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15144 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15145 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15146 if test "$ac_cv_header_mmap_anon" = yes; then
15148 cat >>confdefs.h <<\_ACEOF
15149 #define HAVE_MMAP_ANONYMOUS 1
15150 _ACEOF
15154 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15155 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15156 if test "${ac_cv_header_stat_broken+set}" = set; then
15157 echo $ECHO_N "(cached) $ECHO_C" >&6
15158 else
15159 cat >conftest.$ac_ext <<_ACEOF
15160 /* confdefs.h. */
15161 _ACEOF
15162 cat confdefs.h >>conftest.$ac_ext
15163 cat >>conftest.$ac_ext <<_ACEOF
15164 /* end confdefs.h. */
15165 #include <sys/types.h>
15166 #include <sys/stat.h>
15168 #if defined S_ISBLK && defined S_IFDIR
15169 # if S_ISBLK (S_IFDIR)
15170 You lose.
15171 # endif
15172 #endif
15174 #if defined S_ISBLK && defined S_IFCHR
15175 # if S_ISBLK (S_IFCHR)
15176 You lose.
15177 # endif
15178 #endif
15180 #if defined S_ISLNK && defined S_IFREG
15181 # if S_ISLNK (S_IFREG)
15182 You lose.
15183 # endif
15184 #endif
15186 #if defined S_ISSOCK && defined S_IFREG
15187 # if S_ISSOCK (S_IFREG)
15188 You lose.
15189 # endif
15190 #endif
15192 _ACEOF
15193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15194 $EGREP "You lose" >/dev/null 2>&1; then
15195 ac_cv_header_stat_broken=yes
15196 else
15197 ac_cv_header_stat_broken=no
15199 rm -f conftest*
15202 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15203 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15204 if test $ac_cv_header_stat_broken = yes; then
15206 cat >>confdefs.h <<\_ACEOF
15207 #define STAT_MACROS_BROKEN 1
15208 _ACEOF
15212 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15213 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15214 if test "${ac_cv_header_stdc+set}" = set; then
15215 echo $ECHO_N "(cached) $ECHO_C" >&6
15216 else
15217 cat >conftest.$ac_ext <<_ACEOF
15218 /* confdefs.h. */
15219 _ACEOF
15220 cat confdefs.h >>conftest.$ac_ext
15221 cat >>conftest.$ac_ext <<_ACEOF
15222 /* end confdefs.h. */
15223 #include <stdlib.h>
15224 #include <stdarg.h>
15225 #include <string.h>
15226 #include <float.h>
15229 main ()
15233 return 0;
15235 _ACEOF
15236 rm -f conftest.$ac_objext
15237 if { (ac_try="$ac_compile"
15238 case "(($ac_try" in
15239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15240 *) ac_try_echo=$ac_try;;
15241 esac
15242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15243 (eval "$ac_compile") 2>conftest.er1
15244 ac_status=$?
15245 grep -v '^ *+' conftest.er1 >conftest.err
15246 rm -f conftest.er1
15247 cat conftest.err >&5
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); } &&
15250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15251 { (case "(($ac_try" in
15252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15253 *) ac_try_echo=$ac_try;;
15254 esac
15255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15256 (eval "$ac_try") 2>&5
15257 ac_status=$?
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); }; } &&
15260 { ac_try='test -s conftest.$ac_objext'
15261 { (case "(($ac_try" in
15262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15263 *) ac_try_echo=$ac_try;;
15264 esac
15265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15266 (eval "$ac_try") 2>&5
15267 ac_status=$?
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); }; }; then
15270 ac_cv_header_stdc=yes
15271 else
15272 echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15275 ac_cv_header_stdc=no
15278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15280 if test $ac_cv_header_stdc = yes; then
15281 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15282 cat >conftest.$ac_ext <<_ACEOF
15283 /* confdefs.h. */
15284 _ACEOF
15285 cat confdefs.h >>conftest.$ac_ext
15286 cat >>conftest.$ac_ext <<_ACEOF
15287 /* end confdefs.h. */
15288 #include <string.h>
15290 _ACEOF
15291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15292 $EGREP "memchr" >/dev/null 2>&1; then
15294 else
15295 ac_cv_header_stdc=no
15297 rm -f conftest*
15301 if test $ac_cv_header_stdc = yes; then
15302 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15303 cat >conftest.$ac_ext <<_ACEOF
15304 /* confdefs.h. */
15305 _ACEOF
15306 cat confdefs.h >>conftest.$ac_ext
15307 cat >>conftest.$ac_ext <<_ACEOF
15308 /* end confdefs.h. */
15309 #include <stdlib.h>
15311 _ACEOF
15312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15313 $EGREP "free" >/dev/null 2>&1; then
15315 else
15316 ac_cv_header_stdc=no
15318 rm -f conftest*
15322 if test $ac_cv_header_stdc = yes; then
15323 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15324 if test "$cross_compiling" = yes; then
15326 else
15327 cat >conftest.$ac_ext <<_ACEOF
15328 /* confdefs.h. */
15329 _ACEOF
15330 cat confdefs.h >>conftest.$ac_ext
15331 cat >>conftest.$ac_ext <<_ACEOF
15332 /* end confdefs.h. */
15333 #include <ctype.h>
15334 #include <stdlib.h>
15335 #if ((' ' & 0x0FF) == 0x020)
15336 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15337 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15338 #else
15339 # define ISLOWER(c) \
15340 (('a' <= (c) && (c) <= 'i') \
15341 || ('j' <= (c) && (c) <= 'r') \
15342 || ('s' <= (c) && (c) <= 'z'))
15343 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15344 #endif
15346 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15348 main ()
15350 int i;
15351 for (i = 0; i < 256; i++)
15352 if (XOR (islower (i), ISLOWER (i))
15353 || toupper (i) != TOUPPER (i))
15354 return 2;
15355 return 0;
15357 _ACEOF
15358 rm -f conftest$ac_exeext
15359 if { (ac_try="$ac_link"
15360 case "(($ac_try" in
15361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362 *) ac_try_echo=$ac_try;;
15363 esac
15364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15365 (eval "$ac_link") 2>&5
15366 ac_status=$?
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15369 { (case "(($ac_try" in
15370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15371 *) ac_try_echo=$ac_try;;
15372 esac
15373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15374 (eval "$ac_try") 2>&5
15375 ac_status=$?
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); }; }; then
15379 else
15380 echo "$as_me: program exited with status $ac_status" >&5
15381 echo "$as_me: failed program was:" >&5
15382 sed 's/^/| /' conftest.$ac_ext >&5
15384 ( exit $ac_status )
15385 ac_cv_header_stdc=no
15387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15393 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15394 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15395 if test $ac_cv_header_stdc = yes; then
15397 cat >>confdefs.h <<\_ACEOF
15398 #define STDC_HEADERS 1
15399 _ACEOF
15403 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15404 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15405 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15406 echo $ECHO_N "(cached) $ECHO_C" >&6
15407 else
15408 cat >conftest.$ac_ext <<_ACEOF
15409 /* confdefs.h. */
15410 _ACEOF
15411 cat confdefs.h >>conftest.$ac_ext
15412 cat >>conftest.$ac_ext <<_ACEOF
15413 /* end confdefs.h. */
15414 #include <sys/types.h>
15415 #include <sys/wait.h>
15416 #ifndef WEXITSTATUS
15417 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15418 #endif
15419 #ifndef WIFEXITED
15420 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15421 #endif
15424 main ()
15426 int s;
15427 wait (&s);
15428 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15430 return 0;
15432 _ACEOF
15433 rm -f conftest.$ac_objext
15434 if { (ac_try="$ac_compile"
15435 case "(($ac_try" in
15436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15437 *) ac_try_echo=$ac_try;;
15438 esac
15439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15440 (eval "$ac_compile") 2>conftest.er1
15441 ac_status=$?
15442 grep -v '^ *+' conftest.er1 >conftest.err
15443 rm -f conftest.er1
15444 cat conftest.err >&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); } &&
15447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15448 { (case "(($ac_try" in
15449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15450 *) ac_try_echo=$ac_try;;
15451 esac
15452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15453 (eval "$ac_try") 2>&5
15454 ac_status=$?
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; } &&
15457 { ac_try='test -s conftest.$ac_objext'
15458 { (case "(($ac_try" in
15459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15460 *) ac_try_echo=$ac_try;;
15461 esac
15462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15463 (eval "$ac_try") 2>&5
15464 ac_status=$?
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); }; }; then
15467 ac_cv_header_sys_wait_h=yes
15468 else
15469 echo "$as_me: failed program was:" >&5
15470 sed 's/^/| /' conftest.$ac_ext >&5
15472 ac_cv_header_sys_wait_h=no
15475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15477 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15478 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15479 if test $ac_cv_header_sys_wait_h = yes; then
15481 cat >>confdefs.h <<\_ACEOF
15482 #define HAVE_SYS_WAIT_H 1
15483 _ACEOF
15487 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15488 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15489 if test "${ac_cv_header_time+set}" = set; then
15490 echo $ECHO_N "(cached) $ECHO_C" >&6
15491 else
15492 cat >conftest.$ac_ext <<_ACEOF
15493 /* confdefs.h. */
15494 _ACEOF
15495 cat confdefs.h >>conftest.$ac_ext
15496 cat >>conftest.$ac_ext <<_ACEOF
15497 /* end confdefs.h. */
15498 #include <sys/types.h>
15499 #include <sys/time.h>
15500 #include <time.h>
15503 main ()
15505 if ((struct tm *) 0)
15506 return 0;
15508 return 0;
15510 _ACEOF
15511 rm -f conftest.$ac_objext
15512 if { (ac_try="$ac_compile"
15513 case "(($ac_try" in
15514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15515 *) ac_try_echo=$ac_try;;
15516 esac
15517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15518 (eval "$ac_compile") 2>conftest.er1
15519 ac_status=$?
15520 grep -v '^ *+' conftest.er1 >conftest.err
15521 rm -f conftest.er1
15522 cat conftest.err >&5
15523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); } &&
15525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15526 { (case "(($ac_try" in
15527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15528 *) ac_try_echo=$ac_try;;
15529 esac
15530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15531 (eval "$ac_try") 2>&5
15532 ac_status=$?
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); }; } &&
15535 { ac_try='test -s conftest.$ac_objext'
15536 { (case "(($ac_try" in
15537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15538 *) ac_try_echo=$ac_try;;
15539 esac
15540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15541 (eval "$ac_try") 2>&5
15542 ac_status=$?
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); }; }; then
15545 ac_cv_header_time=yes
15546 else
15547 echo "$as_me: failed program was:" >&5
15548 sed 's/^/| /' conftest.$ac_ext >&5
15550 ac_cv_header_time=no
15553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15555 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15556 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15557 if test $ac_cv_header_time = yes; then
15559 cat >>confdefs.h <<\_ACEOF
15560 #define TIME_WITH_SYS_TIME 1
15561 _ACEOF
15572 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15579 echo $ECHO_N "(cached) $ECHO_C" >&6
15581 ac_res=`eval echo '${'$as_ac_Header'}'`
15582 { echo "$as_me:$LINENO: result: $ac_res" >&5
15583 echo "${ECHO_T}$ac_res" >&6; }
15584 else
15585 # Is the header compilable?
15586 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15588 cat >conftest.$ac_ext <<_ACEOF
15589 /* confdefs.h. */
15590 _ACEOF
15591 cat confdefs.h >>conftest.$ac_ext
15592 cat >>conftest.$ac_ext <<_ACEOF
15593 /* end confdefs.h. */
15594 $ac_includes_default
15595 #include <$ac_header>
15596 _ACEOF
15597 rm -f conftest.$ac_objext
15598 if { (ac_try="$ac_compile"
15599 case "(($ac_try" in
15600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15601 *) ac_try_echo=$ac_try;;
15602 esac
15603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15604 (eval "$ac_compile") 2>conftest.er1
15605 ac_status=$?
15606 grep -v '^ *+' conftest.er1 >conftest.err
15607 rm -f conftest.er1
15608 cat conftest.err >&5
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); } &&
15611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15612 { (case "(($ac_try" in
15613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15614 *) ac_try_echo=$ac_try;;
15615 esac
15616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15617 (eval "$ac_try") 2>&5
15618 ac_status=$?
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); }; } &&
15621 { ac_try='test -s conftest.$ac_objext'
15622 { (case "(($ac_try" in
15623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15624 *) ac_try_echo=$ac_try;;
15625 esac
15626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15627 (eval "$ac_try") 2>&5
15628 ac_status=$?
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); }; }; then
15631 ac_header_compiler=yes
15632 else
15633 echo "$as_me: failed program was:" >&5
15634 sed 's/^/| /' conftest.$ac_ext >&5
15636 ac_header_compiler=no
15639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15641 echo "${ECHO_T}$ac_header_compiler" >&6; }
15643 # Is the header present?
15644 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15646 cat >conftest.$ac_ext <<_ACEOF
15647 /* confdefs.h. */
15648 _ACEOF
15649 cat confdefs.h >>conftest.$ac_ext
15650 cat >>conftest.$ac_ext <<_ACEOF
15651 /* end confdefs.h. */
15652 #include <$ac_header>
15653 _ACEOF
15654 if { (ac_try="$ac_cpp conftest.$ac_ext"
15655 case "(($ac_try" in
15656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15657 *) ac_try_echo=$ac_try;;
15658 esac
15659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15661 ac_status=$?
15662 grep -v '^ *+' conftest.er1 >conftest.err
15663 rm -f conftest.er1
15664 cat conftest.err >&5
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); } >/dev/null; then
15667 if test -s conftest.err; then
15668 ac_cpp_err=$ac_c_preproc_warn_flag
15669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15670 else
15671 ac_cpp_err=
15673 else
15674 ac_cpp_err=yes
15676 if test -z "$ac_cpp_err"; then
15677 ac_header_preproc=yes
15678 else
15679 echo "$as_me: failed program was:" >&5
15680 sed 's/^/| /' conftest.$ac_ext >&5
15682 ac_header_preproc=no
15685 rm -f conftest.err conftest.$ac_ext
15686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15687 echo "${ECHO_T}$ac_header_preproc" >&6; }
15689 # So? What about this header?
15690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15691 yes:no: )
15692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15696 ac_header_preproc=yes
15698 no:yes:* )
15699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15702 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15706 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15711 ( cat <<\_ASBOX
15712 ## ----------------------------------- ##
15713 ## Report this to llvmbugs@cs.uiuc.edu ##
15714 ## ----------------------------------- ##
15715 _ASBOX
15716 ) | sed "s/^/$as_me: WARNING: /" >&2
15718 esac
15719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15722 echo $ECHO_N "(cached) $ECHO_C" >&6
15723 else
15724 eval "$as_ac_Header=\$ac_header_preproc"
15726 ac_res=`eval echo '${'$as_ac_Header'}'`
15727 { echo "$as_me:$LINENO: result: $ac_res" >&5
15728 echo "${ECHO_T}$ac_res" >&6; }
15731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15732 cat >>confdefs.h <<_ACEOF
15733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15734 _ACEOF
15738 done
15746 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15753 echo $ECHO_N "(cached) $ECHO_C" >&6
15755 ac_res=`eval echo '${'$as_ac_Header'}'`
15756 { echo "$as_me:$LINENO: result: $ac_res" >&5
15757 echo "${ECHO_T}$ac_res" >&6; }
15758 else
15759 # Is the header compilable?
15760 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15761 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15762 cat >conftest.$ac_ext <<_ACEOF
15763 /* confdefs.h. */
15764 _ACEOF
15765 cat confdefs.h >>conftest.$ac_ext
15766 cat >>conftest.$ac_ext <<_ACEOF
15767 /* end confdefs.h. */
15768 $ac_includes_default
15769 #include <$ac_header>
15770 _ACEOF
15771 rm -f conftest.$ac_objext
15772 if { (ac_try="$ac_compile"
15773 case "(($ac_try" in
15774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15775 *) ac_try_echo=$ac_try;;
15776 esac
15777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15778 (eval "$ac_compile") 2>conftest.er1
15779 ac_status=$?
15780 grep -v '^ *+' conftest.er1 >conftest.err
15781 rm -f conftest.er1
15782 cat conftest.err >&5
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); } &&
15785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15786 { (case "(($ac_try" in
15787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15788 *) ac_try_echo=$ac_try;;
15789 esac
15790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15791 (eval "$ac_try") 2>&5
15792 ac_status=$?
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; } &&
15795 { ac_try='test -s conftest.$ac_objext'
15796 { (case "(($ac_try" in
15797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15798 *) ac_try_echo=$ac_try;;
15799 esac
15800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15801 (eval "$ac_try") 2>&5
15802 ac_status=$?
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; }; then
15805 ac_header_compiler=yes
15806 else
15807 echo "$as_me: failed program was:" >&5
15808 sed 's/^/| /' conftest.$ac_ext >&5
15810 ac_header_compiler=no
15813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15814 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15815 echo "${ECHO_T}$ac_header_compiler" >&6; }
15817 # Is the header present?
15818 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15819 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15820 cat >conftest.$ac_ext <<_ACEOF
15821 /* confdefs.h. */
15822 _ACEOF
15823 cat confdefs.h >>conftest.$ac_ext
15824 cat >>conftest.$ac_ext <<_ACEOF
15825 /* end confdefs.h. */
15826 #include <$ac_header>
15827 _ACEOF
15828 if { (ac_try="$ac_cpp conftest.$ac_ext"
15829 case "(($ac_try" in
15830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831 *) ac_try_echo=$ac_try;;
15832 esac
15833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15835 ac_status=$?
15836 grep -v '^ *+' conftest.er1 >conftest.err
15837 rm -f conftest.er1
15838 cat conftest.err >&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); } >/dev/null; then
15841 if test -s conftest.err; then
15842 ac_cpp_err=$ac_c_preproc_warn_flag
15843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15844 else
15845 ac_cpp_err=
15847 else
15848 ac_cpp_err=yes
15850 if test -z "$ac_cpp_err"; then
15851 ac_header_preproc=yes
15852 else
15853 echo "$as_me: failed program was:" >&5
15854 sed 's/^/| /' conftest.$ac_ext >&5
15856 ac_header_preproc=no
15859 rm -f conftest.err conftest.$ac_ext
15860 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15861 echo "${ECHO_T}$ac_header_preproc" >&6; }
15863 # So? What about this header?
15864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15865 yes:no: )
15866 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15867 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15869 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15870 ac_header_preproc=yes
15872 no:yes:* )
15873 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15874 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15875 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15876 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15877 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15878 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15879 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15880 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15883 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15884 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15885 ( cat <<\_ASBOX
15886 ## ----------------------------------- ##
15887 ## Report this to llvmbugs@cs.uiuc.edu ##
15888 ## ----------------------------------- ##
15889 _ASBOX
15890 ) | sed "s/^/$as_me: WARNING: /" >&2
15892 esac
15893 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15896 echo $ECHO_N "(cached) $ECHO_C" >&6
15897 else
15898 eval "$as_ac_Header=\$ac_header_preproc"
15900 ac_res=`eval echo '${'$as_ac_Header'}'`
15901 { echo "$as_me:$LINENO: result: $ac_res" >&5
15902 echo "${ECHO_T}$ac_res" >&6; }
15905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15906 cat >>confdefs.h <<_ACEOF
15907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15908 _ACEOF
15912 done
15916 for ac_header in utime.h windows.h
15918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15923 echo $ECHO_N "(cached) $ECHO_C" >&6
15925 ac_res=`eval echo '${'$as_ac_Header'}'`
15926 { echo "$as_me:$LINENO: result: $ac_res" >&5
15927 echo "${ECHO_T}$ac_res" >&6; }
15928 else
15929 # Is the header compilable?
15930 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15932 cat >conftest.$ac_ext <<_ACEOF
15933 /* confdefs.h. */
15934 _ACEOF
15935 cat confdefs.h >>conftest.$ac_ext
15936 cat >>conftest.$ac_ext <<_ACEOF
15937 /* end confdefs.h. */
15938 $ac_includes_default
15939 #include <$ac_header>
15940 _ACEOF
15941 rm -f conftest.$ac_objext
15942 if { (ac_try="$ac_compile"
15943 case "(($ac_try" in
15944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945 *) ac_try_echo=$ac_try;;
15946 esac
15947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15948 (eval "$ac_compile") 2>conftest.er1
15949 ac_status=$?
15950 grep -v '^ *+' conftest.er1 >conftest.err
15951 rm -f conftest.er1
15952 cat conftest.err >&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } &&
15955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15956 { (case "(($ac_try" in
15957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15958 *) ac_try_echo=$ac_try;;
15959 esac
15960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15961 (eval "$ac_try") 2>&5
15962 ac_status=$?
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); }; } &&
15965 { ac_try='test -s conftest.$ac_objext'
15966 { (case "(($ac_try" in
15967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15968 *) ac_try_echo=$ac_try;;
15969 esac
15970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15971 (eval "$ac_try") 2>&5
15972 ac_status=$?
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); }; }; then
15975 ac_header_compiler=yes
15976 else
15977 echo "$as_me: failed program was:" >&5
15978 sed 's/^/| /' conftest.$ac_ext >&5
15980 ac_header_compiler=no
15983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15985 echo "${ECHO_T}$ac_header_compiler" >&6; }
15987 # Is the header present?
15988 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15990 cat >conftest.$ac_ext <<_ACEOF
15991 /* confdefs.h. */
15992 _ACEOF
15993 cat confdefs.h >>conftest.$ac_ext
15994 cat >>conftest.$ac_ext <<_ACEOF
15995 /* end confdefs.h. */
15996 #include <$ac_header>
15997 _ACEOF
15998 if { (ac_try="$ac_cpp conftest.$ac_ext"
15999 case "(($ac_try" in
16000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16001 *) ac_try_echo=$ac_try;;
16002 esac
16003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16005 ac_status=$?
16006 grep -v '^ *+' conftest.er1 >conftest.err
16007 rm -f conftest.er1
16008 cat conftest.err >&5
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); } >/dev/null; then
16011 if test -s conftest.err; then
16012 ac_cpp_err=$ac_c_preproc_warn_flag
16013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16014 else
16015 ac_cpp_err=
16017 else
16018 ac_cpp_err=yes
16020 if test -z "$ac_cpp_err"; then
16021 ac_header_preproc=yes
16022 else
16023 echo "$as_me: failed program was:" >&5
16024 sed 's/^/| /' conftest.$ac_ext >&5
16026 ac_header_preproc=no
16029 rm -f conftest.err conftest.$ac_ext
16030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16031 echo "${ECHO_T}$ac_header_preproc" >&6; }
16033 # So? What about this header?
16034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16035 yes:no: )
16036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16040 ac_header_preproc=yes
16042 no:yes:* )
16043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16046 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16050 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16055 ( cat <<\_ASBOX
16056 ## ----------------------------------- ##
16057 ## Report this to llvmbugs@cs.uiuc.edu ##
16058 ## ----------------------------------- ##
16059 _ASBOX
16060 ) | sed "s/^/$as_me: WARNING: /" >&2
16062 esac
16063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16066 echo $ECHO_N "(cached) $ECHO_C" >&6
16067 else
16068 eval "$as_ac_Header=\$ac_header_preproc"
16070 ac_res=`eval echo '${'$as_ac_Header'}'`
16071 { echo "$as_me:$LINENO: result: $ac_res" >&5
16072 echo "${ECHO_T}$ac_res" >&6; }
16075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16076 cat >>confdefs.h <<_ACEOF
16077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16078 _ACEOF
16082 done
16088 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16095 echo $ECHO_N "(cached) $ECHO_C" >&6
16097 ac_res=`eval echo '${'$as_ac_Header'}'`
16098 { echo "$as_me:$LINENO: result: $ac_res" >&5
16099 echo "${ECHO_T}$ac_res" >&6; }
16100 else
16101 # Is the header compilable?
16102 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16104 cat >conftest.$ac_ext <<_ACEOF
16105 /* confdefs.h. */
16106 _ACEOF
16107 cat confdefs.h >>conftest.$ac_ext
16108 cat >>conftest.$ac_ext <<_ACEOF
16109 /* end confdefs.h. */
16110 $ac_includes_default
16111 #include <$ac_header>
16112 _ACEOF
16113 rm -f conftest.$ac_objext
16114 if { (ac_try="$ac_compile"
16115 case "(($ac_try" in
16116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16117 *) ac_try_echo=$ac_try;;
16118 esac
16119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16120 (eval "$ac_compile") 2>conftest.er1
16121 ac_status=$?
16122 grep -v '^ *+' conftest.er1 >conftest.err
16123 rm -f conftest.er1
16124 cat conftest.err >&5
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); } &&
16127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16128 { (case "(($ac_try" in
16129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16130 *) ac_try_echo=$ac_try;;
16131 esac
16132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16133 (eval "$ac_try") 2>&5
16134 ac_status=$?
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); }; } &&
16137 { ac_try='test -s conftest.$ac_objext'
16138 { (case "(($ac_try" in
16139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16140 *) ac_try_echo=$ac_try;;
16141 esac
16142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16143 (eval "$ac_try") 2>&5
16144 ac_status=$?
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); }; }; then
16147 ac_header_compiler=yes
16148 else
16149 echo "$as_me: failed program was:" >&5
16150 sed 's/^/| /' conftest.$ac_ext >&5
16152 ac_header_compiler=no
16155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16156 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16157 echo "${ECHO_T}$ac_header_compiler" >&6; }
16159 # Is the header present?
16160 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16162 cat >conftest.$ac_ext <<_ACEOF
16163 /* confdefs.h. */
16164 _ACEOF
16165 cat confdefs.h >>conftest.$ac_ext
16166 cat >>conftest.$ac_ext <<_ACEOF
16167 /* end confdefs.h. */
16168 #include <$ac_header>
16169 _ACEOF
16170 if { (ac_try="$ac_cpp conftest.$ac_ext"
16171 case "(($ac_try" in
16172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173 *) ac_try_echo=$ac_try;;
16174 esac
16175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16177 ac_status=$?
16178 grep -v '^ *+' conftest.er1 >conftest.err
16179 rm -f conftest.er1
16180 cat conftest.err >&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); } >/dev/null; then
16183 if test -s conftest.err; then
16184 ac_cpp_err=$ac_c_preproc_warn_flag
16185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16186 else
16187 ac_cpp_err=
16189 else
16190 ac_cpp_err=yes
16192 if test -z "$ac_cpp_err"; then
16193 ac_header_preproc=yes
16194 else
16195 echo "$as_me: failed program was:" >&5
16196 sed 's/^/| /' conftest.$ac_ext >&5
16198 ac_header_preproc=no
16201 rm -f conftest.err conftest.$ac_ext
16202 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16203 echo "${ECHO_T}$ac_header_preproc" >&6; }
16205 # So? What about this header?
16206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16207 yes:no: )
16208 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16209 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16211 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16212 ac_header_preproc=yes
16214 no:yes:* )
16215 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16217 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16218 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16219 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16220 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16221 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16222 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16224 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16225 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16226 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16227 ( cat <<\_ASBOX
16228 ## ----------------------------------- ##
16229 ## Report this to llvmbugs@cs.uiuc.edu ##
16230 ## ----------------------------------- ##
16231 _ASBOX
16232 ) | sed "s/^/$as_me: WARNING: /" >&2
16234 esac
16235 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16238 echo $ECHO_N "(cached) $ECHO_C" >&6
16239 else
16240 eval "$as_ac_Header=\$ac_header_preproc"
16242 ac_res=`eval echo '${'$as_ac_Header'}'`
16243 { echo "$as_me:$LINENO: result: $ac_res" >&5
16244 echo "${ECHO_T}$ac_res" >&6; }
16247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16248 cat >>confdefs.h <<_ACEOF
16249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16250 _ACEOF
16254 done
16260 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16267 echo $ECHO_N "(cached) $ECHO_C" >&6
16269 ac_res=`eval echo '${'$as_ac_Header'}'`
16270 { echo "$as_me:$LINENO: result: $ac_res" >&5
16271 echo "${ECHO_T}$ac_res" >&6; }
16272 else
16273 # Is the header compilable?
16274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16276 cat >conftest.$ac_ext <<_ACEOF
16277 /* confdefs.h. */
16278 _ACEOF
16279 cat confdefs.h >>conftest.$ac_ext
16280 cat >>conftest.$ac_ext <<_ACEOF
16281 /* end confdefs.h. */
16282 $ac_includes_default
16283 #include <$ac_header>
16284 _ACEOF
16285 rm -f conftest.$ac_objext
16286 if { (ac_try="$ac_compile"
16287 case "(($ac_try" in
16288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16289 *) ac_try_echo=$ac_try;;
16290 esac
16291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16292 (eval "$ac_compile") 2>conftest.er1
16293 ac_status=$?
16294 grep -v '^ *+' conftest.er1 >conftest.err
16295 rm -f conftest.er1
16296 cat conftest.err >&5
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); } &&
16299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16300 { (case "(($ac_try" in
16301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16302 *) ac_try_echo=$ac_try;;
16303 esac
16304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16305 (eval "$ac_try") 2>&5
16306 ac_status=$?
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); }; } &&
16309 { ac_try='test -s conftest.$ac_objext'
16310 { (case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16313 esac
16314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315 (eval "$ac_try") 2>&5
16316 ac_status=$?
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; }; then
16319 ac_header_compiler=yes
16320 else
16321 echo "$as_me: failed program was:" >&5
16322 sed 's/^/| /' conftest.$ac_ext >&5
16324 ac_header_compiler=no
16327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16329 echo "${ECHO_T}$ac_header_compiler" >&6; }
16331 # Is the header present?
16332 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16334 cat >conftest.$ac_ext <<_ACEOF
16335 /* confdefs.h. */
16336 _ACEOF
16337 cat confdefs.h >>conftest.$ac_ext
16338 cat >>conftest.$ac_ext <<_ACEOF
16339 /* end confdefs.h. */
16340 #include <$ac_header>
16341 _ACEOF
16342 if { (ac_try="$ac_cpp conftest.$ac_ext"
16343 case "(($ac_try" in
16344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16345 *) ac_try_echo=$ac_try;;
16346 esac
16347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16349 ac_status=$?
16350 grep -v '^ *+' conftest.er1 >conftest.err
16351 rm -f conftest.er1
16352 cat conftest.err >&5
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); } >/dev/null; then
16355 if test -s conftest.err; then
16356 ac_cpp_err=$ac_c_preproc_warn_flag
16357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16358 else
16359 ac_cpp_err=
16361 else
16362 ac_cpp_err=yes
16364 if test -z "$ac_cpp_err"; then
16365 ac_header_preproc=yes
16366 else
16367 echo "$as_me: failed program was:" >&5
16368 sed 's/^/| /' conftest.$ac_ext >&5
16370 ac_header_preproc=no
16373 rm -f conftest.err conftest.$ac_ext
16374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16375 echo "${ECHO_T}$ac_header_preproc" >&6; }
16377 # So? What about this header?
16378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16379 yes:no: )
16380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16384 ac_header_preproc=yes
16386 no:yes:* )
16387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16390 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16394 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16399 ( cat <<\_ASBOX
16400 ## ----------------------------------- ##
16401 ## Report this to llvmbugs@cs.uiuc.edu ##
16402 ## ----------------------------------- ##
16403 _ASBOX
16404 ) | sed "s/^/$as_me: WARNING: /" >&2
16406 esac
16407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16410 echo $ECHO_N "(cached) $ECHO_C" >&6
16411 else
16412 eval "$as_ac_Header=\$ac_header_preproc"
16414 ac_res=`eval echo '${'$as_ac_Header'}'`
16415 { echo "$as_me:$LINENO: result: $ac_res" >&5
16416 echo "${ECHO_T}$ac_res" >&6; }
16419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16420 cat >>confdefs.h <<_ACEOF
16421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16422 _ACEOF
16426 done
16429 for ac_header in valgrind/valgrind.h
16431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16436 echo $ECHO_N "(cached) $ECHO_C" >&6
16438 ac_res=`eval echo '${'$as_ac_Header'}'`
16439 { echo "$as_me:$LINENO: result: $ac_res" >&5
16440 echo "${ECHO_T}$ac_res" >&6; }
16441 else
16442 # Is the header compilable?
16443 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16445 cat >conftest.$ac_ext <<_ACEOF
16446 /* confdefs.h. */
16447 _ACEOF
16448 cat confdefs.h >>conftest.$ac_ext
16449 cat >>conftest.$ac_ext <<_ACEOF
16450 /* end confdefs.h. */
16451 $ac_includes_default
16452 #include <$ac_header>
16453 _ACEOF
16454 rm -f conftest.$ac_objext
16455 if { (ac_try="$ac_compile"
16456 case "(($ac_try" in
16457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16458 *) ac_try_echo=$ac_try;;
16459 esac
16460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16461 (eval "$ac_compile") 2>conftest.er1
16462 ac_status=$?
16463 grep -v '^ *+' conftest.er1 >conftest.err
16464 rm -f conftest.er1
16465 cat conftest.err >&5
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); } &&
16468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16469 { (case "(($ac_try" in
16470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16471 *) ac_try_echo=$ac_try;;
16472 esac
16473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16474 (eval "$ac_try") 2>&5
16475 ac_status=$?
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); }; } &&
16478 { ac_try='test -s conftest.$ac_objext'
16479 { (case "(($ac_try" in
16480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481 *) ac_try_echo=$ac_try;;
16482 esac
16483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484 (eval "$ac_try") 2>&5
16485 ac_status=$?
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); }; }; then
16488 ac_header_compiler=yes
16489 else
16490 echo "$as_me: failed program was:" >&5
16491 sed 's/^/| /' conftest.$ac_ext >&5
16493 ac_header_compiler=no
16496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16497 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16498 echo "${ECHO_T}$ac_header_compiler" >&6; }
16500 # Is the header present?
16501 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16502 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16503 cat >conftest.$ac_ext <<_ACEOF
16504 /* confdefs.h. */
16505 _ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h. */
16509 #include <$ac_header>
16510 _ACEOF
16511 if { (ac_try="$ac_cpp conftest.$ac_ext"
16512 case "(($ac_try" in
16513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16514 *) ac_try_echo=$ac_try;;
16515 esac
16516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16518 ac_status=$?
16519 grep -v '^ *+' conftest.er1 >conftest.err
16520 rm -f conftest.er1
16521 cat conftest.err >&5
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); } >/dev/null; then
16524 if test -s conftest.err; then
16525 ac_cpp_err=$ac_c_preproc_warn_flag
16526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16527 else
16528 ac_cpp_err=
16530 else
16531 ac_cpp_err=yes
16533 if test -z "$ac_cpp_err"; then
16534 ac_header_preproc=yes
16535 else
16536 echo "$as_me: failed program was:" >&5
16537 sed 's/^/| /' conftest.$ac_ext >&5
16539 ac_header_preproc=no
16542 rm -f conftest.err conftest.$ac_ext
16543 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16544 echo "${ECHO_T}$ac_header_preproc" >&6; }
16546 # So? What about this header?
16547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16548 yes:no: )
16549 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16550 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16552 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16553 ac_header_preproc=yes
16555 no:yes:* )
16556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16557 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16559 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16560 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16561 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16562 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16563 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16566 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16567 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16568 ( cat <<\_ASBOX
16569 ## ----------------------------------- ##
16570 ## Report this to llvmbugs@cs.uiuc.edu ##
16571 ## ----------------------------------- ##
16572 _ASBOX
16573 ) | sed "s/^/$as_me: WARNING: /" >&2
16575 esac
16576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16579 echo $ECHO_N "(cached) $ECHO_C" >&6
16580 else
16581 eval "$as_ac_Header=\$ac_header_preproc"
16583 ac_res=`eval echo '${'$as_ac_Header'}'`
16584 { echo "$as_me:$LINENO: result: $ac_res" >&5
16585 echo "${ECHO_T}$ac_res" >&6; }
16588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16589 cat >>confdefs.h <<_ACEOF
16590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16591 _ACEOF
16595 done
16597 if test "$ENABLE_THREADS" -eq 1 ; then
16599 for ac_header in pthread.h
16601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16606 echo $ECHO_N "(cached) $ECHO_C" >&6
16608 ac_res=`eval echo '${'$as_ac_Header'}'`
16609 { echo "$as_me:$LINENO: result: $ac_res" >&5
16610 echo "${ECHO_T}$ac_res" >&6; }
16611 else
16612 # Is the header compilable?
16613 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16615 cat >conftest.$ac_ext <<_ACEOF
16616 /* confdefs.h. */
16617 _ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h. */
16621 $ac_includes_default
16622 #include <$ac_header>
16623 _ACEOF
16624 rm -f conftest.$ac_objext
16625 if { (ac_try="$ac_compile"
16626 case "(($ac_try" in
16627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16628 *) ac_try_echo=$ac_try;;
16629 esac
16630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16631 (eval "$ac_compile") 2>conftest.er1
16632 ac_status=$?
16633 grep -v '^ *+' conftest.er1 >conftest.err
16634 rm -f conftest.er1
16635 cat conftest.err >&5
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); } &&
16638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16639 { (case "(($ac_try" in
16640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641 *) ac_try_echo=$ac_try;;
16642 esac
16643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16644 (eval "$ac_try") 2>&5
16645 ac_status=$?
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; } &&
16648 { ac_try='test -s conftest.$ac_objext'
16649 { (case "(($ac_try" in
16650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16651 *) ac_try_echo=$ac_try;;
16652 esac
16653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16654 (eval "$ac_try") 2>&5
16655 ac_status=$?
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; }; then
16658 ac_header_compiler=yes
16659 else
16660 echo "$as_me: failed program was:" >&5
16661 sed 's/^/| /' conftest.$ac_ext >&5
16663 ac_header_compiler=no
16666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16667 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16668 echo "${ECHO_T}$ac_header_compiler" >&6; }
16670 # Is the header present?
16671 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16673 cat >conftest.$ac_ext <<_ACEOF
16674 /* confdefs.h. */
16675 _ACEOF
16676 cat confdefs.h >>conftest.$ac_ext
16677 cat >>conftest.$ac_ext <<_ACEOF
16678 /* end confdefs.h. */
16679 #include <$ac_header>
16680 _ACEOF
16681 if { (ac_try="$ac_cpp conftest.$ac_ext"
16682 case "(($ac_try" in
16683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684 *) ac_try_echo=$ac_try;;
16685 esac
16686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16688 ac_status=$?
16689 grep -v '^ *+' conftest.er1 >conftest.err
16690 rm -f conftest.er1
16691 cat conftest.err >&5
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); } >/dev/null; then
16694 if test -s conftest.err; then
16695 ac_cpp_err=$ac_c_preproc_warn_flag
16696 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16697 else
16698 ac_cpp_err=
16700 else
16701 ac_cpp_err=yes
16703 if test -z "$ac_cpp_err"; then
16704 ac_header_preproc=yes
16705 else
16706 echo "$as_me: failed program was:" >&5
16707 sed 's/^/| /' conftest.$ac_ext >&5
16709 ac_header_preproc=no
16712 rm -f conftest.err conftest.$ac_ext
16713 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16714 echo "${ECHO_T}$ac_header_preproc" >&6; }
16716 # So? What about this header?
16717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16718 yes:no: )
16719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16723 ac_header_preproc=yes
16725 no:yes:* )
16726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16729 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16733 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16738 ( cat <<\_ASBOX
16739 ## ----------------------------------- ##
16740 ## Report this to llvmbugs@cs.uiuc.edu ##
16741 ## ----------------------------------- ##
16742 _ASBOX
16743 ) | sed "s/^/$as_me: WARNING: /" >&2
16745 esac
16746 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16749 echo $ECHO_N "(cached) $ECHO_C" >&6
16750 else
16751 eval "$as_ac_Header=\$ac_header_preproc"
16753 ac_res=`eval echo '${'$as_ac_Header'}'`
16754 { echo "$as_me:$LINENO: result: $ac_res" >&5
16755 echo "${ECHO_T}$ac_res" >&6; }
16758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16759 cat >>confdefs.h <<_ACEOF
16760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16761 _ACEOF
16762 HAVE_PTHREAD=1
16764 else
16765 HAVE_PTHREAD=0
16769 done
16771 else
16772 HAVE_PTHREAD=0
16776 if test "$llvm_cv_enable_libffi" = "yes" ; then
16779 for ac_header in ffi.h ffi/ffi.h
16781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16786 echo $ECHO_N "(cached) $ECHO_C" >&6
16788 ac_res=`eval echo '${'$as_ac_Header'}'`
16789 { echo "$as_me:$LINENO: result: $ac_res" >&5
16790 echo "${ECHO_T}$ac_res" >&6; }
16791 else
16792 # Is the header compilable?
16793 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16795 cat >conftest.$ac_ext <<_ACEOF
16796 /* confdefs.h. */
16797 _ACEOF
16798 cat confdefs.h >>conftest.$ac_ext
16799 cat >>conftest.$ac_ext <<_ACEOF
16800 /* end confdefs.h. */
16801 $ac_includes_default
16802 #include <$ac_header>
16803 _ACEOF
16804 rm -f conftest.$ac_objext
16805 if { (ac_try="$ac_compile"
16806 case "(($ac_try" in
16807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16808 *) ac_try_echo=$ac_try;;
16809 esac
16810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16811 (eval "$ac_compile") 2>conftest.er1
16812 ac_status=$?
16813 grep -v '^ *+' conftest.er1 >conftest.err
16814 rm -f conftest.er1
16815 cat conftest.err >&5
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); } &&
16818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16819 { (case "(($ac_try" in
16820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16821 *) ac_try_echo=$ac_try;;
16822 esac
16823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16824 (eval "$ac_try") 2>&5
16825 ac_status=$?
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); }; } &&
16828 { ac_try='test -s conftest.$ac_objext'
16829 { (case "(($ac_try" in
16830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16831 *) ac_try_echo=$ac_try;;
16832 esac
16833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16834 (eval "$ac_try") 2>&5
16835 ac_status=$?
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); }; }; then
16838 ac_header_compiler=yes
16839 else
16840 echo "$as_me: failed program was:" >&5
16841 sed 's/^/| /' conftest.$ac_ext >&5
16843 ac_header_compiler=no
16846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16848 echo "${ECHO_T}$ac_header_compiler" >&6; }
16850 # Is the header present?
16851 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16853 cat >conftest.$ac_ext <<_ACEOF
16854 /* confdefs.h. */
16855 _ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h. */
16859 #include <$ac_header>
16860 _ACEOF
16861 if { (ac_try="$ac_cpp conftest.$ac_ext"
16862 case "(($ac_try" in
16863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16864 *) ac_try_echo=$ac_try;;
16865 esac
16866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16868 ac_status=$?
16869 grep -v '^ *+' conftest.er1 >conftest.err
16870 rm -f conftest.er1
16871 cat conftest.err >&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); } >/dev/null; then
16874 if test -s conftest.err; then
16875 ac_cpp_err=$ac_c_preproc_warn_flag
16876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16877 else
16878 ac_cpp_err=
16880 else
16881 ac_cpp_err=yes
16883 if test -z "$ac_cpp_err"; then
16884 ac_header_preproc=yes
16885 else
16886 echo "$as_me: failed program was:" >&5
16887 sed 's/^/| /' conftest.$ac_ext >&5
16889 ac_header_preproc=no
16892 rm -f conftest.err conftest.$ac_ext
16893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16894 echo "${ECHO_T}$ac_header_preproc" >&6; }
16896 # So? What about this header?
16897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16898 yes:no: )
16899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16903 ac_header_preproc=yes
16905 no:yes:* )
16906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16918 ( cat <<\_ASBOX
16919 ## ----------------------------------- ##
16920 ## Report this to llvmbugs@cs.uiuc.edu ##
16921 ## ----------------------------------- ##
16922 _ASBOX
16923 ) | sed "s/^/$as_me: WARNING: /" >&2
16925 esac
16926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16929 echo $ECHO_N "(cached) $ECHO_C" >&6
16930 else
16931 eval "$as_ac_Header=\$ac_header_preproc"
16933 ac_res=`eval echo '${'$as_ac_Header'}'`
16934 { echo "$as_me:$LINENO: result: $ac_res" >&5
16935 echo "${ECHO_T}$ac_res" >&6; }
16938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16939 cat >>confdefs.h <<_ACEOF
16940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16941 _ACEOF
16945 done
16952 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16953 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16954 if test "${ac_cv_huge_val_sanity+set}" = set; then
16955 echo $ECHO_N "(cached) $ECHO_C" >&6
16956 else
16958 ac_ext=cpp
16959 ac_cpp='$CXXCPP $CPPFLAGS'
16960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16964 ac_save_CXXFLAGS=$CXXFLAGS
16965 CXXFLAGS=-pedantic
16966 if test "$cross_compiling" = yes; then
16967 ac_cv_huge_val_sanity=yes
16968 else
16969 cat >conftest.$ac_ext <<_ACEOF
16970 /* confdefs.h. */
16971 _ACEOF
16972 cat confdefs.h >>conftest.$ac_ext
16973 cat >>conftest.$ac_ext <<_ACEOF
16974 /* end confdefs.h. */
16975 #include <math.h>
16977 main ()
16979 double x = HUGE_VAL; return x != x;
16981 return 0;
16983 _ACEOF
16984 rm -f conftest$ac_exeext
16985 if { (ac_try="$ac_link"
16986 case "(($ac_try" in
16987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988 *) ac_try_echo=$ac_try;;
16989 esac
16990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16991 (eval "$ac_link") 2>&5
16992 ac_status=$?
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
17004 ac_cv_huge_val_sanity=yes
17005 else
17006 echo "$as_me: program exited with status $ac_status" >&5
17007 echo "$as_me: failed program was:" >&5
17008 sed 's/^/| /' conftest.$ac_ext >&5
17010 ( exit $ac_status )
17011 ac_cv_huge_val_sanity=no
17013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17017 CXXFLAGS=$ac_save_CXXFLAGS
17018 ac_ext=c
17019 ac_cpp='$CPP $CPPFLAGS'
17020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17026 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17027 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17028 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17031 { echo "$as_me:$LINENO: checking for pid_t" >&5
17032 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17033 if test "${ac_cv_type_pid_t+set}" = set; then
17034 echo $ECHO_N "(cached) $ECHO_C" >&6
17035 else
17036 cat >conftest.$ac_ext <<_ACEOF
17037 /* confdefs.h. */
17038 _ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h. */
17042 $ac_includes_default
17043 typedef pid_t ac__type_new_;
17045 main ()
17047 if ((ac__type_new_ *) 0)
17048 return 0;
17049 if (sizeof (ac__type_new_))
17050 return 0;
17052 return 0;
17054 _ACEOF
17055 rm -f conftest.$ac_objext
17056 if { (ac_try="$ac_compile"
17057 case "(($ac_try" in
17058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17059 *) ac_try_echo=$ac_try;;
17060 esac
17061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17062 (eval "$ac_compile") 2>conftest.er1
17063 ac_status=$?
17064 grep -v '^ *+' conftest.er1 >conftest.err
17065 rm -f conftest.er1
17066 cat conftest.err >&5
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); } &&
17069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17070 { (case "(($ac_try" in
17071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072 *) ac_try_echo=$ac_try;;
17073 esac
17074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075 (eval "$ac_try") 2>&5
17076 ac_status=$?
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; } &&
17079 { ac_try='test -s conftest.$ac_objext'
17080 { (case "(($ac_try" in
17081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082 *) ac_try_echo=$ac_try;;
17083 esac
17084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17085 (eval "$ac_try") 2>&5
17086 ac_status=$?
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); }; }; then
17089 ac_cv_type_pid_t=yes
17090 else
17091 echo "$as_me: failed program was:" >&5
17092 sed 's/^/| /' conftest.$ac_ext >&5
17094 ac_cv_type_pid_t=no
17097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17099 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17100 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17101 if test $ac_cv_type_pid_t = yes; then
17103 else
17105 cat >>confdefs.h <<_ACEOF
17106 #define pid_t int
17107 _ACEOF
17111 { echo "$as_me:$LINENO: checking for size_t" >&5
17112 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17113 if test "${ac_cv_type_size_t+set}" = set; then
17114 echo $ECHO_N "(cached) $ECHO_C" >&6
17115 else
17116 cat >conftest.$ac_ext <<_ACEOF
17117 /* confdefs.h. */
17118 _ACEOF
17119 cat confdefs.h >>conftest.$ac_ext
17120 cat >>conftest.$ac_ext <<_ACEOF
17121 /* end confdefs.h. */
17122 $ac_includes_default
17123 typedef size_t ac__type_new_;
17125 main ()
17127 if ((ac__type_new_ *) 0)
17128 return 0;
17129 if (sizeof (ac__type_new_))
17130 return 0;
17132 return 0;
17134 _ACEOF
17135 rm -f conftest.$ac_objext
17136 if { (ac_try="$ac_compile"
17137 case "(($ac_try" in
17138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139 *) ac_try_echo=$ac_try;;
17140 esac
17141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142 (eval "$ac_compile") 2>conftest.er1
17143 ac_status=$?
17144 grep -v '^ *+' conftest.er1 >conftest.err
17145 rm -f conftest.er1
17146 cat conftest.err >&5
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); } &&
17149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17150 { (case "(($ac_try" in
17151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17152 *) ac_try_echo=$ac_try;;
17153 esac
17154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17155 (eval "$ac_try") 2>&5
17156 ac_status=$?
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); }; } &&
17159 { ac_try='test -s conftest.$ac_objext'
17160 { (case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17163 esac
17164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_try") 2>&5
17166 ac_status=$?
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; }; then
17169 ac_cv_type_size_t=yes
17170 else
17171 echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17174 ac_cv_type_size_t=no
17177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17179 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17180 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17181 if test $ac_cv_type_size_t = yes; then
17183 else
17185 cat >>confdefs.h <<_ACEOF
17186 #define size_t unsigned int
17187 _ACEOF
17192 cat >>confdefs.h <<_ACEOF
17193 #define RETSIGTYPE void
17194 _ACEOF
17196 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17197 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17198 if test "${ac_cv_struct_tm+set}" = set; then
17199 echo $ECHO_N "(cached) $ECHO_C" >&6
17200 else
17201 cat >conftest.$ac_ext <<_ACEOF
17202 /* confdefs.h. */
17203 _ACEOF
17204 cat confdefs.h >>conftest.$ac_ext
17205 cat >>conftest.$ac_ext <<_ACEOF
17206 /* end confdefs.h. */
17207 #include <sys/types.h>
17208 #include <time.h>
17211 main ()
17213 struct tm *tp; tp->tm_sec;
17215 return 0;
17217 _ACEOF
17218 rm -f conftest.$ac_objext
17219 if { (ac_try="$ac_compile"
17220 case "(($ac_try" in
17221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17222 *) ac_try_echo=$ac_try;;
17223 esac
17224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17225 (eval "$ac_compile") 2>conftest.er1
17226 ac_status=$?
17227 grep -v '^ *+' conftest.er1 >conftest.err
17228 rm -f conftest.er1
17229 cat conftest.err >&5
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); } &&
17232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17233 { (case "(($ac_try" in
17234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235 *) ac_try_echo=$ac_try;;
17236 esac
17237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238 (eval "$ac_try") 2>&5
17239 ac_status=$?
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; } &&
17242 { ac_try='test -s conftest.$ac_objext'
17243 { (case "(($ac_try" in
17244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17245 *) ac_try_echo=$ac_try;;
17246 esac
17247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17248 (eval "$ac_try") 2>&5
17249 ac_status=$?
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; }; then
17252 ac_cv_struct_tm=time.h
17253 else
17254 echo "$as_me: failed program was:" >&5
17255 sed 's/^/| /' conftest.$ac_ext >&5
17257 ac_cv_struct_tm=sys/time.h
17260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17262 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17263 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17264 if test $ac_cv_struct_tm = sys/time.h; then
17266 cat >>confdefs.h <<\_ACEOF
17267 #define TM_IN_SYS_TIME 1
17268 _ACEOF
17272 { echo "$as_me:$LINENO: checking for int64_t" >&5
17273 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17274 if test "${ac_cv_type_int64_t+set}" = set; then
17275 echo $ECHO_N "(cached) $ECHO_C" >&6
17276 else
17277 cat >conftest.$ac_ext <<_ACEOF
17278 /* confdefs.h. */
17279 _ACEOF
17280 cat confdefs.h >>conftest.$ac_ext
17281 cat >>conftest.$ac_ext <<_ACEOF
17282 /* end confdefs.h. */
17283 $ac_includes_default
17284 typedef int64_t ac__type_new_;
17286 main ()
17288 if ((ac__type_new_ *) 0)
17289 return 0;
17290 if (sizeof (ac__type_new_))
17291 return 0;
17293 return 0;
17295 _ACEOF
17296 rm -f conftest.$ac_objext
17297 if { (ac_try="$ac_compile"
17298 case "(($ac_try" in
17299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17300 *) ac_try_echo=$ac_try;;
17301 esac
17302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17303 (eval "$ac_compile") 2>conftest.er1
17304 ac_status=$?
17305 grep -v '^ *+' conftest.er1 >conftest.err
17306 rm -f conftest.er1
17307 cat conftest.err >&5
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); } &&
17310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17311 { (case "(($ac_try" in
17312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17313 *) ac_try_echo=$ac_try;;
17314 esac
17315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17316 (eval "$ac_try") 2>&5
17317 ac_status=$?
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); }; } &&
17320 { ac_try='test -s conftest.$ac_objext'
17321 { (case "(($ac_try" in
17322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17323 *) ac_try_echo=$ac_try;;
17324 esac
17325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17326 (eval "$ac_try") 2>&5
17327 ac_status=$?
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; }; then
17330 ac_cv_type_int64_t=yes
17331 else
17332 echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17335 ac_cv_type_int64_t=no
17338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17340 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17341 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17342 if test $ac_cv_type_int64_t = yes; then
17344 cat >>confdefs.h <<_ACEOF
17345 #define HAVE_INT64_T 1
17346 _ACEOF
17349 else
17350 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17351 echo "$as_me: error: Type int64_t required but not found" >&2;}
17352 { (exit 1); exit 1; }; }
17355 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17356 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17357 if test "${ac_cv_type_uint64_t+set}" = set; then
17358 echo $ECHO_N "(cached) $ECHO_C" >&6
17359 else
17360 cat >conftest.$ac_ext <<_ACEOF
17361 /* confdefs.h. */
17362 _ACEOF
17363 cat confdefs.h >>conftest.$ac_ext
17364 cat >>conftest.$ac_ext <<_ACEOF
17365 /* end confdefs.h. */
17366 $ac_includes_default
17367 typedef uint64_t ac__type_new_;
17369 main ()
17371 if ((ac__type_new_ *) 0)
17372 return 0;
17373 if (sizeof (ac__type_new_))
17374 return 0;
17376 return 0;
17378 _ACEOF
17379 rm -f conftest.$ac_objext
17380 if { (ac_try="$ac_compile"
17381 case "(($ac_try" in
17382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17383 *) ac_try_echo=$ac_try;;
17384 esac
17385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17386 (eval "$ac_compile") 2>conftest.er1
17387 ac_status=$?
17388 grep -v '^ *+' conftest.er1 >conftest.err
17389 rm -f conftest.er1
17390 cat conftest.err >&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); } &&
17393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17394 { (case "(($ac_try" in
17395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396 *) ac_try_echo=$ac_try;;
17397 esac
17398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17399 (eval "$ac_try") 2>&5
17400 ac_status=$?
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); }; } &&
17403 { ac_try='test -s conftest.$ac_objext'
17404 { (case "(($ac_try" in
17405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406 *) ac_try_echo=$ac_try;;
17407 esac
17408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17409 (eval "$ac_try") 2>&5
17410 ac_status=$?
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); }; }; then
17413 ac_cv_type_uint64_t=yes
17414 else
17415 echo "$as_me: failed program was:" >&5
17416 sed 's/^/| /' conftest.$ac_ext >&5
17418 ac_cv_type_uint64_t=no
17421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17423 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17424 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17425 if test $ac_cv_type_uint64_t = yes; then
17427 cat >>confdefs.h <<_ACEOF
17428 #define HAVE_UINT64_T 1
17429 _ACEOF
17432 else
17433 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17434 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17435 if test "${ac_cv_type_u_int64_t+set}" = set; then
17436 echo $ECHO_N "(cached) $ECHO_C" >&6
17437 else
17438 cat >conftest.$ac_ext <<_ACEOF
17439 /* confdefs.h. */
17440 _ACEOF
17441 cat confdefs.h >>conftest.$ac_ext
17442 cat >>conftest.$ac_ext <<_ACEOF
17443 /* end confdefs.h. */
17444 $ac_includes_default
17445 typedef u_int64_t ac__type_new_;
17447 main ()
17449 if ((ac__type_new_ *) 0)
17450 return 0;
17451 if (sizeof (ac__type_new_))
17452 return 0;
17454 return 0;
17456 _ACEOF
17457 rm -f conftest.$ac_objext
17458 if { (ac_try="$ac_compile"
17459 case "(($ac_try" in
17460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17461 *) ac_try_echo=$ac_try;;
17462 esac
17463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17464 (eval "$ac_compile") 2>conftest.er1
17465 ac_status=$?
17466 grep -v '^ *+' conftest.er1 >conftest.err
17467 rm -f conftest.er1
17468 cat conftest.err >&5
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); } &&
17471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17472 { (case "(($ac_try" in
17473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17474 *) ac_try_echo=$ac_try;;
17475 esac
17476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17477 (eval "$ac_try") 2>&5
17478 ac_status=$?
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; } &&
17481 { ac_try='test -s conftest.$ac_objext'
17482 { (case "(($ac_try" in
17483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484 *) ac_try_echo=$ac_try;;
17485 esac
17486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487 (eval "$ac_try") 2>&5
17488 ac_status=$?
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; }; then
17491 ac_cv_type_u_int64_t=yes
17492 else
17493 echo "$as_me: failed program was:" >&5
17494 sed 's/^/| /' conftest.$ac_ext >&5
17496 ac_cv_type_u_int64_t=no
17499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17501 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17502 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17503 if test $ac_cv_type_u_int64_t = yes; then
17505 cat >>confdefs.h <<_ACEOF
17506 #define HAVE_U_INT64_T 1
17507 _ACEOF
17510 else
17511 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17512 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17513 { (exit 1); exit 1; }; }
17527 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17530 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17532 if { as_var=$as_ac_var; eval "test \"\${$as_var+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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17543 #define $ac_func innocuous_$ac_func
17545 /* System header to define __stub macros and hopefully few prototypes,
17546 which can conflict with char $ac_func (); below.
17547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17548 <limits.h> exists even on freestanding compilers. */
17550 #ifdef __STDC__
17551 # include <limits.h>
17552 #else
17553 # include <assert.h>
17554 #endif
17556 #undef $ac_func
17558 /* Override any GCC internal prototype to avoid an error.
17559 Use char because int might match the return type of a GCC
17560 builtin and then its argument prototype would still apply. */
17561 #ifdef __cplusplus
17562 extern "C"
17563 #endif
17564 char $ac_func ();
17565 /* The GNU C library defines this for functions which it implements
17566 to always fail with ENOSYS. Some functions are actually named
17567 something starting with __ and the normal name is an alias. */
17568 #if defined __stub_$ac_func || defined __stub___$ac_func
17569 choke me
17570 #endif
17573 main ()
17575 return $ac_func ();
17577 return 0;
17579 _ACEOF
17580 rm -f conftest.$ac_objext conftest$ac_exeext
17581 if { (ac_try="$ac_link"
17582 case "(($ac_try" in
17583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584 *) ac_try_echo=$ac_try;;
17585 esac
17586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17587 (eval "$ac_link") 2>conftest.er1
17588 ac_status=$?
17589 grep -v '^ *+' conftest.er1 >conftest.err
17590 rm -f conftest.er1
17591 cat conftest.err >&5
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); } &&
17594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17595 { (case "(($ac_try" in
17596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17597 *) ac_try_echo=$ac_try;;
17598 esac
17599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17600 (eval "$ac_try") 2>&5
17601 ac_status=$?
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); }; } &&
17604 { ac_try='test -s conftest$ac_exeext'
17605 { (case "(($ac_try" in
17606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17607 *) ac_try_echo=$ac_try;;
17608 esac
17609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17610 (eval "$ac_try") 2>&5
17611 ac_status=$?
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); }; }; then
17614 eval "$as_ac_var=yes"
17615 else
17616 echo "$as_me: failed program was:" >&5
17617 sed 's/^/| /' conftest.$ac_ext >&5
17619 eval "$as_ac_var=no"
17622 rm -f core conftest.err conftest.$ac_objext \
17623 conftest$ac_exeext conftest.$ac_ext
17625 ac_res=`eval echo '${'$as_ac_var'}'`
17626 { echo "$as_me:$LINENO: result: $ac_res" >&5
17627 echo "${ECHO_T}$ac_res" >&6; }
17628 if test `eval echo '${'$as_ac_var'}'` = yes; then
17629 cat >>confdefs.h <<_ACEOF
17630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17631 _ACEOF
17634 done
17640 for ac_func in powf fmodf strtof round
17642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17643 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17645 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17646 echo $ECHO_N "(cached) $ECHO_C" >&6
17647 else
17648 cat >conftest.$ac_ext <<_ACEOF
17649 /* confdefs.h. */
17650 _ACEOF
17651 cat confdefs.h >>conftest.$ac_ext
17652 cat >>conftest.$ac_ext <<_ACEOF
17653 /* end confdefs.h. */
17654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17656 #define $ac_func innocuous_$ac_func
17658 /* System header to define __stub macros and hopefully few prototypes,
17659 which can conflict with char $ac_func (); below.
17660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17661 <limits.h> exists even on freestanding compilers. */
17663 #ifdef __STDC__
17664 # include <limits.h>
17665 #else
17666 # include <assert.h>
17667 #endif
17669 #undef $ac_func
17671 /* Override any GCC internal prototype to avoid an error.
17672 Use char because int might match the return type of a GCC
17673 builtin and then its argument prototype would still apply. */
17674 #ifdef __cplusplus
17675 extern "C"
17676 #endif
17677 char $ac_func ();
17678 /* The GNU C library defines this for functions which it implements
17679 to always fail with ENOSYS. Some functions are actually named
17680 something starting with __ and the normal name is an alias. */
17681 #if defined __stub_$ac_func || defined __stub___$ac_func
17682 choke me
17683 #endif
17686 main ()
17688 return $ac_func ();
17690 return 0;
17692 _ACEOF
17693 rm -f conftest.$ac_objext conftest$ac_exeext
17694 if { (ac_try="$ac_link"
17695 case "(($ac_try" in
17696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17697 *) ac_try_echo=$ac_try;;
17698 esac
17699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17700 (eval "$ac_link") 2>conftest.er1
17701 ac_status=$?
17702 grep -v '^ *+' conftest.er1 >conftest.err
17703 rm -f conftest.er1
17704 cat conftest.err >&5
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); } &&
17707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17708 { (case "(($ac_try" in
17709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17710 *) ac_try_echo=$ac_try;;
17711 esac
17712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17713 (eval "$ac_try") 2>&5
17714 ac_status=$?
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); }; } &&
17717 { ac_try='test -s conftest$ac_exeext'
17718 { (case "(($ac_try" in
17719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17720 *) ac_try_echo=$ac_try;;
17721 esac
17722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17723 (eval "$ac_try") 2>&5
17724 ac_status=$?
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); }; }; then
17727 eval "$as_ac_var=yes"
17728 else
17729 echo "$as_me: failed program was:" >&5
17730 sed 's/^/| /' conftest.$ac_ext >&5
17732 eval "$as_ac_var=no"
17735 rm -f core conftest.err conftest.$ac_objext \
17736 conftest$ac_exeext conftest.$ac_ext
17738 ac_res=`eval echo '${'$as_ac_var'}'`
17739 { echo "$as_me:$LINENO: result: $ac_res" >&5
17740 echo "${ECHO_T}$ac_res" >&6; }
17741 if test `eval echo '${'$as_ac_var'}'` = yes; then
17742 cat >>confdefs.h <<_ACEOF
17743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17744 _ACEOF
17747 done
17754 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17757 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17759 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17760 echo $ECHO_N "(cached) $ECHO_C" >&6
17761 else
17762 cat >conftest.$ac_ext <<_ACEOF
17763 /* confdefs.h. */
17764 _ACEOF
17765 cat confdefs.h >>conftest.$ac_ext
17766 cat >>conftest.$ac_ext <<_ACEOF
17767 /* end confdefs.h. */
17768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17770 #define $ac_func innocuous_$ac_func
17772 /* System header to define __stub macros and hopefully few prototypes,
17773 which can conflict with char $ac_func (); below.
17774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17775 <limits.h> exists even on freestanding compilers. */
17777 #ifdef __STDC__
17778 # include <limits.h>
17779 #else
17780 # include <assert.h>
17781 #endif
17783 #undef $ac_func
17785 /* Override any GCC internal prototype to avoid an error.
17786 Use char because int might match the return type of a GCC
17787 builtin and then its argument prototype would still apply. */
17788 #ifdef __cplusplus
17789 extern "C"
17790 #endif
17791 char $ac_func ();
17792 /* The GNU C library defines this for functions which it implements
17793 to always fail with ENOSYS. Some functions are actually named
17794 something starting with __ and the normal name is an alias. */
17795 #if defined __stub_$ac_func || defined __stub___$ac_func
17796 choke me
17797 #endif
17800 main ()
17802 return $ac_func ();
17804 return 0;
17806 _ACEOF
17807 rm -f conftest.$ac_objext conftest$ac_exeext
17808 if { (ac_try="$ac_link"
17809 case "(($ac_try" in
17810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17811 *) ac_try_echo=$ac_try;;
17812 esac
17813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17814 (eval "$ac_link") 2>conftest.er1
17815 ac_status=$?
17816 grep -v '^ *+' conftest.er1 >conftest.err
17817 rm -f conftest.er1
17818 cat conftest.err >&5
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); } &&
17821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17822 { (case "(($ac_try" in
17823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17824 *) ac_try_echo=$ac_try;;
17825 esac
17826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17827 (eval "$ac_try") 2>&5
17828 ac_status=$?
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); }; } &&
17831 { ac_try='test -s conftest$ac_exeext'
17832 { (case "(($ac_try" in
17833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17834 *) ac_try_echo=$ac_try;;
17835 esac
17836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17837 (eval "$ac_try") 2>&5
17838 ac_status=$?
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; }; then
17841 eval "$as_ac_var=yes"
17842 else
17843 echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17846 eval "$as_ac_var=no"
17849 rm -f core conftest.err conftest.$ac_objext \
17850 conftest$ac_exeext conftest.$ac_ext
17852 ac_res=`eval echo '${'$as_ac_var'}'`
17853 { echo "$as_me:$LINENO: result: $ac_res" >&5
17854 echo "${ECHO_T}$ac_res" >&6; }
17855 if test `eval echo '${'$as_ac_var'}'` = yes; then
17856 cat >>confdefs.h <<_ACEOF
17857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17858 _ACEOF
17861 done
17866 for ac_func in isatty mkdtemp mkstemp
17868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17869 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17871 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17872 echo $ECHO_N "(cached) $ECHO_C" >&6
17873 else
17874 cat >conftest.$ac_ext <<_ACEOF
17875 /* confdefs.h. */
17876 _ACEOF
17877 cat confdefs.h >>conftest.$ac_ext
17878 cat >>conftest.$ac_ext <<_ACEOF
17879 /* end confdefs.h. */
17880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17882 #define $ac_func innocuous_$ac_func
17884 /* System header to define __stub macros and hopefully few prototypes,
17885 which can conflict with char $ac_func (); below.
17886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17887 <limits.h> exists even on freestanding compilers. */
17889 #ifdef __STDC__
17890 # include <limits.h>
17891 #else
17892 # include <assert.h>
17893 #endif
17895 #undef $ac_func
17897 /* Override any GCC internal prototype to avoid an error.
17898 Use char because int might match the return type of a GCC
17899 builtin and then its argument prototype would still apply. */
17900 #ifdef __cplusplus
17901 extern "C"
17902 #endif
17903 char $ac_func ();
17904 /* The GNU C library defines this for functions which it implements
17905 to always fail with ENOSYS. Some functions are actually named
17906 something starting with __ and the normal name is an alias. */
17907 #if defined __stub_$ac_func || defined __stub___$ac_func
17908 choke me
17909 #endif
17912 main ()
17914 return $ac_func ();
17916 return 0;
17918 _ACEOF
17919 rm -f conftest.$ac_objext conftest$ac_exeext
17920 if { (ac_try="$ac_link"
17921 case "(($ac_try" in
17922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17923 *) ac_try_echo=$ac_try;;
17924 esac
17925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17926 (eval "$ac_link") 2>conftest.er1
17927 ac_status=$?
17928 grep -v '^ *+' conftest.er1 >conftest.err
17929 rm -f conftest.er1
17930 cat conftest.err >&5
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); } &&
17933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17934 { (case "(($ac_try" in
17935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17936 *) ac_try_echo=$ac_try;;
17937 esac
17938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17939 (eval "$ac_try") 2>&5
17940 ac_status=$?
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); }; } &&
17943 { ac_try='test -s conftest$ac_exeext'
17944 { (case "(($ac_try" in
17945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17946 *) ac_try_echo=$ac_try;;
17947 esac
17948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17949 (eval "$ac_try") 2>&5
17950 ac_status=$?
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; }; then
17953 eval "$as_ac_var=yes"
17954 else
17955 echo "$as_me: failed program was:" >&5
17956 sed 's/^/| /' conftest.$ac_ext >&5
17958 eval "$as_ac_var=no"
17961 rm -f core conftest.err conftest.$ac_objext \
17962 conftest$ac_exeext conftest.$ac_ext
17964 ac_res=`eval echo '${'$as_ac_var'}'`
17965 { echo "$as_me:$LINENO: result: $ac_res" >&5
17966 echo "${ECHO_T}$ac_res" >&6; }
17967 if test `eval echo '${'$as_ac_var'}'` = yes; then
17968 cat >>confdefs.h <<_ACEOF
17969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17970 _ACEOF
17973 done
17981 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17984 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17986 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17987 echo $ECHO_N "(cached) $ECHO_C" >&6
17988 else
17989 cat >conftest.$ac_ext <<_ACEOF
17990 /* confdefs.h. */
17991 _ACEOF
17992 cat confdefs.h >>conftest.$ac_ext
17993 cat >>conftest.$ac_ext <<_ACEOF
17994 /* end confdefs.h. */
17995 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17997 #define $ac_func innocuous_$ac_func
17999 /* System header to define __stub macros and hopefully few prototypes,
18000 which can conflict with char $ac_func (); below.
18001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18002 <limits.h> exists even on freestanding compilers. */
18004 #ifdef __STDC__
18005 # include <limits.h>
18006 #else
18007 # include <assert.h>
18008 #endif
18010 #undef $ac_func
18012 /* Override any GCC internal prototype to avoid an error.
18013 Use char because int might match the return type of a GCC
18014 builtin and then its argument prototype would still apply. */
18015 #ifdef __cplusplus
18016 extern "C"
18017 #endif
18018 char $ac_func ();
18019 /* The GNU C library defines this for functions which it implements
18020 to always fail with ENOSYS. Some functions are actually named
18021 something starting with __ and the normal name is an alias. */
18022 #if defined __stub_$ac_func || defined __stub___$ac_func
18023 choke me
18024 #endif
18027 main ()
18029 return $ac_func ();
18031 return 0;
18033 _ACEOF
18034 rm -f conftest.$ac_objext conftest$ac_exeext
18035 if { (ac_try="$ac_link"
18036 case "(($ac_try" in
18037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18038 *) ac_try_echo=$ac_try;;
18039 esac
18040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18041 (eval "$ac_link") 2>conftest.er1
18042 ac_status=$?
18043 grep -v '^ *+' conftest.er1 >conftest.err
18044 rm -f conftest.er1
18045 cat conftest.err >&5
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); } &&
18048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18049 { (case "(($ac_try" in
18050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18051 *) ac_try_echo=$ac_try;;
18052 esac
18053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18054 (eval "$ac_try") 2>&5
18055 ac_status=$?
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); }; } &&
18058 { ac_try='test -s conftest$ac_exeext'
18059 { (case "(($ac_try" in
18060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18061 *) ac_try_echo=$ac_try;;
18062 esac
18063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18064 (eval "$ac_try") 2>&5
18065 ac_status=$?
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); }; }; then
18068 eval "$as_ac_var=yes"
18069 else
18070 echo "$as_me: failed program was:" >&5
18071 sed 's/^/| /' conftest.$ac_ext >&5
18073 eval "$as_ac_var=no"
18076 rm -f core conftest.err conftest.$ac_objext \
18077 conftest$ac_exeext conftest.$ac_ext
18079 ac_res=`eval echo '${'$as_ac_var'}'`
18080 { echo "$as_me:$LINENO: result: $ac_res" >&5
18081 echo "${ECHO_T}$ac_res" >&6; }
18082 if test `eval echo '${'$as_ac_var'}'` = yes; then
18083 cat >>confdefs.h <<_ACEOF
18084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18085 _ACEOF
18088 done
18094 for ac_func in strerror strerror_r strerror_s setenv
18096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18097 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18099 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18100 echo $ECHO_N "(cached) $ECHO_C" >&6
18101 else
18102 cat >conftest.$ac_ext <<_ACEOF
18103 /* confdefs.h. */
18104 _ACEOF
18105 cat confdefs.h >>conftest.$ac_ext
18106 cat >>conftest.$ac_ext <<_ACEOF
18107 /* end confdefs.h. */
18108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18110 #define $ac_func innocuous_$ac_func
18112 /* System header to define __stub macros and hopefully few prototypes,
18113 which can conflict with char $ac_func (); below.
18114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18115 <limits.h> exists even on freestanding compilers. */
18117 #ifdef __STDC__
18118 # include <limits.h>
18119 #else
18120 # include <assert.h>
18121 #endif
18123 #undef $ac_func
18125 /* Override any GCC internal prototype to avoid an error.
18126 Use char because int might match the return type of a GCC
18127 builtin and then its argument prototype would still apply. */
18128 #ifdef __cplusplus
18129 extern "C"
18130 #endif
18131 char $ac_func ();
18132 /* The GNU C library defines this for functions which it implements
18133 to always fail with ENOSYS. Some functions are actually named
18134 something starting with __ and the normal name is an alias. */
18135 #if defined __stub_$ac_func || defined __stub___$ac_func
18136 choke me
18137 #endif
18140 main ()
18142 return $ac_func ();
18144 return 0;
18146 _ACEOF
18147 rm -f conftest.$ac_objext conftest$ac_exeext
18148 if { (ac_try="$ac_link"
18149 case "(($ac_try" in
18150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18151 *) ac_try_echo=$ac_try;;
18152 esac
18153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18154 (eval "$ac_link") 2>conftest.er1
18155 ac_status=$?
18156 grep -v '^ *+' conftest.er1 >conftest.err
18157 rm -f conftest.er1
18158 cat conftest.err >&5
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); } &&
18161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18162 { (case "(($ac_try" in
18163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18164 *) ac_try_echo=$ac_try;;
18165 esac
18166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18167 (eval "$ac_try") 2>&5
18168 ac_status=$?
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; } &&
18171 { ac_try='test -s conftest$ac_exeext'
18172 { (case "(($ac_try" in
18173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18174 *) ac_try_echo=$ac_try;;
18175 esac
18176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18177 (eval "$ac_try") 2>&5
18178 ac_status=$?
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); }; }; then
18181 eval "$as_ac_var=yes"
18182 else
18183 echo "$as_me: failed program was:" >&5
18184 sed 's/^/| /' conftest.$ac_ext >&5
18186 eval "$as_ac_var=no"
18189 rm -f core conftest.err conftest.$ac_objext \
18190 conftest$ac_exeext conftest.$ac_ext
18192 ac_res=`eval echo '${'$as_ac_var'}'`
18193 { echo "$as_me:$LINENO: result: $ac_res" >&5
18194 echo "${ECHO_T}$ac_res" >&6; }
18195 if test `eval echo '${'$as_ac_var'}'` = yes; then
18196 cat >>confdefs.h <<_ACEOF
18197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18198 _ACEOF
18201 done
18207 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18210 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18212 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18213 echo $ECHO_N "(cached) $ECHO_C" >&6
18214 else
18215 cat >conftest.$ac_ext <<_ACEOF
18216 /* confdefs.h. */
18217 _ACEOF
18218 cat confdefs.h >>conftest.$ac_ext
18219 cat >>conftest.$ac_ext <<_ACEOF
18220 /* end confdefs.h. */
18221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18223 #define $ac_func innocuous_$ac_func
18225 /* System header to define __stub macros and hopefully few prototypes,
18226 which can conflict with char $ac_func (); below.
18227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18228 <limits.h> exists even on freestanding compilers. */
18230 #ifdef __STDC__
18231 # include <limits.h>
18232 #else
18233 # include <assert.h>
18234 #endif
18236 #undef $ac_func
18238 /* Override any GCC internal prototype to avoid an error.
18239 Use char because int might match the return type of a GCC
18240 builtin and then its argument prototype would still apply. */
18241 #ifdef __cplusplus
18242 extern "C"
18243 #endif
18244 char $ac_func ();
18245 /* The GNU C library defines this for functions which it implements
18246 to always fail with ENOSYS. Some functions are actually named
18247 something starting with __ and the normal name is an alias. */
18248 #if defined __stub_$ac_func || defined __stub___$ac_func
18249 choke me
18250 #endif
18253 main ()
18255 return $ac_func ();
18257 return 0;
18259 _ACEOF
18260 rm -f conftest.$ac_objext conftest$ac_exeext
18261 if { (ac_try="$ac_link"
18262 case "(($ac_try" in
18263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264 *) ac_try_echo=$ac_try;;
18265 esac
18266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267 (eval "$ac_link") 2>conftest.er1
18268 ac_status=$?
18269 grep -v '^ *+' conftest.er1 >conftest.err
18270 rm -f conftest.er1
18271 cat conftest.err >&5
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); } &&
18274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18275 { (case "(($ac_try" in
18276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277 *) ac_try_echo=$ac_try;;
18278 esac
18279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280 (eval "$ac_try") 2>&5
18281 ac_status=$?
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; } &&
18284 { ac_try='test -s conftest$ac_exeext'
18285 { (case "(($ac_try" in
18286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287 *) ac_try_echo=$ac_try;;
18288 esac
18289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18290 (eval "$ac_try") 2>&5
18291 ac_status=$?
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; }; then
18294 eval "$as_ac_var=yes"
18295 else
18296 echo "$as_me: failed program was:" >&5
18297 sed 's/^/| /' conftest.$ac_ext >&5
18299 eval "$as_ac_var=no"
18302 rm -f core conftest.err conftest.$ac_objext \
18303 conftest$ac_exeext conftest.$ac_ext
18305 ac_res=`eval echo '${'$as_ac_var'}'`
18306 { echo "$as_me:$LINENO: result: $ac_res" >&5
18307 echo "${ECHO_T}$ac_res" >&6; }
18308 if test `eval echo '${'$as_ac_var'}'` = yes; then
18309 cat >>confdefs.h <<_ACEOF
18310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18311 _ACEOF
18314 done
18320 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18323 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18325 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18326 echo $ECHO_N "(cached) $ECHO_C" >&6
18327 else
18328 cat >conftest.$ac_ext <<_ACEOF
18329 /* confdefs.h. */
18330 _ACEOF
18331 cat confdefs.h >>conftest.$ac_ext
18332 cat >>conftest.$ac_ext <<_ACEOF
18333 /* end confdefs.h. */
18334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18336 #define $ac_func innocuous_$ac_func
18338 /* System header to define __stub macros and hopefully few prototypes,
18339 which can conflict with char $ac_func (); below.
18340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18341 <limits.h> exists even on freestanding compilers. */
18343 #ifdef __STDC__
18344 # include <limits.h>
18345 #else
18346 # include <assert.h>
18347 #endif
18349 #undef $ac_func
18351 /* Override any GCC internal prototype to avoid an error.
18352 Use char because int might match the return type of a GCC
18353 builtin and then its argument prototype would still apply. */
18354 #ifdef __cplusplus
18355 extern "C"
18356 #endif
18357 char $ac_func ();
18358 /* The GNU C library defines this for functions which it implements
18359 to always fail with ENOSYS. Some functions are actually named
18360 something starting with __ and the normal name is an alias. */
18361 #if defined __stub_$ac_func || defined __stub___$ac_func
18362 choke me
18363 #endif
18366 main ()
18368 return $ac_func ();
18370 return 0;
18372 _ACEOF
18373 rm -f conftest.$ac_objext conftest$ac_exeext
18374 if { (ac_try="$ac_link"
18375 case "(($ac_try" in
18376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18378 esac
18379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380 (eval "$ac_link") 2>conftest.er1
18381 ac_status=$?
18382 grep -v '^ *+' conftest.er1 >conftest.err
18383 rm -f conftest.er1
18384 cat conftest.err >&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); } &&
18387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18388 { (case "(($ac_try" in
18389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18390 *) ac_try_echo=$ac_try;;
18391 esac
18392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18393 (eval "$ac_try") 2>&5
18394 ac_status=$?
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; } &&
18397 { ac_try='test -s conftest$ac_exeext'
18398 { (case "(($ac_try" in
18399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18400 *) ac_try_echo=$ac_try;;
18401 esac
18402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18403 (eval "$ac_try") 2>&5
18404 ac_status=$?
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); }; }; then
18407 eval "$as_ac_var=yes"
18408 else
18409 echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18412 eval "$as_ac_var=no"
18415 rm -f core conftest.err conftest.$ac_objext \
18416 conftest$ac_exeext conftest.$ac_ext
18418 ac_res=`eval echo '${'$as_ac_var'}'`
18419 { echo "$as_me:$LINENO: result: $ac_res" >&5
18420 echo "${ECHO_T}$ac_res" >&6; }
18421 if test `eval echo '${'$as_ac_var'}'` = yes; then
18422 cat >>confdefs.h <<_ACEOF
18423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18424 _ACEOF
18427 done
18429 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18430 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18431 if test "${llvm_cv_c_printf_a+set}" = set; then
18432 echo $ECHO_N "(cached) $ECHO_C" >&6
18433 else
18434 ac_ext=c
18435 ac_cpp='$CPP $CPPFLAGS'
18436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18440 if test "$cross_compiling" = yes; then
18441 llvmac_cv_c_printf_a=no
18442 else
18443 cat >conftest.$ac_ext <<_ACEOF
18445 /* confdefs.h. */
18446 _ACEOF
18447 cat confdefs.h >>conftest.$ac_ext
18448 cat >>conftest.$ac_ext <<_ACEOF
18449 /* end confdefs.h. */
18451 #include <stdio.h>
18452 #include <stdlib.h>
18455 main ()
18458 volatile double A, B;
18459 char Buffer[100];
18460 A = 1;
18461 A /= 10.0;
18462 sprintf(Buffer, "%a", A);
18463 B = atof(Buffer);
18464 if (A != B)
18465 return (1);
18466 if (A != 0x1.999999999999ap-4)
18467 return (1);
18468 return (0);
18470 return 0;
18472 _ACEOF
18473 rm -f conftest$ac_exeext
18474 if { (ac_try="$ac_link"
18475 case "(($ac_try" in
18476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18477 *) ac_try_echo=$ac_try;;
18478 esac
18479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18480 (eval "$ac_link") 2>&5
18481 ac_status=$?
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18484 { (case "(($ac_try" in
18485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18486 *) ac_try_echo=$ac_try;;
18487 esac
18488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18489 (eval "$ac_try") 2>&5
18490 ac_status=$?
18491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); }; }; then
18493 llvm_cv_c_printf_a=yes
18494 else
18495 echo "$as_me: program exited with status $ac_status" >&5
18496 echo "$as_me: failed program was:" >&5
18497 sed 's/^/| /' conftest.$ac_ext >&5
18499 ( exit $ac_status )
18500 llvmac_cv_c_printf_a=no
18502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18506 ac_ext=c
18507 ac_cpp='$CPP $CPPFLAGS'
18508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18513 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18514 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18515 if test "$llvm_cv_c_printf_a" = "yes"; then
18517 cat >>confdefs.h <<\_ACEOF
18518 #define HAVE_PRINTF_A 1
18519 _ACEOF
18524 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18525 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18526 if test "${ac_cv_func_rand48+set}" = set; then
18527 echo $ECHO_N "(cached) $ECHO_C" >&6
18528 else
18529 ac_ext=cpp
18530 ac_cpp='$CXXCPP $CPPFLAGS'
18531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18535 cat >conftest.$ac_ext <<_ACEOF
18536 /* confdefs.h. */
18537 _ACEOF
18538 cat confdefs.h >>conftest.$ac_ext
18539 cat >>conftest.$ac_ext <<_ACEOF
18540 /* end confdefs.h. */
18541 #include <stdlib.h>
18543 main ()
18545 srand48(0);lrand48();drand48();
18547 return 0;
18549 _ACEOF
18550 rm -f conftest.$ac_objext
18551 if { (ac_try="$ac_compile"
18552 case "(($ac_try" in
18553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18554 *) ac_try_echo=$ac_try;;
18555 esac
18556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18557 (eval "$ac_compile") 2>conftest.er1
18558 ac_status=$?
18559 grep -v '^ *+' conftest.er1 >conftest.err
18560 rm -f conftest.er1
18561 cat conftest.err >&5
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); } &&
18564 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18565 { (case "(($ac_try" in
18566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18567 *) ac_try_echo=$ac_try;;
18568 esac
18569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18570 (eval "$ac_try") 2>&5
18571 ac_status=$?
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); }; } &&
18574 { ac_try='test -s conftest.$ac_objext'
18575 { (case "(($ac_try" in
18576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18577 *) ac_try_echo=$ac_try;;
18578 esac
18579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18580 (eval "$ac_try") 2>&5
18581 ac_status=$?
18582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583 (exit $ac_status); }; }; then
18584 ac_cv_func_rand48=yes
18585 else
18586 echo "$as_me: failed program was:" >&5
18587 sed 's/^/| /' conftest.$ac_ext >&5
18589 ac_cv_func_rand48=no
18592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18593 ac_ext=c
18594 ac_cpp='$CPP $CPPFLAGS'
18595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18600 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18601 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18603 if test "$ac_cv_func_rand48" = "yes" ; then
18605 cat >>confdefs.h <<\_ACEOF
18606 #define HAVE_RAND48 1
18607 _ACEOF
18613 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18614 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18615 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18616 echo $ECHO_N "(cached) $ECHO_C" >&6
18617 else
18618 ac_ext=cpp
18619 ac_cpp='$CXXCPP $CPPFLAGS'
18620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18624 cat >conftest.$ac_ext <<_ACEOF
18625 /* confdefs.h. */
18626 _ACEOF
18627 cat confdefs.h >>conftest.$ac_ext
18628 cat >>conftest.$ac_ext <<_ACEOF
18629 /* end confdefs.h. */
18630 #include <math.h>
18632 main ()
18634 float f; isnan(f);
18636 return 0;
18638 _ACEOF
18639 rm -f conftest.$ac_objext
18640 if { (ac_try="$ac_compile"
18641 case "(($ac_try" in
18642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18643 *) ac_try_echo=$ac_try;;
18644 esac
18645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18646 (eval "$ac_compile") 2>conftest.er1
18647 ac_status=$?
18648 grep -v '^ *+' conftest.er1 >conftest.err
18649 rm -f conftest.er1
18650 cat conftest.err >&5
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); } &&
18653 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18654 { (case "(($ac_try" in
18655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18656 *) ac_try_echo=$ac_try;;
18657 esac
18658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18659 (eval "$ac_try") 2>&5
18660 ac_status=$?
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); }; } &&
18663 { ac_try='test -s conftest.$ac_objext'
18664 { (case "(($ac_try" in
18665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18666 *) ac_try_echo=$ac_try;;
18667 esac
18668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18669 (eval "$ac_try") 2>&5
18670 ac_status=$?
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); }; }; then
18673 ac_cv_func_isnan_in_math_h=yes
18674 else
18675 echo "$as_me: failed program was:" >&5
18676 sed 's/^/| /' conftest.$ac_ext >&5
18678 ac_cv_func_isnan_in_math_h=no
18681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18682 ac_ext=c
18683 ac_cpp='$CPP $CPPFLAGS'
18684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18689 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18690 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18693 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18695 cat >>confdefs.h <<\_ACEOF
18696 #define HAVE_ISNAN_IN_MATH_H 1
18697 _ACEOF
18701 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18702 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18703 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18704 echo $ECHO_N "(cached) $ECHO_C" >&6
18705 else
18706 ac_ext=cpp
18707 ac_cpp='$CXXCPP $CPPFLAGS'
18708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18712 cat >conftest.$ac_ext <<_ACEOF
18713 /* confdefs.h. */
18714 _ACEOF
18715 cat confdefs.h >>conftest.$ac_ext
18716 cat >>conftest.$ac_ext <<_ACEOF
18717 /* end confdefs.h. */
18718 #include <cmath>
18720 main ()
18722 float f; isnan(f);
18724 return 0;
18726 _ACEOF
18727 rm -f conftest.$ac_objext
18728 if { (ac_try="$ac_compile"
18729 case "(($ac_try" in
18730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18731 *) ac_try_echo=$ac_try;;
18732 esac
18733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18734 (eval "$ac_compile") 2>conftest.er1
18735 ac_status=$?
18736 grep -v '^ *+' conftest.er1 >conftest.err
18737 rm -f conftest.er1
18738 cat conftest.err >&5
18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740 (exit $ac_status); } &&
18741 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18742 { (case "(($ac_try" in
18743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18744 *) ac_try_echo=$ac_try;;
18745 esac
18746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18747 (eval "$ac_try") 2>&5
18748 ac_status=$?
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); }; } &&
18751 { ac_try='test -s conftest.$ac_objext'
18752 { (case "(($ac_try" in
18753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18754 *) ac_try_echo=$ac_try;;
18755 esac
18756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18757 (eval "$ac_try") 2>&5
18758 ac_status=$?
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; }; then
18761 ac_cv_func_isnan_in_cmath=yes
18762 else
18763 echo "$as_me: failed program was:" >&5
18764 sed 's/^/| /' conftest.$ac_ext >&5
18766 ac_cv_func_isnan_in_cmath=no
18769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18770 ac_ext=c
18771 ac_cpp='$CPP $CPPFLAGS'
18772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18777 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18778 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18780 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18782 cat >>confdefs.h <<\_ACEOF
18783 #define HAVE_ISNAN_IN_CMATH 1
18784 _ACEOF
18788 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18789 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18790 if test "${ac_cv_func_std_isnan_in_cmath+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 <cmath>
18807 main ()
18809 float f; std::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_std_isnan_in_cmath=yes
18849 else
18850 echo "$as_me: failed program was:" >&5
18851 sed 's/^/| /' conftest.$ac_ext >&5
18853 ac_cv_func_std_isnan_in_cmath=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_std_isnan_in_cmath" >&5
18865 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18867 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18869 cat >>confdefs.h <<\_ACEOF
18870 #define HAVE_STD_ISNAN_IN_CMATH 1
18871 _ACEOF
18876 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18877 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18878 if test "${ac_cv_func_isinf_in_math_h+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 <math.h>
18895 main ()
18897 float f; isinf(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_isinf_in_math_h=yes
18937 else
18938 echo "$as_me: failed program was:" >&5
18939 sed 's/^/| /' conftest.$ac_ext >&5
18941 ac_cv_func_isinf_in_math_h=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_isinf_in_math_h" >&5
18953 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18955 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18957 cat >>confdefs.h <<\_ACEOF
18958 #define HAVE_ISINF_IN_MATH_H 1
18959 _ACEOF
18963 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18964 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18965 if test "${ac_cv_func_isinf_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; isinf(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_isinf_in_cmath=yes
19024 else
19025 echo "$as_me: failed program was:" >&5
19026 sed 's/^/| /' conftest.$ac_ext >&5
19028 ac_cv_func_isinf_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_isinf_in_cmath" >&5
19040 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19042 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19044 cat >>confdefs.h <<\_ACEOF
19045 #define HAVE_ISINF_IN_CMATH 1
19046 _ACEOF
19050 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19051 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19052 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19053 echo $ECHO_N "(cached) $ECHO_C" >&6
19054 else
19055 ac_ext=cpp
19056 ac_cpp='$CXXCPP $CPPFLAGS'
19057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19061 cat >conftest.$ac_ext <<_ACEOF
19062 /* confdefs.h. */
19063 _ACEOF
19064 cat confdefs.h >>conftest.$ac_ext
19065 cat >>conftest.$ac_ext <<_ACEOF
19066 /* end confdefs.h. */
19067 #include <cmath>
19069 main ()
19071 float f; std::isinf(f)}
19073 return 0;
19075 _ACEOF
19076 rm -f conftest.$ac_objext
19077 if { (ac_try="$ac_compile"
19078 case "(($ac_try" in
19079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19080 *) ac_try_echo=$ac_try;;
19081 esac
19082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19083 (eval "$ac_compile") 2>conftest.er1
19084 ac_status=$?
19085 grep -v '^ *+' conftest.er1 >conftest.err
19086 rm -f conftest.er1
19087 cat conftest.err >&5
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); } &&
19090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19091 { (case "(($ac_try" in
19092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19093 *) ac_try_echo=$ac_try;;
19094 esac
19095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19096 (eval "$ac_try") 2>&5
19097 ac_status=$?
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); }; } &&
19100 { ac_try='test -s conftest.$ac_objext'
19101 { (case "(($ac_try" in
19102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19103 *) ac_try_echo=$ac_try;;
19104 esac
19105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19106 (eval "$ac_try") 2>&5
19107 ac_status=$?
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); }; }; then
19110 ac_cv_func_std_isinf_in_cmath=yes
19111 else
19112 echo "$as_me: failed program was:" >&5
19113 sed 's/^/| /' conftest.$ac_ext >&5
19115 ac_cv_func_std_isinf_in_cmath=no
19118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19119 ac_ext=c
19120 ac_cpp='$CPP $CPPFLAGS'
19121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19126 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19127 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19129 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19131 cat >>confdefs.h <<\_ACEOF
19132 #define HAVE_STD_ISINF_IN_CMATH 1
19133 _ACEOF
19137 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19138 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19139 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19140 echo $ECHO_N "(cached) $ECHO_C" >&6
19141 else
19142 ac_ext=cpp
19143 ac_cpp='$CXXCPP $CPPFLAGS'
19144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19148 cat >conftest.$ac_ext <<_ACEOF
19149 /* confdefs.h. */
19150 _ACEOF
19151 cat confdefs.h >>conftest.$ac_ext
19152 cat >>conftest.$ac_ext <<_ACEOF
19153 /* end confdefs.h. */
19154 #include <ieeefp.h>
19156 main ()
19158 float f; finite(f);
19160 return 0;
19162 _ACEOF
19163 rm -f conftest.$ac_objext
19164 if { (ac_try="$ac_compile"
19165 case "(($ac_try" in
19166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167 *) ac_try_echo=$ac_try;;
19168 esac
19169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19170 (eval "$ac_compile") 2>conftest.er1
19171 ac_status=$?
19172 grep -v '^ *+' conftest.er1 >conftest.err
19173 rm -f conftest.er1
19174 cat conftest.err >&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); } &&
19177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19178 { (case "(($ac_try" in
19179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180 *) ac_try_echo=$ac_try;;
19181 esac
19182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19183 (eval "$ac_try") 2>&5
19184 ac_status=$?
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; } &&
19187 { ac_try='test -s conftest.$ac_objext'
19188 { (case "(($ac_try" in
19189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19190 *) ac_try_echo=$ac_try;;
19191 esac
19192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19193 (eval "$ac_try") 2>&5
19194 ac_status=$?
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; }; then
19197 ac_cv_func_finite_in_ieeefp_h=yes
19198 else
19199 echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19202 ac_cv_func_finite_in_ieeefp_h=no
19205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19206 ac_ext=c
19207 ac_cpp='$CPP $CPPFLAGS'
19208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19213 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19214 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19216 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19218 cat >>confdefs.h <<\_ACEOF
19219 #define HAVE_FINITE_IN_IEEEFP_H 1
19220 _ACEOF
19226 if test "$llvm_cv_platform_type" = "Unix" ; then
19229 for ac_header in stdlib.h unistd.h
19231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19236 echo $ECHO_N "(cached) $ECHO_C" >&6
19238 ac_res=`eval echo '${'$as_ac_Header'}'`
19239 { echo "$as_me:$LINENO: result: $ac_res" >&5
19240 echo "${ECHO_T}$ac_res" >&6; }
19241 else
19242 # Is the header compilable?
19243 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19245 cat >conftest.$ac_ext <<_ACEOF
19246 /* confdefs.h. */
19247 _ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h. */
19251 $ac_includes_default
19252 #include <$ac_header>
19253 _ACEOF
19254 rm -f conftest.$ac_objext
19255 if { (ac_try="$ac_compile"
19256 case "(($ac_try" in
19257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19258 *) ac_try_echo=$ac_try;;
19259 esac
19260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19261 (eval "$ac_compile") 2>conftest.er1
19262 ac_status=$?
19263 grep -v '^ *+' conftest.er1 >conftest.err
19264 rm -f conftest.er1
19265 cat conftest.err >&5
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); } &&
19268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19269 { (case "(($ac_try" in
19270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19271 *) ac_try_echo=$ac_try;;
19272 esac
19273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19274 (eval "$ac_try") 2>&5
19275 ac_status=$?
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); }; } &&
19278 { ac_try='test -s conftest.$ac_objext'
19279 { (case "(($ac_try" in
19280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281 *) ac_try_echo=$ac_try;;
19282 esac
19283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284 (eval "$ac_try") 2>&5
19285 ac_status=$?
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); }; }; then
19288 ac_header_compiler=yes
19289 else
19290 echo "$as_me: failed program was:" >&5
19291 sed 's/^/| /' conftest.$ac_ext >&5
19293 ac_header_compiler=no
19296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19298 echo "${ECHO_T}$ac_header_compiler" >&6; }
19300 # Is the header present?
19301 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19303 cat >conftest.$ac_ext <<_ACEOF
19304 /* confdefs.h. */
19305 _ACEOF
19306 cat confdefs.h >>conftest.$ac_ext
19307 cat >>conftest.$ac_ext <<_ACEOF
19308 /* end confdefs.h. */
19309 #include <$ac_header>
19310 _ACEOF
19311 if { (ac_try="$ac_cpp conftest.$ac_ext"
19312 case "(($ac_try" in
19313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19314 *) ac_try_echo=$ac_try;;
19315 esac
19316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19318 ac_status=$?
19319 grep -v '^ *+' conftest.er1 >conftest.err
19320 rm -f conftest.er1
19321 cat conftest.err >&5
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); } >/dev/null; then
19324 if test -s conftest.err; then
19325 ac_cpp_err=$ac_c_preproc_warn_flag
19326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19327 else
19328 ac_cpp_err=
19330 else
19331 ac_cpp_err=yes
19333 if test -z "$ac_cpp_err"; then
19334 ac_header_preproc=yes
19335 else
19336 echo "$as_me: failed program was:" >&5
19337 sed 's/^/| /' conftest.$ac_ext >&5
19339 ac_header_preproc=no
19342 rm -f conftest.err conftest.$ac_ext
19343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19344 echo "${ECHO_T}$ac_header_preproc" >&6; }
19346 # So? What about this header?
19347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19348 yes:no: )
19349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19353 ac_header_preproc=yes
19355 no:yes:* )
19356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19359 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19363 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19368 ( cat <<\_ASBOX
19369 ## ----------------------------------- ##
19370 ## Report this to llvmbugs@cs.uiuc.edu ##
19371 ## ----------------------------------- ##
19372 _ASBOX
19373 ) | sed "s/^/$as_me: WARNING: /" >&2
19375 esac
19376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19379 echo $ECHO_N "(cached) $ECHO_C" >&6
19380 else
19381 eval "$as_ac_Header=\$ac_header_preproc"
19383 ac_res=`eval echo '${'$as_ac_Header'}'`
19384 { echo "$as_me:$LINENO: result: $ac_res" >&5
19385 echo "${ECHO_T}$ac_res" >&6; }
19388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19389 cat >>confdefs.h <<_ACEOF
19390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19391 _ACEOF
19395 done
19398 for ac_func in getpagesize
19400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19401 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19403 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19404 echo $ECHO_N "(cached) $ECHO_C" >&6
19405 else
19406 cat >conftest.$ac_ext <<_ACEOF
19407 /* confdefs.h. */
19408 _ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h. */
19412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19414 #define $ac_func innocuous_$ac_func
19416 /* System header to define __stub macros and hopefully few prototypes,
19417 which can conflict with char $ac_func (); below.
19418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19419 <limits.h> exists even on freestanding compilers. */
19421 #ifdef __STDC__
19422 # include <limits.h>
19423 #else
19424 # include <assert.h>
19425 #endif
19427 #undef $ac_func
19429 /* Override any GCC internal prototype to avoid an error.
19430 Use char because int might match the return type of a GCC
19431 builtin and then its argument prototype would still apply. */
19432 #ifdef __cplusplus
19433 extern "C"
19434 #endif
19435 char $ac_func ();
19436 /* The GNU C library defines this for functions which it implements
19437 to always fail with ENOSYS. Some functions are actually named
19438 something starting with __ and the normal name is an alias. */
19439 #if defined __stub_$ac_func || defined __stub___$ac_func
19440 choke me
19441 #endif
19444 main ()
19446 return $ac_func ();
19448 return 0;
19450 _ACEOF
19451 rm -f conftest.$ac_objext conftest$ac_exeext
19452 if { (ac_try="$ac_link"
19453 case "(($ac_try" in
19454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19455 *) ac_try_echo=$ac_try;;
19456 esac
19457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19458 (eval "$ac_link") 2>conftest.er1
19459 ac_status=$?
19460 grep -v '^ *+' conftest.er1 >conftest.err
19461 rm -f conftest.er1
19462 cat conftest.err >&5
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); } &&
19465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19466 { (case "(($ac_try" in
19467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468 *) ac_try_echo=$ac_try;;
19469 esac
19470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19471 (eval "$ac_try") 2>&5
19472 ac_status=$?
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); }; } &&
19475 { ac_try='test -s conftest$ac_exeext'
19476 { (case "(($ac_try" in
19477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19478 *) ac_try_echo=$ac_try;;
19479 esac
19480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19481 (eval "$ac_try") 2>&5
19482 ac_status=$?
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); }; }; then
19485 eval "$as_ac_var=yes"
19486 else
19487 echo "$as_me: failed program was:" >&5
19488 sed 's/^/| /' conftest.$ac_ext >&5
19490 eval "$as_ac_var=no"
19493 rm -f core conftest.err conftest.$ac_objext \
19494 conftest$ac_exeext conftest.$ac_ext
19496 ac_res=`eval echo '${'$as_ac_var'}'`
19497 { echo "$as_me:$LINENO: result: $ac_res" >&5
19498 echo "${ECHO_T}$ac_res" >&6; }
19499 if test `eval echo '${'$as_ac_var'}'` = yes; then
19500 cat >>confdefs.h <<_ACEOF
19501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19502 _ACEOF
19505 done
19507 { echo "$as_me:$LINENO: checking for working mmap" >&5
19508 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19509 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19510 echo $ECHO_N "(cached) $ECHO_C" >&6
19511 else
19512 if test "$cross_compiling" = yes; then
19513 ac_cv_func_mmap_fixed_mapped=no
19514 else
19515 cat >conftest.$ac_ext <<_ACEOF
19516 /* confdefs.h. */
19517 _ACEOF
19518 cat confdefs.h >>conftest.$ac_ext
19519 cat >>conftest.$ac_ext <<_ACEOF
19520 /* end confdefs.h. */
19521 $ac_includes_default
19522 /* malloc might have been renamed as rpl_malloc. */
19523 #undef malloc
19525 /* Thanks to Mike Haertel and Jim Avera for this test.
19526 Here is a matrix of mmap possibilities:
19527 mmap private not fixed
19528 mmap private fixed at somewhere currently unmapped
19529 mmap private fixed at somewhere already mapped
19530 mmap shared not fixed
19531 mmap shared fixed at somewhere currently unmapped
19532 mmap shared fixed at somewhere already mapped
19533 For private mappings, we should verify that changes cannot be read()
19534 back from the file, nor mmap's back from the file at a different
19535 address. (There have been systems where private was not correctly
19536 implemented like the infamous i386 svr4.0, and systems where the
19537 VM page cache was not coherent with the file system buffer cache
19538 like early versions of FreeBSD and possibly contemporary NetBSD.)
19539 For shared mappings, we should conversely verify that changes get
19540 propagated back to all the places they're supposed to be.
19542 Grep wants private fixed already mapped.
19543 The main things grep needs to know about mmap are:
19544 * does it exist and is it safe to write into the mmap'd area
19545 * how to use it (BSD variants) */
19547 #include <fcntl.h>
19548 #include <sys/mman.h>
19550 #if !STDC_HEADERS && !HAVE_STDLIB_H
19551 char *malloc ();
19552 #endif
19554 /* This mess was copied from the GNU getpagesize.h. */
19555 #if !HAVE_GETPAGESIZE
19556 /* Assume that all systems that can run configure have sys/param.h. */
19557 # if !HAVE_SYS_PARAM_H
19558 # define HAVE_SYS_PARAM_H 1
19559 # endif
19561 # ifdef _SC_PAGESIZE
19562 # define getpagesize() sysconf(_SC_PAGESIZE)
19563 # else /* no _SC_PAGESIZE */
19564 # if HAVE_SYS_PARAM_H
19565 # include <sys/param.h>
19566 # ifdef EXEC_PAGESIZE
19567 # define getpagesize() EXEC_PAGESIZE
19568 # else /* no EXEC_PAGESIZE */
19569 # ifdef NBPG
19570 # define getpagesize() NBPG * CLSIZE
19571 # ifndef CLSIZE
19572 # define CLSIZE 1
19573 # endif /* no CLSIZE */
19574 # else /* no NBPG */
19575 # ifdef NBPC
19576 # define getpagesize() NBPC
19577 # else /* no NBPC */
19578 # ifdef PAGESIZE
19579 # define getpagesize() PAGESIZE
19580 # endif /* PAGESIZE */
19581 # endif /* no NBPC */
19582 # endif /* no NBPG */
19583 # endif /* no EXEC_PAGESIZE */
19584 # else /* no HAVE_SYS_PARAM_H */
19585 # define getpagesize() 8192 /* punt totally */
19586 # endif /* no HAVE_SYS_PARAM_H */
19587 # endif /* no _SC_PAGESIZE */
19589 #endif /* no HAVE_GETPAGESIZE */
19592 main ()
19594 char *data, *data2, *data3;
19595 int i, pagesize;
19596 int fd;
19598 pagesize = getpagesize ();
19600 /* First, make a file with some known garbage in it. */
19601 data = (char *) malloc (pagesize);
19602 if (!data)
19603 return 1;
19604 for (i = 0; i < pagesize; ++i)
19605 *(data + i) = rand ();
19606 umask (0);
19607 fd = creat ("conftest.mmap", 0600);
19608 if (fd < 0)
19609 return 1;
19610 if (write (fd, data, pagesize) != pagesize)
19611 return 1;
19612 close (fd);
19614 /* Next, try to mmap the file at a fixed address which already has
19615 something else allocated at it. If we can, also make sure that
19616 we see the same garbage. */
19617 fd = open ("conftest.mmap", O_RDWR);
19618 if (fd < 0)
19619 return 1;
19620 data2 = (char *) malloc (2 * pagesize);
19621 if (!data2)
19622 return 1;
19623 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19624 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19625 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19626 return 1;
19627 for (i = 0; i < pagesize; ++i)
19628 if (*(data + i) != *(data2 + i))
19629 return 1;
19631 /* Finally, make sure that changes to the mapped area do not
19632 percolate back to the file as seen by read(). (This is a bug on
19633 some variants of i386 svr4.0.) */
19634 for (i = 0; i < pagesize; ++i)
19635 *(data2 + i) = *(data2 + i) + 1;
19636 data3 = (char *) malloc (pagesize);
19637 if (!data3)
19638 return 1;
19639 if (read (fd, data3, pagesize) != pagesize)
19640 return 1;
19641 for (i = 0; i < pagesize; ++i)
19642 if (*(data + i) != *(data3 + i))
19643 return 1;
19644 close (fd);
19645 return 0;
19647 _ACEOF
19648 rm -f conftest$ac_exeext
19649 if { (ac_try="$ac_link"
19650 case "(($ac_try" in
19651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19652 *) ac_try_echo=$ac_try;;
19653 esac
19654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19655 (eval "$ac_link") 2>&5
19656 ac_status=$?
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19659 { (case "(($ac_try" in
19660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19661 *) ac_try_echo=$ac_try;;
19662 esac
19663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19664 (eval "$ac_try") 2>&5
19665 ac_status=$?
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); }; }; then
19668 ac_cv_func_mmap_fixed_mapped=yes
19669 else
19670 echo "$as_me: program exited with status $ac_status" >&5
19671 echo "$as_me: failed program was:" >&5
19672 sed 's/^/| /' conftest.$ac_ext >&5
19674 ( exit $ac_status )
19675 ac_cv_func_mmap_fixed_mapped=no
19677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19682 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19683 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19684 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19686 cat >>confdefs.h <<\_ACEOF
19687 #define HAVE_MMAP 1
19688 _ACEOF
19691 rm -f conftest.mmap
19693 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19694 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19695 if test "${ac_cv_func_mmap_file+set}" = set; then
19696 echo $ECHO_N "(cached) $ECHO_C" >&6
19697 else
19698 ac_ext=c
19699 ac_cpp='$CPP $CPPFLAGS'
19700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19704 if test "$cross_compiling" = yes; then
19705 ac_cv_func_mmap_file=no
19706 else
19707 cat >conftest.$ac_ext <<_ACEOF
19709 /* confdefs.h. */
19710 _ACEOF
19711 cat confdefs.h >>conftest.$ac_ext
19712 cat >>conftest.$ac_ext <<_ACEOF
19713 /* end confdefs.h. */
19715 #include <sys/types.h>
19716 #include <sys/mman.h>
19717 #include <fcntl.h>
19720 main ()
19723 int fd;
19724 fd = creat ("foo",0777);
19725 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19726 unlink ("foo");
19727 return (fd != (int) MAP_FAILED);
19729 return 0;
19731 _ACEOF
19732 rm -f conftest$ac_exeext
19733 if { (ac_try="$ac_link"
19734 case "(($ac_try" in
19735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736 *) ac_try_echo=$ac_try;;
19737 esac
19738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19739 (eval "$ac_link") 2>&5
19740 ac_status=$?
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19743 { (case "(($ac_try" in
19744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745 *) ac_try_echo=$ac_try;;
19746 esac
19747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19748 (eval "$ac_try") 2>&5
19749 ac_status=$?
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); }; }; then
19752 ac_cv_func_mmap_file=yes
19753 else
19754 echo "$as_me: program exited with status $ac_status" >&5
19755 echo "$as_me: failed program was:" >&5
19756 sed 's/^/| /' conftest.$ac_ext >&5
19758 ( exit $ac_status )
19759 ac_cv_func_mmap_file=no
19761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19765 ac_ext=c
19766 ac_cpp='$CPP $CPPFLAGS'
19767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19773 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19774 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19775 if test "$ac_cv_func_mmap_file" = yes; then
19777 cat >>confdefs.h <<\_ACEOF
19778 #define HAVE_MMAP_FILE
19779 _ACEOF
19781 MMAP_FILE=yes
19785 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19786 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19787 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19788 echo $ECHO_N "(cached) $ECHO_C" >&6
19789 else
19790 if test "$llvm_cv_os_type" = "Interix" ; then
19791 ac_cv_need_dev_zero_for_mmap=yes
19792 else
19793 ac_cv_need_dev_zero_for_mmap=no
19797 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19798 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19799 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19801 cat >>confdefs.h <<\_ACEOF
19802 #define NEED_DEV_ZERO_FOR_MMAP 1
19803 _ACEOF
19807 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19808 then
19809 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19810 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19812 if test "$ac_cv_func_mmap_file" = "no"
19813 then
19814 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19815 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19819 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19820 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19821 cat >conftest.$ac_ext <<_ACEOF
19822 /* confdefs.h. */
19823 _ACEOF
19824 cat confdefs.h >>conftest.$ac_ext
19825 cat >>conftest.$ac_ext <<_ACEOF
19826 /* end confdefs.h. */
19827 int main() {
19828 volatile unsigned long val = 1;
19829 __sync_synchronize();
19830 __sync_val_compare_and_swap(&val, 1, 0);
19831 __sync_add_and_fetch(&val, 1);
19832 __sync_sub_and_fetch(&val, 1);
19833 return 0;
19836 _ACEOF
19837 rm -f conftest.$ac_objext conftest$ac_exeext
19838 if { (ac_try="$ac_link"
19839 case "(($ac_try" in
19840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19841 *) ac_try_echo=$ac_try;;
19842 esac
19843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19844 (eval "$ac_link") 2>conftest.er1
19845 ac_status=$?
19846 grep -v '^ *+' conftest.er1 >conftest.err
19847 rm -f conftest.er1
19848 cat conftest.err >&5
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); } &&
19851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19852 { (case "(($ac_try" in
19853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19854 *) ac_try_echo=$ac_try;;
19855 esac
19856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19857 (eval "$ac_try") 2>&5
19858 ac_status=$?
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); }; } &&
19861 { ac_try='test -s conftest$ac_exeext'
19862 { (case "(($ac_try" in
19863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19864 *) ac_try_echo=$ac_try;;
19865 esac
19866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19867 (eval "$ac_try") 2>&5
19868 ac_status=$?
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); }; }; then
19871 { echo "$as_me:$LINENO: result: yes" >&5
19872 echo "${ECHO_T}yes" >&6; }
19874 cat >>confdefs.h <<\_ACEOF
19875 #define LLVM_MULTITHREADED 1
19876 _ACEOF
19878 else
19879 echo "$as_me: failed program was:" >&5
19880 sed 's/^/| /' conftest.$ac_ext >&5
19882 { echo "$as_me:$LINENO: result: no" >&5
19883 echo "${ECHO_T}no" >&6; }
19885 cat >>confdefs.h <<\_ACEOF
19886 #define LLVM_MULTITHREADED 0
19887 _ACEOF
19889 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19890 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19893 rm -f core conftest.err conftest.$ac_objext \
19894 conftest$ac_exeext conftest.$ac_ext
19898 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19899 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19900 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19901 if test "${llvm_cv_linux_mixed+set}" = set; then
19902 echo $ECHO_N "(cached) $ECHO_C" >&6
19903 else
19904 ac_ext=c
19905 ac_cpp='$CPP $CPPFLAGS'
19906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19910 cat >conftest.$ac_ext <<_ACEOF
19911 /* confdefs.h. */
19912 _ACEOF
19913 cat confdefs.h >>conftest.$ac_ext
19914 cat >>conftest.$ac_ext <<_ACEOF
19915 /* end confdefs.h. */
19916 #ifndef __x86_64__
19917 error: Not x86-64 even if uname says so!
19918 #endif
19921 main ()
19925 return 0;
19927 _ACEOF
19928 rm -f conftest.$ac_objext
19929 if { (ac_try="$ac_compile"
19930 case "(($ac_try" in
19931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19932 *) ac_try_echo=$ac_try;;
19933 esac
19934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19935 (eval "$ac_compile") 2>conftest.er1
19936 ac_status=$?
19937 grep -v '^ *+' conftest.er1 >conftest.err
19938 rm -f conftest.er1
19939 cat conftest.err >&5
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); } &&
19942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19943 { (case "(($ac_try" in
19944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945 *) ac_try_echo=$ac_try;;
19946 esac
19947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948 (eval "$ac_try") 2>&5
19949 ac_status=$?
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); }; } &&
19952 { ac_try='test -s conftest.$ac_objext'
19953 { (case "(($ac_try" in
19954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19955 *) ac_try_echo=$ac_try;;
19956 esac
19957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19958 (eval "$ac_try") 2>&5
19959 ac_status=$?
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); }; }; then
19962 llvm_cv_linux_mixed=no
19963 else
19964 echo "$as_me: failed program was:" >&5
19965 sed 's/^/| /' conftest.$ac_ext >&5
19967 llvm_cv_linux_mixed=yes
19970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19971 ac_ext=c
19972 ac_cpp='$CPP $CPPFLAGS'
19973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19979 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19980 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19982 if test "$llvm_cv_linux_mixed" = "yes"; then
19983 llvm_cv_target_arch="x86"
19984 ARCH="x86"
19989 for ac_func in __dso_handle
19991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19995 echo $ECHO_N "(cached) $ECHO_C" >&6
19996 else
19997 cat >conftest.$ac_ext <<_ACEOF
19998 /* confdefs.h. */
19999 _ACEOF
20000 cat confdefs.h >>conftest.$ac_ext
20001 cat >>conftest.$ac_ext <<_ACEOF
20002 /* end confdefs.h. */
20003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20005 #define $ac_func innocuous_$ac_func
20007 /* System header to define __stub macros and hopefully few prototypes,
20008 which can conflict with char $ac_func (); below.
20009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20010 <limits.h> exists even on freestanding compilers. */
20012 #ifdef __STDC__
20013 # include <limits.h>
20014 #else
20015 # include <assert.h>
20016 #endif
20018 #undef $ac_func
20020 /* Override any GCC internal prototype to avoid an error.
20021 Use char because int might match the return type of a GCC
20022 builtin and then its argument prototype would still apply. */
20023 #ifdef __cplusplus
20024 extern "C"
20025 #endif
20026 char $ac_func ();
20027 /* The GNU C library defines this for functions which it implements
20028 to always fail with ENOSYS. Some functions are actually named
20029 something starting with __ and the normal name is an alias. */
20030 #if defined __stub_$ac_func || defined __stub___$ac_func
20031 choke me
20032 #endif
20035 main ()
20037 return $ac_func ();
20039 return 0;
20041 _ACEOF
20042 rm -f conftest.$ac_objext conftest$ac_exeext
20043 if { (ac_try="$ac_link"
20044 case "(($ac_try" in
20045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20046 *) ac_try_echo=$ac_try;;
20047 esac
20048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20049 (eval "$ac_link") 2>conftest.er1
20050 ac_status=$?
20051 grep -v '^ *+' conftest.er1 >conftest.err
20052 rm -f conftest.er1
20053 cat conftest.err >&5
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); } &&
20056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20057 { (case "(($ac_try" in
20058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20059 *) ac_try_echo=$ac_try;;
20060 esac
20061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20062 (eval "$ac_try") 2>&5
20063 ac_status=$?
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); }; } &&
20066 { ac_try='test -s conftest$ac_exeext'
20067 { (case "(($ac_try" in
20068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20069 *) ac_try_echo=$ac_try;;
20070 esac
20071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20072 (eval "$ac_try") 2>&5
20073 ac_status=$?
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); }; }; then
20076 eval "$as_ac_var=yes"
20077 else
20078 echo "$as_me: failed program was:" >&5
20079 sed 's/^/| /' conftest.$ac_ext >&5
20081 eval "$as_ac_var=no"
20084 rm -f core conftest.err conftest.$ac_objext \
20085 conftest$ac_exeext conftest.$ac_ext
20087 ac_res=`eval echo '${'$as_ac_var'}'`
20088 { echo "$as_me:$LINENO: result: $ac_res" >&5
20089 echo "${ECHO_T}$ac_res" >&6; }
20090 if test `eval echo '${'$as_ac_var'}'` = yes; then
20091 cat >>confdefs.h <<_ACEOF
20092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20093 _ACEOF
20096 done
20099 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20100 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20101 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20102 echo $ECHO_N "(cached) $ECHO_C" >&6
20103 else
20104 llvm_cv_llvmgcc_sanity="no"
20105 if test -x "$LLVMGCC" ; then
20106 cp /dev/null conftest.c
20107 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20108 grep 'target datalayout =' > /dev/null 2>&1
20109 if test $? -eq 0 ; then
20110 llvm_cv_llvmgcc_sanity="yes"
20112 rm conftest.c
20115 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20116 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20118 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20119 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20120 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20121 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20122 LLVMCC1=$llvmcc1path
20124 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20125 LLVMCC1PLUS=$llvmcc1pluspath
20127 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20128 LLVMGCCDIR=$llvmgccdir
20130 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20131 LLVMGCC_LANGS=$llvmgcclangs
20133 { echo "$as_me:$LINENO: result: ok" >&5
20134 echo "${ECHO_T}ok" >&6; }
20137 SHLIBEXT=$libltdl_cv_shlibext
20140 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20143 # Translate the various configuration directories and other basic
20144 # information into substitutions that will end up in Makefile.config.in
20145 # that these configured values can be used by the makefiles
20146 if test "${prefix}" = "NONE" ; then
20147 prefix="/usr/local"
20149 eval LLVM_PREFIX="${prefix}";
20150 eval LLVM_BINDIR="${prefix}/bin";
20151 eval LLVM_LIBDIR="${prefix}/lib";
20152 eval LLVM_DATADIR="${prefix}/share/llvm";
20153 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20154 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20155 eval LLVM_INCLUDEDIR="${prefix}/include";
20156 eval LLVM_INFODIR="${prefix}/info";
20157 eval LLVM_MANDIR="${prefix}/man";
20158 LLVM_CONFIGTIME=`date`
20170 # Place the various directores into the config.h file as #defines so that we
20171 # can know about the installation paths within LLVM.
20173 cat >>confdefs.h <<_ACEOF
20174 #define LLVM_PREFIX "$LLVM_PREFIX"
20175 _ACEOF
20178 cat >>confdefs.h <<_ACEOF
20179 #define LLVM_BINDIR "$LLVM_BINDIR"
20180 _ACEOF
20183 cat >>confdefs.h <<_ACEOF
20184 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20185 _ACEOF
20188 cat >>confdefs.h <<_ACEOF
20189 #define LLVM_DATADIR "$LLVM_DATADIR"
20190 _ACEOF
20193 cat >>confdefs.h <<_ACEOF
20194 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20195 _ACEOF
20198 cat >>confdefs.h <<_ACEOF
20199 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20200 _ACEOF
20203 cat >>confdefs.h <<_ACEOF
20204 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20205 _ACEOF
20208 cat >>confdefs.h <<_ACEOF
20209 #define LLVM_INFODIR "$LLVM_INFODIR"
20210 _ACEOF
20213 cat >>confdefs.h <<_ACEOF
20214 #define LLVM_MANDIR "$LLVM_MANDIR"
20215 _ACEOF
20218 cat >>confdefs.h <<_ACEOF
20219 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20220 _ACEOF
20223 cat >>confdefs.h <<_ACEOF
20224 #define LLVM_HOSTTRIPLE "$host"
20225 _ACEOF
20228 # Determine which bindings to build.
20229 if test "$BINDINGS_TO_BUILD" = auto ; then
20230 BINDINGS_TO_BUILD=""
20231 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20232 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20235 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20238 # This isn't really configurey, but it avoids having to repeat the list in
20239 # other files.
20240 ALL_BINDINGS=ocaml
20243 # Do any work necessary to ensure that bindings have what they need.
20244 binding_prereqs_failed=0
20245 for a_binding in $BINDINGS_TO_BUILD ; do
20246 case "$a_binding" in
20247 ocaml)
20248 if test "x$OCAMLC" = x ; then
20249 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20250 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20251 binding_prereqs_failed=1
20253 if test "x$OCAMLDEP" = x ; then
20254 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20255 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20256 binding_prereqs_failed=1
20258 if test "x$OCAMLOPT" = x ; then
20259 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20260 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20262 if test "x$with_ocaml_libdir" != xauto ; then
20263 OCAML_LIBDIR=$with_ocaml_libdir
20265 else
20266 ocaml_stdlib="`"$OCAMLC" -where`"
20267 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20268 then
20269 # ocaml stdlib is beneath our prefix; use stdlib
20270 OCAML_LIBDIR=$ocaml_stdlib
20272 else
20273 # ocaml stdlib is outside our prefix; use libdir/ocaml
20274 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20279 esac
20280 done
20281 if test "$binding_prereqs_failed" = 1 ; then
20282 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20283 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20284 { (exit 1); exit 1; }; }
20287 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20288 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20289 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20290 echo $ECHO_N "(cached) $ECHO_C" >&6
20291 else
20292 ac_ext=cpp
20293 ac_cpp='$CXXCPP $CPPFLAGS'
20294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20298 oldcxxflags="$CXXFLAGS"
20299 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20300 cat >conftest.$ac_ext <<_ACEOF
20301 /* confdefs.h. */
20302 _ACEOF
20303 cat confdefs.h >>conftest.$ac_ext
20304 cat >>conftest.$ac_ext <<_ACEOF
20305 /* end confdefs.h. */
20308 main ()
20312 return 0;
20314 _ACEOF
20315 rm -f conftest.$ac_objext
20316 if { (ac_try="$ac_compile"
20317 case "(($ac_try" in
20318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20319 *) ac_try_echo=$ac_try;;
20320 esac
20321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20322 (eval "$ac_compile") 2>conftest.er1
20323 ac_status=$?
20324 grep -v '^ *+' conftest.er1 >conftest.err
20325 rm -f conftest.er1
20326 cat conftest.err >&5
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); } &&
20329 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20330 { (case "(($ac_try" in
20331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332 *) ac_try_echo=$ac_try;;
20333 esac
20334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335 (eval "$ac_try") 2>&5
20336 ac_status=$?
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); }; } &&
20339 { ac_try='test -s conftest.$ac_objext'
20340 { (case "(($ac_try" in
20341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20342 *) ac_try_echo=$ac_try;;
20343 esac
20344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20345 (eval "$ac_try") 2>&5
20346 ac_status=$?
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); }; }; then
20349 llvm_cv_cxx_visibility_inlines_hidden=yes
20350 else
20351 echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.$ac_ext >&5
20354 llvm_cv_cxx_visibility_inlines_hidden=no
20357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20358 CXXFLAGS="$oldcxxflags"
20359 ac_ext=c
20360 ac_cpp='$CPP $CPPFLAGS'
20361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20367 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20368 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20369 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20370 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20372 else
20373 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20378 if test "$llvm_cv_link_use_r" = "yes" ; then
20379 RPATH="-Wl,-R"
20380 else
20381 RPATH="-Wl,-rpath"
20385 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20386 RDYNAMIC="-Wl,-export-dynamic"
20387 else
20388 RDYNAMIC=""
20393 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
20395 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20397 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20399 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20401 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20403 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20406 ac_config_files="$ac_config_files Makefile.config"
20409 ac_config_files="$ac_config_files llvm.spec"
20412 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20415 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20418 ac_config_commands="$ac_config_commands setup"
20420 ac_config_commands="$ac_config_commands Makefile"
20423 ac_config_commands="$ac_config_commands Makefile.common"
20426 ac_config_commands="$ac_config_commands examples/Makefile"
20429 ac_config_commands="$ac_config_commands lib/Makefile"
20432 ac_config_commands="$ac_config_commands runtime/Makefile"
20435 ac_config_commands="$ac_config_commands test/Makefile"
20438 ac_config_commands="$ac_config_commands test/Makefile.tests"
20441 ac_config_commands="$ac_config_commands unittests/Makefile"
20444 ac_config_commands="$ac_config_commands tools/Makefile"
20447 ac_config_commands="$ac_config_commands utils/Makefile"
20450 ac_config_commands="$ac_config_commands projects/Makefile"
20453 ac_config_commands="$ac_config_commands bindings/Makefile"
20456 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20460 cat >confcache <<\_ACEOF
20461 # This file is a shell script that caches the results of configure
20462 # tests run on this system so they can be shared between configure
20463 # scripts and configure runs, see configure's option --config-cache.
20464 # It is not useful on other systems. If it contains results you don't
20465 # want to keep, you may remove or edit it.
20467 # config.status only pays attention to the cache file if you give it
20468 # the --recheck option to rerun configure.
20470 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20471 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20472 # following values.
20474 _ACEOF
20476 # The following way of writing the cache mishandles newlines in values,
20477 # but we know of no workaround that is simple, portable, and efficient.
20478 # So, we kill variables containing newlines.
20479 # Ultrix sh set writes to stderr and can't be redirected directly,
20480 # and sets the high bit in the cache file unless we assign to the vars.
20482 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20483 eval ac_val=\$$ac_var
20484 case $ac_val in #(
20485 *${as_nl}*)
20486 case $ac_var in #(
20487 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20488 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20489 esac
20490 case $ac_var in #(
20491 _ | IFS | as_nl) ;; #(
20492 *) $as_unset $ac_var ;;
20493 esac ;;
20494 esac
20495 done
20497 (set) 2>&1 |
20498 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20499 *${as_nl}ac_space=\ *)
20500 # `set' does not quote correctly, so add quotes (double-quote
20501 # substitution turns \\\\ into \\, and sed turns \\ into \).
20502 sed -n \
20503 "s/'/'\\\\''/g;
20504 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20505 ;; #(
20507 # `set' quotes correctly as required by POSIX, so do not add quotes.
20508 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20510 esac |
20511 sort
20513 sed '
20514 /^ac_cv_env_/b end
20515 t clear
20516 :clear
20517 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20518 t end
20519 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20520 :end' >>confcache
20521 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20522 if test -w "$cache_file"; then
20523 test "x$cache_file" != "x/dev/null" &&
20524 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20525 echo "$as_me: updating cache $cache_file" >&6;}
20526 cat confcache >$cache_file
20527 else
20528 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20529 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20532 rm -f confcache
20534 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20535 # Let make expand exec_prefix.
20536 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20538 DEFS=-DHAVE_CONFIG_H
20540 ac_libobjs=
20541 ac_ltlibobjs=
20542 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20543 # 1. Remove the extension, and $U if already installed.
20544 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20545 ac_i=`echo "$ac_i" | sed "$ac_script"`
20546 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20547 # will be set to the directory where LIBOBJS objects are built.
20548 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20549 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20550 done
20551 LIBOBJS=$ac_libobjs
20553 LTLIBOBJS=$ac_ltlibobjs
20556 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20557 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20558 Usually this means the macro was only invoked conditionally." >&5
20559 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20560 Usually this means the macro was only invoked conditionally." >&2;}
20561 { (exit 1); exit 1; }; }
20563 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20564 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20565 Usually this means the macro was only invoked conditionally." >&5
20566 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20567 Usually this means the macro was only invoked conditionally." >&2;}
20568 { (exit 1); exit 1; }; }
20571 : ${CONFIG_STATUS=./config.status}
20572 ac_clean_files_save=$ac_clean_files
20573 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20574 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20575 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20576 cat >$CONFIG_STATUS <<_ACEOF
20577 #! $SHELL
20578 # Generated by $as_me.
20579 # Run this file to recreate the current configuration.
20580 # Compiler output produced by configure, useful for debugging
20581 # configure, is in config.log if it exists.
20583 debug=false
20584 ac_cs_recheck=false
20585 ac_cs_silent=false
20586 SHELL=\${CONFIG_SHELL-$SHELL}
20587 _ACEOF
20589 cat >>$CONFIG_STATUS <<\_ACEOF
20590 ## --------------------- ##
20591 ## M4sh Initialization. ##
20592 ## --------------------- ##
20594 # Be Bourne compatible
20595 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20596 emulate sh
20597 NULLCMD=:
20598 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20599 # is contrary to our usage. Disable this feature.
20600 alias -g '${1+"$@"}'='"$@"'
20601 setopt NO_GLOB_SUBST
20602 else
20603 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20605 BIN_SH=xpg4; export BIN_SH # for Tru64
20606 DUALCASE=1; export DUALCASE # for MKS sh
20609 # PATH needs CR
20610 # Avoid depending upon Character Ranges.
20611 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20612 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20613 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20614 as_cr_digits='0123456789'
20615 as_cr_alnum=$as_cr_Letters$as_cr_digits
20617 # The user is always right.
20618 if test "${PATH_SEPARATOR+set}" != set; then
20619 echo "#! /bin/sh" >conf$$.sh
20620 echo "exit 0" >>conf$$.sh
20621 chmod +x conf$$.sh
20622 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20623 PATH_SEPARATOR=';'
20624 else
20625 PATH_SEPARATOR=:
20627 rm -f conf$$.sh
20630 # Support unset when possible.
20631 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20632 as_unset=unset
20633 else
20634 as_unset=false
20638 # IFS
20639 # We need space, tab and new line, in precisely that order. Quoting is
20640 # there to prevent editors from complaining about space-tab.
20641 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20642 # splitting by setting IFS to empty value.)
20643 as_nl='
20645 IFS=" "" $as_nl"
20647 # Find who we are. Look in the path if we contain no directory separator.
20648 case $0 in
20649 *[\\/]* ) as_myself=$0 ;;
20650 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20651 for as_dir in $PATH
20653 IFS=$as_save_IFS
20654 test -z "$as_dir" && as_dir=.
20655 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20656 done
20657 IFS=$as_save_IFS
20660 esac
20661 # We did not find ourselves, most probably we were run as `sh COMMAND'
20662 # in which case we are not to be found in the path.
20663 if test "x$as_myself" = x; then
20664 as_myself=$0
20666 if test ! -f "$as_myself"; then
20667 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20668 { (exit 1); exit 1; }
20671 # Work around bugs in pre-3.0 UWIN ksh.
20672 for as_var in ENV MAIL MAILPATH
20673 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20674 done
20675 PS1='$ '
20676 PS2='> '
20677 PS4='+ '
20679 # NLS nuisances.
20680 for as_var in \
20681 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20682 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20683 LC_TELEPHONE LC_TIME
20685 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20686 eval $as_var=C; export $as_var
20687 else
20688 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20690 done
20692 # Required to use basename.
20693 if expr a : '\(a\)' >/dev/null 2>&1 &&
20694 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20695 as_expr=expr
20696 else
20697 as_expr=false
20700 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20701 as_basename=basename
20702 else
20703 as_basename=false
20707 # Name of the executable.
20708 as_me=`$as_basename -- "$0" ||
20709 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20710 X"$0" : 'X\(//\)$' \| \
20711 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20712 echo X/"$0" |
20713 sed '/^.*\/\([^/][^/]*\)\/*$/{
20714 s//\1/
20717 /^X\/\(\/\/\)$/{
20718 s//\1/
20721 /^X\/\(\/\).*/{
20722 s//\1/
20725 s/.*/./; q'`
20727 # CDPATH.
20728 $as_unset CDPATH
20732 as_lineno_1=$LINENO
20733 as_lineno_2=$LINENO
20734 test "x$as_lineno_1" != "x$as_lineno_2" &&
20735 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20737 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20738 # uniformly replaced by the line number. The first 'sed' inserts a
20739 # line-number line after each line using $LINENO; the second 'sed'
20740 # does the real work. The second script uses 'N' to pair each
20741 # line-number line with the line containing $LINENO, and appends
20742 # trailing '-' during substitution so that $LINENO is not a special
20743 # case at line end.
20744 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20745 # scripts with optimization help from Paolo Bonzini. Blame Lee
20746 # E. McMahon (1931-1989) for sed's syntax. :-)
20747 sed -n '
20749 /[$]LINENO/=
20750 ' <$as_myself |
20751 sed '
20752 s/[$]LINENO.*/&-/
20753 t lineno
20755 :lineno
20757 :loop
20758 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20759 t loop
20760 s/-\n.*//
20761 ' >$as_me.lineno &&
20762 chmod +x "$as_me.lineno" ||
20763 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20764 { (exit 1); exit 1; }; }
20766 # Don't try to exec as it changes $[0], causing all sort of problems
20767 # (the dirname of $[0] is not the place where we might find the
20768 # original and so on. Autoconf is especially sensitive to this).
20769 . "./$as_me.lineno"
20770 # Exit status is that of the last command.
20771 exit
20775 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20776 as_dirname=dirname
20777 else
20778 as_dirname=false
20781 ECHO_C= ECHO_N= ECHO_T=
20782 case `echo -n x` in
20783 -n*)
20784 case `echo 'x\c'` in
20785 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20786 *) ECHO_C='\c';;
20787 esac;;
20789 ECHO_N='-n';;
20790 esac
20792 if expr a : '\(a\)' >/dev/null 2>&1 &&
20793 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20794 as_expr=expr
20795 else
20796 as_expr=false
20799 rm -f conf$$ conf$$.exe conf$$.file
20800 if test -d conf$$.dir; then
20801 rm -f conf$$.dir/conf$$.file
20802 else
20803 rm -f conf$$.dir
20804 mkdir conf$$.dir
20806 echo >conf$$.file
20807 if ln -s conf$$.file conf$$ 2>/dev/null; then
20808 as_ln_s='ln -s'
20809 # ... but there are two gotchas:
20810 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20811 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20812 # In both cases, we have to default to `cp -p'.
20813 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20814 as_ln_s='cp -p'
20815 elif ln conf$$.file conf$$ 2>/dev/null; then
20816 as_ln_s=ln
20817 else
20818 as_ln_s='cp -p'
20820 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20821 rmdir conf$$.dir 2>/dev/null
20823 if mkdir -p . 2>/dev/null; then
20824 as_mkdir_p=:
20825 else
20826 test -d ./-p && rmdir ./-p
20827 as_mkdir_p=false
20830 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
20831 # systems may use methods other than mode bits to determine executability.
20832 cat >conf$$.file <<_ASEOF
20833 #! /bin/sh
20834 exit 0
20835 _ASEOF
20836 chmod +x conf$$.file
20837 if test -x conf$$.file >/dev/null 2>&1; then
20838 as_executable_p="test -x"
20839 else
20840 as_executable_p=:
20842 rm -f conf$$.file
20844 # Sed expression to map a string onto a valid CPP name.
20845 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20847 # Sed expression to map a string onto a valid variable name.
20848 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20851 exec 6>&1
20853 # Save the log message, to keep $[0] and so on meaningful, and to
20854 # report actual input values of CONFIG_FILES etc. instead of their
20855 # values after options handling.
20856 ac_log="
20857 This file was extended by llvm $as_me 2.8svn, which was
20858 generated by GNU Autoconf 2.60. Invocation command line was
20860 CONFIG_FILES = $CONFIG_FILES
20861 CONFIG_HEADERS = $CONFIG_HEADERS
20862 CONFIG_LINKS = $CONFIG_LINKS
20863 CONFIG_COMMANDS = $CONFIG_COMMANDS
20864 $ $0 $@
20866 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20869 _ACEOF
20871 cat >>$CONFIG_STATUS <<_ACEOF
20872 # Files that config.status was made for.
20873 config_files="$ac_config_files"
20874 config_headers="$ac_config_headers"
20875 config_commands="$ac_config_commands"
20877 _ACEOF
20879 cat >>$CONFIG_STATUS <<\_ACEOF
20880 ac_cs_usage="\
20881 \`$as_me' instantiates files from templates according to the
20882 current configuration.
20884 Usage: $0 [OPTIONS] [FILE]...
20886 -h, --help print this help, then exit
20887 -V, --version print version number, then exit
20888 -q, --quiet do not print progress messages
20889 -d, --debug don't remove temporary files
20890 --recheck update $as_me by reconfiguring in the same conditions
20891 --file=FILE[:TEMPLATE]
20892 instantiate the configuration file FILE
20893 --header=FILE[:TEMPLATE]
20894 instantiate the configuration header FILE
20896 Configuration files:
20897 $config_files
20899 Configuration headers:
20900 $config_headers
20902 Configuration commands:
20903 $config_commands
20905 Report bugs to <bug-autoconf@gnu.org>."
20907 _ACEOF
20908 cat >>$CONFIG_STATUS <<_ACEOF
20909 ac_cs_version="\\
20910 llvm config.status 2.8svn
20911 configured by $0, generated by GNU Autoconf 2.60,
20912 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20914 Copyright (C) 2006 Free Software Foundation, Inc.
20915 This config.status script is free software; the Free Software Foundation
20916 gives unlimited permission to copy, distribute and modify it."
20918 ac_pwd='$ac_pwd'
20919 srcdir='$srcdir'
20920 INSTALL='$INSTALL'
20921 _ACEOF
20923 cat >>$CONFIG_STATUS <<\_ACEOF
20924 # If no file are specified by the user, then we need to provide default
20925 # value. By we need to know if files were specified by the user.
20926 ac_need_defaults=:
20927 while test $# != 0
20929 case $1 in
20930 --*=*)
20931 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20932 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20933 ac_shift=:
20936 ac_option=$1
20937 ac_optarg=$2
20938 ac_shift=shift
20940 esac
20942 case $ac_option in
20943 # Handling of the options.
20944 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20945 ac_cs_recheck=: ;;
20946 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20947 echo "$ac_cs_version"; exit ;;
20948 --debug | --debu | --deb | --de | --d | -d )
20949 debug=: ;;
20950 --file | --fil | --fi | --f )
20951 $ac_shift
20952 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20953 ac_need_defaults=false;;
20954 --header | --heade | --head | --hea )
20955 $ac_shift
20956 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20957 ac_need_defaults=false;;
20958 --he | --h)
20959 # Conflict between --help and --header
20960 { echo "$as_me: error: ambiguous option: $1
20961 Try \`$0 --help' for more information." >&2
20962 { (exit 1); exit 1; }; };;
20963 --help | --hel | -h )
20964 echo "$ac_cs_usage"; exit ;;
20965 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20966 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20967 ac_cs_silent=: ;;
20969 # This is an error.
20970 -*) { echo "$as_me: error: unrecognized option: $1
20971 Try \`$0 --help' for more information." >&2
20972 { (exit 1); exit 1; }; } ;;
20974 *) ac_config_targets="$ac_config_targets $1"
20975 ac_need_defaults=false ;;
20977 esac
20978 shift
20979 done
20981 ac_configure_extra_args=
20983 if $ac_cs_silent; then
20984 exec 6>/dev/null
20985 ac_configure_extra_args="$ac_configure_extra_args --silent"
20988 _ACEOF
20989 cat >>$CONFIG_STATUS <<_ACEOF
20990 if \$ac_cs_recheck; then
20991 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20992 CONFIG_SHELL=$SHELL
20993 export CONFIG_SHELL
20994 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20997 _ACEOF
20998 cat >>$CONFIG_STATUS <<\_ACEOF
20999 exec 5>>config.log
21001 echo
21002 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21003 ## Running $as_me. ##
21004 _ASBOX
21005 echo "$ac_log"
21006 } >&5
21008 _ACEOF
21009 cat >>$CONFIG_STATUS <<_ACEOF
21011 # INIT-COMMANDS
21013 llvm_src="${srcdir}"
21015 _ACEOF
21017 cat >>$CONFIG_STATUS <<\_ACEOF
21019 # Handling of arguments.
21020 for ac_config_target in $ac_config_targets
21022 case $ac_config_target in
21023 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21024 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21025 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21026 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21027 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21028 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21029 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21030 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21031 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
21032 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21033 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21034 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21035 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21036 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21037 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21038 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21039 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21040 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21041 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21042 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21043 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21044 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21045 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21046 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21048 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21049 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21050 { (exit 1); exit 1; }; };;
21051 esac
21052 done
21055 # If the user did not use the arguments to specify the items to instantiate,
21056 # then the envvar interface is used. Set only those that are not.
21057 # We use the long form for the default assignment because of an extremely
21058 # bizarre bug on SunOS 4.1.3.
21059 if $ac_need_defaults; then
21060 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21061 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21062 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21065 # Have a temporary directory for convenience. Make it in the build tree
21066 # simply because there is no reason against having it here, and in addition,
21067 # creating and moving files from /tmp can sometimes cause problems.
21068 # Hook for its removal unless debugging.
21069 # Note that there is a small window in which the directory will not be cleaned:
21070 # after its creation but before its name has been assigned to `$tmp'.
21071 $debug ||
21073 tmp=
21074 trap 'exit_status=$?
21075 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21077 trap '{ (exit 1); exit 1; }' 1 2 13 15
21079 # Create a (secure) tmp directory for tmp files.
21082 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21083 test -n "$tmp" && test -d "$tmp"
21084 } ||
21086 tmp=./conf$$-$RANDOM
21087 (umask 077 && mkdir "$tmp")
21088 } ||
21090 echo "$me: cannot create a temporary directory in ." >&2
21091 { (exit 1); exit 1; }
21095 # Set up the sed scripts for CONFIG_FILES section.
21098 # No need to generate the scripts if there are no CONFIG_FILES.
21099 # This happens for instance when ./config.status config.h
21100 if test -n "$CONFIG_FILES"; then
21102 _ACEOF
21106 ac_delim='%!_!# '
21107 for ac_last_try in false false false false false :; do
21108 cat >conf$$subs.sed <<_ACEOF
21109 SHELL!$SHELL$ac_delim
21110 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21111 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21112 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21113 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21114 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21115 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21116 exec_prefix!$exec_prefix$ac_delim
21117 prefix!$prefix$ac_delim
21118 program_transform_name!$program_transform_name$ac_delim
21119 bindir!$bindir$ac_delim
21120 sbindir!$sbindir$ac_delim
21121 libexecdir!$libexecdir$ac_delim
21122 datarootdir!$datarootdir$ac_delim
21123 datadir!$datadir$ac_delim
21124 sysconfdir!$sysconfdir$ac_delim
21125 sharedstatedir!$sharedstatedir$ac_delim
21126 localstatedir!$localstatedir$ac_delim
21127 includedir!$includedir$ac_delim
21128 oldincludedir!$oldincludedir$ac_delim
21129 docdir!$docdir$ac_delim
21130 infodir!$infodir$ac_delim
21131 htmldir!$htmldir$ac_delim
21132 dvidir!$dvidir$ac_delim
21133 pdfdir!$pdfdir$ac_delim
21134 psdir!$psdir$ac_delim
21135 libdir!$libdir$ac_delim
21136 localedir!$localedir$ac_delim
21137 mandir!$mandir$ac_delim
21138 DEFS!$DEFS$ac_delim
21139 ECHO_C!$ECHO_C$ac_delim
21140 ECHO_N!$ECHO_N$ac_delim
21141 ECHO_T!$ECHO_T$ac_delim
21142 LIBS!$LIBS$ac_delim
21143 build_alias!$build_alias$ac_delim
21144 host_alias!$host_alias$ac_delim
21145 target_alias!$target_alias$ac_delim
21146 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21147 subdirs!$subdirs$ac_delim
21148 build!$build$ac_delim
21149 build_cpu!$build_cpu$ac_delim
21150 build_vendor!$build_vendor$ac_delim
21151 build_os!$build_os$ac_delim
21152 host!$host$ac_delim
21153 host_cpu!$host_cpu$ac_delim
21154 host_vendor!$host_vendor$ac_delim
21155 host_os!$host_os$ac_delim
21156 target!$target$ac_delim
21157 target_cpu!$target_cpu$ac_delim
21158 target_vendor!$target_vendor$ac_delim
21159 target_os!$target_os$ac_delim
21160 OS!$OS$ac_delim
21161 HOST_OS!$HOST_OS$ac_delim
21162 TARGET_OS!$TARGET_OS$ac_delim
21163 LINKALL!$LINKALL$ac_delim
21164 NOLINKALL!$NOLINKALL$ac_delim
21165 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21166 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21167 ARCH!$ARCH$ac_delim
21168 ENDIAN!$ENDIAN$ac_delim
21169 CC!$CC$ac_delim
21170 CFLAGS!$CFLAGS$ac_delim
21171 LDFLAGS!$LDFLAGS$ac_delim
21172 CPPFLAGS!$CPPFLAGS$ac_delim
21173 ac_ct_CC!$ac_ct_CC$ac_delim
21174 EXEEXT!$EXEEXT$ac_delim
21175 OBJEXT!$OBJEXT$ac_delim
21176 CPP!$CPP$ac_delim
21177 GREP!$GREP$ac_delim
21178 EGREP!$EGREP$ac_delim
21179 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21180 BUILD_CC!$BUILD_CC$ac_delim
21181 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21182 BUILD_CXX!$BUILD_CXX$ac_delim
21183 CVSBUILD!$CVSBUILD$ac_delim
21184 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21185 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21186 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21187 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21188 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21189 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21190 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21191 JIT!$JIT$ac_delim
21192 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21193 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21194 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21195 ENABLE_PIC!$ENABLE_PIC$ac_delim
21196 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21197 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21198 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21199 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21200 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21201 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21202 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21203 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21204 CLANGPATH!$CLANGPATH$ac_delim
21205 CLANGXXPATH!$CLANGXXPATH$ac_delim
21206 _ACEOF
21208 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21209 break
21210 elif $ac_last_try; then
21211 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21212 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21213 { (exit 1); exit 1; }; }
21214 else
21215 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21217 done
21219 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21220 if test -n "$ac_eof"; then
21221 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21222 ac_eof=`expr $ac_eof + 1`
21225 cat >>$CONFIG_STATUS <<_ACEOF
21226 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21227 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21228 _ACEOF
21229 sed '
21230 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21231 s/^/s,@/; s/!/@,|#_!!_#|/
21234 s/'"$ac_delim"'$/,g/; t
21235 s/$/\\/; p
21236 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21237 ' >>$CONFIG_STATUS <conf$$subs.sed
21238 rm -f conf$$subs.sed
21239 cat >>$CONFIG_STATUS <<_ACEOF
21240 CEOF$ac_eof
21241 _ACEOF
21244 ac_delim='%!_!# '
21245 for ac_last_try in false false false false false :; do
21246 cat >conf$$subs.sed <<_ACEOF
21247 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21248 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21249 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21250 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21251 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
21252 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21253 CXX!$CXX$ac_delim
21254 CXXFLAGS!$CXXFLAGS$ac_delim
21255 ac_ct_CXX!$ac_ct_CXX$ac_delim
21256 NM!$NM$ac_delim
21257 ifGNUmake!$ifGNUmake$ac_delim
21258 LN_S!$LN_S$ac_delim
21259 CMP!$CMP$ac_delim
21260 CP!$CP$ac_delim
21261 DATE!$DATE$ac_delim
21262 FIND!$FIND$ac_delim
21263 MKDIR!$MKDIR$ac_delim
21264 MV!$MV$ac_delim
21265 RANLIB!$RANLIB$ac_delim
21266 AR!$AR$ac_delim
21267 RM!$RM$ac_delim
21268 SED!$SED$ac_delim
21269 TAR!$TAR$ac_delim
21270 BINPWD!$BINPWD$ac_delim
21271 GRAPHVIZ!$GRAPHVIZ$ac_delim
21272 DOT!$DOT$ac_delim
21273 FDP!$FDP$ac_delim
21274 NEATO!$NEATO$ac_delim
21275 TWOPI!$TWOPI$ac_delim
21276 CIRCO!$CIRCO$ac_delim
21277 GV!$GV$ac_delim
21278 DOTTY!$DOTTY$ac_delim
21279 PERL!$PERL$ac_delim
21280 HAVE_PERL!$HAVE_PERL$ac_delim
21281 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21282 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21283 INSTALL_DATA!$INSTALL_DATA$ac_delim
21284 BZIP2!$BZIP2$ac_delim
21285 CAT!$CAT$ac_delim
21286 DOXYGEN!$DOXYGEN$ac_delim
21287 GROFF!$GROFF$ac_delim
21288 GZIP!$GZIP$ac_delim
21289 POD2HTML!$POD2HTML$ac_delim
21290 POD2MAN!$POD2MAN$ac_delim
21291 PDFROFF!$PDFROFF$ac_delim
21292 RUNTEST!$RUNTEST$ac_delim
21293 TCLSH!$TCLSH$ac_delim
21294 ZIP!$ZIP$ac_delim
21295 OCAMLC!$OCAMLC$ac_delim
21296 OCAMLOPT!$OCAMLOPT$ac_delim
21297 OCAMLDEP!$OCAMLDEP$ac_delim
21298 OCAMLDOC!$OCAMLDOC$ac_delim
21299 GAS!$GAS$ac_delim
21300 HAVE_LINK_RETAIN_SYMBOLS_FILE!$HAVE_LINK_RETAIN_SYMBOLS_FILE$ac_delim
21301 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21302 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21303 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21304 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21305 LIBADD_DL!$LIBADD_DL$ac_delim
21306 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21307 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21308 LLVMGCC!$LLVMGCC$ac_delim
21309 LLVMGXX!$LLVMGXX$ac_delim
21310 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21311 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21312 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21313 USE_UDIS86!$USE_UDIS86$ac_delim
21314 USE_OPROFILE!$USE_OPROFILE$ac_delim
21315 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21316 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21317 MMAP_FILE!$MMAP_FILE$ac_delim
21318 LLVMCC1!$LLVMCC1$ac_delim
21319 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21320 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21321 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21322 SHLIBEXT!$SHLIBEXT$ac_delim
21323 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21324 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21325 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21326 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21327 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21328 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21329 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21330 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21331 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21332 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21333 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21334 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21335 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21336 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21337 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21338 RPATH!$RPATH$ac_delim
21339 RDYNAMIC!$RDYNAMIC$ac_delim
21340 LIBOBJS!$LIBOBJS$ac_delim
21341 LTLIBOBJS!$LTLIBOBJS$ac_delim
21342 _ACEOF
21344 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
21345 break
21346 elif $ac_last_try; then
21347 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21348 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21349 { (exit 1); exit 1; }; }
21350 else
21351 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21353 done
21355 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21356 if test -n "$ac_eof"; then
21357 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21358 ac_eof=`expr $ac_eof + 1`
21361 cat >>$CONFIG_STATUS <<_ACEOF
21362 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21363 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21364 _ACEOF
21365 sed '
21366 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21367 s/^/s,@/; s/!/@,|#_!!_#|/
21370 s/'"$ac_delim"'$/,g/; t
21371 s/$/\\/; p
21372 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21373 ' >>$CONFIG_STATUS <conf$$subs.sed
21374 rm -f conf$$subs.sed
21375 cat >>$CONFIG_STATUS <<_ACEOF
21376 :end
21377 s/|#_!!_#|//g
21378 CEOF$ac_eof
21379 _ACEOF
21382 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21383 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21384 # trailing colons and then remove the whole line if VPATH becomes empty
21385 # (actually we leave an empty line to preserve line numbers).
21386 if test "x$srcdir" = x.; then
21387 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21388 s/:*\$(srcdir):*/:/
21389 s/:*\${srcdir}:*/:/
21390 s/:*@srcdir@:*/:/
21391 s/^\([^=]*=[ ]*\):*/\1/
21392 s/:*$//
21393 s/^[^=]*=[ ]*$//
21397 cat >>$CONFIG_STATUS <<\_ACEOF
21398 fi # test -n "$CONFIG_FILES"
21401 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21403 case $ac_tag in
21404 :[FHLC]) ac_mode=$ac_tag; continue;;
21405 esac
21406 case $ac_mode$ac_tag in
21407 :[FHL]*:*);;
21408 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21409 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21410 { (exit 1); exit 1; }; };;
21411 :[FH]-) ac_tag=-:-;;
21412 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21413 esac
21414 ac_save_IFS=$IFS
21415 IFS=:
21416 set x $ac_tag
21417 IFS=$ac_save_IFS
21418 shift
21419 ac_file=$1
21420 shift
21422 case $ac_mode in
21423 :L) ac_source=$1;;
21424 :[FH])
21425 ac_file_inputs=
21426 for ac_f
21428 case $ac_f in
21429 -) ac_f="$tmp/stdin";;
21430 *) # Look for the file first in the build tree, then in the source tree
21431 # (if the path is not absolute). The absolute path cannot be DOS-style,
21432 # because $ac_f cannot contain `:'.
21433 test -f "$ac_f" ||
21434 case $ac_f in
21435 [\\/$]*) false;;
21436 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21437 esac ||
21438 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21439 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21440 { (exit 1); exit 1; }; };;
21441 esac
21442 ac_file_inputs="$ac_file_inputs $ac_f"
21443 done
21445 # Let's still pretend it is `configure' which instantiates (i.e., don't
21446 # use $as_me), people would be surprised to read:
21447 # /* config.h. Generated by config.status. */
21448 configure_input="Generated from "`IFS=:
21449 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21450 if test x"$ac_file" != x-; then
21451 configure_input="$ac_file. $configure_input"
21452 { echo "$as_me:$LINENO: creating $ac_file" >&5
21453 echo "$as_me: creating $ac_file" >&6;}
21456 case $ac_tag in
21457 *:-:* | *:-) cat >"$tmp/stdin";;
21458 esac
21460 esac
21462 ac_dir=`$as_dirname -- "$ac_file" ||
21463 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21464 X"$ac_file" : 'X\(//\)[^/]' \| \
21465 X"$ac_file" : 'X\(//\)$' \| \
21466 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21467 echo X"$ac_file" |
21468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21469 s//\1/
21472 /^X\(\/\/\)[^/].*/{
21473 s//\1/
21476 /^X\(\/\/\)$/{
21477 s//\1/
21480 /^X\(\/\).*/{
21481 s//\1/
21484 s/.*/./; q'`
21485 { as_dir="$ac_dir"
21486 case $as_dir in #(
21487 -*) as_dir=./$as_dir;;
21488 esac
21489 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21490 as_dirs=
21491 while :; do
21492 case $as_dir in #(
21493 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21494 *) as_qdir=$as_dir;;
21495 esac
21496 as_dirs="'$as_qdir' $as_dirs"
21497 as_dir=`$as_dirname -- "$as_dir" ||
21498 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21499 X"$as_dir" : 'X\(//\)[^/]' \| \
21500 X"$as_dir" : 'X\(//\)$' \| \
21501 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21502 echo X"$as_dir" |
21503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21504 s//\1/
21507 /^X\(\/\/\)[^/].*/{
21508 s//\1/
21511 /^X\(\/\/\)$/{
21512 s//\1/
21515 /^X\(\/\).*/{
21516 s//\1/
21519 s/.*/./; q'`
21520 test -d "$as_dir" && break
21521 done
21522 test -z "$as_dirs" || eval "mkdir $as_dirs"
21523 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21524 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21525 { (exit 1); exit 1; }; }; }
21526 ac_builddir=.
21528 case "$ac_dir" in
21529 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21531 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21532 # A ".." for each directory in $ac_dir_suffix.
21533 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21534 case $ac_top_builddir_sub in
21535 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21536 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21537 esac ;;
21538 esac
21539 ac_abs_top_builddir=$ac_pwd
21540 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21541 # for backward compatibility:
21542 ac_top_builddir=$ac_top_build_prefix
21544 case $srcdir in
21545 .) # We are building in place.
21546 ac_srcdir=.
21547 ac_top_srcdir=$ac_top_builddir_sub
21548 ac_abs_top_srcdir=$ac_pwd ;;
21549 [\\/]* | ?:[\\/]* ) # Absolute name.
21550 ac_srcdir=$srcdir$ac_dir_suffix;
21551 ac_top_srcdir=$srcdir
21552 ac_abs_top_srcdir=$srcdir ;;
21553 *) # Relative name.
21554 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21555 ac_top_srcdir=$ac_top_build_prefix$srcdir
21556 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21557 esac
21558 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21561 case $ac_mode in
21564 # CONFIG_FILE
21567 case $INSTALL in
21568 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21569 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21570 esac
21571 _ACEOF
21573 cat >>$CONFIG_STATUS <<\_ACEOF
21574 # If the template does not know about datarootdir, expand it.
21575 # FIXME: This hack should be removed a few years after 2.60.
21576 ac_datarootdir_hack=; ac_datarootdir_seen=
21578 case `sed -n '/datarootdir/ {
21582 /@datadir@/p
21583 /@docdir@/p
21584 /@infodir@/p
21585 /@localedir@/p
21586 /@mandir@/p
21587 ' $ac_file_inputs` in
21588 *datarootdir*) ac_datarootdir_seen=yes;;
21589 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21590 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21591 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21592 _ACEOF
21593 cat >>$CONFIG_STATUS <<_ACEOF
21594 ac_datarootdir_hack='
21595 s&@datadir@&$datadir&g
21596 s&@docdir@&$docdir&g
21597 s&@infodir@&$infodir&g
21598 s&@localedir@&$localedir&g
21599 s&@mandir@&$mandir&g
21600 s&\\\${datarootdir}&$datarootdir&g' ;;
21601 esac
21602 _ACEOF
21604 # Neutralize VPATH when `$srcdir' = `.'.
21605 # Shell code in configure.ac might set extrasub.
21606 # FIXME: do we really want to maintain this feature?
21607 cat >>$CONFIG_STATUS <<_ACEOF
21608 sed "$ac_vpsub
21609 $extrasub
21610 _ACEOF
21611 cat >>$CONFIG_STATUS <<\_ACEOF
21613 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21614 s&@configure_input@&$configure_input&;t t
21615 s&@top_builddir@&$ac_top_builddir_sub&;t t
21616 s&@srcdir@&$ac_srcdir&;t t
21617 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21618 s&@top_srcdir@&$ac_top_srcdir&;t t
21619 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21620 s&@builddir@&$ac_builddir&;t t
21621 s&@abs_builddir@&$ac_abs_builddir&;t t
21622 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21623 s&@INSTALL@&$ac_INSTALL&;t t
21624 $ac_datarootdir_hack
21625 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21627 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21628 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21629 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21630 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21631 which seems to be undefined. Please make sure it is defined." >&5
21632 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21633 which seems to be undefined. Please make sure it is defined." >&2;}
21635 rm -f "$tmp/stdin"
21636 case $ac_file in
21637 -) cat "$tmp/out"; rm -f "$tmp/out";;
21638 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21639 esac
21643 # CONFIG_HEADER
21645 _ACEOF
21647 # Transform confdefs.h into a sed script `conftest.defines', that
21648 # substitutes the proper values into config.h.in to produce config.h.
21649 rm -f conftest.defines conftest.tail
21650 # First, append a space to every undef/define line, to ease matching.
21651 echo 's/$/ /' >conftest.defines
21652 # Then, protect against being on the right side of a sed subst, or in
21653 # an unquoted here document, in config.status. If some macros were
21654 # called several times there might be several #defines for the same
21655 # symbol, which is useless. But do not sort them, since the last
21656 # AC_DEFINE must be honored.
21657 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21658 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21659 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21660 # PARAMS is the parameter list in the macro definition--in most cases, it's
21661 # just an empty string.
21662 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21663 ac_dB='\\)[ (].*,\\1define\\2'
21664 ac_dC=' '
21665 ac_dD=' ,'
21667 uniq confdefs.h |
21668 sed -n '
21669 t rset
21670 :rset
21671 s/^[ ]*#[ ]*define[ ][ ]*//
21672 t ok
21675 s/[\\&,]/\\&/g
21676 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21677 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21678 ' >>conftest.defines
21680 # Remove the space that was appended to ease matching.
21681 # Then replace #undef with comments. This is necessary, for
21682 # example, in the case of _POSIX_SOURCE, which is predefined and required
21683 # on some systems where configure will not decide to define it.
21684 # (The regexp can be short, since the line contains either #define or #undef.)
21685 echo 's/ $//
21686 s,^[ #]*u.*,/* & */,' >>conftest.defines
21688 # Break up conftest.defines:
21689 ac_max_sed_lines=50
21691 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21692 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21693 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21694 # et cetera.
21695 ac_in='$ac_file_inputs'
21696 ac_out='"$tmp/out1"'
21697 ac_nxt='"$tmp/out2"'
21699 while :
21701 # Write a here document:
21702 cat >>$CONFIG_STATUS <<_ACEOF
21703 # First, check the format of the line:
21704 cat >"\$tmp/defines.sed" <<\\CEOF
21705 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21706 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21708 :def
21709 _ACEOF
21710 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21711 echo 'CEOF
21712 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21713 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21714 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21715 grep . conftest.tail >/dev/null || break
21716 rm -f conftest.defines
21717 mv conftest.tail conftest.defines
21718 done
21719 rm -f conftest.defines conftest.tail
21721 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21722 cat >>$CONFIG_STATUS <<\_ACEOF
21723 if test x"$ac_file" != x-; then
21724 echo "/* $configure_input */" >"$tmp/config.h"
21725 cat "$ac_result" >>"$tmp/config.h"
21726 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21727 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21728 echo "$as_me: $ac_file is unchanged" >&6;}
21729 else
21730 rm -f $ac_file
21731 mv "$tmp/config.h" $ac_file
21733 else
21734 echo "/* $configure_input */"
21735 cat "$ac_result"
21737 rm -f "$tmp/out12"
21740 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21741 echo "$as_me: executing $ac_file commands" >&6;}
21743 esac
21746 case $ac_file$ac_mode in
21747 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21748 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21749 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21750 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21751 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21752 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21753 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21754 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21755 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21756 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21757 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21758 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21759 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21760 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21761 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21762 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21763 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21764 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21765 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21766 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21767 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21768 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21769 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21770 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21771 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21772 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21774 esac
21775 done # for ac_tag
21778 { (exit 0); exit 0; }
21779 _ACEOF
21780 chmod +x $CONFIG_STATUS
21781 ac_clean_files=$ac_clean_files_save
21784 # configure is writing to config.log, and then calls config.status.
21785 # config.status does its own redirection, appending to config.log.
21786 # Unfortunately, on DOS this fails, as config.log is still kept open
21787 # by configure, so config.status won't be able to write to it; its
21788 # output is simply discarded. So we exec the FD to /dev/null,
21789 # effectively closing config.log, so it can be properly (re)opened and
21790 # appended to by config.status. When coming back to configure, we
21791 # need to make the FD available again.
21792 if test "$no_create" != yes; then
21793 ac_cs_success=:
21794 ac_config_status_args=
21795 test "$silent" = yes &&
21796 ac_config_status_args="$ac_config_status_args --quiet"
21797 exec 5>/dev/null
21798 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21799 exec 5>>config.log
21800 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21801 # would make configure fail if this is the last instruction.
21802 $ac_cs_success || { (exit 1); exit 1; }
21806 # CONFIG_SUBDIRS section.
21808 if test "$no_recursion" != yes; then
21810 # Remove --cache-file and --srcdir arguments so they do not pile up.
21811 ac_sub_configure_args=
21812 ac_prev=
21813 eval "set x $ac_configure_args"
21814 shift
21815 for ac_arg
21817 if test -n "$ac_prev"; then
21818 ac_prev=
21819 continue
21821 case $ac_arg in
21822 -cache-file | --cache-file | --cache-fil | --cache-fi \
21823 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21824 ac_prev=cache_file ;;
21825 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21826 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21827 | --c=*)
21829 --config-cache | -C)
21831 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21832 ac_prev=srcdir ;;
21833 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21835 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21836 ac_prev=prefix ;;
21837 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21840 case $ac_arg in
21841 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21842 esac
21843 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21844 esac
21845 done
21847 # Always prepend --prefix to ensure using the same prefix
21848 # in subdir configurations.
21849 ac_arg="--prefix=$prefix"
21850 case $ac_arg in
21851 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21852 esac
21853 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21855 ac_popdir=`pwd`
21856 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21858 # Do not complain, so a configure script can configure whichever
21859 # parts of a large source tree are present.
21860 test -d "$srcdir/$ac_dir" || continue
21862 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21863 echo "$as_me:$LINENO: $ac_msg" >&5
21864 echo "$ac_msg" >&6
21865 { as_dir="$ac_dir"
21866 case $as_dir in #(
21867 -*) as_dir=./$as_dir;;
21868 esac
21869 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21870 as_dirs=
21871 while :; do
21872 case $as_dir in #(
21873 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21874 *) as_qdir=$as_dir;;
21875 esac
21876 as_dirs="'$as_qdir' $as_dirs"
21877 as_dir=`$as_dirname -- "$as_dir" ||
21878 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21879 X"$as_dir" : 'X\(//\)[^/]' \| \
21880 X"$as_dir" : 'X\(//\)$' \| \
21881 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21882 echo X"$as_dir" |
21883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21884 s//\1/
21887 /^X\(\/\/\)[^/].*/{
21888 s//\1/
21891 /^X\(\/\/\)$/{
21892 s//\1/
21895 /^X\(\/\).*/{
21896 s//\1/
21899 s/.*/./; q'`
21900 test -d "$as_dir" && break
21901 done
21902 test -z "$as_dirs" || eval "mkdir $as_dirs"
21903 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21904 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21905 { (exit 1); exit 1; }; }; }
21906 ac_builddir=.
21908 case "$ac_dir" in
21909 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21911 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21912 # A ".." for each directory in $ac_dir_suffix.
21913 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21914 case $ac_top_builddir_sub in
21915 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21916 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21917 esac ;;
21918 esac
21919 ac_abs_top_builddir=$ac_pwd
21920 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21921 # for backward compatibility:
21922 ac_top_builddir=$ac_top_build_prefix
21924 case $srcdir in
21925 .) # We are building in place.
21926 ac_srcdir=.
21927 ac_top_srcdir=$ac_top_builddir_sub
21928 ac_abs_top_srcdir=$ac_pwd ;;
21929 [\\/]* | ?:[\\/]* ) # Absolute name.
21930 ac_srcdir=$srcdir$ac_dir_suffix;
21931 ac_top_srcdir=$srcdir
21932 ac_abs_top_srcdir=$srcdir ;;
21933 *) # Relative name.
21934 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21935 ac_top_srcdir=$ac_top_build_prefix$srcdir
21936 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21937 esac
21938 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21941 cd "$ac_dir"
21943 # Check for guested configure; otherwise get Cygnus style configure.
21944 if test -f "$ac_srcdir/configure.gnu"; then
21945 ac_sub_configure=$ac_srcdir/configure.gnu
21946 elif test -f "$ac_srcdir/configure"; then
21947 ac_sub_configure=$ac_srcdir/configure
21948 elif test -f "$ac_srcdir/configure.in"; then
21949 # This should be Cygnus configure.
21950 ac_sub_configure=$ac_aux_dir/configure
21951 else
21952 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21953 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21954 ac_sub_configure=
21957 # The recursion is here.
21958 if test -n "$ac_sub_configure"; then
21959 # Make the cache file name correct relative to the subdirectory.
21960 case $cache_file in
21961 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21962 *) # Relative name.
21963 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21964 esac
21966 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21967 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21968 # The eval makes quoting arguments work.
21969 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21970 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21971 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21972 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21973 { (exit 1); exit 1; }; }
21976 cd "$ac_popdir"
21977 done