Fix linux build. posix_spawn doesn't inherit the environment by default.
[llvm.git] / configure
blob84bf2e2d58b55f4014651d6bac0516dae2c0f8dd
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 TARGETS_TO_BUILD
694 LLVM_ENUM_TARGETS
695 LLVM_ENUM_ASM_PRINTERS
696 LLVM_ENUM_ASM_PARSERS
697 LLVM_ENUM_DISASSEMBLERS
698 ENABLE_CBE_PRINTF_A
699 CLANGPATH
700 CLANGXXPATH
701 ENABLE_BUILT_CLANG
702 OPTIMIZE_OPTION
703 EXTRA_OPTIONS
704 BINUTILS_INCDIR
705 ENABLE_LLVMC_DYNAMIC
706 ENABLE_LLVMC_DYNAMIC_PLUGINS
708 CXXFLAGS
709 ac_ct_CXX
711 ifGNUmake
712 LN_S
715 DATE
716 FIND
717 MKDIR
719 RANLIB
724 BINPWD
725 GRAPHVIZ
728 NEATO
729 TWOPI
730 CIRCO
732 DOTTY
733 PERL
734 HAVE_PERL
735 INSTALL_PROGRAM
736 INSTALL_SCRIPT
737 INSTALL_DATA
738 BZIP2
739 DOXYGEN
740 GROFF
741 GZIP
742 POD2HTML
743 POD2MAN
744 RUNTEST
745 TCLSH
747 OCAMLC
748 OCAMLOPT
749 OCAMLDEP
750 OCAMLDOC
752 HAVE_LINK_RETAIN_SYMBOLS_FILE
753 INSTALL_LTDL_TRUE
754 INSTALL_LTDL_FALSE
755 CONVENIENCE_LTDL_TRUE
756 CONVENIENCE_LTDL_FALSE
757 LIBADD_DL
758 LLVMGCCCOMMAND
759 LLVMGXXCOMMAND
760 LLVMGCC
761 LLVMGXX
762 LLVMCC_OPTION
763 NO_VARIADIC_MACROS
764 NO_MISSING_FIELD_INITIALIZERS
765 USE_UDIS86
766 USE_OPROFILE
767 HAVE_PTHREAD
768 HUGE_VAL_SANITY
769 MMAP_FILE
770 LLVMCC1
771 LLVMCC1PLUS
772 LLVMGCCDIR
773 LLVMGCC_LANGS
774 SHLIBEXT
775 SHLIBPATH_VAR
776 LLVM_PREFIX
777 LLVM_BINDIR
778 LLVM_LIBDIR
779 LLVM_DATADIR
780 LLVM_DOCSDIR
781 LLVM_ETCDIR
782 LLVM_INCLUDEDIR
783 LLVM_INFODIR
784 LLVM_MANDIR
785 LLVM_CONFIGTIME
786 BINDINGS_TO_BUILD
787 ALL_BINDINGS
788 OCAML_LIBDIR
789 ENABLE_VISIBILITY_INLINES_HIDDEN
790 RPATH
791 RDYNAMIC
792 LIBOBJS
793 LTLIBOBJS'
794 ac_subst_files=''
795 ac_precious_vars='build_alias
796 host_alias
797 target_alias
799 CFLAGS
800 LDFLAGS
801 CPPFLAGS
804 CXXFLAGS
805 CCC'
806 ac_subdirs_all='projects/llvm-gcc
807 projects/test-suite
808 projects/llvm-test
809 projects/poolalloc
810 projects/llvm-poolalloc
811 projects/sample
812 projects/privbracket
813 projects/llvm-stacker
814 projects/llvm-reopt
815 projects/llvm-java
816 projects/llvm-tv
817 projects/safecode
818 projects/llvm-kernel'
820 # Initialize some variables set by options.
821 ac_init_help=
822 ac_init_version=false
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
825 cache_file=/dev/null
826 exec_prefix=NONE
827 no_create=
828 no_recursion=
829 prefix=NONE
830 program_prefix=NONE
831 program_suffix=NONE
832 program_transform_name=s,x,x,
833 silent=
834 site=
835 srcdir=
836 verbose=
837 x_includes=NONE
838 x_libraries=NONE
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 includedir='${prefix}/include'
855 oldincludedir='/usr/include'
856 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857 infodir='${datarootdir}/info'
858 htmldir='${docdir}'
859 dvidir='${docdir}'
860 pdfdir='${docdir}'
861 psdir='${docdir}'
862 libdir='${exec_prefix}/lib'
863 localedir='${datarootdir}/locale'
864 mandir='${datarootdir}/man'
866 ac_prev=
867 ac_dashdash=
868 for ac_option
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
872 eval $ac_prev=\$ac_option
873 ac_prev=
874 continue
877 case $ac_option in
878 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 *) ac_optarg=yes ;;
880 esac
882 # Accept the important Cygnus configure options, so we can diagnose typos.
884 case $ac_dashdash$ac_option in
886 ac_dashdash=yes ;;
888 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 ac_prev=bindir ;;
890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891 bindir=$ac_optarg ;;
893 -build | --build | --buil | --bui | --bu)
894 ac_prev=build_alias ;;
895 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896 build_alias=$ac_optarg ;;
898 -cache-file | --cache-file | --cache-fil | --cache-fi \
899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900 ac_prev=cache_file ;;
901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903 cache_file=$ac_optarg ;;
905 --config-cache | -C)
906 cache_file=config.cache ;;
908 -datadir | --datadir | --datadi | --datad)
909 ac_prev=datadir ;;
910 -datadir=* | --datadir=* | --datadi=* | --datad=*)
911 datadir=$ac_optarg ;;
913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914 | --dataroo | --dataro | --datar)
915 ac_prev=datarootdir ;;
916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918 datarootdir=$ac_optarg ;;
920 -disable-* | --disable-*)
921 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
924 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
925 { (exit 1); exit 1; }; }
926 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
927 eval enable_$ac_feature=no ;;
929 -docdir | --docdir | --docdi | --doc | --do)
930 ac_prev=docdir ;;
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 docdir=$ac_optarg ;;
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 ac_prev=dvidir ;;
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 dvidir=$ac_optarg ;;
939 -enable-* | --enable-*)
940 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
943 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
944 { (exit 1); exit 1; }; }
945 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
946 eval enable_$ac_feature=\$ac_optarg ;;
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
959 with_gas=yes ;;
961 -help | --help | --hel | --he | -h)
962 ac_init_help=long ;;
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 ac_prev=htmldir ;;
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 | --ht=*)
977 htmldir=$ac_optarg ;;
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 ac_prev=infodir ;;
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
991 -libdir | --libdir | --libdi | --libd)
992 ac_prev=libdir ;;
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 libdir=$ac_optarg ;;
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
1009 | --localstate | --localstat | --localsta | --localst | --locals)
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013 localstatedir=$ac_optarg ;;
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 ac_prev=mandir ;;
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1022 with_fp=no ;;
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1026 no_create=yes ;;
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 no_recursion=yes ;;
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 ac_prev=prefix ;;
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 ac_prev=pdfdir ;;
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1082 -psdir | --psdir | --psdi | --psd | --ps)
1083 ac_prev=psdir ;;
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 psdir=$ac_optarg ;;
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1089 silent=yes ;;
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 ac_prev=sbindir ;;
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 | --sbi=* | --sb=*)
1095 sbindir=$ac_optarg ;;
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1100 | --sha | --sh)
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 | --sha=* | --sh=*)
1106 sharedstatedir=$ac_optarg ;;
1108 -site | --site | --sit)
1109 ac_prev=site ;;
1110 -site=* | --site=* | --sit=*)
1111 site=$ac_optarg ;;
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 ac_prev=srcdir ;;
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 verbose=yes ;;
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1136 -with-* | --with-*)
1137 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1140 { echo "$as_me: error: invalid package name: $ac_package" >&2
1141 { (exit 1); exit 1; }; }
1142 ac_package=`echo $ac_package| sed 's/-/_/g'`
1143 eval with_$ac_package=\$ac_optarg ;;
1145 -without-* | --without-*)
1146 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149 { echo "$as_me: error: invalid package name: $ac_package" >&2
1150 { (exit 1); exit 1; }; }
1151 ac_package=`echo $ac_package | sed 's/-/_/g'`
1152 eval with_$ac_package=no ;;
1154 --x)
1155 # Obsolete; use --with-x.
1156 with_x=yes ;;
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1172 -*) { echo "$as_me: error: unrecognized option: $ac_option
1173 Try \`$0 --help' for more information." >&2
1174 { (exit 1); exit 1; }; }
1177 *=*)
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1181 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1182 { (exit 1); exit 1; }; }
1183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1187 # FIXME: should be removed in autoconf 3.0.
1188 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194 esac
1195 done
1197 if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199 { echo "$as_me: error: missing argument to $ac_option" >&2
1200 { (exit 1); exit 1; }; }
1203 # Be sure to have absolute directory names.
1204 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
1209 eval ac_val=\$$ac_var
1210 case $ac_val in
1211 [\\/$]* | ?:[\\/]* ) continue;;
1212 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213 esac
1214 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1215 { (exit 1); exit 1; }; }
1216 done
1218 # There might be people who depend on the old broken behavior: `$host'
1219 # used to hold the argument of --host etc.
1220 # FIXME: To remove some day.
1221 build=$build_alias
1222 host=$host_alias
1223 target=$target_alias
1225 # FIXME: To remove some day.
1226 if test "x$host_alias" != x; then
1227 if test "x$build_alias" = x; then
1228 cross_compiling=maybe
1229 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1230 If a cross compiler is detected then cross compile mode will be used." >&2
1231 elif test "x$build_alias" != "x$host_alias"; then
1232 cross_compiling=yes
1236 ac_tool_prefix=
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239 test "$silent" = yes && exec 6>/dev/null
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245 { echo "$as_me: error: Working directory cannot be determined" >&2
1246 { (exit 1); exit 1; }; }
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 { echo "$as_me: error: pwd does not report name of working directory" >&2
1249 { (exit 1); exit 1; }; }
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
1255 # Try the directory containing this script, then the parent directory.
1256 ac_confdir=`$as_dirname -- "$0" ||
1257 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$0" : 'X\(//\)[^/]' \| \
1259 X"$0" : 'X\(//\)$' \| \
1260 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1261 echo X"$0" |
1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263 s//\1/
1266 /^X\(\/\/\)[^/].*/{
1267 s//\1/
1270 /^X\(\/\/\)$/{
1271 s//\1/
1274 /^X\(\/\).*/{
1275 s//\1/
1278 s/.*/./; q'`
1279 srcdir=$ac_confdir
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281 srcdir=..
1283 else
1284 ac_srcdir_defaulted=no
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1289 { (exit 1); exit 1; }; }
1291 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 ac_abs_confdir=`(
1293 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1294 { (exit 1); exit 1; }; }
1295 pwd)`
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 srcdir=.
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1303 case $srcdir in
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 esac
1306 for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 done
1314 # Report the --help message.
1316 if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1319 cat <<_ACEOF
1320 \`configure' configures llvm 2.8svn to adapt to many kinds of systems.
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE. See below for descriptions of some of the useful variables.
1327 Defaults for the options are specified in brackets.
1329 Configuration:
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340 Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1344 [PREFIX]
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1351 For better control, use the options below.
1353 Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1373 _ACEOF
1375 cat <<\_ACEOF
1377 System types:
1378 --build=BUILD configure for building on BUILD [guessed]
1379 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1380 --target=TARGET configure for building compilers for TARGET [HOST]
1381 _ACEOF
1384 if test -n "$ac_init_help"; then
1385 case $ac_init_help in
1386 short | recursive ) echo "Configuration of llvm 2.8svn:";;
1387 esac
1388 cat <<\_ACEOF
1390 Optional Features:
1391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1393 --enable-optimized Compile with optimizations enabled (default is NO)
1394 --enable-profiling Compile with profiling enabled (default is NO)
1395 --enable-assertions Compile with assertion checks enabled (default is
1396 YES)
1397 --enable-expensive-checks
1398 Compile with expensive debug checks enabled (default
1399 is NO)
1400 --enable-debug-runtime Build runtime libs with debug symbols (default is
1402 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1403 optimization is on and YES if it's off)
1404 --enable-jit Enable Just In Time Compiling (default is YES)
1405 --enable-doxygen Build doxygen documentation (default is NO)
1406 --enable-threads Use threads if available (default is YES)
1407 --enable-pic Build LLVM with Position Independent Code (default
1408 is YES)
1409 --enable-shared Build a shared library and link tools against it
1410 (default is NO)
1411 --enable-targets Build specific host targets: all or
1412 target1,target2,... Valid targets are: host, x86,
1413 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1414 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1415 and cpp (default=all)
1416 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1417 %a (default is YES)
1418 --enable-bindings Build specific language bindings:
1419 all,auto,none,{binding-name} (default=auto)
1420 --enable-libffi Check for the presence of libffi (default is NO)
1421 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1422 Win32)
1423 --enable-llvmc-dynamic-plugins
1424 Enable dynamic LLVMC plugins (default is YES)
1425 --enable-ltdl-install install libltdl
1427 Optional Packages:
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1430 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1431 searches PATH)
1432 --with-llvmgcc Specify location of llvm-gcc driver (default
1433 searches PATH)
1434 --with-llvmgxx Specify location of llvm-g++ driver (default
1435 searches PATH)
1436 --with-clang Specify location of clang compiler (default is
1437 --with-built-clang)
1438 --with-built-clang Use the compiled Clang as the LLVM compiler
1439 (default=check)
1440 --with-optimize-option Select the compiler options to use for optimized
1441 builds
1442 --with-extra-options Specify additional options to compile LLVM with
1443 --with-ocaml-libdir Specify install location for ocaml bindings (default
1444 is stdlib)
1445 --with-c-include-dirs Colon separated list of directories clang will
1446 search for headers
1447 --with-cxx-include-root Directory with the libstdc++ headers.
1448 --with-cxx-include-arch Architecture of the libstdc++ headers.
1449 --with-cxx-include-32bit-dir
1450 32 bit multilib dir.
1451 --with-cxx-include-64bit-dir
1452 64 bit multilib directory.
1453 --with-binutils-include Specify path to binutils/include/ containing
1454 plugin-api.h file for gold plugin.
1455 --with-tclinclude directory where tcl headers are
1456 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1457 clang, or none; default=check)
1458 --with-udis86=<path> Use udis86 external x86 disassembler library
1459 --with-oprofile=<prefix>
1460 Tell OProfile >= 0.9.4 how to symbolize JIT output
1462 Some influential environment variables:
1463 CC C compiler command
1464 CFLAGS C compiler flags
1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
1467 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1468 you have headers in a nonstandard directory <include dir>
1469 CPP C preprocessor
1470 CXX C++ compiler command
1471 CXXFLAGS C++ compiler flags
1473 Use these variables to override the choices made by `configure' or to help
1474 it to find libraries and programs with nonstandard names/locations.
1476 Report bugs to <llvmbugs@cs.uiuc.edu>.
1477 _ACEOF
1478 ac_status=$?
1481 if test "$ac_init_help" = "recursive"; then
1482 # If there are subdirs, report their specific --help.
1483 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1484 test -d "$ac_dir" || continue
1485 ac_builddir=.
1487 case "$ac_dir" in
1488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1491 # A ".." for each directory in $ac_dir_suffix.
1492 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 esac ;;
1497 esac
1498 ac_abs_top_builddir=$ac_pwd
1499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir=$ac_top_build_prefix
1503 case $srcdir in
1504 .) # We are building in place.
1505 ac_srcdir=.
1506 ac_top_srcdir=$ac_top_builddir_sub
1507 ac_abs_top_srcdir=$ac_pwd ;;
1508 [\\/]* | ?:[\\/]* ) # Absolute name.
1509 ac_srcdir=$srcdir$ac_dir_suffix;
1510 ac_top_srcdir=$srcdir
1511 ac_abs_top_srcdir=$srcdir ;;
1512 *) # Relative name.
1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 esac
1517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519 cd "$ac_dir" || { ac_status=$?; continue; }
1520 # Check for guested configure.
1521 if test -f "$ac_srcdir/configure.gnu"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524 elif test -f "$ac_srcdir/configure"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure" --help=recursive
1527 else
1528 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 fi || ac_status=$?
1530 cd "$ac_pwd" || { ac_status=$?; break; }
1531 done
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1536 cat <<\_ACEOF
1537 llvm configure 2.8svn
1538 generated by GNU Autoconf 2.60
1540 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1541 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1545 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1546 _ACEOF
1547 exit
1549 cat >config.log <<_ACEOF
1550 This file contains any messages produced by compilers while
1551 running configure, to aid debugging if configure makes a mistake.
1553 It was created by llvm $as_me 2.8svn, which was
1554 generated by GNU Autoconf 2.60. Invocation command line was
1556 $ $0 $@
1558 _ACEOF
1559 exec 5>>config.log
1561 cat <<_ASUNAME
1562 ## --------- ##
1563 ## Platform. ##
1564 ## --------- ##
1566 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1567 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1568 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1569 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1570 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1572 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1573 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1575 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1576 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1577 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1578 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1579 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1580 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1581 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1583 _ASUNAME
1585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586 for as_dir in $PATH
1588 IFS=$as_save_IFS
1589 test -z "$as_dir" && as_dir=.
1590 echo "PATH: $as_dir"
1591 done
1592 IFS=$as_save_IFS
1594 } >&5
1596 cat >&5 <<_ACEOF
1599 ## ----------- ##
1600 ## Core tests. ##
1601 ## ----------- ##
1603 _ACEOF
1606 # Keep a trace of the command line.
1607 # Strip out --no-create and --no-recursion so they do not pile up.
1608 # Strip out --silent because we don't want to record it for future runs.
1609 # Also quote any args containing shell meta-characters.
1610 # Make two passes to allow for proper duplicate-argument suppression.
1611 ac_configure_args=
1612 ac_configure_args0=
1613 ac_configure_args1=
1614 ac_must_keep_next=false
1615 for ac_pass in 1 2
1617 for ac_arg
1619 case $ac_arg in
1620 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1621 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1622 | -silent | --silent | --silen | --sile | --sil)
1623 continue ;;
1624 *\'*)
1625 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1626 esac
1627 case $ac_pass in
1628 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1630 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1631 if test $ac_must_keep_next = true; then
1632 ac_must_keep_next=false # Got value, back to normal.
1633 else
1634 case $ac_arg in
1635 *=* | --config-cache | -C | -disable-* | --disable-* \
1636 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1637 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1638 | -with-* | --with-* | -without-* | --without-* | --x)
1639 case "$ac_configure_args0 " in
1640 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1641 esac
1643 -* ) ac_must_keep_next=true ;;
1644 esac
1646 ac_configure_args="$ac_configure_args '$ac_arg'"
1648 esac
1649 done
1650 done
1651 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1652 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1654 # When interrupted or exit'd, cleanup temporary files, and complete
1655 # config.log. We remove comments because anyway the quotes in there
1656 # would cause problems or look ugly.
1657 # WARNING: Use '\'' to represent an apostrophe within the trap.
1658 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1659 trap 'exit_status=$?
1660 # Save into config.log some information that might help in debugging.
1662 echo
1664 cat <<\_ASBOX
1665 ## ---------------- ##
1666 ## Cache variables. ##
1667 ## ---------------- ##
1668 _ASBOX
1669 echo
1670 # The following way of writing the cache mishandles newlines in values,
1672 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1673 eval ac_val=\$$ac_var
1674 case $ac_val in #(
1675 *${as_nl}*)
1676 case $ac_var in #(
1677 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1678 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1679 esac
1680 case $ac_var in #(
1681 _ | IFS | as_nl) ;; #(
1682 *) $as_unset $ac_var ;;
1683 esac ;;
1684 esac
1685 done
1686 (set) 2>&1 |
1687 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1688 *${as_nl}ac_space=\ *)
1689 sed -n \
1690 "s/'\''/'\''\\\\'\'''\''/g;
1691 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1692 ;; #(
1694 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1696 esac |
1697 sort
1699 echo
1701 cat <<\_ASBOX
1702 ## ----------------- ##
1703 ## Output variables. ##
1704 ## ----------------- ##
1705 _ASBOX
1706 echo
1707 for ac_var in $ac_subst_vars
1709 eval ac_val=\$$ac_var
1710 case $ac_val in
1711 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712 esac
1713 echo "$ac_var='\''$ac_val'\''"
1714 done | sort
1715 echo
1717 if test -n "$ac_subst_files"; then
1718 cat <<\_ASBOX
1719 ## ------------------- ##
1720 ## File substitutions. ##
1721 ## ------------------- ##
1722 _ASBOX
1723 echo
1724 for ac_var in $ac_subst_files
1726 eval ac_val=\$$ac_var
1727 case $ac_val in
1728 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729 esac
1730 echo "$ac_var='\''$ac_val'\''"
1731 done | sort
1732 echo
1735 if test -s confdefs.h; then
1736 cat <<\_ASBOX
1737 ## ----------- ##
1738 ## confdefs.h. ##
1739 ## ----------- ##
1740 _ASBOX
1741 echo
1742 cat confdefs.h
1743 echo
1745 test "$ac_signal" != 0 &&
1746 echo "$as_me: caught signal $ac_signal"
1747 echo "$as_me: exit $exit_status"
1748 } >&5
1749 rm -f core *.core core.conftest.* &&
1750 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1751 exit $exit_status
1753 for ac_signal in 1 2 13 15; do
1754 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1755 done
1756 ac_signal=0
1758 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1759 rm -f -r conftest* confdefs.h
1761 # Predefined preprocessor variables.
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_NAME "$PACKAGE_NAME"
1765 _ACEOF
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1770 _ACEOF
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1775 _ACEOF
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_STRING "$PACKAGE_STRING"
1780 _ACEOF
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1785 _ACEOF
1788 # Let the site file select an alternate cache file if it wants to.
1789 # Prefer explicitly selected file to automatically selected ones.
1790 if test -n "$CONFIG_SITE"; then
1791 set x "$CONFIG_SITE"
1792 elif test "x$prefix" != xNONE; then
1793 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1794 else
1795 set x "$ac_default_prefix/share/config.site" \
1796 "$ac_default_prefix/etc/config.site"
1798 shift
1799 for ac_site_file
1801 if test -r "$ac_site_file"; then
1802 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1803 echo "$as_me: loading site script $ac_site_file" >&6;}
1804 sed 's/^/| /' "$ac_site_file" >&5
1805 . "$ac_site_file"
1807 done
1809 if test -r "$cache_file"; then
1810 # Some versions of bash will fail to source /dev/null (special
1811 # files actually), so we avoid doing that.
1812 if test -f "$cache_file"; then
1813 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1814 echo "$as_me: loading cache $cache_file" >&6;}
1815 case $cache_file in
1816 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1817 *) . "./$cache_file";;
1818 esac
1820 else
1821 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1822 echo "$as_me: creating cache $cache_file" >&6;}
1823 >$cache_file
1826 # Check that the precious variables saved in the cache have kept the same
1827 # value.
1828 ac_cache_corrupted=false
1829 for ac_var in $ac_precious_vars; do
1830 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1831 eval ac_new_set=\$ac_env_${ac_var}_set
1832 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1833 eval ac_new_val=\$ac_env_${ac_var}_value
1834 case $ac_old_set,$ac_new_set in
1835 set,)
1836 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1837 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1838 ac_cache_corrupted=: ;;
1839 ,set)
1840 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1841 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1842 ac_cache_corrupted=: ;;
1843 ,);;
1845 if test "x$ac_old_val" != "x$ac_new_val"; then
1846 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1847 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1848 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1849 echo "$as_me: former value: $ac_old_val" >&2;}
1850 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1851 echo "$as_me: current value: $ac_new_val" >&2;}
1852 ac_cache_corrupted=:
1853 fi;;
1854 esac
1855 # Pass precious variables to config.status.
1856 if test "$ac_new_set" = set; then
1857 case $ac_new_val in
1858 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1859 *) ac_arg=$ac_var=$ac_new_val ;;
1860 esac
1861 case " $ac_configure_args " in
1862 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1863 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1864 esac
1866 done
1867 if $ac_cache_corrupted; then
1868 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1869 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1870 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1871 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1872 { (exit 1); exit 1; }; }
1899 ac_ext=c
1900 ac_cpp='$CPP $CPPFLAGS'
1901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1907 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1915 ac_aux_dir=
1916 for ac_dir in autoconf "$srcdir"/autoconf; do
1917 if test -f "$ac_dir/install-sh"; then
1918 ac_aux_dir=$ac_dir
1919 ac_install_sh="$ac_aux_dir/install-sh -c"
1920 break
1921 elif test -f "$ac_dir/install.sh"; then
1922 ac_aux_dir=$ac_dir
1923 ac_install_sh="$ac_aux_dir/install.sh -c"
1924 break
1925 elif test -f "$ac_dir/shtool"; then
1926 ac_aux_dir=$ac_dir
1927 ac_install_sh="$ac_aux_dir/shtool install -c"
1928 break
1930 done
1931 if test -z "$ac_aux_dir"; then
1932 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1933 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1934 { (exit 1); exit 1; }; }
1937 # These three variables are undocumented and unsupported,
1938 # and are intended to be withdrawn in a future Autoconf release.
1939 # They can cause serious problems if a builder's source tree is in a directory
1940 # whose full name contains unusual characters.
1941 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1942 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1943 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1947 if test ${srcdir} != "." ; then
1948 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1949 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1950 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1951 { (exit 1); exit 1; }; }
1957 if test -d ${srcdir}/projects/llvm-gcc ; then
1958 subdirs="$subdirs projects/llvm-gcc"
1962 if test -d ${srcdir}/projects/test-suite ; then
1963 subdirs="$subdirs projects/test-suite"
1967 if test -d ${srcdir}/projects/llvm-test ; then
1968 subdirs="$subdirs projects/llvm-test"
1972 if test -d ${srcdir}/projects/poolalloc ; then
1973 subdirs="$subdirs projects/poolalloc"
1977 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1978 subdirs="$subdirs projects/llvm-poolalloc"
1982 for i in `ls ${srcdir}/projects`
1984 if test -d ${srcdir}/projects/${i} ; then
1985 case ${i} in
1986 CVS) ;;
1987 sample) subdirs="$subdirs projects/sample"
1989 privbracket) subdirs="$subdirs projects/privbracket"
1991 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1993 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1995 llvm-java) subdirs="$subdirs projects/llvm-java"
1997 llvm-tv) subdirs="$subdirs projects/llvm-tv"
1999 safecode) subdirs="$subdirs projects/safecode"
2001 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2003 llvm-gcc) ;;
2004 test-suite) ;;
2005 llvm-test) ;;
2006 poolalloc) ;;
2007 llvm-poolalloc) ;;
2009 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2010 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2012 esac
2014 done
2017 # Make sure we can run config.sub.
2018 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2019 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2020 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2021 { (exit 1); exit 1; }; }
2023 { echo "$as_me:$LINENO: checking build system type" >&5
2024 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2025 if test "${ac_cv_build+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028 ac_build_alias=$build_alias
2029 test "x$ac_build_alias" = x &&
2030 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2031 test "x$ac_build_alias" = x &&
2032 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2033 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2034 { (exit 1); exit 1; }; }
2035 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2036 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2037 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2038 { (exit 1); exit 1; }; }
2041 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2042 echo "${ECHO_T}$ac_cv_build" >&6; }
2043 case $ac_cv_build in
2044 *-*-*) ;;
2045 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2046 echo "$as_me: error: invalid value of canonical build" >&2;}
2047 { (exit 1); exit 1; }; };;
2048 esac
2049 build=$ac_cv_build
2050 ac_save_IFS=$IFS; IFS='-'
2051 set x $ac_cv_build
2052 shift
2053 build_cpu=$1
2054 build_vendor=$2
2055 shift; shift
2056 # Remember, the first character of IFS is used to create $*,
2057 # except with old shells:
2058 build_os=$*
2059 IFS=$ac_save_IFS
2060 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2063 { echo "$as_me:$LINENO: checking host system type" >&5
2064 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2065 if test "${ac_cv_host+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2067 else
2068 if test "x$host_alias" = x; then
2069 ac_cv_host=$ac_cv_build
2070 else
2071 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2072 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2073 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2074 { (exit 1); exit 1; }; }
2078 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2079 echo "${ECHO_T}$ac_cv_host" >&6; }
2080 case $ac_cv_host in
2081 *-*-*) ;;
2082 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2083 echo "$as_me: error: invalid value of canonical host" >&2;}
2084 { (exit 1); exit 1; }; };;
2085 esac
2086 host=$ac_cv_host
2087 ac_save_IFS=$IFS; IFS='-'
2088 set x $ac_cv_host
2089 shift
2090 host_cpu=$1
2091 host_vendor=$2
2092 shift; shift
2093 # Remember, the first character of IFS is used to create $*,
2094 # except with old shells:
2095 host_os=$*
2096 IFS=$ac_save_IFS
2097 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2100 { echo "$as_me:$LINENO: checking target system type" >&5
2101 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2102 if test "${ac_cv_target+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 else
2105 if test "x$target_alias" = x; then
2106 ac_cv_target=$ac_cv_host
2107 else
2108 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2109 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2110 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2111 { (exit 1); exit 1; }; }
2115 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2116 echo "${ECHO_T}$ac_cv_target" >&6; }
2117 case $ac_cv_target in
2118 *-*-*) ;;
2119 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2120 echo "$as_me: error: invalid value of canonical target" >&2;}
2121 { (exit 1); exit 1; }; };;
2122 esac
2123 target=$ac_cv_target
2124 ac_save_IFS=$IFS; IFS='-'
2125 set x $ac_cv_target
2126 shift
2127 target_cpu=$1
2128 target_vendor=$2
2129 shift; shift
2130 # Remember, the first character of IFS is used to create $*,
2131 # except with old shells:
2132 target_os=$*
2133 IFS=$ac_save_IFS
2134 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2137 # The aliases save the names the user supplied, while $host etc.
2138 # will get canonicalized.
2139 test -n "$target_alias" &&
2140 test "$program_prefix$program_suffix$program_transform_name" = \
2141 NONENONEs,x,x, &&
2142 program_prefix=${target_alias}-
2144 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2145 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2146 if test "${llvm_cv_os_type+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2148 else
2149 case $host in
2150 *-*-aix*)
2151 llvm_cv_link_all_option="-Wl,--whole-archive"
2152 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2153 llvm_cv_os_type="AIX"
2154 llvm_cv_platform_type="Unix" ;;
2155 *-*-irix*)
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="IRIX"
2159 llvm_cv_platform_type="Unix" ;;
2160 *-*-cygwin*)
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="Cygwin"
2164 llvm_cv_platform_type="Unix" ;;
2165 *-*-darwin*)
2166 llvm_cv_link_all_option="-Wl,-all_load"
2167 llvm_cv_no_link_all_option="-Wl,-noall_load"
2168 llvm_cv_os_type="Darwin"
2169 llvm_cv_platform_type="Unix" ;;
2170 *-*-minix*)
2171 llvm_cv_link_all_option="-Wl,-all_load"
2172 llvm_cv_no_link_all_option="-Wl,-noall_load"
2173 llvm_cv_os_type="Minix"
2174 llvm_cv_platform_type="Unix" ;;
2175 *-*-freebsd*)
2176 llvm_cv_link_all_option="-Wl,--whole-archive"
2177 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2178 llvm_cv_os_type="FreeBSD"
2179 llvm_cv_platform_type="Unix" ;;
2180 *-*-openbsd*)
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="OpenBSD"
2184 llvm_cv_platform_type="Unix" ;;
2185 *-*-netbsd*)
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="NetBSD"
2189 llvm_cv_platform_type="Unix" ;;
2190 *-*-dragonfly*)
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="DragonFly"
2194 llvm_cv_platform_type="Unix" ;;
2195 *-*-hpux*)
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="HP-UX"
2199 llvm_cv_platform_type="Unix" ;;
2200 *-*-interix*)
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="Interix"
2204 llvm_cv_platform_type="Unix" ;;
2205 *-*-linux*)
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="Linux"
2209 llvm_cv_platform_type="Unix" ;;
2210 *-*-solaris*)
2211 llvm_cv_link_all_option="-Wl,-z,allextract"
2212 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2213 llvm_cv_os_type="SunOS"
2214 llvm_cv_platform_type="Unix" ;;
2215 *-*-auroraux*)
2216 llvm_cv_link_all_option="-Wl,-z,allextract"
2217 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2218 llvm_cv_os_type="AuroraUX"
2219 llvm_cv_platform_type="Unix" ;;
2220 *-*-win32*)
2221 llvm_cv_link_all_option="-Wl,--whole-archive"
2222 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2223 llvm_cv_os_type="Win32"
2224 llvm_cv_platform_type="Win32" ;;
2225 *-*-mingw*)
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="MingW"
2229 llvm_cv_platform_type="Win32" ;;
2230 *-*-haiku*)
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="Haiku"
2234 llvm_cv_platform_type="Unix" ;;
2235 *-unknown-eabi*)
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="Freestanding"
2239 llvm_cv_platform_type="Unix" ;;
2240 *-unknown-elf*)
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" ;;
2246 llvm_cv_link_all_option=""
2247 llvm_cv_no_link_all_option=""
2248 llvm_cv_os_type="Unknown"
2249 llvm_cv_platform_type="Unknown" ;;
2250 esac
2252 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2253 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2255 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2256 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2257 if test "${llvm_cv_target_os_type+set}" = set; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 else
2260 case $target in
2261 *-*-aix*)
2262 llvm_cv_target_os_type="AIX" ;;
2263 *-*-irix*)
2264 llvm_cv_target_os_type="IRIX" ;;
2265 *-*-cygwin*)
2266 llvm_cv_target_os_type="Cygwin" ;;
2267 *-*-darwin*)
2268 llvm_cv_target_os_type="Darwin" ;;
2269 *-*-minix*)
2270 llvm_cv_target_os_type="Minix" ;;
2271 *-*-freebsd*)
2272 llvm_cv_target_os_type="FreeBSD" ;;
2273 *-*-openbsd*)
2274 llvm_cv_target_os_type="OpenBSD" ;;
2275 *-*-netbsd*)
2276 llvm_cv_target_os_type="NetBSD" ;;
2277 *-*-dragonfly*)
2278 llvm_cv_target_os_type="DragonFly" ;;
2279 *-*-hpux*)
2280 llvm_cv_target_os_type="HP-UX" ;;
2281 *-*-interix*)
2282 llvm_cv_target_os_type="Interix" ;;
2283 *-*-linux*)
2284 llvm_cv_target_os_type="Linux" ;;
2285 *-*-solaris*)
2286 llvm_cv_target_os_type="SunOS" ;;
2287 *-*-auroraux*)
2288 llvm_cv_target_os_type="AuroraUX" ;;
2289 *-*-win32*)
2290 llvm_cv_target_os_type="Win32" ;;
2291 *-*-mingw*)
2292 llvm_cv_target_os_type="MingW" ;;
2293 *-*-haiku*)
2294 llvm_cv_target_os_type="Haiku" ;;
2295 *-unknown-eabi*)
2296 llvm_cv_target_os_type="Freestanding" ;;
2298 llvm_cv_target_os_type="Unknown" ;;
2299 esac
2301 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2302 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2304 if test "$llvm_cv_os_type" = "Unknown" ; then
2305 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2306 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2307 { (exit 1); exit 1; }; }
2310 OS=$llvm_cv_os_type
2312 HOST_OS=$llvm_cv_os_type
2314 TARGET_OS=$llvm_cv_target_os_type
2317 LINKALL=$llvm_cv_link_all_option
2319 NOLINKALL=$llvm_cv_no_link_all_option
2322 case $llvm_cv_platform_type in
2323 Unix)
2325 cat >>confdefs.h <<\_ACEOF
2326 #define LLVM_ON_UNIX 1
2327 _ACEOF
2329 LLVM_ON_UNIX=1
2331 LLVM_ON_WIN32=0
2334 Win32)
2336 cat >>confdefs.h <<\_ACEOF
2337 #define LLVM_ON_WIN32 1
2338 _ACEOF
2340 LLVM_ON_UNIX=0
2342 LLVM_ON_WIN32=1
2345 esac
2347 { echo "$as_me:$LINENO: checking target architecture" >&5
2348 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2349 if test "${llvm_cv_target_arch+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352 case $target in
2353 i?86-*) llvm_cv_target_arch="x86" ;;
2354 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2355 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2356 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2357 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2358 arm*-*) llvm_cv_target_arch="ARM" ;;
2359 mips-*) llvm_cv_target_arch="Mips" ;;
2360 pic16-*) llvm_cv_target_arch="PIC16" ;;
2361 xcore-*) llvm_cv_target_arch="XCore" ;;
2362 msp430-*) llvm_cv_target_arch="MSP430" ;;
2363 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2364 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2365 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2366 *) llvm_cv_target_arch="Unknown" ;;
2367 esac
2369 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2370 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2372 if test "$llvm_cv_target_arch" = "Unknown" ; then
2373 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2374 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2377 # Determine the LLVM native architecture for the target
2378 case "$llvm_cv_target_arch" in
2379 x86) LLVM_NATIVE_ARCH="X86" ;;
2380 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2381 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2382 esac
2384 ARCH=$llvm_cv_target_arch
2387 ac_ext=c
2388 ac_cpp='$CPP $CPPFLAGS'
2389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392 if test -n "$ac_tool_prefix"; then
2393 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2394 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397 if test "${ac_cv_prog_CC+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 else
2400 if test -n "$CC"; then
2401 ac_cv_prog_CC="$CC" # Let the user override the test.
2402 else
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 for as_dir in $PATH
2406 IFS=$as_save_IFS
2407 test -z "$as_dir" && as_dir=.
2408 for ac_exec_ext in '' $ac_executable_extensions; do
2409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2410 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412 break 2
2414 done
2415 done
2416 IFS=$as_save_IFS
2420 CC=$ac_cv_prog_CC
2421 if test -n "$CC"; then
2422 { echo "$as_me:$LINENO: result: $CC" >&5
2423 echo "${ECHO_T}$CC" >&6; }
2424 else
2425 { echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6; }
2431 if test -z "$ac_cv_prog_CC"; then
2432 ac_ct_CC=$CC
2433 # Extract the first word of "gcc", so it can be a program name with args.
2434 set dummy gcc; ac_word=$2
2435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2437 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 else
2440 if test -n "$ac_ct_CC"; then
2441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2442 else
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 for as_dir in $PATH
2446 IFS=$as_save_IFS
2447 test -z "$as_dir" && as_dir=.
2448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2450 ac_cv_prog_ac_ct_CC="gcc"
2451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452 break 2
2454 done
2455 done
2456 IFS=$as_save_IFS
2460 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2461 if test -n "$ac_ct_CC"; then
2462 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2463 echo "${ECHO_T}$ac_ct_CC" >&6; }
2464 else
2465 { echo "$as_me:$LINENO: result: no" >&5
2466 echo "${ECHO_T}no" >&6; }
2469 if test "x$ac_ct_CC" = x; then
2470 CC=""
2471 else
2472 case $cross_compiling:$ac_tool_warned in
2473 yes:)
2474 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2475 whose name does not start with the host triplet. If you think this
2476 configuration is useful to you, please write to autoconf@gnu.org." >&5
2477 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2478 whose name does not start with the host triplet. If you think this
2479 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2480 ac_tool_warned=yes ;;
2481 esac
2482 CC=$ac_ct_CC
2484 else
2485 CC="$ac_cv_prog_CC"
2488 if test -z "$CC"; then
2489 if test -n "$ac_tool_prefix"; then
2490 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2491 set dummy ${ac_tool_prefix}cc; ac_word=$2
2492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2494 if test "${ac_cv_prog_CC+set}" = set; then
2495 echo $ECHO_N "(cached) $ECHO_C" >&6
2496 else
2497 if test -n "$CC"; then
2498 ac_cv_prog_CC="$CC" # Let the user override the test.
2499 else
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2507 ac_cv_prog_CC="${ac_tool_prefix}cc"
2508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 break 2
2511 done
2512 done
2513 IFS=$as_save_IFS
2517 CC=$ac_cv_prog_CC
2518 if test -n "$CC"; then
2519 { echo "$as_me:$LINENO: result: $CC" >&5
2520 echo "${ECHO_T}$CC" >&6; }
2521 else
2522 { echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6; }
2529 if test -z "$CC"; then
2530 # Extract the first word of "cc", so it can be a program name with args.
2531 set dummy cc; ac_word=$2
2532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2534 if test "${ac_cv_prog_CC+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 else
2537 if test -n "$CC"; then
2538 ac_cv_prog_CC="$CC" # Let the user override the test.
2539 else
2540 ac_prog_rejected=no
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 for as_dir in $PATH
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
2546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2548 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2549 ac_prog_rejected=yes
2550 continue
2552 ac_cv_prog_CC="cc"
2553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 break 2
2556 done
2557 done
2558 IFS=$as_save_IFS
2560 if test $ac_prog_rejected = yes; then
2561 # We found a bogon in the path, so make sure we never use it.
2562 set dummy $ac_cv_prog_CC
2563 shift
2564 if test $# != 0; then
2565 # We chose a different compiler from the bogus one.
2566 # However, it has the same basename, so the bogon will be chosen
2567 # first if we set CC to just the basename; use the full file name.
2568 shift
2569 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2574 CC=$ac_cv_prog_CC
2575 if test -n "$CC"; then
2576 { echo "$as_me:$LINENO: result: $CC" >&5
2577 echo "${ECHO_T}$CC" >&6; }
2578 else
2579 { echo "$as_me:$LINENO: result: no" >&5
2580 echo "${ECHO_T}no" >&6; }
2585 if test -z "$CC"; then
2586 if test -n "$ac_tool_prefix"; then
2587 for ac_prog in cl.exe
2589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2593 if test "${ac_cv_prog_CC+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 else
2596 if test -n "$CC"; then
2597 ac_cv_prog_CC="$CC" # Let the user override the test.
2598 else
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 for as_dir in $PATH
2602 IFS=$as_save_IFS
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2606 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 break 2
2610 done
2611 done
2612 IFS=$as_save_IFS
2616 CC=$ac_cv_prog_CC
2617 if test -n "$CC"; then
2618 { echo "$as_me:$LINENO: result: $CC" >&5
2619 echo "${ECHO_T}$CC" >&6; }
2620 else
2621 { echo "$as_me:$LINENO: result: no" >&5
2622 echo "${ECHO_T}no" >&6; }
2626 test -n "$CC" && break
2627 done
2629 if test -z "$CC"; then
2630 ac_ct_CC=$CC
2631 for ac_prog in cl.exe
2633 # Extract the first word of "$ac_prog", so it can be a program name with args.
2634 set dummy $ac_prog; ac_word=$2
2635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640 if test -n "$ac_ct_CC"; then
2641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2642 else
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2650 ac_cv_prog_ac_ct_CC="$ac_prog"
2651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 break 2
2654 done
2655 done
2656 IFS=$as_save_IFS
2660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2661 if test -n "$ac_ct_CC"; then
2662 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2663 echo "${ECHO_T}$ac_ct_CC" >&6; }
2664 else
2665 { echo "$as_me:$LINENO: result: no" >&5
2666 echo "${ECHO_T}no" >&6; }
2670 test -n "$ac_ct_CC" && break
2671 done
2673 if test "x$ac_ct_CC" = x; then
2674 CC=""
2675 else
2676 case $cross_compiling:$ac_tool_warned in
2677 yes:)
2678 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2679 whose name does not start with the host triplet. If you think this
2680 configuration is useful to you, please write to autoconf@gnu.org." >&5
2681 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2682 whose name does not start with the host triplet. If you think this
2683 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2684 ac_tool_warned=yes ;;
2685 esac
2686 CC=$ac_ct_CC
2693 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2694 See \`config.log' for more details." >&5
2695 echo "$as_me: error: no acceptable C compiler found in \$PATH
2696 See \`config.log' for more details." >&2;}
2697 { (exit 1); exit 1; }; }
2699 # Provide some information about the compiler.
2700 echo "$as_me:$LINENO: checking for C compiler version" >&5
2701 ac_compiler=`set X $ac_compile; echo $2`
2702 { (ac_try="$ac_compiler --version >&5"
2703 case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2706 esac
2707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_compiler --version >&5") 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }
2712 { (ac_try="$ac_compiler -v >&5"
2713 case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2716 esac
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_compiler -v >&5") 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }
2722 { (ac_try="$ac_compiler -V >&5"
2723 case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726 esac
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_compiler -V >&5") 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }
2733 cat >conftest.$ac_ext <<_ACEOF
2734 /* confdefs.h. */
2735 _ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h. */
2741 main ()
2745 return 0;
2747 _ACEOF
2748 ac_clean_files_save=$ac_clean_files
2749 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2750 # Try to create an executable without -o first, disregard a.out.
2751 # It will help us diagnose broken compilers, and finding out an intuition
2752 # of exeext.
2753 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2754 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2755 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2757 # List of possible output files, starting from the most likely.
2758 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2759 # only as a last resort. b.out is created by i960 compilers.
2760 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2762 # The IRIX 6 linker writes into existing files which may not be
2763 # executable, retaining their permissions. Remove them first so a
2764 # subsequent execution test works.
2765 ac_rmfiles=
2766 for ac_file in $ac_files
2768 case $ac_file in
2769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2770 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2771 esac
2772 done
2773 rm -f $ac_rmfiles
2775 if { (ac_try="$ac_link_default"
2776 case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779 esac
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_link_default") 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; then
2785 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2786 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2787 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2788 # so that the user can short-circuit this test for compilers unknown to
2789 # Autoconf.
2790 for ac_file in $ac_files
2792 test -f "$ac_file" || continue
2793 case $ac_file in
2794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2796 [ab].out )
2797 # We found the default executable, but exeext='' is most
2798 # certainly right.
2799 break;;
2800 *.* )
2801 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2802 then :; else
2803 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2805 # We set ac_cv_exeext here because the later test for it is not
2806 # safe: cross compilers may not add the suffix if given an `-o'
2807 # argument, so we may need to know it at that point already.
2808 # Even if this section looks crufty: it has the advantage of
2809 # actually working.
2810 break;;
2812 break;;
2813 esac
2814 done
2815 test "$ac_cv_exeext" = no && ac_cv_exeext=
2817 else
2818 echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.$ac_ext >&5
2821 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2822 See \`config.log' for more details." >&5
2823 echo "$as_me: error: C compiler cannot create executables
2824 See \`config.log' for more details." >&2;}
2825 { (exit 77); exit 77; }; }
2828 ac_exeext=$ac_cv_exeext
2829 { echo "$as_me:$LINENO: result: $ac_file" >&5
2830 echo "${ECHO_T}$ac_file" >&6; }
2832 # Check that the compiler produces executables we can run. If not, either
2833 # the compiler is broken, or we cross compile.
2834 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2835 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2836 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2837 # If not cross compiling, check that we can run a simple program.
2838 if test "$cross_compiling" != yes; then
2839 if { ac_try='./$ac_file'
2840 { (case "(($ac_try" in
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2843 esac
2844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_try") 2>&5
2846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; }; then
2849 cross_compiling=no
2850 else
2851 if test "$cross_compiling" = maybe; then
2852 cross_compiling=yes
2853 else
2854 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2855 If you meant to cross compile, use \`--host'.
2856 See \`config.log' for more details." >&5
2857 echo "$as_me: error: cannot run C compiled programs.
2858 If you meant to cross compile, use \`--host'.
2859 See \`config.log' for more details." >&2;}
2860 { (exit 1); exit 1; }; }
2864 { echo "$as_me:$LINENO: result: yes" >&5
2865 echo "${ECHO_T}yes" >&6; }
2867 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2868 ac_clean_files=$ac_clean_files_save
2869 # Check that the compiler produces executables we can run. If not, either
2870 # the compiler is broken, or we cross compile.
2871 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2872 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2873 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2874 echo "${ECHO_T}$cross_compiling" >&6; }
2876 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2877 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2878 if { (ac_try="$ac_link"
2879 case "(($ac_try" in
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2882 esac
2883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884 (eval "$ac_link") 2>&5
2885 ac_status=$?
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; then
2888 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2889 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2890 # work properly (i.e., refer to `conftest.exe'), while it won't with
2891 # `rm'.
2892 for ac_file in conftest.exe conftest conftest.*; do
2893 test -f "$ac_file" || continue
2894 case $ac_file in
2895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2896 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2897 break;;
2898 * ) break;;
2899 esac
2900 done
2901 else
2902 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2903 See \`config.log' for more details." >&5
2904 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2905 See \`config.log' for more details." >&2;}
2906 { (exit 1); exit 1; }; }
2909 rm -f conftest$ac_cv_exeext
2910 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2911 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2913 rm -f conftest.$ac_ext
2914 EXEEXT=$ac_cv_exeext
2915 ac_exeext=$EXEEXT
2916 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2917 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2918 if test "${ac_cv_objext+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 else
2921 cat >conftest.$ac_ext <<_ACEOF
2922 /* confdefs.h. */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2929 main ()
2933 return 0;
2935 _ACEOF
2936 rm -f conftest.o conftest.obj
2937 if { (ac_try="$ac_compile"
2938 case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941 esac
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compile") 2>&5
2944 ac_status=$?
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; then
2947 for ac_file in conftest.o conftest.obj conftest.*; do
2948 test -f "$ac_file" || continue;
2949 case $ac_file in
2950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2951 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2952 break;;
2953 esac
2954 done
2955 else
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2959 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2960 See \`config.log' for more details." >&5
2961 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2962 See \`config.log' for more details." >&2;}
2963 { (exit 1); exit 1; }; }
2966 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2968 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2969 echo "${ECHO_T}$ac_cv_objext" >&6; }
2970 OBJEXT=$ac_cv_objext
2971 ac_objext=$OBJEXT
2972 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2973 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2974 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 else
2977 cat >conftest.$ac_ext <<_ACEOF
2978 /* confdefs.h. */
2979 _ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2985 main ()
2987 #ifndef __GNUC__
2988 choke me
2989 #endif
2992 return 0;
2994 _ACEOF
2995 rm -f conftest.$ac_objext
2996 if { (ac_try="$ac_compile"
2997 case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000 esac
3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_compile") 2>conftest.er1
3003 ac_status=$?
3004 grep -v '^ *+' conftest.er1 >conftest.err
3005 rm -f conftest.er1
3006 cat conftest.err >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } &&
3009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3010 { (case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013 esac
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_try") 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; } &&
3019 { ac_try='test -s conftest.$ac_objext'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; }; then
3029 ac_compiler_gnu=yes
3030 else
3031 echo "$as_me: failed program was:" >&5
3032 sed 's/^/| /' conftest.$ac_ext >&5
3034 ac_compiler_gnu=no
3037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3038 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3041 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3042 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3043 GCC=`test $ac_compiler_gnu = yes && echo yes`
3044 ac_test_CFLAGS=${CFLAGS+set}
3045 ac_save_CFLAGS=$CFLAGS
3046 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3047 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3048 if test "${ac_cv_prog_cc_g+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3050 else
3051 ac_save_c_werror_flag=$ac_c_werror_flag
3052 ac_c_werror_flag=yes
3053 ac_cv_prog_cc_g=no
3054 CFLAGS="-g"
3055 cat >conftest.$ac_ext <<_ACEOF
3056 /* confdefs.h. */
3057 _ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3063 main ()
3067 return 0;
3069 _ACEOF
3070 rm -f conftest.$ac_objext
3071 if { (ac_try="$ac_compile"
3072 case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075 esac
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_compile") 2>conftest.er1
3078 ac_status=$?
3079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3085 { (case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088 esac
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_try") 2>&5
3091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; } &&
3094 { ac_try='test -s conftest.$ac_objext'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098 esac
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3104 ac_cv_prog_cc_g=yes
3105 else
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3109 CFLAGS=""
3110 cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h. */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3118 main ()
3122 return 0;
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3127 case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130 esac
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3133 ac_status=$?
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } &&
3139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143 esac
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; } &&
3149 { ac_try='test -s conftest.$ac_objext'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153 esac
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3160 else
3161 echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3164 ac_c_werror_flag=$ac_save_c_werror_flag
3165 CFLAGS="-g"
3166 cat >conftest.$ac_ext <<_ACEOF
3167 /* confdefs.h. */
3168 _ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3174 main ()
3178 return 0;
3180 _ACEOF
3181 rm -f conftest.$ac_objext
3182 if { (ac_try="$ac_compile"
3183 case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186 esac
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_compile") 2>conftest.er1
3189 ac_status=$?
3190 grep -v '^ *+' conftest.er1 >conftest.err
3191 rm -f conftest.er1
3192 cat conftest.err >&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3196 { (case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199 esac
3200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_try") 2>&5
3202 ac_status=$?
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; } &&
3205 { ac_try='test -s conftest.$ac_objext'
3206 { (case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209 esac
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_try") 2>&5
3212 ac_status=$?
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; }; then
3215 ac_cv_prog_cc_g=yes
3216 else
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 ac_c_werror_flag=$ac_save_c_werror_flag
3232 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3233 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3234 if test "$ac_test_CFLAGS" = set; then
3235 CFLAGS=$ac_save_CFLAGS
3236 elif test $ac_cv_prog_cc_g = yes; then
3237 if test "$GCC" = yes; then
3238 CFLAGS="-g -O2"
3239 else
3240 CFLAGS="-g"
3242 else
3243 if test "$GCC" = yes; then
3244 CFLAGS="-O2"
3245 else
3246 CFLAGS=
3249 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3250 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3251 if test "${ac_cv_prog_cc_c89+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254 ac_cv_prog_cc_c89=no
3255 ac_save_CC=$CC
3256 cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h. */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3262 #include <stdarg.h>
3263 #include <stdio.h>
3264 #include <sys/types.h>
3265 #include <sys/stat.h>
3266 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3267 struct buf { int x; };
3268 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3269 static char *e (p, i)
3270 char **p;
3271 int i;
3273 return p[i];
3275 static char *f (char * (*g) (char **, int), char **p, ...)
3277 char *s;
3278 va_list v;
3279 va_start (v,p);
3280 s = g (p, va_arg (v,int));
3281 va_end (v);
3282 return s;
3285 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3286 function prototypes and stuff, but not '\xHH' hex character constants.
3287 These don't provoke an error unfortunately, instead are silently treated
3288 as 'x'. The following induces an error, until -std is added to get
3289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3290 array size at least. It's necessary to write '\x00'==0 to get something
3291 that's true only with -std. */
3292 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3294 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3295 inside strings and character constants. */
3296 #define FOO(x) 'x'
3297 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3299 int test (int i, double x);
3300 struct s1 {int (*f) (int a);};
3301 struct s2 {int (*f) (double a);};
3302 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3303 int argc;
3304 char **argv;
3306 main ()
3308 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3310 return 0;
3312 _ACEOF
3313 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3314 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3316 CC="$ac_save_CC $ac_arg"
3317 rm -f conftest.$ac_objext
3318 if { (ac_try="$ac_compile"
3319 case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322 esac
3323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_compile") 2>conftest.er1
3325 ac_status=$?
3326 grep -v '^ *+' conftest.er1 >conftest.err
3327 rm -f conftest.er1
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3332 { (case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335 esac
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_try") 2>&5
3338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; } &&
3341 { ac_try='test -s conftest.$ac_objext'
3342 { (case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345 esac
3346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_try") 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
3351 ac_cv_prog_cc_c89=$ac_arg
3352 else
3353 echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3359 rm -f core conftest.err conftest.$ac_objext
3360 test "x$ac_cv_prog_cc_c89" != "xno" && break
3361 done
3362 rm -f conftest.$ac_ext
3363 CC=$ac_save_CC
3366 # AC_CACHE_VAL
3367 case "x$ac_cv_prog_cc_c89" in
3369 { echo "$as_me:$LINENO: result: none needed" >&5
3370 echo "${ECHO_T}none needed" >&6; } ;;
3371 xno)
3372 { echo "$as_me:$LINENO: result: unsupported" >&5
3373 echo "${ECHO_T}unsupported" >&6; } ;;
3375 CC="$CC $ac_cv_prog_cc_c89"
3376 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3377 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3378 esac
3381 ac_ext=c
3382 ac_cpp='$CPP $CPPFLAGS'
3383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3388 ac_ext=c
3389 ac_cpp='$CPP $CPPFLAGS'
3390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3393 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3394 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3395 # On Suns, sometimes $CPP names a directory.
3396 if test -n "$CPP" && test -d "$CPP"; then
3397 CPP=
3399 if test -z "$CPP"; then
3400 if test "${ac_cv_prog_CPP+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403 # Double quotes because CPP needs to be expanded
3404 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3406 ac_preproc_ok=false
3407 for ac_c_preproc_warn_flag in '' yes
3409 # Use a header file that comes with gcc, so configuring glibc
3410 # with a fresh cross-compiler works.
3411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3412 # <limits.h> exists even on freestanding compilers.
3413 # On the NeXT, cc -E runs the code through the compiler's parser,
3414 # not just through cpp. "Syntax error" is here to catch this case.
3415 cat >conftest.$ac_ext <<_ACEOF
3416 /* confdefs.h. */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3421 #ifdef __STDC__
3422 # include <limits.h>
3423 #else
3424 # include <assert.h>
3425 #endif
3426 Syntax error
3427 _ACEOF
3428 if { (ac_try="$ac_cpp conftest.$ac_ext"
3429 case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432 esac
3433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3435 ac_status=$?
3436 grep -v '^ *+' conftest.er1 >conftest.err
3437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } >/dev/null; then
3441 if test -s conftest.err; then
3442 ac_cpp_err=$ac_c_preproc_warn_flag
3443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3444 else
3445 ac_cpp_err=
3447 else
3448 ac_cpp_err=yes
3450 if test -z "$ac_cpp_err"; then
3452 else
3453 echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3456 # Broken: fails on valid input.
3457 continue
3460 rm -f conftest.err conftest.$ac_ext
3462 # OK, works on sane cases. Now check whether nonexistent headers
3463 # can be detected and how.
3464 cat >conftest.$ac_ext <<_ACEOF
3465 /* confdefs.h. */
3466 _ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h. */
3470 #include <ac_nonexistent.h>
3471 _ACEOF
3472 if { (ac_try="$ac_cpp conftest.$ac_ext"
3473 case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476 esac
3477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3479 ac_status=$?
3480 grep -v '^ *+' conftest.er1 >conftest.err
3481 rm -f conftest.er1
3482 cat conftest.err >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } >/dev/null; then
3485 if test -s conftest.err; then
3486 ac_cpp_err=$ac_c_preproc_warn_flag
3487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3488 else
3489 ac_cpp_err=
3491 else
3492 ac_cpp_err=yes
3494 if test -z "$ac_cpp_err"; then
3495 # Broken: success on invalid input.
3496 continue
3497 else
3498 echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3501 # Passes both tests.
3502 ac_preproc_ok=:
3503 break
3506 rm -f conftest.err conftest.$ac_ext
3508 done
3509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3510 rm -f conftest.err conftest.$ac_ext
3511 if $ac_preproc_ok; then
3512 break
3515 done
3516 ac_cv_prog_CPP=$CPP
3519 CPP=$ac_cv_prog_CPP
3520 else
3521 ac_cv_prog_CPP=$CPP
3523 { echo "$as_me:$LINENO: result: $CPP" >&5
3524 echo "${ECHO_T}$CPP" >&6; }
3525 ac_preproc_ok=false
3526 for ac_c_preproc_warn_flag in '' yes
3528 # Use a header file that comes with gcc, so configuring glibc
3529 # with a fresh cross-compiler works.
3530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3531 # <limits.h> exists even on freestanding compilers.
3532 # On the NeXT, cc -E runs the code through the compiler's parser,
3533 # not just through cpp. "Syntax error" is here to catch this case.
3534 cat >conftest.$ac_ext <<_ACEOF
3535 /* confdefs.h. */
3536 _ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3540 #ifdef __STDC__
3541 # include <limits.h>
3542 #else
3543 # include <assert.h>
3544 #endif
3545 Syntax error
3546 _ACEOF
3547 if { (ac_try="$ac_cpp conftest.$ac_ext"
3548 case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551 esac
3552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3554 ac_status=$?
3555 grep -v '^ *+' conftest.er1 >conftest.err
3556 rm -f conftest.er1
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } >/dev/null; then
3560 if test -s conftest.err; then
3561 ac_cpp_err=$ac_c_preproc_warn_flag
3562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3563 else
3564 ac_cpp_err=
3566 else
3567 ac_cpp_err=yes
3569 if test -z "$ac_cpp_err"; then
3571 else
3572 echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3575 # Broken: fails on valid input.
3576 continue
3579 rm -f conftest.err conftest.$ac_ext
3581 # OK, works on sane cases. Now check whether nonexistent headers
3582 # can be detected and how.
3583 cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h. */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3589 #include <ac_nonexistent.h>
3590 _ACEOF
3591 if { (ac_try="$ac_cpp conftest.$ac_ext"
3592 case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595 esac
3596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3598 ac_status=$?
3599 grep -v '^ *+' conftest.er1 >conftest.err
3600 rm -f conftest.er1
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } >/dev/null; then
3604 if test -s conftest.err; then
3605 ac_cpp_err=$ac_c_preproc_warn_flag
3606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3607 else
3608 ac_cpp_err=
3610 else
3611 ac_cpp_err=yes
3613 if test -z "$ac_cpp_err"; then
3614 # Broken: success on invalid input.
3615 continue
3616 else
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3620 # Passes both tests.
3621 ac_preproc_ok=:
3622 break
3625 rm -f conftest.err conftest.$ac_ext
3627 done
3628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3629 rm -f conftest.err conftest.$ac_ext
3630 if $ac_preproc_ok; then
3632 else
3633 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3634 See \`config.log' for more details." >&5
3635 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3636 See \`config.log' for more details." >&2;}
3637 { (exit 1); exit 1; }; }
3640 ac_ext=c
3641 ac_cpp='$CPP $CPPFLAGS'
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3647 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3648 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3649 if test "${ac_cv_path_GREP+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 else
3652 # Extract the first word of "grep ggrep" to use in msg output
3653 if test -z "$GREP"; then
3654 set dummy grep ggrep; ac_prog_name=$2
3655 if test "${ac_cv_path_GREP+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658 ac_path_GREP_found=false
3659 # Loop through the user's path and test for each of PROGNAME-LIST
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
3665 for ac_prog in grep ggrep; do
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3668 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3669 # Check for GNU ac_path_GREP and select it if it is found.
3670 # Check for GNU $ac_path_GREP
3671 case `"$ac_path_GREP" --version 2>&1` in
3672 *GNU*)
3673 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3675 ac_count=0
3676 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3677 while :
3679 cat "conftest.in" "conftest.in" >"conftest.tmp"
3680 mv "conftest.tmp" "conftest.in"
3681 cp "conftest.in" "conftest.nl"
3682 echo 'GREP' >> "conftest.nl"
3683 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3685 ac_count=`expr $ac_count + 1`
3686 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3687 # Best one so far, save it but keep looking for a better one
3688 ac_cv_path_GREP="$ac_path_GREP"
3689 ac_path_GREP_max=$ac_count
3691 # 10*(2^10) chars as input seems more than enough
3692 test $ac_count -gt 10 && break
3693 done
3694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3695 esac
3698 $ac_path_GREP_found && break 3
3699 done
3700 done
3702 done
3703 IFS=$as_save_IFS
3708 GREP="$ac_cv_path_GREP"
3709 if test -z "$GREP"; then
3710 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3711 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3712 { (exit 1); exit 1; }; }
3715 else
3716 ac_cv_path_GREP=$GREP
3721 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3722 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3723 GREP="$ac_cv_path_GREP"
3726 { echo "$as_me:$LINENO: checking for egrep" >&5
3727 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3728 if test "${ac_cv_path_EGREP+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 else
3731 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3732 then ac_cv_path_EGREP="$GREP -E"
3733 else
3734 # Extract the first word of "egrep" to use in msg output
3735 if test -z "$EGREP"; then
3736 set dummy egrep; ac_prog_name=$2
3737 if test "${ac_cv_path_EGREP+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740 ac_path_EGREP_found=false
3741 # Loop through the user's path and test for each of PROGNAME-LIST
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
3747 for ac_prog in egrep; do
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3750 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3751 # Check for GNU ac_path_EGREP and select it if it is found.
3752 # Check for GNU $ac_path_EGREP
3753 case `"$ac_path_EGREP" --version 2>&1` in
3754 *GNU*)
3755 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3757 ac_count=0
3758 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3759 while :
3761 cat "conftest.in" "conftest.in" >"conftest.tmp"
3762 mv "conftest.tmp" "conftest.in"
3763 cp "conftest.in" "conftest.nl"
3764 echo 'EGREP' >> "conftest.nl"
3765 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3766 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3767 ac_count=`expr $ac_count + 1`
3768 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3769 # Best one so far, save it but keep looking for a better one
3770 ac_cv_path_EGREP="$ac_path_EGREP"
3771 ac_path_EGREP_max=$ac_count
3773 # 10*(2^10) chars as input seems more than enough
3774 test $ac_count -gt 10 && break
3775 done
3776 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3777 esac
3780 $ac_path_EGREP_found && break 3
3781 done
3782 done
3784 done
3785 IFS=$as_save_IFS
3790 EGREP="$ac_cv_path_EGREP"
3791 if test -z "$EGREP"; then
3792 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3793 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3794 { (exit 1); exit 1; }; }
3797 else
3798 ac_cv_path_EGREP=$EGREP
3804 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3805 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3806 EGREP="$ac_cv_path_EGREP"
3809 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3810 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3811 if test "${ac_cv_header_stdc+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814 cat >conftest.$ac_ext <<_ACEOF
3815 /* confdefs.h. */
3816 _ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3820 #include <stdlib.h>
3821 #include <stdarg.h>
3822 #include <string.h>
3823 #include <float.h>
3826 main ()
3830 return 0;
3832 _ACEOF
3833 rm -f conftest.$ac_objext
3834 if { (ac_try="$ac_compile"
3835 case "(($ac_try" in
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3838 esac
3839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840 (eval "$ac_compile") 2>conftest.er1
3841 ac_status=$?
3842 grep -v '^ *+' conftest.er1 >conftest.err
3843 rm -f conftest.er1
3844 cat conftest.err >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } &&
3847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3848 { (case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851 esac
3852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3853 (eval "$ac_try") 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; } &&
3857 { ac_try='test -s conftest.$ac_objext'
3858 { (case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3861 esac
3862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863 (eval "$ac_try") 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 ac_cv_header_stdc=yes
3868 else
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 ac_cv_header_stdc=no
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3877 if test $ac_cv_header_stdc = yes; then
3878 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3879 cat >conftest.$ac_ext <<_ACEOF
3880 /* confdefs.h. */
3881 _ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h. */
3885 #include <string.h>
3887 _ACEOF
3888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3889 $EGREP "memchr" >/dev/null 2>&1; then
3891 else
3892 ac_cv_header_stdc=no
3894 rm -f conftest*
3898 if test $ac_cv_header_stdc = yes; then
3899 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3900 cat >conftest.$ac_ext <<_ACEOF
3901 /* confdefs.h. */
3902 _ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3906 #include <stdlib.h>
3908 _ACEOF
3909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3910 $EGREP "free" >/dev/null 2>&1; then
3912 else
3913 ac_cv_header_stdc=no
3915 rm -f conftest*
3919 if test $ac_cv_header_stdc = yes; then
3920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3921 if test "$cross_compiling" = yes; then
3923 else
3924 cat >conftest.$ac_ext <<_ACEOF
3925 /* confdefs.h. */
3926 _ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h. */
3930 #include <ctype.h>
3931 #include <stdlib.h>
3932 #if ((' ' & 0x0FF) == 0x020)
3933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3935 #else
3936 # define ISLOWER(c) \
3937 (('a' <= (c) && (c) <= 'i') \
3938 || ('j' <= (c) && (c) <= 'r') \
3939 || ('s' <= (c) && (c) <= 'z'))
3940 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3941 #endif
3943 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3945 main ()
3947 int i;
3948 for (i = 0; i < 256; i++)
3949 if (XOR (islower (i), ISLOWER (i))
3950 || toupper (i) != TOUPPER (i))
3951 return 2;
3952 return 0;
3954 _ACEOF
3955 rm -f conftest$ac_exeext
3956 if { (ac_try="$ac_link"
3957 case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960 esac
3961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962 (eval "$ac_link") 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3966 { (case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969 esac
3970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971 (eval "$ac_try") 2>&5
3972 ac_status=$?
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; }; then
3976 else
3977 echo "$as_me: program exited with status $ac_status" >&5
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3981 ( exit $ac_status )
3982 ac_cv_header_stdc=no
3984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3990 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3991 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3992 if test $ac_cv_header_stdc = yes; then
3994 cat >>confdefs.h <<\_ACEOF
3995 #define STDC_HEADERS 1
3996 _ACEOF
4000 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4010 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4011 inttypes.h stdint.h unistd.h
4013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 else
4019 cat >conftest.$ac_ext <<_ACEOF
4020 /* confdefs.h. */
4021 _ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4025 $ac_includes_default
4027 #include <$ac_header>
4028 _ACEOF
4029 rm -f conftest.$ac_objext
4030 if { (ac_try="$ac_compile"
4031 case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034 esac
4035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036 (eval "$ac_compile") 2>conftest.er1
4037 ac_status=$?
4038 grep -v '^ *+' conftest.er1 >conftest.err
4039 rm -f conftest.er1
4040 cat conftest.err >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } &&
4043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4044 { (case "(($ac_try" in
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4047 esac
4048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_try") 2>&5
4050 ac_status=$?
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; } &&
4053 { ac_try='test -s conftest.$ac_objext'
4054 { (case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4057 esac
4058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059 (eval "$ac_try") 2>&5
4060 ac_status=$?
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); }; }; then
4063 eval "$as_ac_Header=yes"
4064 else
4065 echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4068 eval "$as_ac_Header=no"
4071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 ac_res=`eval echo '${'$as_ac_Header'}'`
4074 { echo "$as_me:$LINENO: result: $ac_res" >&5
4075 echo "${ECHO_T}$ac_res" >&6; }
4076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4077 cat >>confdefs.h <<_ACEOF
4078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4079 _ACEOF
4083 done
4086 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4087 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4088 if test "${ac_cv_c_bigendian+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091 # See if sys/param.h defines the BYTE_ORDER macro.
4092 cat >conftest.$ac_ext <<_ACEOF
4093 /* confdefs.h. */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4098 #include <sys/types.h>
4099 #include <sys/param.h>
4102 main ()
4104 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4105 bogus endian macros
4106 #endif
4109 return 0;
4111 _ACEOF
4112 rm -f conftest.$ac_objext
4113 if { (ac_try="$ac_compile"
4114 case "(($ac_try" in
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4117 esac
4118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119 (eval "$ac_compile") 2>conftest.er1
4120 ac_status=$?
4121 grep -v '^ *+' conftest.er1 >conftest.err
4122 rm -f conftest.er1
4123 cat conftest.err >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } &&
4126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4127 { (case "(($ac_try" in
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4130 esac
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_try") 2>&5
4133 ac_status=$?
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; } &&
4136 { ac_try='test -s conftest.$ac_objext'
4137 { (case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140 esac
4141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142 (eval "$ac_try") 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; }; then
4146 # It does; now see whether it defined to BIG_ENDIAN or not.
4147 cat >conftest.$ac_ext <<_ACEOF
4148 /* confdefs.h. */
4149 _ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4153 #include <sys/types.h>
4154 #include <sys/param.h>
4157 main ()
4159 #if BYTE_ORDER != BIG_ENDIAN
4160 not big endian
4161 #endif
4164 return 0;
4166 _ACEOF
4167 rm -f conftest.$ac_objext
4168 if { (ac_try="$ac_compile"
4169 case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172 esac
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_compile") 2>conftest.er1
4175 ac_status=$?
4176 grep -v '^ *+' conftest.er1 >conftest.err
4177 rm -f conftest.er1
4178 cat conftest.err >&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } &&
4181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4182 { (case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185 esac
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_try") 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; } &&
4191 { ac_try='test -s conftest.$ac_objext'
4192 { (case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4195 esac
4196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_try") 2>&5
4198 ac_status=$?
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4201 ac_cv_c_bigendian=yes
4202 else
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4206 ac_cv_c_bigendian=no
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210 else
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4214 # It does not; compile a test program.
4215 if test "$cross_compiling" = yes; then
4216 # try to guess the endianness by grepping values into an object file
4217 ac_cv_c_bigendian=unknown
4218 cat >conftest.$ac_ext <<_ACEOF
4219 /* confdefs.h. */
4220 _ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h. */
4224 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4225 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4226 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4227 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4228 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4229 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4231 main ()
4233 _ascii (); _ebcdic ();
4235 return 0;
4237 _ACEOF
4238 rm -f conftest.$ac_objext
4239 if { (ac_try="$ac_compile"
4240 case "(($ac_try" in
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4243 esac
4244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245 (eval "$ac_compile") 2>conftest.er1
4246 ac_status=$?
4247 grep -v '^ *+' conftest.er1 >conftest.err
4248 rm -f conftest.er1
4249 cat conftest.err >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } &&
4252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4253 { (case "(($ac_try" in
4254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4256 esac
4257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258 (eval "$ac_try") 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; } &&
4262 { ac_try='test -s conftest.$ac_objext'
4263 { (case "(($ac_try" in
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4266 esac
4267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_try") 2>&5
4269 ac_status=$?
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; }; then
4272 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4273 ac_cv_c_bigendian=yes
4275 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4276 if test "$ac_cv_c_bigendian" = unknown; then
4277 ac_cv_c_bigendian=no
4278 else
4279 # finding both strings is unlikely to happen, but who knows?
4280 ac_cv_c_bigendian=unknown
4283 else
4284 echo "$as_me: failed program was:" >&5
4285 sed 's/^/| /' conftest.$ac_ext >&5
4290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291 else
4292 cat >conftest.$ac_ext <<_ACEOF
4293 /* confdefs.h. */
4294 _ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4298 $ac_includes_default
4300 main ()
4303 /* Are we little or big endian? From Harbison&Steele. */
4304 union
4306 long int l;
4307 char c[sizeof (long int)];
4308 } u;
4309 u.l = 1;
4310 return u.c[sizeof (long int) - 1] == 1;
4313 return 0;
4315 _ACEOF
4316 rm -f conftest$ac_exeext
4317 if { (ac_try="$ac_link"
4318 case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321 esac
4322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323 (eval "$ac_link") 2>&5
4324 ac_status=$?
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4327 { (case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4330 esac
4331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_try") 2>&5
4333 ac_status=$?
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; }; then
4336 ac_cv_c_bigendian=no
4337 else
4338 echo "$as_me: program exited with status $ac_status" >&5
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4342 ( exit $ac_status )
4343 ac_cv_c_bigendian=yes
4345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4353 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4354 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4355 case $ac_cv_c_bigendian in
4356 yes)
4357 ENDIAN=big
4360 ENDIAN=little
4363 { { echo "$as_me:$LINENO: error: unknown endianness
4364 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4365 echo "$as_me: error: unknown endianness
4366 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4367 { (exit 1); exit 1; }; } ;;
4368 esac
4371 if test "$cross_compiling" = yes; then
4372 LLVM_CROSS_COMPILING=1
4375 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4376 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4377 if test "${ac_cv_build_exeext+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 else
4380 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4381 ac_cv_build_exeext=.exe
4382 else
4383 ac_build_prefix=${build_alias}-
4385 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4386 set dummy ${ac_build_prefix}gcc; ac_word=$2
4387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4389 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392 if test -n "$BUILD_CC"; then
4393 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4394 else
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4402 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 break 2
4406 done
4407 done
4408 IFS=$as_save_IFS
4412 BUILD_CC=$ac_cv_prog_BUILD_CC
4413 if test -n "$BUILD_CC"; then
4414 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4415 echo "${ECHO_T}$BUILD_CC" >&6; }
4416 else
4417 { echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6; }
4422 if test -z "$BUILD_CC"; then
4423 # Extract the first word of "gcc", so it can be a program name with args.
4424 set dummy gcc; ac_word=$2
4425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4427 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430 if test -n "$BUILD_CC"; then
4431 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4432 else
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4440 ac_cv_prog_BUILD_CC="gcc"
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 break 2
4444 done
4445 done
4446 IFS=$as_save_IFS
4450 BUILD_CC=$ac_cv_prog_BUILD_CC
4451 if test -n "$BUILD_CC"; then
4452 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4453 echo "${ECHO_T}$BUILD_CC" >&6; }
4454 else
4455 { echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6; }
4460 if test -z "$BUILD_CC"; then
4461 # Extract the first word of "cc", so it can be a program name with args.
4462 set dummy cc; ac_word=$2
4463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4465 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468 if test -n "$BUILD_CC"; then
4469 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4470 else
4471 ac_prog_rejected=no
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4480 ac_prog_rejected=yes
4481 continue
4483 ac_cv_prog_BUILD_CC="cc"
4484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 break 2
4487 done
4488 done
4489 IFS=$as_save_IFS
4491 if test $ac_prog_rejected = yes; then
4492 # We found a bogon in the path, so make sure we never use it.
4493 set dummy $ac_cv_prog_BUILD_CC
4494 shift
4495 if test $# != 0; then
4496 # We chose a different compiler from the bogus one.
4497 # However, it has the same basename, so the bogon will be chosen
4498 # first if we set BUILD_CC to just the basename; use the full file name.
4499 shift
4500 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4505 BUILD_CC=$ac_cv_prog_BUILD_CC
4506 if test -n "$BUILD_CC"; then
4507 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4508 echo "${ECHO_T}$BUILD_CC" >&6; }
4509 else
4510 { echo "$as_me:$LINENO: result: no" >&5
4511 echo "${ECHO_T}no" >&6; }
4517 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4518 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4519 { (exit 1); exit 1; }; }
4520 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4521 rm -f conftest*
4522 echo 'int main () { return 0; }' > conftest.$ac_ext
4523 ac_cv_build_exeext=
4524 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4525 (eval $ac_build_link) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; then
4529 for file in conftest.*; do
4530 case $file in
4531 *.c | *.o | *.obj | *.dSYM) ;;
4532 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4533 esac
4534 done
4535 else
4536 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4537 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4538 { (exit 1); exit 1; }; }
4540 rm -f conftest*
4541 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4545 BUILD_EXEEXT=""
4546 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4547 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4548 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4549 ac_build_exeext=$BUILD_EXEEXT
4551 ac_build_prefix=${build_alias}-
4552 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4553 set dummy ${ac_build_prefix}g++; ac_word=$2
4554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4556 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559 if test -n "$BUILD_CXX"; then
4560 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4561 else
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4569 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 break 2
4573 done
4574 done
4575 IFS=$as_save_IFS
4579 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4580 if test -n "$BUILD_CXX"; then
4581 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4582 echo "${ECHO_T}$BUILD_CXX" >&6; }
4583 else
4584 { echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6; }
4589 if test -z "$BUILD_CXX"; then
4590 # Extract the first word of "g++", so it can be a program name with args.
4591 set dummy g++; ac_word=$2
4592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4594 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 else
4597 if test -n "$BUILD_CXX"; then
4598 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4599 else
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4607 ac_cv_prog_BUILD_CXX="g++"
4608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4611 done
4612 done
4613 IFS=$as_save_IFS
4617 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4618 if test -n "$BUILD_CXX"; then
4619 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4620 echo "${ECHO_T}$BUILD_CXX" >&6; }
4621 else
4622 { echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6; }
4627 if test -z "$BUILD_CXX"; then
4628 # Extract the first word of "c++", so it can be a program name with args.
4629 set dummy c++; ac_word=$2
4630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635 if test -n "$BUILD_CXX"; then
4636 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4637 else
4638 ac_prog_rejected=no
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4647 ac_prog_rejected=yes
4648 continue
4650 ac_cv_prog_BUILD_CXX="c++"
4651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
4654 done
4655 done
4656 IFS=$as_save_IFS
4658 if test $ac_prog_rejected = yes; then
4659 # We found a bogon in the path, so make sure we never use it.
4660 set dummy $ac_cv_prog_BUILD_CXX
4661 shift
4662 if test $# != 0; then
4663 # We chose a different compiler from the bogus one.
4664 # However, it has the same basename, so the bogon will be chosen
4665 # first if we set BUILD_CXX to just the basename; use the full file name.
4666 shift
4667 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4672 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4673 if test -n "$BUILD_CXX"; then
4674 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4675 echo "${ECHO_T}$BUILD_CXX" >&6; }
4676 else
4677 { echo "$as_me:$LINENO: result: no" >&5
4678 echo "${ECHO_T}no" >&6; }
4684 else
4685 LLVM_CROSS_COMPILING=0
4689 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4690 cvsbuild="yes"
4691 optimize="no"
4692 CVSBUILD=CVSBUILD=1
4694 else
4695 cvsbuild="no"
4696 optimize="yes"
4700 # Check whether --enable-optimized was given.
4701 if test "${enable_optimized+set}" = set; then
4702 enableval=$enable_optimized;
4703 else
4704 enableval=$optimize
4707 if test ${enableval} = "no" ; then
4708 ENABLE_OPTIMIZED=
4710 else
4711 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4715 # Check whether --enable-profiling was given.
4716 if test "${enable_profiling+set}" = set; then
4717 enableval=$enable_profiling;
4718 else
4719 enableval="no"
4722 if test ${enableval} = "no" ; then
4723 ENABLE_PROFILING=
4725 else
4726 ENABLE_PROFILING=ENABLE_PROFILING=1
4730 # Check whether --enable-assertions was given.
4731 if test "${enable_assertions+set}" = set; then
4732 enableval=$enable_assertions;
4733 else
4734 enableval="yes"
4737 if test ${enableval} = "yes" ; then
4738 DISABLE_ASSERTIONS=
4740 else
4741 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4745 # Check whether --enable-expensive-checks was given.
4746 if test "${enable_expensive_checks+set}" = set; then
4747 enableval=$enable_expensive_checks;
4748 else
4749 enableval="no"
4752 if test ${enableval} = "yes" ; then
4753 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4755 EXPENSIVE_CHECKS=yes
4757 else
4758 ENABLE_EXPENSIVE_CHECKS=
4760 EXPENSIVE_CHECKS=no
4764 # Check whether --enable-debug-runtime was given.
4765 if test "${enable_debug_runtime+set}" = set; then
4766 enableval=$enable_debug_runtime;
4767 else
4768 enableval=no
4771 if test ${enableval} = "no" ; then
4772 DEBUG_RUNTIME=
4774 else
4775 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4779 # Check whether --enable-debug-symbols was given.
4780 if test "${enable_debug_symbols+set}" = set; then
4781 enableval=$enable_debug_symbols;
4782 else
4783 enableval=no
4786 if test ${enableval} = "no" ; then
4787 DEBUG_SYMBOLS=
4789 else
4790 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4794 # Check whether --enable-jit was given.
4795 if test "${enable_jit+set}" = set; then
4796 enableval=$enable_jit;
4797 else
4798 enableval=default
4801 if test ${enableval} = "no"
4802 then
4803 JIT=
4805 else
4806 case "$llvm_cv_target_arch" in
4807 x86) TARGET_HAS_JIT=1
4809 Sparc) TARGET_HAS_JIT=0
4811 PowerPC) TARGET_HAS_JIT=1
4813 x86_64) TARGET_HAS_JIT=1
4815 Alpha) TARGET_HAS_JIT=1
4817 ARM) TARGET_HAS_JIT=1
4819 Mips) TARGET_HAS_JIT=0
4821 PIC16) TARGET_HAS_JIT=0
4823 XCore) TARGET_HAS_JIT=0
4825 MSP430) TARGET_HAS_JIT=0
4827 SystemZ) TARGET_HAS_JIT=0
4829 Blackfin) TARGET_HAS_JIT=0
4831 MBlaze) TARGET_HAS_JIT=0
4833 *) TARGET_HAS_JIT=0
4835 esac
4838 # Check whether --enable-doxygen was given.
4839 if test "${enable_doxygen+set}" = set; then
4840 enableval=$enable_doxygen;
4841 else
4842 enableval=default
4845 case "$enableval" in
4846 yes) ENABLE_DOXYGEN=1
4848 no) ENABLE_DOXYGEN=0
4850 default) ENABLE_DOXYGEN=0
4852 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4853 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4854 { (exit 1); exit 1; }; } ;;
4855 esac
4857 # Check whether --enable-threads was given.
4858 if test "${enable_threads+set}" = set; then
4859 enableval=$enable_threads;
4860 else
4861 enableval=default
4864 case "$enableval" in
4865 yes) ENABLE_THREADS=1
4867 no) ENABLE_THREADS=0
4869 default) ENABLE_THREADS=1
4871 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4872 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4873 { (exit 1); exit 1; }; } ;;
4874 esac
4876 cat >>confdefs.h <<_ACEOF
4877 #define ENABLE_THREADS $ENABLE_THREADS
4878 _ACEOF
4881 # Check whether --enable-pic was given.
4882 if test "${enable_pic+set}" = set; then
4883 enableval=$enable_pic;
4884 else
4885 enableval=default
4888 case "$enableval" in
4889 yes) ENABLE_PIC=1
4891 no) ENABLE_PIC=0
4893 default) ENABLE_PIC=1
4895 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4896 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4897 { (exit 1); exit 1; }; } ;;
4898 esac
4900 cat >>confdefs.h <<_ACEOF
4901 #define ENABLE_PIC $ENABLE_PIC
4902 _ACEOF
4905 # Check whether --enable-shared was given.
4906 if test "${enable_shared+set}" = set; then
4907 enableval=$enable_shared;
4908 else
4909 enableval=default
4912 case "$enableval" in
4913 yes) ENABLE_SHARED=1
4915 no) ENABLE_SHARED=0
4917 default) ENABLE_SHARED=0
4919 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4920 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4921 { (exit 1); exit 1; }; } ;;
4922 esac
4924 TARGETS_TO_BUILD=""
4925 # Check whether --enable-targets was given.
4926 if test "${enable_targets+set}" = set; then
4927 enableval=$enable_targets;
4928 else
4929 enableval=all
4932 if test "$enableval" = host-only ; then
4933 enableval=host
4935 case "$enableval" in
4936 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
4937 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4938 case "$a_target" in
4939 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4940 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4941 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4942 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4943 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4944 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4945 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4946 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4947 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4948 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4949 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4950 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4951 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4952 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4953 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4954 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4955 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4956 host) case "$llvm_cv_target_arch" in
4957 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4958 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4959 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4960 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4961 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4962 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4963 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4964 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4965 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4966 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4967 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4968 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4969 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4970 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4971 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4972 echo "$as_me: error: Can not set target to build" >&2;}
4973 { (exit 1); exit 1; }; } ;;
4974 esac ;;
4975 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4976 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4977 { (exit 1); exit 1; }; } ;;
4978 esac
4979 done
4981 esac
4982 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4985 # Determine whether we are building LLVM support for the native architecture.
4986 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4987 for a_target in $TARGETS_TO_BUILD; do
4988 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4989 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4991 cat >>confdefs.h <<_ACEOF
4992 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4993 _ACEOF
4996 done
4998 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4999 # target feature def files.
5000 LLVM_ENUM_TARGETS=""
5001 LLVM_ENUM_ASM_PRINTERS=""
5002 LLVM_ENUM_ASM_PARSERS=""
5003 LLVM_ENUM_DISASSEMBLERS=""
5004 for target_to_build in $TARGETS_TO_BUILD; do
5005 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5006 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5007 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5009 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5010 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5012 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5013 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5015 done
5021 # Check whether --enable-cbe-printf-a was given.
5022 if test "${enable_cbe_printf_a+set}" = set; then
5023 enableval=$enable_cbe_printf_a;
5024 else
5025 enableval=default
5028 case "$enableval" in
5029 yes) ENABLE_CBE_PRINTF_A=1
5031 no) ENABLE_CBE_PRINTF_A=0
5033 default) ENABLE_CBE_PRINTF_A=1
5035 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5036 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5037 { (exit 1); exit 1; }; } ;;
5038 esac
5040 cat >>confdefs.h <<_ACEOF
5041 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5042 _ACEOF
5046 # Check whether --with-llvmgccdir was given.
5047 if test "${with_llvmgccdir+set}" = set; then
5048 withval=$with_llvmgccdir;
5049 else
5050 withval=default
5053 case "$withval" in
5054 default) WITH_LLVMGCCDIR=default ;;
5055 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5056 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5057 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5058 { (exit 1); exit 1; }; } ;;
5059 esac
5062 # Check whether --with-llvmgcc was given.
5063 if test "${with_llvmgcc+set}" = set; then
5064 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5065 WITH_LLVMGCCDIR=""
5070 # Check whether --with-llvmgxx was given.
5071 if test "${with_llvmgxx+set}" = set; then
5072 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5073 WITH_LLVMGCCDIR=""
5077 if test -n "$LLVMGCC"; then
5078 LLVMGCCCOMMAND="$LLVMGCC"
5081 if test -n "$LLVMGXX"; then
5082 LLVMGXXCOMMAND="$LLVMGXX"
5085 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5086 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5087 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5088 { (exit 1); exit 1; }; };
5091 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5092 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5093 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5094 { (exit 1); exit 1; }; };
5098 # Check whether --with-clang was given.
5099 if test "${with_clang+set}" = set; then
5100 withval=$with_clang;
5101 else
5102 with_clang=default
5107 # Check whether --with-built-clang was given.
5108 if test "${with_built_clang+set}" = set; then
5109 withval=$with_built_clang;
5110 else
5111 with_built_clang=check
5115 { echo "$as_me:$LINENO: checking clang compiler" >&5
5116 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5117 WITH_CLANGPATH=""
5118 WITH_BUILT_CLANG=0
5119 if test "$with_clang" != "default"; then
5120 WITH_CLANGPATH="$with_clang"
5121 if ! test -x "$WITH_CLANGPATH"; then
5122 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5123 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5124 { (exit 1); exit 1; }; }
5126 elif test "$with_built_clang" = "yes"; then
5127 WITH_BUILT_CLANG=1
5128 elif test "$with_built_clang" = "no"; then
5129 WITH_BUILT_CLANG=0
5130 else
5131 if test "$with_built_clang" != "check"; then
5132 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5133 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5134 { (exit 1); exit 1; }; }
5137 if test -f ${srcdir}/tools/clang/README.txt; then
5138 WITH_BUILT_CLANG=1
5142 if ! test -z "$WITH_CLANGPATH"; then
5143 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5144 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5145 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5146 elif test "$WITH_BUILT_CLANG" = "1"; then
5147 { echo "$as_me:$LINENO: result: built" >&5
5148 echo "${ECHO_T}built" >&6; }
5149 else
5150 { echo "$as_me:$LINENO: result: none" >&5
5151 echo "${ECHO_T}none" >&6; }
5153 CLANGPATH=$WITH_CLANGPATH
5155 CLANGXXPATH=$WITH_CLANGXXPATH
5157 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5161 # Check whether --with-optimize-option was given.
5162 if test "${with_optimize_option+set}" = set; then
5163 withval=$with_optimize_option;
5164 else
5165 withval=default
5168 { echo "$as_me:$LINENO: checking optimization flags" >&5
5169 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5170 case "$withval" in
5171 default)
5172 case "$llvm_cv_os_type" in
5173 MingW) optimize_option=-O2 ;;
5174 *) optimize_option=-O3 ;;
5175 esac ;;
5176 *) optimize_option="$withval" ;;
5177 esac
5178 OPTIMIZE_OPTION=$optimize_option
5180 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5181 echo "${ECHO_T}$optimize_option" >&6; }
5184 # Check whether --with-extra-options was given.
5185 if test "${with_extra_options+set}" = set; then
5186 withval=$with_extra_options;
5187 else
5188 withval=default
5191 case "$withval" in
5192 default) EXTRA_OPTIONS= ;;
5193 *) EXTRA_OPTIONS=$withval ;;
5194 esac
5195 EXTRA_OPTIONS=$EXTRA_OPTIONS
5198 # Check whether --enable-bindings was given.
5199 if test "${enable_bindings+set}" = set; then
5200 enableval=$enable_bindings;
5201 else
5202 enableval=default
5205 BINDINGS_TO_BUILD=""
5206 case "$enableval" in
5207 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5208 all ) BINDINGS_TO_BUILD="ocaml" ;;
5209 none | no) BINDINGS_TO_BUILD="" ;;
5210 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5211 case "$a_binding" in
5212 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5213 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5214 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5215 { (exit 1); exit 1; }; } ;;
5216 esac
5217 done
5219 esac
5222 # Check whether --with-ocaml-libdir was given.
5223 if test "${with_ocaml_libdir+set}" = set; then
5224 withval=$with_ocaml_libdir;
5225 else
5226 withval=auto
5229 case "$withval" in
5230 auto) with_ocaml_libdir="$withval" ;;
5231 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5232 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5233 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5234 { (exit 1); exit 1; }; } ;;
5235 esac
5238 # Check whether --with-c-include-dirs was given.
5239 if test "${with_c_include_dirs+set}" = set; then
5240 withval=$with_c_include_dirs;
5241 else
5242 withval=""
5246 cat >>confdefs.h <<_ACEOF
5247 #define C_INCLUDE_DIRS "$withval"
5248 _ACEOF
5252 # Check whether --with-cxx-include-root was given.
5253 if test "${with_cxx_include_root+set}" = set; then
5254 withval=$with_cxx_include_root;
5255 else
5256 withval=""
5260 cat >>confdefs.h <<_ACEOF
5261 #define CXX_INCLUDE_ROOT "$withval"
5262 _ACEOF
5266 # Check whether --with-cxx-include-arch was given.
5267 if test "${with_cxx_include_arch+set}" = set; then
5268 withval=$with_cxx_include_arch;
5269 else
5270 withval=""
5274 cat >>confdefs.h <<_ACEOF
5275 #define CXX_INCLUDE_ARCH "$withval"
5276 _ACEOF
5280 # Check whether --with-cxx-include-32bit-dir was given.
5281 if test "${with_cxx_include_32bit_dir+set}" = set; then
5282 withval=$with_cxx_include_32bit_dir;
5283 else
5284 withval=""
5288 cat >>confdefs.h <<_ACEOF
5289 #define CXX_INCLUDE_32BIT_DIR "$withval"
5290 _ACEOF
5294 # Check whether --with-cxx-include-64bit-dir was given.
5295 if test "${with_cxx_include_64bit_dir+set}" = set; then
5296 withval=$with_cxx_include_64bit_dir;
5297 else
5298 withval=""
5302 cat >>confdefs.h <<_ACEOF
5303 #define CXX_INCLUDE_64BIT_DIR "$withval"
5304 _ACEOF
5308 # Check whether --with-binutils-include was given.
5309 if test "${with_binutils_include+set}" = set; then
5310 withval=$with_binutils_include;
5311 else
5312 withval=default
5315 case "$withval" in
5316 default) WITH_BINUTILS_INCDIR=default ;;
5317 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5318 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5319 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5320 { (exit 1); exit 1; }; } ;;
5321 esac
5322 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5323 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5325 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5326 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5327 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5328 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5329 { (exit 1); exit 1; }; };
5333 # Check whether --enable-libffi was given.
5334 if test "${enable_libffi+set}" = set; then
5335 enableval=$enable_libffi; case "$enableval" in
5336 yes) llvm_cv_enable_libffi="yes" ;;
5337 no) llvm_cv_enable_libffi="no" ;;
5338 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5339 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5340 { (exit 1); exit 1; }; } ;;
5341 esac
5342 else
5343 llvm_cv_enable_libffi=no
5347 if test "$llvm_cv_os_type" = "Win32" ; then
5348 llvmc_dynamic="yes"
5349 else
5350 llvmc_dynamic="no"
5353 # Check whether --enable-llvmc-dynamic was given.
5354 if test "${enable_llvmc_dynamic+set}" = set; then
5355 enableval=$enable_llvmc_dynamic;
5356 else
5357 enableval=$llvmc_dynamic
5360 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5361 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5363 else
5364 ENABLE_LLVMC_DYNAMIC=
5368 # Check whether --enable-llvmc-dynamic-plugins was given.
5369 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5370 enableval=$enable_llvmc_dynamic_plugins;
5371 else
5372 enableval=yes
5375 if test ${enableval} = "yes" ; then
5376 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5378 else
5379 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5384 ac_ext=c
5385 ac_cpp='$CPP $CPPFLAGS'
5386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5389 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5390 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5391 # On Suns, sometimes $CPP names a directory.
5392 if test -n "$CPP" && test -d "$CPP"; then
5393 CPP=
5395 if test -z "$CPP"; then
5396 if test "${ac_cv_prog_CPP+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5398 else
5399 # Double quotes because CPP needs to be expanded
5400 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5402 ac_preproc_ok=false
5403 for ac_c_preproc_warn_flag in '' yes
5405 # Use a header file that comes with gcc, so configuring glibc
5406 # with a fresh cross-compiler works.
5407 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5408 # <limits.h> exists even on freestanding compilers.
5409 # On the NeXT, cc -E runs the code through the compiler's parser,
5410 # not just through cpp. "Syntax error" is here to catch this case.
5411 cat >conftest.$ac_ext <<_ACEOF
5412 /* confdefs.h. */
5413 _ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h. */
5417 #ifdef __STDC__
5418 # include <limits.h>
5419 #else
5420 # include <assert.h>
5421 #endif
5422 Syntax error
5423 _ACEOF
5424 if { (ac_try="$ac_cpp conftest.$ac_ext"
5425 case "(($ac_try" in
5426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427 *) ac_try_echo=$ac_try;;
5428 esac
5429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5431 ac_status=$?
5432 grep -v '^ *+' conftest.er1 >conftest.err
5433 rm -f conftest.er1
5434 cat conftest.err >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); } >/dev/null; then
5437 if test -s conftest.err; then
5438 ac_cpp_err=$ac_c_preproc_warn_flag
5439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5440 else
5441 ac_cpp_err=
5443 else
5444 ac_cpp_err=yes
5446 if test -z "$ac_cpp_err"; then
5448 else
5449 echo "$as_me: failed program was:" >&5
5450 sed 's/^/| /' conftest.$ac_ext >&5
5452 # Broken: fails on valid input.
5453 continue
5456 rm -f conftest.err conftest.$ac_ext
5458 # OK, works on sane cases. Now check whether nonexistent headers
5459 # can be detected and how.
5460 cat >conftest.$ac_ext <<_ACEOF
5461 /* confdefs.h. */
5462 _ACEOF
5463 cat confdefs.h >>conftest.$ac_ext
5464 cat >>conftest.$ac_ext <<_ACEOF
5465 /* end confdefs.h. */
5466 #include <ac_nonexistent.h>
5467 _ACEOF
5468 if { (ac_try="$ac_cpp conftest.$ac_ext"
5469 case "(($ac_try" in
5470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471 *) ac_try_echo=$ac_try;;
5472 esac
5473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5475 ac_status=$?
5476 grep -v '^ *+' conftest.er1 >conftest.err
5477 rm -f conftest.er1
5478 cat conftest.err >&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } >/dev/null; then
5481 if test -s conftest.err; then
5482 ac_cpp_err=$ac_c_preproc_warn_flag
5483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5484 else
5485 ac_cpp_err=
5487 else
5488 ac_cpp_err=yes
5490 if test -z "$ac_cpp_err"; then
5491 # Broken: success on invalid input.
5492 continue
5493 else
5494 echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5497 # Passes both tests.
5498 ac_preproc_ok=:
5499 break
5502 rm -f conftest.err conftest.$ac_ext
5504 done
5505 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5506 rm -f conftest.err conftest.$ac_ext
5507 if $ac_preproc_ok; then
5508 break
5511 done
5512 ac_cv_prog_CPP=$CPP
5515 CPP=$ac_cv_prog_CPP
5516 else
5517 ac_cv_prog_CPP=$CPP
5519 { echo "$as_me:$LINENO: result: $CPP" >&5
5520 echo "${ECHO_T}$CPP" >&6; }
5521 ac_preproc_ok=false
5522 for ac_c_preproc_warn_flag in '' yes
5524 # Use a header file that comes with gcc, so configuring glibc
5525 # with a fresh cross-compiler works.
5526 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5527 # <limits.h> exists even on freestanding compilers.
5528 # On the NeXT, cc -E runs the code through the compiler's parser,
5529 # not just through cpp. "Syntax error" is here to catch this case.
5530 cat >conftest.$ac_ext <<_ACEOF
5531 /* confdefs.h. */
5532 _ACEOF
5533 cat confdefs.h >>conftest.$ac_ext
5534 cat >>conftest.$ac_ext <<_ACEOF
5535 /* end confdefs.h. */
5536 #ifdef __STDC__
5537 # include <limits.h>
5538 #else
5539 # include <assert.h>
5540 #endif
5541 Syntax error
5542 _ACEOF
5543 if { (ac_try="$ac_cpp conftest.$ac_ext"
5544 case "(($ac_try" in
5545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546 *) ac_try_echo=$ac_try;;
5547 esac
5548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5550 ac_status=$?
5551 grep -v '^ *+' conftest.er1 >conftest.err
5552 rm -f conftest.er1
5553 cat conftest.err >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } >/dev/null; then
5556 if test -s conftest.err; then
5557 ac_cpp_err=$ac_c_preproc_warn_flag
5558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5559 else
5560 ac_cpp_err=
5562 else
5563 ac_cpp_err=yes
5565 if test -z "$ac_cpp_err"; then
5567 else
5568 echo "$as_me: failed program was:" >&5
5569 sed 's/^/| /' conftest.$ac_ext >&5
5571 # Broken: fails on valid input.
5572 continue
5575 rm -f conftest.err conftest.$ac_ext
5577 # OK, works on sane cases. Now check whether nonexistent headers
5578 # can be detected and how.
5579 cat >conftest.$ac_ext <<_ACEOF
5580 /* confdefs.h. */
5581 _ACEOF
5582 cat confdefs.h >>conftest.$ac_ext
5583 cat >>conftest.$ac_ext <<_ACEOF
5584 /* end confdefs.h. */
5585 #include <ac_nonexistent.h>
5586 _ACEOF
5587 if { (ac_try="$ac_cpp conftest.$ac_ext"
5588 case "(($ac_try" in
5589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5591 esac
5592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5594 ac_status=$?
5595 grep -v '^ *+' conftest.er1 >conftest.err
5596 rm -f conftest.er1
5597 cat conftest.err >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } >/dev/null; then
5600 if test -s conftest.err; then
5601 ac_cpp_err=$ac_c_preproc_warn_flag
5602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5603 else
5604 ac_cpp_err=
5606 else
5607 ac_cpp_err=yes
5609 if test -z "$ac_cpp_err"; then
5610 # Broken: success on invalid input.
5611 continue
5612 else
5613 echo "$as_me: failed program was:" >&5
5614 sed 's/^/| /' conftest.$ac_ext >&5
5616 # Passes both tests.
5617 ac_preproc_ok=:
5618 break
5621 rm -f conftest.err conftest.$ac_ext
5623 done
5624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5625 rm -f conftest.err conftest.$ac_ext
5626 if $ac_preproc_ok; then
5628 else
5629 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5630 See \`config.log' for more details." >&5
5631 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5632 See \`config.log' for more details." >&2;}
5633 { (exit 1); exit 1; }; }
5636 ac_ext=c
5637 ac_cpp='$CPP $CPPFLAGS'
5638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5642 ac_ext=c
5643 ac_cpp='$CPP $CPPFLAGS'
5644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5647 if test -n "$ac_tool_prefix"; then
5648 for ac_prog in gcc
5650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5654 if test "${ac_cv_prog_CC+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 else
5657 if test -n "$CC"; then
5658 ac_cv_prog_CC="$CC" # Let the user override the test.
5659 else
5660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 for as_dir in $PATH
5663 IFS=$as_save_IFS
5664 test -z "$as_dir" && as_dir=.
5665 for ac_exec_ext in '' $ac_executable_extensions; do
5666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5667 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5669 break 2
5671 done
5672 done
5673 IFS=$as_save_IFS
5677 CC=$ac_cv_prog_CC
5678 if test -n "$CC"; then
5679 { echo "$as_me:$LINENO: result: $CC" >&5
5680 echo "${ECHO_T}$CC" >&6; }
5681 else
5682 { echo "$as_me:$LINENO: result: no" >&5
5683 echo "${ECHO_T}no" >&6; }
5687 test -n "$CC" && break
5688 done
5690 if test -z "$CC"; then
5691 ac_ct_CC=$CC
5692 for ac_prog in gcc
5694 # Extract the first word of "$ac_prog", so it can be a program name with args.
5695 set dummy $ac_prog; ac_word=$2
5696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 else
5701 if test -n "$ac_ct_CC"; then
5702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5703 else
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH
5707 IFS=$as_save_IFS
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5711 ac_cv_prog_ac_ct_CC="$ac_prog"
5712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 break 2
5715 done
5716 done
5717 IFS=$as_save_IFS
5721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5722 if test -n "$ac_ct_CC"; then
5723 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5724 echo "${ECHO_T}$ac_ct_CC" >&6; }
5725 else
5726 { echo "$as_me:$LINENO: result: no" >&5
5727 echo "${ECHO_T}no" >&6; }
5731 test -n "$ac_ct_CC" && break
5732 done
5734 if test "x$ac_ct_CC" = x; then
5735 CC=""
5736 else
5737 case $cross_compiling:$ac_tool_warned in
5738 yes:)
5739 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5740 whose name does not start with the host triplet. If you think this
5741 configuration is useful to you, please write to autoconf@gnu.org." >&5
5742 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5743 whose name does not start with the host triplet. If you think this
5744 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5745 ac_tool_warned=yes ;;
5746 esac
5747 CC=$ac_ct_CC
5752 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5753 See \`config.log' for more details." >&5
5754 echo "$as_me: error: no acceptable C compiler found in \$PATH
5755 See \`config.log' for more details." >&2;}
5756 { (exit 1); exit 1; }; }
5758 # Provide some information about the compiler.
5759 echo "$as_me:$LINENO: checking for C compiler version" >&5
5760 ac_compiler=`set X $ac_compile; echo $2`
5761 { (ac_try="$ac_compiler --version >&5"
5762 case "(($ac_try" in
5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764 *) ac_try_echo=$ac_try;;
5765 esac
5766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5767 (eval "$ac_compiler --version >&5") 2>&5
5768 ac_status=$?
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }
5771 { (ac_try="$ac_compiler -v >&5"
5772 case "(($ac_try" in
5773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774 *) ac_try_echo=$ac_try;;
5775 esac
5776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777 (eval "$ac_compiler -v >&5") 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }
5781 { (ac_try="$ac_compiler -V >&5"
5782 case "(($ac_try" in
5783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5784 *) ac_try_echo=$ac_try;;
5785 esac
5786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5787 (eval "$ac_compiler -V >&5") 2>&5
5788 ac_status=$?
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }
5792 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5793 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5794 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797 cat >conftest.$ac_ext <<_ACEOF
5798 /* confdefs.h. */
5799 _ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5805 main ()
5807 #ifndef __GNUC__
5808 choke me
5809 #endif
5812 return 0;
5814 _ACEOF
5815 rm -f conftest.$ac_objext
5816 if { (ac_try="$ac_compile"
5817 case "(($ac_try" in
5818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819 *) ac_try_echo=$ac_try;;
5820 esac
5821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822 (eval "$ac_compile") 2>conftest.er1
5823 ac_status=$?
5824 grep -v '^ *+' conftest.er1 >conftest.err
5825 rm -f conftest.er1
5826 cat conftest.err >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } &&
5829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5830 { (case "(($ac_try" in
5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5833 esac
5834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835 (eval "$ac_try") 2>&5
5836 ac_status=$?
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); }; } &&
5839 { ac_try='test -s conftest.$ac_objext'
5840 { (case "(($ac_try" in
5841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842 *) ac_try_echo=$ac_try;;
5843 esac
5844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5845 (eval "$ac_try") 2>&5
5846 ac_status=$?
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; }; then
5849 ac_compiler_gnu=yes
5850 else
5851 echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5854 ac_compiler_gnu=no
5857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5858 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5861 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5862 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5863 GCC=`test $ac_compiler_gnu = yes && echo yes`
5864 ac_test_CFLAGS=${CFLAGS+set}
5865 ac_save_CFLAGS=$CFLAGS
5866 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5867 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5868 if test "${ac_cv_prog_cc_g+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 else
5871 ac_save_c_werror_flag=$ac_c_werror_flag
5872 ac_c_werror_flag=yes
5873 ac_cv_prog_cc_g=no
5874 CFLAGS="-g"
5875 cat >conftest.$ac_ext <<_ACEOF
5876 /* confdefs.h. */
5877 _ACEOF
5878 cat confdefs.h >>conftest.$ac_ext
5879 cat >>conftest.$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5883 main ()
5887 return 0;
5889 _ACEOF
5890 rm -f conftest.$ac_objext
5891 if { (ac_try="$ac_compile"
5892 case "(($ac_try" in
5893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5895 esac
5896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897 (eval "$ac_compile") 2>conftest.er1
5898 ac_status=$?
5899 grep -v '^ *+' conftest.er1 >conftest.err
5900 rm -f conftest.er1
5901 cat conftest.err >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } &&
5904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5905 { (case "(($ac_try" in
5906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5908 esac
5909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910 (eval "$ac_try") 2>&5
5911 ac_status=$?
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }; } &&
5914 { ac_try='test -s conftest.$ac_objext'
5915 { (case "(($ac_try" in
5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5918 esac
5919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_try") 2>&5
5921 ac_status=$?
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; }; then
5924 ac_cv_prog_cc_g=yes
5925 else
5926 echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.$ac_ext >&5
5929 CFLAGS=""
5930 cat >conftest.$ac_ext <<_ACEOF
5931 /* confdefs.h. */
5932 _ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h. */
5938 main ()
5942 return 0;
5944 _ACEOF
5945 rm -f conftest.$ac_objext
5946 if { (ac_try="$ac_compile"
5947 case "(($ac_try" in
5948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949 *) ac_try_echo=$ac_try;;
5950 esac
5951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952 (eval "$ac_compile") 2>conftest.er1
5953 ac_status=$?
5954 grep -v '^ *+' conftest.er1 >conftest.err
5955 rm -f conftest.er1
5956 cat conftest.err >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } &&
5959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5960 { (case "(($ac_try" in
5961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5962 *) ac_try_echo=$ac_try;;
5963 esac
5964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5965 (eval "$ac_try") 2>&5
5966 ac_status=$?
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; } &&
5969 { ac_try='test -s conftest.$ac_objext'
5970 { (case "(($ac_try" in
5971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972 *) ac_try_echo=$ac_try;;
5973 esac
5974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5975 (eval "$ac_try") 2>&5
5976 ac_status=$?
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); }; }; then
5980 else
5981 echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5984 ac_c_werror_flag=$ac_save_c_werror_flag
5985 CFLAGS="-g"
5986 cat >conftest.$ac_ext <<_ACEOF
5987 /* confdefs.h. */
5988 _ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
5994 main ()
5998 return 0;
6000 _ACEOF
6001 rm -f conftest.$ac_objext
6002 if { (ac_try="$ac_compile"
6003 case "(($ac_try" in
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6006 esac
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_compile") 2>conftest.er1
6009 ac_status=$?
6010 grep -v '^ *+' conftest.er1 >conftest.err
6011 rm -f conftest.er1
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } &&
6015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6016 { (case "(($ac_try" in
6017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018 *) ac_try_echo=$ac_try;;
6019 esac
6020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021 (eval "$ac_try") 2>&5
6022 ac_status=$?
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; } &&
6025 { ac_try='test -s conftest.$ac_objext'
6026 { (case "(($ac_try" in
6027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6028 *) ac_try_echo=$ac_try;;
6029 esac
6030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6031 (eval "$ac_try") 2>&5
6032 ac_status=$?
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; }; then
6035 ac_cv_prog_cc_g=yes
6036 else
6037 echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050 ac_c_werror_flag=$ac_save_c_werror_flag
6052 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6053 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6054 if test "$ac_test_CFLAGS" = set; then
6055 CFLAGS=$ac_save_CFLAGS
6056 elif test $ac_cv_prog_cc_g = yes; then
6057 if test "$GCC" = yes; then
6058 CFLAGS="-g -O2"
6059 else
6060 CFLAGS="-g"
6062 else
6063 if test "$GCC" = yes; then
6064 CFLAGS="-O2"
6065 else
6066 CFLAGS=
6069 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6070 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6071 if test "${ac_cv_prog_cc_c89+set}" = set; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 else
6074 ac_cv_prog_cc_c89=no
6075 ac_save_CC=$CC
6076 cat >conftest.$ac_ext <<_ACEOF
6077 /* confdefs.h. */
6078 _ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h. */
6082 #include <stdarg.h>
6083 #include <stdio.h>
6084 #include <sys/types.h>
6085 #include <sys/stat.h>
6086 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6087 struct buf { int x; };
6088 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6089 static char *e (p, i)
6090 char **p;
6091 int i;
6093 return p[i];
6095 static char *f (char * (*g) (char **, int), char **p, ...)
6097 char *s;
6098 va_list v;
6099 va_start (v,p);
6100 s = g (p, va_arg (v,int));
6101 va_end (v);
6102 return s;
6105 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6106 function prototypes and stuff, but not '\xHH' hex character constants.
6107 These don't provoke an error unfortunately, instead are silently treated
6108 as 'x'. The following induces an error, until -std is added to get
6109 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6110 array size at least. It's necessary to write '\x00'==0 to get something
6111 that's true only with -std. */
6112 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6114 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6115 inside strings and character constants. */
6116 #define FOO(x) 'x'
6117 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6119 int test (int i, double x);
6120 struct s1 {int (*f) (int a);};
6121 struct s2 {int (*f) (double a);};
6122 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6123 int argc;
6124 char **argv;
6126 main ()
6128 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6130 return 0;
6132 _ACEOF
6133 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6134 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6136 CC="$ac_save_CC $ac_arg"
6137 rm -f conftest.$ac_objext
6138 if { (ac_try="$ac_compile"
6139 case "(($ac_try" in
6140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6141 *) ac_try_echo=$ac_try;;
6142 esac
6143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6144 (eval "$ac_compile") 2>conftest.er1
6145 ac_status=$?
6146 grep -v '^ *+' conftest.er1 >conftest.err
6147 rm -f conftest.er1
6148 cat conftest.err >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6152 { (case "(($ac_try" in
6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6155 esac
6156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157 (eval "$ac_try") 2>&5
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; } &&
6161 { ac_try='test -s conftest.$ac_objext'
6162 { (case "(($ac_try" in
6163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164 *) ac_try_echo=$ac_try;;
6165 esac
6166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167 (eval "$ac_try") 2>&5
6168 ac_status=$?
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; }; then
6171 ac_cv_prog_cc_c89=$ac_arg
6172 else
6173 echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6179 rm -f core conftest.err conftest.$ac_objext
6180 test "x$ac_cv_prog_cc_c89" != "xno" && break
6181 done
6182 rm -f conftest.$ac_ext
6183 CC=$ac_save_CC
6186 # AC_CACHE_VAL
6187 case "x$ac_cv_prog_cc_c89" in
6189 { echo "$as_me:$LINENO: result: none needed" >&5
6190 echo "${ECHO_T}none needed" >&6; } ;;
6191 xno)
6192 { echo "$as_me:$LINENO: result: unsupported" >&5
6193 echo "${ECHO_T}unsupported" >&6; } ;;
6195 CC="$CC $ac_cv_prog_cc_c89"
6196 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6197 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6198 esac
6201 ac_ext=c
6202 ac_cpp='$CPP $CPPFLAGS'
6203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6207 ac_ext=cpp
6208 ac_cpp='$CXXCPP $CPPFLAGS'
6209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6212 if test -z "$CXX"; then
6213 if test -n "$CCC"; then
6214 CXX=$CCC
6215 else
6216 if test -n "$ac_tool_prefix"; then
6217 for ac_prog in g++
6219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6223 if test "${ac_cv_prog_CXX+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 else
6226 if test -n "$CXX"; then
6227 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6228 else
6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 for as_dir in $PATH
6232 IFS=$as_save_IFS
6233 test -z "$as_dir" && as_dir=.
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6236 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 break 2
6240 done
6241 done
6242 IFS=$as_save_IFS
6246 CXX=$ac_cv_prog_CXX
6247 if test -n "$CXX"; then
6248 { echo "$as_me:$LINENO: result: $CXX" >&5
6249 echo "${ECHO_T}$CXX" >&6; }
6250 else
6251 { echo "$as_me:$LINENO: result: no" >&5
6252 echo "${ECHO_T}no" >&6; }
6256 test -n "$CXX" && break
6257 done
6259 if test -z "$CXX"; then
6260 ac_ct_CXX=$CXX
6261 for ac_prog in g++
6263 # Extract the first word of "$ac_prog", so it can be a program name with args.
6264 set dummy $ac_prog; ac_word=$2
6265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6267 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 else
6270 if test -n "$ac_ct_CXX"; then
6271 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6272 else
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6276 IFS=$as_save_IFS
6277 test -z "$as_dir" && as_dir=.
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6280 ac_cv_prog_ac_ct_CXX="$ac_prog"
6281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6282 break 2
6284 done
6285 done
6286 IFS=$as_save_IFS
6290 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6291 if test -n "$ac_ct_CXX"; then
6292 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6293 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6294 else
6295 { echo "$as_me:$LINENO: result: no" >&5
6296 echo "${ECHO_T}no" >&6; }
6300 test -n "$ac_ct_CXX" && break
6301 done
6303 if test "x$ac_ct_CXX" = x; then
6304 CXX="g++"
6305 else
6306 case $cross_compiling:$ac_tool_warned in
6307 yes:)
6308 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6309 whose name does not start with the host triplet. If you think this
6310 configuration is useful to you, please write to autoconf@gnu.org." >&5
6311 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6312 whose name does not start with the host triplet. If you think this
6313 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6314 ac_tool_warned=yes ;;
6315 esac
6316 CXX=$ac_ct_CXX
6322 # Provide some information about the compiler.
6323 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6324 ac_compiler=`set X $ac_compile; echo $2`
6325 { (ac_try="$ac_compiler --version >&5"
6326 case "(($ac_try" in
6327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6329 esac
6330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_compiler --version >&5") 2>&5
6332 ac_status=$?
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }
6335 { (ac_try="$ac_compiler -v >&5"
6336 case "(($ac_try" in
6337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6338 *) ac_try_echo=$ac_try;;
6339 esac
6340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6341 (eval "$ac_compiler -v >&5") 2>&5
6342 ac_status=$?
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }
6345 { (ac_try="$ac_compiler -V >&5"
6346 case "(($ac_try" in
6347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6349 esac
6350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6351 (eval "$ac_compiler -V >&5") 2>&5
6352 ac_status=$?
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }
6356 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6357 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6358 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 else
6361 cat >conftest.$ac_ext <<_ACEOF
6362 /* confdefs.h. */
6363 _ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h. */
6369 main ()
6371 #ifndef __GNUC__
6372 choke me
6373 #endif
6376 return 0;
6378 _ACEOF
6379 rm -f conftest.$ac_objext
6380 if { (ac_try="$ac_compile"
6381 case "(($ac_try" in
6382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6383 *) ac_try_echo=$ac_try;;
6384 esac
6385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6386 (eval "$ac_compile") 2>conftest.er1
6387 ac_status=$?
6388 grep -v '^ *+' conftest.er1 >conftest.err
6389 rm -f conftest.er1
6390 cat conftest.err >&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } &&
6393 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6394 { (case "(($ac_try" in
6395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6396 *) ac_try_echo=$ac_try;;
6397 esac
6398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6399 (eval "$ac_try") 2>&5
6400 ac_status=$?
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; } &&
6403 { ac_try='test -s conftest.$ac_objext'
6404 { (case "(($ac_try" in
6405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6406 *) ac_try_echo=$ac_try;;
6407 esac
6408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6409 (eval "$ac_try") 2>&5
6410 ac_status=$?
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); }; }; then
6413 ac_compiler_gnu=yes
6414 else
6415 echo "$as_me: failed program was:" >&5
6416 sed 's/^/| /' conftest.$ac_ext >&5
6418 ac_compiler_gnu=no
6421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6422 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6425 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6426 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6427 GXX=`test $ac_compiler_gnu = yes && echo yes`
6428 ac_test_CXXFLAGS=${CXXFLAGS+set}
6429 ac_save_CXXFLAGS=$CXXFLAGS
6430 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6431 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6432 if test "${ac_cv_prog_cxx_g+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 else
6435 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6436 ac_cxx_werror_flag=yes
6437 ac_cv_prog_cxx_g=no
6438 CXXFLAGS="-g"
6439 cat >conftest.$ac_ext <<_ACEOF
6440 /* confdefs.h. */
6441 _ACEOF
6442 cat confdefs.h >>conftest.$ac_ext
6443 cat >>conftest.$ac_ext <<_ACEOF
6444 /* end confdefs.h. */
6447 main ()
6451 return 0;
6453 _ACEOF
6454 rm -f conftest.$ac_objext
6455 if { (ac_try="$ac_compile"
6456 case "(($ac_try" in
6457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6458 *) ac_try_echo=$ac_try;;
6459 esac
6460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6461 (eval "$ac_compile") 2>conftest.er1
6462 ac_status=$?
6463 grep -v '^ *+' conftest.er1 >conftest.err
6464 rm -f conftest.er1
6465 cat conftest.err >&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } &&
6468 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6469 { (case "(($ac_try" in
6470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6471 *) ac_try_echo=$ac_try;;
6472 esac
6473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6474 (eval "$ac_try") 2>&5
6475 ac_status=$?
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); }; } &&
6478 { ac_try='test -s conftest.$ac_objext'
6479 { (case "(($ac_try" in
6480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6481 *) ac_try_echo=$ac_try;;
6482 esac
6483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6484 (eval "$ac_try") 2>&5
6485 ac_status=$?
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); }; }; then
6488 ac_cv_prog_cxx_g=yes
6489 else
6490 echo "$as_me: failed program was:" >&5
6491 sed 's/^/| /' conftest.$ac_ext >&5
6493 CXXFLAGS=""
6494 cat >conftest.$ac_ext <<_ACEOF
6495 /* confdefs.h. */
6496 _ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6502 main ()
6506 return 0;
6508 _ACEOF
6509 rm -f conftest.$ac_objext
6510 if { (ac_try="$ac_compile"
6511 case "(($ac_try" in
6512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6513 *) ac_try_echo=$ac_try;;
6514 esac
6515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6516 (eval "$ac_compile") 2>conftest.er1
6517 ac_status=$?
6518 grep -v '^ *+' conftest.er1 >conftest.err
6519 rm -f conftest.er1
6520 cat conftest.err >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } &&
6523 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6524 { (case "(($ac_try" in
6525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6526 *) ac_try_echo=$ac_try;;
6527 esac
6528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6529 (eval "$ac_try") 2>&5
6530 ac_status=$?
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; } &&
6533 { ac_try='test -s conftest.$ac_objext'
6534 { (case "(($ac_try" in
6535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536 *) ac_try_echo=$ac_try;;
6537 esac
6538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6539 (eval "$ac_try") 2>&5
6540 ac_status=$?
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; }; then
6544 else
6545 echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6548 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6549 CXXFLAGS="-g"
6550 cat >conftest.$ac_ext <<_ACEOF
6551 /* confdefs.h. */
6552 _ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6558 main ()
6562 return 0;
6564 _ACEOF
6565 rm -f conftest.$ac_objext
6566 if { (ac_try="$ac_compile"
6567 case "(($ac_try" in
6568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6569 *) ac_try_echo=$ac_try;;
6570 esac
6571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6572 (eval "$ac_compile") 2>conftest.er1
6573 ac_status=$?
6574 grep -v '^ *+' conftest.er1 >conftest.err
6575 rm -f conftest.er1
6576 cat conftest.err >&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } &&
6579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6580 { (case "(($ac_try" in
6581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582 *) ac_try_echo=$ac_try;;
6583 esac
6584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6585 (eval "$ac_try") 2>&5
6586 ac_status=$?
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; } &&
6589 { ac_try='test -s conftest.$ac_objext'
6590 { (case "(($ac_try" in
6591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6592 *) ac_try_echo=$ac_try;;
6593 esac
6594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6595 (eval "$ac_try") 2>&5
6596 ac_status=$?
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); }; }; then
6599 ac_cv_prog_cxx_g=yes
6600 else
6601 echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6614 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6616 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6617 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6618 if test "$ac_test_CXXFLAGS" = set; then
6619 CXXFLAGS=$ac_save_CXXFLAGS
6620 elif test $ac_cv_prog_cxx_g = yes; then
6621 if test "$GXX" = yes; then
6622 CXXFLAGS="-g -O2"
6623 else
6624 CXXFLAGS="-g"
6626 else
6627 if test "$GXX" = yes; then
6628 CXXFLAGS="-O2"
6629 else
6630 CXXFLAGS=
6633 ac_ext=c
6634 ac_cpp='$CPP $CPPFLAGS'
6635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6640 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6641 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6642 if test "${lt_cv_path_NM+set}" = set; then
6643 echo $ECHO_N "(cached) $ECHO_C" >&6
6644 else
6645 if test -n "$NM"; then
6646 # Let the user override the test.
6647 lt_cv_path_NM="$NM"
6648 else
6649 lt_nm_to_check="${ac_tool_prefix}nm"
6650 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6651 lt_nm_to_check="$lt_nm_to_check nm"
6653 for lt_tmp_nm in $lt_nm_to_check; do
6654 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6655 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6656 IFS="$lt_save_ifs"
6657 test -z "$ac_dir" && ac_dir=.
6658 tmp_nm="$ac_dir/$lt_tmp_nm"
6659 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6660 # Check to see if the nm accepts a BSD-compat flag.
6661 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6662 # nm: unknown option "B" ignored
6663 # Tru64's nm complains that /dev/null is an invalid object file
6664 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6665 */dev/null* | *'Invalid file or object type'*)
6666 lt_cv_path_NM="$tmp_nm -B"
6667 break
6670 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6671 */dev/null*)
6672 lt_cv_path_NM="$tmp_nm -p"
6673 break
6676 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6677 continue # so that we can try to find one that supports BSD flags
6679 esac
6681 esac
6683 done
6684 IFS="$lt_save_ifs"
6685 done
6686 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6689 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6690 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6691 NM="$lt_cv_path_NM"
6695 { echo "$as_me:$LINENO: checking for GNU make" >&5
6696 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6697 if test "${llvm_cv_gnu_make_command+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6699 else
6700 llvm_cv_gnu_make_command=''
6701 for a in "$MAKE" make gmake gnumake ; do
6702 if test -z "$a" ; then continue ; fi ;
6703 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6704 then
6705 llvm_cv_gnu_make_command=$a ;
6706 break;
6708 done
6710 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6711 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6712 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6713 ifGNUmake='' ;
6714 else
6715 ifGNUmake='#' ;
6716 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6717 echo "${ECHO_T}\"Not found\"" >&6; };
6721 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6722 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6723 LN_S=$as_ln_s
6724 if test "$LN_S" = "ln -s"; then
6725 { echo "$as_me:$LINENO: result: yes" >&5
6726 echo "${ECHO_T}yes" >&6; }
6727 else
6728 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6729 echo "${ECHO_T}no, using $LN_S" >&6; }
6732 # Extract the first word of "cmp", so it can be a program name with args.
6733 set dummy cmp; ac_word=$2
6734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6736 if test "${ac_cv_path_CMP+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6738 else
6739 case $CMP in
6740 [\\/]* | ?:[\\/]*)
6741 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745 for as_dir in $PATH
6747 IFS=$as_save_IFS
6748 test -z "$as_dir" && as_dir=.
6749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6751 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6753 break 2
6755 done
6756 done
6757 IFS=$as_save_IFS
6759 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6761 esac
6763 CMP=$ac_cv_path_CMP
6764 if test -n "$CMP"; then
6765 { echo "$as_me:$LINENO: result: $CMP" >&5
6766 echo "${ECHO_T}$CMP" >&6; }
6767 else
6768 { echo "$as_me:$LINENO: result: no" >&5
6769 echo "${ECHO_T}no" >&6; }
6773 # Extract the first word of "cp", so it can be a program name with args.
6774 set dummy cp; ac_word=$2
6775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6777 if test "${ac_cv_path_CP+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6779 else
6780 case $CP in
6781 [\\/]* | ?:[\\/]*)
6782 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786 for as_dir in $PATH
6788 IFS=$as_save_IFS
6789 test -z "$as_dir" && as_dir=.
6790 for ac_exec_ext in '' $ac_executable_extensions; do
6791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6792 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6794 break 2
6796 done
6797 done
6798 IFS=$as_save_IFS
6800 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6802 esac
6804 CP=$ac_cv_path_CP
6805 if test -n "$CP"; then
6806 { echo "$as_me:$LINENO: result: $CP" >&5
6807 echo "${ECHO_T}$CP" >&6; }
6808 else
6809 { echo "$as_me:$LINENO: result: no" >&5
6810 echo "${ECHO_T}no" >&6; }
6814 # Extract the first word of "date", so it can be a program name with args.
6815 set dummy date; ac_word=$2
6816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6818 if test "${ac_cv_path_DATE+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6820 else
6821 case $DATE in
6822 [\\/]* | ?:[\\/]*)
6823 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 for as_dir in $PATH
6829 IFS=$as_save_IFS
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6833 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 break 2
6837 done
6838 done
6839 IFS=$as_save_IFS
6841 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6843 esac
6845 DATE=$ac_cv_path_DATE
6846 if test -n "$DATE"; then
6847 { echo "$as_me:$LINENO: result: $DATE" >&5
6848 echo "${ECHO_T}$DATE" >&6; }
6849 else
6850 { echo "$as_me:$LINENO: result: no" >&5
6851 echo "${ECHO_T}no" >&6; }
6855 # Extract the first word of "find", so it can be a program name with args.
6856 set dummy find; ac_word=$2
6857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6859 if test "${ac_cv_path_FIND+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 else
6862 case $FIND in
6863 [\\/]* | ?:[\\/]*)
6864 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 for as_dir in $PATH
6870 IFS=$as_save_IFS
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6874 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 break 2
6878 done
6879 done
6880 IFS=$as_save_IFS
6882 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6884 esac
6886 FIND=$ac_cv_path_FIND
6887 if test -n "$FIND"; then
6888 { echo "$as_me:$LINENO: result: $FIND" >&5
6889 echo "${ECHO_T}$FIND" >&6; }
6890 else
6891 { echo "$as_me:$LINENO: result: no" >&5
6892 echo "${ECHO_T}no" >&6; }
6896 # Extract the first word of "grep", so it can be a program name with args.
6897 set dummy grep; ac_word=$2
6898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6900 if test "${ac_cv_path_GREP+set}" = set; then
6901 echo $ECHO_N "(cached) $ECHO_C" >&6
6902 else
6903 case $GREP in
6904 [\\/]* | ?:[\\/]*)
6905 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 for as_dir in $PATH
6911 IFS=$as_save_IFS
6912 test -z "$as_dir" && as_dir=.
6913 for ac_exec_ext in '' $ac_executable_extensions; do
6914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6915 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6917 break 2
6919 done
6920 done
6921 IFS=$as_save_IFS
6923 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6925 esac
6927 GREP=$ac_cv_path_GREP
6928 if test -n "$GREP"; then
6929 { echo "$as_me:$LINENO: result: $GREP" >&5
6930 echo "${ECHO_T}$GREP" >&6; }
6931 else
6932 { echo "$as_me:$LINENO: result: no" >&5
6933 echo "${ECHO_T}no" >&6; }
6937 # Extract the first word of "mkdir", so it can be a program name with args.
6938 set dummy mkdir; ac_word=$2
6939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6941 if test "${ac_cv_path_MKDIR+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6943 else
6944 case $MKDIR in
6945 [\\/]* | ?:[\\/]*)
6946 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6956 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6960 done
6961 done
6962 IFS=$as_save_IFS
6964 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6966 esac
6968 MKDIR=$ac_cv_path_MKDIR
6969 if test -n "$MKDIR"; then
6970 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6971 echo "${ECHO_T}$MKDIR" >&6; }
6972 else
6973 { echo "$as_me:$LINENO: result: no" >&5
6974 echo "${ECHO_T}no" >&6; }
6978 # Extract the first word of "mv", so it can be a program name with args.
6979 set dummy mv; ac_word=$2
6980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6982 if test "${ac_cv_path_MV+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985 case $MV in
6986 [\\/]* | ?:[\\/]*)
6987 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 for as_dir in $PATH
6993 IFS=$as_save_IFS
6994 test -z "$as_dir" && as_dir=.
6995 for ac_exec_ext in '' $ac_executable_extensions; do
6996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6997 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6999 break 2
7001 done
7002 done
7003 IFS=$as_save_IFS
7005 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7007 esac
7009 MV=$ac_cv_path_MV
7010 if test -n "$MV"; then
7011 { echo "$as_me:$LINENO: result: $MV" >&5
7012 echo "${ECHO_T}$MV" >&6; }
7013 else
7014 { echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6; }
7019 if test -n "$ac_tool_prefix"; then
7020 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7021 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7024 if test "${ac_cv_prog_RANLIB+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 else
7027 if test -n "$RANLIB"; then
7028 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7029 else
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 for as_dir in $PATH
7033 IFS=$as_save_IFS
7034 test -z "$as_dir" && as_dir=.
7035 for ac_exec_ext in '' $ac_executable_extensions; do
7036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7037 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7039 break 2
7041 done
7042 done
7043 IFS=$as_save_IFS
7047 RANLIB=$ac_cv_prog_RANLIB
7048 if test -n "$RANLIB"; then
7049 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7050 echo "${ECHO_T}$RANLIB" >&6; }
7051 else
7052 { echo "$as_me:$LINENO: result: no" >&5
7053 echo "${ECHO_T}no" >&6; }
7058 if test -z "$ac_cv_prog_RANLIB"; then
7059 ac_ct_RANLIB=$RANLIB
7060 # Extract the first word of "ranlib", so it can be a program name with args.
7061 set dummy ranlib; ac_word=$2
7062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7064 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 else
7067 if test -n "$ac_ct_RANLIB"; then
7068 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7069 else
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7077 ac_cv_prog_ac_ct_RANLIB="ranlib"
7078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 break 2
7081 done
7082 done
7083 IFS=$as_save_IFS
7087 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7088 if test -n "$ac_ct_RANLIB"; then
7089 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7090 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7091 else
7092 { echo "$as_me:$LINENO: result: no" >&5
7093 echo "${ECHO_T}no" >&6; }
7096 if test "x$ac_ct_RANLIB" = x; then
7097 RANLIB=":"
7098 else
7099 case $cross_compiling:$ac_tool_warned in
7100 yes:)
7101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7102 whose name does not start with the host triplet. If you think this
7103 configuration is useful to you, please write to autoconf@gnu.org." >&5
7104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7105 whose name does not start with the host triplet. If you think this
7106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7107 ac_tool_warned=yes ;;
7108 esac
7109 RANLIB=$ac_ct_RANLIB
7111 else
7112 RANLIB="$ac_cv_prog_RANLIB"
7115 if test -n "$ac_tool_prefix"; then
7116 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7117 set dummy ${ac_tool_prefix}ar; ac_word=$2
7118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7120 if test "${ac_cv_prog_AR+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 else
7123 if test -n "$AR"; then
7124 ac_cv_prog_AR="$AR" # Let the user override the test.
7125 else
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7133 ac_cv_prog_AR="${ac_tool_prefix}ar"
7134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 break 2
7137 done
7138 done
7139 IFS=$as_save_IFS
7143 AR=$ac_cv_prog_AR
7144 if test -n "$AR"; then
7145 { echo "$as_me:$LINENO: result: $AR" >&5
7146 echo "${ECHO_T}$AR" >&6; }
7147 else
7148 { echo "$as_me:$LINENO: result: no" >&5
7149 echo "${ECHO_T}no" >&6; }
7154 if test -z "$ac_cv_prog_AR"; then
7155 ac_ct_AR=$AR
7156 # Extract the first word of "ar", so it can be a program name with args.
7157 set dummy ar; ac_word=$2
7158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7160 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 else
7163 if test -n "$ac_ct_AR"; then
7164 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7165 else
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 for as_dir in $PATH
7169 IFS=$as_save_IFS
7170 test -z "$as_dir" && as_dir=.
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7173 ac_cv_prog_ac_ct_AR="ar"
7174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7175 break 2
7177 done
7178 done
7179 IFS=$as_save_IFS
7183 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7184 if test -n "$ac_ct_AR"; then
7185 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7186 echo "${ECHO_T}$ac_ct_AR" >&6; }
7187 else
7188 { echo "$as_me:$LINENO: result: no" >&5
7189 echo "${ECHO_T}no" >&6; }
7192 if test "x$ac_ct_AR" = x; then
7193 AR="false"
7194 else
7195 case $cross_compiling:$ac_tool_warned in
7196 yes:)
7197 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7198 whose name does not start with the host triplet. If you think this
7199 configuration is useful to you, please write to autoconf@gnu.org." >&5
7200 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7201 whose name does not start with the host triplet. If you think this
7202 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7203 ac_tool_warned=yes ;;
7204 esac
7205 AR=$ac_ct_AR
7207 else
7208 AR="$ac_cv_prog_AR"
7211 # Extract the first word of "rm", so it can be a program name with args.
7212 set dummy rm; ac_word=$2
7213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7215 if test "${ac_cv_path_RM+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7217 else
7218 case $RM in
7219 [\\/]* | ?:[\\/]*)
7220 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 for as_dir in $PATH
7226 IFS=$as_save_IFS
7227 test -z "$as_dir" && as_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7230 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232 break 2
7234 done
7235 done
7236 IFS=$as_save_IFS
7238 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7240 esac
7242 RM=$ac_cv_path_RM
7243 if test -n "$RM"; then
7244 { echo "$as_me:$LINENO: result: $RM" >&5
7245 echo "${ECHO_T}$RM" >&6; }
7246 else
7247 { echo "$as_me:$LINENO: result: no" >&5
7248 echo "${ECHO_T}no" >&6; }
7252 # Extract the first word of "sed", so it can be a program name with args.
7253 set dummy sed; ac_word=$2
7254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7256 if test "${ac_cv_path_SED+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7258 else
7259 case $SED in
7260 [\\/]* | ?:[\\/]*)
7261 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265 for as_dir in $PATH
7267 IFS=$as_save_IFS
7268 test -z "$as_dir" && as_dir=.
7269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7271 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7273 break 2
7275 done
7276 done
7277 IFS=$as_save_IFS
7279 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7281 esac
7283 SED=$ac_cv_path_SED
7284 if test -n "$SED"; then
7285 { echo "$as_me:$LINENO: result: $SED" >&5
7286 echo "${ECHO_T}$SED" >&6; }
7287 else
7288 { echo "$as_me:$LINENO: result: no" >&5
7289 echo "${ECHO_T}no" >&6; }
7293 # Extract the first word of "tar", so it can be a program name with args.
7294 set dummy tar; ac_word=$2
7295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7297 if test "${ac_cv_path_TAR+set}" = set; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
7299 else
7300 case $TAR in
7301 [\\/]* | ?:[\\/]*)
7302 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 for as_dir in $PATH
7308 IFS=$as_save_IFS
7309 test -z "$as_dir" && as_dir=.
7310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7312 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 break 2
7316 done
7317 done
7318 IFS=$as_save_IFS
7320 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7322 esac
7324 TAR=$ac_cv_path_TAR
7325 if test -n "$TAR"; then
7326 { echo "$as_me:$LINENO: result: $TAR" >&5
7327 echo "${ECHO_T}$TAR" >&6; }
7328 else
7329 { echo "$as_me:$LINENO: result: no" >&5
7330 echo "${ECHO_T}no" >&6; }
7334 # Extract the first word of "pwd", so it can be a program name with args.
7335 set dummy pwd; ac_word=$2
7336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7338 if test "${ac_cv_path_BINPWD+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 else
7341 case $BINPWD in
7342 [\\/]* | ?:[\\/]*)
7343 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 for as_dir in $PATH
7349 IFS=$as_save_IFS
7350 test -z "$as_dir" && as_dir=.
7351 for ac_exec_ext in '' $ac_executable_extensions; do
7352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7353 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7355 break 2
7357 done
7358 done
7359 IFS=$as_save_IFS
7361 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7363 esac
7365 BINPWD=$ac_cv_path_BINPWD
7366 if test -n "$BINPWD"; then
7367 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7368 echo "${ECHO_T}$BINPWD" >&6; }
7369 else
7370 { echo "$as_me:$LINENO: result: no" >&5
7371 echo "${ECHO_T}no" >&6; }
7376 # Extract the first word of "Graphviz", so it can be a program name with args.
7377 set dummy Graphviz; ac_word=$2
7378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7380 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7382 else
7383 case $GRAPHVIZ in
7384 [\\/]* | ?:[\\/]*)
7385 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 for as_dir in $PATH
7391 IFS=$as_save_IFS
7392 test -z "$as_dir" && as_dir=.
7393 for ac_exec_ext in '' $ac_executable_extensions; do
7394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7395 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7397 break 2
7399 done
7400 done
7401 IFS=$as_save_IFS
7403 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7405 esac
7407 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7408 if test -n "$GRAPHVIZ"; then
7409 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7410 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7411 else
7412 { echo "$as_me:$LINENO: result: no" >&5
7413 echo "${ECHO_T}no" >&6; }
7417 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7419 cat >>confdefs.h <<\_ACEOF
7420 #define HAVE_GRAPHVIZ 1
7421 _ACEOF
7423 if test "$llvm_cv_os_type" = "MingW" ; then
7424 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7427 cat >>confdefs.h <<_ACEOF
7428 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7429 _ACEOF
7432 # Extract the first word of "dot", so it can be a program name with args.
7433 set dummy dot; ac_word=$2
7434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436 if test "${ac_cv_path_DOT+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7438 else
7439 case $DOT in
7440 [\\/]* | ?:[\\/]*)
7441 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7451 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 break 2
7455 done
7456 done
7457 IFS=$as_save_IFS
7459 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7461 esac
7463 DOT=$ac_cv_path_DOT
7464 if test -n "$DOT"; then
7465 { echo "$as_me:$LINENO: result: $DOT" >&5
7466 echo "${ECHO_T}$DOT" >&6; }
7467 else
7468 { echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6; }
7473 if test "$DOT" != "echo dot" ; then
7475 cat >>confdefs.h <<\_ACEOF
7476 #define HAVE_DOT 1
7477 _ACEOF
7479 if test "$llvm_cv_os_type" = "MingW" ; then
7480 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7483 cat >>confdefs.h <<_ACEOF
7484 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7485 _ACEOF
7488 # Extract the first word of "fdp", so it can be a program name with args.
7489 set dummy fdp; ac_word=$2
7490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492 if test "${ac_cv_path_FDP+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495 case $FDP in
7496 [\\/]* | ?:[\\/]*)
7497 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 for as_dir in $PATH
7503 IFS=$as_save_IFS
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7507 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7509 break 2
7511 done
7512 done
7513 IFS=$as_save_IFS
7515 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7517 esac
7519 FDP=$ac_cv_path_FDP
7520 if test -n "$FDP"; then
7521 { echo "$as_me:$LINENO: result: $FDP" >&5
7522 echo "${ECHO_T}$FDP" >&6; }
7523 else
7524 { echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6; }
7529 if test "$FDP" != "echo fdp" ; then
7531 cat >>confdefs.h <<\_ACEOF
7532 #define HAVE_FDP 1
7533 _ACEOF
7535 if test "$llvm_cv_os_type" = "MingW" ; then
7536 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7539 cat >>confdefs.h <<_ACEOF
7540 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7541 _ACEOF
7544 # Extract the first word of "neato", so it can be a program name with args.
7545 set dummy neato; ac_word=$2
7546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548 if test "${ac_cv_path_NEATO+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551 case $NEATO in
7552 [\\/]* | ?:[\\/]*)
7553 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7563 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 break 2
7567 done
7568 done
7569 IFS=$as_save_IFS
7571 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7573 esac
7575 NEATO=$ac_cv_path_NEATO
7576 if test -n "$NEATO"; then
7577 { echo "$as_me:$LINENO: result: $NEATO" >&5
7578 echo "${ECHO_T}$NEATO" >&6; }
7579 else
7580 { echo "$as_me:$LINENO: result: no" >&5
7581 echo "${ECHO_T}no" >&6; }
7585 if test "$NEATO" != "echo neato" ; then
7587 cat >>confdefs.h <<\_ACEOF
7588 #define HAVE_NEATO 1
7589 _ACEOF
7591 if test "$llvm_cv_os_type" = "MingW" ; then
7592 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7595 cat >>confdefs.h <<_ACEOF
7596 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7597 _ACEOF
7600 # Extract the first word of "twopi", so it can be a program name with args.
7601 set dummy twopi; ac_word=$2
7602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7604 if test "${ac_cv_path_TWOPI+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 else
7607 case $TWOPI in
7608 [\\/]* | ?:[\\/]*)
7609 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 for as_dir in $PATH
7615 IFS=$as_save_IFS
7616 test -z "$as_dir" && as_dir=.
7617 for ac_exec_ext in '' $ac_executable_extensions; do
7618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7619 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7621 break 2
7623 done
7624 done
7625 IFS=$as_save_IFS
7627 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7629 esac
7631 TWOPI=$ac_cv_path_TWOPI
7632 if test -n "$TWOPI"; then
7633 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7634 echo "${ECHO_T}$TWOPI" >&6; }
7635 else
7636 { echo "$as_me:$LINENO: result: no" >&5
7637 echo "${ECHO_T}no" >&6; }
7641 if test "$TWOPI" != "echo twopi" ; then
7643 cat >>confdefs.h <<\_ACEOF
7644 #define HAVE_TWOPI 1
7645 _ACEOF
7647 if test "$llvm_cv_os_type" = "MingW" ; then
7648 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7651 cat >>confdefs.h <<_ACEOF
7652 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7653 _ACEOF
7656 # Extract the first word of "circo", so it can be a program name with args.
7657 set dummy circo; ac_word=$2
7658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7660 if test "${ac_cv_path_CIRCO+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7662 else
7663 case $CIRCO in
7664 [\\/]* | ?:[\\/]*)
7665 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 for as_dir in $PATH
7671 IFS=$as_save_IFS
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7675 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 break 2
7679 done
7680 done
7681 IFS=$as_save_IFS
7683 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7685 esac
7687 CIRCO=$ac_cv_path_CIRCO
7688 if test -n "$CIRCO"; then
7689 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7690 echo "${ECHO_T}$CIRCO" >&6; }
7691 else
7692 { echo "$as_me:$LINENO: result: no" >&5
7693 echo "${ECHO_T}no" >&6; }
7697 if test "$CIRCO" != "echo circo" ; then
7699 cat >>confdefs.h <<\_ACEOF
7700 #define HAVE_CIRCO 1
7701 _ACEOF
7703 if test "$llvm_cv_os_type" = "MingW" ; then
7704 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7707 cat >>confdefs.h <<_ACEOF
7708 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7709 _ACEOF
7712 for ac_prog in gv gsview32
7714 # Extract the first word of "$ac_prog", so it can be a program name with args.
7715 set dummy $ac_prog; ac_word=$2
7716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7718 if test "${ac_cv_path_GV+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7720 else
7721 case $GV in
7722 [\\/]* | ?:[\\/]*)
7723 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 for as_dir in $PATH
7729 IFS=$as_save_IFS
7730 test -z "$as_dir" && as_dir=.
7731 for ac_exec_ext in '' $ac_executable_extensions; do
7732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7733 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7735 break 2
7737 done
7738 done
7739 IFS=$as_save_IFS
7742 esac
7744 GV=$ac_cv_path_GV
7745 if test -n "$GV"; then
7746 { echo "$as_me:$LINENO: result: $GV" >&5
7747 echo "${ECHO_T}$GV" >&6; }
7748 else
7749 { echo "$as_me:$LINENO: result: no" >&5
7750 echo "${ECHO_T}no" >&6; }
7754 test -n "$GV" && break
7755 done
7756 test -n "$GV" || GV="echo gv"
7758 if test "$GV" != "echo gv" ; then
7760 cat >>confdefs.h <<\_ACEOF
7761 #define HAVE_GV 1
7762 _ACEOF
7764 if test "$llvm_cv_os_type" = "MingW" ; then
7765 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7768 cat >>confdefs.h <<_ACEOF
7769 #define LLVM_PATH_GV "$GV${EXEEXT}"
7770 _ACEOF
7773 # Extract the first word of "dotty", so it can be a program name with args.
7774 set dummy dotty; ac_word=$2
7775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7777 if test "${ac_cv_path_DOTTY+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7779 else
7780 case $DOTTY in
7781 [\\/]* | ?:[\\/]*)
7782 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 for as_dir in $PATH
7788 IFS=$as_save_IFS
7789 test -z "$as_dir" && as_dir=.
7790 for ac_exec_ext in '' $ac_executable_extensions; do
7791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7792 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7794 break 2
7796 done
7797 done
7798 IFS=$as_save_IFS
7800 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7802 esac
7804 DOTTY=$ac_cv_path_DOTTY
7805 if test -n "$DOTTY"; then
7806 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7807 echo "${ECHO_T}$DOTTY" >&6; }
7808 else
7809 { echo "$as_me:$LINENO: result: no" >&5
7810 echo "${ECHO_T}no" >&6; }
7814 if test "$DOTTY" != "echo dotty" ; then
7816 cat >>confdefs.h <<\_ACEOF
7817 #define HAVE_DOTTY 1
7818 _ACEOF
7820 if test "$llvm_cv_os_type" = "MingW" ; then
7821 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7824 cat >>confdefs.h <<_ACEOF
7825 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7826 _ACEOF
7831 # Extract the first word of "perl", so it can be a program name with args.
7832 set dummy perl; ac_word=$2
7833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7835 if test "${ac_cv_path_PERL+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 else
7838 case $PERL in
7839 [\\/]* | ?:[\\/]*)
7840 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844 for as_dir in $PATH
7846 IFS=$as_save_IFS
7847 test -z "$as_dir" && as_dir=.
7848 for ac_exec_ext in '' $ac_executable_extensions; do
7849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7850 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7852 break 2
7854 done
7855 done
7856 IFS=$as_save_IFS
7858 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7860 esac
7862 PERL=$ac_cv_path_PERL
7863 if test -n "$PERL"; then
7864 { echo "$as_me:$LINENO: result: $PERL" >&5
7865 echo "${ECHO_T}$PERL" >&6; }
7866 else
7867 { echo "$as_me:$LINENO: result: no" >&5
7868 echo "${ECHO_T}no" >&6; }
7872 if test "$PERL" != "none"; then
7873 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7874 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7875 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7876 { echo "$as_me:$LINENO: result: yes" >&5
7877 echo "${ECHO_T}yes" >&6; }
7878 else
7879 PERL=none
7880 { echo "$as_me:$LINENO: result: not found" >&5
7881 echo "${ECHO_T}not found" >&6; }
7886 if test x"$PERL" = xnone; then
7887 HAVE_PERL=0
7889 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7890 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7891 { (exit 1); exit 1; }; }
7892 else
7893 HAVE_PERL=1
7897 # Find a good install program. We prefer a C program (faster),
7898 # so one script is as good as another. But avoid the broken or
7899 # incompatible versions:
7900 # SysV /etc/install, /usr/sbin/install
7901 # SunOS /usr/etc/install
7902 # IRIX /sbin/install
7903 # AIX /bin/install
7904 # AmigaOS /C/install, which installs bootblocks on floppy discs
7905 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7906 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7907 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7908 # OS/2's system install, which has a completely different semantic
7909 # ./install, which can be erroneously created by make from ./install.sh.
7910 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7911 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7912 if test -z "$INSTALL"; then
7913 if test "${ac_cv_path_install+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
7915 else
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 for as_dir in $PATH
7919 IFS=$as_save_IFS
7920 test -z "$as_dir" && as_dir=.
7921 # Account for people who put trailing slashes in PATH elements.
7922 case $as_dir/ in
7923 ./ | .// | /cC/* | \
7924 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7925 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7926 /usr/ucb/* ) ;;
7928 # OSF1 and SCO ODT 3.0 have their own names for install.
7929 # Don't use installbsd from OSF since it installs stuff as root
7930 # by default.
7931 for ac_prog in ginstall scoinst install; do
7932 for ac_exec_ext in '' $ac_executable_extensions; do
7933 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7934 if test $ac_prog = install &&
7935 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7936 # AIX install. It has an incompatible calling convention.
7938 elif test $ac_prog = install &&
7939 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7940 # program-specific install script used by HP pwplus--don't use.
7942 else
7943 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7944 break 3
7947 done
7948 done
7950 esac
7951 done
7952 IFS=$as_save_IFS
7956 if test "${ac_cv_path_install+set}" = set; then
7957 INSTALL=$ac_cv_path_install
7958 else
7959 # As a last resort, use the slow shell script. Don't cache a
7960 # value for INSTALL within a source directory, because that will
7961 # break other packages using the cache if that directory is
7962 # removed, or if the value is a relative name.
7963 INSTALL=$ac_install_sh
7966 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7967 echo "${ECHO_T}$INSTALL" >&6; }
7969 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7970 # It thinks the first close brace ends the variable substitution.
7971 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7973 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7975 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7978 # Extract the first word of "bzip2", so it can be a program name with args.
7979 set dummy bzip2; ac_word=$2
7980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7982 if test "${ac_cv_path_BZIP2+set}" = set; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7984 else
7985 case $BZIP2 in
7986 [\\/]* | ?:[\\/]*)
7987 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991 for as_dir in $PATH
7993 IFS=$as_save_IFS
7994 test -z "$as_dir" && as_dir=.
7995 for ac_exec_ext in '' $ac_executable_extensions; do
7996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7997 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7999 break 2
8001 done
8002 done
8003 IFS=$as_save_IFS
8006 esac
8008 BZIP2=$ac_cv_path_BZIP2
8009 if test -n "$BZIP2"; then
8010 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8011 echo "${ECHO_T}$BZIP2" >&6; }
8012 else
8013 { echo "$as_me:$LINENO: result: no" >&5
8014 echo "${ECHO_T}no" >&6; }
8018 # Extract the first word of "doxygen", so it can be a program name with args.
8019 set dummy doxygen; ac_word=$2
8020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8022 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8023 echo $ECHO_N "(cached) $ECHO_C" >&6
8024 else
8025 case $DOXYGEN in
8026 [\\/]* | ?:[\\/]*)
8027 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031 for as_dir in $PATH
8033 IFS=$as_save_IFS
8034 test -z "$as_dir" && as_dir=.
8035 for ac_exec_ext in '' $ac_executable_extensions; do
8036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8037 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8039 break 2
8041 done
8042 done
8043 IFS=$as_save_IFS
8046 esac
8048 DOXYGEN=$ac_cv_path_DOXYGEN
8049 if test -n "$DOXYGEN"; then
8050 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8051 echo "${ECHO_T}$DOXYGEN" >&6; }
8052 else
8053 { echo "$as_me:$LINENO: result: no" >&5
8054 echo "${ECHO_T}no" >&6; }
8058 # Extract the first word of "groff", so it can be a program name with args.
8059 set dummy groff; ac_word=$2
8060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8062 if test "${ac_cv_path_GROFF+set}" = set; then
8063 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 else
8065 case $GROFF in
8066 [\\/]* | ?:[\\/]*)
8067 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071 for as_dir in $PATH
8073 IFS=$as_save_IFS
8074 test -z "$as_dir" && as_dir=.
8075 for ac_exec_ext in '' $ac_executable_extensions; do
8076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8077 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8079 break 2
8081 done
8082 done
8083 IFS=$as_save_IFS
8086 esac
8088 GROFF=$ac_cv_path_GROFF
8089 if test -n "$GROFF"; then
8090 { echo "$as_me:$LINENO: result: $GROFF" >&5
8091 echo "${ECHO_T}$GROFF" >&6; }
8092 else
8093 { echo "$as_me:$LINENO: result: no" >&5
8094 echo "${ECHO_T}no" >&6; }
8098 # Extract the first word of "gzip", so it can be a program name with args.
8099 set dummy gzip; ac_word=$2
8100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8102 if test "${ac_cv_path_GZIP+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
8104 else
8105 case $GZIP in
8106 [\\/]* | ?:[\\/]*)
8107 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111 for as_dir in $PATH
8113 IFS=$as_save_IFS
8114 test -z "$as_dir" && as_dir=.
8115 for ac_exec_ext in '' $ac_executable_extensions; do
8116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8117 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8119 break 2
8121 done
8122 done
8123 IFS=$as_save_IFS
8126 esac
8128 GZIP=$ac_cv_path_GZIP
8129 if test -n "$GZIP"; then
8130 { echo "$as_me:$LINENO: result: $GZIP" >&5
8131 echo "${ECHO_T}$GZIP" >&6; }
8132 else
8133 { echo "$as_me:$LINENO: result: no" >&5
8134 echo "${ECHO_T}no" >&6; }
8138 # Extract the first word of "pod2html", so it can be a program name with args.
8139 set dummy pod2html; ac_word=$2
8140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8142 if test "${ac_cv_path_POD2HTML+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8144 else
8145 case $POD2HTML in
8146 [\\/]* | ?:[\\/]*)
8147 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151 for as_dir in $PATH
8153 IFS=$as_save_IFS
8154 test -z "$as_dir" && as_dir=.
8155 for ac_exec_ext in '' $ac_executable_extensions; do
8156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8157 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8159 break 2
8161 done
8162 done
8163 IFS=$as_save_IFS
8166 esac
8168 POD2HTML=$ac_cv_path_POD2HTML
8169 if test -n "$POD2HTML"; then
8170 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8171 echo "${ECHO_T}$POD2HTML" >&6; }
8172 else
8173 { echo "$as_me:$LINENO: result: no" >&5
8174 echo "${ECHO_T}no" >&6; }
8178 # Extract the first word of "pod2man", so it can be a program name with args.
8179 set dummy pod2man; ac_word=$2
8180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8182 if test "${ac_cv_path_POD2MAN+set}" = set; then
8183 echo $ECHO_N "(cached) $ECHO_C" >&6
8184 else
8185 case $POD2MAN in
8186 [\\/]* | ?:[\\/]*)
8187 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191 for as_dir in $PATH
8193 IFS=$as_save_IFS
8194 test -z "$as_dir" && as_dir=.
8195 for ac_exec_ext in '' $ac_executable_extensions; do
8196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8197 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8199 break 2
8201 done
8202 done
8203 IFS=$as_save_IFS
8206 esac
8208 POD2MAN=$ac_cv_path_POD2MAN
8209 if test -n "$POD2MAN"; then
8210 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8211 echo "${ECHO_T}$POD2MAN" >&6; }
8212 else
8213 { echo "$as_me:$LINENO: result: no" >&5
8214 echo "${ECHO_T}no" >&6; }
8218 # Extract the first word of "runtest", so it can be a program name with args.
8219 set dummy runtest; ac_word=$2
8220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8222 if test "${ac_cv_path_RUNTEST+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
8224 else
8225 case $RUNTEST in
8226 [\\/]* | ?:[\\/]*)
8227 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231 for as_dir in $PATH
8233 IFS=$as_save_IFS
8234 test -z "$as_dir" && as_dir=.
8235 for ac_exec_ext in '' $ac_executable_extensions; do
8236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8237 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8239 break 2
8241 done
8242 done
8243 IFS=$as_save_IFS
8246 esac
8248 RUNTEST=$ac_cv_path_RUNTEST
8249 if test -n "$RUNTEST"; then
8250 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8251 echo "${ECHO_T}$RUNTEST" >&6; }
8252 else
8253 { echo "$as_me:$LINENO: result: no" >&5
8254 echo "${ECHO_T}no" >&6; }
8259 no_itcl=true
8260 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8261 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8263 # Check whether --with-tclinclude was given.
8264 if test "${with_tclinclude+set}" = set; then
8265 withval=$with_tclinclude; with_tclinclude=${withval}
8266 else
8267 with_tclinclude=''
8270 if test "${ac_cv_path_tclsh+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8272 else
8274 if test x"${with_tclinclude}" != x ; then
8275 if test -f ${with_tclinclude}/tclsh ; then
8276 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8277 elif test -f ${with_tclinclude}/src/tclsh ; then
8278 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8279 else
8280 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8281 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8282 { (exit 1); exit 1; }; }
8288 if test x"${ac_cv_path_tclsh}" = x ; then
8289 { echo "$as_me:$LINENO: result: none" >&5
8290 echo "${ECHO_T}none" >&6; }
8291 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
8293 # Extract the first word of "$ac_prog", so it can be a program name with args.
8294 set dummy $ac_prog; ac_word=$2
8295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8297 if test "${ac_cv_path_TCLSH+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8299 else
8300 case $TCLSH in
8301 [\\/]* | ?:[\\/]*)
8302 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306 for as_dir in $PATH
8308 IFS=$as_save_IFS
8309 test -z "$as_dir" && as_dir=.
8310 for ac_exec_ext in '' $ac_executable_extensions; do
8311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8312 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8314 break 2
8316 done
8317 done
8318 IFS=$as_save_IFS
8321 esac
8323 TCLSH=$ac_cv_path_TCLSH
8324 if test -n "$TCLSH"; then
8325 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8326 echo "${ECHO_T}$TCLSH" >&6; }
8327 else
8328 { echo "$as_me:$LINENO: result: no" >&5
8329 echo "${ECHO_T}no" >&6; }
8333 test -n "$TCLSH" && break
8334 done
8336 if test x"${TCLSH}" = x ; then
8337 ac_cv_path_tclsh='';
8338 else
8339 ac_cv_path_tclsh="${TCLSH}";
8341 else
8342 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8343 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8344 TCLSH="${ac_cv_path_tclsh}"
8348 # Extract the first word of "zip", so it can be a program name with args.
8349 set dummy zip; ac_word=$2
8350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8352 if test "${ac_cv_path_ZIP+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
8354 else
8355 case $ZIP in
8356 [\\/]* | ?:[\\/]*)
8357 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361 for as_dir in $PATH
8363 IFS=$as_save_IFS
8364 test -z "$as_dir" && as_dir=.
8365 for ac_exec_ext in '' $ac_executable_extensions; do
8366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8367 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8369 break 2
8371 done
8372 done
8373 IFS=$as_save_IFS
8376 esac
8378 ZIP=$ac_cv_path_ZIP
8379 if test -n "$ZIP"; then
8380 { echo "$as_me:$LINENO: result: $ZIP" >&5
8381 echo "${ECHO_T}$ZIP" >&6; }
8382 else
8383 { echo "$as_me:$LINENO: result: no" >&5
8384 echo "${ECHO_T}no" >&6; }
8388 for ac_prog in ocamlc
8390 # Extract the first word of "$ac_prog", so it can be a program name with args.
8391 set dummy $ac_prog; ac_word=$2
8392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8394 if test "${ac_cv_path_OCAMLC+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8396 else
8397 case $OCAMLC in
8398 [\\/]* | ?:[\\/]*)
8399 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403 for as_dir in $PATH
8405 IFS=$as_save_IFS
8406 test -z "$as_dir" && as_dir=.
8407 for ac_exec_ext in '' $ac_executable_extensions; do
8408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8409 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8411 break 2
8413 done
8414 done
8415 IFS=$as_save_IFS
8418 esac
8420 OCAMLC=$ac_cv_path_OCAMLC
8421 if test -n "$OCAMLC"; then
8422 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8423 echo "${ECHO_T}$OCAMLC" >&6; }
8424 else
8425 { echo "$as_me:$LINENO: result: no" >&5
8426 echo "${ECHO_T}no" >&6; }
8430 test -n "$OCAMLC" && break
8431 done
8433 for ac_prog in ocamlopt
8435 # Extract the first word of "$ac_prog", so it can be a program name with args.
8436 set dummy $ac_prog; ac_word=$2
8437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8439 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
8441 else
8442 case $OCAMLOPT in
8443 [\\/]* | ?:[\\/]*)
8444 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448 for as_dir in $PATH
8450 IFS=$as_save_IFS
8451 test -z "$as_dir" && as_dir=.
8452 for ac_exec_ext in '' $ac_executable_extensions; do
8453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8454 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8456 break 2
8458 done
8459 done
8460 IFS=$as_save_IFS
8463 esac
8465 OCAMLOPT=$ac_cv_path_OCAMLOPT
8466 if test -n "$OCAMLOPT"; then
8467 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8468 echo "${ECHO_T}$OCAMLOPT" >&6; }
8469 else
8470 { echo "$as_me:$LINENO: result: no" >&5
8471 echo "${ECHO_T}no" >&6; }
8475 test -n "$OCAMLOPT" && break
8476 done
8478 for ac_prog in ocamldep
8480 # Extract the first word of "$ac_prog", so it can be a program name with args.
8481 set dummy $ac_prog; ac_word=$2
8482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8484 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8485 echo $ECHO_N "(cached) $ECHO_C" >&6
8486 else
8487 case $OCAMLDEP in
8488 [\\/]* | ?:[\\/]*)
8489 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8493 for as_dir in $PATH
8495 IFS=$as_save_IFS
8496 test -z "$as_dir" && as_dir=.
8497 for ac_exec_ext in '' $ac_executable_extensions; do
8498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8499 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8501 break 2
8503 done
8504 done
8505 IFS=$as_save_IFS
8508 esac
8510 OCAMLDEP=$ac_cv_path_OCAMLDEP
8511 if test -n "$OCAMLDEP"; then
8512 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8513 echo "${ECHO_T}$OCAMLDEP" >&6; }
8514 else
8515 { echo "$as_me:$LINENO: result: no" >&5
8516 echo "${ECHO_T}no" >&6; }
8520 test -n "$OCAMLDEP" && break
8521 done
8523 for ac_prog in ocamldoc
8525 # Extract the first word of "$ac_prog", so it can be a program name with args.
8526 set dummy $ac_prog; ac_word=$2
8527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8529 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8531 else
8532 case $OCAMLDOC in
8533 [\\/]* | ?:[\\/]*)
8534 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538 for as_dir in $PATH
8540 IFS=$as_save_IFS
8541 test -z "$as_dir" && as_dir=.
8542 for ac_exec_ext in '' $ac_executable_extensions; do
8543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8544 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8546 break 2
8548 done
8549 done
8550 IFS=$as_save_IFS
8553 esac
8555 OCAMLDOC=$ac_cv_path_OCAMLDOC
8556 if test -n "$OCAMLDOC"; then
8557 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8558 echo "${ECHO_T}$OCAMLDOC" >&6; }
8559 else
8560 { echo "$as_me:$LINENO: result: no" >&5
8561 echo "${ECHO_T}no" >&6; }
8565 test -n "$OCAMLDOC" && break
8566 done
8568 for ac_prog in gas as
8570 # Extract the first word of "$ac_prog", so it can be a program name with args.
8571 set dummy $ac_prog; ac_word=$2
8572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8574 if test "${ac_cv_path_GAS+set}" = set; then
8575 echo $ECHO_N "(cached) $ECHO_C" >&6
8576 else
8577 case $GAS in
8578 [\\/]* | ?:[\\/]*)
8579 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8583 for as_dir in $PATH
8585 IFS=$as_save_IFS
8586 test -z "$as_dir" && as_dir=.
8587 for ac_exec_ext in '' $ac_executable_extensions; do
8588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8589 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8591 break 2
8593 done
8594 done
8595 IFS=$as_save_IFS
8598 esac
8600 GAS=$ac_cv_path_GAS
8601 if test -n "$GAS"; then
8602 { echo "$as_me:$LINENO: result: $GAS" >&5
8603 echo "${ECHO_T}$GAS" >&6; }
8604 else
8605 { echo "$as_me:$LINENO: result: no" >&5
8606 echo "${ECHO_T}no" >&6; }
8610 test -n "$GAS" && break
8611 done
8614 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8615 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8616 if test "${llvm_cv_link_use_r+set}" = set; then
8617 echo $ECHO_N "(cached) $ECHO_C" >&6
8618 else
8619 ac_ext=c
8620 ac_cpp='$CPP $CPPFLAGS'
8621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8625 oldcflags="$CFLAGS"
8626 CFLAGS="$CFLAGS -Wl,-R."
8627 cat >conftest.$ac_ext <<_ACEOF
8628 /* confdefs.h. */
8629 _ACEOF
8630 cat confdefs.h >>conftest.$ac_ext
8631 cat >>conftest.$ac_ext <<_ACEOF
8632 /* end confdefs.h. */
8635 main ()
8637 int main() { return 0; }
8639 return 0;
8641 _ACEOF
8642 rm -f conftest.$ac_objext conftest$ac_exeext
8643 if { (ac_try="$ac_link"
8644 case "(($ac_try" in
8645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8646 *) ac_try_echo=$ac_try;;
8647 esac
8648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8649 (eval "$ac_link") 2>conftest.er1
8650 ac_status=$?
8651 grep -v '^ *+' conftest.er1 >conftest.err
8652 rm -f conftest.er1
8653 cat conftest.err >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } &&
8656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8657 { (case "(($ac_try" in
8658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659 *) ac_try_echo=$ac_try;;
8660 esac
8661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8662 (eval "$ac_try") 2>&5
8663 ac_status=$?
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; } &&
8666 { ac_try='test -s conftest$ac_exeext'
8667 { (case "(($ac_try" in
8668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8669 *) ac_try_echo=$ac_try;;
8670 esac
8671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8672 (eval "$ac_try") 2>&5
8673 ac_status=$?
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); }; }; then
8676 llvm_cv_link_use_r=yes
8677 else
8678 echo "$as_me: failed program was:" >&5
8679 sed 's/^/| /' conftest.$ac_ext >&5
8681 llvm_cv_link_use_r=no
8684 rm -f core conftest.err conftest.$ac_objext \
8685 conftest$ac_exeext conftest.$ac_ext
8686 CFLAGS="$oldcflags"
8687 ac_ext=c
8688 ac_cpp='$CPP $CPPFLAGS'
8689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8695 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8696 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8697 if test "$llvm_cv_link_use_r" = yes ; then
8699 cat >>confdefs.h <<\_ACEOF
8700 #define HAVE_LINK_R 1
8701 _ACEOF
8706 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8707 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8708 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
8710 else
8711 ac_ext=c
8712 ac_cpp='$CPP $CPPFLAGS'
8713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8717 oldcflags="$CFLAGS"
8718 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8719 cat >conftest.$ac_ext <<_ACEOF
8720 /* confdefs.h. */
8721 _ACEOF
8722 cat confdefs.h >>conftest.$ac_ext
8723 cat >>conftest.$ac_ext <<_ACEOF
8724 /* end confdefs.h. */
8727 main ()
8729 int main() { return 0; }
8731 return 0;
8733 _ACEOF
8734 rm -f conftest.$ac_objext conftest$ac_exeext
8735 if { (ac_try="$ac_link"
8736 case "(($ac_try" in
8737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8738 *) ac_try_echo=$ac_try;;
8739 esac
8740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8741 (eval "$ac_link") 2>conftest.er1
8742 ac_status=$?
8743 grep -v '^ *+' conftest.er1 >conftest.err
8744 rm -f conftest.er1
8745 cat conftest.err >&5
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); } &&
8748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8749 { (case "(($ac_try" in
8750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8751 *) ac_try_echo=$ac_try;;
8752 esac
8753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8754 (eval "$ac_try") 2>&5
8755 ac_status=$?
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); }; } &&
8758 { ac_try='test -s conftest$ac_exeext'
8759 { (case "(($ac_try" in
8760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;;
8762 esac
8763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8764 (eval "$ac_try") 2>&5
8765 ac_status=$?
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; }; then
8768 llvm_cv_link_use_export_dynamic=yes
8769 else
8770 echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8773 llvm_cv_link_use_export_dynamic=no
8776 rm -f core conftest.err conftest.$ac_objext \
8777 conftest$ac_exeext conftest.$ac_ext
8778 CFLAGS="$oldcflags"
8779 ac_ext=c
8780 ac_cpp='$CPP $CPPFLAGS'
8781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8787 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8788 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8789 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8791 cat >>confdefs.h <<\_ACEOF
8792 #define HAVE_LINK_EXPORT_DYNAMIC 1
8793 _ACEOF
8798 { echo "$as_me:$LINENO: checking for compiler -Wl,-retain-symbols-file option" >&5
8799 echo $ECHO_N "checking for compiler -Wl,-retain-symbols-file option... $ECHO_C" >&6; }
8800 if test "${llvm_cv_link_use_retain_symbols_file+set}" = set; then
8801 echo $ECHO_N "(cached) $ECHO_C" >&6
8802 else
8803 ac_ext=c
8804 ac_cpp='$CPP $CPPFLAGS'
8805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8809 oldcflags="$CFLAGS"
8811 # The following code is from the autoconf manual,
8812 # "11.13: Limitations of Usual Tools".
8813 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8814 # Use mktemp if possible; otherwise fall back on mkdir,
8815 # with $RANDOM to make collisions less likely.
8816 : ${TMPDIR=/tmp}
8818 tmp=`
8819 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8820 ` &&
8821 test -n "$tmp" && test -d "$tmp"
8822 } || {
8823 tmp=$TMPDIR/foo$$-$RANDOM
8824 (umask 077 && mkdir "$tmp")
8825 } || exit $?
8827 echo "main" > "$tmp/exports"
8829 CFLAGS="$CFLAGS -Wl,-retain-symbols-file=$tmp/exports"
8830 cat >conftest.$ac_ext <<_ACEOF
8831 /* confdefs.h. */
8832 _ACEOF
8833 cat confdefs.h >>conftest.$ac_ext
8834 cat >>conftest.$ac_ext <<_ACEOF
8835 /* end confdefs.h. */
8838 main ()
8840 int main() { return 0; }
8842 return 0;
8844 _ACEOF
8845 rm -f conftest.$ac_objext conftest$ac_exeext
8846 if { (ac_try="$ac_link"
8847 case "(($ac_try" in
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8850 esac
8851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852 (eval "$ac_link") 2>conftest.er1
8853 ac_status=$?
8854 grep -v '^ *+' conftest.er1 >conftest.err
8855 rm -f conftest.er1
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8860 { (case "(($ac_try" in
8861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862 *) ac_try_echo=$ac_try;;
8863 esac
8864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865 (eval "$ac_try") 2>&5
8866 ac_status=$?
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; } &&
8869 { ac_try='test -s conftest$ac_exeext'
8870 { (case "(($ac_try" in
8871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872 *) ac_try_echo=$ac_try;;
8873 esac
8874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8875 (eval "$ac_try") 2>&5
8876 ac_status=$?
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); }; }; then
8879 llvm_cv_link_use_retain_symbols_file=yes
8880 else
8881 echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8884 llvm_cv_link_use_retain_symbols_file=no
8887 rm -f core conftest.err conftest.$ac_objext \
8888 conftest$ac_exeext conftest.$ac_ext
8889 rm "$tmp/exports"
8890 rmdir "$tmp"
8891 CFLAGS="$oldcflags"
8892 ac_ext=c
8893 ac_cpp='$CPP $CPPFLAGS'
8894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8900 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_retain_symbols_file" >&5
8901 echo "${ECHO_T}$llvm_cv_link_use_retain_symbols_file" >&6; }
8902 if test "$llvm_cv_link_use_retain_symbols_file" = yes ; then
8903 HAVE_LINK_RETAIN_SYMBOLS_FILE=1
8910 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8911 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8912 if test "${ac_cv_c_const+set}" = set; then
8913 echo $ECHO_N "(cached) $ECHO_C" >&6
8914 else
8915 cat >conftest.$ac_ext <<_ACEOF
8916 /* confdefs.h. */
8917 _ACEOF
8918 cat confdefs.h >>conftest.$ac_ext
8919 cat >>conftest.$ac_ext <<_ACEOF
8920 /* end confdefs.h. */
8923 main ()
8925 /* FIXME: Include the comments suggested by Paul. */
8926 #ifndef __cplusplus
8927 /* Ultrix mips cc rejects this. */
8928 typedef int charset[2];
8929 const charset x;
8930 /* SunOS 4.1.1 cc rejects this. */
8931 char const *const *ccp;
8932 char **p;
8933 /* NEC SVR4.0.2 mips cc rejects this. */
8934 struct point {int x, y;};
8935 static struct point const zero = {0,0};
8936 /* AIX XL C 1.02.0.0 rejects this.
8937 It does not let you subtract one const X* pointer from another in
8938 an arm of an if-expression whose if-part is not a constant
8939 expression */
8940 const char *g = "string";
8941 ccp = &g + (g ? g-g : 0);
8942 /* HPUX 7.0 cc rejects these. */
8943 ++ccp;
8944 p = (char**) ccp;
8945 ccp = (char const *const *) p;
8946 { /* SCO 3.2v4 cc rejects this. */
8947 char *t;
8948 char const *s = 0 ? (char *) 0 : (char const *) 0;
8950 *t++ = 0;
8951 if (s) return 0;
8953 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8954 int x[] = {25, 17};
8955 const int *foo = &x[0];
8956 ++foo;
8958 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8959 typedef const int *iptr;
8960 iptr p = 0;
8961 ++p;
8963 { /* AIX XL C 1.02.0.0 rejects this saying
8964 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8965 struct s { int j; const int *ap[3]; };
8966 struct s *b; b->j = 5;
8968 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8969 const int foo = 10;
8970 if (!foo) return 0;
8972 return !x[0] && !zero.x;
8973 #endif
8976 return 0;
8978 _ACEOF
8979 rm -f conftest.$ac_objext
8980 if { (ac_try="$ac_compile"
8981 case "(($ac_try" in
8982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8983 *) ac_try_echo=$ac_try;;
8984 esac
8985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8986 (eval "$ac_compile") 2>conftest.er1
8987 ac_status=$?
8988 grep -v '^ *+' conftest.er1 >conftest.err
8989 rm -f conftest.er1
8990 cat conftest.err >&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); } &&
8993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8994 { (case "(($ac_try" in
8995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8996 *) ac_try_echo=$ac_try;;
8997 esac
8998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8999 (eval "$ac_try") 2>&5
9000 ac_status=$?
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; } &&
9003 { ac_try='test -s conftest.$ac_objext'
9004 { (case "(($ac_try" in
9005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9006 *) ac_try_echo=$ac_try;;
9007 esac
9008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9009 (eval "$ac_try") 2>&5
9010 ac_status=$?
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; }; then
9013 ac_cv_c_const=yes
9014 else
9015 echo "$as_me: failed program was:" >&5
9016 sed 's/^/| /' conftest.$ac_ext >&5
9018 ac_cv_c_const=no
9021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9023 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9024 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9025 if test $ac_cv_c_const = no; then
9027 cat >>confdefs.h <<\_ACEOF
9028 #define const
9029 _ACEOF
9038 ac_header_dirent=no
9039 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9040 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9041 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9042 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9044 echo $ECHO_N "(cached) $ECHO_C" >&6
9045 else
9046 cat >conftest.$ac_ext <<_ACEOF
9047 /* confdefs.h. */
9048 _ACEOF
9049 cat confdefs.h >>conftest.$ac_ext
9050 cat >>conftest.$ac_ext <<_ACEOF
9051 /* end confdefs.h. */
9052 #include <sys/types.h>
9053 #include <$ac_hdr>
9056 main ()
9058 if ((DIR *) 0)
9059 return 0;
9061 return 0;
9063 _ACEOF
9064 rm -f conftest.$ac_objext
9065 if { (ac_try="$ac_compile"
9066 case "(($ac_try" in
9067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9068 *) ac_try_echo=$ac_try;;
9069 esac
9070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9071 (eval "$ac_compile") 2>conftest.er1
9072 ac_status=$?
9073 grep -v '^ *+' conftest.er1 >conftest.err
9074 rm -f conftest.er1
9075 cat conftest.err >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } &&
9078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9079 { (case "(($ac_try" in
9080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9081 *) ac_try_echo=$ac_try;;
9082 esac
9083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9084 (eval "$ac_try") 2>&5
9085 ac_status=$?
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); }; } &&
9088 { ac_try='test -s conftest.$ac_objext'
9089 { (case "(($ac_try" in
9090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9091 *) ac_try_echo=$ac_try;;
9092 esac
9093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9094 (eval "$ac_try") 2>&5
9095 ac_status=$?
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); }; }; then
9098 eval "$as_ac_Header=yes"
9099 else
9100 echo "$as_me: failed program was:" >&5
9101 sed 's/^/| /' conftest.$ac_ext >&5
9103 eval "$as_ac_Header=no"
9106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9108 ac_res=`eval echo '${'$as_ac_Header'}'`
9109 { echo "$as_me:$LINENO: result: $ac_res" >&5
9110 echo "${ECHO_T}$ac_res" >&6; }
9111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9112 cat >>confdefs.h <<_ACEOF
9113 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9114 _ACEOF
9116 ac_header_dirent=$ac_hdr; break
9119 done
9120 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9121 if test $ac_header_dirent = dirent.h; then
9122 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9123 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9124 if test "${ac_cv_search_opendir+set}" = set; then
9125 echo $ECHO_N "(cached) $ECHO_C" >&6
9126 else
9127 ac_func_search_save_LIBS=$LIBS
9128 cat >conftest.$ac_ext <<_ACEOF
9129 /* confdefs.h. */
9130 _ACEOF
9131 cat confdefs.h >>conftest.$ac_ext
9132 cat >>conftest.$ac_ext <<_ACEOF
9133 /* end confdefs.h. */
9135 /* Override any GCC internal prototype to avoid an error.
9136 Use char because int might match the return type of a GCC
9137 builtin and then its argument prototype would still apply. */
9138 #ifdef __cplusplus
9139 extern "C"
9140 #endif
9141 char opendir ();
9143 main ()
9145 return opendir ();
9147 return 0;
9149 _ACEOF
9150 for ac_lib in '' dir; do
9151 if test -z "$ac_lib"; then
9152 ac_res="none required"
9153 else
9154 ac_res=-l$ac_lib
9155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9157 rm -f conftest.$ac_objext conftest$ac_exeext
9158 if { (ac_try="$ac_link"
9159 case "(($ac_try" in
9160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9161 *) ac_try_echo=$ac_try;;
9162 esac
9163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9164 (eval "$ac_link") 2>conftest.er1
9165 ac_status=$?
9166 grep -v '^ *+' conftest.er1 >conftest.err
9167 rm -f conftest.er1
9168 cat conftest.err >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } &&
9171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9172 { (case "(($ac_try" in
9173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9174 *) ac_try_echo=$ac_try;;
9175 esac
9176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9177 (eval "$ac_try") 2>&5
9178 ac_status=$?
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); }; } &&
9181 { ac_try='test -s conftest$ac_exeext'
9182 { (case "(($ac_try" in
9183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9184 *) ac_try_echo=$ac_try;;
9185 esac
9186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9187 (eval "$ac_try") 2>&5
9188 ac_status=$?
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); }; }; then
9191 ac_cv_search_opendir=$ac_res
9192 else
9193 echo "$as_me: failed program was:" >&5
9194 sed 's/^/| /' conftest.$ac_ext >&5
9199 rm -f core conftest.err conftest.$ac_objext \
9200 conftest$ac_exeext
9201 if test "${ac_cv_search_opendir+set}" = set; then
9202 break
9204 done
9205 if test "${ac_cv_search_opendir+set}" = set; then
9207 else
9208 ac_cv_search_opendir=no
9210 rm conftest.$ac_ext
9211 LIBS=$ac_func_search_save_LIBS
9213 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9214 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9215 ac_res=$ac_cv_search_opendir
9216 if test "$ac_res" != no; then
9217 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9221 else
9222 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9223 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9224 if test "${ac_cv_search_opendir+set}" = set; then
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
9226 else
9227 ac_func_search_save_LIBS=$LIBS
9228 cat >conftest.$ac_ext <<_ACEOF
9229 /* confdefs.h. */
9230 _ACEOF
9231 cat confdefs.h >>conftest.$ac_ext
9232 cat >>conftest.$ac_ext <<_ACEOF
9233 /* end confdefs.h. */
9235 /* Override any GCC internal prototype to avoid an error.
9236 Use char because int might match the return type of a GCC
9237 builtin and then its argument prototype would still apply. */
9238 #ifdef __cplusplus
9239 extern "C"
9240 #endif
9241 char opendir ();
9243 main ()
9245 return opendir ();
9247 return 0;
9249 _ACEOF
9250 for ac_lib in '' x; do
9251 if test -z "$ac_lib"; then
9252 ac_res="none required"
9253 else
9254 ac_res=-l$ac_lib
9255 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9257 rm -f conftest.$ac_objext conftest$ac_exeext
9258 if { (ac_try="$ac_link"
9259 case "(($ac_try" in
9260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9261 *) ac_try_echo=$ac_try;;
9262 esac
9263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9264 (eval "$ac_link") 2>conftest.er1
9265 ac_status=$?
9266 grep -v '^ *+' conftest.er1 >conftest.err
9267 rm -f conftest.er1
9268 cat conftest.err >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); } &&
9271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9272 { (case "(($ac_try" in
9273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9274 *) ac_try_echo=$ac_try;;
9275 esac
9276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9277 (eval "$ac_try") 2>&5
9278 ac_status=$?
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); }; } &&
9281 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9291 ac_cv_search_opendir=$ac_res
9292 else
9293 echo "$as_me: failed program was:" >&5
9294 sed 's/^/| /' conftest.$ac_ext >&5
9299 rm -f core conftest.err conftest.$ac_objext \
9300 conftest$ac_exeext
9301 if test "${ac_cv_search_opendir+set}" = set; then
9302 break
9304 done
9305 if test "${ac_cv_search_opendir+set}" = set; then
9307 else
9308 ac_cv_search_opendir=no
9310 rm conftest.$ac_ext
9311 LIBS=$ac_func_search_save_LIBS
9313 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9314 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9315 ac_res=$ac_cv_search_opendir
9316 if test "$ac_res" != no; then
9317 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9324 for ac_header in dlfcn.h
9326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9333 ac_res=`eval echo '${'$as_ac_Header'}'`
9334 { echo "$as_me:$LINENO: result: $ac_res" >&5
9335 echo "${ECHO_T}$ac_res" >&6; }
9336 else
9337 # Is the header compilable?
9338 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9340 cat >conftest.$ac_ext <<_ACEOF
9341 /* confdefs.h. */
9342 _ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9346 $ac_includes_default
9347 #include <$ac_header>
9348 _ACEOF
9349 rm -f conftest.$ac_objext
9350 if { (ac_try="$ac_compile"
9351 case "(($ac_try" in
9352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9353 *) ac_try_echo=$ac_try;;
9354 esac
9355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9356 (eval "$ac_compile") 2>conftest.er1
9357 ac_status=$?
9358 grep -v '^ *+' conftest.er1 >conftest.err
9359 rm -f conftest.er1
9360 cat conftest.err >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } &&
9363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9364 { (case "(($ac_try" in
9365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9366 *) ac_try_echo=$ac_try;;
9367 esac
9368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9369 (eval "$ac_try") 2>&5
9370 ac_status=$?
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); }; } &&
9373 { ac_try='test -s conftest.$ac_objext'
9374 { (case "(($ac_try" in
9375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9376 *) ac_try_echo=$ac_try;;
9377 esac
9378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9379 (eval "$ac_try") 2>&5
9380 ac_status=$?
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); }; }; then
9383 ac_header_compiler=yes
9384 else
9385 echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9388 ac_header_compiler=no
9391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9393 echo "${ECHO_T}$ac_header_compiler" >&6; }
9395 # Is the header present?
9396 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9398 cat >conftest.$ac_ext <<_ACEOF
9399 /* confdefs.h. */
9400 _ACEOF
9401 cat confdefs.h >>conftest.$ac_ext
9402 cat >>conftest.$ac_ext <<_ACEOF
9403 /* end confdefs.h. */
9404 #include <$ac_header>
9405 _ACEOF
9406 if { (ac_try="$ac_cpp conftest.$ac_ext"
9407 case "(($ac_try" in
9408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9409 *) ac_try_echo=$ac_try;;
9410 esac
9411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9413 ac_status=$?
9414 grep -v '^ *+' conftest.er1 >conftest.err
9415 rm -f conftest.er1
9416 cat conftest.err >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } >/dev/null; then
9419 if test -s conftest.err; then
9420 ac_cpp_err=$ac_c_preproc_warn_flag
9421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9422 else
9423 ac_cpp_err=
9425 else
9426 ac_cpp_err=yes
9428 if test -z "$ac_cpp_err"; then
9429 ac_header_preproc=yes
9430 else
9431 echo "$as_me: failed program was:" >&5
9432 sed 's/^/| /' conftest.$ac_ext >&5
9434 ac_header_preproc=no
9437 rm -f conftest.err conftest.$ac_ext
9438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9439 echo "${ECHO_T}$ac_header_preproc" >&6; }
9441 # So? What about this header?
9442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9443 yes:no: )
9444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9448 ac_header_preproc=yes
9450 no:yes:* )
9451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9463 ( cat <<\_ASBOX
9464 ## ----------------------------------- ##
9465 ## Report this to llvmbugs@cs.uiuc.edu ##
9466 ## ----------------------------------- ##
9467 _ASBOX
9468 ) | sed "s/^/$as_me: WARNING: /" >&2
9470 esac
9471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9475 else
9476 eval "$as_ac_Header=\$ac_header_preproc"
9478 ac_res=`eval echo '${'$as_ac_Header'}'`
9479 { echo "$as_me:$LINENO: result: $ac_res" >&5
9480 echo "${ECHO_T}$ac_res" >&6; }
9483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9484 cat >>confdefs.h <<_ACEOF
9485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9486 _ACEOF
9490 done
9492 # Check whether --enable-ltdl-install was given.
9493 if test "${enable_ltdl_install+set}" = set; then
9494 enableval=$enable_ltdl_install;
9500 if test x"${enable_ltdl_install-no}" != xno; then
9501 INSTALL_LTDL_TRUE=
9502 INSTALL_LTDL_FALSE='#'
9503 else
9504 INSTALL_LTDL_TRUE='#'
9505 INSTALL_LTDL_FALSE=
9510 if test x"${enable_ltdl_convenience-no}" != xno; then
9511 CONVENIENCE_LTDL_TRUE=
9512 CONVENIENCE_LTDL_FALSE='#'
9513 else
9514 CONVENIENCE_LTDL_TRUE='#'
9515 CONVENIENCE_LTDL_FALSE=
9519 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9520 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9521 library_names_spec=
9522 libname_spec='lib$name'
9523 soname_spec=
9524 shrext_cmds=".so"
9525 postinstall_cmds=
9526 postuninstall_cmds=
9527 finish_cmds=
9528 finish_eval=
9529 shlibpath_var=
9530 shlibpath_overrides_runpath=unknown
9531 version_type=none
9532 dynamic_linker="$host_os ld.so"
9533 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9534 if test "$GCC" = yes; then
9535 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9536 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9537 # if the path contains ";" then we assume it to be the separator
9538 # otherwise default to the standard path separator (i.e. ":") - it is
9539 # assumed that no part of a normal pathname contains ";" but that should
9540 # okay in the real world where ";" in dirpaths is itself problematic.
9541 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9542 else
9543 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9545 else
9546 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9548 need_lib_prefix=unknown
9549 hardcode_into_libs=no
9551 # when you set need_version to no, make sure it does not cause -set_version
9552 # flags to be left without arguments
9553 need_version=unknown
9555 case $host_os in
9556 aix3*)
9557 version_type=linux
9558 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9559 shlibpath_var=LIBPATH
9561 # AIX 3 has no versioning support, so we append a major version to the name.
9562 soname_spec='${libname}${release}${shared_ext}$major'
9565 aix4* | aix5*)
9566 version_type=linux
9567 need_lib_prefix=no
9568 need_version=no
9569 hardcode_into_libs=yes
9570 if test "$host_cpu" = ia64; then
9571 # AIX 5 supports IA64
9572 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9573 shlibpath_var=LD_LIBRARY_PATH
9574 else
9575 # With GCC up to 2.95.x, collect2 would create an import file
9576 # for dependence libraries. The import file would start with
9577 # the line `#! .'. This would cause the generated library to
9578 # depend on `.', always an invalid library. This was fixed in
9579 # development snapshots of GCC prior to 3.0.
9580 case $host_os in
9581 aix4 | aix4.[01] | aix4.[01].*)
9582 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9583 echo ' yes '
9584 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9586 else
9587 can_build_shared=no
9590 esac
9591 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9592 # soname into executable. Probably we can add versioning support to
9593 # collect2, so additional links can be useful in future.
9594 if test "$aix_use_runtimelinking" = yes; then
9595 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9596 # instead of lib<name>.a to let people know that these are not
9597 # typical AIX shared libraries.
9598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599 else
9600 # We preserve .a as extension for shared libraries through AIX4.2
9601 # and later when we are not doing run time linking.
9602 library_names_spec='${libname}${release}.a $libname.a'
9603 soname_spec='${libname}${release}${shared_ext}$major'
9605 shlibpath_var=LIBPATH
9609 amigaos*)
9610 library_names_spec='$libname.ixlibrary $libname.a'
9611 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9612 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'
9615 beos*)
9616 library_names_spec='${libname}${shared_ext}'
9617 dynamic_linker="$host_os ld.so"
9618 shlibpath_var=LIBRARY_PATH
9621 bsdi[45]*)
9622 version_type=linux
9623 need_version=no
9624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9625 soname_spec='${libname}${release}${shared_ext}$major'
9626 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9627 shlibpath_var=LD_LIBRARY_PATH
9628 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9629 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9630 # the default ld.so.conf also contains /usr/contrib/lib and
9631 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9632 # libtool to hard-code these into programs
9635 cygwin* | mingw* | pw32*)
9636 version_type=windows
9637 shrext_cmds=".dll"
9638 need_version=no
9639 need_lib_prefix=no
9641 case $GCC,$host_os in
9642 yes,cygwin* | yes,mingw* | yes,pw32*)
9643 library_names_spec='$libname.dll.a'
9644 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9645 postinstall_cmds='base_file=`basename \${file}`~
9646 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9647 dldir=$destdir/`dirname \$dlpath`~
9648 test -d \$dldir || mkdir -p \$dldir~
9649 $install_prog $dir/$dlname \$dldir/$dlname~
9650 chmod a+x \$dldir/$dlname'
9651 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9652 dlpath=$dir/\$dldll~
9653 $rm \$dlpath'
9654 shlibpath_overrides_runpath=yes
9656 case $host_os in
9657 cygwin*)
9658 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9659 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9660 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9662 mingw*)
9663 # MinGW DLLs use traditional 'lib' prefix
9664 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9665 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9666 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9667 # It is most probably a Windows format PATH printed by
9668 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9669 # path with ; separators, and with drive letters. We can handle the
9670 # drive letters (cygwin fileutils understands them), so leave them,
9671 # especially as we might pass files found there to a mingw objdump,
9672 # which wouldn't understand a cygwinified path. Ahh.
9673 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9674 else
9675 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9678 pw32*)
9679 # pw32 DLLs use 'pw' prefix rather than 'lib'
9680 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9682 esac
9686 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9688 esac
9689 dynamic_linker='Win32 ld.exe'
9690 # FIXME: first we should search . and the directory the executable is in
9691 shlibpath_var=PATH
9694 darwin* | rhapsody*)
9695 dynamic_linker="$host_os dyld"
9696 version_type=darwin
9697 need_lib_prefix=no
9698 need_version=no
9699 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9700 soname_spec='${libname}${release}${major}$shared_ext'
9701 shlibpath_overrides_runpath=yes
9702 shlibpath_var=DYLD_LIBRARY_PATH
9703 shrext_cmds='.dylib'
9704 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9705 if test "$GCC" = yes; then
9706 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"`
9707 else
9708 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9710 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9713 dgux*)
9714 version_type=linux
9715 need_lib_prefix=no
9716 need_version=no
9717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9718 soname_spec='${libname}${release}${shared_ext}$major'
9719 shlibpath_var=LD_LIBRARY_PATH
9722 freebsd1*)
9723 dynamic_linker=no
9726 kfreebsd*-gnu)
9727 version_type=linux
9728 need_lib_prefix=no
9729 need_version=no
9730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9731 soname_spec='${libname}${release}${shared_ext}$major'
9732 shlibpath_var=LD_LIBRARY_PATH
9733 shlibpath_overrides_runpath=no
9734 hardcode_into_libs=yes
9735 dynamic_linker='GNU ld.so'
9738 freebsd* | dragonfly*)
9739 # DragonFly does not have aout. When/if they implement a new
9740 # versioning mechanism, adjust this.
9741 if test -x /usr/bin/objformat; then
9742 objformat=`/usr/bin/objformat`
9743 else
9744 case $host_os in
9745 freebsd[123]*) objformat=aout ;;
9746 *) objformat=elf ;;
9747 esac
9749 version_type=freebsd-$objformat
9750 case $version_type in
9751 freebsd-elf*)
9752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9753 need_version=no
9754 need_lib_prefix=no
9756 freebsd-*)
9757 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9758 need_version=yes
9760 esac
9761 shlibpath_var=LD_LIBRARY_PATH
9762 case $host_os in
9763 freebsd2*)
9764 shlibpath_overrides_runpath=yes
9766 freebsd3.[01]* | freebsdelf3.[01]*)
9767 shlibpath_overrides_runpath=yes
9768 hardcode_into_libs=yes
9770 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9771 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9772 shlibpath_overrides_runpath=no
9773 hardcode_into_libs=yes
9775 freebsd*) # from 4.6 on
9776 shlibpath_overrides_runpath=yes
9777 hardcode_into_libs=yes
9779 esac
9782 gnu*)
9783 version_type=linux
9784 need_lib_prefix=no
9785 need_version=no
9786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9787 soname_spec='${libname}${release}${shared_ext}$major'
9788 shlibpath_var=LD_LIBRARY_PATH
9789 hardcode_into_libs=yes
9792 hpux9* | hpux10* | hpux11*)
9793 # Give a soname corresponding to the major version so that dld.sl refuses to
9794 # link against other versions.
9795 version_type=sunos
9796 need_lib_prefix=no
9797 need_version=no
9798 case $host_cpu in
9799 ia64*)
9800 shrext_cmds='.so'
9801 hardcode_into_libs=yes
9802 dynamic_linker="$host_os dld.so"
9803 shlibpath_var=LD_LIBRARY_PATH
9804 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9806 soname_spec='${libname}${release}${shared_ext}$major'
9807 if test "X$HPUX_IA64_MODE" = X32; then
9808 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9809 else
9810 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9812 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9814 hppa*64*)
9815 shrext_cmds='.sl'
9816 hardcode_into_libs=yes
9817 dynamic_linker="$host_os dld.sl"
9818 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9819 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9821 soname_spec='${libname}${release}${shared_ext}$major'
9822 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9823 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9826 shrext_cmds='.sl'
9827 dynamic_linker="$host_os dld.sl"
9828 shlibpath_var=SHLIB_PATH
9829 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9831 soname_spec='${libname}${release}${shared_ext}$major'
9833 esac
9834 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9835 postinstall_cmds='chmod 555 $lib'
9838 interix3*)
9839 version_type=linux
9840 need_lib_prefix=no
9841 need_version=no
9842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9843 soname_spec='${libname}${release}${shared_ext}$major'
9844 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9845 shlibpath_var=LD_LIBRARY_PATH
9846 shlibpath_overrides_runpath=no
9847 hardcode_into_libs=yes
9850 irix5* | irix6* | nonstopux*)
9851 case $host_os in
9852 nonstopux*) version_type=nonstopux ;;
9854 if test "$lt_cv_prog_gnu_ld" = yes; then
9855 version_type=linux
9856 else
9857 version_type=irix
9858 fi ;;
9859 esac
9860 need_lib_prefix=no
9861 need_version=no
9862 soname_spec='${libname}${release}${shared_ext}$major'
9863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9864 case $host_os in
9865 irix5* | nonstopux*)
9866 libsuff= shlibsuff=
9869 case $LD in # libtool.m4 will add one of these switches to LD
9870 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9871 libsuff= shlibsuff= libmagic=32-bit;;
9872 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9873 libsuff=32 shlibsuff=N32 libmagic=N32;;
9874 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9875 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9876 *) libsuff= shlibsuff= libmagic=never-match;;
9877 esac
9879 esac
9880 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9881 shlibpath_overrides_runpath=no
9882 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9883 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9884 hardcode_into_libs=yes
9887 # No shared lib support for Linux oldld, aout, or coff.
9888 linux*oldld* | linux*aout* | linux*coff*)
9889 dynamic_linker=no
9892 # This must be Linux ELF.
9893 linux*)
9894 version_type=linux
9895 need_lib_prefix=no
9896 need_version=no
9897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9898 soname_spec='${libname}${release}${shared_ext}$major'
9899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9900 shlibpath_var=LD_LIBRARY_PATH
9901 shlibpath_overrides_runpath=no
9902 # This implies no fast_install, which is unacceptable.
9903 # Some rework will be needed to allow for fast_install
9904 # before this can be enabled.
9905 hardcode_into_libs=yes
9907 # Append ld.so.conf contents to the search path
9908 if test -f /etc/ld.so.conf; then
9909 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' ' '`
9910 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9913 # We used to test for /lib/ld.so.1 and disable shared libraries on
9914 # powerpc, because MkLinux only supported shared libraries with the
9915 # GNU dynamic linker. Since this was broken with cross compilers,
9916 # most powerpc-linux boxes support dynamic linking these days and
9917 # people can always --disable-shared, the test was removed, and we
9918 # assume the GNU/Linux dynamic linker is in use.
9919 dynamic_linker='GNU/Linux ld.so'
9922 knetbsd*-gnu)
9923 version_type=linux
9924 need_lib_prefix=no
9925 need_version=no
9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9927 soname_spec='${libname}${release}${shared_ext}$major'
9928 shlibpath_var=LD_LIBRARY_PATH
9929 shlibpath_overrides_runpath=no
9930 hardcode_into_libs=yes
9931 dynamic_linker='GNU ld.so'
9934 netbsd*)
9935 version_type=sunos
9936 need_lib_prefix=no
9937 need_version=no
9938 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9941 dynamic_linker='NetBSD (a.out) ld.so'
9942 else
9943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9944 soname_spec='${libname}${release}${shared_ext}$major'
9945 dynamic_linker='NetBSD ld.elf_so'
9947 shlibpath_var=LD_LIBRARY_PATH
9948 shlibpath_overrides_runpath=yes
9949 hardcode_into_libs=yes
9952 newsos6)
9953 version_type=linux
9954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9955 shlibpath_var=LD_LIBRARY_PATH
9956 shlibpath_overrides_runpath=yes
9959 nto-qnx*)
9960 version_type=linux
9961 need_lib_prefix=no
9962 need_version=no
9963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9964 soname_spec='${libname}${release}${shared_ext}$major'
9965 shlibpath_var=LD_LIBRARY_PATH
9966 shlibpath_overrides_runpath=yes
9969 openbsd*)
9970 version_type=sunos
9971 sys_lib_dlsearch_path_spec="/usr/lib"
9972 need_lib_prefix=no
9973 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9974 case $host_os in
9975 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9976 *) need_version=no ;;
9977 esac
9978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9980 shlibpath_var=LD_LIBRARY_PATH
9981 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9982 case $host_os in
9983 openbsd2.[89] | openbsd2.[89].*)
9984 shlibpath_overrides_runpath=no
9987 shlibpath_overrides_runpath=yes
9989 esac
9990 else
9991 shlibpath_overrides_runpath=yes
9995 os2*)
9996 libname_spec='$name'
9997 shrext_cmds=".dll"
9998 need_lib_prefix=no
9999 library_names_spec='$libname${shared_ext} $libname.a'
10000 dynamic_linker='OS/2 ld.exe'
10001 shlibpath_var=LIBPATH
10004 osf3* | osf4* | osf5*)
10005 version_type=osf
10006 need_lib_prefix=no
10007 need_version=no
10008 soname_spec='${libname}${release}${shared_ext}$major'
10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10010 shlibpath_var=LD_LIBRARY_PATH
10011 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10012 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10015 solaris*)
10016 version_type=linux
10017 need_lib_prefix=no
10018 need_version=no
10019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10020 soname_spec='${libname}${release}${shared_ext}$major'
10021 shlibpath_var=LD_LIBRARY_PATH
10022 shlibpath_overrides_runpath=yes
10023 hardcode_into_libs=yes
10024 # ldd complains unless libraries are executable
10025 postinstall_cmds='chmod +x $lib'
10028 sunos4*)
10029 version_type=sunos
10030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10031 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10032 shlibpath_var=LD_LIBRARY_PATH
10033 shlibpath_overrides_runpath=yes
10034 if test "$with_gnu_ld" = yes; then
10035 need_lib_prefix=no
10037 need_version=yes
10040 sysv4 | sysv4.3*)
10041 version_type=linux
10042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10043 soname_spec='${libname}${release}${shared_ext}$major'
10044 shlibpath_var=LD_LIBRARY_PATH
10045 case $host_vendor in
10046 sni)
10047 shlibpath_overrides_runpath=no
10048 need_lib_prefix=no
10049 export_dynamic_flag_spec='${wl}-Blargedynsym'
10050 runpath_var=LD_RUN_PATH
10052 siemens)
10053 need_lib_prefix=no
10055 motorola)
10056 need_lib_prefix=no
10057 need_version=no
10058 shlibpath_overrides_runpath=no
10059 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10061 esac
10064 sysv4*MP*)
10065 if test -d /usr/nec ;then
10066 version_type=linux
10067 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10068 soname_spec='$libname${shared_ext}.$major'
10069 shlibpath_var=LD_LIBRARY_PATH
10073 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10074 version_type=freebsd-elf
10075 need_lib_prefix=no
10076 need_version=no
10077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10078 soname_spec='${libname}${release}${shared_ext}$major'
10079 shlibpath_var=LD_LIBRARY_PATH
10080 hardcode_into_libs=yes
10081 if test "$with_gnu_ld" = yes; then
10082 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10083 shlibpath_overrides_runpath=no
10084 else
10085 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10086 shlibpath_overrides_runpath=yes
10087 case $host_os in
10088 sco3.2v5*)
10089 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10091 esac
10093 sys_lib_dlsearch_path_spec='/usr/lib'
10096 uts4*)
10097 version_type=linux
10098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10099 soname_spec='${libname}${release}${shared_ext}$major'
10100 shlibpath_var=LD_LIBRARY_PATH
10104 dynamic_linker=no
10106 esac
10107 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10108 echo "${ECHO_T}$dynamic_linker" >&6; }
10109 test "$dynamic_linker" = no && can_build_shared=no
10111 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10112 if test "$GCC" = yes; then
10113 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10117 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10118 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10119 if test "${libltdl_cv_shlibext+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
10121 else
10123 module=yes
10124 eval libltdl_cv_shlibext=$shrext_cmds
10127 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10128 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10129 if test -n "$libltdl_cv_shlibext"; then
10131 cat >>confdefs.h <<_ACEOF
10132 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10133 _ACEOF
10138 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10139 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10140 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
10142 else
10143 libltdl_cv_shlibpath_var="$shlibpath_var"
10145 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10146 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10147 if test -n "$libltdl_cv_shlibpath_var"; then
10149 cat >>confdefs.h <<_ACEOF
10150 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10151 _ACEOF
10156 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10157 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10158 if test "${libltdl_cv_sys_search_path+set}" = set; then
10159 echo $ECHO_N "(cached) $ECHO_C" >&6
10160 else
10161 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10163 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10164 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10165 if test -n "$libltdl_cv_sys_search_path"; then
10166 sys_search_path=
10167 for dir in $libltdl_cv_sys_search_path; do
10168 if test -z "$sys_search_path"; then
10169 sys_search_path="$dir"
10170 else
10171 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10173 done
10175 cat >>confdefs.h <<_ACEOF
10176 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10177 _ACEOF
10181 { echo "$as_me:$LINENO: checking for objdir" >&5
10182 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10183 if test "${libltdl_cv_objdir+set}" = set; then
10184 echo $ECHO_N "(cached) $ECHO_C" >&6
10185 else
10186 libltdl_cv_objdir="$objdir"
10187 if test -n "$objdir"; then
10189 else
10190 rm -f .libs 2>/dev/null
10191 mkdir .libs 2>/dev/null
10192 if test -d .libs; then
10193 libltdl_cv_objdir=.libs
10194 else
10195 # MS-DOS does not allow filenames that begin with a dot.
10196 libltdl_cv_objdir=_libs
10198 rmdir .libs 2>/dev/null
10202 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10203 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10205 cat >>confdefs.h <<_ACEOF
10206 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10207 _ACEOF
10214 # Check for command to grab the raw symbol name followed by C symbol from nm.
10215 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10216 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10217 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6
10219 else
10221 # These are sane defaults that work on at least a few old systems.
10222 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10224 # Character class describing NM global symbol codes.
10225 symcode='[BCDEGRST]'
10227 # Regexp to match symbols that can be accessed directly from C.
10228 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10230 # Transform an extracted symbol line into a proper C declaration
10231 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10233 # Transform an extracted symbol line into symbol name and symbol address
10234 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'"
10236 # Define system-specific variables.
10237 case $host_os in
10238 aix*)
10239 symcode='[BCDT]'
10241 cygwin* | mingw* | pw32*)
10242 symcode='[ABCDGISTW]'
10244 hpux*) # Its linker distinguishes data from code symbols
10245 if test "$host_cpu" = ia64; then
10246 symcode='[ABCDEGRST]'
10248 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10249 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'"
10251 linux*)
10252 if test "$host_cpu" = ia64; then
10253 symcode='[ABCDGIRSTW]'
10254 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10255 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'"
10258 irix* | nonstopux*)
10259 symcode='[BCDEGRST]'
10261 osf*)
10262 symcode='[BCDEGQRST]'
10264 solaris*)
10265 symcode='[BDRT]'
10267 sco3.2v5*)
10268 symcode='[DT]'
10270 sysv4.2uw2*)
10271 symcode='[DT]'
10273 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10274 symcode='[ABDT]'
10276 sysv4)
10277 symcode='[DFNSTU]'
10279 esac
10281 # Handle CRLF in mingw tool chain
10282 opt_cr=
10283 case $build_os in
10284 mingw*)
10285 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10287 esac
10289 # If we're using GNU nm, then use its standard symbol codes.
10290 case `$NM -V 2>&1` in
10291 *GNU* | *'with BFD'*)
10292 symcode='[ABCDGIRSTW]' ;;
10293 esac
10295 # Try without a prefix undercore, then with it.
10296 for ac_symprfx in "" "_"; do
10298 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10299 symxfrm="\\1 $ac_symprfx\\2 \\2"
10301 # Write the raw and C identifiers.
10302 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10304 # Check to see that the pipe works correctly.
10305 pipe_works=no
10307 rm -f conftest*
10308 cat > conftest.$ac_ext <<EOF
10309 #ifdef __cplusplus
10310 extern "C" {
10311 #endif
10312 char nm_test_var;
10313 void nm_test_func(){}
10314 #ifdef __cplusplus
10316 #endif
10317 int main(){nm_test_var='a';nm_test_func();return(0);}
10320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10321 (eval $ac_compile) 2>&5
10322 ac_status=$?
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; then
10325 # Now try to grab the symbols.
10326 nlist=conftest.nm
10327 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10328 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10329 ac_status=$?
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); } && test -s "$nlist"; then
10332 # Try sorting and uniquifying the output.
10333 if sort "$nlist" | uniq > "$nlist"T; then
10334 mv -f "$nlist"T "$nlist"
10335 else
10336 rm -f "$nlist"T
10339 # Make sure that we snagged all the symbols we need.
10340 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10341 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10342 cat <<EOF > conftest.$ac_ext
10343 #ifdef __cplusplus
10344 extern "C" {
10345 #endif
10348 # Now generate the symbol file.
10349 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10351 cat <<EOF >> conftest.$ac_ext
10352 #if defined (__STDC__) && __STDC__
10353 # define lt_ptr_t void *
10354 #else
10355 # define lt_ptr_t char *
10356 # define const
10357 #endif
10359 /* The mapping between symbol names and symbols. */
10360 const struct {
10361 const char *name;
10362 lt_ptr_t address;
10364 lt_preloaded_symbols[] =
10367 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10368 cat <<\EOF >> conftest.$ac_ext
10369 {0, (lt_ptr_t) 0}
10372 #ifdef __cplusplus
10374 #endif
10376 # Now try linking the two files.
10377 mv conftest.$ac_objext conftstm.$ac_objext
10378 lt_save_LIBS="$LIBS"
10379 lt_save_CFLAGS="$CFLAGS"
10380 LIBS="conftstm.$ac_objext"
10381 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10383 (eval $ac_link) 2>&5
10384 ac_status=$?
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10387 pipe_works=yes
10389 LIBS="$lt_save_LIBS"
10390 CFLAGS="$lt_save_CFLAGS"
10391 else
10392 echo "cannot find nm_test_func in $nlist" >&5
10394 else
10395 echo "cannot find nm_test_var in $nlist" >&5
10397 else
10398 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10400 else
10401 echo "$progname: failed program was:" >&5
10402 cat conftest.$ac_ext >&5
10404 rm -f conftest* conftst*
10406 # Do not use the global_symbol_pipe unless it works.
10407 if test "$pipe_works" = yes; then
10408 break
10409 else
10410 lt_cv_sys_global_symbol_pipe=
10412 done
10416 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10417 lt_cv_sys_global_symbol_to_cdecl=
10419 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10420 { echo "$as_me:$LINENO: result: failed" >&5
10421 echo "${ECHO_T}failed" >&6; }
10422 else
10423 { echo "$as_me:$LINENO: result: ok" >&5
10424 echo "${ECHO_T}ok" >&6; }
10428 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10429 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10430 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10432 else
10433 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10434 libltdl_cv_preloaded_symbols=yes
10435 else
10436 libltdl_cv_preloaded_symbols=no
10440 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10441 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10442 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10444 cat >>confdefs.h <<\_ACEOF
10445 #define HAVE_PRELOADED_SYMBOLS 1
10446 _ACEOF
10450 LIBADD_DL=
10452 ac_ext=c
10453 ac_cpp='$CPP $CPPFLAGS'
10454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10459 { echo "$as_me:$LINENO: checking for shl_load" >&5
10460 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10461 if test "${ac_cv_func_shl_load+set}" = set; then
10462 echo $ECHO_N "(cached) $ECHO_C" >&6
10463 else
10464 cat >conftest.$ac_ext <<_ACEOF
10465 /* confdefs.h. */
10466 _ACEOF
10467 cat confdefs.h >>conftest.$ac_ext
10468 cat >>conftest.$ac_ext <<_ACEOF
10469 /* end confdefs.h. */
10470 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10472 #define shl_load innocuous_shl_load
10474 /* System header to define __stub macros and hopefully few prototypes,
10475 which can conflict with char shl_load (); below.
10476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10477 <limits.h> exists even on freestanding compilers. */
10479 #ifdef __STDC__
10480 # include <limits.h>
10481 #else
10482 # include <assert.h>
10483 #endif
10485 #undef shl_load
10487 /* Override any GCC internal prototype to avoid an error.
10488 Use char because int might match the return type of a GCC
10489 builtin and then its argument prototype would still apply. */
10490 #ifdef __cplusplus
10491 extern "C"
10492 #endif
10493 char shl_load ();
10494 /* The GNU C library defines this for functions which it implements
10495 to always fail with ENOSYS. Some functions are actually named
10496 something starting with __ and the normal name is an alias. */
10497 #if defined __stub_shl_load || defined __stub___shl_load
10498 choke me
10499 #endif
10502 main ()
10504 return shl_load ();
10506 return 0;
10508 _ACEOF
10509 rm -f conftest.$ac_objext conftest$ac_exeext
10510 if { (ac_try="$ac_link"
10511 case "(($ac_try" in
10512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513 *) ac_try_echo=$ac_try;;
10514 esac
10515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516 (eval "$ac_link") 2>conftest.er1
10517 ac_status=$?
10518 grep -v '^ *+' conftest.er1 >conftest.err
10519 rm -f conftest.er1
10520 cat conftest.err >&5
10521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522 (exit $ac_status); } &&
10523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10524 { (case "(($ac_try" in
10525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526 *) ac_try_echo=$ac_try;;
10527 esac
10528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529 (eval "$ac_try") 2>&5
10530 ac_status=$?
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); }; } &&
10533 { ac_try='test -s conftest$ac_exeext'
10534 { (case "(($ac_try" in
10535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536 *) ac_try_echo=$ac_try;;
10537 esac
10538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10539 (eval "$ac_try") 2>&5
10540 ac_status=$?
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); }; }; then
10543 ac_cv_func_shl_load=yes
10544 else
10545 echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10548 ac_cv_func_shl_load=no
10551 rm -f core conftest.err conftest.$ac_objext \
10552 conftest$ac_exeext conftest.$ac_ext
10554 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10555 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10556 if test $ac_cv_func_shl_load = yes; then
10558 cat >>confdefs.h <<\_ACEOF
10559 #define HAVE_SHL_LOAD 1
10560 _ACEOF
10562 else
10563 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10564 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10565 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
10567 else
10568 ac_check_lib_save_LIBS=$LIBS
10569 LIBS="-ldld $LIBS"
10570 cat >conftest.$ac_ext <<_ACEOF
10571 /* confdefs.h. */
10572 _ACEOF
10573 cat confdefs.h >>conftest.$ac_ext
10574 cat >>conftest.$ac_ext <<_ACEOF
10575 /* end confdefs.h. */
10577 /* Override any GCC internal prototype to avoid an error.
10578 Use char because int might match the return type of a GCC
10579 builtin and then its argument prototype would still apply. */
10580 #ifdef __cplusplus
10581 extern "C"
10582 #endif
10583 char shl_load ();
10585 main ()
10587 return shl_load ();
10589 return 0;
10591 _ACEOF
10592 rm -f conftest.$ac_objext conftest$ac_exeext
10593 if { (ac_try="$ac_link"
10594 case "(($ac_try" in
10595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10596 *) ac_try_echo=$ac_try;;
10597 esac
10598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10599 (eval "$ac_link") 2>conftest.er1
10600 ac_status=$?
10601 grep -v '^ *+' conftest.er1 >conftest.err
10602 rm -f conftest.er1
10603 cat conftest.err >&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); } &&
10606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10607 { (case "(($ac_try" in
10608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609 *) ac_try_echo=$ac_try;;
10610 esac
10611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10612 (eval "$ac_try") 2>&5
10613 ac_status=$?
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); }; } &&
10616 { ac_try='test -s conftest$ac_exeext'
10617 { (case "(($ac_try" in
10618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619 *) ac_try_echo=$ac_try;;
10620 esac
10621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10622 (eval "$ac_try") 2>&5
10623 ac_status=$?
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); }; }; then
10626 ac_cv_lib_dld_shl_load=yes
10627 else
10628 echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.$ac_ext >&5
10631 ac_cv_lib_dld_shl_load=no
10634 rm -f core conftest.err conftest.$ac_objext \
10635 conftest$ac_exeext conftest.$ac_ext
10636 LIBS=$ac_check_lib_save_LIBS
10638 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10639 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10640 if test $ac_cv_lib_dld_shl_load = yes; then
10642 cat >>confdefs.h <<\_ACEOF
10643 #define HAVE_SHL_LOAD 1
10644 _ACEOF
10646 LIBADD_DL="$LIBADD_DL -ldld"
10647 else
10648 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10649 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10650 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10651 echo $ECHO_N "(cached) $ECHO_C" >&6
10652 else
10653 ac_check_lib_save_LIBS=$LIBS
10654 LIBS="-ldl $LIBS"
10655 cat >conftest.$ac_ext <<_ACEOF
10656 /* confdefs.h. */
10657 _ACEOF
10658 cat confdefs.h >>conftest.$ac_ext
10659 cat >>conftest.$ac_ext <<_ACEOF
10660 /* end confdefs.h. */
10662 /* Override any GCC internal prototype to avoid an error.
10663 Use char because int might match the return type of a GCC
10664 builtin and then its argument prototype would still apply. */
10665 #ifdef __cplusplus
10666 extern "C"
10667 #endif
10668 char dlopen ();
10670 main ()
10672 return dlopen ();
10674 return 0;
10676 _ACEOF
10677 rm -f conftest.$ac_objext conftest$ac_exeext
10678 if { (ac_try="$ac_link"
10679 case "(($ac_try" in
10680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681 *) ac_try_echo=$ac_try;;
10682 esac
10683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10684 (eval "$ac_link") 2>conftest.er1
10685 ac_status=$?
10686 grep -v '^ *+' conftest.er1 >conftest.err
10687 rm -f conftest.er1
10688 cat conftest.err >&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } &&
10691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10692 { (case "(($ac_try" in
10693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694 *) ac_try_echo=$ac_try;;
10695 esac
10696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697 (eval "$ac_try") 2>&5
10698 ac_status=$?
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); }; } &&
10701 { ac_try='test -s conftest$ac_exeext'
10702 { (case "(($ac_try" in
10703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704 *) ac_try_echo=$ac_try;;
10705 esac
10706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10707 (eval "$ac_try") 2>&5
10708 ac_status=$?
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); }; }; then
10711 ac_cv_lib_dl_dlopen=yes
10712 else
10713 echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10716 ac_cv_lib_dl_dlopen=no
10719 rm -f core conftest.err conftest.$ac_objext \
10720 conftest$ac_exeext conftest.$ac_ext
10721 LIBS=$ac_check_lib_save_LIBS
10723 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10724 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10725 if test $ac_cv_lib_dl_dlopen = yes; then
10727 cat >>confdefs.h <<\_ACEOF
10728 #define HAVE_LIBDL 1
10729 _ACEOF
10731 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10732 else
10733 cat >conftest.$ac_ext <<_ACEOF
10734 /* confdefs.h. */
10735 _ACEOF
10736 cat confdefs.h >>conftest.$ac_ext
10737 cat >>conftest.$ac_ext <<_ACEOF
10738 /* end confdefs.h. */
10739 #if HAVE_DLFCN_H
10740 # include <dlfcn.h>
10741 #endif
10744 main ()
10746 dlopen(0, 0);
10748 return 0;
10750 _ACEOF
10751 rm -f conftest.$ac_objext conftest$ac_exeext
10752 if { (ac_try="$ac_link"
10753 case "(($ac_try" in
10754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10755 *) ac_try_echo=$ac_try;;
10756 esac
10757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10758 (eval "$ac_link") 2>conftest.er1
10759 ac_status=$?
10760 grep -v '^ *+' conftest.er1 >conftest.err
10761 rm -f conftest.er1
10762 cat conftest.err >&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); } &&
10765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10766 { (case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10769 esac
10770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771 (eval "$ac_try") 2>&5
10772 ac_status=$?
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; } &&
10775 { ac_try='test -s conftest$ac_exeext'
10776 { (case "(($ac_try" in
10777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778 *) ac_try_echo=$ac_try;;
10779 esac
10780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10781 (eval "$ac_try") 2>&5
10782 ac_status=$?
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); }; }; then
10786 cat >>confdefs.h <<\_ACEOF
10787 #define HAVE_LIBDL 1
10788 _ACEOF
10789 libltdl_cv_func_dlopen="yes"
10790 else
10791 echo "$as_me: failed program was:" >&5
10792 sed 's/^/| /' conftest.$ac_ext >&5
10794 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10795 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10796 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10798 else
10799 ac_check_lib_save_LIBS=$LIBS
10800 LIBS="-lsvld $LIBS"
10801 cat >conftest.$ac_ext <<_ACEOF
10802 /* confdefs.h. */
10803 _ACEOF
10804 cat confdefs.h >>conftest.$ac_ext
10805 cat >>conftest.$ac_ext <<_ACEOF
10806 /* end confdefs.h. */
10808 /* Override any GCC internal prototype to avoid an error.
10809 Use char because int might match the return type of a GCC
10810 builtin and then its argument prototype would still apply. */
10811 #ifdef __cplusplus
10812 extern "C"
10813 #endif
10814 char dlopen ();
10816 main ()
10818 return dlopen ();
10820 return 0;
10822 _ACEOF
10823 rm -f conftest.$ac_objext conftest$ac_exeext
10824 if { (ac_try="$ac_link"
10825 case "(($ac_try" in
10826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827 *) ac_try_echo=$ac_try;;
10828 esac
10829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830 (eval "$ac_link") 2>conftest.er1
10831 ac_status=$?
10832 grep -v '^ *+' conftest.er1 >conftest.err
10833 rm -f conftest.er1
10834 cat conftest.err >&5
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); } &&
10837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10838 { (case "(($ac_try" in
10839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840 *) ac_try_echo=$ac_try;;
10841 esac
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843 (eval "$ac_try") 2>&5
10844 ac_status=$?
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; } &&
10847 { ac_try='test -s conftest$ac_exeext'
10848 { (case "(($ac_try" in
10849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850 *) ac_try_echo=$ac_try;;
10851 esac
10852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853 (eval "$ac_try") 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857 ac_cv_lib_svld_dlopen=yes
10858 else
10859 echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10862 ac_cv_lib_svld_dlopen=no
10865 rm -f core conftest.err conftest.$ac_objext \
10866 conftest$ac_exeext conftest.$ac_ext
10867 LIBS=$ac_check_lib_save_LIBS
10869 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10870 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10871 if test $ac_cv_lib_svld_dlopen = yes; then
10873 cat >>confdefs.h <<\_ACEOF
10874 #define HAVE_LIBDL 1
10875 _ACEOF
10877 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10878 else
10879 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10880 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10881 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10882 echo $ECHO_N "(cached) $ECHO_C" >&6
10883 else
10884 ac_check_lib_save_LIBS=$LIBS
10885 LIBS="-ldld $LIBS"
10886 cat >conftest.$ac_ext <<_ACEOF
10887 /* confdefs.h. */
10888 _ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h. */
10893 /* Override any GCC internal prototype to avoid an error.
10894 Use char because int might match the return type of a GCC
10895 builtin and then its argument prototype would still apply. */
10896 #ifdef __cplusplus
10897 extern "C"
10898 #endif
10899 char dld_link ();
10901 main ()
10903 return dld_link ();
10905 return 0;
10907 _ACEOF
10908 rm -f conftest.$ac_objext conftest$ac_exeext
10909 if { (ac_try="$ac_link"
10910 case "(($ac_try" in
10911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912 *) ac_try_echo=$ac_try;;
10913 esac
10914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10915 (eval "$ac_link") 2>conftest.er1
10916 ac_status=$?
10917 grep -v '^ *+' conftest.er1 >conftest.err
10918 rm -f conftest.er1
10919 cat conftest.err >&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); } &&
10922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10923 { (case "(($ac_try" in
10924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10925 *) ac_try_echo=$ac_try;;
10926 esac
10927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10928 (eval "$ac_try") 2>&5
10929 ac_status=$?
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }; } &&
10932 { ac_try='test -s conftest$ac_exeext'
10933 { (case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10936 esac
10937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938 (eval "$ac_try") 2>&5
10939 ac_status=$?
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; }; then
10942 ac_cv_lib_dld_dld_link=yes
10943 else
10944 echo "$as_me: failed program was:" >&5
10945 sed 's/^/| /' conftest.$ac_ext >&5
10947 ac_cv_lib_dld_dld_link=no
10950 rm -f core conftest.err conftest.$ac_objext \
10951 conftest$ac_exeext conftest.$ac_ext
10952 LIBS=$ac_check_lib_save_LIBS
10954 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10955 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10956 if test $ac_cv_lib_dld_dld_link = yes; then
10958 cat >>confdefs.h <<\_ACEOF
10959 #define HAVE_DLD 1
10960 _ACEOF
10962 LIBADD_DL="$LIBADD_DL -ldld"
10963 else
10964 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10965 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10966 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10967 echo $ECHO_N "(cached) $ECHO_C" >&6
10968 else
10969 cat >conftest.$ac_ext <<_ACEOF
10970 /* confdefs.h. */
10971 _ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h. */
10975 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10977 #define _dyld_func_lookup innocuous__dyld_func_lookup
10979 /* System header to define __stub macros and hopefully few prototypes,
10980 which can conflict with char _dyld_func_lookup (); below.
10981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10982 <limits.h> exists even on freestanding compilers. */
10984 #ifdef __STDC__
10985 # include <limits.h>
10986 #else
10987 # include <assert.h>
10988 #endif
10990 #undef _dyld_func_lookup
10992 /* Override any GCC internal prototype to avoid an error.
10993 Use char because int might match the return type of a GCC
10994 builtin and then its argument prototype would still apply. */
10995 #ifdef __cplusplus
10996 extern "C"
10997 #endif
10998 char _dyld_func_lookup ();
10999 /* The GNU C library defines this for functions which it implements
11000 to always fail with ENOSYS. Some functions are actually named
11001 something starting with __ and the normal name is an alias. */
11002 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11003 choke me
11004 #endif
11007 main ()
11009 return _dyld_func_lookup ();
11011 return 0;
11013 _ACEOF
11014 rm -f conftest.$ac_objext conftest$ac_exeext
11015 if { (ac_try="$ac_link"
11016 case "(($ac_try" in
11017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018 *) ac_try_echo=$ac_try;;
11019 esac
11020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021 (eval "$ac_link") 2>conftest.er1
11022 ac_status=$?
11023 grep -v '^ *+' conftest.er1 >conftest.err
11024 rm -f conftest.er1
11025 cat conftest.err >&5
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); } &&
11028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11029 { (case "(($ac_try" in
11030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11031 *) ac_try_echo=$ac_try;;
11032 esac
11033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11034 (eval "$ac_try") 2>&5
11035 ac_status=$?
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; } &&
11038 { ac_try='test -s conftest$ac_exeext'
11039 { (case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11042 esac
11043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044 (eval "$ac_try") 2>&5
11045 ac_status=$?
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; }; then
11048 ac_cv_func__dyld_func_lookup=yes
11049 else
11050 echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11053 ac_cv_func__dyld_func_lookup=no
11056 rm -f core conftest.err conftest.$ac_objext \
11057 conftest$ac_exeext conftest.$ac_ext
11059 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11060 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11061 if test $ac_cv_func__dyld_func_lookup = yes; then
11063 cat >>confdefs.h <<\_ACEOF
11064 #define HAVE_DYLD 1
11065 _ACEOF
11078 rm -f core conftest.err conftest.$ac_objext \
11079 conftest$ac_exeext conftest.$ac_ext
11090 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11091 then
11092 lt_save_LIBS="$LIBS"
11093 LIBS="$LIBS $LIBADD_DL"
11095 for ac_func in dlerror
11097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11098 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11100 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11102 else
11103 cat >conftest.$ac_ext <<_ACEOF
11104 /* confdefs.h. */
11105 _ACEOF
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h. */
11109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11111 #define $ac_func innocuous_$ac_func
11113 /* System header to define __stub macros and hopefully few prototypes,
11114 which can conflict with char $ac_func (); below.
11115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11116 <limits.h> exists even on freestanding compilers. */
11118 #ifdef __STDC__
11119 # include <limits.h>
11120 #else
11121 # include <assert.h>
11122 #endif
11124 #undef $ac_func
11126 /* Override any GCC internal prototype to avoid an error.
11127 Use char because int might match the return type of a GCC
11128 builtin and then its argument prototype would still apply. */
11129 #ifdef __cplusplus
11130 extern "C"
11131 #endif
11132 char $ac_func ();
11133 /* The GNU C library defines this for functions which it implements
11134 to always fail with ENOSYS. Some functions are actually named
11135 something starting with __ and the normal name is an alias. */
11136 #if defined __stub_$ac_func || defined __stub___$ac_func
11137 choke me
11138 #endif
11141 main ()
11143 return $ac_func ();
11145 return 0;
11147 _ACEOF
11148 rm -f conftest.$ac_objext conftest$ac_exeext
11149 if { (ac_try="$ac_link"
11150 case "(($ac_try" in
11151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152 *) ac_try_echo=$ac_try;;
11153 esac
11154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11155 (eval "$ac_link") 2>conftest.er1
11156 ac_status=$?
11157 grep -v '^ *+' conftest.er1 >conftest.err
11158 rm -f conftest.er1
11159 cat conftest.err >&5
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); } &&
11162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11163 { (case "(($ac_try" in
11164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165 *) ac_try_echo=$ac_try;;
11166 esac
11167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168 (eval "$ac_try") 2>&5
11169 ac_status=$?
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); }; } &&
11172 { ac_try='test -s conftest$ac_exeext'
11173 { (case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11176 esac
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_try") 2>&5
11179 ac_status=$?
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; }; then
11182 eval "$as_ac_var=yes"
11183 else
11184 echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11187 eval "$as_ac_var=no"
11190 rm -f core conftest.err conftest.$ac_objext \
11191 conftest$ac_exeext conftest.$ac_ext
11193 ac_res=`eval echo '${'$as_ac_var'}'`
11194 { echo "$as_me:$LINENO: result: $ac_res" >&5
11195 echo "${ECHO_T}$ac_res" >&6; }
11196 if test `eval echo '${'$as_ac_var'}'` = yes; then
11197 cat >>confdefs.h <<_ACEOF
11198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11199 _ACEOF
11202 done
11204 LIBS="$lt_save_LIBS"
11206 ac_ext=c
11207 ac_cpp='$CPP $CPPFLAGS'
11208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11214 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11215 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11216 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11217 echo $ECHO_N "(cached) $ECHO_C" >&6
11218 else
11219 ac_cv_sys_symbol_underscore=no
11220 cat > conftest.$ac_ext <<EOF
11221 void nm_test_func(){}
11222 int main(){nm_test_func;return 0;}
11224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11225 (eval $ac_compile) 2>&5
11226 ac_status=$?
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; then
11229 # Now try to grab the symbols.
11230 ac_nlist=conftest.nm
11231 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11232 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11233 ac_status=$?
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } && test -s "$ac_nlist"; then
11236 # See whether the symbols have a leading underscore.
11237 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11238 ac_cv_sys_symbol_underscore=yes
11239 else
11240 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11242 else
11243 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11246 else
11247 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11249 else
11250 echo "configure: failed program was:" >&5
11251 cat conftest.c >&5
11253 rm -rf conftest*
11256 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11257 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11260 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11261 if test x"$libltdl_cv_func_dlopen" = xyes ||
11262 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11263 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11264 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11265 if test "${libltdl_cv_need_uscore+set}" = set; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
11267 else
11268 libltdl_cv_need_uscore=unknown
11269 save_LIBS="$LIBS"
11270 LIBS="$LIBS $LIBADD_DL"
11271 if test "$cross_compiling" = yes; then :
11272 libltdl_cv_need_uscore=cross
11273 else
11274 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11275 lt_status=$lt_dlunknown
11276 cat > conftest.$ac_ext <<EOF
11277 #line 11277 "configure"
11278 #include "confdefs.h"
11280 #if HAVE_DLFCN_H
11281 #include <dlfcn.h>
11282 #endif
11284 #include <stdio.h>
11286 #ifdef RTLD_GLOBAL
11287 # define LT_DLGLOBAL RTLD_GLOBAL
11288 #else
11289 # ifdef DL_GLOBAL
11290 # define LT_DLGLOBAL DL_GLOBAL
11291 # else
11292 # define LT_DLGLOBAL 0
11293 # endif
11294 #endif
11296 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11297 find out it does not work in some platform. */
11298 #ifndef LT_DLLAZY_OR_NOW
11299 # ifdef RTLD_LAZY
11300 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11301 # else
11302 # ifdef DL_LAZY
11303 # define LT_DLLAZY_OR_NOW DL_LAZY
11304 # else
11305 # ifdef RTLD_NOW
11306 # define LT_DLLAZY_OR_NOW RTLD_NOW
11307 # else
11308 # ifdef DL_NOW
11309 # define LT_DLLAZY_OR_NOW DL_NOW
11310 # else
11311 # define LT_DLLAZY_OR_NOW 0
11312 # endif
11313 # endif
11314 # endif
11315 # endif
11316 #endif
11318 #ifdef __cplusplus
11319 extern "C" void exit (int);
11320 #endif
11322 void fnord() { int i=42;}
11323 int main ()
11325 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11326 int status = $lt_dlunknown;
11328 if (self)
11330 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11331 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11332 /* dlclose (self); */
11334 else
11335 puts (dlerror ());
11337 exit (status);
11340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11341 (eval $ac_link) 2>&5
11342 ac_status=$?
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11345 (./conftest; exit; ) >&5 2>/dev/null
11346 lt_status=$?
11347 case x$lt_status in
11348 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11349 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11350 x$lt_dlunknown|x*) ;;
11351 esac
11352 else :
11353 # compilation failed
11357 rm -fr conftest*
11359 LIBS="$save_LIBS"
11362 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11363 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11367 if test x"$libltdl_cv_need_uscore" = xyes; then
11369 cat >>confdefs.h <<\_ACEOF
11370 #define NEED_USCORE 1
11371 _ACEOF
11376 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11377 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11378 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11379 echo $ECHO_N "(cached) $ECHO_C" >&6
11380 else
11381 # PORTME does your system automatically load deplibs for dlopen?
11382 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11383 # For now, we just catch OSes we know something about -- in the
11384 # future, we'll try test this programmatically.
11385 libltdl_cv_sys_dlopen_deplibs=unknown
11386 case "$host_os" in
11387 aix3*|aix4.1.*|aix4.2.*)
11388 # Unknown whether this is true for these versions of AIX, but
11389 # we want this `case' here to explicitly catch those versions.
11390 libltdl_cv_sys_dlopen_deplibs=unknown
11392 aix[45]*)
11393 libltdl_cv_sys_dlopen_deplibs=yes
11395 darwin*)
11396 # Assuming the user has installed a libdl from somewhere, this is true
11397 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11398 libltdl_cv_sys_dlopen_deplibs=yes
11400 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11401 # GNU and its variants, using gnu ld.so (Glibc)
11402 libltdl_cv_sys_dlopen_deplibs=yes
11404 hpux10*|hpux11*)
11405 libltdl_cv_sys_dlopen_deplibs=yes
11407 interix*)
11408 libltdl_cv_sys_dlopen_deplibs=yes
11410 irix[12345]*|irix6.[01]*)
11411 # Catch all versions of IRIX before 6.2, and indicate that we don't
11412 # know how it worked for any of those versions.
11413 libltdl_cv_sys_dlopen_deplibs=unknown
11415 irix*)
11416 # The case above catches anything before 6.2, and it's known that
11417 # at 6.2 and later dlopen does load deplibs.
11418 libltdl_cv_sys_dlopen_deplibs=yes
11420 netbsd*)
11421 libltdl_cv_sys_dlopen_deplibs=yes
11423 openbsd*)
11424 libltdl_cv_sys_dlopen_deplibs=yes
11426 osf[1234]*)
11427 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11428 # it did *not* use an RPATH in a shared library to find objects the
11429 # library depends on, so we explictly say `no'.
11430 libltdl_cv_sys_dlopen_deplibs=no
11432 osf5.0|osf5.0a|osf5.1)
11433 # dlopen *does* load deplibs and with the right loader patch applied
11434 # it even uses RPATH in a shared library to search for shared objects
11435 # that the library depends on, but there's no easy way to know if that
11436 # patch is installed. Since this is the case, all we can really
11437 # say is unknown -- it depends on the patch being installed. If
11438 # it is, this changes to `yes'. Without it, it would be `no'.
11439 libltdl_cv_sys_dlopen_deplibs=unknown
11441 osf*)
11442 # the two cases above should catch all versions of osf <= 5.1. Read
11443 # the comments above for what we know about them.
11444 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11445 # is used to find them so we can finally say `yes'.
11446 libltdl_cv_sys_dlopen_deplibs=yes
11448 solaris*)
11449 libltdl_cv_sys_dlopen_deplibs=yes
11451 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11452 libltdl_cv_sys_dlopen_deplibs=yes
11454 esac
11457 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11458 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11459 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11461 cat >>confdefs.h <<\_ACEOF
11462 #define LTDL_DLOPEN_DEPLIBS 1
11463 _ACEOF
11468 for ac_header in argz.h
11470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11475 echo $ECHO_N "(cached) $ECHO_C" >&6
11477 ac_res=`eval echo '${'$as_ac_Header'}'`
11478 { echo "$as_me:$LINENO: result: $ac_res" >&5
11479 echo "${ECHO_T}$ac_res" >&6; }
11480 else
11481 # Is the header compilable?
11482 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11484 cat >conftest.$ac_ext <<_ACEOF
11485 /* confdefs.h. */
11486 _ACEOF
11487 cat confdefs.h >>conftest.$ac_ext
11488 cat >>conftest.$ac_ext <<_ACEOF
11489 /* end confdefs.h. */
11490 $ac_includes_default
11491 #include <$ac_header>
11492 _ACEOF
11493 rm -f conftest.$ac_objext
11494 if { (ac_try="$ac_compile"
11495 case "(($ac_try" in
11496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497 *) ac_try_echo=$ac_try;;
11498 esac
11499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500 (eval "$ac_compile") 2>conftest.er1
11501 ac_status=$?
11502 grep -v '^ *+' conftest.er1 >conftest.err
11503 rm -f conftest.er1
11504 cat conftest.err >&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); } &&
11507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11508 { (case "(($ac_try" in
11509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11510 *) ac_try_echo=$ac_try;;
11511 esac
11512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11513 (eval "$ac_try") 2>&5
11514 ac_status=$?
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }; } &&
11517 { ac_try='test -s conftest.$ac_objext'
11518 { (case "(($ac_try" in
11519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520 *) ac_try_echo=$ac_try;;
11521 esac
11522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11523 (eval "$ac_try") 2>&5
11524 ac_status=$?
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; }; then
11527 ac_header_compiler=yes
11528 else
11529 echo "$as_me: failed program was:" >&5
11530 sed 's/^/| /' conftest.$ac_ext >&5
11532 ac_header_compiler=no
11535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11537 echo "${ECHO_T}$ac_header_compiler" >&6; }
11539 # Is the header present?
11540 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11542 cat >conftest.$ac_ext <<_ACEOF
11543 /* confdefs.h. */
11544 _ACEOF
11545 cat confdefs.h >>conftest.$ac_ext
11546 cat >>conftest.$ac_ext <<_ACEOF
11547 /* end confdefs.h. */
11548 #include <$ac_header>
11549 _ACEOF
11550 if { (ac_try="$ac_cpp conftest.$ac_ext"
11551 case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11554 esac
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11557 ac_status=$?
11558 grep -v '^ *+' conftest.er1 >conftest.err
11559 rm -f conftest.er1
11560 cat conftest.err >&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } >/dev/null; then
11563 if test -s conftest.err; then
11564 ac_cpp_err=$ac_c_preproc_warn_flag
11565 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11566 else
11567 ac_cpp_err=
11569 else
11570 ac_cpp_err=yes
11572 if test -z "$ac_cpp_err"; then
11573 ac_header_preproc=yes
11574 else
11575 echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.$ac_ext >&5
11578 ac_header_preproc=no
11581 rm -f conftest.err conftest.$ac_ext
11582 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11583 echo "${ECHO_T}$ac_header_preproc" >&6; }
11585 # So? What about this header?
11586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11587 yes:no: )
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11592 ac_header_preproc=yes
11594 no:yes:* )
11595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11600 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11601 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11602 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11605 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11606 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11607 ( cat <<\_ASBOX
11608 ## ----------------------------------- ##
11609 ## Report this to llvmbugs@cs.uiuc.edu ##
11610 ## ----------------------------------- ##
11611 _ASBOX
11612 ) | sed "s/^/$as_me: WARNING: /" >&2
11614 esac
11615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11618 echo $ECHO_N "(cached) $ECHO_C" >&6
11619 else
11620 eval "$as_ac_Header=\$ac_header_preproc"
11622 ac_res=`eval echo '${'$as_ac_Header'}'`
11623 { echo "$as_me:$LINENO: result: $ac_res" >&5
11624 echo "${ECHO_T}$ac_res" >&6; }
11627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11628 cat >>confdefs.h <<_ACEOF
11629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11630 _ACEOF
11634 done
11637 { echo "$as_me:$LINENO: checking for error_t" >&5
11638 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11639 if test "${ac_cv_type_error_t+set}" = set; then
11640 echo $ECHO_N "(cached) $ECHO_C" >&6
11641 else
11642 cat >conftest.$ac_ext <<_ACEOF
11643 /* confdefs.h. */
11644 _ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11648 #if HAVE_ARGZ_H
11649 # include <argz.h>
11650 #endif
11652 typedef error_t ac__type_new_;
11654 main ()
11656 if ((ac__type_new_ *) 0)
11657 return 0;
11658 if (sizeof (ac__type_new_))
11659 return 0;
11661 return 0;
11663 _ACEOF
11664 rm -f conftest.$ac_objext
11665 if { (ac_try="$ac_compile"
11666 case "(($ac_try" in
11667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668 *) ac_try_echo=$ac_try;;
11669 esac
11670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671 (eval "$ac_compile") 2>conftest.er1
11672 ac_status=$?
11673 grep -v '^ *+' conftest.er1 >conftest.err
11674 rm -f conftest.er1
11675 cat conftest.err >&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); } &&
11678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11679 { (case "(($ac_try" in
11680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681 *) ac_try_echo=$ac_try;;
11682 esac
11683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684 (eval "$ac_try") 2>&5
11685 ac_status=$?
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; } &&
11688 { ac_try='test -s conftest.$ac_objext'
11689 { (case "(($ac_try" in
11690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11691 *) ac_try_echo=$ac_try;;
11692 esac
11693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11694 (eval "$ac_try") 2>&5
11695 ac_status=$?
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); }; }; then
11698 ac_cv_type_error_t=yes
11699 else
11700 echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11703 ac_cv_type_error_t=no
11706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11708 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11709 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11710 if test $ac_cv_type_error_t = yes; then
11712 cat >>confdefs.h <<_ACEOF
11713 #define HAVE_ERROR_T 1
11714 _ACEOF
11717 else
11719 cat >>confdefs.h <<\_ACEOF
11720 #define error_t int
11721 _ACEOF
11731 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11734 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11736 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
11738 else
11739 cat >conftest.$ac_ext <<_ACEOF
11740 /* confdefs.h. */
11741 _ACEOF
11742 cat confdefs.h >>conftest.$ac_ext
11743 cat >>conftest.$ac_ext <<_ACEOF
11744 /* end confdefs.h. */
11745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11747 #define $ac_func innocuous_$ac_func
11749 /* System header to define __stub macros and hopefully few prototypes,
11750 which can conflict with char $ac_func (); below.
11751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11752 <limits.h> exists even on freestanding compilers. */
11754 #ifdef __STDC__
11755 # include <limits.h>
11756 #else
11757 # include <assert.h>
11758 #endif
11760 #undef $ac_func
11762 /* Override any GCC internal prototype to avoid an error.
11763 Use char because int might match the return type of a GCC
11764 builtin and then its argument prototype would still apply. */
11765 #ifdef __cplusplus
11766 extern "C"
11767 #endif
11768 char $ac_func ();
11769 /* The GNU C library defines this for functions which it implements
11770 to always fail with ENOSYS. Some functions are actually named
11771 something starting with __ and the normal name is an alias. */
11772 #if defined __stub_$ac_func || defined __stub___$ac_func
11773 choke me
11774 #endif
11777 main ()
11779 return $ac_func ();
11781 return 0;
11783 _ACEOF
11784 rm -f conftest.$ac_objext conftest$ac_exeext
11785 if { (ac_try="$ac_link"
11786 case "(($ac_try" in
11787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788 *) ac_try_echo=$ac_try;;
11789 esac
11790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791 (eval "$ac_link") 2>conftest.er1
11792 ac_status=$?
11793 grep -v '^ *+' conftest.er1 >conftest.err
11794 rm -f conftest.er1
11795 cat conftest.err >&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } &&
11798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11808 { ac_try='test -s conftest$ac_exeext'
11809 { (case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11812 esac
11813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_try") 2>&5
11815 ac_status=$?
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; }; then
11818 eval "$as_ac_var=yes"
11819 else
11820 echo "$as_me: failed program was:" >&5
11821 sed 's/^/| /' conftest.$ac_ext >&5
11823 eval "$as_ac_var=no"
11826 rm -f core conftest.err conftest.$ac_objext \
11827 conftest$ac_exeext conftest.$ac_ext
11829 ac_res=`eval echo '${'$as_ac_var'}'`
11830 { echo "$as_me:$LINENO: result: $ac_res" >&5
11831 echo "${ECHO_T}$ac_res" >&6; }
11832 if test `eval echo '${'$as_ac_var'}'` = yes; then
11833 cat >>confdefs.h <<_ACEOF
11834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11835 _ACEOF
11838 done
11867 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11868 stdio.h unistd.h
11870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11875 echo $ECHO_N "(cached) $ECHO_C" >&6
11877 ac_res=`eval echo '${'$as_ac_Header'}'`
11878 { echo "$as_me:$LINENO: result: $ac_res" >&5
11879 echo "${ECHO_T}$ac_res" >&6; }
11880 else
11881 # Is the header compilable?
11882 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11884 cat >conftest.$ac_ext <<_ACEOF
11885 /* confdefs.h. */
11886 _ACEOF
11887 cat confdefs.h >>conftest.$ac_ext
11888 cat >>conftest.$ac_ext <<_ACEOF
11889 /* end confdefs.h. */
11890 $ac_includes_default
11891 #include <$ac_header>
11892 _ACEOF
11893 rm -f conftest.$ac_objext
11894 if { (ac_try="$ac_compile"
11895 case "(($ac_try" in
11896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11897 *) ac_try_echo=$ac_try;;
11898 esac
11899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11900 (eval "$ac_compile") 2>conftest.er1
11901 ac_status=$?
11902 grep -v '^ *+' conftest.er1 >conftest.err
11903 rm -f conftest.er1
11904 cat conftest.err >&5
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); } &&
11907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11908 { (case "(($ac_try" in
11909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11910 *) ac_try_echo=$ac_try;;
11911 esac
11912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11913 (eval "$ac_try") 2>&5
11914 ac_status=$?
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); }; } &&
11917 { ac_try='test -s conftest.$ac_objext'
11918 { (case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11921 esac
11922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923 (eval "$ac_try") 2>&5
11924 ac_status=$?
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); }; }; then
11927 ac_header_compiler=yes
11928 else
11929 echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11932 ac_header_compiler=no
11935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11936 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11937 echo "${ECHO_T}$ac_header_compiler" >&6; }
11939 # Is the header present?
11940 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11942 cat >conftest.$ac_ext <<_ACEOF
11943 /* confdefs.h. */
11944 _ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h. */
11948 #include <$ac_header>
11949 _ACEOF
11950 if { (ac_try="$ac_cpp conftest.$ac_ext"
11951 case "(($ac_try" in
11952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11953 *) ac_try_echo=$ac_try;;
11954 esac
11955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11957 ac_status=$?
11958 grep -v '^ *+' conftest.er1 >conftest.err
11959 rm -f conftest.er1
11960 cat conftest.err >&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } >/dev/null; then
11963 if test -s conftest.err; then
11964 ac_cpp_err=$ac_c_preproc_warn_flag
11965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11966 else
11967 ac_cpp_err=
11969 else
11970 ac_cpp_err=yes
11972 if test -z "$ac_cpp_err"; then
11973 ac_header_preproc=yes
11974 else
11975 echo "$as_me: failed program was:" >&5
11976 sed 's/^/| /' conftest.$ac_ext >&5
11978 ac_header_preproc=no
11981 rm -f conftest.err conftest.$ac_ext
11982 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11983 echo "${ECHO_T}$ac_header_preproc" >&6; }
11985 # So? What about this header?
11986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11987 yes:no: )
11988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11992 ac_header_preproc=yes
11994 no:yes:* )
11995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11998 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12002 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12007 ( cat <<\_ASBOX
12008 ## ----------------------------------- ##
12009 ## Report this to llvmbugs@cs.uiuc.edu ##
12010 ## ----------------------------------- ##
12011 _ASBOX
12012 ) | sed "s/^/$as_me: WARNING: /" >&2
12014 esac
12015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
12019 else
12020 eval "$as_ac_Header=\$ac_header_preproc"
12022 ac_res=`eval echo '${'$as_ac_Header'}'`
12023 { echo "$as_me:$LINENO: result: $ac_res" >&5
12024 echo "${ECHO_T}$ac_res" >&6; }
12027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12028 cat >>confdefs.h <<_ACEOF
12029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12030 _ACEOF
12034 done
12040 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12044 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 ac_res=`eval echo '${'$as_ac_Header'}'`
12050 { echo "$as_me:$LINENO: result: $ac_res" >&5
12051 echo "${ECHO_T}$ac_res" >&6; }
12052 else
12053 # Is the header compilable?
12054 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12056 cat >conftest.$ac_ext <<_ACEOF
12057 /* confdefs.h. */
12058 _ACEOF
12059 cat confdefs.h >>conftest.$ac_ext
12060 cat >>conftest.$ac_ext <<_ACEOF
12061 /* end confdefs.h. */
12062 $ac_includes_default
12063 #include <$ac_header>
12064 _ACEOF
12065 rm -f conftest.$ac_objext
12066 if { (ac_try="$ac_compile"
12067 case "(($ac_try" in
12068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069 *) ac_try_echo=$ac_try;;
12070 esac
12071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072 (eval "$ac_compile") 2>conftest.er1
12073 ac_status=$?
12074 grep -v '^ *+' conftest.er1 >conftest.err
12075 rm -f conftest.er1
12076 cat conftest.err >&5
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); } &&
12079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12080 { (case "(($ac_try" in
12081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082 *) ac_try_echo=$ac_try;;
12083 esac
12084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12085 (eval "$ac_try") 2>&5
12086 ac_status=$?
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; } &&
12089 { ac_try='test -s conftest.$ac_objext'
12090 { (case "(($ac_try" in
12091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092 *) ac_try_echo=$ac_try;;
12093 esac
12094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12095 (eval "$ac_try") 2>&5
12096 ac_status=$?
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); }; }; then
12099 ac_header_compiler=yes
12100 else
12101 echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12104 ac_header_compiler=no
12107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12108 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12109 echo "${ECHO_T}$ac_header_compiler" >&6; }
12111 # Is the header present?
12112 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12114 cat >conftest.$ac_ext <<_ACEOF
12115 /* confdefs.h. */
12116 _ACEOF
12117 cat confdefs.h >>conftest.$ac_ext
12118 cat >>conftest.$ac_ext <<_ACEOF
12119 /* end confdefs.h. */
12120 #include <$ac_header>
12121 _ACEOF
12122 if { (ac_try="$ac_cpp conftest.$ac_ext"
12123 case "(($ac_try" in
12124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125 *) ac_try_echo=$ac_try;;
12126 esac
12127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12129 ac_status=$?
12130 grep -v '^ *+' conftest.er1 >conftest.err
12131 rm -f conftest.er1
12132 cat conftest.err >&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } >/dev/null; then
12135 if test -s conftest.err; then
12136 ac_cpp_err=$ac_c_preproc_warn_flag
12137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12138 else
12139 ac_cpp_err=
12141 else
12142 ac_cpp_err=yes
12144 if test -z "$ac_cpp_err"; then
12145 ac_header_preproc=yes
12146 else
12147 echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12150 ac_header_preproc=no
12153 rm -f conftest.err conftest.$ac_ext
12154 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12155 echo "${ECHO_T}$ac_header_preproc" >&6; }
12157 # So? What about this header?
12158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12159 yes:no: )
12160 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12161 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12163 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12164 ac_header_preproc=yes
12166 no:yes:* )
12167 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12168 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12169 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12170 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12171 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12172 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12173 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12174 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12176 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12177 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12178 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12179 ( cat <<\_ASBOX
12180 ## ----------------------------------- ##
12181 ## Report this to llvmbugs@cs.uiuc.edu ##
12182 ## ----------------------------------- ##
12183 _ASBOX
12184 ) | sed "s/^/$as_me: WARNING: /" >&2
12186 esac
12187 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12191 else
12192 eval "$as_ac_Header=\$ac_header_preproc"
12194 ac_res=`eval echo '${'$as_ac_Header'}'`
12195 { echo "$as_me:$LINENO: result: $ac_res" >&5
12196 echo "${ECHO_T}$ac_res" >&6; }
12199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12200 cat >>confdefs.h <<_ACEOF
12201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12202 _ACEOF
12206 done
12210 for ac_header in string.h strings.h
12212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12217 echo $ECHO_N "(cached) $ECHO_C" >&6
12219 ac_res=`eval echo '${'$as_ac_Header'}'`
12220 { echo "$as_me:$LINENO: result: $ac_res" >&5
12221 echo "${ECHO_T}$ac_res" >&6; }
12222 else
12223 # Is the header compilable?
12224 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12225 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12226 cat >conftest.$ac_ext <<_ACEOF
12227 /* confdefs.h. */
12228 _ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12232 $ac_includes_default
12233 #include <$ac_header>
12234 _ACEOF
12235 rm -f conftest.$ac_objext
12236 if { (ac_try="$ac_compile"
12237 case "(($ac_try" in
12238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12239 *) ac_try_echo=$ac_try;;
12240 esac
12241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12242 (eval "$ac_compile") 2>conftest.er1
12243 ac_status=$?
12244 grep -v '^ *+' conftest.er1 >conftest.err
12245 rm -f conftest.er1
12246 cat conftest.err >&5
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); } &&
12249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12250 { (case "(($ac_try" in
12251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252 *) ac_try_echo=$ac_try;;
12253 esac
12254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255 (eval "$ac_try") 2>&5
12256 ac_status=$?
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); }; } &&
12259 { ac_try='test -s conftest.$ac_objext'
12260 { (case "(($ac_try" in
12261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262 *) ac_try_echo=$ac_try;;
12263 esac
12264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265 (eval "$ac_try") 2>&5
12266 ac_status=$?
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; }; then
12269 ac_header_compiler=yes
12270 else
12271 echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12274 ac_header_compiler=no
12277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12279 echo "${ECHO_T}$ac_header_compiler" >&6; }
12281 # Is the header present?
12282 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12284 cat >conftest.$ac_ext <<_ACEOF
12285 /* confdefs.h. */
12286 _ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12290 #include <$ac_header>
12291 _ACEOF
12292 if { (ac_try="$ac_cpp conftest.$ac_ext"
12293 case "(($ac_try" in
12294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12295 *) ac_try_echo=$ac_try;;
12296 esac
12297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12299 ac_status=$?
12300 grep -v '^ *+' conftest.er1 >conftest.err
12301 rm -f conftest.er1
12302 cat conftest.err >&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } >/dev/null; then
12305 if test -s conftest.err; then
12306 ac_cpp_err=$ac_c_preproc_warn_flag
12307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12308 else
12309 ac_cpp_err=
12311 else
12312 ac_cpp_err=yes
12314 if test -z "$ac_cpp_err"; then
12315 ac_header_preproc=yes
12316 else
12317 echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12320 ac_header_preproc=no
12323 rm -f conftest.err conftest.$ac_ext
12324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12325 echo "${ECHO_T}$ac_header_preproc" >&6; }
12327 # So? What about this header?
12328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12329 yes:no: )
12330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12334 ac_header_preproc=yes
12336 no:yes:* )
12337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12341 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12342 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12343 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12344 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12347 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12348 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12349 ( cat <<\_ASBOX
12350 ## ----------------------------------- ##
12351 ## Report this to llvmbugs@cs.uiuc.edu ##
12352 ## ----------------------------------- ##
12353 _ASBOX
12354 ) | sed "s/^/$as_me: WARNING: /" >&2
12356 esac
12357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12361 else
12362 eval "$as_ac_Header=\$ac_header_preproc"
12364 ac_res=`eval echo '${'$as_ac_Header'}'`
12365 { echo "$as_me:$LINENO: result: $ac_res" >&5
12366 echo "${ECHO_T}$ac_res" >&6; }
12369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12370 cat >>confdefs.h <<_ACEOF
12371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12372 _ACEOF
12373 break
12376 done
12381 for ac_func in strchr index
12383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12388 else
12389 cat >conftest.$ac_ext <<_ACEOF
12390 /* confdefs.h. */
12391 _ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12397 #define $ac_func innocuous_$ac_func
12399 /* System header to define __stub macros and hopefully few prototypes,
12400 which can conflict with char $ac_func (); below.
12401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12402 <limits.h> exists even on freestanding compilers. */
12404 #ifdef __STDC__
12405 # include <limits.h>
12406 #else
12407 # include <assert.h>
12408 #endif
12410 #undef $ac_func
12412 /* Override any GCC internal prototype to avoid an error.
12413 Use char because int might match the return type of a GCC
12414 builtin and then its argument prototype would still apply. */
12415 #ifdef __cplusplus
12416 extern "C"
12417 #endif
12418 char $ac_func ();
12419 /* The GNU C library defines this for functions which it implements
12420 to always fail with ENOSYS. Some functions are actually named
12421 something starting with __ and the normal name is an alias. */
12422 #if defined __stub_$ac_func || defined __stub___$ac_func
12423 choke me
12424 #endif
12427 main ()
12429 return $ac_func ();
12431 return 0;
12433 _ACEOF
12434 rm -f conftest.$ac_objext conftest$ac_exeext
12435 if { (ac_try="$ac_link"
12436 case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12439 esac
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_link") 2>conftest.er1
12442 ac_status=$?
12443 grep -v '^ *+' conftest.er1 >conftest.err
12444 rm -f conftest.er1
12445 cat conftest.err >&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } &&
12448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12449 { (case "(($ac_try" in
12450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451 *) ac_try_echo=$ac_try;;
12452 esac
12453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454 (eval "$ac_try") 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; } &&
12458 { ac_try='test -s conftest$ac_exeext'
12459 { (case "(($ac_try" in
12460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461 *) ac_try_echo=$ac_try;;
12462 esac
12463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464 (eval "$ac_try") 2>&5
12465 ac_status=$?
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; }; then
12468 eval "$as_ac_var=yes"
12469 else
12470 echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12473 eval "$as_ac_var=no"
12476 rm -f core conftest.err conftest.$ac_objext \
12477 conftest$ac_exeext conftest.$ac_ext
12479 ac_res=`eval echo '${'$as_ac_var'}'`
12480 { echo "$as_me:$LINENO: result: $ac_res" >&5
12481 echo "${ECHO_T}$ac_res" >&6; }
12482 if test `eval echo '${'$as_ac_var'}'` = yes; then
12483 cat >>confdefs.h <<_ACEOF
12484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12485 _ACEOF
12486 break
12488 done
12492 for ac_func in strrchr rindex
12494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12495 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12497 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12498 echo $ECHO_N "(cached) $ECHO_C" >&6
12499 else
12500 cat >conftest.$ac_ext <<_ACEOF
12501 /* confdefs.h. */
12502 _ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h. */
12506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12508 #define $ac_func innocuous_$ac_func
12510 /* System header to define __stub macros and hopefully few prototypes,
12511 which can conflict with char $ac_func (); below.
12512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12513 <limits.h> exists even on freestanding compilers. */
12515 #ifdef __STDC__
12516 # include <limits.h>
12517 #else
12518 # include <assert.h>
12519 #endif
12521 #undef $ac_func
12523 /* Override any GCC internal prototype to avoid an error.
12524 Use char because int might match the return type of a GCC
12525 builtin and then its argument prototype would still apply. */
12526 #ifdef __cplusplus
12527 extern "C"
12528 #endif
12529 char $ac_func ();
12530 /* The GNU C library defines this for functions which it implements
12531 to always fail with ENOSYS. Some functions are actually named
12532 something starting with __ and the normal name is an alias. */
12533 #if defined __stub_$ac_func || defined __stub___$ac_func
12534 choke me
12535 #endif
12538 main ()
12540 return $ac_func ();
12542 return 0;
12544 _ACEOF
12545 rm -f conftest.$ac_objext conftest$ac_exeext
12546 if { (ac_try="$ac_link"
12547 case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12550 esac
12551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552 (eval "$ac_link") 2>conftest.er1
12553 ac_status=$?
12554 grep -v '^ *+' conftest.er1 >conftest.err
12555 rm -f conftest.er1
12556 cat conftest.err >&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); } &&
12559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12560 { (case "(($ac_try" in
12561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12562 *) ac_try_echo=$ac_try;;
12563 esac
12564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12565 (eval "$ac_try") 2>&5
12566 ac_status=$?
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; } &&
12569 { ac_try='test -s conftest$ac_exeext'
12570 { (case "(($ac_try" in
12571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572 *) ac_try_echo=$ac_try;;
12573 esac
12574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575 (eval "$ac_try") 2>&5
12576 ac_status=$?
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); }; }; then
12579 eval "$as_ac_var=yes"
12580 else
12581 echo "$as_me: failed program was:" >&5
12582 sed 's/^/| /' conftest.$ac_ext >&5
12584 eval "$as_ac_var=no"
12587 rm -f core conftest.err conftest.$ac_objext \
12588 conftest$ac_exeext conftest.$ac_ext
12590 ac_res=`eval echo '${'$as_ac_var'}'`
12591 { echo "$as_me:$LINENO: result: $ac_res" >&5
12592 echo "${ECHO_T}$ac_res" >&6; }
12593 if test `eval echo '${'$as_ac_var'}'` = yes; then
12594 cat >>confdefs.h <<_ACEOF
12595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12596 _ACEOF
12597 break
12599 done
12603 for ac_func in memcpy bcopy
12605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12606 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12608 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12609 echo $ECHO_N "(cached) $ECHO_C" >&6
12610 else
12611 cat >conftest.$ac_ext <<_ACEOF
12612 /* confdefs.h. */
12613 _ACEOF
12614 cat confdefs.h >>conftest.$ac_ext
12615 cat >>conftest.$ac_ext <<_ACEOF
12616 /* end confdefs.h. */
12617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12619 #define $ac_func innocuous_$ac_func
12621 /* System header to define __stub macros and hopefully few prototypes,
12622 which can conflict with char $ac_func (); below.
12623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12624 <limits.h> exists even on freestanding compilers. */
12626 #ifdef __STDC__
12627 # include <limits.h>
12628 #else
12629 # include <assert.h>
12630 #endif
12632 #undef $ac_func
12634 /* Override any GCC internal prototype to avoid an error.
12635 Use char because int might match the return type of a GCC
12636 builtin and then its argument prototype would still apply. */
12637 #ifdef __cplusplus
12638 extern "C"
12639 #endif
12640 char $ac_func ();
12641 /* The GNU C library defines this for functions which it implements
12642 to always fail with ENOSYS. Some functions are actually named
12643 something starting with __ and the normal name is an alias. */
12644 #if defined __stub_$ac_func || defined __stub___$ac_func
12645 choke me
12646 #endif
12649 main ()
12651 return $ac_func ();
12653 return 0;
12655 _ACEOF
12656 rm -f conftest.$ac_objext conftest$ac_exeext
12657 if { (ac_try="$ac_link"
12658 case "(($ac_try" in
12659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12660 *) ac_try_echo=$ac_try;;
12661 esac
12662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12663 (eval "$ac_link") 2>conftest.er1
12664 ac_status=$?
12665 grep -v '^ *+' conftest.er1 >conftest.err
12666 rm -f conftest.er1
12667 cat conftest.err >&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } &&
12670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12671 { (case "(($ac_try" in
12672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673 *) ac_try_echo=$ac_try;;
12674 esac
12675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12676 (eval "$ac_try") 2>&5
12677 ac_status=$?
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; } &&
12680 { ac_try='test -s conftest$ac_exeext'
12681 { (case "(($ac_try" in
12682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683 *) ac_try_echo=$ac_try;;
12684 esac
12685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12686 (eval "$ac_try") 2>&5
12687 ac_status=$?
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; }; then
12690 eval "$as_ac_var=yes"
12691 else
12692 echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12695 eval "$as_ac_var=no"
12698 rm -f core conftest.err conftest.$ac_objext \
12699 conftest$ac_exeext conftest.$ac_ext
12701 ac_res=`eval echo '${'$as_ac_var'}'`
12702 { echo "$as_me:$LINENO: result: $ac_res" >&5
12703 echo "${ECHO_T}$ac_res" >&6; }
12704 if test `eval echo '${'$as_ac_var'}'` = yes; then
12705 cat >>confdefs.h <<_ACEOF
12706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12707 _ACEOF
12708 break
12710 done
12714 for ac_func in memmove strcmp
12716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12717 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12719 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12720 echo $ECHO_N "(cached) $ECHO_C" >&6
12721 else
12722 cat >conftest.$ac_ext <<_ACEOF
12723 /* confdefs.h. */
12724 _ACEOF
12725 cat confdefs.h >>conftest.$ac_ext
12726 cat >>conftest.$ac_ext <<_ACEOF
12727 /* end confdefs.h. */
12728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12730 #define $ac_func innocuous_$ac_func
12732 /* System header to define __stub macros and hopefully few prototypes,
12733 which can conflict with char $ac_func (); below.
12734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12735 <limits.h> exists even on freestanding compilers. */
12737 #ifdef __STDC__
12738 # include <limits.h>
12739 #else
12740 # include <assert.h>
12741 #endif
12743 #undef $ac_func
12745 /* Override any GCC internal prototype to avoid an error.
12746 Use char because int might match the return type of a GCC
12747 builtin and then its argument prototype would still apply. */
12748 #ifdef __cplusplus
12749 extern "C"
12750 #endif
12751 char $ac_func ();
12752 /* The GNU C library defines this for functions which it implements
12753 to always fail with ENOSYS. Some functions are actually named
12754 something starting with __ and the normal name is an alias. */
12755 #if defined __stub_$ac_func || defined __stub___$ac_func
12756 choke me
12757 #endif
12760 main ()
12762 return $ac_func ();
12764 return 0;
12766 _ACEOF
12767 rm -f conftest.$ac_objext conftest$ac_exeext
12768 if { (ac_try="$ac_link"
12769 case "(($ac_try" in
12770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12771 *) ac_try_echo=$ac_try;;
12772 esac
12773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12774 (eval "$ac_link") 2>conftest.er1
12775 ac_status=$?
12776 grep -v '^ *+' conftest.er1 >conftest.err
12777 rm -f conftest.er1
12778 cat conftest.err >&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); } &&
12781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12782 { (case "(($ac_try" in
12783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784 *) ac_try_echo=$ac_try;;
12785 esac
12786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787 (eval "$ac_try") 2>&5
12788 ac_status=$?
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; } &&
12791 { ac_try='test -s conftest$ac_exeext'
12792 { (case "(($ac_try" in
12793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794 *) ac_try_echo=$ac_try;;
12795 esac
12796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12797 (eval "$ac_try") 2>&5
12798 ac_status=$?
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; }; then
12801 eval "$as_ac_var=yes"
12802 else
12803 echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.$ac_ext >&5
12806 eval "$as_ac_var=no"
12809 rm -f core conftest.err conftest.$ac_objext \
12810 conftest$ac_exeext conftest.$ac_ext
12812 ac_res=`eval echo '${'$as_ac_var'}'`
12813 { echo "$as_me:$LINENO: result: $ac_res" >&5
12814 echo "${ECHO_T}$ac_res" >&6; }
12815 if test `eval echo '${'$as_ac_var'}'` = yes; then
12816 cat >>confdefs.h <<_ACEOF
12817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12818 _ACEOF
12821 done
12826 for ac_func in closedir opendir readdir
12828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12832 echo $ECHO_N "(cached) $ECHO_C" >&6
12833 else
12834 cat >conftest.$ac_ext <<_ACEOF
12835 /* confdefs.h. */
12836 _ACEOF
12837 cat confdefs.h >>conftest.$ac_ext
12838 cat >>conftest.$ac_ext <<_ACEOF
12839 /* end confdefs.h. */
12840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12842 #define $ac_func innocuous_$ac_func
12844 /* System header to define __stub macros and hopefully few prototypes,
12845 which can conflict with char $ac_func (); below.
12846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12847 <limits.h> exists even on freestanding compilers. */
12849 #ifdef __STDC__
12850 # include <limits.h>
12851 #else
12852 # include <assert.h>
12853 #endif
12855 #undef $ac_func
12857 /* Override any GCC internal prototype to avoid an error.
12858 Use char because int might match the return type of a GCC
12859 builtin and then its argument prototype would still apply. */
12860 #ifdef __cplusplus
12861 extern "C"
12862 #endif
12863 char $ac_func ();
12864 /* The GNU C library defines this for functions which it implements
12865 to always fail with ENOSYS. Some functions are actually named
12866 something starting with __ and the normal name is an alias. */
12867 #if defined __stub_$ac_func || defined __stub___$ac_func
12868 choke me
12869 #endif
12872 main ()
12874 return $ac_func ();
12876 return 0;
12878 _ACEOF
12879 rm -f conftest.$ac_objext conftest$ac_exeext
12880 if { (ac_try="$ac_link"
12881 case "(($ac_try" in
12882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883 *) ac_try_echo=$ac_try;;
12884 esac
12885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886 (eval "$ac_link") 2>conftest.er1
12887 ac_status=$?
12888 grep -v '^ *+' conftest.er1 >conftest.err
12889 rm -f conftest.er1
12890 cat conftest.err >&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); } &&
12893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12894 { (case "(($ac_try" in
12895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12896 *) ac_try_echo=$ac_try;;
12897 esac
12898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12899 (eval "$ac_try") 2>&5
12900 ac_status=$?
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; } &&
12903 { ac_try='test -s conftest$ac_exeext'
12904 { (case "(($ac_try" in
12905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12906 *) ac_try_echo=$ac_try;;
12907 esac
12908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12909 (eval "$ac_try") 2>&5
12910 ac_status=$?
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; }; then
12913 eval "$as_ac_var=yes"
12914 else
12915 echo "$as_me: failed program was:" >&5
12916 sed 's/^/| /' conftest.$ac_ext >&5
12918 eval "$as_ac_var=no"
12921 rm -f core conftest.err conftest.$ac_objext \
12922 conftest$ac_exeext conftest.$ac_ext
12924 ac_res=`eval echo '${'$as_ac_var'}'`
12925 { echo "$as_me:$LINENO: result: $ac_res" >&5
12926 echo "${ECHO_T}$ac_res" >&6; }
12927 if test `eval echo '${'$as_ac_var'}'` = yes; then
12928 cat >>confdefs.h <<_ACEOF
12929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12930 _ACEOF
12933 done
12937 if test "$WITH_LLVMGCCDIR" = "default" ; then
12938 LLVMGCC="llvm-gcc${EXEEXT}"
12939 LLVMGXX="llvm-g++${EXEEXT}"
12940 LLVMGCCCOMMAND="$LLVMGCC"
12941 LLVMGXXCOMMAND="$LLVMGXX"
12942 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12944 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12946 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12947 set dummy $LLVMGCC; ac_word=$2
12948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12950 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12952 else
12953 case $LLVMGCC in
12954 [\\/]* | ?:[\\/]*)
12955 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12959 for as_dir in $PATH
12961 IFS=$as_save_IFS
12962 test -z "$as_dir" && as_dir=.
12963 for ac_exec_ext in '' $ac_executable_extensions; do
12964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12965 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12967 break 2
12969 done
12970 done
12971 IFS=$as_save_IFS
12974 esac
12976 LLVMGCC=$ac_cv_path_LLVMGCC
12977 if test -n "$LLVMGCC"; then
12978 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12979 echo "${ECHO_T}$LLVMGCC" >&6; }
12980 else
12981 { echo "$as_me:$LINENO: result: no" >&5
12982 echo "${ECHO_T}no" >&6; }
12986 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12987 set dummy $LLVMGXX; ac_word=$2
12988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12990 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12991 echo $ECHO_N "(cached) $ECHO_C" >&6
12992 else
12993 case $LLVMGXX in
12994 [\\/]* | ?:[\\/]*)
12995 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12999 for as_dir in $PATH
13001 IFS=$as_save_IFS
13002 test -z "$as_dir" && as_dir=.
13003 for ac_exec_ext in '' $ac_executable_extensions; do
13004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13005 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13007 break 2
13009 done
13010 done
13011 IFS=$as_save_IFS
13014 esac
13016 LLVMGXX=$ac_cv_path_LLVMGXX
13017 if test -n "$LLVMGXX"; then
13018 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13019 echo "${ECHO_T}$LLVMGXX" >&6; }
13020 else
13021 { echo "$as_me:$LINENO: result: no" >&5
13022 echo "${ECHO_T}no" >&6; }
13026 else
13027 if test -z "$LLVMGCC"; then
13028 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13029 LLVMGCCCOMMAND="$LLVMGCC"
13031 if test -z "$LLVMGXX"; then
13032 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13033 LLVMGXXCOMMAND="$LLVMGXX"
13036 LLVMGCC=$LLVMGCC
13038 LLVMGXX=$LLVMGXX
13040 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13042 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13047 # Check whether --with-llvmcc was given.
13048 if test "${with_llvmcc+set}" = set; then
13049 withval=$with_llvmcc;
13050 else
13051 with_llvmcc=check
13054 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13055 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13056 if test "$with_llvmcc" != "check"; then
13057 if (test "$with_llvmcc" != "llvm-gcc" &&
13058 test "$with_llvmcc" != "clang" &&
13059 test "$with_llvmcc" != "none"); then
13060 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13061 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13062 { (exit 1); exit 1; }; }
13064 WITH_LLVMCC="$with_llvmcc"
13065 elif test -n "$LLVMGCC"; then
13066 WITH_LLVMCC=llvm-gcc
13067 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13068 WITH_LLVMCC=clang
13069 else
13070 WITH_LLVMCC=none
13072 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13073 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13074 LLVMCC_OPTION=$WITH_LLVMCC
13077 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13078 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13080 ICC=no
13081 IXX=no
13082 case $CC in
13083 icc*|icpc*)
13084 ICC=yes
13085 IXX=yes
13089 esac
13091 if test "$GCC" != "yes" && test "$ICC" != "yes"
13092 then
13093 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13094 echo "$as_me: error: gcc|icc required but not found" >&2;}
13095 { (exit 1); exit 1; }; }
13098 if test "$GXX" != "yes" && test "$IXX" != "yes"
13099 then
13100 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13101 echo "$as_me: error: g++|icc required but not found" >&2;}
13102 { (exit 1); exit 1; }; }
13105 if test "$GCC" = "yes"
13106 then
13107 cat >conftest.$ac_ext <<_ACEOF
13108 #if !defined(__GNUC__) || __GNUC__ < 3
13109 #error Unsupported GCC version
13110 #endif
13112 _ACEOF
13113 rm -f conftest.$ac_objext
13114 if { (ac_try="$ac_compile"
13115 case "(($ac_try" in
13116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13117 *) ac_try_echo=$ac_try;;
13118 esac
13119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13120 (eval "$ac_compile") 2>conftest.er1
13121 ac_status=$?
13122 grep -v '^ *+' conftest.er1 >conftest.err
13123 rm -f conftest.er1
13124 cat conftest.err >&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); } &&
13127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13128 { (case "(($ac_try" in
13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13131 esac
13132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133 (eval "$ac_try") 2>&5
13134 ac_status=$?
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; } &&
13137 { ac_try='test -s conftest.$ac_objext'
13138 { (case "(($ac_try" in
13139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140 *) ac_try_echo=$ac_try;;
13141 esac
13142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13143 (eval "$ac_try") 2>&5
13144 ac_status=$?
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; }; then
13148 else
13149 echo "$as_me: failed program was:" >&5
13150 sed 's/^/| /' conftest.$ac_ext >&5
13152 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13153 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13154 { (exit 1); exit 1; }; }
13157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13160 if test -z "$llvm_cv_gnu_make_command"
13161 then
13162 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13163 echo "$as_me: error: GNU Make required but not found" >&2;}
13164 { (exit 1); exit 1; }; }
13167 { echo "$as_me:$LINENO: result: ok" >&5
13168 echo "${ECHO_T}ok" >&6; }
13170 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13171 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13172 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13174 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13176 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13177 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13181 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13182 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13183 if test "${ac_cv_lib_m_sin+set}" = set; then
13184 echo $ECHO_N "(cached) $ECHO_C" >&6
13185 else
13186 ac_check_lib_save_LIBS=$LIBS
13187 LIBS="-lm $LIBS"
13188 cat >conftest.$ac_ext <<_ACEOF
13189 /* confdefs.h. */
13190 _ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h. */
13195 /* Override any GCC internal prototype to avoid an error.
13196 Use char because int might match the return type of a GCC
13197 builtin and then its argument prototype would still apply. */
13198 #ifdef __cplusplus
13199 extern "C"
13200 #endif
13201 char sin ();
13203 main ()
13205 return sin ();
13207 return 0;
13209 _ACEOF
13210 rm -f conftest.$ac_objext conftest$ac_exeext
13211 if { (ac_try="$ac_link"
13212 case "(($ac_try" in
13213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214 *) ac_try_echo=$ac_try;;
13215 esac
13216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13217 (eval "$ac_link") 2>conftest.er1
13218 ac_status=$?
13219 grep -v '^ *+' conftest.er1 >conftest.err
13220 rm -f conftest.er1
13221 cat conftest.err >&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); } &&
13224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
13231 ac_status=$?
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); }; } &&
13234 { ac_try='test -s conftest$ac_exeext'
13235 { (case "(($ac_try" in
13236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237 *) ac_try_echo=$ac_try;;
13238 esac
13239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240 (eval "$ac_try") 2>&5
13241 ac_status=$?
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); }; }; then
13244 ac_cv_lib_m_sin=yes
13245 else
13246 echo "$as_me: failed program was:" >&5
13247 sed 's/^/| /' conftest.$ac_ext >&5
13249 ac_cv_lib_m_sin=no
13252 rm -f core conftest.err conftest.$ac_objext \
13253 conftest$ac_exeext conftest.$ac_ext
13254 LIBS=$ac_check_lib_save_LIBS
13256 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13257 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13258 if test $ac_cv_lib_m_sin = yes; then
13259 cat >>confdefs.h <<_ACEOF
13260 #define HAVE_LIBM 1
13261 _ACEOF
13263 LIBS="-lm $LIBS"
13267 if test "$llvm_cv_os_type" = "MingW" ; then
13269 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13270 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13271 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13272 echo $ECHO_N "(cached) $ECHO_C" >&6
13273 else
13274 ac_check_lib_save_LIBS=$LIBS
13275 LIBS="-limagehlp $LIBS"
13276 cat >conftest.$ac_ext <<_ACEOF
13277 /* confdefs.h. */
13278 _ACEOF
13279 cat confdefs.h >>conftest.$ac_ext
13280 cat >>conftest.$ac_ext <<_ACEOF
13281 /* end confdefs.h. */
13285 main ()
13287 return main ();
13289 return 0;
13291 _ACEOF
13292 rm -f conftest.$ac_objext conftest$ac_exeext
13293 if { (ac_try="$ac_link"
13294 case "(($ac_try" in
13295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13296 *) ac_try_echo=$ac_try;;
13297 esac
13298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13299 (eval "$ac_link") 2>conftest.er1
13300 ac_status=$?
13301 grep -v '^ *+' conftest.er1 >conftest.err
13302 rm -f conftest.er1
13303 cat conftest.err >&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } &&
13306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13307 { (case "(($ac_try" in
13308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13309 *) ac_try_echo=$ac_try;;
13310 esac
13311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13312 (eval "$ac_try") 2>&5
13313 ac_status=$?
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }; } &&
13316 { ac_try='test -s conftest$ac_exeext'
13317 { (case "(($ac_try" in
13318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13319 *) ac_try_echo=$ac_try;;
13320 esac
13321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13322 (eval "$ac_try") 2>&5
13323 ac_status=$?
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; }; then
13326 ac_cv_lib_imagehlp_main=yes
13327 else
13328 echo "$as_me: failed program was:" >&5
13329 sed 's/^/| /' conftest.$ac_ext >&5
13331 ac_cv_lib_imagehlp_main=no
13334 rm -f core conftest.err conftest.$ac_objext \
13335 conftest$ac_exeext conftest.$ac_ext
13336 LIBS=$ac_check_lib_save_LIBS
13338 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13339 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13340 if test $ac_cv_lib_imagehlp_main = yes; then
13341 cat >>confdefs.h <<_ACEOF
13342 #define HAVE_LIBIMAGEHLP 1
13343 _ACEOF
13345 LIBS="-limagehlp $LIBS"
13350 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13351 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13352 if test "${ac_cv_lib_psapi_main+set}" = set; then
13353 echo $ECHO_N "(cached) $ECHO_C" >&6
13354 else
13355 ac_check_lib_save_LIBS=$LIBS
13356 LIBS="-lpsapi $LIBS"
13357 cat >conftest.$ac_ext <<_ACEOF
13358 /* confdefs.h. */
13359 _ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h. */
13366 main ()
13368 return main ();
13370 return 0;
13372 _ACEOF
13373 rm -f conftest.$ac_objext conftest$ac_exeext
13374 if { (ac_try="$ac_link"
13375 case "(($ac_try" in
13376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13377 *) ac_try_echo=$ac_try;;
13378 esac
13379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13380 (eval "$ac_link") 2>conftest.er1
13381 ac_status=$?
13382 grep -v '^ *+' conftest.er1 >conftest.err
13383 rm -f conftest.er1
13384 cat conftest.err >&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); } &&
13387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13388 { (case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13391 esac
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_try") 2>&5
13394 ac_status=$?
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; } &&
13397 { ac_try='test -s conftest$ac_exeext'
13398 { (case "(($ac_try" in
13399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400 *) ac_try_echo=$ac_try;;
13401 esac
13402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403 (eval "$ac_try") 2>&5
13404 ac_status=$?
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
13407 ac_cv_lib_psapi_main=yes
13408 else
13409 echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13412 ac_cv_lib_psapi_main=no
13415 rm -f core conftest.err conftest.$ac_objext \
13416 conftest$ac_exeext conftest.$ac_ext
13417 LIBS=$ac_check_lib_save_LIBS
13419 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13420 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13421 if test $ac_cv_lib_psapi_main = yes; then
13422 cat >>confdefs.h <<_ACEOF
13423 #define HAVE_LIBPSAPI 1
13424 _ACEOF
13426 LIBS="-lpsapi $LIBS"
13432 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13433 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13434 if test "${ac_cv_search_dlopen+set}" = set; then
13435 echo $ECHO_N "(cached) $ECHO_C" >&6
13436 else
13437 ac_func_search_save_LIBS=$LIBS
13438 cat >conftest.$ac_ext <<_ACEOF
13439 /* confdefs.h. */
13440 _ACEOF
13441 cat confdefs.h >>conftest.$ac_ext
13442 cat >>conftest.$ac_ext <<_ACEOF
13443 /* end confdefs.h. */
13445 /* Override any GCC internal prototype to avoid an error.
13446 Use char because int might match the return type of a GCC
13447 builtin and then its argument prototype would still apply. */
13448 #ifdef __cplusplus
13449 extern "C"
13450 #endif
13451 char dlopen ();
13453 main ()
13455 return dlopen ();
13457 return 0;
13459 _ACEOF
13460 for ac_lib in '' dl; do
13461 if test -z "$ac_lib"; then
13462 ac_res="none required"
13463 else
13464 ac_res=-l$ac_lib
13465 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13467 rm -f conftest.$ac_objext conftest$ac_exeext
13468 if { (ac_try="$ac_link"
13469 case "(($ac_try" in
13470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13471 *) ac_try_echo=$ac_try;;
13472 esac
13473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13474 (eval "$ac_link") 2>conftest.er1
13475 ac_status=$?
13476 grep -v '^ *+' conftest.er1 >conftest.err
13477 rm -f conftest.er1
13478 cat conftest.err >&5
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); } &&
13481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13482 { (case "(($ac_try" in
13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484 *) ac_try_echo=$ac_try;;
13485 esac
13486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487 (eval "$ac_try") 2>&5
13488 ac_status=$?
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; } &&
13491 { ac_try='test -s conftest$ac_exeext'
13492 { (case "(($ac_try" in
13493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494 *) ac_try_echo=$ac_try;;
13495 esac
13496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497 (eval "$ac_try") 2>&5
13498 ac_status=$?
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); }; }; then
13501 ac_cv_search_dlopen=$ac_res
13502 else
13503 echo "$as_me: failed program was:" >&5
13504 sed 's/^/| /' conftest.$ac_ext >&5
13509 rm -f core conftest.err conftest.$ac_objext \
13510 conftest$ac_exeext
13511 if test "${ac_cv_search_dlopen+set}" = set; then
13512 break
13514 done
13515 if test "${ac_cv_search_dlopen+set}" = set; then
13517 else
13518 ac_cv_search_dlopen=no
13520 rm conftest.$ac_ext
13521 LIBS=$ac_func_search_save_LIBS
13523 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13524 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13525 ac_res=$ac_cv_search_dlopen
13526 if test "$ac_res" != no; then
13527 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13529 cat >>confdefs.h <<\_ACEOF
13530 #define HAVE_DLOPEN 1
13531 _ACEOF
13533 else
13534 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13535 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13539 if test "$llvm_cv_enable_libffi" = "yes" ; then
13540 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13541 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13542 if test "${ac_cv_search_ffi_call+set}" = set; then
13543 echo $ECHO_N "(cached) $ECHO_C" >&6
13544 else
13545 ac_func_search_save_LIBS=$LIBS
13546 cat >conftest.$ac_ext <<_ACEOF
13547 /* confdefs.h. */
13548 _ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h. */
13553 /* Override any GCC internal prototype to avoid an error.
13554 Use char because int might match the return type of a GCC
13555 builtin and then its argument prototype would still apply. */
13556 #ifdef __cplusplus
13557 extern "C"
13558 #endif
13559 char ffi_call ();
13561 main ()
13563 return ffi_call ();
13565 return 0;
13567 _ACEOF
13568 for ac_lib in '' ffi; do
13569 if test -z "$ac_lib"; then
13570 ac_res="none required"
13571 else
13572 ac_res=-l$ac_lib
13573 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13575 rm -f conftest.$ac_objext conftest$ac_exeext
13576 if { (ac_try="$ac_link"
13577 case "(($ac_try" in
13578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13579 *) ac_try_echo=$ac_try;;
13580 esac
13581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13582 (eval "$ac_link") 2>conftest.er1
13583 ac_status=$?
13584 grep -v '^ *+' conftest.er1 >conftest.err
13585 rm -f conftest.er1
13586 cat conftest.err >&5
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); } &&
13589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13590 { (case "(($ac_try" in
13591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13592 *) ac_try_echo=$ac_try;;
13593 esac
13594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13595 (eval "$ac_try") 2>&5
13596 ac_status=$?
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); }; } &&
13599 { ac_try='test -s conftest$ac_exeext'
13600 { (case "(($ac_try" in
13601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13602 *) ac_try_echo=$ac_try;;
13603 esac
13604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13605 (eval "$ac_try") 2>&5
13606 ac_status=$?
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); }; }; then
13609 ac_cv_search_ffi_call=$ac_res
13610 else
13611 echo "$as_me: failed program was:" >&5
13612 sed 's/^/| /' conftest.$ac_ext >&5
13617 rm -f core conftest.err conftest.$ac_objext \
13618 conftest$ac_exeext
13619 if test "${ac_cv_search_ffi_call+set}" = set; then
13620 break
13622 done
13623 if test "${ac_cv_search_ffi_call+set}" = set; then
13625 else
13626 ac_cv_search_ffi_call=no
13628 rm conftest.$ac_ext
13629 LIBS=$ac_func_search_save_LIBS
13631 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13632 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13633 ac_res=$ac_cv_search_ffi_call
13634 if test "$ac_res" != no; then
13635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13637 cat >>confdefs.h <<\_ACEOF
13638 #define HAVE_FFI_CALL 1
13639 _ACEOF
13641 else
13642 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13643 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13644 { (exit 1); exit 1; }; }
13649 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13650 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13651 if test "${ac_cv_search_mallinfo+set}" = set; then
13652 echo $ECHO_N "(cached) $ECHO_C" >&6
13653 else
13654 ac_func_search_save_LIBS=$LIBS
13655 cat >conftest.$ac_ext <<_ACEOF
13656 /* confdefs.h. */
13657 _ACEOF
13658 cat confdefs.h >>conftest.$ac_ext
13659 cat >>conftest.$ac_ext <<_ACEOF
13660 /* end confdefs.h. */
13662 /* Override any GCC internal prototype to avoid an error.
13663 Use char because int might match the return type of a GCC
13664 builtin and then its argument prototype would still apply. */
13665 #ifdef __cplusplus
13666 extern "C"
13667 #endif
13668 char mallinfo ();
13670 main ()
13672 return mallinfo ();
13674 return 0;
13676 _ACEOF
13677 for ac_lib in '' malloc; do
13678 if test -z "$ac_lib"; then
13679 ac_res="none required"
13680 else
13681 ac_res=-l$ac_lib
13682 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13684 rm -f conftest.$ac_objext conftest$ac_exeext
13685 if { (ac_try="$ac_link"
13686 case "(($ac_try" in
13687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13688 *) ac_try_echo=$ac_try;;
13689 esac
13690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13691 (eval "$ac_link") 2>conftest.er1
13692 ac_status=$?
13693 grep -v '^ *+' conftest.er1 >conftest.err
13694 rm -f conftest.er1
13695 cat conftest.err >&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } &&
13698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13699 { (case "(($ac_try" in
13700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13701 *) ac_try_echo=$ac_try;;
13702 esac
13703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13704 (eval "$ac_try") 2>&5
13705 ac_status=$?
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }; } &&
13708 { ac_try='test -s conftest$ac_exeext'
13709 { (case "(($ac_try" in
13710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711 *) ac_try_echo=$ac_try;;
13712 esac
13713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714 (eval "$ac_try") 2>&5
13715 ac_status=$?
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }; }; then
13718 ac_cv_search_mallinfo=$ac_res
13719 else
13720 echo "$as_me: failed program was:" >&5
13721 sed 's/^/| /' conftest.$ac_ext >&5
13726 rm -f core conftest.err conftest.$ac_objext \
13727 conftest$ac_exeext
13728 if test "${ac_cv_search_mallinfo+set}" = set; then
13729 break
13731 done
13732 if test "${ac_cv_search_mallinfo+set}" = set; then
13734 else
13735 ac_cv_search_mallinfo=no
13737 rm conftest.$ac_ext
13738 LIBS=$ac_func_search_save_LIBS
13740 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13741 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13742 ac_res=$ac_cv_search_mallinfo
13743 if test "$ac_res" != no; then
13744 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13746 cat >>confdefs.h <<\_ACEOF
13747 #define HAVE_MALLINFO 1
13748 _ACEOF
13753 if test "$ENABLE_THREADS" -eq 1 ; then
13755 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13756 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13757 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13758 echo $ECHO_N "(cached) $ECHO_C" >&6
13759 else
13760 ac_check_lib_save_LIBS=$LIBS
13761 LIBS="-lpthread $LIBS"
13762 cat >conftest.$ac_ext <<_ACEOF
13763 /* confdefs.h. */
13764 _ACEOF
13765 cat confdefs.h >>conftest.$ac_ext
13766 cat >>conftest.$ac_ext <<_ACEOF
13767 /* end confdefs.h. */
13769 /* Override any GCC internal prototype to avoid an error.
13770 Use char because int might match the return type of a GCC
13771 builtin and then its argument prototype would still apply. */
13772 #ifdef __cplusplus
13773 extern "C"
13774 #endif
13775 char pthread_mutex_init ();
13777 main ()
13779 return pthread_mutex_init ();
13781 return 0;
13783 _ACEOF
13784 rm -f conftest.$ac_objext conftest$ac_exeext
13785 if { (ac_try="$ac_link"
13786 case "(($ac_try" in
13787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788 *) ac_try_echo=$ac_try;;
13789 esac
13790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13791 (eval "$ac_link") 2>conftest.er1
13792 ac_status=$?
13793 grep -v '^ *+' conftest.er1 >conftest.err
13794 rm -f conftest.er1
13795 cat conftest.err >&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } &&
13798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13799 { (case "(($ac_try" in
13800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801 *) ac_try_echo=$ac_try;;
13802 esac
13803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804 (eval "$ac_try") 2>&5
13805 ac_status=$?
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; } &&
13808 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13818 ac_cv_lib_pthread_pthread_mutex_init=yes
13819 else
13820 echo "$as_me: failed program was:" >&5
13821 sed 's/^/| /' conftest.$ac_ext >&5
13823 ac_cv_lib_pthread_pthread_mutex_init=no
13826 rm -f core conftest.err conftest.$ac_objext \
13827 conftest$ac_exeext conftest.$ac_ext
13828 LIBS=$ac_check_lib_save_LIBS
13830 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13831 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13832 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13833 cat >>confdefs.h <<_ACEOF
13834 #define HAVE_LIBPTHREAD 1
13835 _ACEOF
13837 LIBS="-lpthread $LIBS"
13841 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13842 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13843 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13844 echo $ECHO_N "(cached) $ECHO_C" >&6
13845 else
13846 ac_func_search_save_LIBS=$LIBS
13847 cat >conftest.$ac_ext <<_ACEOF
13848 /* confdefs.h. */
13849 _ACEOF
13850 cat confdefs.h >>conftest.$ac_ext
13851 cat >>conftest.$ac_ext <<_ACEOF
13852 /* end confdefs.h. */
13854 /* Override any GCC internal prototype to avoid an error.
13855 Use char because int might match the return type of a GCC
13856 builtin and then its argument prototype would still apply. */
13857 #ifdef __cplusplus
13858 extern "C"
13859 #endif
13860 char pthread_mutex_lock ();
13862 main ()
13864 return pthread_mutex_lock ();
13866 return 0;
13868 _ACEOF
13869 for ac_lib in '' pthread; do
13870 if test -z "$ac_lib"; then
13871 ac_res="none required"
13872 else
13873 ac_res=-l$ac_lib
13874 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13876 rm -f conftest.$ac_objext conftest$ac_exeext
13877 if { (ac_try="$ac_link"
13878 case "(($ac_try" in
13879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13880 *) ac_try_echo=$ac_try;;
13881 esac
13882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13883 (eval "$ac_link") 2>conftest.er1
13884 ac_status=$?
13885 grep -v '^ *+' conftest.er1 >conftest.err
13886 rm -f conftest.er1
13887 cat conftest.err >&5
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); } &&
13890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13891 { (case "(($ac_try" in
13892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13893 *) ac_try_echo=$ac_try;;
13894 esac
13895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13896 (eval "$ac_try") 2>&5
13897 ac_status=$?
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; } &&
13900 { ac_try='test -s conftest$ac_exeext'
13901 { (case "(($ac_try" in
13902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13903 *) ac_try_echo=$ac_try;;
13904 esac
13905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13906 (eval "$ac_try") 2>&5
13907 ac_status=$?
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); }; }; then
13910 ac_cv_search_pthread_mutex_lock=$ac_res
13911 else
13912 echo "$as_me: failed program was:" >&5
13913 sed 's/^/| /' conftest.$ac_ext >&5
13918 rm -f core conftest.err conftest.$ac_objext \
13919 conftest$ac_exeext
13920 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13921 break
13923 done
13924 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13926 else
13927 ac_cv_search_pthread_mutex_lock=no
13929 rm conftest.$ac_ext
13930 LIBS=$ac_func_search_save_LIBS
13932 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13933 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13934 ac_res=$ac_cv_search_pthread_mutex_lock
13935 if test "$ac_res" != no; then
13936 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13938 cat >>confdefs.h <<\_ACEOF
13939 #define HAVE_PTHREAD_MUTEX_LOCK 1
13940 _ACEOF
13944 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13945 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13946 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13947 echo $ECHO_N "(cached) $ECHO_C" >&6
13948 else
13949 ac_func_search_save_LIBS=$LIBS
13950 cat >conftest.$ac_ext <<_ACEOF
13951 /* confdefs.h. */
13952 _ACEOF
13953 cat confdefs.h >>conftest.$ac_ext
13954 cat >>conftest.$ac_ext <<_ACEOF
13955 /* end confdefs.h. */
13957 /* Override any GCC internal prototype to avoid an error.
13958 Use char because int might match the return type of a GCC
13959 builtin and then its argument prototype would still apply. */
13960 #ifdef __cplusplus
13961 extern "C"
13962 #endif
13963 char pthread_rwlock_init ();
13965 main ()
13967 return pthread_rwlock_init ();
13969 return 0;
13971 _ACEOF
13972 for ac_lib in '' pthread; do
13973 if test -z "$ac_lib"; then
13974 ac_res="none required"
13975 else
13976 ac_res=-l$ac_lib
13977 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13979 rm -f conftest.$ac_objext conftest$ac_exeext
13980 if { (ac_try="$ac_link"
13981 case "(($ac_try" in
13982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983 *) ac_try_echo=$ac_try;;
13984 esac
13985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986 (eval "$ac_link") 2>conftest.er1
13987 ac_status=$?
13988 grep -v '^ *+' conftest.er1 >conftest.err
13989 rm -f conftest.er1
13990 cat conftest.err >&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); } &&
13993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13994 { (case "(($ac_try" in
13995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13996 *) ac_try_echo=$ac_try;;
13997 esac
13998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13999 (eval "$ac_try") 2>&5
14000 ac_status=$?
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; } &&
14003 { ac_try='test -s conftest$ac_exeext'
14004 { (case "(($ac_try" in
14005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006 *) ac_try_echo=$ac_try;;
14007 esac
14008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009 (eval "$ac_try") 2>&5
14010 ac_status=$?
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; }; then
14013 ac_cv_search_pthread_rwlock_init=$ac_res
14014 else
14015 echo "$as_me: failed program was:" >&5
14016 sed 's/^/| /' conftest.$ac_ext >&5
14021 rm -f core conftest.err conftest.$ac_objext \
14022 conftest$ac_exeext
14023 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14024 break
14026 done
14027 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14029 else
14030 ac_cv_search_pthread_rwlock_init=no
14032 rm conftest.$ac_ext
14033 LIBS=$ac_func_search_save_LIBS
14035 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14036 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14037 ac_res=$ac_cv_search_pthread_rwlock_init
14038 if test "$ac_res" != no; then
14039 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14041 cat >>confdefs.h <<\_ACEOF
14042 #define HAVE_PTHREAD_RWLOCK_INIT 1
14043 _ACEOF
14047 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14048 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14049 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14050 echo $ECHO_N "(cached) $ECHO_C" >&6
14051 else
14052 ac_func_search_save_LIBS=$LIBS
14053 cat >conftest.$ac_ext <<_ACEOF
14054 /* confdefs.h. */
14055 _ACEOF
14056 cat confdefs.h >>conftest.$ac_ext
14057 cat >>conftest.$ac_ext <<_ACEOF
14058 /* end confdefs.h. */
14060 /* Override any GCC internal prototype to avoid an error.
14061 Use char because int might match the return type of a GCC
14062 builtin and then its argument prototype would still apply. */
14063 #ifdef __cplusplus
14064 extern "C"
14065 #endif
14066 char pthread_getspecific ();
14068 main ()
14070 return pthread_getspecific ();
14072 return 0;
14074 _ACEOF
14075 for ac_lib in '' pthread; do
14076 if test -z "$ac_lib"; then
14077 ac_res="none required"
14078 else
14079 ac_res=-l$ac_lib
14080 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14082 rm -f conftest.$ac_objext conftest$ac_exeext
14083 if { (ac_try="$ac_link"
14084 case "(($ac_try" in
14085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14086 *) ac_try_echo=$ac_try;;
14087 esac
14088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14089 (eval "$ac_link") 2>conftest.er1
14090 ac_status=$?
14091 grep -v '^ *+' conftest.er1 >conftest.err
14092 rm -f conftest.er1
14093 cat conftest.err >&5
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); } &&
14096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14097 { (case "(($ac_try" in
14098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14099 *) ac_try_echo=$ac_try;;
14100 esac
14101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14102 (eval "$ac_try") 2>&5
14103 ac_status=$?
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); }; } &&
14106 { ac_try='test -s conftest$ac_exeext'
14107 { (case "(($ac_try" in
14108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14109 *) ac_try_echo=$ac_try;;
14110 esac
14111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14112 (eval "$ac_try") 2>&5
14113 ac_status=$?
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; }; then
14116 ac_cv_search_pthread_getspecific=$ac_res
14117 else
14118 echo "$as_me: failed program was:" >&5
14119 sed 's/^/| /' conftest.$ac_ext >&5
14124 rm -f core conftest.err conftest.$ac_objext \
14125 conftest$ac_exeext
14126 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14127 break
14129 done
14130 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14132 else
14133 ac_cv_search_pthread_getspecific=no
14135 rm conftest.$ac_ext
14136 LIBS=$ac_func_search_save_LIBS
14138 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14139 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14140 ac_res=$ac_cv_search_pthread_getspecific
14141 if test "$ac_res" != no; then
14142 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14144 cat >>confdefs.h <<\_ACEOF
14145 #define HAVE_PTHREAD_GETSPECIFIC 1
14146 _ACEOF
14153 # Check whether --with-udis86 was given.
14154 if test "${with_udis86+set}" = set; then
14155 withval=$with_udis86;
14156 USE_UDIS86=1
14158 case "$withval" in
14159 /usr/lib|yes) ;;
14160 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14161 esac
14163 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14164 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14165 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14166 echo $ECHO_N "(cached) $ECHO_C" >&6
14167 else
14168 ac_check_lib_save_LIBS=$LIBS
14169 LIBS="-ludis86 $LIBS"
14170 cat >conftest.$ac_ext <<_ACEOF
14171 /* confdefs.h. */
14172 _ACEOF
14173 cat confdefs.h >>conftest.$ac_ext
14174 cat >>conftest.$ac_ext <<_ACEOF
14175 /* end confdefs.h. */
14177 /* Override any GCC internal prototype to avoid an error.
14178 Use char because int might match the return type of a GCC
14179 builtin and then its argument prototype would still apply. */
14180 #ifdef __cplusplus
14181 extern "C"
14182 #endif
14183 char ud_init ();
14185 main ()
14187 return ud_init ();
14189 return 0;
14191 _ACEOF
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_lib_udis86_ud_init=yes
14227 else
14228 echo "$as_me: failed program was:" >&5
14229 sed 's/^/| /' conftest.$ac_ext >&5
14231 ac_cv_lib_udis86_ud_init=no
14234 rm -f core conftest.err conftest.$ac_objext \
14235 conftest$ac_exeext conftest.$ac_ext
14236 LIBS=$ac_check_lib_save_LIBS
14238 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14239 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14240 if test $ac_cv_lib_udis86_ud_init = yes; then
14241 cat >>confdefs.h <<_ACEOF
14242 #define HAVE_LIBUDIS86 1
14243 _ACEOF
14245 LIBS="-ludis86 $LIBS"
14247 else
14249 echo "Error! You need to have libudis86 around."
14250 exit -1
14255 else
14256 USE_UDIS86=0
14261 cat >>confdefs.h <<_ACEOF
14262 #define USE_UDIS86 $USE_UDIS86
14263 _ACEOF
14267 # Check whether --with-oprofile was given.
14268 if test "${with_oprofile+set}" = set; then
14269 withval=$with_oprofile;
14270 USE_OPROFILE=1
14272 case "$withval" in
14273 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14274 no) llvm_cv_oppath=
14275 USE_OPROFILE=0
14277 *) llvm_cv_oppath="${withval}/lib/oprofile"
14278 CPPFLAGS="-I${withval}/include";;
14279 esac
14280 if test -n "$llvm_cv_oppath" ; then
14281 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14282 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14283 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14284 if test "${ac_cv_search_bfd_init+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14286 else
14287 ac_func_search_save_LIBS=$LIBS
14288 cat >conftest.$ac_ext <<_ACEOF
14289 /* confdefs.h. */
14290 _ACEOF
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h. */
14295 /* Override any GCC internal prototype to avoid an error.
14296 Use char because int might match the return type of a GCC
14297 builtin and then its argument prototype would still apply. */
14298 #ifdef __cplusplus
14299 extern "C"
14300 #endif
14301 char bfd_init ();
14303 main ()
14305 return bfd_init ();
14307 return 0;
14309 _ACEOF
14310 for ac_lib in '' bfd; do
14311 if test -z "$ac_lib"; then
14312 ac_res="none required"
14313 else
14314 ac_res=-l$ac_lib
14315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14317 rm -f conftest.$ac_objext conftest$ac_exeext
14318 if { (ac_try="$ac_link"
14319 case "(($ac_try" in
14320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14321 *) ac_try_echo=$ac_try;;
14322 esac
14323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14324 (eval "$ac_link") 2>conftest.er1
14325 ac_status=$?
14326 grep -v '^ *+' conftest.er1 >conftest.err
14327 rm -f conftest.er1
14328 cat conftest.err >&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); } &&
14331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14332 { (case "(($ac_try" in
14333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14334 *) ac_try_echo=$ac_try;;
14335 esac
14336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14337 (eval "$ac_try") 2>&5
14338 ac_status=$?
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; } &&
14341 { ac_try='test -s conftest$ac_exeext'
14342 { (case "(($ac_try" in
14343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14344 *) ac_try_echo=$ac_try;;
14345 esac
14346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14347 (eval "$ac_try") 2>&5
14348 ac_status=$?
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); }; }; then
14351 ac_cv_search_bfd_init=$ac_res
14352 else
14353 echo "$as_me: failed program was:" >&5
14354 sed 's/^/| /' conftest.$ac_ext >&5
14359 rm -f core conftest.err conftest.$ac_objext \
14360 conftest$ac_exeext
14361 if test "${ac_cv_search_bfd_init+set}" = set; then
14362 break
14364 done
14365 if test "${ac_cv_search_bfd_init+set}" = set; then
14367 else
14368 ac_cv_search_bfd_init=no
14370 rm conftest.$ac_ext
14371 LIBS=$ac_func_search_save_LIBS
14373 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14374 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14375 ac_res=$ac_cv_search_bfd_init
14376 if test "$ac_res" != no; then
14377 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14381 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14382 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14383 if test "${ac_cv_search_op_open_agent+set}" = set; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14385 else
14386 ac_func_search_save_LIBS=$LIBS
14387 cat >conftest.$ac_ext <<_ACEOF
14388 /* confdefs.h. */
14389 _ACEOF
14390 cat confdefs.h >>conftest.$ac_ext
14391 cat >>conftest.$ac_ext <<_ACEOF
14392 /* end confdefs.h. */
14394 /* Override any GCC internal prototype to avoid an error.
14395 Use char because int might match the return type of a GCC
14396 builtin and then its argument prototype would still apply. */
14397 #ifdef __cplusplus
14398 extern "C"
14399 #endif
14400 char op_open_agent ();
14402 main ()
14404 return op_open_agent ();
14406 return 0;
14408 _ACEOF
14409 for ac_lib in '' opagent; do
14410 if test -z "$ac_lib"; then
14411 ac_res="none required"
14412 else
14413 ac_res=-l$ac_lib
14414 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14416 rm -f conftest.$ac_objext conftest$ac_exeext
14417 if { (ac_try="$ac_link"
14418 case "(($ac_try" in
14419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14420 *) ac_try_echo=$ac_try;;
14421 esac
14422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14423 (eval "$ac_link") 2>conftest.er1
14424 ac_status=$?
14425 grep -v '^ *+' conftest.er1 >conftest.err
14426 rm -f conftest.er1
14427 cat conftest.err >&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); } &&
14430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14431 { (case "(($ac_try" in
14432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14433 *) ac_try_echo=$ac_try;;
14434 esac
14435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14436 (eval "$ac_try") 2>&5
14437 ac_status=$?
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); }; } &&
14440 { ac_try='test -s conftest$ac_exeext'
14441 { (case "(($ac_try" in
14442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443 *) ac_try_echo=$ac_try;;
14444 esac
14445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14446 (eval "$ac_try") 2>&5
14447 ac_status=$?
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); }; }; then
14450 ac_cv_search_op_open_agent=$ac_res
14451 else
14452 echo "$as_me: failed program was:" >&5
14453 sed 's/^/| /' conftest.$ac_ext >&5
14458 rm -f core conftest.err conftest.$ac_objext \
14459 conftest$ac_exeext
14460 if test "${ac_cv_search_op_open_agent+set}" = set; then
14461 break
14463 done
14464 if test "${ac_cv_search_op_open_agent+set}" = set; then
14466 else
14467 ac_cv_search_op_open_agent=no
14469 rm conftest.$ac_ext
14470 LIBS=$ac_func_search_save_LIBS
14472 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14473 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14474 ac_res=$ac_cv_search_op_open_agent
14475 if test "$ac_res" != no; then
14476 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14478 else
14480 echo "Error! You need to have libopagent around."
14481 exit -1
14485 if test "${ac_cv_header_opagent_h+set}" = set; then
14486 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14487 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14488 if test "${ac_cv_header_opagent_h+set}" = set; then
14489 echo $ECHO_N "(cached) $ECHO_C" >&6
14491 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14492 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14493 else
14494 # Is the header compilable?
14495 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14496 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
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. */
14503 $ac_includes_default
14504 #include <opagent.h>
14505 _ACEOF
14506 rm -f conftest.$ac_objext
14507 if { (ac_try="$ac_compile"
14508 case "(($ac_try" in
14509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14510 *) ac_try_echo=$ac_try;;
14511 esac
14512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14513 (eval "$ac_compile") 2>conftest.er1
14514 ac_status=$?
14515 grep -v '^ *+' conftest.er1 >conftest.err
14516 rm -f conftest.er1
14517 cat conftest.err >&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); } &&
14520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14521 { (case "(($ac_try" in
14522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14523 *) ac_try_echo=$ac_try;;
14524 esac
14525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14526 (eval "$ac_try") 2>&5
14527 ac_status=$?
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; } &&
14530 { ac_try='test -s conftest.$ac_objext'
14531 { (case "(($ac_try" in
14532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14533 *) ac_try_echo=$ac_try;;
14534 esac
14535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14536 (eval "$ac_try") 2>&5
14537 ac_status=$?
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; }; then
14540 ac_header_compiler=yes
14541 else
14542 echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14545 ac_header_compiler=no
14548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14550 echo "${ECHO_T}$ac_header_compiler" >&6; }
14552 # Is the header present?
14553 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14554 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14555 cat >conftest.$ac_ext <<_ACEOF
14556 /* confdefs.h. */
14557 _ACEOF
14558 cat confdefs.h >>conftest.$ac_ext
14559 cat >>conftest.$ac_ext <<_ACEOF
14560 /* end confdefs.h. */
14561 #include <opagent.h>
14562 _ACEOF
14563 if { (ac_try="$ac_cpp conftest.$ac_ext"
14564 case "(($ac_try" in
14565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566 *) ac_try_echo=$ac_try;;
14567 esac
14568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14570 ac_status=$?
14571 grep -v '^ *+' conftest.er1 >conftest.err
14572 rm -f conftest.er1
14573 cat conftest.err >&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); } >/dev/null; then
14576 if test -s conftest.err; then
14577 ac_cpp_err=$ac_c_preproc_warn_flag
14578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14579 else
14580 ac_cpp_err=
14582 else
14583 ac_cpp_err=yes
14585 if test -z "$ac_cpp_err"; then
14586 ac_header_preproc=yes
14587 else
14588 echo "$as_me: failed program was:" >&5
14589 sed 's/^/| /' conftest.$ac_ext >&5
14591 ac_header_preproc=no
14594 rm -f conftest.err conftest.$ac_ext
14595 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14596 echo "${ECHO_T}$ac_header_preproc" >&6; }
14598 # So? What about this header?
14599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14600 yes:no: )
14601 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14602 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14603 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14604 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14605 ac_header_preproc=yes
14607 no:yes:* )
14608 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14609 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14610 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14611 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14612 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14613 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14614 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14615 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14616 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14617 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14618 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14619 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14620 ( cat <<\_ASBOX
14621 ## ----------------------------------- ##
14622 ## Report this to llvmbugs@cs.uiuc.edu ##
14623 ## ----------------------------------- ##
14624 _ASBOX
14625 ) | sed "s/^/$as_me: WARNING: /" >&2
14627 esac
14628 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14629 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14630 if test "${ac_cv_header_opagent_h+set}" = set; then
14631 echo $ECHO_N "(cached) $ECHO_C" >&6
14632 else
14633 ac_cv_header_opagent_h=$ac_header_preproc
14635 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14636 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14639 if test $ac_cv_header_opagent_h = yes; then
14641 else
14643 echo "Error! You need to have opagent.h around."
14644 exit -1
14651 else
14653 USE_OPROFILE=0
14659 cat >>confdefs.h <<_ACEOF
14660 #define USE_OPROFILE $USE_OPROFILE
14661 _ACEOF
14670 ac_header_dirent=no
14671 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14672 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14673 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14674 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14676 echo $ECHO_N "(cached) $ECHO_C" >&6
14677 else
14678 cat >conftest.$ac_ext <<_ACEOF
14679 /* confdefs.h. */
14680 _ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h. */
14684 #include <sys/types.h>
14685 #include <$ac_hdr>
14688 main ()
14690 if ((DIR *) 0)
14691 return 0;
14693 return 0;
14695 _ACEOF
14696 rm -f conftest.$ac_objext
14697 if { (ac_try="$ac_compile"
14698 case "(($ac_try" in
14699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14700 *) ac_try_echo=$ac_try;;
14701 esac
14702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14703 (eval "$ac_compile") 2>conftest.er1
14704 ac_status=$?
14705 grep -v '^ *+' conftest.er1 >conftest.err
14706 rm -f conftest.er1
14707 cat conftest.err >&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); } &&
14710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14711 { (case "(($ac_try" in
14712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14713 *) ac_try_echo=$ac_try;;
14714 esac
14715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14716 (eval "$ac_try") 2>&5
14717 ac_status=$?
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); }; } &&
14720 { ac_try='test -s conftest.$ac_objext'
14721 { (case "(($ac_try" in
14722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14723 *) ac_try_echo=$ac_try;;
14724 esac
14725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14726 (eval "$ac_try") 2>&5
14727 ac_status=$?
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; }; then
14730 eval "$as_ac_Header=yes"
14731 else
14732 echo "$as_me: failed program was:" >&5
14733 sed 's/^/| /' conftest.$ac_ext >&5
14735 eval "$as_ac_Header=no"
14738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14740 ac_res=`eval echo '${'$as_ac_Header'}'`
14741 { echo "$as_me:$LINENO: result: $ac_res" >&5
14742 echo "${ECHO_T}$ac_res" >&6; }
14743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14744 cat >>confdefs.h <<_ACEOF
14745 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14746 _ACEOF
14748 ac_header_dirent=$ac_hdr; break
14751 done
14752 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14753 if test $ac_header_dirent = dirent.h; then
14754 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14755 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14756 if test "${ac_cv_search_opendir+set}" = set; then
14757 echo $ECHO_N "(cached) $ECHO_C" >&6
14758 else
14759 ac_func_search_save_LIBS=$LIBS
14760 cat >conftest.$ac_ext <<_ACEOF
14761 /* confdefs.h. */
14762 _ACEOF
14763 cat confdefs.h >>conftest.$ac_ext
14764 cat >>conftest.$ac_ext <<_ACEOF
14765 /* end confdefs.h. */
14767 /* Override any GCC internal prototype to avoid an error.
14768 Use char because int might match the return type of a GCC
14769 builtin and then its argument prototype would still apply. */
14770 #ifdef __cplusplus
14771 extern "C"
14772 #endif
14773 char opendir ();
14775 main ()
14777 return opendir ();
14779 return 0;
14781 _ACEOF
14782 for ac_lib in '' dir; do
14783 if test -z "$ac_lib"; then
14784 ac_res="none required"
14785 else
14786 ac_res=-l$ac_lib
14787 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14789 rm -f conftest.$ac_objext conftest$ac_exeext
14790 if { (ac_try="$ac_link"
14791 case "(($ac_try" in
14792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793 *) ac_try_echo=$ac_try;;
14794 esac
14795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14796 (eval "$ac_link") 2>conftest.er1
14797 ac_status=$?
14798 grep -v '^ *+' conftest.er1 >conftest.err
14799 rm -f conftest.er1
14800 cat conftest.err >&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } &&
14803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14804 { (case "(($ac_try" in
14805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14806 *) ac_try_echo=$ac_try;;
14807 esac
14808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14809 (eval "$ac_try") 2>&5
14810 ac_status=$?
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; } &&
14813 { ac_try='test -s conftest$ac_exeext'
14814 { (case "(($ac_try" in
14815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14816 *) ac_try_echo=$ac_try;;
14817 esac
14818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14819 (eval "$ac_try") 2>&5
14820 ac_status=$?
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); }; }; then
14823 ac_cv_search_opendir=$ac_res
14824 else
14825 echo "$as_me: failed program was:" >&5
14826 sed 's/^/| /' conftest.$ac_ext >&5
14831 rm -f core conftest.err conftest.$ac_objext \
14832 conftest$ac_exeext
14833 if test "${ac_cv_search_opendir+set}" = set; then
14834 break
14836 done
14837 if test "${ac_cv_search_opendir+set}" = set; then
14839 else
14840 ac_cv_search_opendir=no
14842 rm conftest.$ac_ext
14843 LIBS=$ac_func_search_save_LIBS
14845 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14846 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14847 ac_res=$ac_cv_search_opendir
14848 if test "$ac_res" != no; then
14849 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14853 else
14854 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14855 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14856 if test "${ac_cv_search_opendir+set}" = set; then
14857 echo $ECHO_N "(cached) $ECHO_C" >&6
14858 else
14859 ac_func_search_save_LIBS=$LIBS
14860 cat >conftest.$ac_ext <<_ACEOF
14861 /* confdefs.h. */
14862 _ACEOF
14863 cat confdefs.h >>conftest.$ac_ext
14864 cat >>conftest.$ac_ext <<_ACEOF
14865 /* end confdefs.h. */
14867 /* Override any GCC internal prototype to avoid an error.
14868 Use char because int might match the return type of a GCC
14869 builtin and then its argument prototype would still apply. */
14870 #ifdef __cplusplus
14871 extern "C"
14872 #endif
14873 char opendir ();
14875 main ()
14877 return opendir ();
14879 return 0;
14881 _ACEOF
14882 for ac_lib in '' x; do
14883 if test -z "$ac_lib"; then
14884 ac_res="none required"
14885 else
14886 ac_res=-l$ac_lib
14887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14889 rm -f conftest.$ac_objext conftest$ac_exeext
14890 if { (ac_try="$ac_link"
14891 case "(($ac_try" in
14892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14893 *) ac_try_echo=$ac_try;;
14894 esac
14895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14896 (eval "$ac_link") 2>conftest.er1
14897 ac_status=$?
14898 grep -v '^ *+' conftest.er1 >conftest.err
14899 rm -f conftest.er1
14900 cat conftest.err >&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); } &&
14903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14904 { (case "(($ac_try" in
14905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906 *) ac_try_echo=$ac_try;;
14907 esac
14908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14909 (eval "$ac_try") 2>&5
14910 ac_status=$?
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); }; } &&
14913 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14923 ac_cv_search_opendir=$ac_res
14924 else
14925 echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14931 rm -f core conftest.err conftest.$ac_objext \
14932 conftest$ac_exeext
14933 if test "${ac_cv_search_opendir+set}" = set; then
14934 break
14936 done
14937 if test "${ac_cv_search_opendir+set}" = set; then
14939 else
14940 ac_cv_search_opendir=no
14942 rm conftest.$ac_ext
14943 LIBS=$ac_func_search_save_LIBS
14945 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14946 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14947 ac_res=$ac_cv_search_opendir
14948 if test "$ac_res" != no; then
14949 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14955 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14956 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14957 if test "${ac_cv_header_mmap_anon+set}" = set; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
14959 else
14960 ac_ext=c
14961 ac_cpp='$CPP $CPPFLAGS'
14962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14966 cat >conftest.$ac_ext <<_ACEOF
14967 /* confdefs.h. */
14968 _ACEOF
14969 cat confdefs.h >>conftest.$ac_ext
14970 cat >>conftest.$ac_ext <<_ACEOF
14971 /* end confdefs.h. */
14972 #include <sys/mman.h>
14973 #include <unistd.h>
14974 #include <fcntl.h>
14976 main ()
14978 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14980 return 0;
14982 _ACEOF
14983 rm -f conftest.$ac_objext
14984 if { (ac_try="$ac_compile"
14985 case "(($ac_try" in
14986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987 *) ac_try_echo=$ac_try;;
14988 esac
14989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14990 (eval "$ac_compile") 2>conftest.er1
14991 ac_status=$?
14992 grep -v '^ *+' conftest.er1 >conftest.err
14993 rm -f conftest.er1
14994 cat conftest.err >&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); } &&
14997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14998 { (case "(($ac_try" in
14999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000 *) ac_try_echo=$ac_try;;
15001 esac
15002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003 (eval "$ac_try") 2>&5
15004 ac_status=$?
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; } &&
15007 { ac_try='test -s conftest.$ac_objext'
15008 { (case "(($ac_try" in
15009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010 *) ac_try_echo=$ac_try;;
15011 esac
15012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15013 (eval "$ac_try") 2>&5
15014 ac_status=$?
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; }; then
15017 ac_cv_header_mmap_anon=yes
15018 else
15019 echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15022 ac_cv_header_mmap_anon=no
15025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15026 ac_ext=c
15027 ac_cpp='$CPP $CPPFLAGS'
15028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15034 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15035 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15036 if test "$ac_cv_header_mmap_anon" = yes; then
15038 cat >>confdefs.h <<\_ACEOF
15039 #define HAVE_MMAP_ANONYMOUS 1
15040 _ACEOF
15044 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15045 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15046 if test "${ac_cv_header_stat_broken+set}" = set; then
15047 echo $ECHO_N "(cached) $ECHO_C" >&6
15048 else
15049 cat >conftest.$ac_ext <<_ACEOF
15050 /* confdefs.h. */
15051 _ACEOF
15052 cat confdefs.h >>conftest.$ac_ext
15053 cat >>conftest.$ac_ext <<_ACEOF
15054 /* end confdefs.h. */
15055 #include <sys/types.h>
15056 #include <sys/stat.h>
15058 #if defined S_ISBLK && defined S_IFDIR
15059 # if S_ISBLK (S_IFDIR)
15060 You lose.
15061 # endif
15062 #endif
15064 #if defined S_ISBLK && defined S_IFCHR
15065 # if S_ISBLK (S_IFCHR)
15066 You lose.
15067 # endif
15068 #endif
15070 #if defined S_ISLNK && defined S_IFREG
15071 # if S_ISLNK (S_IFREG)
15072 You lose.
15073 # endif
15074 #endif
15076 #if defined S_ISSOCK && defined S_IFREG
15077 # if S_ISSOCK (S_IFREG)
15078 You lose.
15079 # endif
15080 #endif
15082 _ACEOF
15083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15084 $EGREP "You lose" >/dev/null 2>&1; then
15085 ac_cv_header_stat_broken=yes
15086 else
15087 ac_cv_header_stat_broken=no
15089 rm -f conftest*
15092 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15093 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15094 if test $ac_cv_header_stat_broken = yes; then
15096 cat >>confdefs.h <<\_ACEOF
15097 #define STAT_MACROS_BROKEN 1
15098 _ACEOF
15102 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15103 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15104 if test "${ac_cv_header_stdc+set}" = set; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
15106 else
15107 cat >conftest.$ac_ext <<_ACEOF
15108 /* confdefs.h. */
15109 _ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15113 #include <stdlib.h>
15114 #include <stdarg.h>
15115 #include <string.h>
15116 #include <float.h>
15119 main ()
15123 return 0;
15125 _ACEOF
15126 rm -f conftest.$ac_objext
15127 if { (ac_try="$ac_compile"
15128 case "(($ac_try" in
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15131 esac
15132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133 (eval "$ac_compile") 2>conftest.er1
15134 ac_status=$?
15135 grep -v '^ *+' conftest.er1 >conftest.err
15136 rm -f conftest.er1
15137 cat conftest.err >&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); } &&
15140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15141 { (case "(($ac_try" in
15142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15143 *) ac_try_echo=$ac_try;;
15144 esac
15145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15146 (eval "$ac_try") 2>&5
15147 ac_status=$?
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; } &&
15150 { ac_try='test -s conftest.$ac_objext'
15151 { (case "(($ac_try" in
15152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15153 *) ac_try_echo=$ac_try;;
15154 esac
15155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15156 (eval "$ac_try") 2>&5
15157 ac_status=$?
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; }; then
15160 ac_cv_header_stdc=yes
15161 else
15162 echo "$as_me: failed program was:" >&5
15163 sed 's/^/| /' conftest.$ac_ext >&5
15165 ac_cv_header_stdc=no
15168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15170 if test $ac_cv_header_stdc = yes; then
15171 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15172 cat >conftest.$ac_ext <<_ACEOF
15173 /* confdefs.h. */
15174 _ACEOF
15175 cat confdefs.h >>conftest.$ac_ext
15176 cat >>conftest.$ac_ext <<_ACEOF
15177 /* end confdefs.h. */
15178 #include <string.h>
15180 _ACEOF
15181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15182 $EGREP "memchr" >/dev/null 2>&1; then
15184 else
15185 ac_cv_header_stdc=no
15187 rm -f conftest*
15191 if test $ac_cv_header_stdc = yes; then
15192 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15193 cat >conftest.$ac_ext <<_ACEOF
15194 /* confdefs.h. */
15195 _ACEOF
15196 cat confdefs.h >>conftest.$ac_ext
15197 cat >>conftest.$ac_ext <<_ACEOF
15198 /* end confdefs.h. */
15199 #include <stdlib.h>
15201 _ACEOF
15202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15203 $EGREP "free" >/dev/null 2>&1; then
15205 else
15206 ac_cv_header_stdc=no
15208 rm -f conftest*
15212 if test $ac_cv_header_stdc = yes; then
15213 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15214 if test "$cross_compiling" = yes; then
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 <ctype.h>
15224 #include <stdlib.h>
15225 #if ((' ' & 0x0FF) == 0x020)
15226 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15227 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15228 #else
15229 # define ISLOWER(c) \
15230 (('a' <= (c) && (c) <= 'i') \
15231 || ('j' <= (c) && (c) <= 'r') \
15232 || ('s' <= (c) && (c) <= 'z'))
15233 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15234 #endif
15236 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15238 main ()
15240 int i;
15241 for (i = 0; i < 256; i++)
15242 if (XOR (islower (i), ISLOWER (i))
15243 || toupper (i) != TOUPPER (i))
15244 return 2;
15245 return 0;
15247 _ACEOF
15248 rm -f conftest$ac_exeext
15249 if { (ac_try="$ac_link"
15250 case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15253 esac
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_link") 2>&5
15256 ac_status=$?
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15259 { (case "(($ac_try" in
15260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15261 *) ac_try_echo=$ac_try;;
15262 esac
15263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15264 (eval "$ac_try") 2>&5
15265 ac_status=$?
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; }; then
15269 else
15270 echo "$as_me: program exited with status $ac_status" >&5
15271 echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15274 ( exit $ac_status )
15275 ac_cv_header_stdc=no
15277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15283 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15284 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15285 if test $ac_cv_header_stdc = yes; then
15287 cat >>confdefs.h <<\_ACEOF
15288 #define STDC_HEADERS 1
15289 _ACEOF
15293 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15294 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15295 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15296 echo $ECHO_N "(cached) $ECHO_C" >&6
15297 else
15298 cat >conftest.$ac_ext <<_ACEOF
15299 /* confdefs.h. */
15300 _ACEOF
15301 cat confdefs.h >>conftest.$ac_ext
15302 cat >>conftest.$ac_ext <<_ACEOF
15303 /* end confdefs.h. */
15304 #include <sys/types.h>
15305 #include <sys/wait.h>
15306 #ifndef WEXITSTATUS
15307 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15308 #endif
15309 #ifndef WIFEXITED
15310 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15311 #endif
15314 main ()
15316 int s;
15317 wait (&s);
15318 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15320 return 0;
15322 _ACEOF
15323 rm -f conftest.$ac_objext
15324 if { (ac_try="$ac_compile"
15325 case "(($ac_try" in
15326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327 *) ac_try_echo=$ac_try;;
15328 esac
15329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330 (eval "$ac_compile") 2>conftest.er1
15331 ac_status=$?
15332 grep -v '^ *+' conftest.er1 >conftest.err
15333 rm -f conftest.er1
15334 cat conftest.err >&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } &&
15337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15338 { (case "(($ac_try" in
15339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15340 *) ac_try_echo=$ac_try;;
15341 esac
15342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15343 (eval "$ac_try") 2>&5
15344 ac_status=$?
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }; } &&
15347 { ac_try='test -s conftest.$ac_objext'
15348 { (case "(($ac_try" in
15349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350 *) ac_try_echo=$ac_try;;
15351 esac
15352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15353 (eval "$ac_try") 2>&5
15354 ac_status=$?
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; }; then
15357 ac_cv_header_sys_wait_h=yes
15358 else
15359 echo "$as_me: failed program was:" >&5
15360 sed 's/^/| /' conftest.$ac_ext >&5
15362 ac_cv_header_sys_wait_h=no
15365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15367 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15368 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15369 if test $ac_cv_header_sys_wait_h = yes; then
15371 cat >>confdefs.h <<\_ACEOF
15372 #define HAVE_SYS_WAIT_H 1
15373 _ACEOF
15377 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15378 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15379 if test "${ac_cv_header_time+set}" = set; then
15380 echo $ECHO_N "(cached) $ECHO_C" >&6
15381 else
15382 cat >conftest.$ac_ext <<_ACEOF
15383 /* confdefs.h. */
15384 _ACEOF
15385 cat confdefs.h >>conftest.$ac_ext
15386 cat >>conftest.$ac_ext <<_ACEOF
15387 /* end confdefs.h. */
15388 #include <sys/types.h>
15389 #include <sys/time.h>
15390 #include <time.h>
15393 main ()
15395 if ((struct tm *) 0)
15396 return 0;
15398 return 0;
15400 _ACEOF
15401 rm -f conftest.$ac_objext
15402 if { (ac_try="$ac_compile"
15403 case "(($ac_try" in
15404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405 *) ac_try_echo=$ac_try;;
15406 esac
15407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15408 (eval "$ac_compile") 2>conftest.er1
15409 ac_status=$?
15410 grep -v '^ *+' conftest.er1 >conftest.err
15411 rm -f conftest.er1
15412 cat conftest.err >&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); } &&
15415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15416 { (case "(($ac_try" in
15417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418 *) ac_try_echo=$ac_try;;
15419 esac
15420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421 (eval "$ac_try") 2>&5
15422 ac_status=$?
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); }; } &&
15425 { ac_try='test -s conftest.$ac_objext'
15426 { (case "(($ac_try" in
15427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428 *) ac_try_echo=$ac_try;;
15429 esac
15430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431 (eval "$ac_try") 2>&5
15432 ac_status=$?
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); }; }; then
15435 ac_cv_header_time=yes
15436 else
15437 echo "$as_me: failed program was:" >&5
15438 sed 's/^/| /' conftest.$ac_ext >&5
15440 ac_cv_header_time=no
15443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15445 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15446 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15447 if test $ac_cv_header_time = yes; then
15449 cat >>confdefs.h <<\_ACEOF
15450 #define TIME_WITH_SYS_TIME 1
15451 _ACEOF
15462 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15469 echo $ECHO_N "(cached) $ECHO_C" >&6
15471 ac_res=`eval echo '${'$as_ac_Header'}'`
15472 { echo "$as_me:$LINENO: result: $ac_res" >&5
15473 echo "${ECHO_T}$ac_res" >&6; }
15474 else
15475 # Is the header compilable?
15476 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15478 cat >conftest.$ac_ext <<_ACEOF
15479 /* confdefs.h. */
15480 _ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h. */
15484 $ac_includes_default
15485 #include <$ac_header>
15486 _ACEOF
15487 rm -f conftest.$ac_objext
15488 if { (ac_try="$ac_compile"
15489 case "(($ac_try" in
15490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15491 *) ac_try_echo=$ac_try;;
15492 esac
15493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15494 (eval "$ac_compile") 2>conftest.er1
15495 ac_status=$?
15496 grep -v '^ *+' conftest.er1 >conftest.err
15497 rm -f conftest.er1
15498 cat conftest.err >&5
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); } &&
15501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15502 { (case "(($ac_try" in
15503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15504 *) ac_try_echo=$ac_try;;
15505 esac
15506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15507 (eval "$ac_try") 2>&5
15508 ac_status=$?
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); }; } &&
15511 { ac_try='test -s conftest.$ac_objext'
15512 { (case "(($ac_try" in
15513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514 *) ac_try_echo=$ac_try;;
15515 esac
15516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15517 (eval "$ac_try") 2>&5
15518 ac_status=$?
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; }; then
15521 ac_header_compiler=yes
15522 else
15523 echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15526 ac_header_compiler=no
15529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15531 echo "${ECHO_T}$ac_header_compiler" >&6; }
15533 # Is the header present?
15534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15536 cat >conftest.$ac_ext <<_ACEOF
15537 /* confdefs.h. */
15538 _ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h. */
15542 #include <$ac_header>
15543 _ACEOF
15544 if { (ac_try="$ac_cpp conftest.$ac_ext"
15545 case "(($ac_try" in
15546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547 *) ac_try_echo=$ac_try;;
15548 esac
15549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15551 ac_status=$?
15552 grep -v '^ *+' conftest.er1 >conftest.err
15553 rm -f conftest.er1
15554 cat conftest.err >&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } >/dev/null; then
15557 if test -s conftest.err; then
15558 ac_cpp_err=$ac_c_preproc_warn_flag
15559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15560 else
15561 ac_cpp_err=
15563 else
15564 ac_cpp_err=yes
15566 if test -z "$ac_cpp_err"; then
15567 ac_header_preproc=yes
15568 else
15569 echo "$as_me: failed program was:" >&5
15570 sed 's/^/| /' conftest.$ac_ext >&5
15572 ac_header_preproc=no
15575 rm -f conftest.err conftest.$ac_ext
15576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15577 echo "${ECHO_T}$ac_header_preproc" >&6; }
15579 # So? What about this header?
15580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15581 yes:no: )
15582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15586 ac_header_preproc=yes
15588 no:yes:* )
15589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15596 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15601 ( cat <<\_ASBOX
15602 ## ----------------------------------- ##
15603 ## Report this to llvmbugs@cs.uiuc.edu ##
15604 ## ----------------------------------- ##
15605 _ASBOX
15606 ) | sed "s/^/$as_me: WARNING: /" >&2
15608 esac
15609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15612 echo $ECHO_N "(cached) $ECHO_C" >&6
15613 else
15614 eval "$as_ac_Header=\$ac_header_preproc"
15616 ac_res=`eval echo '${'$as_ac_Header'}'`
15617 { echo "$as_me:$LINENO: result: $ac_res" >&5
15618 echo "${ECHO_T}$ac_res" >&6; }
15621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15622 cat >>confdefs.h <<_ACEOF
15623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15624 _ACEOF
15628 done
15636 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15638 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15643 echo $ECHO_N "(cached) $ECHO_C" >&6
15645 ac_res=`eval echo '${'$as_ac_Header'}'`
15646 { echo "$as_me:$LINENO: result: $ac_res" >&5
15647 echo "${ECHO_T}$ac_res" >&6; }
15648 else
15649 # Is the header compilable?
15650 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15652 cat >conftest.$ac_ext <<_ACEOF
15653 /* confdefs.h. */
15654 _ACEOF
15655 cat confdefs.h >>conftest.$ac_ext
15656 cat >>conftest.$ac_ext <<_ACEOF
15657 /* end confdefs.h. */
15658 $ac_includes_default
15659 #include <$ac_header>
15660 _ACEOF
15661 rm -f conftest.$ac_objext
15662 if { (ac_try="$ac_compile"
15663 case "(($ac_try" in
15664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15665 *) ac_try_echo=$ac_try;;
15666 esac
15667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15668 (eval "$ac_compile") 2>conftest.er1
15669 ac_status=$?
15670 grep -v '^ *+' conftest.er1 >conftest.err
15671 rm -f conftest.er1
15672 cat conftest.err >&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); } &&
15675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15676 { (case "(($ac_try" in
15677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15678 *) ac_try_echo=$ac_try;;
15679 esac
15680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15681 (eval "$ac_try") 2>&5
15682 ac_status=$?
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; } &&
15685 { ac_try='test -s conftest.$ac_objext'
15686 { (case "(($ac_try" in
15687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15688 *) ac_try_echo=$ac_try;;
15689 esac
15690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15691 (eval "$ac_try") 2>&5
15692 ac_status=$?
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; }; then
15695 ac_header_compiler=yes
15696 else
15697 echo "$as_me: failed program was:" >&5
15698 sed 's/^/| /' conftest.$ac_ext >&5
15700 ac_header_compiler=no
15703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15704 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15705 echo "${ECHO_T}$ac_header_compiler" >&6; }
15707 # Is the header present?
15708 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15709 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15710 cat >conftest.$ac_ext <<_ACEOF
15711 /* confdefs.h. */
15712 _ACEOF
15713 cat confdefs.h >>conftest.$ac_ext
15714 cat >>conftest.$ac_ext <<_ACEOF
15715 /* end confdefs.h. */
15716 #include <$ac_header>
15717 _ACEOF
15718 if { (ac_try="$ac_cpp conftest.$ac_ext"
15719 case "(($ac_try" in
15720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721 *) ac_try_echo=$ac_try;;
15722 esac
15723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15725 ac_status=$?
15726 grep -v '^ *+' conftest.er1 >conftest.err
15727 rm -f conftest.er1
15728 cat conftest.err >&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); } >/dev/null; then
15731 if test -s conftest.err; then
15732 ac_cpp_err=$ac_c_preproc_warn_flag
15733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15734 else
15735 ac_cpp_err=
15737 else
15738 ac_cpp_err=yes
15740 if test -z "$ac_cpp_err"; then
15741 ac_header_preproc=yes
15742 else
15743 echo "$as_me: failed program was:" >&5
15744 sed 's/^/| /' conftest.$ac_ext >&5
15746 ac_header_preproc=no
15749 rm -f conftest.err conftest.$ac_ext
15750 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15751 echo "${ECHO_T}$ac_header_preproc" >&6; }
15753 # So? What about this header?
15754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15755 yes:no: )
15756 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15760 ac_header_preproc=yes
15762 no:yes:* )
15763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15766 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15767 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15768 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15769 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15770 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15773 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15775 ( cat <<\_ASBOX
15776 ## ----------------------------------- ##
15777 ## Report this to llvmbugs@cs.uiuc.edu ##
15778 ## ----------------------------------- ##
15779 _ASBOX
15780 ) | sed "s/^/$as_me: WARNING: /" >&2
15782 esac
15783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15786 echo $ECHO_N "(cached) $ECHO_C" >&6
15787 else
15788 eval "$as_ac_Header=\$ac_header_preproc"
15790 ac_res=`eval echo '${'$as_ac_Header'}'`
15791 { echo "$as_me:$LINENO: result: $ac_res" >&5
15792 echo "${ECHO_T}$ac_res" >&6; }
15795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15796 cat >>confdefs.h <<_ACEOF
15797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15798 _ACEOF
15802 done
15806 for ac_header in utime.h windows.h
15808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15813 echo $ECHO_N "(cached) $ECHO_C" >&6
15815 ac_res=`eval echo '${'$as_ac_Header'}'`
15816 { echo "$as_me:$LINENO: result: $ac_res" >&5
15817 echo "${ECHO_T}$ac_res" >&6; }
15818 else
15819 # Is the header compilable?
15820 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15822 cat >conftest.$ac_ext <<_ACEOF
15823 /* confdefs.h. */
15824 _ACEOF
15825 cat confdefs.h >>conftest.$ac_ext
15826 cat >>conftest.$ac_ext <<_ACEOF
15827 /* end confdefs.h. */
15828 $ac_includes_default
15829 #include <$ac_header>
15830 _ACEOF
15831 rm -f conftest.$ac_objext
15832 if { (ac_try="$ac_compile"
15833 case "(($ac_try" in
15834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835 *) ac_try_echo=$ac_try;;
15836 esac
15837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15838 (eval "$ac_compile") 2>conftest.er1
15839 ac_status=$?
15840 grep -v '^ *+' conftest.er1 >conftest.err
15841 rm -f conftest.er1
15842 cat conftest.err >&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } &&
15845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15846 { (case "(($ac_try" in
15847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848 *) ac_try_echo=$ac_try;;
15849 esac
15850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851 (eval "$ac_try") 2>&5
15852 ac_status=$?
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; } &&
15855 { ac_try='test -s conftest.$ac_objext'
15856 { (case "(($ac_try" in
15857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858 *) ac_try_echo=$ac_try;;
15859 esac
15860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861 (eval "$ac_try") 2>&5
15862 ac_status=$?
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); }; }; then
15865 ac_header_compiler=yes
15866 else
15867 echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15870 ac_header_compiler=no
15873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15874 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15875 echo "${ECHO_T}$ac_header_compiler" >&6; }
15877 # Is the header present?
15878 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15880 cat >conftest.$ac_ext <<_ACEOF
15881 /* confdefs.h. */
15882 _ACEOF
15883 cat confdefs.h >>conftest.$ac_ext
15884 cat >>conftest.$ac_ext <<_ACEOF
15885 /* end confdefs.h. */
15886 #include <$ac_header>
15887 _ACEOF
15888 if { (ac_try="$ac_cpp conftest.$ac_ext"
15889 case "(($ac_try" in
15890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15891 *) ac_try_echo=$ac_try;;
15892 esac
15893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15895 ac_status=$?
15896 grep -v '^ *+' conftest.er1 >conftest.err
15897 rm -f conftest.er1
15898 cat conftest.err >&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); } >/dev/null; then
15901 if test -s conftest.err; then
15902 ac_cpp_err=$ac_c_preproc_warn_flag
15903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15904 else
15905 ac_cpp_err=
15907 else
15908 ac_cpp_err=yes
15910 if test -z "$ac_cpp_err"; then
15911 ac_header_preproc=yes
15912 else
15913 echo "$as_me: failed program was:" >&5
15914 sed 's/^/| /' conftest.$ac_ext >&5
15916 ac_header_preproc=no
15919 rm -f conftest.err conftest.$ac_ext
15920 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15921 echo "${ECHO_T}$ac_header_preproc" >&6; }
15923 # So? What about this header?
15924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15925 yes:no: )
15926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15929 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15930 ac_header_preproc=yes
15932 no:yes:* )
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15936 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15938 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15940 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15944 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15945 ( cat <<\_ASBOX
15946 ## ----------------------------------- ##
15947 ## Report this to llvmbugs@cs.uiuc.edu ##
15948 ## ----------------------------------- ##
15949 _ASBOX
15950 ) | sed "s/^/$as_me: WARNING: /" >&2
15952 esac
15953 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15956 echo $ECHO_N "(cached) $ECHO_C" >&6
15957 else
15958 eval "$as_ac_Header=\$ac_header_preproc"
15960 ac_res=`eval echo '${'$as_ac_Header'}'`
15961 { echo "$as_me:$LINENO: result: $ac_res" >&5
15962 echo "${ECHO_T}$ac_res" >&6; }
15965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15966 cat >>confdefs.h <<_ACEOF
15967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15968 _ACEOF
15972 done
15978 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15985 echo $ECHO_N "(cached) $ECHO_C" >&6
15987 ac_res=`eval echo '${'$as_ac_Header'}'`
15988 { echo "$as_me:$LINENO: result: $ac_res" >&5
15989 echo "${ECHO_T}$ac_res" >&6; }
15990 else
15991 # Is the header compilable?
15992 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15994 cat >conftest.$ac_ext <<_ACEOF
15995 /* confdefs.h. */
15996 _ACEOF
15997 cat confdefs.h >>conftest.$ac_ext
15998 cat >>conftest.$ac_ext <<_ACEOF
15999 /* end confdefs.h. */
16000 $ac_includes_default
16001 #include <$ac_header>
16002 _ACEOF
16003 rm -f conftest.$ac_objext
16004 if { (ac_try="$ac_compile"
16005 case "(($ac_try" in
16006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16007 *) ac_try_echo=$ac_try;;
16008 esac
16009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16010 (eval "$ac_compile") 2>conftest.er1
16011 ac_status=$?
16012 grep -v '^ *+' conftest.er1 >conftest.err
16013 rm -f conftest.er1
16014 cat conftest.err >&5
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); } &&
16017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16018 { (case "(($ac_try" in
16019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16020 *) ac_try_echo=$ac_try;;
16021 esac
16022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16023 (eval "$ac_try") 2>&5
16024 ac_status=$?
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); }; } &&
16027 { ac_try='test -s conftest.$ac_objext'
16028 { (case "(($ac_try" in
16029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16030 *) ac_try_echo=$ac_try;;
16031 esac
16032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16033 (eval "$ac_try") 2>&5
16034 ac_status=$?
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); }; }; then
16037 ac_header_compiler=yes
16038 else
16039 echo "$as_me: failed program was:" >&5
16040 sed 's/^/| /' conftest.$ac_ext >&5
16042 ac_header_compiler=no
16045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16047 echo "${ECHO_T}$ac_header_compiler" >&6; }
16049 # Is the header present?
16050 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16052 cat >conftest.$ac_ext <<_ACEOF
16053 /* confdefs.h. */
16054 _ACEOF
16055 cat confdefs.h >>conftest.$ac_ext
16056 cat >>conftest.$ac_ext <<_ACEOF
16057 /* end confdefs.h. */
16058 #include <$ac_header>
16059 _ACEOF
16060 if { (ac_try="$ac_cpp conftest.$ac_ext"
16061 case "(($ac_try" in
16062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16063 *) ac_try_echo=$ac_try;;
16064 esac
16065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16067 ac_status=$?
16068 grep -v '^ *+' conftest.er1 >conftest.err
16069 rm -f conftest.er1
16070 cat conftest.err >&5
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); } >/dev/null; then
16073 if test -s conftest.err; then
16074 ac_cpp_err=$ac_c_preproc_warn_flag
16075 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16076 else
16077 ac_cpp_err=
16079 else
16080 ac_cpp_err=yes
16082 if test -z "$ac_cpp_err"; then
16083 ac_header_preproc=yes
16084 else
16085 echo "$as_me: failed program was:" >&5
16086 sed 's/^/| /' conftest.$ac_ext >&5
16088 ac_header_preproc=no
16091 rm -f conftest.err conftest.$ac_ext
16092 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16093 echo "${ECHO_T}$ac_header_preproc" >&6; }
16095 # So? What about this header?
16096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16097 yes:no: )
16098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16102 ac_header_preproc=yes
16104 no:yes:* )
16105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16112 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16117 ( cat <<\_ASBOX
16118 ## ----------------------------------- ##
16119 ## Report this to llvmbugs@cs.uiuc.edu ##
16120 ## ----------------------------------- ##
16121 _ASBOX
16122 ) | sed "s/^/$as_me: WARNING: /" >&2
16124 esac
16125 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16128 echo $ECHO_N "(cached) $ECHO_C" >&6
16129 else
16130 eval "$as_ac_Header=\$ac_header_preproc"
16132 ac_res=`eval echo '${'$as_ac_Header'}'`
16133 { echo "$as_me:$LINENO: result: $ac_res" >&5
16134 echo "${ECHO_T}$ac_res" >&6; }
16137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16138 cat >>confdefs.h <<_ACEOF
16139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16140 _ACEOF
16144 done
16150 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16157 echo $ECHO_N "(cached) $ECHO_C" >&6
16159 ac_res=`eval echo '${'$as_ac_Header'}'`
16160 { echo "$as_me:$LINENO: result: $ac_res" >&5
16161 echo "${ECHO_T}$ac_res" >&6; }
16162 else
16163 # Is the header compilable?
16164 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16166 cat >conftest.$ac_ext <<_ACEOF
16167 /* confdefs.h. */
16168 _ACEOF
16169 cat confdefs.h >>conftest.$ac_ext
16170 cat >>conftest.$ac_ext <<_ACEOF
16171 /* end confdefs.h. */
16172 $ac_includes_default
16173 #include <$ac_header>
16174 _ACEOF
16175 rm -f conftest.$ac_objext
16176 if { (ac_try="$ac_compile"
16177 case "(($ac_try" in
16178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16179 *) ac_try_echo=$ac_try;;
16180 esac
16181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16182 (eval "$ac_compile") 2>conftest.er1
16183 ac_status=$?
16184 grep -v '^ *+' conftest.er1 >conftest.err
16185 rm -f conftest.er1
16186 cat conftest.err >&5
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); } &&
16189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16190 { (case "(($ac_try" in
16191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16192 *) ac_try_echo=$ac_try;;
16193 esac
16194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16195 (eval "$ac_try") 2>&5
16196 ac_status=$?
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); }; } &&
16199 { ac_try='test -s conftest.$ac_objext'
16200 { (case "(($ac_try" in
16201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202 *) ac_try_echo=$ac_try;;
16203 esac
16204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205 (eval "$ac_try") 2>&5
16206 ac_status=$?
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; }; then
16209 ac_header_compiler=yes
16210 else
16211 echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16214 ac_header_compiler=no
16217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16218 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16219 echo "${ECHO_T}$ac_header_compiler" >&6; }
16221 # Is the header present?
16222 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16224 cat >conftest.$ac_ext <<_ACEOF
16225 /* confdefs.h. */
16226 _ACEOF
16227 cat confdefs.h >>conftest.$ac_ext
16228 cat >>conftest.$ac_ext <<_ACEOF
16229 /* end confdefs.h. */
16230 #include <$ac_header>
16231 _ACEOF
16232 if { (ac_try="$ac_cpp conftest.$ac_ext"
16233 case "(($ac_try" in
16234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235 *) ac_try_echo=$ac_try;;
16236 esac
16237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16239 ac_status=$?
16240 grep -v '^ *+' conftest.er1 >conftest.err
16241 rm -f conftest.er1
16242 cat conftest.err >&5
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); } >/dev/null; then
16245 if test -s conftest.err; then
16246 ac_cpp_err=$ac_c_preproc_warn_flag
16247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16248 else
16249 ac_cpp_err=
16251 else
16252 ac_cpp_err=yes
16254 if test -z "$ac_cpp_err"; then
16255 ac_header_preproc=yes
16256 else
16257 echo "$as_me: failed program was:" >&5
16258 sed 's/^/| /' conftest.$ac_ext >&5
16260 ac_header_preproc=no
16263 rm -f conftest.err conftest.$ac_ext
16264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16265 echo "${ECHO_T}$ac_header_preproc" >&6; }
16267 # So? What about this header?
16268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16269 yes:no: )
16270 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16273 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16274 ac_header_preproc=yes
16276 no:yes:* )
16277 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16278 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16279 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16280 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16281 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16282 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16283 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16284 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16287 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16288 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16289 ( cat <<\_ASBOX
16290 ## ----------------------------------- ##
16291 ## Report this to llvmbugs@cs.uiuc.edu ##
16292 ## ----------------------------------- ##
16293 _ASBOX
16294 ) | sed "s/^/$as_me: WARNING: /" >&2
16296 esac
16297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16300 echo $ECHO_N "(cached) $ECHO_C" >&6
16301 else
16302 eval "$as_ac_Header=\$ac_header_preproc"
16304 ac_res=`eval echo '${'$as_ac_Header'}'`
16305 { echo "$as_me:$LINENO: result: $ac_res" >&5
16306 echo "${ECHO_T}$ac_res" >&6; }
16309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16310 cat >>confdefs.h <<_ACEOF
16311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16312 _ACEOF
16316 done
16319 for ac_header in valgrind/valgrind.h
16321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16326 echo $ECHO_N "(cached) $ECHO_C" >&6
16328 ac_res=`eval echo '${'$as_ac_Header'}'`
16329 { echo "$as_me:$LINENO: result: $ac_res" >&5
16330 echo "${ECHO_T}$ac_res" >&6; }
16331 else
16332 # Is the header compilable?
16333 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16335 cat >conftest.$ac_ext <<_ACEOF
16336 /* confdefs.h. */
16337 _ACEOF
16338 cat confdefs.h >>conftest.$ac_ext
16339 cat >>conftest.$ac_ext <<_ACEOF
16340 /* end confdefs.h. */
16341 $ac_includes_default
16342 #include <$ac_header>
16343 _ACEOF
16344 rm -f conftest.$ac_objext
16345 if { (ac_try="$ac_compile"
16346 case "(($ac_try" in
16347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16348 *) ac_try_echo=$ac_try;;
16349 esac
16350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16351 (eval "$ac_compile") 2>conftest.er1
16352 ac_status=$?
16353 grep -v '^ *+' conftest.er1 >conftest.err
16354 rm -f conftest.er1
16355 cat conftest.err >&5
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); } &&
16358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16359 { (case "(($ac_try" in
16360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361 *) ac_try_echo=$ac_try;;
16362 esac
16363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16364 (eval "$ac_try") 2>&5
16365 ac_status=$?
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); }; } &&
16368 { ac_try='test -s conftest.$ac_objext'
16369 { (case "(($ac_try" in
16370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371 *) ac_try_echo=$ac_try;;
16372 esac
16373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16374 (eval "$ac_try") 2>&5
16375 ac_status=$?
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); }; }; then
16378 ac_header_compiler=yes
16379 else
16380 echo "$as_me: failed program was:" >&5
16381 sed 's/^/| /' conftest.$ac_ext >&5
16383 ac_header_compiler=no
16386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16388 echo "${ECHO_T}$ac_header_compiler" >&6; }
16390 # Is the header present?
16391 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16393 cat >conftest.$ac_ext <<_ACEOF
16394 /* confdefs.h. */
16395 _ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h. */
16399 #include <$ac_header>
16400 _ACEOF
16401 if { (ac_try="$ac_cpp conftest.$ac_ext"
16402 case "(($ac_try" in
16403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404 *) ac_try_echo=$ac_try;;
16405 esac
16406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16408 ac_status=$?
16409 grep -v '^ *+' conftest.er1 >conftest.err
16410 rm -f conftest.er1
16411 cat conftest.err >&5
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); } >/dev/null; then
16414 if test -s conftest.err; then
16415 ac_cpp_err=$ac_c_preproc_warn_flag
16416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16417 else
16418 ac_cpp_err=
16420 else
16421 ac_cpp_err=yes
16423 if test -z "$ac_cpp_err"; then
16424 ac_header_preproc=yes
16425 else
16426 echo "$as_me: failed program was:" >&5
16427 sed 's/^/| /' conftest.$ac_ext >&5
16429 ac_header_preproc=no
16432 rm -f conftest.err conftest.$ac_ext
16433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16434 echo "${ECHO_T}$ac_header_preproc" >&6; }
16436 # So? What about this header?
16437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16438 yes:no: )
16439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16443 ac_header_preproc=yes
16445 no:yes:* )
16446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16449 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16453 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16458 ( cat <<\_ASBOX
16459 ## ----------------------------------- ##
16460 ## Report this to llvmbugs@cs.uiuc.edu ##
16461 ## ----------------------------------- ##
16462 _ASBOX
16463 ) | sed "s/^/$as_me: WARNING: /" >&2
16465 esac
16466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16469 echo $ECHO_N "(cached) $ECHO_C" >&6
16470 else
16471 eval "$as_ac_Header=\$ac_header_preproc"
16473 ac_res=`eval echo '${'$as_ac_Header'}'`
16474 { echo "$as_me:$LINENO: result: $ac_res" >&5
16475 echo "${ECHO_T}$ac_res" >&6; }
16478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16479 cat >>confdefs.h <<_ACEOF
16480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16481 _ACEOF
16485 done
16487 if test "$ENABLE_THREADS" -eq 1 ; then
16489 for ac_header in pthread.h
16491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16496 echo $ECHO_N "(cached) $ECHO_C" >&6
16498 ac_res=`eval echo '${'$as_ac_Header'}'`
16499 { echo "$as_me:$LINENO: result: $ac_res" >&5
16500 echo "${ECHO_T}$ac_res" >&6; }
16501 else
16502 # Is the header compilable?
16503 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16505 cat >conftest.$ac_ext <<_ACEOF
16506 /* confdefs.h. */
16507 _ACEOF
16508 cat confdefs.h >>conftest.$ac_ext
16509 cat >>conftest.$ac_ext <<_ACEOF
16510 /* end confdefs.h. */
16511 $ac_includes_default
16512 #include <$ac_header>
16513 _ACEOF
16514 rm -f conftest.$ac_objext
16515 if { (ac_try="$ac_compile"
16516 case "(($ac_try" in
16517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518 *) ac_try_echo=$ac_try;;
16519 esac
16520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521 (eval "$ac_compile") 2>conftest.er1
16522 ac_status=$?
16523 grep -v '^ *+' conftest.er1 >conftest.err
16524 rm -f conftest.er1
16525 cat conftest.err >&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } &&
16528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16529 { (case "(($ac_try" in
16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531 *) ac_try_echo=$ac_try;;
16532 esac
16533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534 (eval "$ac_try") 2>&5
16535 ac_status=$?
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); }; } &&
16538 { ac_try='test -s conftest.$ac_objext'
16539 { (case "(($ac_try" in
16540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541 *) ac_try_echo=$ac_try;;
16542 esac
16543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16544 (eval "$ac_try") 2>&5
16545 ac_status=$?
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; }; then
16548 ac_header_compiler=yes
16549 else
16550 echo "$as_me: failed program was:" >&5
16551 sed 's/^/| /' conftest.$ac_ext >&5
16553 ac_header_compiler=no
16556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16557 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16558 echo "${ECHO_T}$ac_header_compiler" >&6; }
16560 # Is the header present?
16561 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16563 cat >conftest.$ac_ext <<_ACEOF
16564 /* confdefs.h. */
16565 _ACEOF
16566 cat confdefs.h >>conftest.$ac_ext
16567 cat >>conftest.$ac_ext <<_ACEOF
16568 /* end confdefs.h. */
16569 #include <$ac_header>
16570 _ACEOF
16571 if { (ac_try="$ac_cpp conftest.$ac_ext"
16572 case "(($ac_try" in
16573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16574 *) ac_try_echo=$ac_try;;
16575 esac
16576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16578 ac_status=$?
16579 grep -v '^ *+' conftest.er1 >conftest.err
16580 rm -f conftest.er1
16581 cat conftest.err >&5
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); } >/dev/null; then
16584 if test -s conftest.err; then
16585 ac_cpp_err=$ac_c_preproc_warn_flag
16586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16587 else
16588 ac_cpp_err=
16590 else
16591 ac_cpp_err=yes
16593 if test -z "$ac_cpp_err"; then
16594 ac_header_preproc=yes
16595 else
16596 echo "$as_me: failed program was:" >&5
16597 sed 's/^/| /' conftest.$ac_ext >&5
16599 ac_header_preproc=no
16602 rm -f conftest.err conftest.$ac_ext
16603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16604 echo "${ECHO_T}$ac_header_preproc" >&6; }
16606 # So? What about this header?
16607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16608 yes:no: )
16609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16612 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16613 ac_header_preproc=yes
16615 no:yes:* )
16616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16619 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16621 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16623 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16627 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16628 ( cat <<\_ASBOX
16629 ## ----------------------------------- ##
16630 ## Report this to llvmbugs@cs.uiuc.edu ##
16631 ## ----------------------------------- ##
16632 _ASBOX
16633 ) | sed "s/^/$as_me: WARNING: /" >&2
16635 esac
16636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16639 echo $ECHO_N "(cached) $ECHO_C" >&6
16640 else
16641 eval "$as_ac_Header=\$ac_header_preproc"
16643 ac_res=`eval echo '${'$as_ac_Header'}'`
16644 { echo "$as_me:$LINENO: result: $ac_res" >&5
16645 echo "${ECHO_T}$ac_res" >&6; }
16648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16649 cat >>confdefs.h <<_ACEOF
16650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16651 _ACEOF
16652 HAVE_PTHREAD=1
16654 else
16655 HAVE_PTHREAD=0
16659 done
16661 else
16662 HAVE_PTHREAD=0
16666 if test "$llvm_cv_enable_libffi" = "yes" ; then
16669 for ac_header in ffi.h ffi/ffi.h
16671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16676 echo $ECHO_N "(cached) $ECHO_C" >&6
16678 ac_res=`eval echo '${'$as_ac_Header'}'`
16679 { echo "$as_me:$LINENO: result: $ac_res" >&5
16680 echo "${ECHO_T}$ac_res" >&6; }
16681 else
16682 # Is the header compilable?
16683 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16684 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16685 cat >conftest.$ac_ext <<_ACEOF
16686 /* confdefs.h. */
16687 _ACEOF
16688 cat confdefs.h >>conftest.$ac_ext
16689 cat >>conftest.$ac_ext <<_ACEOF
16690 /* end confdefs.h. */
16691 $ac_includes_default
16692 #include <$ac_header>
16693 _ACEOF
16694 rm -f conftest.$ac_objext
16695 if { (ac_try="$ac_compile"
16696 case "(($ac_try" in
16697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698 *) ac_try_echo=$ac_try;;
16699 esac
16700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16701 (eval "$ac_compile") 2>conftest.er1
16702 ac_status=$?
16703 grep -v '^ *+' conftest.er1 >conftest.err
16704 rm -f conftest.er1
16705 cat conftest.err >&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } &&
16708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16709 { (case "(($ac_try" in
16710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16711 *) ac_try_echo=$ac_try;;
16712 esac
16713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16714 (eval "$ac_try") 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; } &&
16718 { ac_try='test -s conftest.$ac_objext'
16719 { (case "(($ac_try" in
16720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16721 *) ac_try_echo=$ac_try;;
16722 esac
16723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16724 (eval "$ac_try") 2>&5
16725 ac_status=$?
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); }; }; then
16728 ac_header_compiler=yes
16729 else
16730 echo "$as_me: failed program was:" >&5
16731 sed 's/^/| /' conftest.$ac_ext >&5
16733 ac_header_compiler=no
16736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16737 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16738 echo "${ECHO_T}$ac_header_compiler" >&6; }
16740 # Is the header present?
16741 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16743 cat >conftest.$ac_ext <<_ACEOF
16744 /* confdefs.h. */
16745 _ACEOF
16746 cat confdefs.h >>conftest.$ac_ext
16747 cat >>conftest.$ac_ext <<_ACEOF
16748 /* end confdefs.h. */
16749 #include <$ac_header>
16750 _ACEOF
16751 if { (ac_try="$ac_cpp conftest.$ac_ext"
16752 case "(($ac_try" in
16753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754 *) ac_try_echo=$ac_try;;
16755 esac
16756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16758 ac_status=$?
16759 grep -v '^ *+' conftest.er1 >conftest.err
16760 rm -f conftest.er1
16761 cat conftest.err >&5
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); } >/dev/null; then
16764 if test -s conftest.err; then
16765 ac_cpp_err=$ac_c_preproc_warn_flag
16766 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16767 else
16768 ac_cpp_err=
16770 else
16771 ac_cpp_err=yes
16773 if test -z "$ac_cpp_err"; then
16774 ac_header_preproc=yes
16775 else
16776 echo "$as_me: failed program was:" >&5
16777 sed 's/^/| /' conftest.$ac_ext >&5
16779 ac_header_preproc=no
16782 rm -f conftest.err conftest.$ac_ext
16783 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16784 echo "${ECHO_T}$ac_header_preproc" >&6; }
16786 # So? What about this header?
16787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16788 yes:no: )
16789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16793 ac_header_preproc=yes
16795 no:yes:* )
16796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16799 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16803 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16808 ( cat <<\_ASBOX
16809 ## ----------------------------------- ##
16810 ## Report this to llvmbugs@cs.uiuc.edu ##
16811 ## ----------------------------------- ##
16812 _ASBOX
16813 ) | sed "s/^/$as_me: WARNING: /" >&2
16815 esac
16816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16819 echo $ECHO_N "(cached) $ECHO_C" >&6
16820 else
16821 eval "$as_ac_Header=\$ac_header_preproc"
16823 ac_res=`eval echo '${'$as_ac_Header'}'`
16824 { echo "$as_me:$LINENO: result: $ac_res" >&5
16825 echo "${ECHO_T}$ac_res" >&6; }
16828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16829 cat >>confdefs.h <<_ACEOF
16830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16831 _ACEOF
16835 done
16842 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16843 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16844 if test "${ac_cv_huge_val_sanity+set}" = set; then
16845 echo $ECHO_N "(cached) $ECHO_C" >&6
16846 else
16848 ac_ext=cpp
16849 ac_cpp='$CXXCPP $CPPFLAGS'
16850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16854 ac_save_CXXFLAGS=$CXXFLAGS
16855 CXXFLAGS=-pedantic
16856 if test "$cross_compiling" = yes; then
16857 ac_cv_huge_val_sanity=yes
16858 else
16859 cat >conftest.$ac_ext <<_ACEOF
16860 /* confdefs.h. */
16861 _ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h. */
16865 #include <math.h>
16867 main ()
16869 double x = HUGE_VAL; return x != x;
16871 return 0;
16873 _ACEOF
16874 rm -f conftest$ac_exeext
16875 if { (ac_try="$ac_link"
16876 case "(($ac_try" in
16877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878 *) ac_try_echo=$ac_try;;
16879 esac
16880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881 (eval "$ac_link") 2>&5
16882 ac_status=$?
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16885 { (case "(($ac_try" in
16886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16887 *) ac_try_echo=$ac_try;;
16888 esac
16889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16890 (eval "$ac_try") 2>&5
16891 ac_status=$?
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); }; }; then
16894 ac_cv_huge_val_sanity=yes
16895 else
16896 echo "$as_me: program exited with status $ac_status" >&5
16897 echo "$as_me: failed program was:" >&5
16898 sed 's/^/| /' conftest.$ac_ext >&5
16900 ( exit $ac_status )
16901 ac_cv_huge_val_sanity=no
16903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16907 CXXFLAGS=$ac_save_CXXFLAGS
16908 ac_ext=c
16909 ac_cpp='$CPP $CPPFLAGS'
16910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16916 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16917 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16918 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16921 { echo "$as_me:$LINENO: checking for pid_t" >&5
16922 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16923 if test "${ac_cv_type_pid_t+set}" = set; then
16924 echo $ECHO_N "(cached) $ECHO_C" >&6
16925 else
16926 cat >conftest.$ac_ext <<_ACEOF
16927 /* confdefs.h. */
16928 _ACEOF
16929 cat confdefs.h >>conftest.$ac_ext
16930 cat >>conftest.$ac_ext <<_ACEOF
16931 /* end confdefs.h. */
16932 $ac_includes_default
16933 typedef pid_t ac__type_new_;
16935 main ()
16937 if ((ac__type_new_ *) 0)
16938 return 0;
16939 if (sizeof (ac__type_new_))
16940 return 0;
16942 return 0;
16944 _ACEOF
16945 rm -f conftest.$ac_objext
16946 if { (ac_try="$ac_compile"
16947 case "(($ac_try" in
16948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949 *) ac_try_echo=$ac_try;;
16950 esac
16951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952 (eval "$ac_compile") 2>conftest.er1
16953 ac_status=$?
16954 grep -v '^ *+' conftest.er1 >conftest.err
16955 rm -f conftest.er1
16956 cat conftest.err >&5
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); } &&
16959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16960 { (case "(($ac_try" in
16961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16962 *) ac_try_echo=$ac_try;;
16963 esac
16964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16965 (eval "$ac_try") 2>&5
16966 ac_status=$?
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); }; } &&
16969 { ac_try='test -s conftest.$ac_objext'
16970 { (case "(($ac_try" in
16971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16972 *) ac_try_echo=$ac_try;;
16973 esac
16974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16975 (eval "$ac_try") 2>&5
16976 ac_status=$?
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); }; }; then
16979 ac_cv_type_pid_t=yes
16980 else
16981 echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.$ac_ext >&5
16984 ac_cv_type_pid_t=no
16987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16989 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16990 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16991 if test $ac_cv_type_pid_t = yes; then
16993 else
16995 cat >>confdefs.h <<_ACEOF
16996 #define pid_t int
16997 _ACEOF
17001 { echo "$as_me:$LINENO: checking for size_t" >&5
17002 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17003 if test "${ac_cv_type_size_t+set}" = set; then
17004 echo $ECHO_N "(cached) $ECHO_C" >&6
17005 else
17006 cat >conftest.$ac_ext <<_ACEOF
17007 /* confdefs.h. */
17008 _ACEOF
17009 cat confdefs.h >>conftest.$ac_ext
17010 cat >>conftest.$ac_ext <<_ACEOF
17011 /* end confdefs.h. */
17012 $ac_includes_default
17013 typedef size_t ac__type_new_;
17015 main ()
17017 if ((ac__type_new_ *) 0)
17018 return 0;
17019 if (sizeof (ac__type_new_))
17020 return 0;
17022 return 0;
17024 _ACEOF
17025 rm -f conftest.$ac_objext
17026 if { (ac_try="$ac_compile"
17027 case "(($ac_try" in
17028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029 *) ac_try_echo=$ac_try;;
17030 esac
17031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032 (eval "$ac_compile") 2>conftest.er1
17033 ac_status=$?
17034 grep -v '^ *+' conftest.er1 >conftest.err
17035 rm -f conftest.er1
17036 cat conftest.err >&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); } &&
17039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17040 { (case "(($ac_try" in
17041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17042 *) ac_try_echo=$ac_try;;
17043 esac
17044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17045 (eval "$ac_try") 2>&5
17046 ac_status=$?
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; } &&
17049 { ac_try='test -s conftest.$ac_objext'
17050 { (case "(($ac_try" in
17051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17052 *) ac_try_echo=$ac_try;;
17053 esac
17054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17055 (eval "$ac_try") 2>&5
17056 ac_status=$?
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); }; }; then
17059 ac_cv_type_size_t=yes
17060 else
17061 echo "$as_me: failed program was:" >&5
17062 sed 's/^/| /' conftest.$ac_ext >&5
17064 ac_cv_type_size_t=no
17067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17069 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17070 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17071 if test $ac_cv_type_size_t = yes; then
17073 else
17075 cat >>confdefs.h <<_ACEOF
17076 #define size_t unsigned int
17077 _ACEOF
17082 cat >>confdefs.h <<_ACEOF
17083 #define RETSIGTYPE void
17084 _ACEOF
17086 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17087 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17088 if test "${ac_cv_struct_tm+set}" = set; then
17089 echo $ECHO_N "(cached) $ECHO_C" >&6
17090 else
17091 cat >conftest.$ac_ext <<_ACEOF
17092 /* confdefs.h. */
17093 _ACEOF
17094 cat confdefs.h >>conftest.$ac_ext
17095 cat >>conftest.$ac_ext <<_ACEOF
17096 /* end confdefs.h. */
17097 #include <sys/types.h>
17098 #include <time.h>
17101 main ()
17103 struct tm *tp; tp->tm_sec;
17105 return 0;
17107 _ACEOF
17108 rm -f conftest.$ac_objext
17109 if { (ac_try="$ac_compile"
17110 case "(($ac_try" in
17111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17112 *) ac_try_echo=$ac_try;;
17113 esac
17114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17115 (eval "$ac_compile") 2>conftest.er1
17116 ac_status=$?
17117 grep -v '^ *+' conftest.er1 >conftest.err
17118 rm -f conftest.er1
17119 cat conftest.err >&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } &&
17122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17123 { (case "(($ac_try" in
17124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125 *) ac_try_echo=$ac_try;;
17126 esac
17127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17128 (eval "$ac_try") 2>&5
17129 ac_status=$?
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; } &&
17132 { ac_try='test -s conftest.$ac_objext'
17133 { (case "(($ac_try" in
17134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17135 *) ac_try_echo=$ac_try;;
17136 esac
17137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17138 (eval "$ac_try") 2>&5
17139 ac_status=$?
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); }; }; then
17142 ac_cv_struct_tm=time.h
17143 else
17144 echo "$as_me: failed program was:" >&5
17145 sed 's/^/| /' conftest.$ac_ext >&5
17147 ac_cv_struct_tm=sys/time.h
17150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17152 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17153 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17154 if test $ac_cv_struct_tm = sys/time.h; then
17156 cat >>confdefs.h <<\_ACEOF
17157 #define TM_IN_SYS_TIME 1
17158 _ACEOF
17162 { echo "$as_me:$LINENO: checking for int64_t" >&5
17163 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17164 if test "${ac_cv_type_int64_t+set}" = set; then
17165 echo $ECHO_N "(cached) $ECHO_C" >&6
17166 else
17167 cat >conftest.$ac_ext <<_ACEOF
17168 /* confdefs.h. */
17169 _ACEOF
17170 cat confdefs.h >>conftest.$ac_ext
17171 cat >>conftest.$ac_ext <<_ACEOF
17172 /* end confdefs.h. */
17173 $ac_includes_default
17174 typedef int64_t ac__type_new_;
17176 main ()
17178 if ((ac__type_new_ *) 0)
17179 return 0;
17180 if (sizeof (ac__type_new_))
17181 return 0;
17183 return 0;
17185 _ACEOF
17186 rm -f conftest.$ac_objext
17187 if { (ac_try="$ac_compile"
17188 case "(($ac_try" in
17189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17190 *) ac_try_echo=$ac_try;;
17191 esac
17192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17193 (eval "$ac_compile") 2>conftest.er1
17194 ac_status=$?
17195 grep -v '^ *+' conftest.er1 >conftest.err
17196 rm -f conftest.er1
17197 cat conftest.err >&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); } &&
17200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17201 { (case "(($ac_try" in
17202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17203 *) ac_try_echo=$ac_try;;
17204 esac
17205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17206 (eval "$ac_try") 2>&5
17207 ac_status=$?
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); }; } &&
17210 { ac_try='test -s conftest.$ac_objext'
17211 { (case "(($ac_try" in
17212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213 *) ac_try_echo=$ac_try;;
17214 esac
17215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17216 (eval "$ac_try") 2>&5
17217 ac_status=$?
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); }; }; then
17220 ac_cv_type_int64_t=yes
17221 else
17222 echo "$as_me: failed program was:" >&5
17223 sed 's/^/| /' conftest.$ac_ext >&5
17225 ac_cv_type_int64_t=no
17228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17230 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17231 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17232 if test $ac_cv_type_int64_t = yes; then
17234 cat >>confdefs.h <<_ACEOF
17235 #define HAVE_INT64_T 1
17236 _ACEOF
17239 else
17240 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17241 echo "$as_me: error: Type int64_t required but not found" >&2;}
17242 { (exit 1); exit 1; }; }
17245 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17246 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17247 if test "${ac_cv_type_uint64_t+set}" = set; then
17248 echo $ECHO_N "(cached) $ECHO_C" >&6
17249 else
17250 cat >conftest.$ac_ext <<_ACEOF
17251 /* confdefs.h. */
17252 _ACEOF
17253 cat confdefs.h >>conftest.$ac_ext
17254 cat >>conftest.$ac_ext <<_ACEOF
17255 /* end confdefs.h. */
17256 $ac_includes_default
17257 typedef uint64_t ac__type_new_;
17259 main ()
17261 if ((ac__type_new_ *) 0)
17262 return 0;
17263 if (sizeof (ac__type_new_))
17264 return 0;
17266 return 0;
17268 _ACEOF
17269 rm -f conftest.$ac_objext
17270 if { (ac_try="$ac_compile"
17271 case "(($ac_try" in
17272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17273 *) ac_try_echo=$ac_try;;
17274 esac
17275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17276 (eval "$ac_compile") 2>conftest.er1
17277 ac_status=$?
17278 grep -v '^ *+' conftest.er1 >conftest.err
17279 rm -f conftest.er1
17280 cat conftest.err >&5
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); } &&
17283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17284 { (case "(($ac_try" in
17285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286 *) ac_try_echo=$ac_try;;
17287 esac
17288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17289 (eval "$ac_try") 2>&5
17290 ac_status=$?
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); }; } &&
17293 { ac_try='test -s conftest.$ac_objext'
17294 { (case "(($ac_try" in
17295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296 *) ac_try_echo=$ac_try;;
17297 esac
17298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17299 (eval "$ac_try") 2>&5
17300 ac_status=$?
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; }; then
17303 ac_cv_type_uint64_t=yes
17304 else
17305 echo "$as_me: failed program was:" >&5
17306 sed 's/^/| /' conftest.$ac_ext >&5
17308 ac_cv_type_uint64_t=no
17311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17313 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17314 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17315 if test $ac_cv_type_uint64_t = yes; then
17317 cat >>confdefs.h <<_ACEOF
17318 #define HAVE_UINT64_T 1
17319 _ACEOF
17322 else
17323 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17324 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17325 if test "${ac_cv_type_u_int64_t+set}" = set; then
17326 echo $ECHO_N "(cached) $ECHO_C" >&6
17327 else
17328 cat >conftest.$ac_ext <<_ACEOF
17329 /* confdefs.h. */
17330 _ACEOF
17331 cat confdefs.h >>conftest.$ac_ext
17332 cat >>conftest.$ac_ext <<_ACEOF
17333 /* end confdefs.h. */
17334 $ac_includes_default
17335 typedef u_int64_t ac__type_new_;
17337 main ()
17339 if ((ac__type_new_ *) 0)
17340 return 0;
17341 if (sizeof (ac__type_new_))
17342 return 0;
17344 return 0;
17346 _ACEOF
17347 rm -f conftest.$ac_objext
17348 if { (ac_try="$ac_compile"
17349 case "(($ac_try" in
17350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351 *) ac_try_echo=$ac_try;;
17352 esac
17353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354 (eval "$ac_compile") 2>conftest.er1
17355 ac_status=$?
17356 grep -v '^ *+' conftest.er1 >conftest.err
17357 rm -f conftest.er1
17358 cat conftest.err >&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } &&
17361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17362 { (case "(($ac_try" in
17363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364 *) ac_try_echo=$ac_try;;
17365 esac
17366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17367 (eval "$ac_try") 2>&5
17368 ac_status=$?
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); }; } &&
17371 { ac_try='test -s conftest.$ac_objext'
17372 { (case "(($ac_try" in
17373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17374 *) ac_try_echo=$ac_try;;
17375 esac
17376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17377 (eval "$ac_try") 2>&5
17378 ac_status=$?
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; }; then
17381 ac_cv_type_u_int64_t=yes
17382 else
17383 echo "$as_me: failed program was:" >&5
17384 sed 's/^/| /' conftest.$ac_ext >&5
17386 ac_cv_type_u_int64_t=no
17389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17391 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17392 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17393 if test $ac_cv_type_u_int64_t = yes; then
17395 cat >>confdefs.h <<_ACEOF
17396 #define HAVE_U_INT64_T 1
17397 _ACEOF
17400 else
17401 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17402 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17403 { (exit 1); exit 1; }; }
17417 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17420 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17423 echo $ECHO_N "(cached) $ECHO_C" >&6
17424 else
17425 cat >conftest.$ac_ext <<_ACEOF
17426 /* confdefs.h. */
17427 _ACEOF
17428 cat confdefs.h >>conftest.$ac_ext
17429 cat >>conftest.$ac_ext <<_ACEOF
17430 /* end confdefs.h. */
17431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17433 #define $ac_func innocuous_$ac_func
17435 /* System header to define __stub macros and hopefully few prototypes,
17436 which can conflict with char $ac_func (); below.
17437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17438 <limits.h> exists even on freestanding compilers. */
17440 #ifdef __STDC__
17441 # include <limits.h>
17442 #else
17443 # include <assert.h>
17444 #endif
17446 #undef $ac_func
17448 /* Override any GCC internal prototype to avoid an error.
17449 Use char because int might match the return type of a GCC
17450 builtin and then its argument prototype would still apply. */
17451 #ifdef __cplusplus
17452 extern "C"
17453 #endif
17454 char $ac_func ();
17455 /* The GNU C library defines this for functions which it implements
17456 to always fail with ENOSYS. Some functions are actually named
17457 something starting with __ and the normal name is an alias. */
17458 #if defined __stub_$ac_func || defined __stub___$ac_func
17459 choke me
17460 #endif
17463 main ()
17465 return $ac_func ();
17467 return 0;
17469 _ACEOF
17470 rm -f conftest.$ac_objext conftest$ac_exeext
17471 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
17478 ac_status=$?
17479 grep -v '^ *+' conftest.er1 >conftest.err
17480 rm -f conftest.er1
17481 cat conftest.err >&5
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); } &&
17484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17485 { (case "(($ac_try" in
17486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17487 *) ac_try_echo=$ac_try;;
17488 esac
17489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17490 (eval "$ac_try") 2>&5
17491 ac_status=$?
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); }; } &&
17494 { ac_try='test -s conftest$ac_exeext'
17495 { (case "(($ac_try" in
17496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497 *) ac_try_echo=$ac_try;;
17498 esac
17499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500 (eval "$ac_try") 2>&5
17501 ac_status=$?
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; }; then
17504 eval "$as_ac_var=yes"
17505 else
17506 echo "$as_me: failed program was:" >&5
17507 sed 's/^/| /' conftest.$ac_ext >&5
17509 eval "$as_ac_var=no"
17512 rm -f core conftest.err conftest.$ac_objext \
17513 conftest$ac_exeext conftest.$ac_ext
17515 ac_res=`eval echo '${'$as_ac_var'}'`
17516 { echo "$as_me:$LINENO: result: $ac_res" >&5
17517 echo "${ECHO_T}$ac_res" >&6; }
17518 if test `eval echo '${'$as_ac_var'}'` = yes; then
17519 cat >>confdefs.h <<_ACEOF
17520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17521 _ACEOF
17524 done
17530 for ac_func in powf fmodf strtof round
17532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17533 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17535 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17536 echo $ECHO_N "(cached) $ECHO_C" >&6
17537 else
17538 cat >conftest.$ac_ext <<_ACEOF
17539 /* confdefs.h. */
17540 _ACEOF
17541 cat confdefs.h >>conftest.$ac_ext
17542 cat >>conftest.$ac_ext <<_ACEOF
17543 /* end confdefs.h. */
17544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17546 #define $ac_func innocuous_$ac_func
17548 /* System header to define __stub macros and hopefully few prototypes,
17549 which can conflict with char $ac_func (); below.
17550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17551 <limits.h> exists even on freestanding compilers. */
17553 #ifdef __STDC__
17554 # include <limits.h>
17555 #else
17556 # include <assert.h>
17557 #endif
17559 #undef $ac_func
17561 /* Override any GCC internal prototype to avoid an error.
17562 Use char because int might match the return type of a GCC
17563 builtin and then its argument prototype would still apply. */
17564 #ifdef __cplusplus
17565 extern "C"
17566 #endif
17567 char $ac_func ();
17568 /* The GNU C library defines this for functions which it implements
17569 to always fail with ENOSYS. Some functions are actually named
17570 something starting with __ and the normal name is an alias. */
17571 #if defined __stub_$ac_func || defined __stub___$ac_func
17572 choke me
17573 #endif
17576 main ()
17578 return $ac_func ();
17580 return 0;
17582 _ACEOF
17583 rm -f conftest.$ac_objext conftest$ac_exeext
17584 if { (ac_try="$ac_link"
17585 case "(($ac_try" in
17586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587 *) ac_try_echo=$ac_try;;
17588 esac
17589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17590 (eval "$ac_link") 2>conftest.er1
17591 ac_status=$?
17592 grep -v '^ *+' conftest.er1 >conftest.err
17593 rm -f conftest.er1
17594 cat conftest.err >&5
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); } &&
17597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17598 { (case "(($ac_try" in
17599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600 *) ac_try_echo=$ac_try;;
17601 esac
17602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17603 (eval "$ac_try") 2>&5
17604 ac_status=$?
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); }; } &&
17607 { ac_try='test -s conftest$ac_exeext'
17608 { (case "(($ac_try" in
17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610 *) ac_try_echo=$ac_try;;
17611 esac
17612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613 (eval "$ac_try") 2>&5
17614 ac_status=$?
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); }; }; then
17617 eval "$as_ac_var=yes"
17618 else
17619 echo "$as_me: failed program was:" >&5
17620 sed 's/^/| /' conftest.$ac_ext >&5
17622 eval "$as_ac_var=no"
17625 rm -f core conftest.err conftest.$ac_objext \
17626 conftest$ac_exeext conftest.$ac_ext
17628 ac_res=`eval echo '${'$as_ac_var'}'`
17629 { echo "$as_me:$LINENO: result: $ac_res" >&5
17630 echo "${ECHO_T}$ac_res" >&6; }
17631 if test `eval echo '${'$as_ac_var'}'` = yes; then
17632 cat >>confdefs.h <<_ACEOF
17633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17634 _ACEOF
17637 done
17644 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17647 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17649 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17650 echo $ECHO_N "(cached) $ECHO_C" >&6
17651 else
17652 cat >conftest.$ac_ext <<_ACEOF
17653 /* confdefs.h. */
17654 _ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h. */
17658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17660 #define $ac_func innocuous_$ac_func
17662 /* System header to define __stub macros and hopefully few prototypes,
17663 which can conflict with char $ac_func (); below.
17664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17665 <limits.h> exists even on freestanding compilers. */
17667 #ifdef __STDC__
17668 # include <limits.h>
17669 #else
17670 # include <assert.h>
17671 #endif
17673 #undef $ac_func
17675 /* Override any GCC internal prototype to avoid an error.
17676 Use char because int might match the return type of a GCC
17677 builtin and then its argument prototype would still apply. */
17678 #ifdef __cplusplus
17679 extern "C"
17680 #endif
17681 char $ac_func ();
17682 /* The GNU C library defines this for functions which it implements
17683 to always fail with ENOSYS. Some functions are actually named
17684 something starting with __ and the normal name is an alias. */
17685 #if defined __stub_$ac_func || defined __stub___$ac_func
17686 choke me
17687 #endif
17690 main ()
17692 return $ac_func ();
17694 return 0;
17696 _ACEOF
17697 rm -f conftest.$ac_objext conftest$ac_exeext
17698 if { (ac_try="$ac_link"
17699 case "(($ac_try" in
17700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17701 *) ac_try_echo=$ac_try;;
17702 esac
17703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17704 (eval "$ac_link") 2>conftest.er1
17705 ac_status=$?
17706 grep -v '^ *+' conftest.er1 >conftest.err
17707 rm -f conftest.er1
17708 cat conftest.err >&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); } &&
17711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17712 { (case "(($ac_try" in
17713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17714 *) ac_try_echo=$ac_try;;
17715 esac
17716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17717 (eval "$ac_try") 2>&5
17718 ac_status=$?
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; } &&
17721 { ac_try='test -s conftest$ac_exeext'
17722 { (case "(($ac_try" in
17723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724 *) ac_try_echo=$ac_try;;
17725 esac
17726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17727 (eval "$ac_try") 2>&5
17728 ac_status=$?
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); }; }; then
17731 eval "$as_ac_var=yes"
17732 else
17733 echo "$as_me: failed program was:" >&5
17734 sed 's/^/| /' conftest.$ac_ext >&5
17736 eval "$as_ac_var=no"
17739 rm -f core conftest.err conftest.$ac_objext \
17740 conftest$ac_exeext conftest.$ac_ext
17742 ac_res=`eval echo '${'$as_ac_var'}'`
17743 { echo "$as_me:$LINENO: result: $ac_res" >&5
17744 echo "${ECHO_T}$ac_res" >&6; }
17745 if test `eval echo '${'$as_ac_var'}'` = yes; then
17746 cat >>confdefs.h <<_ACEOF
17747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17748 _ACEOF
17751 done
17756 for ac_func in isatty mkdtemp mkstemp
17758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17759 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17761 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17762 echo $ECHO_N "(cached) $ECHO_C" >&6
17763 else
17764 cat >conftest.$ac_ext <<_ACEOF
17765 /* confdefs.h. */
17766 _ACEOF
17767 cat confdefs.h >>conftest.$ac_ext
17768 cat >>conftest.$ac_ext <<_ACEOF
17769 /* end confdefs.h. */
17770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17772 #define $ac_func innocuous_$ac_func
17774 /* System header to define __stub macros and hopefully few prototypes,
17775 which can conflict with char $ac_func (); below.
17776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17777 <limits.h> exists even on freestanding compilers. */
17779 #ifdef __STDC__
17780 # include <limits.h>
17781 #else
17782 # include <assert.h>
17783 #endif
17785 #undef $ac_func
17787 /* Override any GCC internal prototype to avoid an error.
17788 Use char because int might match the return type of a GCC
17789 builtin and then its argument prototype would still apply. */
17790 #ifdef __cplusplus
17791 extern "C"
17792 #endif
17793 char $ac_func ();
17794 /* The GNU C library defines this for functions which it implements
17795 to always fail with ENOSYS. Some functions are actually named
17796 something starting with __ and the normal name is an alias. */
17797 #if defined __stub_$ac_func || defined __stub___$ac_func
17798 choke me
17799 #endif
17802 main ()
17804 return $ac_func ();
17806 return 0;
17808 _ACEOF
17809 rm -f conftest.$ac_objext conftest$ac_exeext
17810 if { (ac_try="$ac_link"
17811 case "(($ac_try" in
17812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17813 *) ac_try_echo=$ac_try;;
17814 esac
17815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17816 (eval "$ac_link") 2>conftest.er1
17817 ac_status=$?
17818 grep -v '^ *+' conftest.er1 >conftest.err
17819 rm -f conftest.er1
17820 cat conftest.err >&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } &&
17823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17824 { (case "(($ac_try" in
17825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826 *) ac_try_echo=$ac_try;;
17827 esac
17828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17829 (eval "$ac_try") 2>&5
17830 ac_status=$?
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; } &&
17833 { ac_try='test -s conftest$ac_exeext'
17834 { (case "(($ac_try" in
17835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836 *) ac_try_echo=$ac_try;;
17837 esac
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839 (eval "$ac_try") 2>&5
17840 ac_status=$?
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); }; }; then
17843 eval "$as_ac_var=yes"
17844 else
17845 echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17848 eval "$as_ac_var=no"
17851 rm -f core conftest.err conftest.$ac_objext \
17852 conftest$ac_exeext conftest.$ac_ext
17854 ac_res=`eval echo '${'$as_ac_var'}'`
17855 { echo "$as_me:$LINENO: result: $ac_res" >&5
17856 echo "${ECHO_T}$ac_res" >&6; }
17857 if test `eval echo '${'$as_ac_var'}'` = yes; then
17858 cat >>confdefs.h <<_ACEOF
17859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17860 _ACEOF
17863 done
17871 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17874 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17876 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17877 echo $ECHO_N "(cached) $ECHO_C" >&6
17878 else
17879 cat >conftest.$ac_ext <<_ACEOF
17880 /* confdefs.h. */
17881 _ACEOF
17882 cat confdefs.h >>conftest.$ac_ext
17883 cat >>conftest.$ac_ext <<_ACEOF
17884 /* end confdefs.h. */
17885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17887 #define $ac_func innocuous_$ac_func
17889 /* System header to define __stub macros and hopefully few prototypes,
17890 which can conflict with char $ac_func (); below.
17891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17892 <limits.h> exists even on freestanding compilers. */
17894 #ifdef __STDC__
17895 # include <limits.h>
17896 #else
17897 # include <assert.h>
17898 #endif
17900 #undef $ac_func
17902 /* Override any GCC internal prototype to avoid an error.
17903 Use char because int might match the return type of a GCC
17904 builtin and then its argument prototype would still apply. */
17905 #ifdef __cplusplus
17906 extern "C"
17907 #endif
17908 char $ac_func ();
17909 /* The GNU C library defines this for functions which it implements
17910 to always fail with ENOSYS. Some functions are actually named
17911 something starting with __ and the normal name is an alias. */
17912 #if defined __stub_$ac_func || defined __stub___$ac_func
17913 choke me
17914 #endif
17917 main ()
17919 return $ac_func ();
17921 return 0;
17923 _ACEOF
17924 rm -f conftest.$ac_objext conftest$ac_exeext
17925 if { (ac_try="$ac_link"
17926 case "(($ac_try" in
17927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928 *) ac_try_echo=$ac_try;;
17929 esac
17930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17931 (eval "$ac_link") 2>conftest.er1
17932 ac_status=$?
17933 grep -v '^ *+' conftest.er1 >conftest.err
17934 rm -f conftest.er1
17935 cat conftest.err >&5
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); } &&
17938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17939 { (case "(($ac_try" in
17940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17941 *) ac_try_echo=$ac_try;;
17942 esac
17943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17944 (eval "$ac_try") 2>&5
17945 ac_status=$?
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; } &&
17948 { ac_try='test -s conftest$ac_exeext'
17949 { (case "(($ac_try" in
17950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17951 *) ac_try_echo=$ac_try;;
17952 esac
17953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17954 (eval "$ac_try") 2>&5
17955 ac_status=$?
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); }; }; then
17958 eval "$as_ac_var=yes"
17959 else
17960 echo "$as_me: failed program was:" >&5
17961 sed 's/^/| /' conftest.$ac_ext >&5
17963 eval "$as_ac_var=no"
17966 rm -f core conftest.err conftest.$ac_objext \
17967 conftest$ac_exeext conftest.$ac_ext
17969 ac_res=`eval echo '${'$as_ac_var'}'`
17970 { echo "$as_me:$LINENO: result: $ac_res" >&5
17971 echo "${ECHO_T}$ac_res" >&6; }
17972 if test `eval echo '${'$as_ac_var'}'` = yes; then
17973 cat >>confdefs.h <<_ACEOF
17974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17975 _ACEOF
17978 done
17984 for ac_func in strerror strerror_r strerror_s setenv
17986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17987 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17989 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17990 echo $ECHO_N "(cached) $ECHO_C" >&6
17991 else
17992 cat >conftest.$ac_ext <<_ACEOF
17993 /* confdefs.h. */
17994 _ACEOF
17995 cat confdefs.h >>conftest.$ac_ext
17996 cat >>conftest.$ac_ext <<_ACEOF
17997 /* end confdefs.h. */
17998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18000 #define $ac_func innocuous_$ac_func
18002 /* System header to define __stub macros and hopefully few prototypes,
18003 which can conflict with char $ac_func (); below.
18004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18005 <limits.h> exists even on freestanding compilers. */
18007 #ifdef __STDC__
18008 # include <limits.h>
18009 #else
18010 # include <assert.h>
18011 #endif
18013 #undef $ac_func
18015 /* Override any GCC internal prototype to avoid an error.
18016 Use char because int might match the return type of a GCC
18017 builtin and then its argument prototype would still apply. */
18018 #ifdef __cplusplus
18019 extern "C"
18020 #endif
18021 char $ac_func ();
18022 /* The GNU C library defines this for functions which it implements
18023 to always fail with ENOSYS. Some functions are actually named
18024 something starting with __ and the normal name is an alias. */
18025 #if defined __stub_$ac_func || defined __stub___$ac_func
18026 choke me
18027 #endif
18030 main ()
18032 return $ac_func ();
18034 return 0;
18036 _ACEOF
18037 rm -f conftest.$ac_objext conftest$ac_exeext
18038 if { (ac_try="$ac_link"
18039 case "(($ac_try" in
18040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18041 *) ac_try_echo=$ac_try;;
18042 esac
18043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18044 (eval "$ac_link") 2>conftest.er1
18045 ac_status=$?
18046 grep -v '^ *+' conftest.er1 >conftest.err
18047 rm -f conftest.er1
18048 cat conftest.err >&5
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); } &&
18051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18052 { (case "(($ac_try" in
18053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18054 *) ac_try_echo=$ac_try;;
18055 esac
18056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18057 (eval "$ac_try") 2>&5
18058 ac_status=$?
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); }; } &&
18061 { ac_try='test -s conftest$ac_exeext'
18062 { (case "(($ac_try" in
18063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18064 *) ac_try_echo=$ac_try;;
18065 esac
18066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18067 (eval "$ac_try") 2>&5
18068 ac_status=$?
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); }; }; then
18071 eval "$as_ac_var=yes"
18072 else
18073 echo "$as_me: failed program was:" >&5
18074 sed 's/^/| /' conftest.$ac_ext >&5
18076 eval "$as_ac_var=no"
18079 rm -f core conftest.err conftest.$ac_objext \
18080 conftest$ac_exeext conftest.$ac_ext
18082 ac_res=`eval echo '${'$as_ac_var'}'`
18083 { echo "$as_me:$LINENO: result: $ac_res" >&5
18084 echo "${ECHO_T}$ac_res" >&6; }
18085 if test `eval echo '${'$as_ac_var'}'` = yes; then
18086 cat >>confdefs.h <<_ACEOF
18087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18088 _ACEOF
18091 done
18097 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18100 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18102 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18103 echo $ECHO_N "(cached) $ECHO_C" >&6
18104 else
18105 cat >conftest.$ac_ext <<_ACEOF
18106 /* confdefs.h. */
18107 _ACEOF
18108 cat confdefs.h >>conftest.$ac_ext
18109 cat >>conftest.$ac_ext <<_ACEOF
18110 /* end confdefs.h. */
18111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18113 #define $ac_func innocuous_$ac_func
18115 /* System header to define __stub macros and hopefully few prototypes,
18116 which can conflict with char $ac_func (); below.
18117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18118 <limits.h> exists even on freestanding compilers. */
18120 #ifdef __STDC__
18121 # include <limits.h>
18122 #else
18123 # include <assert.h>
18124 #endif
18126 #undef $ac_func
18128 /* Override any GCC internal prototype to avoid an error.
18129 Use char because int might match the return type of a GCC
18130 builtin and then its argument prototype would still apply. */
18131 #ifdef __cplusplus
18132 extern "C"
18133 #endif
18134 char $ac_func ();
18135 /* The GNU C library defines this for functions which it implements
18136 to always fail with ENOSYS. Some functions are actually named
18137 something starting with __ and the normal name is an alias. */
18138 #if defined __stub_$ac_func || defined __stub___$ac_func
18139 choke me
18140 #endif
18143 main ()
18145 return $ac_func ();
18147 return 0;
18149 _ACEOF
18150 rm -f conftest.$ac_objext conftest$ac_exeext
18151 if { (ac_try="$ac_link"
18152 case "(($ac_try" in
18153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18154 *) ac_try_echo=$ac_try;;
18155 esac
18156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18157 (eval "$ac_link") 2>conftest.er1
18158 ac_status=$?
18159 grep -v '^ *+' conftest.er1 >conftest.err
18160 rm -f conftest.er1
18161 cat conftest.err >&5
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); } &&
18164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18165 { (case "(($ac_try" in
18166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18167 *) ac_try_echo=$ac_try;;
18168 esac
18169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18170 (eval "$ac_try") 2>&5
18171 ac_status=$?
18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173 (exit $ac_status); }; } &&
18174 { ac_try='test -s conftest$ac_exeext'
18175 { (case "(($ac_try" in
18176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18177 *) ac_try_echo=$ac_try;;
18178 esac
18179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18180 (eval "$ac_try") 2>&5
18181 ac_status=$?
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); }; }; then
18184 eval "$as_ac_var=yes"
18185 else
18186 echo "$as_me: failed program was:" >&5
18187 sed 's/^/| /' conftest.$ac_ext >&5
18189 eval "$as_ac_var=no"
18192 rm -f core conftest.err conftest.$ac_objext \
18193 conftest$ac_exeext conftest.$ac_ext
18195 ac_res=`eval echo '${'$as_ac_var'}'`
18196 { echo "$as_me:$LINENO: result: $ac_res" >&5
18197 echo "${ECHO_T}$ac_res" >&6; }
18198 if test `eval echo '${'$as_ac_var'}'` = yes; then
18199 cat >>confdefs.h <<_ACEOF
18200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18201 _ACEOF
18204 done
18210 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18213 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18215 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18216 echo $ECHO_N "(cached) $ECHO_C" >&6
18217 else
18218 cat >conftest.$ac_ext <<_ACEOF
18219 /* confdefs.h. */
18220 _ACEOF
18221 cat confdefs.h >>conftest.$ac_ext
18222 cat >>conftest.$ac_ext <<_ACEOF
18223 /* end confdefs.h. */
18224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18226 #define $ac_func innocuous_$ac_func
18228 /* System header to define __stub macros and hopefully few prototypes,
18229 which can conflict with char $ac_func (); below.
18230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18231 <limits.h> exists even on freestanding compilers. */
18233 #ifdef __STDC__
18234 # include <limits.h>
18235 #else
18236 # include <assert.h>
18237 #endif
18239 #undef $ac_func
18241 /* Override any GCC internal prototype to avoid an error.
18242 Use char because int might match the return type of a GCC
18243 builtin and then its argument prototype would still apply. */
18244 #ifdef __cplusplus
18245 extern "C"
18246 #endif
18247 char $ac_func ();
18248 /* The GNU C library defines this for functions which it implements
18249 to always fail with ENOSYS. Some functions are actually named
18250 something starting with __ and the normal name is an alias. */
18251 #if defined __stub_$ac_func || defined __stub___$ac_func
18252 choke me
18253 #endif
18256 main ()
18258 return $ac_func ();
18260 return 0;
18262 _ACEOF
18263 rm -f conftest.$ac_objext conftest$ac_exeext
18264 if { (ac_try="$ac_link"
18265 case "(($ac_try" in
18266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267 *) ac_try_echo=$ac_try;;
18268 esac
18269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18270 (eval "$ac_link") 2>conftest.er1
18271 ac_status=$?
18272 grep -v '^ *+' conftest.er1 >conftest.err
18273 rm -f conftest.er1
18274 cat conftest.err >&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } &&
18277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18278 { (case "(($ac_try" in
18279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18280 *) ac_try_echo=$ac_try;;
18281 esac
18282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18283 (eval "$ac_try") 2>&5
18284 ac_status=$?
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; } &&
18287 { ac_try='test -s conftest$ac_exeext'
18288 { (case "(($ac_try" in
18289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290 *) ac_try_echo=$ac_try;;
18291 esac
18292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293 (eval "$ac_try") 2>&5
18294 ac_status=$?
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; }; then
18297 eval "$as_ac_var=yes"
18298 else
18299 echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18302 eval "$as_ac_var=no"
18305 rm -f core conftest.err conftest.$ac_objext \
18306 conftest$ac_exeext conftest.$ac_ext
18308 ac_res=`eval echo '${'$as_ac_var'}'`
18309 { echo "$as_me:$LINENO: result: $ac_res" >&5
18310 echo "${ECHO_T}$ac_res" >&6; }
18311 if test `eval echo '${'$as_ac_var'}'` = yes; then
18312 cat >>confdefs.h <<_ACEOF
18313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18314 _ACEOF
18317 done
18319 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18320 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18321 if test "${llvm_cv_c_printf_a+set}" = set; then
18322 echo $ECHO_N "(cached) $ECHO_C" >&6
18323 else
18324 ac_ext=c
18325 ac_cpp='$CPP $CPPFLAGS'
18326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18330 if test "$cross_compiling" = yes; then
18331 llvmac_cv_c_printf_a=no
18332 else
18333 cat >conftest.$ac_ext <<_ACEOF
18335 /* confdefs.h. */
18336 _ACEOF
18337 cat confdefs.h >>conftest.$ac_ext
18338 cat >>conftest.$ac_ext <<_ACEOF
18339 /* end confdefs.h. */
18341 #include <stdio.h>
18342 #include <stdlib.h>
18345 main ()
18348 volatile double A, B;
18349 char Buffer[100];
18350 A = 1;
18351 A /= 10.0;
18352 sprintf(Buffer, "%a", A);
18353 B = atof(Buffer);
18354 if (A != B)
18355 return (1);
18356 if (A != 0x1.999999999999ap-4)
18357 return (1);
18358 return (0);
18360 return 0;
18362 _ACEOF
18363 rm -f conftest$ac_exeext
18364 if { (ac_try="$ac_link"
18365 case "(($ac_try" in
18366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18367 *) ac_try_echo=$ac_try;;
18368 esac
18369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18370 (eval "$ac_link") 2>&5
18371 ac_status=$?
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18374 { (case "(($ac_try" in
18375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18376 *) ac_try_echo=$ac_try;;
18377 esac
18378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18379 (eval "$ac_try") 2>&5
18380 ac_status=$?
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); }; }; then
18383 llvm_cv_c_printf_a=yes
18384 else
18385 echo "$as_me: program exited with status $ac_status" >&5
18386 echo "$as_me: failed program was:" >&5
18387 sed 's/^/| /' conftest.$ac_ext >&5
18389 ( exit $ac_status )
18390 llvmac_cv_c_printf_a=no
18392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18396 ac_ext=c
18397 ac_cpp='$CPP $CPPFLAGS'
18398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18403 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18404 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18405 if test "$llvm_cv_c_printf_a" = "yes"; then
18407 cat >>confdefs.h <<\_ACEOF
18408 #define HAVE_PRINTF_A 1
18409 _ACEOF
18414 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18415 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18416 if test "${ac_cv_func_rand48+set}" = set; then
18417 echo $ECHO_N "(cached) $ECHO_C" >&6
18418 else
18419 ac_ext=cpp
18420 ac_cpp='$CXXCPP $CPPFLAGS'
18421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18425 cat >conftest.$ac_ext <<_ACEOF
18426 /* confdefs.h. */
18427 _ACEOF
18428 cat confdefs.h >>conftest.$ac_ext
18429 cat >>conftest.$ac_ext <<_ACEOF
18430 /* end confdefs.h. */
18431 #include <stdlib.h>
18433 main ()
18435 srand48(0);lrand48();drand48();
18437 return 0;
18439 _ACEOF
18440 rm -f conftest.$ac_objext
18441 if { (ac_try="$ac_compile"
18442 case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18445 esac
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_compile") 2>conftest.er1
18448 ac_status=$?
18449 grep -v '^ *+' conftest.er1 >conftest.err
18450 rm -f conftest.er1
18451 cat conftest.err >&5
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); } &&
18454 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18455 { (case "(($ac_try" in
18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457 *) ac_try_echo=$ac_try;;
18458 esac
18459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460 (eval "$ac_try") 2>&5
18461 ac_status=$?
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; } &&
18464 { ac_try='test -s conftest.$ac_objext'
18465 { (case "(($ac_try" in
18466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467 *) ac_try_echo=$ac_try;;
18468 esac
18469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470 (eval "$ac_try") 2>&5
18471 ac_status=$?
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; }; then
18474 ac_cv_func_rand48=yes
18475 else
18476 echo "$as_me: failed program was:" >&5
18477 sed 's/^/| /' conftest.$ac_ext >&5
18479 ac_cv_func_rand48=no
18482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18483 ac_ext=c
18484 ac_cpp='$CPP $CPPFLAGS'
18485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18490 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18491 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18493 if test "$ac_cv_func_rand48" = "yes" ; then
18495 cat >>confdefs.h <<\_ACEOF
18496 #define HAVE_RAND48 1
18497 _ACEOF
18503 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18504 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18505 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18506 echo $ECHO_N "(cached) $ECHO_C" >&6
18507 else
18508 ac_ext=cpp
18509 ac_cpp='$CXXCPP $CPPFLAGS'
18510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18514 cat >conftest.$ac_ext <<_ACEOF
18515 /* confdefs.h. */
18516 _ACEOF
18517 cat confdefs.h >>conftest.$ac_ext
18518 cat >>conftest.$ac_ext <<_ACEOF
18519 /* end confdefs.h. */
18520 #include <math.h>
18522 main ()
18524 float f; isnan(f);
18526 return 0;
18528 _ACEOF
18529 rm -f conftest.$ac_objext
18530 if { (ac_try="$ac_compile"
18531 case "(($ac_try" in
18532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533 *) ac_try_echo=$ac_try;;
18534 esac
18535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536 (eval "$ac_compile") 2>conftest.er1
18537 ac_status=$?
18538 grep -v '^ *+' conftest.er1 >conftest.err
18539 rm -f conftest.er1
18540 cat conftest.err >&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); } &&
18543 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18544 { (case "(($ac_try" in
18545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18546 *) ac_try_echo=$ac_try;;
18547 esac
18548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18549 (eval "$ac_try") 2>&5
18550 ac_status=$?
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; } &&
18553 { ac_try='test -s conftest.$ac_objext'
18554 { (case "(($ac_try" in
18555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18556 *) ac_try_echo=$ac_try;;
18557 esac
18558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18559 (eval "$ac_try") 2>&5
18560 ac_status=$?
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); }; }; then
18563 ac_cv_func_isnan_in_math_h=yes
18564 else
18565 echo "$as_me: failed program was:" >&5
18566 sed 's/^/| /' conftest.$ac_ext >&5
18568 ac_cv_func_isnan_in_math_h=no
18571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18572 ac_ext=c
18573 ac_cpp='$CPP $CPPFLAGS'
18574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18579 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18580 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18583 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18585 cat >>confdefs.h <<\_ACEOF
18586 #define HAVE_ISNAN_IN_MATH_H 1
18587 _ACEOF
18591 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18592 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18593 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18594 echo $ECHO_N "(cached) $ECHO_C" >&6
18595 else
18596 ac_ext=cpp
18597 ac_cpp='$CXXCPP $CPPFLAGS'
18598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18602 cat >conftest.$ac_ext <<_ACEOF
18603 /* confdefs.h. */
18604 _ACEOF
18605 cat confdefs.h >>conftest.$ac_ext
18606 cat >>conftest.$ac_ext <<_ACEOF
18607 /* end confdefs.h. */
18608 #include <cmath>
18610 main ()
18612 float f; isnan(f);
18614 return 0;
18616 _ACEOF
18617 rm -f conftest.$ac_objext
18618 if { (ac_try="$ac_compile"
18619 case "(($ac_try" in
18620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18621 *) ac_try_echo=$ac_try;;
18622 esac
18623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18624 (eval "$ac_compile") 2>conftest.er1
18625 ac_status=$?
18626 grep -v '^ *+' conftest.er1 >conftest.err
18627 rm -f conftest.er1
18628 cat conftest.err >&5
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); } &&
18631 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18632 { (case "(($ac_try" in
18633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634 *) ac_try_echo=$ac_try;;
18635 esac
18636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18637 (eval "$ac_try") 2>&5
18638 ac_status=$?
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; } &&
18641 { ac_try='test -s conftest.$ac_objext'
18642 { (case "(($ac_try" in
18643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18644 *) ac_try_echo=$ac_try;;
18645 esac
18646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18647 (eval "$ac_try") 2>&5
18648 ac_status=$?
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); }; }; then
18651 ac_cv_func_isnan_in_cmath=yes
18652 else
18653 echo "$as_me: failed program was:" >&5
18654 sed 's/^/| /' conftest.$ac_ext >&5
18656 ac_cv_func_isnan_in_cmath=no
18659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18660 ac_ext=c
18661 ac_cpp='$CPP $CPPFLAGS'
18662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18667 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18668 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18670 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18672 cat >>confdefs.h <<\_ACEOF
18673 #define HAVE_ISNAN_IN_CMATH 1
18674 _ACEOF
18678 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18679 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18680 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18681 echo $ECHO_N "(cached) $ECHO_C" >&6
18682 else
18683 ac_ext=cpp
18684 ac_cpp='$CXXCPP $CPPFLAGS'
18685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18689 cat >conftest.$ac_ext <<_ACEOF
18690 /* confdefs.h. */
18691 _ACEOF
18692 cat confdefs.h >>conftest.$ac_ext
18693 cat >>conftest.$ac_ext <<_ACEOF
18694 /* end confdefs.h. */
18695 #include <cmath>
18697 main ()
18699 float f; std::isnan(f);
18701 return 0;
18703 _ACEOF
18704 rm -f conftest.$ac_objext
18705 if { (ac_try="$ac_compile"
18706 case "(($ac_try" in
18707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18708 *) ac_try_echo=$ac_try;;
18709 esac
18710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18711 (eval "$ac_compile") 2>conftest.er1
18712 ac_status=$?
18713 grep -v '^ *+' conftest.er1 >conftest.err
18714 rm -f conftest.er1
18715 cat conftest.err >&5
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); } &&
18718 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18719 { (case "(($ac_try" in
18720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721 *) ac_try_echo=$ac_try;;
18722 esac
18723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18724 (eval "$ac_try") 2>&5
18725 ac_status=$?
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); }; } &&
18728 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
18735 ac_status=$?
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); }; }; then
18738 ac_cv_func_std_isnan_in_cmath=yes
18739 else
18740 echo "$as_me: failed program was:" >&5
18741 sed 's/^/| /' conftest.$ac_ext >&5
18743 ac_cv_func_std_isnan_in_cmath=no
18746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18747 ac_ext=c
18748 ac_cpp='$CPP $CPPFLAGS'
18749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18754 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18755 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18757 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18759 cat >>confdefs.h <<\_ACEOF
18760 #define HAVE_STD_ISNAN_IN_CMATH 1
18761 _ACEOF
18766 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18767 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18768 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18769 echo $ECHO_N "(cached) $ECHO_C" >&6
18770 else
18771 ac_ext=cpp
18772 ac_cpp='$CXXCPP $CPPFLAGS'
18773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18777 cat >conftest.$ac_ext <<_ACEOF
18778 /* confdefs.h. */
18779 _ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h. */
18783 #include <math.h>
18785 main ()
18787 float f; isinf(f);
18789 return 0;
18791 _ACEOF
18792 rm -f conftest.$ac_objext
18793 if { (ac_try="$ac_compile"
18794 case "(($ac_try" in
18795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796 *) ac_try_echo=$ac_try;;
18797 esac
18798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799 (eval "$ac_compile") 2>conftest.er1
18800 ac_status=$?
18801 grep -v '^ *+' conftest.er1 >conftest.err
18802 rm -f conftest.er1
18803 cat conftest.err >&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); } &&
18806 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18807 { (case "(($ac_try" in
18808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18809 *) ac_try_echo=$ac_try;;
18810 esac
18811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18812 (eval "$ac_try") 2>&5
18813 ac_status=$?
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); }; } &&
18816 { ac_try='test -s conftest.$ac_objext'
18817 { (case "(($ac_try" in
18818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18819 *) ac_try_echo=$ac_try;;
18820 esac
18821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18822 (eval "$ac_try") 2>&5
18823 ac_status=$?
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; }; then
18826 ac_cv_func_isinf_in_math_h=yes
18827 else
18828 echo "$as_me: failed program was:" >&5
18829 sed 's/^/| /' conftest.$ac_ext >&5
18831 ac_cv_func_isinf_in_math_h=no
18834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18835 ac_ext=c
18836 ac_cpp='$CPP $CPPFLAGS'
18837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18842 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18843 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18845 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18847 cat >>confdefs.h <<\_ACEOF
18848 #define HAVE_ISINF_IN_MATH_H 1
18849 _ACEOF
18853 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18854 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18855 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18856 echo $ECHO_N "(cached) $ECHO_C" >&6
18857 else
18858 ac_ext=cpp
18859 ac_cpp='$CXXCPP $CPPFLAGS'
18860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18864 cat >conftest.$ac_ext <<_ACEOF
18865 /* confdefs.h. */
18866 _ACEOF
18867 cat confdefs.h >>conftest.$ac_ext
18868 cat >>conftest.$ac_ext <<_ACEOF
18869 /* end confdefs.h. */
18870 #include <cmath>
18872 main ()
18874 float f; isinf(f);
18876 return 0;
18878 _ACEOF
18879 rm -f conftest.$ac_objext
18880 if { (ac_try="$ac_compile"
18881 case "(($ac_try" in
18882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18883 *) ac_try_echo=$ac_try;;
18884 esac
18885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18886 (eval "$ac_compile") 2>conftest.er1
18887 ac_status=$?
18888 grep -v '^ *+' conftest.er1 >conftest.err
18889 rm -f conftest.er1
18890 cat conftest.err >&5
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); } &&
18893 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18894 { (case "(($ac_try" in
18895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18896 *) ac_try_echo=$ac_try;;
18897 esac
18898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18899 (eval "$ac_try") 2>&5
18900 ac_status=$?
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); }; } &&
18903 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
18910 ac_status=$?
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); }; }; then
18913 ac_cv_func_isinf_in_cmath=yes
18914 else
18915 echo "$as_me: failed program was:" >&5
18916 sed 's/^/| /' conftest.$ac_ext >&5
18918 ac_cv_func_isinf_in_cmath=no
18921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18922 ac_ext=c
18923 ac_cpp='$CPP $CPPFLAGS'
18924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18929 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18930 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18932 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18934 cat >>confdefs.h <<\_ACEOF
18935 #define HAVE_ISINF_IN_CMATH 1
18936 _ACEOF
18940 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18941 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18942 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18943 echo $ECHO_N "(cached) $ECHO_C" >&6
18944 else
18945 ac_ext=cpp
18946 ac_cpp='$CXXCPP $CPPFLAGS'
18947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18951 cat >conftest.$ac_ext <<_ACEOF
18952 /* confdefs.h. */
18953 _ACEOF
18954 cat confdefs.h >>conftest.$ac_ext
18955 cat >>conftest.$ac_ext <<_ACEOF
18956 /* end confdefs.h. */
18957 #include <cmath>
18959 main ()
18961 float f; std::isinf(f)}
18963 return 0;
18965 _ACEOF
18966 rm -f conftest.$ac_objext
18967 if { (ac_try="$ac_compile"
18968 case "(($ac_try" in
18969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18970 *) ac_try_echo=$ac_try;;
18971 esac
18972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18973 (eval "$ac_compile") 2>conftest.er1
18974 ac_status=$?
18975 grep -v '^ *+' conftest.er1 >conftest.err
18976 rm -f conftest.er1
18977 cat conftest.err >&5
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); } &&
18980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18981 { (case "(($ac_try" in
18982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983 *) ac_try_echo=$ac_try;;
18984 esac
18985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18986 (eval "$ac_try") 2>&5
18987 ac_status=$?
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); }; } &&
18990 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
18997 ac_status=$?
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); }; }; then
19000 ac_cv_func_std_isinf_in_cmath=yes
19001 else
19002 echo "$as_me: failed program was:" >&5
19003 sed 's/^/| /' conftest.$ac_ext >&5
19005 ac_cv_func_std_isinf_in_cmath=no
19008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19009 ac_ext=c
19010 ac_cpp='$CPP $CPPFLAGS'
19011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19016 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19017 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19019 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19021 cat >>confdefs.h <<\_ACEOF
19022 #define HAVE_STD_ISINF_IN_CMATH 1
19023 _ACEOF
19027 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19028 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19029 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19030 echo $ECHO_N "(cached) $ECHO_C" >&6
19031 else
19032 ac_ext=cpp
19033 ac_cpp='$CXXCPP $CPPFLAGS'
19034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19038 cat >conftest.$ac_ext <<_ACEOF
19039 /* confdefs.h. */
19040 _ACEOF
19041 cat confdefs.h >>conftest.$ac_ext
19042 cat >>conftest.$ac_ext <<_ACEOF
19043 /* end confdefs.h. */
19044 #include <ieeefp.h>
19046 main ()
19048 float f; finite(f);
19050 return 0;
19052 _ACEOF
19053 rm -f conftest.$ac_objext
19054 if { (ac_try="$ac_compile"
19055 case "(($ac_try" in
19056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057 *) ac_try_echo=$ac_try;;
19058 esac
19059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19060 (eval "$ac_compile") 2>conftest.er1
19061 ac_status=$?
19062 grep -v '^ *+' conftest.er1 >conftest.err
19063 rm -f conftest.er1
19064 cat conftest.err >&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); } &&
19067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19068 { (case "(($ac_try" in
19069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19070 *) ac_try_echo=$ac_try;;
19071 esac
19072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19073 (eval "$ac_try") 2>&5
19074 ac_status=$?
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; } &&
19077 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
19084 ac_status=$?
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); }; }; then
19087 ac_cv_func_finite_in_ieeefp_h=yes
19088 else
19089 echo "$as_me: failed program was:" >&5
19090 sed 's/^/| /' conftest.$ac_ext >&5
19092 ac_cv_func_finite_in_ieeefp_h=no
19095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19096 ac_ext=c
19097 ac_cpp='$CPP $CPPFLAGS'
19098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19103 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19104 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19106 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19108 cat >>confdefs.h <<\_ACEOF
19109 #define HAVE_FINITE_IN_IEEEFP_H 1
19110 _ACEOF
19116 if test "$llvm_cv_platform_type" = "Unix" ; then
19119 for ac_header in stdlib.h unistd.h
19121 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19126 echo $ECHO_N "(cached) $ECHO_C" >&6
19128 ac_res=`eval echo '${'$as_ac_Header'}'`
19129 { echo "$as_me:$LINENO: result: $ac_res" >&5
19130 echo "${ECHO_T}$ac_res" >&6; }
19131 else
19132 # Is the header compilable?
19133 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19134 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19135 cat >conftest.$ac_ext <<_ACEOF
19136 /* confdefs.h. */
19137 _ACEOF
19138 cat confdefs.h >>conftest.$ac_ext
19139 cat >>conftest.$ac_ext <<_ACEOF
19140 /* end confdefs.h. */
19141 $ac_includes_default
19142 #include <$ac_header>
19143 _ACEOF
19144 rm -f conftest.$ac_objext
19145 if { (ac_try="$ac_compile"
19146 case "(($ac_try" in
19147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19148 *) ac_try_echo=$ac_try;;
19149 esac
19150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19151 (eval "$ac_compile") 2>conftest.er1
19152 ac_status=$?
19153 grep -v '^ *+' conftest.er1 >conftest.err
19154 rm -f conftest.er1
19155 cat conftest.err >&5
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); } &&
19158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19159 { (case "(($ac_try" in
19160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19161 *) ac_try_echo=$ac_try;;
19162 esac
19163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19164 (eval "$ac_try") 2>&5
19165 ac_status=$?
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); }; } &&
19168 { ac_try='test -s conftest.$ac_objext'
19169 { (case "(($ac_try" in
19170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19171 *) ac_try_echo=$ac_try;;
19172 esac
19173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19174 (eval "$ac_try") 2>&5
19175 ac_status=$?
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); }; }; then
19178 ac_header_compiler=yes
19179 else
19180 echo "$as_me: failed program was:" >&5
19181 sed 's/^/| /' conftest.$ac_ext >&5
19183 ac_header_compiler=no
19186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19187 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19188 echo "${ECHO_T}$ac_header_compiler" >&6; }
19190 # Is the header present?
19191 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19192 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19193 cat >conftest.$ac_ext <<_ACEOF
19194 /* confdefs.h. */
19195 _ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h. */
19199 #include <$ac_header>
19200 _ACEOF
19201 if { (ac_try="$ac_cpp conftest.$ac_ext"
19202 case "(($ac_try" in
19203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19204 *) ac_try_echo=$ac_try;;
19205 esac
19206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19208 ac_status=$?
19209 grep -v '^ *+' conftest.er1 >conftest.err
19210 rm -f conftest.er1
19211 cat conftest.err >&5
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); } >/dev/null; then
19214 if test -s conftest.err; then
19215 ac_cpp_err=$ac_c_preproc_warn_flag
19216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19217 else
19218 ac_cpp_err=
19220 else
19221 ac_cpp_err=yes
19223 if test -z "$ac_cpp_err"; then
19224 ac_header_preproc=yes
19225 else
19226 echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.$ac_ext >&5
19229 ac_header_preproc=no
19232 rm -f conftest.err conftest.$ac_ext
19233 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19234 echo "${ECHO_T}$ac_header_preproc" >&6; }
19236 # So? What about this header?
19237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19238 yes:no: )
19239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19243 ac_header_preproc=yes
19245 no:yes:* )
19246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19250 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19252 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19253 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19256 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19258 ( cat <<\_ASBOX
19259 ## ----------------------------------- ##
19260 ## Report this to llvmbugs@cs.uiuc.edu ##
19261 ## ----------------------------------- ##
19262 _ASBOX
19263 ) | sed "s/^/$as_me: WARNING: /" >&2
19265 esac
19266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19269 echo $ECHO_N "(cached) $ECHO_C" >&6
19270 else
19271 eval "$as_ac_Header=\$ac_header_preproc"
19273 ac_res=`eval echo '${'$as_ac_Header'}'`
19274 { echo "$as_me:$LINENO: result: $ac_res" >&5
19275 echo "${ECHO_T}$ac_res" >&6; }
19278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19279 cat >>confdefs.h <<_ACEOF
19280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19281 _ACEOF
19285 done
19288 for ac_func in getpagesize
19290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19291 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19293 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19294 echo $ECHO_N "(cached) $ECHO_C" >&6
19295 else
19296 cat >conftest.$ac_ext <<_ACEOF
19297 /* confdefs.h. */
19298 _ACEOF
19299 cat confdefs.h >>conftest.$ac_ext
19300 cat >>conftest.$ac_ext <<_ACEOF
19301 /* end confdefs.h. */
19302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19304 #define $ac_func innocuous_$ac_func
19306 /* System header to define __stub macros and hopefully few prototypes,
19307 which can conflict with char $ac_func (); below.
19308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19309 <limits.h> exists even on freestanding compilers. */
19311 #ifdef __STDC__
19312 # include <limits.h>
19313 #else
19314 # include <assert.h>
19315 #endif
19317 #undef $ac_func
19319 /* Override any GCC internal prototype to avoid an error.
19320 Use char because int might match the return type of a GCC
19321 builtin and then its argument prototype would still apply. */
19322 #ifdef __cplusplus
19323 extern "C"
19324 #endif
19325 char $ac_func ();
19326 /* The GNU C library defines this for functions which it implements
19327 to always fail with ENOSYS. Some functions are actually named
19328 something starting with __ and the normal name is an alias. */
19329 #if defined __stub_$ac_func || defined __stub___$ac_func
19330 choke me
19331 #endif
19334 main ()
19336 return $ac_func ();
19338 return 0;
19340 _ACEOF
19341 rm -f conftest.$ac_objext conftest$ac_exeext
19342 if { (ac_try="$ac_link"
19343 case "(($ac_try" in
19344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19345 *) ac_try_echo=$ac_try;;
19346 esac
19347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19348 (eval "$ac_link") 2>conftest.er1
19349 ac_status=$?
19350 grep -v '^ *+' conftest.er1 >conftest.err
19351 rm -f conftest.er1
19352 cat conftest.err >&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); } &&
19355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19356 { (case "(($ac_try" in
19357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19358 *) ac_try_echo=$ac_try;;
19359 esac
19360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19361 (eval "$ac_try") 2>&5
19362 ac_status=$?
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; } &&
19365 { ac_try='test -s conftest$ac_exeext'
19366 { (case "(($ac_try" in
19367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19368 *) ac_try_echo=$ac_try;;
19369 esac
19370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19371 (eval "$ac_try") 2>&5
19372 ac_status=$?
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); }; }; then
19375 eval "$as_ac_var=yes"
19376 else
19377 echo "$as_me: failed program was:" >&5
19378 sed 's/^/| /' conftest.$ac_ext >&5
19380 eval "$as_ac_var=no"
19383 rm -f core conftest.err conftest.$ac_objext \
19384 conftest$ac_exeext conftest.$ac_ext
19386 ac_res=`eval echo '${'$as_ac_var'}'`
19387 { echo "$as_me:$LINENO: result: $ac_res" >&5
19388 echo "${ECHO_T}$ac_res" >&6; }
19389 if test `eval echo '${'$as_ac_var'}'` = yes; then
19390 cat >>confdefs.h <<_ACEOF
19391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19392 _ACEOF
19395 done
19397 { echo "$as_me:$LINENO: checking for working mmap" >&5
19398 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19399 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19400 echo $ECHO_N "(cached) $ECHO_C" >&6
19401 else
19402 if test "$cross_compiling" = yes; then
19403 ac_cv_func_mmap_fixed_mapped=no
19404 else
19405 cat >conftest.$ac_ext <<_ACEOF
19406 /* confdefs.h. */
19407 _ACEOF
19408 cat confdefs.h >>conftest.$ac_ext
19409 cat >>conftest.$ac_ext <<_ACEOF
19410 /* end confdefs.h. */
19411 $ac_includes_default
19412 /* malloc might have been renamed as rpl_malloc. */
19413 #undef malloc
19415 /* Thanks to Mike Haertel and Jim Avera for this test.
19416 Here is a matrix of mmap possibilities:
19417 mmap private not fixed
19418 mmap private fixed at somewhere currently unmapped
19419 mmap private fixed at somewhere already mapped
19420 mmap shared not fixed
19421 mmap shared fixed at somewhere currently unmapped
19422 mmap shared fixed at somewhere already mapped
19423 For private mappings, we should verify that changes cannot be read()
19424 back from the file, nor mmap's back from the file at a different
19425 address. (There have been systems where private was not correctly
19426 implemented like the infamous i386 svr4.0, and systems where the
19427 VM page cache was not coherent with the file system buffer cache
19428 like early versions of FreeBSD and possibly contemporary NetBSD.)
19429 For shared mappings, we should conversely verify that changes get
19430 propagated back to all the places they're supposed to be.
19432 Grep wants private fixed already mapped.
19433 The main things grep needs to know about mmap are:
19434 * does it exist and is it safe to write into the mmap'd area
19435 * how to use it (BSD variants) */
19437 #include <fcntl.h>
19438 #include <sys/mman.h>
19440 #if !STDC_HEADERS && !HAVE_STDLIB_H
19441 char *malloc ();
19442 #endif
19444 /* This mess was copied from the GNU getpagesize.h. */
19445 #if !HAVE_GETPAGESIZE
19446 /* Assume that all systems that can run configure have sys/param.h. */
19447 # if !HAVE_SYS_PARAM_H
19448 # define HAVE_SYS_PARAM_H 1
19449 # endif
19451 # ifdef _SC_PAGESIZE
19452 # define getpagesize() sysconf(_SC_PAGESIZE)
19453 # else /* no _SC_PAGESIZE */
19454 # if HAVE_SYS_PARAM_H
19455 # include <sys/param.h>
19456 # ifdef EXEC_PAGESIZE
19457 # define getpagesize() EXEC_PAGESIZE
19458 # else /* no EXEC_PAGESIZE */
19459 # ifdef NBPG
19460 # define getpagesize() NBPG * CLSIZE
19461 # ifndef CLSIZE
19462 # define CLSIZE 1
19463 # endif /* no CLSIZE */
19464 # else /* no NBPG */
19465 # ifdef NBPC
19466 # define getpagesize() NBPC
19467 # else /* no NBPC */
19468 # ifdef PAGESIZE
19469 # define getpagesize() PAGESIZE
19470 # endif /* PAGESIZE */
19471 # endif /* no NBPC */
19472 # endif /* no NBPG */
19473 # endif /* no EXEC_PAGESIZE */
19474 # else /* no HAVE_SYS_PARAM_H */
19475 # define getpagesize() 8192 /* punt totally */
19476 # endif /* no HAVE_SYS_PARAM_H */
19477 # endif /* no _SC_PAGESIZE */
19479 #endif /* no HAVE_GETPAGESIZE */
19482 main ()
19484 char *data, *data2, *data3;
19485 int i, pagesize;
19486 int fd;
19488 pagesize = getpagesize ();
19490 /* First, make a file with some known garbage in it. */
19491 data = (char *) malloc (pagesize);
19492 if (!data)
19493 return 1;
19494 for (i = 0; i < pagesize; ++i)
19495 *(data + i) = rand ();
19496 umask (0);
19497 fd = creat ("conftest.mmap", 0600);
19498 if (fd < 0)
19499 return 1;
19500 if (write (fd, data, pagesize) != pagesize)
19501 return 1;
19502 close (fd);
19504 /* Next, try to mmap the file at a fixed address which already has
19505 something else allocated at it. If we can, also make sure that
19506 we see the same garbage. */
19507 fd = open ("conftest.mmap", O_RDWR);
19508 if (fd < 0)
19509 return 1;
19510 data2 = (char *) malloc (2 * pagesize);
19511 if (!data2)
19512 return 1;
19513 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19514 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19515 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19516 return 1;
19517 for (i = 0; i < pagesize; ++i)
19518 if (*(data + i) != *(data2 + i))
19519 return 1;
19521 /* Finally, make sure that changes to the mapped area do not
19522 percolate back to the file as seen by read(). (This is a bug on
19523 some variants of i386 svr4.0.) */
19524 for (i = 0; i < pagesize; ++i)
19525 *(data2 + i) = *(data2 + i) + 1;
19526 data3 = (char *) malloc (pagesize);
19527 if (!data3)
19528 return 1;
19529 if (read (fd, data3, pagesize) != pagesize)
19530 return 1;
19531 for (i = 0; i < pagesize; ++i)
19532 if (*(data + i) != *(data3 + i))
19533 return 1;
19534 close (fd);
19535 return 0;
19537 _ACEOF
19538 rm -f conftest$ac_exeext
19539 if { (ac_try="$ac_link"
19540 case "(($ac_try" in
19541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542 *) ac_try_echo=$ac_try;;
19543 esac
19544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19545 (eval "$ac_link") 2>&5
19546 ac_status=$?
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19549 { (case "(($ac_try" in
19550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551 *) ac_try_echo=$ac_try;;
19552 esac
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554 (eval "$ac_try") 2>&5
19555 ac_status=$?
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; }; then
19558 ac_cv_func_mmap_fixed_mapped=yes
19559 else
19560 echo "$as_me: program exited with status $ac_status" >&5
19561 echo "$as_me: failed program was:" >&5
19562 sed 's/^/| /' conftest.$ac_ext >&5
19564 ( exit $ac_status )
19565 ac_cv_func_mmap_fixed_mapped=no
19567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19572 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19573 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19574 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19576 cat >>confdefs.h <<\_ACEOF
19577 #define HAVE_MMAP 1
19578 _ACEOF
19581 rm -f conftest.mmap
19583 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19584 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19585 if test "${ac_cv_func_mmap_file+set}" = set; then
19586 echo $ECHO_N "(cached) $ECHO_C" >&6
19587 else
19588 ac_ext=c
19589 ac_cpp='$CPP $CPPFLAGS'
19590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19594 if test "$cross_compiling" = yes; then
19595 ac_cv_func_mmap_file=no
19596 else
19597 cat >conftest.$ac_ext <<_ACEOF
19599 /* confdefs.h. */
19600 _ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h. */
19605 #include <sys/types.h>
19606 #include <sys/mman.h>
19607 #include <fcntl.h>
19610 main ()
19613 int fd;
19614 fd = creat ("foo",0777);
19615 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19616 unlink ("foo");
19617 return (fd != (int) MAP_FAILED);
19619 return 0;
19621 _ACEOF
19622 rm -f conftest$ac_exeext
19623 if { (ac_try="$ac_link"
19624 case "(($ac_try" in
19625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626 *) ac_try_echo=$ac_try;;
19627 esac
19628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629 (eval "$ac_link") 2>&5
19630 ac_status=$?
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19633 { (case "(($ac_try" in
19634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635 *) ac_try_echo=$ac_try;;
19636 esac
19637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19638 (eval "$ac_try") 2>&5
19639 ac_status=$?
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; }; then
19642 ac_cv_func_mmap_file=yes
19643 else
19644 echo "$as_me: program exited with status $ac_status" >&5
19645 echo "$as_me: failed program was:" >&5
19646 sed 's/^/| /' conftest.$ac_ext >&5
19648 ( exit $ac_status )
19649 ac_cv_func_mmap_file=no
19651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19655 ac_ext=c
19656 ac_cpp='$CPP $CPPFLAGS'
19657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19663 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19664 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19665 if test "$ac_cv_func_mmap_file" = yes; then
19667 cat >>confdefs.h <<\_ACEOF
19668 #define HAVE_MMAP_FILE
19669 _ACEOF
19671 MMAP_FILE=yes
19675 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19676 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19677 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19678 echo $ECHO_N "(cached) $ECHO_C" >&6
19679 else
19680 if test "$llvm_cv_os_type" = "Interix" ; then
19681 ac_cv_need_dev_zero_for_mmap=yes
19682 else
19683 ac_cv_need_dev_zero_for_mmap=no
19687 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19688 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19689 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19691 cat >>confdefs.h <<\_ACEOF
19692 #define NEED_DEV_ZERO_FOR_MMAP 1
19693 _ACEOF
19697 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19698 then
19699 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19700 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19702 if test "$ac_cv_func_mmap_file" = "no"
19703 then
19704 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19705 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19709 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19710 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19711 cat >conftest.$ac_ext <<_ACEOF
19712 /* confdefs.h. */
19713 _ACEOF
19714 cat confdefs.h >>conftest.$ac_ext
19715 cat >>conftest.$ac_ext <<_ACEOF
19716 /* end confdefs.h. */
19717 int main() {
19718 volatile unsigned long val = 1;
19719 __sync_synchronize();
19720 __sync_val_compare_and_swap(&val, 1, 0);
19721 __sync_add_and_fetch(&val, 1);
19722 __sync_sub_and_fetch(&val, 1);
19723 return 0;
19726 _ACEOF
19727 rm -f conftest.$ac_objext conftest$ac_exeext
19728 if { (ac_try="$ac_link"
19729 case "(($ac_try" in
19730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19731 *) ac_try_echo=$ac_try;;
19732 esac
19733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19734 (eval "$ac_link") 2>conftest.er1
19735 ac_status=$?
19736 grep -v '^ *+' conftest.er1 >conftest.err
19737 rm -f conftest.er1
19738 cat conftest.err >&5
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); } &&
19741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19742 { (case "(($ac_try" in
19743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19744 *) ac_try_echo=$ac_try;;
19745 esac
19746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19747 (eval "$ac_try") 2>&5
19748 ac_status=$?
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); }; } &&
19751 { ac_try='test -s conftest$ac_exeext'
19752 { (case "(($ac_try" in
19753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19754 *) ac_try_echo=$ac_try;;
19755 esac
19756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19757 (eval "$ac_try") 2>&5
19758 ac_status=$?
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); }; }; then
19761 { echo "$as_me:$LINENO: result: yes" >&5
19762 echo "${ECHO_T}yes" >&6; }
19764 cat >>confdefs.h <<\_ACEOF
19765 #define LLVM_MULTITHREADED 1
19766 _ACEOF
19768 else
19769 echo "$as_me: failed program was:" >&5
19770 sed 's/^/| /' conftest.$ac_ext >&5
19772 { echo "$as_me:$LINENO: result: no" >&5
19773 echo "${ECHO_T}no" >&6; }
19775 cat >>confdefs.h <<\_ACEOF
19776 #define LLVM_MULTITHREADED 0
19777 _ACEOF
19779 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19780 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19783 rm -f core conftest.err conftest.$ac_objext \
19784 conftest$ac_exeext conftest.$ac_ext
19788 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19789 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19790 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19791 if test "${llvm_cv_linux_mixed+set}" = set; then
19792 echo $ECHO_N "(cached) $ECHO_C" >&6
19793 else
19794 ac_ext=c
19795 ac_cpp='$CPP $CPPFLAGS'
19796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19800 cat >conftest.$ac_ext <<_ACEOF
19801 /* confdefs.h. */
19802 _ACEOF
19803 cat confdefs.h >>conftest.$ac_ext
19804 cat >>conftest.$ac_ext <<_ACEOF
19805 /* end confdefs.h. */
19806 #ifndef __x86_64__
19807 error: Not x86-64 even if uname says so!
19808 #endif
19811 main ()
19815 return 0;
19817 _ACEOF
19818 rm -f conftest.$ac_objext
19819 if { (ac_try="$ac_compile"
19820 case "(($ac_try" in
19821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822 *) ac_try_echo=$ac_try;;
19823 esac
19824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825 (eval "$ac_compile") 2>conftest.er1
19826 ac_status=$?
19827 grep -v '^ *+' conftest.er1 >conftest.err
19828 rm -f conftest.er1
19829 cat conftest.err >&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); } &&
19832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19833 { (case "(($ac_try" in
19834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835 *) ac_try_echo=$ac_try;;
19836 esac
19837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19838 (eval "$ac_try") 2>&5
19839 ac_status=$?
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); }; } &&
19842 { ac_try='test -s conftest.$ac_objext'
19843 { (case "(($ac_try" in
19844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845 *) ac_try_echo=$ac_try;;
19846 esac
19847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848 (eval "$ac_try") 2>&5
19849 ac_status=$?
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); }; }; then
19852 llvm_cv_linux_mixed=no
19853 else
19854 echo "$as_me: failed program was:" >&5
19855 sed 's/^/| /' conftest.$ac_ext >&5
19857 llvm_cv_linux_mixed=yes
19860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19861 ac_ext=c
19862 ac_cpp='$CPP $CPPFLAGS'
19863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19869 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19870 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19872 if test "$llvm_cv_linux_mixed" = "yes"; then
19873 llvm_cv_target_arch="x86"
19874 ARCH="x86"
19879 for ac_func in __dso_handle
19881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19882 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19884 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19885 echo $ECHO_N "(cached) $ECHO_C" >&6
19886 else
19887 cat >conftest.$ac_ext <<_ACEOF
19888 /* confdefs.h. */
19889 _ACEOF
19890 cat confdefs.h >>conftest.$ac_ext
19891 cat >>conftest.$ac_ext <<_ACEOF
19892 /* end confdefs.h. */
19893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19895 #define $ac_func innocuous_$ac_func
19897 /* System header to define __stub macros and hopefully few prototypes,
19898 which can conflict with char $ac_func (); below.
19899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19900 <limits.h> exists even on freestanding compilers. */
19902 #ifdef __STDC__
19903 # include <limits.h>
19904 #else
19905 # include <assert.h>
19906 #endif
19908 #undef $ac_func
19910 /* Override any GCC internal prototype to avoid an error.
19911 Use char because int might match the return type of a GCC
19912 builtin and then its argument prototype would still apply. */
19913 #ifdef __cplusplus
19914 extern "C"
19915 #endif
19916 char $ac_func ();
19917 /* The GNU C library defines this for functions which it implements
19918 to always fail with ENOSYS. Some functions are actually named
19919 something starting with __ and the normal name is an alias. */
19920 #if defined __stub_$ac_func || defined __stub___$ac_func
19921 choke me
19922 #endif
19925 main ()
19927 return $ac_func ();
19929 return 0;
19931 _ACEOF
19932 rm -f conftest.$ac_objext conftest$ac_exeext
19933 if { (ac_try="$ac_link"
19934 case "(($ac_try" in
19935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936 *) ac_try_echo=$ac_try;;
19937 esac
19938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19939 (eval "$ac_link") 2>conftest.er1
19940 ac_status=$?
19941 grep -v '^ *+' conftest.er1 >conftest.err
19942 rm -f conftest.er1
19943 cat conftest.err >&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); } &&
19946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19947 { (case "(($ac_try" in
19948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19949 *) ac_try_echo=$ac_try;;
19950 esac
19951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19952 (eval "$ac_try") 2>&5
19953 ac_status=$?
19954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); }; } &&
19956 { ac_try='test -s conftest$ac_exeext'
19957 { (case "(($ac_try" in
19958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19959 *) ac_try_echo=$ac_try;;
19960 esac
19961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19962 (eval "$ac_try") 2>&5
19963 ac_status=$?
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); }; }; then
19966 eval "$as_ac_var=yes"
19967 else
19968 echo "$as_me: failed program was:" >&5
19969 sed 's/^/| /' conftest.$ac_ext >&5
19971 eval "$as_ac_var=no"
19974 rm -f core conftest.err conftest.$ac_objext \
19975 conftest$ac_exeext conftest.$ac_ext
19977 ac_res=`eval echo '${'$as_ac_var'}'`
19978 { echo "$as_me:$LINENO: result: $ac_res" >&5
19979 echo "${ECHO_T}$ac_res" >&6; }
19980 if test `eval echo '${'$as_ac_var'}'` = yes; then
19981 cat >>confdefs.h <<_ACEOF
19982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19983 _ACEOF
19986 done
19989 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19990 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19991 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19992 echo $ECHO_N "(cached) $ECHO_C" >&6
19993 else
19994 llvm_cv_llvmgcc_sanity="no"
19995 if test -x "$LLVMGCC" ; then
19996 cp /dev/null conftest.c
19997 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19998 grep 'target datalayout =' > /dev/null 2>&1
19999 if test $? -eq 0 ; then
20000 llvm_cv_llvmgcc_sanity="yes"
20002 rm conftest.c
20005 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20006 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20008 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20009 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20010 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20011 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20012 LLVMCC1=$llvmcc1path
20014 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20015 LLVMCC1PLUS=$llvmcc1pluspath
20017 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20018 LLVMGCCDIR=$llvmgccdir
20020 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20021 LLVMGCC_LANGS=$llvmgcclangs
20023 { echo "$as_me:$LINENO: result: ok" >&5
20024 echo "${ECHO_T}ok" >&6; }
20027 SHLIBEXT=$libltdl_cv_shlibext
20030 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20033 # Translate the various configuration directories and other basic
20034 # information into substitutions that will end up in Makefile.config.in
20035 # that these configured values can be used by the makefiles
20036 if test "${prefix}" = "NONE" ; then
20037 prefix="/usr/local"
20039 eval LLVM_PREFIX="${prefix}";
20040 eval LLVM_BINDIR="${prefix}/bin";
20041 eval LLVM_LIBDIR="${prefix}/lib";
20042 eval LLVM_DATADIR="${prefix}/share/llvm";
20043 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20044 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20045 eval LLVM_INCLUDEDIR="${prefix}/include";
20046 eval LLVM_INFODIR="${prefix}/info";
20047 eval LLVM_MANDIR="${prefix}/man";
20048 LLVM_CONFIGTIME=`date`
20060 # Place the various directores into the config.h file as #defines so that we
20061 # can know about the installation paths within LLVM.
20063 cat >>confdefs.h <<_ACEOF
20064 #define LLVM_PREFIX "$LLVM_PREFIX"
20065 _ACEOF
20068 cat >>confdefs.h <<_ACEOF
20069 #define LLVM_BINDIR "$LLVM_BINDIR"
20070 _ACEOF
20073 cat >>confdefs.h <<_ACEOF
20074 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20075 _ACEOF
20078 cat >>confdefs.h <<_ACEOF
20079 #define LLVM_DATADIR "$LLVM_DATADIR"
20080 _ACEOF
20083 cat >>confdefs.h <<_ACEOF
20084 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20085 _ACEOF
20088 cat >>confdefs.h <<_ACEOF
20089 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20090 _ACEOF
20093 cat >>confdefs.h <<_ACEOF
20094 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20095 _ACEOF
20098 cat >>confdefs.h <<_ACEOF
20099 #define LLVM_INFODIR "$LLVM_INFODIR"
20100 _ACEOF
20103 cat >>confdefs.h <<_ACEOF
20104 #define LLVM_MANDIR "$LLVM_MANDIR"
20105 _ACEOF
20108 cat >>confdefs.h <<_ACEOF
20109 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20110 _ACEOF
20113 cat >>confdefs.h <<_ACEOF
20114 #define LLVM_HOSTTRIPLE "$host"
20115 _ACEOF
20118 # Determine which bindings to build.
20119 if test "$BINDINGS_TO_BUILD" = auto ; then
20120 BINDINGS_TO_BUILD=""
20121 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20122 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20125 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20128 # This isn't really configurey, but it avoids having to repeat the list in
20129 # other files.
20130 ALL_BINDINGS=ocaml
20133 # Do any work necessary to ensure that bindings have what they need.
20134 binding_prereqs_failed=0
20135 for a_binding in $BINDINGS_TO_BUILD ; do
20136 case "$a_binding" in
20137 ocaml)
20138 if test "x$OCAMLC" = x ; then
20139 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20140 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20141 binding_prereqs_failed=1
20143 if test "x$OCAMLDEP" = x ; then
20144 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20145 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20146 binding_prereqs_failed=1
20148 if test "x$OCAMLOPT" = x ; then
20149 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20150 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20152 if test "x$with_ocaml_libdir" != xauto ; then
20153 OCAML_LIBDIR=$with_ocaml_libdir
20155 else
20156 ocaml_stdlib="`"$OCAMLC" -where`"
20157 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20158 then
20159 # ocaml stdlib is beneath our prefix; use stdlib
20160 OCAML_LIBDIR=$ocaml_stdlib
20162 else
20163 # ocaml stdlib is outside our prefix; use libdir/ocaml
20164 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20169 esac
20170 done
20171 if test "$binding_prereqs_failed" = 1 ; then
20172 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20173 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20174 { (exit 1); exit 1; }; }
20177 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20178 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20179 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20180 echo $ECHO_N "(cached) $ECHO_C" >&6
20181 else
20182 ac_ext=cpp
20183 ac_cpp='$CXXCPP $CPPFLAGS'
20184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20188 oldcxxflags="$CXXFLAGS"
20189 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20190 cat >conftest.$ac_ext <<_ACEOF
20191 /* confdefs.h. */
20192 _ACEOF
20193 cat confdefs.h >>conftest.$ac_ext
20194 cat >>conftest.$ac_ext <<_ACEOF
20195 /* end confdefs.h. */
20198 main ()
20202 return 0;
20204 _ACEOF
20205 rm -f conftest.$ac_objext
20206 if { (ac_try="$ac_compile"
20207 case "(($ac_try" in
20208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209 *) ac_try_echo=$ac_try;;
20210 esac
20211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212 (eval "$ac_compile") 2>conftest.er1
20213 ac_status=$?
20214 grep -v '^ *+' conftest.er1 >conftest.err
20215 rm -f conftest.er1
20216 cat conftest.err >&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); } &&
20219 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20220 { (case "(($ac_try" in
20221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222 *) ac_try_echo=$ac_try;;
20223 esac
20224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225 (eval "$ac_try") 2>&5
20226 ac_status=$?
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; } &&
20229 { ac_try='test -s conftest.$ac_objext'
20230 { (case "(($ac_try" in
20231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232 *) ac_try_echo=$ac_try;;
20233 esac
20234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20235 (eval "$ac_try") 2>&5
20236 ac_status=$?
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); }; }; then
20239 llvm_cv_cxx_visibility_inlines_hidden=yes
20240 else
20241 echo "$as_me: failed program was:" >&5
20242 sed 's/^/| /' conftest.$ac_ext >&5
20244 llvm_cv_cxx_visibility_inlines_hidden=no
20247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20248 CXXFLAGS="$oldcxxflags"
20249 ac_ext=c
20250 ac_cpp='$CPP $CPPFLAGS'
20251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20257 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20258 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20259 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20260 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20262 else
20263 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20268 if test "$llvm_cv_link_use_r" = "yes" ; then
20269 RPATH="-Wl,-R"
20270 else
20271 RPATH="-Wl,-rpath"
20275 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20276 RDYNAMIC="-Wl,-export-dynamic"
20277 else
20278 RDYNAMIC=""
20283 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
20285 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20287 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20289 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20291 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20293 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20296 ac_config_files="$ac_config_files Makefile.config"
20299 ac_config_files="$ac_config_files llvm.spec"
20302 ac_config_files="$ac_config_files docs/doxygen.cfg"
20305 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20308 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20311 ac_config_commands="$ac_config_commands setup"
20313 ac_config_commands="$ac_config_commands Makefile"
20316 ac_config_commands="$ac_config_commands Makefile.common"
20319 ac_config_commands="$ac_config_commands examples/Makefile"
20322 ac_config_commands="$ac_config_commands lib/Makefile"
20325 ac_config_commands="$ac_config_commands runtime/Makefile"
20328 ac_config_commands="$ac_config_commands test/Makefile"
20331 ac_config_commands="$ac_config_commands test/Makefile.tests"
20334 ac_config_commands="$ac_config_commands unittests/Makefile"
20337 ac_config_commands="$ac_config_commands tools/Makefile"
20340 ac_config_commands="$ac_config_commands utils/Makefile"
20343 ac_config_commands="$ac_config_commands projects/Makefile"
20346 ac_config_commands="$ac_config_commands bindings/Makefile"
20349 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20353 cat >confcache <<\_ACEOF
20354 # This file is a shell script that caches the results of configure
20355 # tests run on this system so they can be shared between configure
20356 # scripts and configure runs, see configure's option --config-cache.
20357 # It is not useful on other systems. If it contains results you don't
20358 # want to keep, you may remove or edit it.
20360 # config.status only pays attention to the cache file if you give it
20361 # the --recheck option to rerun configure.
20363 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20364 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20365 # following values.
20367 _ACEOF
20369 # The following way of writing the cache mishandles newlines in values,
20370 # but we know of no workaround that is simple, portable, and efficient.
20371 # So, we kill variables containing newlines.
20372 # Ultrix sh set writes to stderr and can't be redirected directly,
20373 # and sets the high bit in the cache file unless we assign to the vars.
20375 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20376 eval ac_val=\$$ac_var
20377 case $ac_val in #(
20378 *${as_nl}*)
20379 case $ac_var in #(
20380 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20381 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20382 esac
20383 case $ac_var in #(
20384 _ | IFS | as_nl) ;; #(
20385 *) $as_unset $ac_var ;;
20386 esac ;;
20387 esac
20388 done
20390 (set) 2>&1 |
20391 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20392 *${as_nl}ac_space=\ *)
20393 # `set' does not quote correctly, so add quotes (double-quote
20394 # substitution turns \\\\ into \\, and sed turns \\ into \).
20395 sed -n \
20396 "s/'/'\\\\''/g;
20397 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20398 ;; #(
20400 # `set' quotes correctly as required by POSIX, so do not add quotes.
20401 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20403 esac |
20404 sort
20406 sed '
20407 /^ac_cv_env_/b end
20408 t clear
20409 :clear
20410 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20411 t end
20412 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20413 :end' >>confcache
20414 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20415 if test -w "$cache_file"; then
20416 test "x$cache_file" != "x/dev/null" &&
20417 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20418 echo "$as_me: updating cache $cache_file" >&6;}
20419 cat confcache >$cache_file
20420 else
20421 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20422 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20425 rm -f confcache
20427 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20428 # Let make expand exec_prefix.
20429 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20431 DEFS=-DHAVE_CONFIG_H
20433 ac_libobjs=
20434 ac_ltlibobjs=
20435 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20436 # 1. Remove the extension, and $U if already installed.
20437 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20438 ac_i=`echo "$ac_i" | sed "$ac_script"`
20439 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20440 # will be set to the directory where LIBOBJS objects are built.
20441 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20442 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20443 done
20444 LIBOBJS=$ac_libobjs
20446 LTLIBOBJS=$ac_ltlibobjs
20449 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20450 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20451 Usually this means the macro was only invoked conditionally." >&5
20452 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20453 Usually this means the macro was only invoked conditionally." >&2;}
20454 { (exit 1); exit 1; }; }
20456 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20457 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20458 Usually this means the macro was only invoked conditionally." >&5
20459 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20460 Usually this means the macro was only invoked conditionally." >&2;}
20461 { (exit 1); exit 1; }; }
20464 : ${CONFIG_STATUS=./config.status}
20465 ac_clean_files_save=$ac_clean_files
20466 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20467 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20468 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20469 cat >$CONFIG_STATUS <<_ACEOF
20470 #! $SHELL
20471 # Generated by $as_me.
20472 # Run this file to recreate the current configuration.
20473 # Compiler output produced by configure, useful for debugging
20474 # configure, is in config.log if it exists.
20476 debug=false
20477 ac_cs_recheck=false
20478 ac_cs_silent=false
20479 SHELL=\${CONFIG_SHELL-$SHELL}
20480 _ACEOF
20482 cat >>$CONFIG_STATUS <<\_ACEOF
20483 ## --------------------- ##
20484 ## M4sh Initialization. ##
20485 ## --------------------- ##
20487 # Be Bourne compatible
20488 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20489 emulate sh
20490 NULLCMD=:
20491 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20492 # is contrary to our usage. Disable this feature.
20493 alias -g '${1+"$@"}'='"$@"'
20494 setopt NO_GLOB_SUBST
20495 else
20496 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20498 BIN_SH=xpg4; export BIN_SH # for Tru64
20499 DUALCASE=1; export DUALCASE # for MKS sh
20502 # PATH needs CR
20503 # Avoid depending upon Character Ranges.
20504 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20505 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20506 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20507 as_cr_digits='0123456789'
20508 as_cr_alnum=$as_cr_Letters$as_cr_digits
20510 # The user is always right.
20511 if test "${PATH_SEPARATOR+set}" != set; then
20512 echo "#! /bin/sh" >conf$$.sh
20513 echo "exit 0" >>conf$$.sh
20514 chmod +x conf$$.sh
20515 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20516 PATH_SEPARATOR=';'
20517 else
20518 PATH_SEPARATOR=:
20520 rm -f conf$$.sh
20523 # Support unset when possible.
20524 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20525 as_unset=unset
20526 else
20527 as_unset=false
20531 # IFS
20532 # We need space, tab and new line, in precisely that order. Quoting is
20533 # there to prevent editors from complaining about space-tab.
20534 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20535 # splitting by setting IFS to empty value.)
20536 as_nl='
20538 IFS=" "" $as_nl"
20540 # Find who we are. Look in the path if we contain no directory separator.
20541 case $0 in
20542 *[\\/]* ) as_myself=$0 ;;
20543 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20544 for as_dir in $PATH
20546 IFS=$as_save_IFS
20547 test -z "$as_dir" && as_dir=.
20548 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20549 done
20550 IFS=$as_save_IFS
20553 esac
20554 # We did not find ourselves, most probably we were run as `sh COMMAND'
20555 # in which case we are not to be found in the path.
20556 if test "x$as_myself" = x; then
20557 as_myself=$0
20559 if test ! -f "$as_myself"; then
20560 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20561 { (exit 1); exit 1; }
20564 # Work around bugs in pre-3.0 UWIN ksh.
20565 for as_var in ENV MAIL MAILPATH
20566 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20567 done
20568 PS1='$ '
20569 PS2='> '
20570 PS4='+ '
20572 # NLS nuisances.
20573 for as_var in \
20574 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20575 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20576 LC_TELEPHONE LC_TIME
20578 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20579 eval $as_var=C; export $as_var
20580 else
20581 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20583 done
20585 # Required to use basename.
20586 if expr a : '\(a\)' >/dev/null 2>&1 &&
20587 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20588 as_expr=expr
20589 else
20590 as_expr=false
20593 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20594 as_basename=basename
20595 else
20596 as_basename=false
20600 # Name of the executable.
20601 as_me=`$as_basename -- "$0" ||
20602 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20603 X"$0" : 'X\(//\)$' \| \
20604 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20605 echo X/"$0" |
20606 sed '/^.*\/\([^/][^/]*\)\/*$/{
20607 s//\1/
20610 /^X\/\(\/\/\)$/{
20611 s//\1/
20614 /^X\/\(\/\).*/{
20615 s//\1/
20618 s/.*/./; q'`
20620 # CDPATH.
20621 $as_unset CDPATH
20625 as_lineno_1=$LINENO
20626 as_lineno_2=$LINENO
20627 test "x$as_lineno_1" != "x$as_lineno_2" &&
20628 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20630 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20631 # uniformly replaced by the line number. The first 'sed' inserts a
20632 # line-number line after each line using $LINENO; the second 'sed'
20633 # does the real work. The second script uses 'N' to pair each
20634 # line-number line with the line containing $LINENO, and appends
20635 # trailing '-' during substitution so that $LINENO is not a special
20636 # case at line end.
20637 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20638 # scripts with optimization help from Paolo Bonzini. Blame Lee
20639 # E. McMahon (1931-1989) for sed's syntax. :-)
20640 sed -n '
20642 /[$]LINENO/=
20643 ' <$as_myself |
20644 sed '
20645 s/[$]LINENO.*/&-/
20646 t lineno
20648 :lineno
20650 :loop
20651 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20652 t loop
20653 s/-\n.*//
20654 ' >$as_me.lineno &&
20655 chmod +x "$as_me.lineno" ||
20656 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20657 { (exit 1); exit 1; }; }
20659 # Don't try to exec as it changes $[0], causing all sort of problems
20660 # (the dirname of $[0] is not the place where we might find the
20661 # original and so on. Autoconf is especially sensitive to this).
20662 . "./$as_me.lineno"
20663 # Exit status is that of the last command.
20664 exit
20668 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20669 as_dirname=dirname
20670 else
20671 as_dirname=false
20674 ECHO_C= ECHO_N= ECHO_T=
20675 case `echo -n x` in
20676 -n*)
20677 case `echo 'x\c'` in
20678 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20679 *) ECHO_C='\c';;
20680 esac;;
20682 ECHO_N='-n';;
20683 esac
20685 if expr a : '\(a\)' >/dev/null 2>&1 &&
20686 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20687 as_expr=expr
20688 else
20689 as_expr=false
20692 rm -f conf$$ conf$$.exe conf$$.file
20693 if test -d conf$$.dir; then
20694 rm -f conf$$.dir/conf$$.file
20695 else
20696 rm -f conf$$.dir
20697 mkdir conf$$.dir
20699 echo >conf$$.file
20700 if ln -s conf$$.file conf$$ 2>/dev/null; then
20701 as_ln_s='ln -s'
20702 # ... but there are two gotchas:
20703 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20704 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20705 # In both cases, we have to default to `cp -p'.
20706 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20707 as_ln_s='cp -p'
20708 elif ln conf$$.file conf$$ 2>/dev/null; then
20709 as_ln_s=ln
20710 else
20711 as_ln_s='cp -p'
20713 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20714 rmdir conf$$.dir 2>/dev/null
20716 if mkdir -p . 2>/dev/null; then
20717 as_mkdir_p=:
20718 else
20719 test -d ./-p && rmdir ./-p
20720 as_mkdir_p=false
20723 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
20724 # systems may use methods other than mode bits to determine executability.
20725 cat >conf$$.file <<_ASEOF
20726 #! /bin/sh
20727 exit 0
20728 _ASEOF
20729 chmod +x conf$$.file
20730 if test -x conf$$.file >/dev/null 2>&1; then
20731 as_executable_p="test -x"
20732 else
20733 as_executable_p=:
20735 rm -f conf$$.file
20737 # Sed expression to map a string onto a valid CPP name.
20738 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20740 # Sed expression to map a string onto a valid variable name.
20741 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20744 exec 6>&1
20746 # Save the log message, to keep $[0] and so on meaningful, and to
20747 # report actual input values of CONFIG_FILES etc. instead of their
20748 # values after options handling.
20749 ac_log="
20750 This file was extended by llvm $as_me 2.8svn, which was
20751 generated by GNU Autoconf 2.60. Invocation command line was
20753 CONFIG_FILES = $CONFIG_FILES
20754 CONFIG_HEADERS = $CONFIG_HEADERS
20755 CONFIG_LINKS = $CONFIG_LINKS
20756 CONFIG_COMMANDS = $CONFIG_COMMANDS
20757 $ $0 $@
20759 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20762 _ACEOF
20764 cat >>$CONFIG_STATUS <<_ACEOF
20765 # Files that config.status was made for.
20766 config_files="$ac_config_files"
20767 config_headers="$ac_config_headers"
20768 config_commands="$ac_config_commands"
20770 _ACEOF
20772 cat >>$CONFIG_STATUS <<\_ACEOF
20773 ac_cs_usage="\
20774 \`$as_me' instantiates files from templates according to the
20775 current configuration.
20777 Usage: $0 [OPTIONS] [FILE]...
20779 -h, --help print this help, then exit
20780 -V, --version print version number, then exit
20781 -q, --quiet do not print progress messages
20782 -d, --debug don't remove temporary files
20783 --recheck update $as_me by reconfiguring in the same conditions
20784 --file=FILE[:TEMPLATE]
20785 instantiate the configuration file FILE
20786 --header=FILE[:TEMPLATE]
20787 instantiate the configuration header FILE
20789 Configuration files:
20790 $config_files
20792 Configuration headers:
20793 $config_headers
20795 Configuration commands:
20796 $config_commands
20798 Report bugs to <bug-autoconf@gnu.org>."
20800 _ACEOF
20801 cat >>$CONFIG_STATUS <<_ACEOF
20802 ac_cs_version="\\
20803 llvm config.status 2.8svn
20804 configured by $0, generated by GNU Autoconf 2.60,
20805 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20807 Copyright (C) 2006 Free Software Foundation, Inc.
20808 This config.status script is free software; the Free Software Foundation
20809 gives unlimited permission to copy, distribute and modify it."
20811 ac_pwd='$ac_pwd'
20812 srcdir='$srcdir'
20813 INSTALL='$INSTALL'
20814 _ACEOF
20816 cat >>$CONFIG_STATUS <<\_ACEOF
20817 # If no file are specified by the user, then we need to provide default
20818 # value. By we need to know if files were specified by the user.
20819 ac_need_defaults=:
20820 while test $# != 0
20822 case $1 in
20823 --*=*)
20824 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20825 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20826 ac_shift=:
20829 ac_option=$1
20830 ac_optarg=$2
20831 ac_shift=shift
20833 esac
20835 case $ac_option in
20836 # Handling of the options.
20837 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20838 ac_cs_recheck=: ;;
20839 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20840 echo "$ac_cs_version"; exit ;;
20841 --debug | --debu | --deb | --de | --d | -d )
20842 debug=: ;;
20843 --file | --fil | --fi | --f )
20844 $ac_shift
20845 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20846 ac_need_defaults=false;;
20847 --header | --heade | --head | --hea )
20848 $ac_shift
20849 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20850 ac_need_defaults=false;;
20851 --he | --h)
20852 # Conflict between --help and --header
20853 { echo "$as_me: error: ambiguous option: $1
20854 Try \`$0 --help' for more information." >&2
20855 { (exit 1); exit 1; }; };;
20856 --help | --hel | -h )
20857 echo "$ac_cs_usage"; exit ;;
20858 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20859 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20860 ac_cs_silent=: ;;
20862 # This is an error.
20863 -*) { echo "$as_me: error: unrecognized option: $1
20864 Try \`$0 --help' for more information." >&2
20865 { (exit 1); exit 1; }; } ;;
20867 *) ac_config_targets="$ac_config_targets $1"
20868 ac_need_defaults=false ;;
20870 esac
20871 shift
20872 done
20874 ac_configure_extra_args=
20876 if $ac_cs_silent; then
20877 exec 6>/dev/null
20878 ac_configure_extra_args="$ac_configure_extra_args --silent"
20881 _ACEOF
20882 cat >>$CONFIG_STATUS <<_ACEOF
20883 if \$ac_cs_recheck; then
20884 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20885 CONFIG_SHELL=$SHELL
20886 export CONFIG_SHELL
20887 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20890 _ACEOF
20891 cat >>$CONFIG_STATUS <<\_ACEOF
20892 exec 5>>config.log
20894 echo
20895 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20896 ## Running $as_me. ##
20897 _ASBOX
20898 echo "$ac_log"
20899 } >&5
20901 _ACEOF
20902 cat >>$CONFIG_STATUS <<_ACEOF
20904 # INIT-COMMANDS
20906 llvm_src="${srcdir}"
20908 _ACEOF
20910 cat >>$CONFIG_STATUS <<\_ACEOF
20912 # Handling of arguments.
20913 for ac_config_target in $ac_config_targets
20915 case $ac_config_target in
20916 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20917 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20918 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20919 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20920 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20921 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20922 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20923 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20924 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20925 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20926 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20927 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20928 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20929 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20930 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20931 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20932 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20933 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20934 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20935 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20936 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20937 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20938 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20939 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20940 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20942 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20943 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20944 { (exit 1); exit 1; }; };;
20945 esac
20946 done
20949 # If the user did not use the arguments to specify the items to instantiate,
20950 # then the envvar interface is used. Set only those that are not.
20951 # We use the long form for the default assignment because of an extremely
20952 # bizarre bug on SunOS 4.1.3.
20953 if $ac_need_defaults; then
20954 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20955 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20956 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20959 # Have a temporary directory for convenience. Make it in the build tree
20960 # simply because there is no reason against having it here, and in addition,
20961 # creating and moving files from /tmp can sometimes cause problems.
20962 # Hook for its removal unless debugging.
20963 # Note that there is a small window in which the directory will not be cleaned:
20964 # after its creation but before its name has been assigned to `$tmp'.
20965 $debug ||
20967 tmp=
20968 trap 'exit_status=$?
20969 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20971 trap '{ (exit 1); exit 1; }' 1 2 13 15
20973 # Create a (secure) tmp directory for tmp files.
20976 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20977 test -n "$tmp" && test -d "$tmp"
20978 } ||
20980 tmp=./conf$$-$RANDOM
20981 (umask 077 && mkdir "$tmp")
20982 } ||
20984 echo "$me: cannot create a temporary directory in ." >&2
20985 { (exit 1); exit 1; }
20989 # Set up the sed scripts for CONFIG_FILES section.
20992 # No need to generate the scripts if there are no CONFIG_FILES.
20993 # This happens for instance when ./config.status config.h
20994 if test -n "$CONFIG_FILES"; then
20996 _ACEOF
21000 ac_delim='%!_!# '
21001 for ac_last_try in false false false false false :; do
21002 cat >conf$$subs.sed <<_ACEOF
21003 SHELL!$SHELL$ac_delim
21004 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21005 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21006 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21007 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21008 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21009 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21010 exec_prefix!$exec_prefix$ac_delim
21011 prefix!$prefix$ac_delim
21012 program_transform_name!$program_transform_name$ac_delim
21013 bindir!$bindir$ac_delim
21014 sbindir!$sbindir$ac_delim
21015 libexecdir!$libexecdir$ac_delim
21016 datarootdir!$datarootdir$ac_delim
21017 datadir!$datadir$ac_delim
21018 sysconfdir!$sysconfdir$ac_delim
21019 sharedstatedir!$sharedstatedir$ac_delim
21020 localstatedir!$localstatedir$ac_delim
21021 includedir!$includedir$ac_delim
21022 oldincludedir!$oldincludedir$ac_delim
21023 docdir!$docdir$ac_delim
21024 infodir!$infodir$ac_delim
21025 htmldir!$htmldir$ac_delim
21026 dvidir!$dvidir$ac_delim
21027 pdfdir!$pdfdir$ac_delim
21028 psdir!$psdir$ac_delim
21029 libdir!$libdir$ac_delim
21030 localedir!$localedir$ac_delim
21031 mandir!$mandir$ac_delim
21032 DEFS!$DEFS$ac_delim
21033 ECHO_C!$ECHO_C$ac_delim
21034 ECHO_N!$ECHO_N$ac_delim
21035 ECHO_T!$ECHO_T$ac_delim
21036 LIBS!$LIBS$ac_delim
21037 build_alias!$build_alias$ac_delim
21038 host_alias!$host_alias$ac_delim
21039 target_alias!$target_alias$ac_delim
21040 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21041 subdirs!$subdirs$ac_delim
21042 build!$build$ac_delim
21043 build_cpu!$build_cpu$ac_delim
21044 build_vendor!$build_vendor$ac_delim
21045 build_os!$build_os$ac_delim
21046 host!$host$ac_delim
21047 host_cpu!$host_cpu$ac_delim
21048 host_vendor!$host_vendor$ac_delim
21049 host_os!$host_os$ac_delim
21050 target!$target$ac_delim
21051 target_cpu!$target_cpu$ac_delim
21052 target_vendor!$target_vendor$ac_delim
21053 target_os!$target_os$ac_delim
21054 OS!$OS$ac_delim
21055 HOST_OS!$HOST_OS$ac_delim
21056 TARGET_OS!$TARGET_OS$ac_delim
21057 LINKALL!$LINKALL$ac_delim
21058 NOLINKALL!$NOLINKALL$ac_delim
21059 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21060 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21061 ARCH!$ARCH$ac_delim
21062 ENDIAN!$ENDIAN$ac_delim
21063 CC!$CC$ac_delim
21064 CFLAGS!$CFLAGS$ac_delim
21065 LDFLAGS!$LDFLAGS$ac_delim
21066 CPPFLAGS!$CPPFLAGS$ac_delim
21067 ac_ct_CC!$ac_ct_CC$ac_delim
21068 EXEEXT!$EXEEXT$ac_delim
21069 OBJEXT!$OBJEXT$ac_delim
21070 CPP!$CPP$ac_delim
21071 GREP!$GREP$ac_delim
21072 EGREP!$EGREP$ac_delim
21073 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21074 BUILD_CC!$BUILD_CC$ac_delim
21075 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21076 BUILD_CXX!$BUILD_CXX$ac_delim
21077 CVSBUILD!$CVSBUILD$ac_delim
21078 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21079 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21080 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21081 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21082 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21083 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21084 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21085 JIT!$JIT$ac_delim
21086 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21087 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21088 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21089 ENABLE_PIC!$ENABLE_PIC$ac_delim
21090 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21091 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21092 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21093 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21094 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21095 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21096 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21097 CLANGPATH!$CLANGPATH$ac_delim
21098 CLANGXXPATH!$CLANGXXPATH$ac_delim
21099 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21100 _ACEOF
21102 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21103 break
21104 elif $ac_last_try; then
21105 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21106 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21107 { (exit 1); exit 1; }; }
21108 else
21109 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21111 done
21113 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21114 if test -n "$ac_eof"; then
21115 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21116 ac_eof=`expr $ac_eof + 1`
21119 cat >>$CONFIG_STATUS <<_ACEOF
21120 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21121 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21122 _ACEOF
21123 sed '
21124 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21125 s/^/s,@/; s/!/@,|#_!!_#|/
21128 s/'"$ac_delim"'$/,g/; t
21129 s/$/\\/; p
21130 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21131 ' >>$CONFIG_STATUS <conf$$subs.sed
21132 rm -f conf$$subs.sed
21133 cat >>$CONFIG_STATUS <<_ACEOF
21134 CEOF$ac_eof
21135 _ACEOF
21138 ac_delim='%!_!# '
21139 for ac_last_try in false false false false false :; do
21140 cat >conf$$subs.sed <<_ACEOF
21141 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21142 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21143 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21144 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
21145 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21146 CXX!$CXX$ac_delim
21147 CXXFLAGS!$CXXFLAGS$ac_delim
21148 ac_ct_CXX!$ac_ct_CXX$ac_delim
21149 NM!$NM$ac_delim
21150 ifGNUmake!$ifGNUmake$ac_delim
21151 LN_S!$LN_S$ac_delim
21152 CMP!$CMP$ac_delim
21153 CP!$CP$ac_delim
21154 DATE!$DATE$ac_delim
21155 FIND!$FIND$ac_delim
21156 MKDIR!$MKDIR$ac_delim
21157 MV!$MV$ac_delim
21158 RANLIB!$RANLIB$ac_delim
21159 AR!$AR$ac_delim
21160 RM!$RM$ac_delim
21161 SED!$SED$ac_delim
21162 TAR!$TAR$ac_delim
21163 BINPWD!$BINPWD$ac_delim
21164 GRAPHVIZ!$GRAPHVIZ$ac_delim
21165 DOT!$DOT$ac_delim
21166 FDP!$FDP$ac_delim
21167 NEATO!$NEATO$ac_delim
21168 TWOPI!$TWOPI$ac_delim
21169 CIRCO!$CIRCO$ac_delim
21170 GV!$GV$ac_delim
21171 DOTTY!$DOTTY$ac_delim
21172 PERL!$PERL$ac_delim
21173 HAVE_PERL!$HAVE_PERL$ac_delim
21174 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21175 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21176 INSTALL_DATA!$INSTALL_DATA$ac_delim
21177 BZIP2!$BZIP2$ac_delim
21178 DOXYGEN!$DOXYGEN$ac_delim
21179 GROFF!$GROFF$ac_delim
21180 GZIP!$GZIP$ac_delim
21181 POD2HTML!$POD2HTML$ac_delim
21182 POD2MAN!$POD2MAN$ac_delim
21183 RUNTEST!$RUNTEST$ac_delim
21184 TCLSH!$TCLSH$ac_delim
21185 ZIP!$ZIP$ac_delim
21186 OCAMLC!$OCAMLC$ac_delim
21187 OCAMLOPT!$OCAMLOPT$ac_delim
21188 OCAMLDEP!$OCAMLDEP$ac_delim
21189 OCAMLDOC!$OCAMLDOC$ac_delim
21190 GAS!$GAS$ac_delim
21191 HAVE_LINK_RETAIN_SYMBOLS_FILE!$HAVE_LINK_RETAIN_SYMBOLS_FILE$ac_delim
21192 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21193 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21194 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21195 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21196 LIBADD_DL!$LIBADD_DL$ac_delim
21197 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21198 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21199 LLVMGCC!$LLVMGCC$ac_delim
21200 LLVMGXX!$LLVMGXX$ac_delim
21201 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21202 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21203 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21204 USE_UDIS86!$USE_UDIS86$ac_delim
21205 USE_OPROFILE!$USE_OPROFILE$ac_delim
21206 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21207 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21208 MMAP_FILE!$MMAP_FILE$ac_delim
21209 LLVMCC1!$LLVMCC1$ac_delim
21210 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21211 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21212 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21213 SHLIBEXT!$SHLIBEXT$ac_delim
21214 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21215 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21216 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21217 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21218 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21219 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21220 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21221 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21222 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21223 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21224 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21225 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21226 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21227 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21228 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21229 RPATH!$RPATH$ac_delim
21230 RDYNAMIC!$RDYNAMIC$ac_delim
21231 LIBOBJS!$LIBOBJS$ac_delim
21232 LTLIBOBJS!$LTLIBOBJS$ac_delim
21233 _ACEOF
21235 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
21236 break
21237 elif $ac_last_try; then
21238 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21239 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21240 { (exit 1); exit 1; }; }
21241 else
21242 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21244 done
21246 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21247 if test -n "$ac_eof"; then
21248 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21249 ac_eof=`expr $ac_eof + 1`
21252 cat >>$CONFIG_STATUS <<_ACEOF
21253 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21254 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21255 _ACEOF
21256 sed '
21257 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21258 s/^/s,@/; s/!/@,|#_!!_#|/
21261 s/'"$ac_delim"'$/,g/; t
21262 s/$/\\/; p
21263 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21264 ' >>$CONFIG_STATUS <conf$$subs.sed
21265 rm -f conf$$subs.sed
21266 cat >>$CONFIG_STATUS <<_ACEOF
21267 :end
21268 s/|#_!!_#|//g
21269 CEOF$ac_eof
21270 _ACEOF
21273 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21274 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21275 # trailing colons and then remove the whole line if VPATH becomes empty
21276 # (actually we leave an empty line to preserve line numbers).
21277 if test "x$srcdir" = x.; then
21278 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21279 s/:*\$(srcdir):*/:/
21280 s/:*\${srcdir}:*/:/
21281 s/:*@srcdir@:*/:/
21282 s/^\([^=]*=[ ]*\):*/\1/
21283 s/:*$//
21284 s/^[^=]*=[ ]*$//
21288 cat >>$CONFIG_STATUS <<\_ACEOF
21289 fi # test -n "$CONFIG_FILES"
21292 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21294 case $ac_tag in
21295 :[FHLC]) ac_mode=$ac_tag; continue;;
21296 esac
21297 case $ac_mode$ac_tag in
21298 :[FHL]*:*);;
21299 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21300 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21301 { (exit 1); exit 1; }; };;
21302 :[FH]-) ac_tag=-:-;;
21303 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21304 esac
21305 ac_save_IFS=$IFS
21306 IFS=:
21307 set x $ac_tag
21308 IFS=$ac_save_IFS
21309 shift
21310 ac_file=$1
21311 shift
21313 case $ac_mode in
21314 :L) ac_source=$1;;
21315 :[FH])
21316 ac_file_inputs=
21317 for ac_f
21319 case $ac_f in
21320 -) ac_f="$tmp/stdin";;
21321 *) # Look for the file first in the build tree, then in the source tree
21322 # (if the path is not absolute). The absolute path cannot be DOS-style,
21323 # because $ac_f cannot contain `:'.
21324 test -f "$ac_f" ||
21325 case $ac_f in
21326 [\\/$]*) false;;
21327 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21328 esac ||
21329 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21330 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21331 { (exit 1); exit 1; }; };;
21332 esac
21333 ac_file_inputs="$ac_file_inputs $ac_f"
21334 done
21336 # Let's still pretend it is `configure' which instantiates (i.e., don't
21337 # use $as_me), people would be surprised to read:
21338 # /* config.h. Generated by config.status. */
21339 configure_input="Generated from "`IFS=:
21340 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21341 if test x"$ac_file" != x-; then
21342 configure_input="$ac_file. $configure_input"
21343 { echo "$as_me:$LINENO: creating $ac_file" >&5
21344 echo "$as_me: creating $ac_file" >&6;}
21347 case $ac_tag in
21348 *:-:* | *:-) cat >"$tmp/stdin";;
21349 esac
21351 esac
21353 ac_dir=`$as_dirname -- "$ac_file" ||
21354 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21355 X"$ac_file" : 'X\(//\)[^/]' \| \
21356 X"$ac_file" : 'X\(//\)$' \| \
21357 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21358 echo X"$ac_file" |
21359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21360 s//\1/
21363 /^X\(\/\/\)[^/].*/{
21364 s//\1/
21367 /^X\(\/\/\)$/{
21368 s//\1/
21371 /^X\(\/\).*/{
21372 s//\1/
21375 s/.*/./; q'`
21376 { as_dir="$ac_dir"
21377 case $as_dir in #(
21378 -*) as_dir=./$as_dir;;
21379 esac
21380 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21381 as_dirs=
21382 while :; do
21383 case $as_dir in #(
21384 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21385 *) as_qdir=$as_dir;;
21386 esac
21387 as_dirs="'$as_qdir' $as_dirs"
21388 as_dir=`$as_dirname -- "$as_dir" ||
21389 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21390 X"$as_dir" : 'X\(//\)[^/]' \| \
21391 X"$as_dir" : 'X\(//\)$' \| \
21392 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21393 echo X"$as_dir" |
21394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21395 s//\1/
21398 /^X\(\/\/\)[^/].*/{
21399 s//\1/
21402 /^X\(\/\/\)$/{
21403 s//\1/
21406 /^X\(\/\).*/{
21407 s//\1/
21410 s/.*/./; q'`
21411 test -d "$as_dir" && break
21412 done
21413 test -z "$as_dirs" || eval "mkdir $as_dirs"
21414 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21415 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21416 { (exit 1); exit 1; }; }; }
21417 ac_builddir=.
21419 case "$ac_dir" in
21420 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21422 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21423 # A ".." for each directory in $ac_dir_suffix.
21424 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21425 case $ac_top_builddir_sub in
21426 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21427 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21428 esac ;;
21429 esac
21430 ac_abs_top_builddir=$ac_pwd
21431 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21432 # for backward compatibility:
21433 ac_top_builddir=$ac_top_build_prefix
21435 case $srcdir in
21436 .) # We are building in place.
21437 ac_srcdir=.
21438 ac_top_srcdir=$ac_top_builddir_sub
21439 ac_abs_top_srcdir=$ac_pwd ;;
21440 [\\/]* | ?:[\\/]* ) # Absolute name.
21441 ac_srcdir=$srcdir$ac_dir_suffix;
21442 ac_top_srcdir=$srcdir
21443 ac_abs_top_srcdir=$srcdir ;;
21444 *) # Relative name.
21445 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21446 ac_top_srcdir=$ac_top_build_prefix$srcdir
21447 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21448 esac
21449 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21452 case $ac_mode in
21455 # CONFIG_FILE
21458 case $INSTALL in
21459 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21460 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21461 esac
21462 _ACEOF
21464 cat >>$CONFIG_STATUS <<\_ACEOF
21465 # If the template does not know about datarootdir, expand it.
21466 # FIXME: This hack should be removed a few years after 2.60.
21467 ac_datarootdir_hack=; ac_datarootdir_seen=
21469 case `sed -n '/datarootdir/ {
21473 /@datadir@/p
21474 /@docdir@/p
21475 /@infodir@/p
21476 /@localedir@/p
21477 /@mandir@/p
21478 ' $ac_file_inputs` in
21479 *datarootdir*) ac_datarootdir_seen=yes;;
21480 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21481 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21482 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21483 _ACEOF
21484 cat >>$CONFIG_STATUS <<_ACEOF
21485 ac_datarootdir_hack='
21486 s&@datadir@&$datadir&g
21487 s&@docdir@&$docdir&g
21488 s&@infodir@&$infodir&g
21489 s&@localedir@&$localedir&g
21490 s&@mandir@&$mandir&g
21491 s&\\\${datarootdir}&$datarootdir&g' ;;
21492 esac
21493 _ACEOF
21495 # Neutralize VPATH when `$srcdir' = `.'.
21496 # Shell code in configure.ac might set extrasub.
21497 # FIXME: do we really want to maintain this feature?
21498 cat >>$CONFIG_STATUS <<_ACEOF
21499 sed "$ac_vpsub
21500 $extrasub
21501 _ACEOF
21502 cat >>$CONFIG_STATUS <<\_ACEOF
21504 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21505 s&@configure_input@&$configure_input&;t t
21506 s&@top_builddir@&$ac_top_builddir_sub&;t t
21507 s&@srcdir@&$ac_srcdir&;t t
21508 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21509 s&@top_srcdir@&$ac_top_srcdir&;t t
21510 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21511 s&@builddir@&$ac_builddir&;t t
21512 s&@abs_builddir@&$ac_abs_builddir&;t t
21513 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21514 s&@INSTALL@&$ac_INSTALL&;t t
21515 $ac_datarootdir_hack
21516 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21518 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21519 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21520 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21521 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21522 which seems to be undefined. Please make sure it is defined." >&5
21523 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21524 which seems to be undefined. Please make sure it is defined." >&2;}
21526 rm -f "$tmp/stdin"
21527 case $ac_file in
21528 -) cat "$tmp/out"; rm -f "$tmp/out";;
21529 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21530 esac
21534 # CONFIG_HEADER
21536 _ACEOF
21538 # Transform confdefs.h into a sed script `conftest.defines', that
21539 # substitutes the proper values into config.h.in to produce config.h.
21540 rm -f conftest.defines conftest.tail
21541 # First, append a space to every undef/define line, to ease matching.
21542 echo 's/$/ /' >conftest.defines
21543 # Then, protect against being on the right side of a sed subst, or in
21544 # an unquoted here document, in config.status. If some macros were
21545 # called several times there might be several #defines for the same
21546 # symbol, which is useless. But do not sort them, since the last
21547 # AC_DEFINE must be honored.
21548 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21549 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21550 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21551 # PARAMS is the parameter list in the macro definition--in most cases, it's
21552 # just an empty string.
21553 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21554 ac_dB='\\)[ (].*,\\1define\\2'
21555 ac_dC=' '
21556 ac_dD=' ,'
21558 uniq confdefs.h |
21559 sed -n '
21560 t rset
21561 :rset
21562 s/^[ ]*#[ ]*define[ ][ ]*//
21563 t ok
21566 s/[\\&,]/\\&/g
21567 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21568 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21569 ' >>conftest.defines
21571 # Remove the space that was appended to ease matching.
21572 # Then replace #undef with comments. This is necessary, for
21573 # example, in the case of _POSIX_SOURCE, which is predefined and required
21574 # on some systems where configure will not decide to define it.
21575 # (The regexp can be short, since the line contains either #define or #undef.)
21576 echo 's/ $//
21577 s,^[ #]*u.*,/* & */,' >>conftest.defines
21579 # Break up conftest.defines:
21580 ac_max_sed_lines=50
21582 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21583 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21584 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21585 # et cetera.
21586 ac_in='$ac_file_inputs'
21587 ac_out='"$tmp/out1"'
21588 ac_nxt='"$tmp/out2"'
21590 while :
21592 # Write a here document:
21593 cat >>$CONFIG_STATUS <<_ACEOF
21594 # First, check the format of the line:
21595 cat >"\$tmp/defines.sed" <<\\CEOF
21596 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21597 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21599 :def
21600 _ACEOF
21601 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21602 echo 'CEOF
21603 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21604 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21605 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21606 grep . conftest.tail >/dev/null || break
21607 rm -f conftest.defines
21608 mv conftest.tail conftest.defines
21609 done
21610 rm -f conftest.defines conftest.tail
21612 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21613 cat >>$CONFIG_STATUS <<\_ACEOF
21614 if test x"$ac_file" != x-; then
21615 echo "/* $configure_input */" >"$tmp/config.h"
21616 cat "$ac_result" >>"$tmp/config.h"
21617 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21618 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21619 echo "$as_me: $ac_file is unchanged" >&6;}
21620 else
21621 rm -f $ac_file
21622 mv "$tmp/config.h" $ac_file
21624 else
21625 echo "/* $configure_input */"
21626 cat "$ac_result"
21628 rm -f "$tmp/out12"
21631 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21632 echo "$as_me: executing $ac_file commands" >&6;}
21634 esac
21637 case $ac_file$ac_mode in
21638 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21639 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21640 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21641 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21642 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21643 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21644 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21645 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21646 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21647 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21648 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21649 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21650 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21651 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21652 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21653 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21654 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21655 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21656 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21657 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21658 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21659 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21660 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21661 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21662 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21663 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21665 esac
21666 done # for ac_tag
21669 { (exit 0); exit 0; }
21670 _ACEOF
21671 chmod +x $CONFIG_STATUS
21672 ac_clean_files=$ac_clean_files_save
21675 # configure is writing to config.log, and then calls config.status.
21676 # config.status does its own redirection, appending to config.log.
21677 # Unfortunately, on DOS this fails, as config.log is still kept open
21678 # by configure, so config.status won't be able to write to it; its
21679 # output is simply discarded. So we exec the FD to /dev/null,
21680 # effectively closing config.log, so it can be properly (re)opened and
21681 # appended to by config.status. When coming back to configure, we
21682 # need to make the FD available again.
21683 if test "$no_create" != yes; then
21684 ac_cs_success=:
21685 ac_config_status_args=
21686 test "$silent" = yes &&
21687 ac_config_status_args="$ac_config_status_args --quiet"
21688 exec 5>/dev/null
21689 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21690 exec 5>>config.log
21691 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21692 # would make configure fail if this is the last instruction.
21693 $ac_cs_success || { (exit 1); exit 1; }
21697 # CONFIG_SUBDIRS section.
21699 if test "$no_recursion" != yes; then
21701 # Remove --cache-file and --srcdir arguments so they do not pile up.
21702 ac_sub_configure_args=
21703 ac_prev=
21704 eval "set x $ac_configure_args"
21705 shift
21706 for ac_arg
21708 if test -n "$ac_prev"; then
21709 ac_prev=
21710 continue
21712 case $ac_arg in
21713 -cache-file | --cache-file | --cache-fil | --cache-fi \
21714 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21715 ac_prev=cache_file ;;
21716 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21717 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21718 | --c=*)
21720 --config-cache | -C)
21722 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21723 ac_prev=srcdir ;;
21724 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21726 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21727 ac_prev=prefix ;;
21728 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21731 case $ac_arg in
21732 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21733 esac
21734 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21735 esac
21736 done
21738 # Always prepend --prefix to ensure using the same prefix
21739 # in subdir configurations.
21740 ac_arg="--prefix=$prefix"
21741 case $ac_arg in
21742 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21743 esac
21744 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21746 ac_popdir=`pwd`
21747 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21749 # Do not complain, so a configure script can configure whichever
21750 # parts of a large source tree are present.
21751 test -d "$srcdir/$ac_dir" || continue
21753 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21754 echo "$as_me:$LINENO: $ac_msg" >&5
21755 echo "$ac_msg" >&6
21756 { as_dir="$ac_dir"
21757 case $as_dir in #(
21758 -*) as_dir=./$as_dir;;
21759 esac
21760 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21761 as_dirs=
21762 while :; do
21763 case $as_dir in #(
21764 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21765 *) as_qdir=$as_dir;;
21766 esac
21767 as_dirs="'$as_qdir' $as_dirs"
21768 as_dir=`$as_dirname -- "$as_dir" ||
21769 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21770 X"$as_dir" : 'X\(//\)[^/]' \| \
21771 X"$as_dir" : 'X\(//\)$' \| \
21772 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21773 echo X"$as_dir" |
21774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21775 s//\1/
21778 /^X\(\/\/\)[^/].*/{
21779 s//\1/
21782 /^X\(\/\/\)$/{
21783 s//\1/
21786 /^X\(\/\).*/{
21787 s//\1/
21790 s/.*/./; q'`
21791 test -d "$as_dir" && break
21792 done
21793 test -z "$as_dirs" || eval "mkdir $as_dirs"
21794 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21795 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21796 { (exit 1); exit 1; }; }; }
21797 ac_builddir=.
21799 case "$ac_dir" in
21800 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21802 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21803 # A ".." for each directory in $ac_dir_suffix.
21804 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21805 case $ac_top_builddir_sub in
21806 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21807 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21808 esac ;;
21809 esac
21810 ac_abs_top_builddir=$ac_pwd
21811 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21812 # for backward compatibility:
21813 ac_top_builddir=$ac_top_build_prefix
21815 case $srcdir in
21816 .) # We are building in place.
21817 ac_srcdir=.
21818 ac_top_srcdir=$ac_top_builddir_sub
21819 ac_abs_top_srcdir=$ac_pwd ;;
21820 [\\/]* | ?:[\\/]* ) # Absolute name.
21821 ac_srcdir=$srcdir$ac_dir_suffix;
21822 ac_top_srcdir=$srcdir
21823 ac_abs_top_srcdir=$srcdir ;;
21824 *) # Relative name.
21825 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21826 ac_top_srcdir=$ac_top_build_prefix$srcdir
21827 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21828 esac
21829 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21832 cd "$ac_dir"
21834 # Check for guested configure; otherwise get Cygnus style configure.
21835 if test -f "$ac_srcdir/configure.gnu"; then
21836 ac_sub_configure=$ac_srcdir/configure.gnu
21837 elif test -f "$ac_srcdir/configure"; then
21838 ac_sub_configure=$ac_srcdir/configure
21839 elif test -f "$ac_srcdir/configure.in"; then
21840 # This should be Cygnus configure.
21841 ac_sub_configure=$ac_aux_dir/configure
21842 else
21843 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21844 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21845 ac_sub_configure=
21848 # The recursion is here.
21849 if test -n "$ac_sub_configure"; then
21850 # Make the cache file name correct relative to the subdirectory.
21851 case $cache_file in
21852 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21853 *) # Relative name.
21854 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21855 esac
21857 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21858 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21859 # The eval makes quoting arguments work.
21860 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21861 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21862 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21863 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21864 { (exit 1); exit 1; }; }
21867 cd "$ac_popdir"
21868 done