lit: Add LitTestCase and lit.load_test_suite, for adapting lit based suites for
[llvm.git] / configure
bloba2aad3ea3ced178f21fae1914b865d5d20132396
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 INSTALL_LTDL_TRUE
753 INSTALL_LTDL_FALSE
754 CONVENIENCE_LTDL_TRUE
755 CONVENIENCE_LTDL_FALSE
756 LIBADD_DL
757 LLVMGCCCOMMAND
758 LLVMGXXCOMMAND
759 LLVMGCC
760 LLVMGXX
761 LLVMCC_OPTION
762 NO_VARIADIC_MACROS
763 NO_MISSING_FIELD_INITIALIZERS
764 USE_UDIS86
765 USE_OPROFILE
766 HAVE_PTHREAD
767 HUGE_VAL_SANITY
768 MMAP_FILE
769 LLVMCC1
770 LLVMCC1PLUS
771 LLVMGCCDIR
772 LLVMGCC_LANGS
773 SHLIBEXT
774 SHLIBPATH_VAR
775 LLVM_PREFIX
776 LLVM_BINDIR
777 LLVM_LIBDIR
778 LLVM_DATADIR
779 LLVM_DOCSDIR
780 LLVM_ETCDIR
781 LLVM_INCLUDEDIR
782 LLVM_INFODIR
783 LLVM_MANDIR
784 LLVM_CONFIGTIME
785 BINDINGS_TO_BUILD
786 ALL_BINDINGS
787 OCAML_LIBDIR
788 ENABLE_VISIBILITY_INLINES_HIDDEN
789 RPATH
790 RDYNAMIC
791 LIBOBJS
792 LTLIBOBJS'
793 ac_subst_files=''
794 ac_precious_vars='build_alias
795 host_alias
796 target_alias
798 CFLAGS
799 LDFLAGS
800 CPPFLAGS
803 CXXFLAGS
804 CCC'
805 ac_subdirs_all='projects/llvm-gcc
806 projects/test-suite
807 projects/llvm-test
808 projects/poolalloc
809 projects/llvm-poolalloc
810 projects/sample
811 projects/privbracket
812 projects/llvm-stacker
813 projects/llvm-reopt
814 projects/llvm-java
815 projects/llvm-tv
816 projects/safecode
817 projects/llvm-kernel'
819 # Initialize some variables set by options.
820 ac_init_help=
821 ac_init_version=false
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
824 cache_file=/dev/null
825 exec_prefix=NONE
826 no_create=
827 no_recursion=
828 prefix=NONE
829 program_prefix=NONE
830 program_suffix=NONE
831 program_transform_name=s,x,x,
832 silent=
833 site=
834 srcdir=
835 verbose=
836 x_includes=NONE
837 x_libraries=NONE
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
857 htmldir='${docdir}'
858 dvidir='${docdir}'
859 pdfdir='${docdir}'
860 psdir='${docdir}'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
865 ac_prev=
866 ac_dashdash=
867 for ac_option
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
871 eval $ac_prev=\$ac_option
872 ac_prev=
873 continue
876 case $ac_option in
877 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 *) ac_optarg=yes ;;
879 esac
881 # Accept the important Cygnus configure options, so we can diagnose typos.
883 case $ac_dashdash$ac_option in
885 ac_dashdash=yes ;;
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 ac_prev=bindir ;;
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 bindir=$ac_optarg ;;
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
904 --config-cache | -C)
905 cache_file=config.cache ;;
907 -datadir | --datadir | --datadi | --datad)
908 ac_prev=datadir ;;
909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
910 datadir=$ac_optarg ;;
912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
919 -disable-* | --disable-*)
920 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924 { (exit 1); exit 1; }; }
925 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926 eval enable_$ac_feature=no ;;
928 -docdir | --docdir | --docdi | --doc | --do)
929 ac_prev=docdir ;;
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 docdir=$ac_optarg ;;
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 ac_prev=dvidir ;;
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 dvidir=$ac_optarg ;;
938 -enable-* | --enable-*)
939 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943 { (exit 1); exit 1; }; }
944 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945 eval enable_$ac_feature=\$ac_optarg ;;
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
958 with_gas=yes ;;
960 -help | --help | --hel | --he | -h)
961 ac_init_help=long ;;
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 ac_prev=htmldir ;;
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 | --ht=*)
976 htmldir=$ac_optarg ;;
978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 ac_prev=infodir ;;
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
990 -libdir | --libdir | --libdi | --libd)
991 ac_prev=libdir ;;
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 libdir=$ac_optarg ;;
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1007 -localstatedir | --localstatedir | --localstatedi | --localstated \
1008 | --localstate | --localstat | --localsta | --localst | --locals)
1009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012 localstatedir=$ac_optarg ;;
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 ac_prev=mandir ;;
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1021 with_fp=no ;;
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1025 no_create=yes ;;
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 no_recursion=yes ;;
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 ac_prev=prefix ;;
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 ac_prev=pdfdir ;;
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1081 -psdir | --psdir | --psdi | --psd | --ps)
1082 ac_prev=psdir ;;
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 psdir=$ac_optarg ;;
1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1088 silent=yes ;;
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
1094 sbindir=$ac_optarg ;;
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
1105 sharedstatedir=$ac_optarg ;;
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
1110 site=$ac_optarg ;;
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1135 -with-* | --with-*)
1136 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139 { echo "$as_me: error: invalid package name: $ac_package" >&2
1140 { (exit 1); exit 1; }; }
1141 ac_package=`echo $ac_package| sed 's/-/_/g'`
1142 eval with_$ac_package=\$ac_optarg ;;
1144 -without-* | --without-*)
1145 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148 { echo "$as_me: error: invalid package name: $ac_package" >&2
1149 { (exit 1); exit 1; }; }
1150 ac_package=`echo $ac_package | sed 's/-/_/g'`
1151 eval with_$ac_package=no ;;
1153 --x)
1154 # Obsolete; use --with-x.
1155 with_x=yes ;;
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1171 -*) { echo "$as_me: error: unrecognized option: $ac_option
1172 Try \`$0 --help' for more information." >&2
1173 { (exit 1); exit 1; }; }
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181 { (exit 1); exit 1; }; }
1182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1186 # FIXME: should be removed in autoconf 3.0.
1187 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1193 esac
1194 done
1196 if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 { echo "$as_me: error: missing argument to $ac_option" >&2
1199 { (exit 1); exit 1; }; }
1202 # Be sure to have absolute directory names.
1203 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1208 eval ac_val=\$$ac_var
1209 case $ac_val in
1210 [\\/$]* | ?:[\\/]* ) continue;;
1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212 esac
1213 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214 { (exit 1); exit 1; }; }
1215 done
1217 # There might be people who depend on the old broken behavior: `$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1220 build=$build_alias
1221 host=$host_alias
1222 target=$target_alias
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
1228 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1229 If a cross compiler is detected then cross compile mode will be used." >&2
1230 elif test "x$build_alias" != "x$host_alias"; then
1231 cross_compiling=yes
1235 ac_tool_prefix=
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238 test "$silent" = yes && exec 6>/dev/null
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244 { echo "$as_me: error: Working directory cannot be determined" >&2
1245 { (exit 1); exit 1; }; }
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247 { echo "$as_me: error: pwd does not report name of working directory" >&2
1248 { (exit 1); exit 1; }; }
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir=`$as_dirname -- "$0" ||
1256 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$0" : 'X\(//\)[^/]' \| \
1258 X"$0" : 'X\(//\)$' \| \
1259 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1260 echo X"$0" |
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 s//\1/
1265 /^X\(\/\/\)[^/].*/{
1266 s//\1/
1269 /^X\(\/\/\)$/{
1270 s//\1/
1273 /^X\(\/\).*/{
1274 s//\1/
1277 s/.*/./; q'`
1278 srcdir=$ac_confdir
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 srcdir=..
1282 else
1283 ac_srcdir_defaulted=no
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288 { (exit 1); exit 1; }; }
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 ac_abs_confdir=`(
1292 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293 { (exit 1); exit 1; }; }
1294 pwd)`
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 srcdir=.
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1302 case $srcdir in
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 esac
1305 for ac_var in $ac_precious_vars; do
1306 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_env_${ac_var}_value=\$${ac_var}
1308 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310 done
1313 # Report the --help message.
1315 if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1318 cat <<_ACEOF
1319 \`configure' configures llvm 2.8svn to adapt to many kinds of systems.
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE. See below for descriptions of some of the useful variables.
1326 Defaults for the options are specified in brackets.
1328 Configuration:
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339 Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
1341 [$ac_default_prefix]
1342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1343 [PREFIX]
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1350 For better control, use the options below.
1352 Fine tuning of the installation directories:
1353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
1367 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
1372 _ACEOF
1374 cat <<\_ACEOF
1376 System types:
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 --target=TARGET configure for building compilers for TARGET [HOST]
1380 _ACEOF
1383 if test -n "$ac_init_help"; then
1384 case $ac_init_help in
1385 short | recursive ) echo "Configuration of llvm 2.8svn:";;
1386 esac
1387 cat <<\_ACEOF
1389 Optional Features:
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1392 --enable-optimized Compile with optimizations enabled (default is NO)
1393 --enable-profiling Compile with profiling enabled (default is NO)
1394 --enable-assertions Compile with assertion checks enabled (default is
1395 YES)
1396 --enable-expensive-checks
1397 Compile with expensive debug checks enabled (default
1398 is NO)
1399 --enable-debug-runtime Build runtime libs with debug symbols (default is
1401 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1402 optimization is on and YES if it's off)
1403 --enable-jit Enable Just In Time Compiling (default is YES)
1404 --enable-doxygen Build doxygen documentation (default is NO)
1405 --enable-threads Use threads if available (default is YES)
1406 --enable-pic Build LLVM with Position Independent Code (default
1407 is YES)
1408 --enable-shared Build a shared library and link tools against it
1409 (default is NO)
1410 --enable-targets Build specific host targets: all or
1411 target1,target2,... Valid targets are: host, x86,
1412 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1413 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1414 and cpp (default=all)
1415 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1416 %a (default is YES)
1417 --enable-bindings Build specific language bindings:
1418 all,auto,none,{binding-name} (default=auto)
1419 --enable-libffi Check for the presence of libffi (default is NO)
1420 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1421 Win32)
1422 --enable-llvmc-dynamic-plugins
1423 Enable dynamic LLVMC plugins (default is YES)
1424 --enable-ltdl-install install libltdl
1426 Optional Packages:
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1429 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1430 searches PATH)
1431 --with-llvmgcc Specify location of llvm-gcc driver (default
1432 searches PATH)
1433 --with-llvmgxx Specify location of llvm-g++ driver (default
1434 searches PATH)
1435 --with-clang Specify location of clang compiler (default is
1436 --with-built-clang)
1437 --with-built-clang Use the compiled Clang as the LLVM compiler
1438 (default=check)
1439 --with-optimize-option Select the compiler options to use for optimized
1440 builds
1441 --with-extra-options Specify additional options to compile LLVM with
1442 --with-ocaml-libdir Specify install location for ocaml bindings (default
1443 is stdlib)
1444 --with-c-include-dirs Colon separated list of directories clang will
1445 search for headers
1446 --with-cxx-include-root Directory with the libstdc++ headers.
1447 --with-cxx-include-arch Architecture of the libstdc++ headers.
1448 --with-cxx-include-32bit-dir
1449 32 bit multilib dir.
1450 --with-cxx-include-64bit-dir
1451 64 bit multilib directory.
1452 --with-binutils-include Specify path to binutils/include/ containing
1453 plugin-api.h file for gold plugin.
1454 --with-tclinclude directory where tcl headers are
1455 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1456 clang, or none; default=check)
1457 --with-udis86=<path> Use udis86 external x86 disassembler library
1458 --with-oprofile=<prefix>
1459 Tell OProfile >= 0.9.4 how to symbolize JIT output
1461 Some influential environment variables:
1462 CC C compiler command
1463 CFLAGS C compiler flags
1464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
1466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
1468 CPP C preprocessor
1469 CXX C++ compiler command
1470 CXXFLAGS C++ compiler flags
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1475 Report bugs to <llvmbugs@cs.uiuc.edu>.
1476 _ACEOF
1477 ac_status=$?
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" || continue
1484 ac_builddir=.
1486 case "$ac_dir" in
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 esac ;;
1496 esac
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1502 case $srcdir in
1503 .) # We are building in place.
1504 ac_srcdir=.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1511 *) # Relative name.
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 esac
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1526 else
1527 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528 fi || ac_status=$?
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1530 done
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1535 cat <<\_ACEOF
1536 llvm configure 2.8svn
1537 generated by GNU Autoconf 2.60
1539 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1540 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1544 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1545 _ACEOF
1546 exit
1548 cat >config.log <<_ACEOF
1549 This file contains any messages produced by compilers while
1550 running configure, to aid debugging if configure makes a mistake.
1552 It was created by llvm $as_me 2.8svn, which was
1553 generated by GNU Autoconf 2.60. Invocation command line was
1555 $ $0 $@
1557 _ACEOF
1558 exec 5>>config.log
1560 cat <<_ASUNAME
1561 ## --------- ##
1562 ## Platform. ##
1563 ## --------- ##
1565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1574 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1578 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1582 _ASUNAME
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 for as_dir in $PATH
1587 IFS=$as_save_IFS
1588 test -z "$as_dir" && as_dir=.
1589 echo "PATH: $as_dir"
1590 done
1591 IFS=$as_save_IFS
1593 } >&5
1595 cat >&5 <<_ACEOF
1598 ## ----------- ##
1599 ## Core tests. ##
1600 ## ----------- ##
1602 _ACEOF
1605 # Keep a trace of the command line.
1606 # Strip out --no-create and --no-recursion so they do not pile up.
1607 # Strip out --silent because we don't want to record it for future runs.
1608 # Also quote any args containing shell meta-characters.
1609 # Make two passes to allow for proper duplicate-argument suppression.
1610 ac_configure_args=
1611 ac_configure_args0=
1612 ac_configure_args1=
1613 ac_must_keep_next=false
1614 for ac_pass in 1 2
1616 for ac_arg
1618 case $ac_arg in
1619 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621 | -silent | --silent | --silen | --sile | --sil)
1622 continue ;;
1623 *\'*)
1624 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1625 esac
1626 case $ac_pass in
1627 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1629 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1630 if test $ac_must_keep_next = true; then
1631 ac_must_keep_next=false # Got value, back to normal.
1632 else
1633 case $ac_arg in
1634 *=* | --config-cache | -C | -disable-* | --disable-* \
1635 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637 | -with-* | --with-* | -without-* | --without-* | --x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640 esac
1642 -* ) ac_must_keep_next=true ;;
1643 esac
1645 ac_configure_args="$ac_configure_args '$ac_arg'"
1647 esac
1648 done
1649 done
1650 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1653 # When interrupted or exit'd, cleanup temporary files, and complete
1654 # config.log. We remove comments because anyway the quotes in there
1655 # would cause problems or look ugly.
1656 # WARNING: Use '\'' to represent an apostrophe within the trap.
1657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658 trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1661 echo
1663 cat <<\_ASBOX
1664 ## ---------------- ##
1665 ## Cache variables. ##
1666 ## ---------------- ##
1667 _ASBOX
1668 echo
1669 # The following way of writing the cache mishandles newlines in values,
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1673 case $ac_val in #(
1674 *${as_nl}*)
1675 case $ac_var in #(
1676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1678 esac
1679 case $ac_var in #(
1680 _ | IFS | as_nl) ;; #(
1681 *) $as_unset $ac_var ;;
1682 esac ;;
1683 esac
1684 done
1685 (set) 2>&1 |
1686 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687 *${as_nl}ac_space=\ *)
1688 sed -n \
1689 "s/'\''/'\''\\\\'\'''\''/g;
1690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691 ;; #(
1693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1695 esac |
1696 sort
1698 echo
1700 cat <<\_ASBOX
1701 ## ----------------- ##
1702 ## Output variables. ##
1703 ## ----------------- ##
1704 _ASBOX
1705 echo
1706 for ac_var in $ac_subst_vars
1708 eval ac_val=\$$ac_var
1709 case $ac_val in
1710 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1711 esac
1712 echo "$ac_var='\''$ac_val'\''"
1713 done | sort
1714 echo
1716 if test -n "$ac_subst_files"; then
1717 cat <<\_ASBOX
1718 ## ------------------- ##
1719 ## File substitutions. ##
1720 ## ------------------- ##
1721 _ASBOX
1722 echo
1723 for ac_var in $ac_subst_files
1725 eval ac_val=\$$ac_var
1726 case $ac_val in
1727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728 esac
1729 echo "$ac_var='\''$ac_val'\''"
1730 done | sort
1731 echo
1734 if test -s confdefs.h; then
1735 cat <<\_ASBOX
1736 ## ----------- ##
1737 ## confdefs.h. ##
1738 ## ----------- ##
1739 _ASBOX
1740 echo
1741 cat confdefs.h
1742 echo
1744 test "$ac_signal" != 0 &&
1745 echo "$as_me: caught signal $ac_signal"
1746 echo "$as_me: exit $exit_status"
1747 } >&5
1748 rm -f core *.core core.conftest.* &&
1749 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1750 exit $exit_status
1752 for ac_signal in 1 2 13 15; do
1753 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1754 done
1755 ac_signal=0
1757 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1758 rm -f -r conftest* confdefs.h
1760 # Predefined preprocessor variables.
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_NAME "$PACKAGE_NAME"
1764 _ACEOF
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769 _ACEOF
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1774 _ACEOF
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_STRING "$PACKAGE_STRING"
1779 _ACEOF
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784 _ACEOF
1787 # Let the site file select an alternate cache file if it wants to.
1788 # Prefer explicitly selected file to automatically selected ones.
1789 if test -n "$CONFIG_SITE"; then
1790 set x "$CONFIG_SITE"
1791 elif test "x$prefix" != xNONE; then
1792 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1793 else
1794 set x "$ac_default_prefix/share/config.site" \
1795 "$ac_default_prefix/etc/config.site"
1797 shift
1798 for ac_site_file
1800 if test -r "$ac_site_file"; then
1801 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802 echo "$as_me: loading site script $ac_site_file" >&6;}
1803 sed 's/^/| /' "$ac_site_file" >&5
1804 . "$ac_site_file"
1806 done
1808 if test -r "$cache_file"; then
1809 # Some versions of bash will fail to source /dev/null (special
1810 # files actually), so we avoid doing that.
1811 if test -f "$cache_file"; then
1812 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813 echo "$as_me: loading cache $cache_file" >&6;}
1814 case $cache_file in
1815 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816 *) . "./$cache_file";;
1817 esac
1819 else
1820 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821 echo "$as_me: creating cache $cache_file" >&6;}
1822 >$cache_file
1825 # Check that the precious variables saved in the cache have kept the same
1826 # value.
1827 ac_cache_corrupted=false
1828 for ac_var in $ac_precious_vars; do
1829 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830 eval ac_new_set=\$ac_env_${ac_var}_set
1831 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832 eval ac_new_val=\$ac_env_${ac_var}_value
1833 case $ac_old_set,$ac_new_set in
1834 set,)
1835 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1837 ac_cache_corrupted=: ;;
1838 ,set)
1839 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1841 ac_cache_corrupted=: ;;
1842 ,);;
1844 if test "x$ac_old_val" != "x$ac_new_val"; then
1845 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1848 echo "$as_me: former value: $ac_old_val" >&2;}
1849 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1850 echo "$as_me: current value: $ac_new_val" >&2;}
1851 ac_cache_corrupted=:
1852 fi;;
1853 esac
1854 # Pass precious variables to config.status.
1855 if test "$ac_new_set" = set; then
1856 case $ac_new_val in
1857 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1858 *) ac_arg=$ac_var=$ac_new_val ;;
1859 esac
1860 case " $ac_configure_args " in
1861 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1862 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1863 esac
1865 done
1866 if $ac_cache_corrupted; then
1867 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871 { (exit 1); exit 1; }; }
1898 ac_ext=c
1899 ac_cpp='$CPP $CPPFLAGS'
1900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1906 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1914 ac_aux_dir=
1915 for ac_dir in autoconf "$srcdir"/autoconf; do
1916 if test -f "$ac_dir/install-sh"; then
1917 ac_aux_dir=$ac_dir
1918 ac_install_sh="$ac_aux_dir/install-sh -c"
1919 break
1920 elif test -f "$ac_dir/install.sh"; then
1921 ac_aux_dir=$ac_dir
1922 ac_install_sh="$ac_aux_dir/install.sh -c"
1923 break
1924 elif test -f "$ac_dir/shtool"; then
1925 ac_aux_dir=$ac_dir
1926 ac_install_sh="$ac_aux_dir/shtool install -c"
1927 break
1929 done
1930 if test -z "$ac_aux_dir"; then
1931 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933 { (exit 1); exit 1; }; }
1936 # These three variables are undocumented and unsupported,
1937 # and are intended to be withdrawn in a future Autoconf release.
1938 # They can cause serious problems if a builder's source tree is in a directory
1939 # whose full name contains unusual characters.
1940 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1941 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1942 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1946 if test ${srcdir} != "." ; then
1947 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1948 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950 { (exit 1); exit 1; }; }
1956 if test -d ${srcdir}/projects/llvm-gcc ; then
1957 subdirs="$subdirs projects/llvm-gcc"
1961 if test -d ${srcdir}/projects/test-suite ; then
1962 subdirs="$subdirs projects/test-suite"
1966 if test -d ${srcdir}/projects/llvm-test ; then
1967 subdirs="$subdirs projects/llvm-test"
1971 if test -d ${srcdir}/projects/poolalloc ; then
1972 subdirs="$subdirs projects/poolalloc"
1976 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1977 subdirs="$subdirs projects/llvm-poolalloc"
1981 for i in `ls ${srcdir}/projects`
1983 if test -d ${srcdir}/projects/${i} ; then
1984 case ${i} in
1985 CVS) ;;
1986 sample) subdirs="$subdirs projects/sample"
1988 privbracket) subdirs="$subdirs projects/privbracket"
1990 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1992 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1994 llvm-java) subdirs="$subdirs projects/llvm-java"
1996 llvm-tv) subdirs="$subdirs projects/llvm-tv"
1998 safecode) subdirs="$subdirs projects/safecode"
2000 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2003 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2004 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2006 esac
2008 done
2011 # Make sure we can run config.sub.
2012 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2013 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2014 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2015 { (exit 1); exit 1; }; }
2017 { echo "$as_me:$LINENO: checking build system type" >&5
2018 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2019 if test "${ac_cv_build+set}" = set; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 else
2022 ac_build_alias=$build_alias
2023 test "x$ac_build_alias" = x &&
2024 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2025 test "x$ac_build_alias" = x &&
2026 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2027 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2028 { (exit 1); exit 1; }; }
2029 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2030 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2031 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2032 { (exit 1); exit 1; }; }
2035 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2036 echo "${ECHO_T}$ac_cv_build" >&6; }
2037 case $ac_cv_build in
2038 *-*-*) ;;
2039 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2040 echo "$as_me: error: invalid value of canonical build" >&2;}
2041 { (exit 1); exit 1; }; };;
2042 esac
2043 build=$ac_cv_build
2044 ac_save_IFS=$IFS; IFS='-'
2045 set x $ac_cv_build
2046 shift
2047 build_cpu=$1
2048 build_vendor=$2
2049 shift; shift
2050 # Remember, the first character of IFS is used to create $*,
2051 # except with old shells:
2052 build_os=$*
2053 IFS=$ac_save_IFS
2054 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2057 { echo "$as_me:$LINENO: checking host system type" >&5
2058 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2059 if test "${ac_cv_host+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 else
2062 if test "x$host_alias" = x; then
2063 ac_cv_host=$ac_cv_build
2064 else
2065 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2066 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2067 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2068 { (exit 1); exit 1; }; }
2072 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2073 echo "${ECHO_T}$ac_cv_host" >&6; }
2074 case $ac_cv_host in
2075 *-*-*) ;;
2076 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2077 echo "$as_me: error: invalid value of canonical host" >&2;}
2078 { (exit 1); exit 1; }; };;
2079 esac
2080 host=$ac_cv_host
2081 ac_save_IFS=$IFS; IFS='-'
2082 set x $ac_cv_host
2083 shift
2084 host_cpu=$1
2085 host_vendor=$2
2086 shift; shift
2087 # Remember, the first character of IFS is used to create $*,
2088 # except with old shells:
2089 host_os=$*
2090 IFS=$ac_save_IFS
2091 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2094 { echo "$as_me:$LINENO: checking target system type" >&5
2095 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2096 if test "${ac_cv_target+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099 if test "x$target_alias" = x; then
2100 ac_cv_target=$ac_cv_host
2101 else
2102 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2103 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2104 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2105 { (exit 1); exit 1; }; }
2109 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2110 echo "${ECHO_T}$ac_cv_target" >&6; }
2111 case $ac_cv_target in
2112 *-*-*) ;;
2113 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2114 echo "$as_me: error: invalid value of canonical target" >&2;}
2115 { (exit 1); exit 1; }; };;
2116 esac
2117 target=$ac_cv_target
2118 ac_save_IFS=$IFS; IFS='-'
2119 set x $ac_cv_target
2120 shift
2121 target_cpu=$1
2122 target_vendor=$2
2123 shift; shift
2124 # Remember, the first character of IFS is used to create $*,
2125 # except with old shells:
2126 target_os=$*
2127 IFS=$ac_save_IFS
2128 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2131 # The aliases save the names the user supplied, while $host etc.
2132 # will get canonicalized.
2133 test -n "$target_alias" &&
2134 test "$program_prefix$program_suffix$program_transform_name" = \
2135 NONENONEs,x,x, &&
2136 program_prefix=${target_alias}-
2138 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2139 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2140 if test "${llvm_cv_os_type+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143 case $host in
2144 *-*-aix*)
2145 llvm_cv_link_all_option="-Wl,--whole-archive"
2146 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2147 llvm_cv_os_type="AIX"
2148 llvm_cv_platform_type="Unix" ;;
2149 *-*-irix*)
2150 llvm_cv_link_all_option="-Wl,--whole-archive"
2151 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2152 llvm_cv_os_type="IRIX"
2153 llvm_cv_platform_type="Unix" ;;
2154 *-*-cygwin*)
2155 llvm_cv_link_all_option="-Wl,--whole-archive"
2156 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2157 llvm_cv_os_type="Cygwin"
2158 llvm_cv_platform_type="Unix" ;;
2159 *-*-darwin*)
2160 llvm_cv_link_all_option="-Wl,-all_load"
2161 llvm_cv_no_link_all_option="-Wl,-noall_load"
2162 llvm_cv_os_type="Darwin"
2163 llvm_cv_platform_type="Unix" ;;
2164 *-*-freebsd*)
2165 llvm_cv_link_all_option="-Wl,--whole-archive"
2166 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2167 llvm_cv_os_type="FreeBSD"
2168 llvm_cv_platform_type="Unix" ;;
2169 *-*-openbsd*)
2170 llvm_cv_link_all_option="-Wl,--whole-archive"
2171 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2172 llvm_cv_os_type="OpenBSD"
2173 llvm_cv_platform_type="Unix" ;;
2174 *-*-netbsd*)
2175 llvm_cv_link_all_option="-Wl,--whole-archive"
2176 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2177 llvm_cv_os_type="NetBSD"
2178 llvm_cv_platform_type="Unix" ;;
2179 *-*-dragonfly*)
2180 llvm_cv_link_all_option="-Wl,--whole-archive"
2181 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2182 llvm_cv_os_type="DragonFly"
2183 llvm_cv_platform_type="Unix" ;;
2184 *-*-hpux*)
2185 llvm_cv_link_all_option="-Wl,--whole-archive"
2186 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2187 llvm_cv_os_type="HP-UX"
2188 llvm_cv_platform_type="Unix" ;;
2189 *-*-interix*)
2190 llvm_cv_link_all_option="-Wl,--whole-archive"
2191 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2192 llvm_cv_os_type="Interix"
2193 llvm_cv_platform_type="Unix" ;;
2194 *-*-linux*)
2195 llvm_cv_link_all_option="-Wl,--whole-archive"
2196 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2197 llvm_cv_os_type="Linux"
2198 llvm_cv_platform_type="Unix" ;;
2199 *-*-solaris*)
2200 llvm_cv_link_all_option="-Wl,-z,allextract"
2201 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2202 llvm_cv_os_type="SunOS"
2203 llvm_cv_platform_type="Unix" ;;
2204 *-*-auroraux*)
2205 llvm_cv_link_all_option="-Wl,-z,allextract"
2206 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2207 llvm_cv_os_type="AuroraUX"
2208 llvm_cv_platform_type="Unix" ;;
2209 *-*-win32*)
2210 llvm_cv_link_all_option="-Wl,--whole-archive"
2211 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2212 llvm_cv_os_type="Win32"
2213 llvm_cv_platform_type="Win32" ;;
2214 *-*-mingw*)
2215 llvm_cv_link_all_option="-Wl,--whole-archive"
2216 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2217 llvm_cv_os_type="MingW"
2218 llvm_cv_platform_type="Win32" ;;
2219 *-*-haiku*)
2220 llvm_cv_link_all_option="-Wl,--whole-archive"
2221 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2222 llvm_cv_os_type="Haiku"
2223 llvm_cv_platform_type="Unix" ;;
2224 *-unknown-eabi*)
2225 llvm_cv_link_all_option="-Wl,--whole-archive"
2226 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2227 llvm_cv_os_type="Freestanding"
2228 llvm_cv_platform_type="Unix" ;;
2229 *-unknown-elf*)
2230 llvm_cv_link_all_option="-Wl,--whole-archive"
2231 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2232 llvm_cv_os_type="Freestanding"
2233 llvm_cv_platform_type="Unix" ;;
2235 llvm_cv_link_all_option=""
2236 llvm_cv_no_link_all_option=""
2237 llvm_cv_os_type="Unknown"
2238 llvm_cv_platform_type="Unknown" ;;
2239 esac
2241 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2242 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2244 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2245 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2246 if test "${llvm_cv_target_os_type+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2248 else
2249 case $target in
2250 *-*-aix*)
2251 llvm_cv_target_os_type="AIX" ;;
2252 *-*-irix*)
2253 llvm_cv_target_os_type="IRIX" ;;
2254 *-*-cygwin*)
2255 llvm_cv_target_os_type="Cygwin" ;;
2256 *-*-darwin*)
2257 llvm_cv_target_os_type="Darwin" ;;
2258 *-*-freebsd*)
2259 llvm_cv_target_os_type="FreeBSD" ;;
2260 *-*-openbsd*)
2261 llvm_cv_target_os_type="OpenBSD" ;;
2262 *-*-netbsd*)
2263 llvm_cv_target_os_type="NetBSD" ;;
2264 *-*-dragonfly*)
2265 llvm_cv_target_os_type="DragonFly" ;;
2266 *-*-hpux*)
2267 llvm_cv_target_os_type="HP-UX" ;;
2268 *-*-interix*)
2269 llvm_cv_target_os_type="Interix" ;;
2270 *-*-linux*)
2271 llvm_cv_target_os_type="Linux" ;;
2272 *-*-solaris*)
2273 llvm_cv_target_os_type="SunOS" ;;
2274 *-*-auroraux*)
2275 llvm_cv_target_os_type="AuroraUX" ;;
2276 *-*-win32*)
2277 llvm_cv_target_os_type="Win32" ;;
2278 *-*-mingw*)
2279 llvm_cv_target_os_type="MingW" ;;
2280 *-*-haiku*)
2281 llvm_cv_target_os_type="Haiku" ;;
2282 *-unknown-eabi*)
2283 llvm_cv_target_os_type="Freestanding" ;;
2285 llvm_cv_target_os_type="Unknown" ;;
2286 esac
2288 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2289 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2291 if test "$llvm_cv_os_type" = "Unknown" ; then
2292 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2293 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2294 { (exit 1); exit 1; }; }
2297 OS=$llvm_cv_os_type
2299 HOST_OS=$llvm_cv_os_type
2301 TARGET_OS=$llvm_cv_target_os_type
2304 LINKALL=$llvm_cv_link_all_option
2306 NOLINKALL=$llvm_cv_no_link_all_option
2309 case $llvm_cv_platform_type in
2310 Unix)
2312 cat >>confdefs.h <<\_ACEOF
2313 #define LLVM_ON_UNIX 1
2314 _ACEOF
2316 LLVM_ON_UNIX=1
2318 LLVM_ON_WIN32=0
2321 Win32)
2323 cat >>confdefs.h <<\_ACEOF
2324 #define LLVM_ON_WIN32 1
2325 _ACEOF
2327 LLVM_ON_UNIX=0
2329 LLVM_ON_WIN32=1
2332 esac
2334 { echo "$as_me:$LINENO: checking target architecture" >&5
2335 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2336 if test "${llvm_cv_target_arch+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339 case $target in
2340 i?86-*) llvm_cv_target_arch="x86" ;;
2341 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2342 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2343 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2344 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2345 arm*-*) llvm_cv_target_arch="ARM" ;;
2346 mips-*) llvm_cv_target_arch="Mips" ;;
2347 pic16-*) llvm_cv_target_arch="PIC16" ;;
2348 xcore-*) llvm_cv_target_arch="XCore" ;;
2349 msp430-*) llvm_cv_target_arch="MSP430" ;;
2350 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2351 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2352 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2353 *) llvm_cv_target_arch="Unknown" ;;
2354 esac
2356 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2357 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2359 if test "$llvm_cv_target_arch" = "Unknown" ; then
2360 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2361 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2364 # Determine the LLVM native architecture for the target
2365 case "$llvm_cv_target_arch" in
2366 x86) LLVM_NATIVE_ARCH="X86" ;;
2367 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2368 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2369 esac
2371 ARCH=$llvm_cv_target_arch
2374 ac_ext=c
2375 ac_cpp='$CPP $CPPFLAGS'
2376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2379 if test -n "$ac_tool_prefix"; then
2380 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2381 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2384 if test "${ac_cv_prog_CC+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 else
2387 if test -n "$CC"; then
2388 ac_cv_prog_CC="$CC" # Let the user override the test.
2389 else
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 for as_dir in $PATH
2393 IFS=$as_save_IFS
2394 test -z "$as_dir" && as_dir=.
2395 for ac_exec_ext in '' $ac_executable_extensions; do
2396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2397 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2399 break 2
2401 done
2402 done
2403 IFS=$as_save_IFS
2407 CC=$ac_cv_prog_CC
2408 if test -n "$CC"; then
2409 { echo "$as_me:$LINENO: result: $CC" >&5
2410 echo "${ECHO_T}$CC" >&6; }
2411 else
2412 { echo "$as_me:$LINENO: result: no" >&5
2413 echo "${ECHO_T}no" >&6; }
2418 if test -z "$ac_cv_prog_CC"; then
2419 ac_ct_CC=$CC
2420 # Extract the first word of "gcc", so it can be a program name with args.
2421 set dummy gcc; ac_word=$2
2422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2424 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2426 else
2427 if test -n "$ac_ct_CC"; then
2428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2429 else
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 for as_dir in $PATH
2433 IFS=$as_save_IFS
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2437 ac_cv_prog_ac_ct_CC="gcc"
2438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2439 break 2
2441 done
2442 done
2443 IFS=$as_save_IFS
2447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2448 if test -n "$ac_ct_CC"; then
2449 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2450 echo "${ECHO_T}$ac_ct_CC" >&6; }
2451 else
2452 { echo "$as_me:$LINENO: result: no" >&5
2453 echo "${ECHO_T}no" >&6; }
2456 if test "x$ac_ct_CC" = x; then
2457 CC=""
2458 else
2459 case $cross_compiling:$ac_tool_warned in
2460 yes:)
2461 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2462 whose name does not start with the host triplet. If you think this
2463 configuration is useful to you, please write to autoconf@gnu.org." >&5
2464 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2465 whose name does not start with the host triplet. If you think this
2466 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2467 ac_tool_warned=yes ;;
2468 esac
2469 CC=$ac_ct_CC
2471 else
2472 CC="$ac_cv_prog_CC"
2475 if test -z "$CC"; then
2476 if test -n "$ac_tool_prefix"; then
2477 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2478 set dummy ${ac_tool_prefix}cc; ac_word=$2
2479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2481 if test "${ac_cv_prog_CC+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 else
2484 if test -n "$CC"; then
2485 ac_cv_prog_CC="$CC" # Let the user override the test.
2486 else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2494 ac_cv_prog_CC="${ac_tool_prefix}cc"
2495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 break 2
2498 done
2499 done
2500 IFS=$as_save_IFS
2504 CC=$ac_cv_prog_CC
2505 if test -n "$CC"; then
2506 { echo "$as_me:$LINENO: result: $CC" >&5
2507 echo "${ECHO_T}$CC" >&6; }
2508 else
2509 { echo "$as_me:$LINENO: result: no" >&5
2510 echo "${ECHO_T}no" >&6; }
2516 if test -z "$CC"; then
2517 # Extract the first word of "cc", so it can be a program name with args.
2518 set dummy cc; ac_word=$2
2519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2521 if test "${ac_cv_prog_CC+set}" = set; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
2523 else
2524 if test -n "$CC"; then
2525 ac_cv_prog_CC="$CC" # Let the user override the test.
2526 else
2527 ac_prog_rejected=no
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH
2531 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
2533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2535 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2536 ac_prog_rejected=yes
2537 continue
2539 ac_cv_prog_CC="cc"
2540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 break 2
2543 done
2544 done
2545 IFS=$as_save_IFS
2547 if test $ac_prog_rejected = yes; then
2548 # We found a bogon in the path, so make sure we never use it.
2549 set dummy $ac_cv_prog_CC
2550 shift
2551 if test $# != 0; then
2552 # We chose a different compiler from the bogus one.
2553 # However, it has the same basename, so the bogon will be chosen
2554 # first if we set CC to just the basename; use the full file name.
2555 shift
2556 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2561 CC=$ac_cv_prog_CC
2562 if test -n "$CC"; then
2563 { echo "$as_me:$LINENO: result: $CC" >&5
2564 echo "${ECHO_T}$CC" >&6; }
2565 else
2566 { echo "$as_me:$LINENO: result: no" >&5
2567 echo "${ECHO_T}no" >&6; }
2572 if test -z "$CC"; then
2573 if test -n "$ac_tool_prefix"; then
2574 for ac_prog in cl.exe
2576 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2577 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2580 if test "${ac_cv_prog_CC+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 else
2583 if test -n "$CC"; then
2584 ac_cv_prog_CC="$CC" # Let the user override the test.
2585 else
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2593 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 break 2
2597 done
2598 done
2599 IFS=$as_save_IFS
2603 CC=$ac_cv_prog_CC
2604 if test -n "$CC"; then
2605 { echo "$as_me:$LINENO: result: $CC" >&5
2606 echo "${ECHO_T}$CC" >&6; }
2607 else
2608 { echo "$as_me:$LINENO: result: no" >&5
2609 echo "${ECHO_T}no" >&6; }
2613 test -n "$CC" && break
2614 done
2616 if test -z "$CC"; then
2617 ac_ct_CC=$CC
2618 for ac_prog in cl.exe
2620 # Extract the first word of "$ac_prog", so it can be a program name with args.
2621 set dummy $ac_prog; ac_word=$2
2622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2624 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 else
2627 if test -n "$ac_ct_CC"; then
2628 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2629 else
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2637 ac_cv_prog_ac_ct_CC="$ac_prog"
2638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2639 break 2
2641 done
2642 done
2643 IFS=$as_save_IFS
2647 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2648 if test -n "$ac_ct_CC"; then
2649 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2650 echo "${ECHO_T}$ac_ct_CC" >&6; }
2651 else
2652 { echo "$as_me:$LINENO: result: no" >&5
2653 echo "${ECHO_T}no" >&6; }
2657 test -n "$ac_ct_CC" && break
2658 done
2660 if test "x$ac_ct_CC" = x; then
2661 CC=""
2662 else
2663 case $cross_compiling:$ac_tool_warned in
2664 yes:)
2665 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2666 whose name does not start with the host triplet. If you think this
2667 configuration is useful to you, please write to autoconf@gnu.org." >&5
2668 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2669 whose name does not start with the host triplet. If you think this
2670 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2671 ac_tool_warned=yes ;;
2672 esac
2673 CC=$ac_ct_CC
2680 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2681 See \`config.log' for more details." >&5
2682 echo "$as_me: error: no acceptable C compiler found in \$PATH
2683 See \`config.log' for more details." >&2;}
2684 { (exit 1); exit 1; }; }
2686 # Provide some information about the compiler.
2687 echo "$as_me:$LINENO: checking for C compiler version" >&5
2688 ac_compiler=`set X $ac_compile; echo $2`
2689 { (ac_try="$ac_compiler --version >&5"
2690 case "(($ac_try" in
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2693 esac
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695 (eval "$ac_compiler --version >&5") 2>&5
2696 ac_status=$?
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }
2699 { (ac_try="$ac_compiler -v >&5"
2700 case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703 esac
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_compiler -v >&5") 2>&5
2706 ac_status=$?
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }
2709 { (ac_try="$ac_compiler -V >&5"
2710 case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713 esac
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_compiler -V >&5") 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }
2720 cat >conftest.$ac_ext <<_ACEOF
2721 /* confdefs.h. */
2722 _ACEOF
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h. */
2728 main ()
2732 return 0;
2734 _ACEOF
2735 ac_clean_files_save=$ac_clean_files
2736 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2737 # Try to create an executable without -o first, disregard a.out.
2738 # It will help us diagnose broken compilers, and finding out an intuition
2739 # of exeext.
2740 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2741 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2742 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2744 # List of possible output files, starting from the most likely.
2745 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2746 # only as a last resort. b.out is created by i960 compilers.
2747 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2749 # The IRIX 6 linker writes into existing files which may not be
2750 # executable, retaining their permissions. Remove them first so a
2751 # subsequent execution test works.
2752 ac_rmfiles=
2753 for ac_file in $ac_files
2755 case $ac_file in
2756 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2757 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2758 esac
2759 done
2760 rm -f $ac_rmfiles
2762 if { (ac_try="$ac_link_default"
2763 case "(($ac_try" in
2764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765 *) ac_try_echo=$ac_try;;
2766 esac
2767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2768 (eval "$ac_link_default") 2>&5
2769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; then
2772 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2773 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2774 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2775 # so that the user can short-circuit this test for compilers unknown to
2776 # Autoconf.
2777 for ac_file in $ac_files
2779 test -f "$ac_file" || continue
2780 case $ac_file in
2781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2783 [ab].out )
2784 # We found the default executable, but exeext='' is most
2785 # certainly right.
2786 break;;
2787 *.* )
2788 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2789 then :; else
2790 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2792 # We set ac_cv_exeext here because the later test for it is not
2793 # safe: cross compilers may not add the suffix if given an `-o'
2794 # argument, so we may need to know it at that point already.
2795 # Even if this section looks crufty: it has the advantage of
2796 # actually working.
2797 break;;
2799 break;;
2800 esac
2801 done
2802 test "$ac_cv_exeext" = no && ac_cv_exeext=
2804 else
2805 echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2808 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2809 See \`config.log' for more details." >&5
2810 echo "$as_me: error: C compiler cannot create executables
2811 See \`config.log' for more details." >&2;}
2812 { (exit 77); exit 77; }; }
2815 ac_exeext=$ac_cv_exeext
2816 { echo "$as_me:$LINENO: result: $ac_file" >&5
2817 echo "${ECHO_T}$ac_file" >&6; }
2819 # Check that the compiler produces executables we can run. If not, either
2820 # the compiler is broken, or we cross compile.
2821 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2822 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2823 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2824 # If not cross compiling, check that we can run a simple program.
2825 if test "$cross_compiling" != yes; then
2826 if { ac_try='./$ac_file'
2827 { (case "(($ac_try" in
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2830 esac
2831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832 (eval "$ac_try") 2>&5
2833 ac_status=$?
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; }; then
2836 cross_compiling=no
2837 else
2838 if test "$cross_compiling" = maybe; then
2839 cross_compiling=yes
2840 else
2841 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2842 If you meant to cross compile, use \`--host'.
2843 See \`config.log' for more details." >&5
2844 echo "$as_me: error: cannot run C compiled programs.
2845 If you meant to cross compile, use \`--host'.
2846 See \`config.log' for more details." >&2;}
2847 { (exit 1); exit 1; }; }
2851 { echo "$as_me:$LINENO: result: yes" >&5
2852 echo "${ECHO_T}yes" >&6; }
2854 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2855 ac_clean_files=$ac_clean_files_save
2856 # Check that the compiler produces executables we can run. If not, either
2857 # the compiler is broken, or we cross compile.
2858 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2859 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2860 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2861 echo "${ECHO_T}$cross_compiling" >&6; }
2863 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2864 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2865 if { (ac_try="$ac_link"
2866 case "(($ac_try" in
2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 *) ac_try_echo=$ac_try;;
2869 esac
2870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2871 (eval "$ac_link") 2>&5
2872 ac_status=$?
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; then
2875 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2876 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2877 # work properly (i.e., refer to `conftest.exe'), while it won't with
2878 # `rm'.
2879 for ac_file in conftest.exe conftest conftest.*; do
2880 test -f "$ac_file" || continue
2881 case $ac_file in
2882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2883 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2884 break;;
2885 * ) break;;
2886 esac
2887 done
2888 else
2889 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2890 See \`config.log' for more details." >&5
2891 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2892 See \`config.log' for more details." >&2;}
2893 { (exit 1); exit 1; }; }
2896 rm -f conftest$ac_cv_exeext
2897 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2898 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2900 rm -f conftest.$ac_ext
2901 EXEEXT=$ac_cv_exeext
2902 ac_exeext=$EXEEXT
2903 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2904 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2905 if test "${ac_cv_objext+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2907 else
2908 cat >conftest.$ac_ext <<_ACEOF
2909 /* confdefs.h. */
2910 _ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h. */
2916 main ()
2920 return 0;
2922 _ACEOF
2923 rm -f conftest.o conftest.obj
2924 if { (ac_try="$ac_compile"
2925 case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2928 esac
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930 (eval "$ac_compile") 2>&5
2931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; then
2934 for ac_file in conftest.o conftest.obj conftest.*; do
2935 test -f "$ac_file" || continue;
2936 case $ac_file in
2937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2938 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2939 break;;
2940 esac
2941 done
2942 else
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2946 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2947 See \`config.log' for more details." >&5
2948 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2949 See \`config.log' for more details." >&2;}
2950 { (exit 1); exit 1; }; }
2953 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2955 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2956 echo "${ECHO_T}$ac_cv_objext" >&6; }
2957 OBJEXT=$ac_cv_objext
2958 ac_objext=$OBJEXT
2959 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2960 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2961 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 else
2964 cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h. */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2972 main ()
2974 #ifndef __GNUC__
2975 choke me
2976 #endif
2979 return 0;
2981 _ACEOF
2982 rm -f conftest.$ac_objext
2983 if { (ac_try="$ac_compile"
2984 case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2987 esac
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_compile") 2>conftest.er1
2990 ac_status=$?
2991 grep -v '^ *+' conftest.er1 >conftest.err
2992 rm -f conftest.er1
2993 cat conftest.err >&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } &&
2996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
3003 ac_status=$?
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }; } &&
3006 { ac_try='test -s conftest.$ac_objext'
3007 { (case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010 esac
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_try") 2>&5
3013 ac_status=$?
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; }; then
3016 ac_compiler_gnu=yes
3017 else
3018 echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3021 ac_compiler_gnu=no
3024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3025 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3028 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3029 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3030 GCC=`test $ac_compiler_gnu = yes && echo yes`
3031 ac_test_CFLAGS=${CFLAGS+set}
3032 ac_save_CFLAGS=$CFLAGS
3033 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3034 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3035 if test "${ac_cv_prog_cc_g+set}" = set; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 else
3038 ac_save_c_werror_flag=$ac_c_werror_flag
3039 ac_c_werror_flag=yes
3040 ac_cv_prog_cc_g=no
3041 CFLAGS="-g"
3042 cat >conftest.$ac_ext <<_ACEOF
3043 /* confdefs.h. */
3044 _ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3050 main ()
3054 return 0;
3056 _ACEOF
3057 rm -f conftest.$ac_objext
3058 if { (ac_try="$ac_compile"
3059 case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3062 esac
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_compile") 2>conftest.er1
3065 ac_status=$?
3066 grep -v '^ *+' conftest.er1 >conftest.err
3067 rm -f conftest.er1
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
3078 ac_status=$?
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; } &&
3081 { ac_try='test -s conftest.$ac_objext'
3082 { (case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085 esac
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_try") 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; }; then
3091 ac_cv_prog_cc_g=yes
3092 else
3093 echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3096 CFLAGS=""
3097 cat >conftest.$ac_ext <<_ACEOF
3098 /* confdefs.h. */
3099 _ACEOF
3100 cat confdefs.h >>conftest.$ac_ext
3101 cat >>conftest.$ac_ext <<_ACEOF
3102 /* end confdefs.h. */
3105 main ()
3109 return 0;
3111 _ACEOF
3112 rm -f conftest.$ac_objext
3113 if { (ac_try="$ac_compile"
3114 case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117 esac
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_compile") 2>conftest.er1
3120 ac_status=$?
3121 grep -v '^ *+' conftest.er1 >conftest.err
3122 rm -f conftest.er1
3123 cat conftest.err >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } &&
3126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
3133 ac_status=$?
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; } &&
3136 { ac_try='test -s conftest.$ac_objext'
3137 { (case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140 esac
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_try") 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
3147 else
3148 echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3151 ac_c_werror_flag=$ac_save_c_werror_flag
3152 CFLAGS="-g"
3153 cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h. */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3161 main ()
3165 return 0;
3167 _ACEOF
3168 rm -f conftest.$ac_objext
3169 if { (ac_try="$ac_compile"
3170 case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173 esac
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_compile") 2>conftest.er1
3176 ac_status=$?
3177 grep -v '^ *+' conftest.er1 >conftest.err
3178 rm -f conftest.er1
3179 cat conftest.err >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } &&
3182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3183 { (case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186 esac
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_try") 2>&5
3189 ac_status=$?
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; } &&
3192 { ac_try='test -s conftest.$ac_objext'
3193 { (case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196 esac
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_try") 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
3202 ac_cv_prog_cc_g=yes
3203 else
3204 echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 ac_c_werror_flag=$ac_save_c_werror_flag
3219 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3220 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3221 if test "$ac_test_CFLAGS" = set; then
3222 CFLAGS=$ac_save_CFLAGS
3223 elif test $ac_cv_prog_cc_g = yes; then
3224 if test "$GCC" = yes; then
3225 CFLAGS="-g -O2"
3226 else
3227 CFLAGS="-g"
3229 else
3230 if test "$GCC" = yes; then
3231 CFLAGS="-O2"
3232 else
3233 CFLAGS=
3236 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3237 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3238 if test "${ac_cv_prog_cc_c89+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3240 else
3241 ac_cv_prog_cc_c89=no
3242 ac_save_CC=$CC
3243 cat >conftest.$ac_ext <<_ACEOF
3244 /* confdefs.h. */
3245 _ACEOF
3246 cat confdefs.h >>conftest.$ac_ext
3247 cat >>conftest.$ac_ext <<_ACEOF
3248 /* end confdefs.h. */
3249 #include <stdarg.h>
3250 #include <stdio.h>
3251 #include <sys/types.h>
3252 #include <sys/stat.h>
3253 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3254 struct buf { int x; };
3255 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3256 static char *e (p, i)
3257 char **p;
3258 int i;
3260 return p[i];
3262 static char *f (char * (*g) (char **, int), char **p, ...)
3264 char *s;
3265 va_list v;
3266 va_start (v,p);
3267 s = g (p, va_arg (v,int));
3268 va_end (v);
3269 return s;
3272 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3273 function prototypes and stuff, but not '\xHH' hex character constants.
3274 These don't provoke an error unfortunately, instead are silently treated
3275 as 'x'. The following induces an error, until -std is added to get
3276 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3277 array size at least. It's necessary to write '\x00'==0 to get something
3278 that's true only with -std. */
3279 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3281 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3282 inside strings and character constants. */
3283 #define FOO(x) 'x'
3284 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3286 int test (int i, double x);
3287 struct s1 {int (*f) (int a);};
3288 struct s2 {int (*f) (double a);};
3289 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3290 int argc;
3291 char **argv;
3293 main ()
3295 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3297 return 0;
3299 _ACEOF
3300 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3301 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3303 CC="$ac_save_CC $ac_arg"
3304 rm -f conftest.$ac_objext
3305 if { (ac_try="$ac_compile"
3306 case "(($ac_try" in
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3309 esac
3310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3311 (eval "$ac_compile") 2>conftest.er1
3312 ac_status=$?
3313 grep -v '^ *+' conftest.er1 >conftest.err
3314 rm -f conftest.er1
3315 cat conftest.err >&5
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); } &&
3318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; } &&
3328 { ac_try='test -s conftest.$ac_objext'
3329 { (case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3332 esac
3333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334 (eval "$ac_try") 2>&5
3335 ac_status=$?
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }; }; then
3338 ac_cv_prog_cc_c89=$ac_arg
3339 else
3340 echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3346 rm -f core conftest.err conftest.$ac_objext
3347 test "x$ac_cv_prog_cc_c89" != "xno" && break
3348 done
3349 rm -f conftest.$ac_ext
3350 CC=$ac_save_CC
3353 # AC_CACHE_VAL
3354 case "x$ac_cv_prog_cc_c89" in
3356 { echo "$as_me:$LINENO: result: none needed" >&5
3357 echo "${ECHO_T}none needed" >&6; } ;;
3358 xno)
3359 { echo "$as_me:$LINENO: result: unsupported" >&5
3360 echo "${ECHO_T}unsupported" >&6; } ;;
3362 CC="$CC $ac_cv_prog_cc_c89"
3363 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3364 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3365 esac
3368 ac_ext=c
3369 ac_cpp='$CPP $CPPFLAGS'
3370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375 ac_ext=c
3376 ac_cpp='$CPP $CPPFLAGS'
3377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3380 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3381 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3382 # On Suns, sometimes $CPP names a directory.
3383 if test -n "$CPP" && test -d "$CPP"; then
3384 CPP=
3386 if test -z "$CPP"; then
3387 if test "${ac_cv_prog_CPP+set}" = set; then
3388 echo $ECHO_N "(cached) $ECHO_C" >&6
3389 else
3390 # Double quotes because CPP needs to be expanded
3391 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3393 ac_preproc_ok=false
3394 for ac_c_preproc_warn_flag in '' yes
3396 # Use a header file that comes with gcc, so configuring glibc
3397 # with a fresh cross-compiler works.
3398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3399 # <limits.h> exists even on freestanding compilers.
3400 # On the NeXT, cc -E runs the code through the compiler's parser,
3401 # not just through cpp. "Syntax error" is here to catch this case.
3402 cat >conftest.$ac_ext <<_ACEOF
3403 /* confdefs.h. */
3404 _ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3408 #ifdef __STDC__
3409 # include <limits.h>
3410 #else
3411 # include <assert.h>
3412 #endif
3413 Syntax error
3414 _ACEOF
3415 if { (ac_try="$ac_cpp conftest.$ac_ext"
3416 case "(($ac_try" in
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3419 esac
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3422 ac_status=$?
3423 grep -v '^ *+' conftest.er1 >conftest.err
3424 rm -f conftest.er1
3425 cat conftest.err >&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } >/dev/null; then
3428 if test -s conftest.err; then
3429 ac_cpp_err=$ac_c_preproc_warn_flag
3430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3431 else
3432 ac_cpp_err=
3434 else
3435 ac_cpp_err=yes
3437 if test -z "$ac_cpp_err"; then
3439 else
3440 echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3443 # Broken: fails on valid input.
3444 continue
3447 rm -f conftest.err conftest.$ac_ext
3449 # OK, works on sane cases. Now check whether nonexistent headers
3450 # can be detected and how.
3451 cat >conftest.$ac_ext <<_ACEOF
3452 /* confdefs.h. */
3453 _ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3457 #include <ac_nonexistent.h>
3458 _ACEOF
3459 if { (ac_try="$ac_cpp conftest.$ac_ext"
3460 case "(($ac_try" in
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3463 esac
3464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3466 ac_status=$?
3467 grep -v '^ *+' conftest.er1 >conftest.err
3468 rm -f conftest.er1
3469 cat conftest.err >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); } >/dev/null; then
3472 if test -s conftest.err; then
3473 ac_cpp_err=$ac_c_preproc_warn_flag
3474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3475 else
3476 ac_cpp_err=
3478 else
3479 ac_cpp_err=yes
3481 if test -z "$ac_cpp_err"; then
3482 # Broken: success on invalid input.
3483 continue
3484 else
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3488 # Passes both tests.
3489 ac_preproc_ok=:
3490 break
3493 rm -f conftest.err conftest.$ac_ext
3495 done
3496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3497 rm -f conftest.err conftest.$ac_ext
3498 if $ac_preproc_ok; then
3499 break
3502 done
3503 ac_cv_prog_CPP=$CPP
3506 CPP=$ac_cv_prog_CPP
3507 else
3508 ac_cv_prog_CPP=$CPP
3510 { echo "$as_me:$LINENO: result: $CPP" >&5
3511 echo "${ECHO_T}$CPP" >&6; }
3512 ac_preproc_ok=false
3513 for ac_c_preproc_warn_flag in '' yes
3515 # Use a header file that comes with gcc, so configuring glibc
3516 # with a fresh cross-compiler works.
3517 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3518 # <limits.h> exists even on freestanding compilers.
3519 # On the NeXT, cc -E runs the code through the compiler's parser,
3520 # not just through cpp. "Syntax error" is here to catch this case.
3521 cat >conftest.$ac_ext <<_ACEOF
3522 /* confdefs.h. */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3527 #ifdef __STDC__
3528 # include <limits.h>
3529 #else
3530 # include <assert.h>
3531 #endif
3532 Syntax error
3533 _ACEOF
3534 if { (ac_try="$ac_cpp conftest.$ac_ext"
3535 case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3538 esac
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3541 ac_status=$?
3542 grep -v '^ *+' conftest.er1 >conftest.err
3543 rm -f conftest.er1
3544 cat conftest.err >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); } >/dev/null; then
3547 if test -s conftest.err; then
3548 ac_cpp_err=$ac_c_preproc_warn_flag
3549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3550 else
3551 ac_cpp_err=
3553 else
3554 ac_cpp_err=yes
3556 if test -z "$ac_cpp_err"; then
3558 else
3559 echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3562 # Broken: fails on valid input.
3563 continue
3566 rm -f conftest.err conftest.$ac_ext
3568 # OK, works on sane cases. Now check whether nonexistent headers
3569 # can be detected and how.
3570 cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h. */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3576 #include <ac_nonexistent.h>
3577 _ACEOF
3578 if { (ac_try="$ac_cpp conftest.$ac_ext"
3579 case "(($ac_try" in
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3582 esac
3583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3585 ac_status=$?
3586 grep -v '^ *+' conftest.er1 >conftest.err
3587 rm -f conftest.er1
3588 cat conftest.err >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); } >/dev/null; then
3591 if test -s conftest.err; then
3592 ac_cpp_err=$ac_c_preproc_warn_flag
3593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3594 else
3595 ac_cpp_err=
3597 else
3598 ac_cpp_err=yes
3600 if test -z "$ac_cpp_err"; then
3601 # Broken: success on invalid input.
3602 continue
3603 else
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3607 # Passes both tests.
3608 ac_preproc_ok=:
3609 break
3612 rm -f conftest.err conftest.$ac_ext
3614 done
3615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3616 rm -f conftest.err conftest.$ac_ext
3617 if $ac_preproc_ok; then
3619 else
3620 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3621 See \`config.log' for more details." >&5
3622 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3623 See \`config.log' for more details." >&2;}
3624 { (exit 1); exit 1; }; }
3627 ac_ext=c
3628 ac_cpp='$CPP $CPPFLAGS'
3629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3634 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3635 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3636 if test "${ac_cv_path_GREP+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 else
3639 # Extract the first word of "grep ggrep" to use in msg output
3640 if test -z "$GREP"; then
3641 set dummy grep ggrep; ac_prog_name=$2
3642 if test "${ac_cv_path_GREP+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3644 else
3645 ac_path_GREP_found=false
3646 # Loop through the user's path and test for each of PROGNAME-LIST
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3650 IFS=$as_save_IFS
3651 test -z "$as_dir" && as_dir=.
3652 for ac_prog in grep ggrep; do
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3655 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3656 # Check for GNU ac_path_GREP and select it if it is found.
3657 # Check for GNU $ac_path_GREP
3658 case `"$ac_path_GREP" --version 2>&1` in
3659 *GNU*)
3660 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3662 ac_count=0
3663 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3664 while :
3666 cat "conftest.in" "conftest.in" >"conftest.tmp"
3667 mv "conftest.tmp" "conftest.in"
3668 cp "conftest.in" "conftest.nl"
3669 echo 'GREP' >> "conftest.nl"
3670 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3671 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3672 ac_count=`expr $ac_count + 1`
3673 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3674 # Best one so far, save it but keep looking for a better one
3675 ac_cv_path_GREP="$ac_path_GREP"
3676 ac_path_GREP_max=$ac_count
3678 # 10*(2^10) chars as input seems more than enough
3679 test $ac_count -gt 10 && break
3680 done
3681 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3682 esac
3685 $ac_path_GREP_found && break 3
3686 done
3687 done
3689 done
3690 IFS=$as_save_IFS
3695 GREP="$ac_cv_path_GREP"
3696 if test -z "$GREP"; then
3697 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3698 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3699 { (exit 1); exit 1; }; }
3702 else
3703 ac_cv_path_GREP=$GREP
3708 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3709 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3710 GREP="$ac_cv_path_GREP"
3713 { echo "$as_me:$LINENO: checking for egrep" >&5
3714 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3715 if test "${ac_cv_path_EGREP+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 else
3718 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3719 then ac_cv_path_EGREP="$GREP -E"
3720 else
3721 # Extract the first word of "egrep" to use in msg output
3722 if test -z "$EGREP"; then
3723 set dummy egrep; ac_prog_name=$2
3724 if test "${ac_cv_path_EGREP+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 else
3727 ac_path_EGREP_found=false
3728 # Loop through the user's path and test for each of PROGNAME-LIST
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
3734 for ac_prog in egrep; do
3735 for ac_exec_ext in '' $ac_executable_extensions; do
3736 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3737 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3738 # Check for GNU ac_path_EGREP and select it if it is found.
3739 # Check for GNU $ac_path_EGREP
3740 case `"$ac_path_EGREP" --version 2>&1` in
3741 *GNU*)
3742 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3744 ac_count=0
3745 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3746 while :
3748 cat "conftest.in" "conftest.in" >"conftest.tmp"
3749 mv "conftest.tmp" "conftest.in"
3750 cp "conftest.in" "conftest.nl"
3751 echo 'EGREP' >> "conftest.nl"
3752 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3753 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3754 ac_count=`expr $ac_count + 1`
3755 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3756 # Best one so far, save it but keep looking for a better one
3757 ac_cv_path_EGREP="$ac_path_EGREP"
3758 ac_path_EGREP_max=$ac_count
3760 # 10*(2^10) chars as input seems more than enough
3761 test $ac_count -gt 10 && break
3762 done
3763 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3764 esac
3767 $ac_path_EGREP_found && break 3
3768 done
3769 done
3771 done
3772 IFS=$as_save_IFS
3777 EGREP="$ac_cv_path_EGREP"
3778 if test -z "$EGREP"; then
3779 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3780 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3781 { (exit 1); exit 1; }; }
3784 else
3785 ac_cv_path_EGREP=$EGREP
3791 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3792 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3793 EGREP="$ac_cv_path_EGREP"
3796 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3797 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3798 if test "${ac_cv_header_stdc+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801 cat >conftest.$ac_ext <<_ACEOF
3802 /* confdefs.h. */
3803 _ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h. */
3807 #include <stdlib.h>
3808 #include <stdarg.h>
3809 #include <string.h>
3810 #include <float.h>
3813 main ()
3817 return 0;
3819 _ACEOF
3820 rm -f conftest.$ac_objext
3821 if { (ac_try="$ac_compile"
3822 case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3825 esac
3826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3827 (eval "$ac_compile") 2>conftest.er1
3828 ac_status=$?
3829 grep -v '^ *+' conftest.er1 >conftest.err
3830 rm -f conftest.er1
3831 cat conftest.err >&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); } &&
3834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
3841 ac_status=$?
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; } &&
3844 { ac_try='test -s conftest.$ac_objext'
3845 { (case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3848 esac
3849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3850 (eval "$ac_try") 2>&5
3851 ac_status=$?
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; }; then
3854 ac_cv_header_stdc=yes
3855 else
3856 echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.$ac_ext >&5
3859 ac_cv_header_stdc=no
3862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3864 if test $ac_cv_header_stdc = yes; then
3865 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3866 cat >conftest.$ac_ext <<_ACEOF
3867 /* confdefs.h. */
3868 _ACEOF
3869 cat confdefs.h >>conftest.$ac_ext
3870 cat >>conftest.$ac_ext <<_ACEOF
3871 /* end confdefs.h. */
3872 #include <string.h>
3874 _ACEOF
3875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3876 $EGREP "memchr" >/dev/null 2>&1; then
3878 else
3879 ac_cv_header_stdc=no
3881 rm -f conftest*
3885 if test $ac_cv_header_stdc = yes; then
3886 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3887 cat >conftest.$ac_ext <<_ACEOF
3888 /* confdefs.h. */
3889 _ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3893 #include <stdlib.h>
3895 _ACEOF
3896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3897 $EGREP "free" >/dev/null 2>&1; then
3899 else
3900 ac_cv_header_stdc=no
3902 rm -f conftest*
3906 if test $ac_cv_header_stdc = yes; then
3907 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3908 if test "$cross_compiling" = yes; then
3910 else
3911 cat >conftest.$ac_ext <<_ACEOF
3912 /* confdefs.h. */
3913 _ACEOF
3914 cat confdefs.h >>conftest.$ac_ext
3915 cat >>conftest.$ac_ext <<_ACEOF
3916 /* end confdefs.h. */
3917 #include <ctype.h>
3918 #include <stdlib.h>
3919 #if ((' ' & 0x0FF) == 0x020)
3920 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3921 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3922 #else
3923 # define ISLOWER(c) \
3924 (('a' <= (c) && (c) <= 'i') \
3925 || ('j' <= (c) && (c) <= 'r') \
3926 || ('s' <= (c) && (c) <= 'z'))
3927 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3928 #endif
3930 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3932 main ()
3934 int i;
3935 for (i = 0; i < 256; i++)
3936 if (XOR (islower (i), ISLOWER (i))
3937 || toupper (i) != TOUPPER (i))
3938 return 2;
3939 return 0;
3941 _ACEOF
3942 rm -f conftest$ac_exeext
3943 if { (ac_try="$ac_link"
3944 case "(($ac_try" in
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3947 esac
3948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3949 (eval "$ac_link") 2>&5
3950 ac_status=$?
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3953 { (case "(($ac_try" in
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3956 esac
3957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3958 (eval "$ac_try") 2>&5
3959 ac_status=$?
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; }; then
3963 else
3964 echo "$as_me: program exited with status $ac_status" >&5
3965 echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3968 ( exit $ac_status )
3969 ac_cv_header_stdc=no
3971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3977 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3978 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3979 if test $ac_cv_header_stdc = yes; then
3981 cat >>confdefs.h <<\_ACEOF
3982 #define STDC_HEADERS 1
3983 _ACEOF
3987 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3997 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3998 inttypes.h stdint.h unistd.h
4000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006 cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h. */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4012 $ac_includes_default
4014 #include <$ac_header>
4015 _ACEOF
4016 rm -f conftest.$ac_objext
4017 if { (ac_try="$ac_compile"
4018 case "(($ac_try" in
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4021 esac
4022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4023 (eval "$ac_compile") 2>conftest.er1
4024 ac_status=$?
4025 grep -v '^ *+' conftest.er1 >conftest.err
4026 rm -f conftest.er1
4027 cat conftest.err >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } &&
4030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
4037 ac_status=$?
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; } &&
4040 { ac_try='test -s conftest.$ac_objext'
4041 { (case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4044 esac
4045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4046 (eval "$ac_try") 2>&5
4047 ac_status=$?
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); }; }; then
4050 eval "$as_ac_Header=yes"
4051 else
4052 echo "$as_me: failed program was:" >&5
4053 sed 's/^/| /' conftest.$ac_ext >&5
4055 eval "$as_ac_Header=no"
4058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060 ac_res=`eval echo '${'$as_ac_Header'}'`
4061 { echo "$as_me:$LINENO: result: $ac_res" >&5
4062 echo "${ECHO_T}$ac_res" >&6; }
4063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4064 cat >>confdefs.h <<_ACEOF
4065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4066 _ACEOF
4070 done
4073 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4074 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4075 if test "${ac_cv_c_bigendian+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 else
4078 # See if sys/param.h defines the BYTE_ORDER macro.
4079 cat >conftest.$ac_ext <<_ACEOF
4080 /* confdefs.h. */
4081 _ACEOF
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4085 #include <sys/types.h>
4086 #include <sys/param.h>
4089 main ()
4091 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4092 bogus endian macros
4093 #endif
4096 return 0;
4098 _ACEOF
4099 rm -f conftest.$ac_objext
4100 if { (ac_try="$ac_compile"
4101 case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4104 esac
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_compile") 2>conftest.er1
4107 ac_status=$?
4108 grep -v '^ *+' conftest.er1 >conftest.err
4109 rm -f conftest.er1
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } &&
4113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
4120 ac_status=$?
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; } &&
4123 { ac_try='test -s conftest.$ac_objext'
4124 { (case "(($ac_try" in
4125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126 *) ac_try_echo=$ac_try;;
4127 esac
4128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4129 (eval "$ac_try") 2>&5
4130 ac_status=$?
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; }; then
4133 # It does; now see whether it defined to BIG_ENDIAN or not.
4134 cat >conftest.$ac_ext <<_ACEOF
4135 /* confdefs.h. */
4136 _ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4140 #include <sys/types.h>
4141 #include <sys/param.h>
4144 main ()
4146 #if BYTE_ORDER != BIG_ENDIAN
4147 not big endian
4148 #endif
4151 return 0;
4153 _ACEOF
4154 rm -f conftest.$ac_objext
4155 if { (ac_try="$ac_compile"
4156 case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4159 esac
4160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_compile") 2>conftest.er1
4162 ac_status=$?
4163 grep -v '^ *+' conftest.er1 >conftest.err
4164 rm -f conftest.er1
4165 cat conftest.err >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } &&
4168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; } &&
4178 { ac_try='test -s conftest.$ac_objext'
4179 { (case "(($ac_try" in
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4182 esac
4183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184 (eval "$ac_try") 2>&5
4185 ac_status=$?
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; }; then
4188 ac_cv_c_bigendian=yes
4189 else
4190 echo "$as_me: failed program was:" >&5
4191 sed 's/^/| /' conftest.$ac_ext >&5
4193 ac_cv_c_bigendian=no
4196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4197 else
4198 echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4201 # It does not; compile a test program.
4202 if test "$cross_compiling" = yes; then
4203 # try to guess the endianness by grepping values into an object file
4204 ac_cv_c_bigendian=unknown
4205 cat >conftest.$ac_ext <<_ACEOF
4206 /* confdefs.h. */
4207 _ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4211 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4212 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4213 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4214 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4215 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4216 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4218 main ()
4220 _ascii (); _ebcdic ();
4222 return 0;
4224 _ACEOF
4225 rm -f conftest.$ac_objext
4226 if { (ac_try="$ac_compile"
4227 case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4230 esac
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_compile") 2>conftest.er1
4233 ac_status=$?
4234 grep -v '^ *+' conftest.er1 >conftest.err
4235 rm -f conftest.er1
4236 cat conftest.err >&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } &&
4239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
4246 ac_status=$?
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; } &&
4249 { ac_try='test -s conftest.$ac_objext'
4250 { (case "(($ac_try" in
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4253 esac
4254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255 (eval "$ac_try") 2>&5
4256 ac_status=$?
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; }; then
4259 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4260 ac_cv_c_bigendian=yes
4262 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4263 if test "$ac_cv_c_bigendian" = unknown; then
4264 ac_cv_c_bigendian=no
4265 else
4266 # finding both strings is unlikely to happen, but who knows?
4267 ac_cv_c_bigendian=unknown
4270 else
4271 echo "$as_me: failed program was:" >&5
4272 sed 's/^/| /' conftest.$ac_ext >&5
4277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4278 else
4279 cat >conftest.$ac_ext <<_ACEOF
4280 /* confdefs.h. */
4281 _ACEOF
4282 cat confdefs.h >>conftest.$ac_ext
4283 cat >>conftest.$ac_ext <<_ACEOF
4284 /* end confdefs.h. */
4285 $ac_includes_default
4287 main ()
4290 /* Are we little or big endian? From Harbison&Steele. */
4291 union
4293 long int l;
4294 char c[sizeof (long int)];
4295 } u;
4296 u.l = 1;
4297 return u.c[sizeof (long int) - 1] == 1;
4300 return 0;
4302 _ACEOF
4303 rm -f conftest$ac_exeext
4304 if { (ac_try="$ac_link"
4305 case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308 esac
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_link") 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4314 { (case "(($ac_try" in
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4317 esac
4318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319 (eval "$ac_try") 2>&5
4320 ac_status=$?
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; }; then
4323 ac_cv_c_bigendian=no
4324 else
4325 echo "$as_me: program exited with status $ac_status" >&5
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4329 ( exit $ac_status )
4330 ac_cv_c_bigendian=yes
4332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4341 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4342 case $ac_cv_c_bigendian in
4343 yes)
4344 ENDIAN=big
4347 ENDIAN=little
4350 { { echo "$as_me:$LINENO: error: unknown endianness
4351 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4352 echo "$as_me: error: unknown endianness
4353 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4354 { (exit 1); exit 1; }; } ;;
4355 esac
4358 if test "$cross_compiling" = yes; then
4359 LLVM_CROSS_COMPILING=1
4362 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4363 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4364 if test "${ac_cv_build_exeext+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 else
4367 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4368 ac_cv_build_exeext=.exe
4369 else
4370 ac_build_prefix=${build_alias}-
4372 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4373 set dummy ${ac_build_prefix}gcc; ac_word=$2
4374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4376 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379 if test -n "$BUILD_CC"; then
4380 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4381 else
4382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383 for as_dir in $PATH
4385 IFS=$as_save_IFS
4386 test -z "$as_dir" && as_dir=.
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4389 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 break 2
4393 done
4394 done
4395 IFS=$as_save_IFS
4399 BUILD_CC=$ac_cv_prog_BUILD_CC
4400 if test -n "$BUILD_CC"; then
4401 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4402 echo "${ECHO_T}$BUILD_CC" >&6; }
4403 else
4404 { echo "$as_me:$LINENO: result: no" >&5
4405 echo "${ECHO_T}no" >&6; }
4409 if test -z "$BUILD_CC"; then
4410 # Extract the first word of "gcc", so it can be a program name with args.
4411 set dummy gcc; ac_word=$2
4412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4414 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417 if test -n "$BUILD_CC"; then
4418 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4419 else
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 for as_dir in $PATH
4423 IFS=$as_save_IFS
4424 test -z "$as_dir" && as_dir=.
4425 for ac_exec_ext in '' $ac_executable_extensions; do
4426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4427 ac_cv_prog_BUILD_CC="gcc"
4428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4429 break 2
4431 done
4432 done
4433 IFS=$as_save_IFS
4437 BUILD_CC=$ac_cv_prog_BUILD_CC
4438 if test -n "$BUILD_CC"; then
4439 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4440 echo "${ECHO_T}$BUILD_CC" >&6; }
4441 else
4442 { echo "$as_me:$LINENO: result: no" >&5
4443 echo "${ECHO_T}no" >&6; }
4447 if test -z "$BUILD_CC"; then
4448 # Extract the first word of "cc", so it can be a program name with args.
4449 set dummy cc; ac_word=$2
4450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4452 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455 if test -n "$BUILD_CC"; then
4456 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4457 else
4458 ac_prog_rejected=no
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 for as_dir in $PATH
4462 IFS=$as_save_IFS
4463 test -z "$as_dir" && as_dir=.
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4466 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4467 ac_prog_rejected=yes
4468 continue
4470 ac_cv_prog_BUILD_CC="cc"
4471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4472 break 2
4474 done
4475 done
4476 IFS=$as_save_IFS
4478 if test $ac_prog_rejected = yes; then
4479 # We found a bogon in the path, so make sure we never use it.
4480 set dummy $ac_cv_prog_BUILD_CC
4481 shift
4482 if test $# != 0; then
4483 # We chose a different compiler from the bogus one.
4484 # However, it has the same basename, so the bogon will be chosen
4485 # first if we set BUILD_CC to just the basename; use the full file name.
4486 shift
4487 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4492 BUILD_CC=$ac_cv_prog_BUILD_CC
4493 if test -n "$BUILD_CC"; then
4494 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4495 echo "${ECHO_T}$BUILD_CC" >&6; }
4496 else
4497 { echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6; }
4504 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4505 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4506 { (exit 1); exit 1; }; }
4507 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4508 rm -f conftest*
4509 echo 'int main () { return 0; }' > conftest.$ac_ext
4510 ac_cv_build_exeext=
4511 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4512 (eval $ac_build_link) 2>&5
4513 ac_status=$?
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; then
4516 for file in conftest.*; do
4517 case $file in
4518 *.c | *.o | *.obj | *.dSYM) ;;
4519 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4520 esac
4521 done
4522 else
4523 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4524 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4525 { (exit 1); exit 1; }; }
4527 rm -f conftest*
4528 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4532 BUILD_EXEEXT=""
4533 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4534 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4535 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4536 ac_build_exeext=$BUILD_EXEEXT
4538 ac_build_prefix=${build_alias}-
4539 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4540 set dummy ${ac_build_prefix}g++; ac_word=$2
4541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4543 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 else
4546 if test -n "$BUILD_CXX"; then
4547 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4548 else
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH
4552 IFS=$as_save_IFS
4553 test -z "$as_dir" && as_dir=.
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4556 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4558 break 2
4560 done
4561 done
4562 IFS=$as_save_IFS
4566 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4567 if test -n "$BUILD_CXX"; then
4568 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4569 echo "${ECHO_T}$BUILD_CXX" >&6; }
4570 else
4571 { echo "$as_me:$LINENO: result: no" >&5
4572 echo "${ECHO_T}no" >&6; }
4576 if test -z "$BUILD_CXX"; then
4577 # Extract the first word of "g++", so it can be a program name with args.
4578 set dummy g++; ac_word=$2
4579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4581 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584 if test -n "$BUILD_CXX"; then
4585 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4586 else
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH
4590 IFS=$as_save_IFS
4591 test -z "$as_dir" && as_dir=.
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4594 ac_cv_prog_BUILD_CXX="g++"
4595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4596 break 2
4598 done
4599 done
4600 IFS=$as_save_IFS
4604 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4605 if test -n "$BUILD_CXX"; then
4606 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4607 echo "${ECHO_T}$BUILD_CXX" >&6; }
4608 else
4609 { echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6; }
4614 if test -z "$BUILD_CXX"; then
4615 # Extract the first word of "c++", so it can be a program name with args.
4616 set dummy c++; ac_word=$2
4617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4619 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 else
4622 if test -n "$BUILD_CXX"; then
4623 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4624 else
4625 ac_prog_rejected=no
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4633 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4634 ac_prog_rejected=yes
4635 continue
4637 ac_cv_prog_BUILD_CXX="c++"
4638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 break 2
4641 done
4642 done
4643 IFS=$as_save_IFS
4645 if test $ac_prog_rejected = yes; then
4646 # We found a bogon in the path, so make sure we never use it.
4647 set dummy $ac_cv_prog_BUILD_CXX
4648 shift
4649 if test $# != 0; then
4650 # We chose a different compiler from the bogus one.
4651 # However, it has the same basename, so the bogon will be chosen
4652 # first if we set BUILD_CXX to just the basename; use the full file name.
4653 shift
4654 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4659 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4660 if test -n "$BUILD_CXX"; then
4661 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4662 echo "${ECHO_T}$BUILD_CXX" >&6; }
4663 else
4664 { echo "$as_me:$LINENO: result: no" >&5
4665 echo "${ECHO_T}no" >&6; }
4671 else
4672 LLVM_CROSS_COMPILING=0
4676 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4677 cvsbuild="yes"
4678 optimize="no"
4679 CVSBUILD=CVSBUILD=1
4681 else
4682 cvsbuild="no"
4683 optimize="yes"
4687 # Check whether --enable-optimized was given.
4688 if test "${enable_optimized+set}" = set; then
4689 enableval=$enable_optimized;
4690 else
4691 enableval=$optimize
4694 if test ${enableval} = "no" ; then
4695 ENABLE_OPTIMIZED=
4697 else
4698 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4702 # Check whether --enable-profiling was given.
4703 if test "${enable_profiling+set}" = set; then
4704 enableval=$enable_profiling;
4705 else
4706 enableval="no"
4709 if test ${enableval} = "no" ; then
4710 ENABLE_PROFILING=
4712 else
4713 ENABLE_PROFILING=ENABLE_PROFILING=1
4717 # Check whether --enable-assertions was given.
4718 if test "${enable_assertions+set}" = set; then
4719 enableval=$enable_assertions;
4720 else
4721 enableval="yes"
4724 if test ${enableval} = "yes" ; then
4725 DISABLE_ASSERTIONS=
4727 else
4728 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4732 # Check whether --enable-expensive-checks was given.
4733 if test "${enable_expensive_checks+set}" = set; then
4734 enableval=$enable_expensive_checks;
4735 else
4736 enableval="no"
4739 if test ${enableval} = "yes" ; then
4740 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4742 EXPENSIVE_CHECKS=yes
4744 else
4745 ENABLE_EXPENSIVE_CHECKS=
4747 EXPENSIVE_CHECKS=no
4751 # Check whether --enable-debug-runtime was given.
4752 if test "${enable_debug_runtime+set}" = set; then
4753 enableval=$enable_debug_runtime;
4754 else
4755 enableval=no
4758 if test ${enableval} = "no" ; then
4759 DEBUG_RUNTIME=
4761 else
4762 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4766 # Check whether --enable-debug-symbols was given.
4767 if test "${enable_debug_symbols+set}" = set; then
4768 enableval=$enable_debug_symbols;
4769 else
4770 enableval=no
4773 if test ${enableval} = "no" ; then
4774 DEBUG_SYMBOLS=
4776 else
4777 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4781 # Check whether --enable-jit was given.
4782 if test "${enable_jit+set}" = set; then
4783 enableval=$enable_jit;
4784 else
4785 enableval=default
4788 if test ${enableval} = "no"
4789 then
4790 JIT=
4792 else
4793 case "$llvm_cv_target_arch" in
4794 x86) TARGET_HAS_JIT=1
4796 Sparc) TARGET_HAS_JIT=0
4798 PowerPC) TARGET_HAS_JIT=1
4800 x86_64) TARGET_HAS_JIT=1
4802 Alpha) TARGET_HAS_JIT=1
4804 ARM) TARGET_HAS_JIT=1
4806 Mips) TARGET_HAS_JIT=0
4808 PIC16) TARGET_HAS_JIT=0
4810 XCore) TARGET_HAS_JIT=0
4812 MSP430) TARGET_HAS_JIT=0
4814 SystemZ) TARGET_HAS_JIT=0
4816 Blackfin) TARGET_HAS_JIT=0
4818 MBlaze) TARGET_HAS_JIT=0
4820 *) TARGET_HAS_JIT=0
4822 esac
4825 # Check whether --enable-doxygen was given.
4826 if test "${enable_doxygen+set}" = set; then
4827 enableval=$enable_doxygen;
4828 else
4829 enableval=default
4832 case "$enableval" in
4833 yes) ENABLE_DOXYGEN=1
4835 no) ENABLE_DOXYGEN=0
4837 default) ENABLE_DOXYGEN=0
4839 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4840 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4841 { (exit 1); exit 1; }; } ;;
4842 esac
4844 # Check whether --enable-threads was given.
4845 if test "${enable_threads+set}" = set; then
4846 enableval=$enable_threads;
4847 else
4848 enableval=default
4851 case "$enableval" in
4852 yes) ENABLE_THREADS=1
4854 no) ENABLE_THREADS=0
4856 default) ENABLE_THREADS=1
4858 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4859 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4860 { (exit 1); exit 1; }; } ;;
4861 esac
4863 cat >>confdefs.h <<_ACEOF
4864 #define ENABLE_THREADS $ENABLE_THREADS
4865 _ACEOF
4868 # Check whether --enable-pic was given.
4869 if test "${enable_pic+set}" = set; then
4870 enableval=$enable_pic;
4871 else
4872 enableval=default
4875 case "$enableval" in
4876 yes) ENABLE_PIC=1
4878 no) ENABLE_PIC=0
4880 default) ENABLE_PIC=1
4882 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4883 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4884 { (exit 1); exit 1; }; } ;;
4885 esac
4887 cat >>confdefs.h <<_ACEOF
4888 #define ENABLE_PIC $ENABLE_PIC
4889 _ACEOF
4892 # Check whether --enable-shared was given.
4893 if test "${enable_shared+set}" = set; then
4894 enableval=$enable_shared;
4895 else
4896 enableval=default
4899 case "$enableval" in
4900 yes) ENABLE_SHARED=1
4902 no) ENABLE_SHARED=0
4904 default) ENABLE_SHARED=0
4906 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4907 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4908 { (exit 1); exit 1; }; } ;;
4909 esac
4911 TARGETS_TO_BUILD=""
4912 # Check whether --enable-targets was given.
4913 if test "${enable_targets+set}" = set; then
4914 enableval=$enable_targets;
4915 else
4916 enableval=all
4919 if test "$enableval" = host-only ; then
4920 enableval=host
4922 case "$enableval" in
4923 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
4924 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4925 case "$a_target" in
4926 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4927 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4928 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4929 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4930 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4931 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4932 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4933 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4934 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4935 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4936 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4937 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4938 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4939 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4940 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4941 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4942 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4943 host) case "$llvm_cv_target_arch" in
4944 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4945 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4946 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4947 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4948 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4949 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4950 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4951 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4952 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4953 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4954 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4955 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4956 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4957 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4958 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4959 echo "$as_me: error: Can not set target to build" >&2;}
4960 { (exit 1); exit 1; }; } ;;
4961 esac ;;
4962 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4963 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4964 { (exit 1); exit 1; }; } ;;
4965 esac
4966 done
4968 esac
4969 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4972 # Determine whether we are building LLVM support for the native architecture.
4973 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4974 for a_target in $TARGETS_TO_BUILD; do
4975 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4976 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4978 cat >>confdefs.h <<_ACEOF
4979 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4980 _ACEOF
4983 done
4985 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4986 # target feature def files.
4987 LLVM_ENUM_TARGETS=""
4988 LLVM_ENUM_ASM_PRINTERS=""
4989 LLVM_ENUM_ASM_PARSERS=""
4990 LLVM_ENUM_DISASSEMBLERS=""
4991 for target_to_build in $TARGETS_TO_BUILD; do
4992 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4993 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4994 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4996 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4997 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4999 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5000 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5002 done
5008 # Check whether --enable-cbe-printf-a was given.
5009 if test "${enable_cbe_printf_a+set}" = set; then
5010 enableval=$enable_cbe_printf_a;
5011 else
5012 enableval=default
5015 case "$enableval" in
5016 yes) ENABLE_CBE_PRINTF_A=1
5018 no) ENABLE_CBE_PRINTF_A=0
5020 default) ENABLE_CBE_PRINTF_A=1
5022 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5023 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5024 { (exit 1); exit 1; }; } ;;
5025 esac
5027 cat >>confdefs.h <<_ACEOF
5028 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5029 _ACEOF
5033 # Check whether --with-llvmgccdir was given.
5034 if test "${with_llvmgccdir+set}" = set; then
5035 withval=$with_llvmgccdir;
5036 else
5037 withval=default
5040 case "$withval" in
5041 default) WITH_LLVMGCCDIR=default ;;
5042 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5043 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5044 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5045 { (exit 1); exit 1; }; } ;;
5046 esac
5049 # Check whether --with-llvmgcc was given.
5050 if test "${with_llvmgcc+set}" = set; then
5051 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5052 WITH_LLVMGCCDIR=""
5057 # Check whether --with-llvmgxx was given.
5058 if test "${with_llvmgxx+set}" = set; then
5059 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5060 WITH_LLVMGCCDIR=""
5064 if test -n "$LLVMGCC"; then
5065 LLVMGCCCOMMAND="$LLVMGCC"
5068 if test -n "$LLVMGXX"; then
5069 LLVMGXXCOMMAND="$LLVMGXX"
5072 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5073 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5074 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5075 { (exit 1); exit 1; }; };
5078 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5079 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5080 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5081 { (exit 1); exit 1; }; };
5085 # Check whether --with-clang was given.
5086 if test "${with_clang+set}" = set; then
5087 withval=$with_clang;
5088 else
5089 with_clang=default
5094 # Check whether --with-built-clang was given.
5095 if test "${with_built_clang+set}" = set; then
5096 withval=$with_built_clang;
5097 else
5098 with_built_clang=check
5102 { echo "$as_me:$LINENO: checking clang compiler" >&5
5103 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5104 WITH_CLANGPATH=""
5105 WITH_BUILT_CLANG=0
5106 if test "$with_clang" != "default"; then
5107 WITH_CLANGPATH="$with_clang"
5108 if ! test -x "$WITH_CLANGPATH"; then
5109 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5110 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5111 { (exit 1); exit 1; }; }
5113 elif test "$with_built_clang" = "yes"; then
5114 WITH_BUILT_CLANG=1
5115 elif test "$with_built_clang" = "no"; then
5116 WITH_BUILT_CLANG=0
5117 else
5118 if test "$with_built_clang" != "check"; then
5119 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5120 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5121 { (exit 1); exit 1; }; }
5124 if test -f ${srcdir}/tools/clang/README.txt; then
5125 WITH_BUILT_CLANG=1
5129 if ! test -z "$WITH_CLANGPATH"; then
5130 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5131 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5132 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5133 elif test "$WITH_BUILT_CLANG" = "1"; then
5134 { echo "$as_me:$LINENO: result: built" >&5
5135 echo "${ECHO_T}built" >&6; }
5136 else
5137 { echo "$as_me:$LINENO: result: none" >&5
5138 echo "${ECHO_T}none" >&6; }
5140 CLANGPATH=$WITH_CLANGPATH
5142 CLANGXXPATH=$WITH_CLANGXXPATH
5144 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5148 # Check whether --with-optimize-option was given.
5149 if test "${with_optimize_option+set}" = set; then
5150 withval=$with_optimize_option;
5151 else
5152 withval=default
5155 { echo "$as_me:$LINENO: checking optimization flags" >&5
5156 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5157 case "$withval" in
5158 default)
5159 case "$llvm_cv_os_type" in
5160 MingW) optimize_option=-O3 ;;
5161 *) optimize_option=-O2 ;;
5162 esac ;;
5163 *) optimize_option="$withval" ;;
5164 esac
5165 OPTIMIZE_OPTION=$optimize_option
5167 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5168 echo "${ECHO_T}$optimize_option" >&6; }
5171 # Check whether --with-extra-options was given.
5172 if test "${with_extra_options+set}" = set; then
5173 withval=$with_extra_options;
5174 else
5175 withval=default
5178 case "$withval" in
5179 default) EXTRA_OPTIONS= ;;
5180 *) EXTRA_OPTIONS=$withval ;;
5181 esac
5182 EXTRA_OPTIONS=$EXTRA_OPTIONS
5185 # Check whether --enable-bindings was given.
5186 if test "${enable_bindings+set}" = set; then
5187 enableval=$enable_bindings;
5188 else
5189 enableval=default
5192 BINDINGS_TO_BUILD=""
5193 case "$enableval" in
5194 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5195 all ) BINDINGS_TO_BUILD="ocaml" ;;
5196 none | no) BINDINGS_TO_BUILD="" ;;
5197 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5198 case "$a_binding" in
5199 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5200 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5201 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5202 { (exit 1); exit 1; }; } ;;
5203 esac
5204 done
5206 esac
5209 # Check whether --with-ocaml-libdir was given.
5210 if test "${with_ocaml_libdir+set}" = set; then
5211 withval=$with_ocaml_libdir;
5212 else
5213 withval=auto
5216 case "$withval" in
5217 auto) with_ocaml_libdir="$withval" ;;
5218 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5219 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5220 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5221 { (exit 1); exit 1; }; } ;;
5222 esac
5225 # Check whether --with-c-include-dirs was given.
5226 if test "${with_c_include_dirs+set}" = set; then
5227 withval=$with_c_include_dirs;
5228 else
5229 withval=""
5233 cat >>confdefs.h <<_ACEOF
5234 #define C_INCLUDE_DIRS "$withval"
5235 _ACEOF
5239 # Check whether --with-cxx-include-root was given.
5240 if test "${with_cxx_include_root+set}" = set; then
5241 withval=$with_cxx_include_root;
5242 else
5243 withval=""
5247 cat >>confdefs.h <<_ACEOF
5248 #define CXX_INCLUDE_ROOT "$withval"
5249 _ACEOF
5253 # Check whether --with-cxx-include-arch was given.
5254 if test "${with_cxx_include_arch+set}" = set; then
5255 withval=$with_cxx_include_arch;
5256 else
5257 withval=""
5261 cat >>confdefs.h <<_ACEOF
5262 #define CXX_INCLUDE_ARCH "$withval"
5263 _ACEOF
5267 # Check whether --with-cxx-include-32bit-dir was given.
5268 if test "${with_cxx_include_32bit_dir+set}" = set; then
5269 withval=$with_cxx_include_32bit_dir;
5270 else
5271 withval=""
5275 cat >>confdefs.h <<_ACEOF
5276 #define CXX_INCLUDE_32BIT_DIR "$withval"
5277 _ACEOF
5281 # Check whether --with-cxx-include-64bit-dir was given.
5282 if test "${with_cxx_include_64bit_dir+set}" = set; then
5283 withval=$with_cxx_include_64bit_dir;
5284 else
5285 withval=""
5289 cat >>confdefs.h <<_ACEOF
5290 #define CXX_INCLUDE_64BIT_DIR "$withval"
5291 _ACEOF
5295 # Check whether --with-binutils-include was given.
5296 if test "${with_binutils_include+set}" = set; then
5297 withval=$with_binutils_include;
5298 else
5299 withval=default
5302 case "$withval" in
5303 default) WITH_BINUTILS_INCDIR=default ;;
5304 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5305 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5306 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5307 { (exit 1); exit 1; }; } ;;
5308 esac
5309 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5310 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5312 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5313 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5314 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5315 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5316 { (exit 1); exit 1; }; };
5320 # Check whether --enable-libffi was given.
5321 if test "${enable_libffi+set}" = set; then
5322 enableval=$enable_libffi; case "$enableval" in
5323 yes) llvm_cv_enable_libffi="yes" ;;
5324 no) llvm_cv_enable_libffi="no" ;;
5325 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5326 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5327 { (exit 1); exit 1; }; } ;;
5328 esac
5329 else
5330 llvm_cv_enable_libffi=no
5334 if test "$llvm_cv_os_type" = "Win32" ; then
5335 llvmc_dynamic="yes"
5336 else
5337 llvmc_dynamic="no"
5340 # Check whether --enable-llvmc-dynamic was given.
5341 if test "${enable_llvmc_dynamic+set}" = set; then
5342 enableval=$enable_llvmc_dynamic;
5343 else
5344 enableval=$llvmc_dynamic
5347 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5348 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5350 else
5351 ENABLE_LLVMC_DYNAMIC=
5355 # Check whether --enable-llvmc-dynamic-plugins was given.
5356 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5357 enableval=$enable_llvmc_dynamic_plugins;
5358 else
5359 enableval=yes
5362 if test ${enableval} = "yes" ; then
5363 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5365 else
5366 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5371 ac_ext=c
5372 ac_cpp='$CPP $CPPFLAGS'
5373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5376 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5377 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5378 # On Suns, sometimes $CPP names a directory.
5379 if test -n "$CPP" && test -d "$CPP"; then
5380 CPP=
5382 if test -z "$CPP"; then
5383 if test "${ac_cv_prog_CPP+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386 # Double quotes because CPP needs to be expanded
5387 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5389 ac_preproc_ok=false
5390 for ac_c_preproc_warn_flag in '' yes
5392 # Use a header file that comes with gcc, so configuring glibc
5393 # with a fresh cross-compiler works.
5394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5395 # <limits.h> exists even on freestanding compilers.
5396 # On the NeXT, cc -E runs the code through the compiler's parser,
5397 # not just through cpp. "Syntax error" is here to catch this case.
5398 cat >conftest.$ac_ext <<_ACEOF
5399 /* confdefs.h. */
5400 _ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h. */
5404 #ifdef __STDC__
5405 # include <limits.h>
5406 #else
5407 # include <assert.h>
5408 #endif
5409 Syntax error
5410 _ACEOF
5411 if { (ac_try="$ac_cpp conftest.$ac_ext"
5412 case "(($ac_try" in
5413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414 *) ac_try_echo=$ac_try;;
5415 esac
5416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5418 ac_status=$?
5419 grep -v '^ *+' conftest.er1 >conftest.err
5420 rm -f conftest.er1
5421 cat conftest.err >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } >/dev/null; then
5424 if test -s conftest.err; then
5425 ac_cpp_err=$ac_c_preproc_warn_flag
5426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5427 else
5428 ac_cpp_err=
5430 else
5431 ac_cpp_err=yes
5433 if test -z "$ac_cpp_err"; then
5435 else
5436 echo "$as_me: failed program was:" >&5
5437 sed 's/^/| /' conftest.$ac_ext >&5
5439 # Broken: fails on valid input.
5440 continue
5443 rm -f conftest.err conftest.$ac_ext
5445 # OK, works on sane cases. Now check whether nonexistent headers
5446 # can be detected and how.
5447 cat >conftest.$ac_ext <<_ACEOF
5448 /* confdefs.h. */
5449 _ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h. */
5453 #include <ac_nonexistent.h>
5454 _ACEOF
5455 if { (ac_try="$ac_cpp conftest.$ac_ext"
5456 case "(($ac_try" in
5457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458 *) ac_try_echo=$ac_try;;
5459 esac
5460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5462 ac_status=$?
5463 grep -v '^ *+' conftest.er1 >conftest.err
5464 rm -f conftest.er1
5465 cat conftest.err >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } >/dev/null; then
5468 if test -s conftest.err; then
5469 ac_cpp_err=$ac_c_preproc_warn_flag
5470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5471 else
5472 ac_cpp_err=
5474 else
5475 ac_cpp_err=yes
5477 if test -z "$ac_cpp_err"; then
5478 # Broken: success on invalid input.
5479 continue
5480 else
5481 echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5484 # Passes both tests.
5485 ac_preproc_ok=:
5486 break
5489 rm -f conftest.err conftest.$ac_ext
5491 done
5492 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5493 rm -f conftest.err conftest.$ac_ext
5494 if $ac_preproc_ok; then
5495 break
5498 done
5499 ac_cv_prog_CPP=$CPP
5502 CPP=$ac_cv_prog_CPP
5503 else
5504 ac_cv_prog_CPP=$CPP
5506 { echo "$as_me:$LINENO: result: $CPP" >&5
5507 echo "${ECHO_T}$CPP" >&6; }
5508 ac_preproc_ok=false
5509 for ac_c_preproc_warn_flag in '' yes
5511 # Use a header file that comes with gcc, so configuring glibc
5512 # with a fresh cross-compiler works.
5513 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5514 # <limits.h> exists even on freestanding compilers.
5515 # On the NeXT, cc -E runs the code through the compiler's parser,
5516 # not just through cpp. "Syntax error" is here to catch this case.
5517 cat >conftest.$ac_ext <<_ACEOF
5518 /* confdefs.h. */
5519 _ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5523 #ifdef __STDC__
5524 # include <limits.h>
5525 #else
5526 # include <assert.h>
5527 #endif
5528 Syntax error
5529 _ACEOF
5530 if { (ac_try="$ac_cpp conftest.$ac_ext"
5531 case "(($ac_try" in
5532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533 *) ac_try_echo=$ac_try;;
5534 esac
5535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5537 ac_status=$?
5538 grep -v '^ *+' conftest.er1 >conftest.err
5539 rm -f conftest.er1
5540 cat conftest.err >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } >/dev/null; then
5543 if test -s conftest.err; then
5544 ac_cpp_err=$ac_c_preproc_warn_flag
5545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5546 else
5547 ac_cpp_err=
5549 else
5550 ac_cpp_err=yes
5552 if test -z "$ac_cpp_err"; then
5554 else
5555 echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5558 # Broken: fails on valid input.
5559 continue
5562 rm -f conftest.err conftest.$ac_ext
5564 # OK, works on sane cases. Now check whether nonexistent headers
5565 # can be detected and how.
5566 cat >conftest.$ac_ext <<_ACEOF
5567 /* confdefs.h. */
5568 _ACEOF
5569 cat confdefs.h >>conftest.$ac_ext
5570 cat >>conftest.$ac_ext <<_ACEOF
5571 /* end confdefs.h. */
5572 #include <ac_nonexistent.h>
5573 _ACEOF
5574 if { (ac_try="$ac_cpp conftest.$ac_ext"
5575 case "(($ac_try" in
5576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5577 *) ac_try_echo=$ac_try;;
5578 esac
5579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5581 ac_status=$?
5582 grep -v '^ *+' conftest.er1 >conftest.err
5583 rm -f conftest.er1
5584 cat conftest.err >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } >/dev/null; then
5587 if test -s conftest.err; then
5588 ac_cpp_err=$ac_c_preproc_warn_flag
5589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5590 else
5591 ac_cpp_err=
5593 else
5594 ac_cpp_err=yes
5596 if test -z "$ac_cpp_err"; then
5597 # Broken: success on invalid input.
5598 continue
5599 else
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5603 # Passes both tests.
5604 ac_preproc_ok=:
5605 break
5608 rm -f conftest.err conftest.$ac_ext
5610 done
5611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5612 rm -f conftest.err conftest.$ac_ext
5613 if $ac_preproc_ok; then
5615 else
5616 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5617 See \`config.log' for more details." >&5
5618 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5619 See \`config.log' for more details." >&2;}
5620 { (exit 1); exit 1; }; }
5623 ac_ext=c
5624 ac_cpp='$CPP $CPPFLAGS'
5625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5629 ac_ext=c
5630 ac_cpp='$CPP $CPPFLAGS'
5631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5634 if test -n "$ac_tool_prefix"; then
5635 for ac_prog in gcc
5637 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5638 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5641 if test "${ac_cv_prog_CC+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5643 else
5644 if test -n "$CC"; then
5645 ac_cv_prog_CC="$CC" # Let the user override the test.
5646 else
5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 for as_dir in $PATH
5650 IFS=$as_save_IFS
5651 test -z "$as_dir" && as_dir=.
5652 for ac_exec_ext in '' $ac_executable_extensions; do
5653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5654 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5656 break 2
5658 done
5659 done
5660 IFS=$as_save_IFS
5664 CC=$ac_cv_prog_CC
5665 if test -n "$CC"; then
5666 { echo "$as_me:$LINENO: result: $CC" >&5
5667 echo "${ECHO_T}$CC" >&6; }
5668 else
5669 { echo "$as_me:$LINENO: result: no" >&5
5670 echo "${ECHO_T}no" >&6; }
5674 test -n "$CC" && break
5675 done
5677 if test -z "$CC"; then
5678 ac_ct_CC=$CC
5679 for ac_prog in gcc
5681 # Extract the first word of "$ac_prog", so it can be a program name with args.
5682 set dummy $ac_prog; ac_word=$2
5683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5685 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5686 echo $ECHO_N "(cached) $ECHO_C" >&6
5687 else
5688 if test -n "$ac_ct_CC"; then
5689 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5690 else
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692 for as_dir in $PATH
5694 IFS=$as_save_IFS
5695 test -z "$as_dir" && as_dir=.
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5698 ac_cv_prog_ac_ct_CC="$ac_prog"
5699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5700 break 2
5702 done
5703 done
5704 IFS=$as_save_IFS
5708 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5709 if test -n "$ac_ct_CC"; then
5710 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5711 echo "${ECHO_T}$ac_ct_CC" >&6; }
5712 else
5713 { echo "$as_me:$LINENO: result: no" >&5
5714 echo "${ECHO_T}no" >&6; }
5718 test -n "$ac_ct_CC" && break
5719 done
5721 if test "x$ac_ct_CC" = x; then
5722 CC=""
5723 else
5724 case $cross_compiling:$ac_tool_warned in
5725 yes:)
5726 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5727 whose name does not start with the host triplet. If you think this
5728 configuration is useful to you, please write to autoconf@gnu.org." >&5
5729 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5730 whose name does not start with the host triplet. If you think this
5731 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5732 ac_tool_warned=yes ;;
5733 esac
5734 CC=$ac_ct_CC
5739 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5740 See \`config.log' for more details." >&5
5741 echo "$as_me: error: no acceptable C compiler found in \$PATH
5742 See \`config.log' for more details." >&2;}
5743 { (exit 1); exit 1; }; }
5745 # Provide some information about the compiler.
5746 echo "$as_me:$LINENO: checking for C compiler version" >&5
5747 ac_compiler=`set X $ac_compile; echo $2`
5748 { (ac_try="$ac_compiler --version >&5"
5749 case "(($ac_try" in
5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5752 esac
5753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754 (eval "$ac_compiler --version >&5") 2>&5
5755 ac_status=$?
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }
5758 { (ac_try="$ac_compiler -v >&5"
5759 case "(($ac_try" in
5760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761 *) ac_try_echo=$ac_try;;
5762 esac
5763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5764 (eval "$ac_compiler -v >&5") 2>&5
5765 ac_status=$?
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }
5768 { (ac_try="$ac_compiler -V >&5"
5769 case "(($ac_try" in
5770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771 *) ac_try_echo=$ac_try;;
5772 esac
5773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5774 (eval "$ac_compiler -V >&5") 2>&5
5775 ac_status=$?
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }
5779 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5780 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5781 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5783 else
5784 cat >conftest.$ac_ext <<_ACEOF
5785 /* confdefs.h. */
5786 _ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h. */
5792 main ()
5794 #ifndef __GNUC__
5795 choke me
5796 #endif
5799 return 0;
5801 _ACEOF
5802 rm -f conftest.$ac_objext
5803 if { (ac_try="$ac_compile"
5804 case "(($ac_try" in
5805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5807 esac
5808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809 (eval "$ac_compile") 2>conftest.er1
5810 ac_status=$?
5811 grep -v '^ *+' conftest.er1 >conftest.err
5812 rm -f conftest.er1
5813 cat conftest.err >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } &&
5816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
5823 ac_status=$?
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; } &&
5826 { ac_try='test -s conftest.$ac_objext'
5827 { (case "(($ac_try" in
5828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829 *) ac_try_echo=$ac_try;;
5830 esac
5831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5832 (eval "$ac_try") 2>&5
5833 ac_status=$?
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; }; then
5836 ac_compiler_gnu=yes
5837 else
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5841 ac_compiler_gnu=no
5844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5845 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5848 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5849 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5850 GCC=`test $ac_compiler_gnu = yes && echo yes`
5851 ac_test_CFLAGS=${CFLAGS+set}
5852 ac_save_CFLAGS=$CFLAGS
5853 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5854 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5855 if test "${ac_cv_prog_cc_g+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5857 else
5858 ac_save_c_werror_flag=$ac_c_werror_flag
5859 ac_c_werror_flag=yes
5860 ac_cv_prog_cc_g=no
5861 CFLAGS="-g"
5862 cat >conftest.$ac_ext <<_ACEOF
5863 /* confdefs.h. */
5864 _ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5870 main ()
5874 return 0;
5876 _ACEOF
5877 rm -f conftest.$ac_objext
5878 if { (ac_try="$ac_compile"
5879 case "(($ac_try" in
5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5882 esac
5883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884 (eval "$ac_compile") 2>conftest.er1
5885 ac_status=$?
5886 grep -v '^ *+' conftest.er1 >conftest.err
5887 rm -f conftest.er1
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } &&
5891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
5898 ac_status=$?
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; } &&
5901 { ac_try='test -s conftest.$ac_objext'
5902 { (case "(($ac_try" in
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5905 esac
5906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_try") 2>&5
5908 ac_status=$?
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; }; then
5911 ac_cv_prog_cc_g=yes
5912 else
5913 echo "$as_me: failed program was:" >&5
5914 sed 's/^/| /' conftest.$ac_ext >&5
5916 CFLAGS=""
5917 cat >conftest.$ac_ext <<_ACEOF
5918 /* confdefs.h. */
5919 _ACEOF
5920 cat confdefs.h >>conftest.$ac_ext
5921 cat >>conftest.$ac_ext <<_ACEOF
5922 /* end confdefs.h. */
5925 main ()
5929 return 0;
5931 _ACEOF
5932 rm -f conftest.$ac_objext
5933 if { (ac_try="$ac_compile"
5934 case "(($ac_try" in
5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5937 esac
5938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939 (eval "$ac_compile") 2>conftest.er1
5940 ac_status=$?
5941 grep -v '^ *+' conftest.er1 >conftest.err
5942 rm -f conftest.er1
5943 cat conftest.err >&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } &&
5946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
5953 ac_status=$?
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; } &&
5956 { ac_try='test -s conftest.$ac_objext'
5957 { (case "(($ac_try" in
5958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959 *) ac_try_echo=$ac_try;;
5960 esac
5961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5962 (eval "$ac_try") 2>&5
5963 ac_status=$?
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; }; then
5967 else
5968 echo "$as_me: failed program was:" >&5
5969 sed 's/^/| /' conftest.$ac_ext >&5
5971 ac_c_werror_flag=$ac_save_c_werror_flag
5972 CFLAGS="-g"
5973 cat >conftest.$ac_ext <<_ACEOF
5974 /* confdefs.h. */
5975 _ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5981 main ()
5985 return 0;
5987 _ACEOF
5988 rm -f conftest.$ac_objext
5989 if { (ac_try="$ac_compile"
5990 case "(($ac_try" in
5991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992 *) ac_try_echo=$ac_try;;
5993 esac
5994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995 (eval "$ac_compile") 2>conftest.er1
5996 ac_status=$?
5997 grep -v '^ *+' conftest.er1 >conftest.err
5998 rm -f conftest.er1
5999 cat conftest.err >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); } &&
6002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
6009 ac_status=$?
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; } &&
6012 { ac_try='test -s conftest.$ac_objext'
6013 { (case "(($ac_try" in
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6016 esac
6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018 (eval "$ac_try") 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 ac_cv_prog_cc_g=yes
6023 else
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6037 ac_c_werror_flag=$ac_save_c_werror_flag
6039 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6040 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6041 if test "$ac_test_CFLAGS" = set; then
6042 CFLAGS=$ac_save_CFLAGS
6043 elif test $ac_cv_prog_cc_g = yes; then
6044 if test "$GCC" = yes; then
6045 CFLAGS="-g -O2"
6046 else
6047 CFLAGS="-g"
6049 else
6050 if test "$GCC" = yes; then
6051 CFLAGS="-O2"
6052 else
6053 CFLAGS=
6056 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6057 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6058 if test "${ac_cv_prog_cc_c89+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061 ac_cv_prog_cc_c89=no
6062 ac_save_CC=$CC
6063 cat >conftest.$ac_ext <<_ACEOF
6064 /* confdefs.h. */
6065 _ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6069 #include <stdarg.h>
6070 #include <stdio.h>
6071 #include <sys/types.h>
6072 #include <sys/stat.h>
6073 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6074 struct buf { int x; };
6075 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6076 static char *e (p, i)
6077 char **p;
6078 int i;
6080 return p[i];
6082 static char *f (char * (*g) (char **, int), char **p, ...)
6084 char *s;
6085 va_list v;
6086 va_start (v,p);
6087 s = g (p, va_arg (v,int));
6088 va_end (v);
6089 return s;
6092 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6093 function prototypes and stuff, but not '\xHH' hex character constants.
6094 These don't provoke an error unfortunately, instead are silently treated
6095 as 'x'. The following induces an error, until -std is added to get
6096 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6097 array size at least. It's necessary to write '\x00'==0 to get something
6098 that's true only with -std. */
6099 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6101 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6102 inside strings and character constants. */
6103 #define FOO(x) 'x'
6104 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6106 int test (int i, double x);
6107 struct s1 {int (*f) (int a);};
6108 struct s2 {int (*f) (double a);};
6109 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6110 int argc;
6111 char **argv;
6113 main ()
6115 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6117 return 0;
6119 _ACEOF
6120 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6121 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6123 CC="$ac_save_CC $ac_arg"
6124 rm -f conftest.$ac_objext
6125 if { (ac_try="$ac_compile"
6126 case "(($ac_try" in
6127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6128 *) ac_try_echo=$ac_try;;
6129 esac
6130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6131 (eval "$ac_compile") 2>conftest.er1
6132 ac_status=$?
6133 grep -v '^ *+' conftest.er1 >conftest.err
6134 rm -f conftest.er1
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } &&
6138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
6145 ac_status=$?
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; } &&
6148 { ac_try='test -s conftest.$ac_objext'
6149 { (case "(($ac_try" in
6150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6151 *) ac_try_echo=$ac_try;;
6152 esac
6153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6154 (eval "$ac_try") 2>&5
6155 ac_status=$?
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; }; then
6158 ac_cv_prog_cc_c89=$ac_arg
6159 else
6160 echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6166 rm -f core conftest.err conftest.$ac_objext
6167 test "x$ac_cv_prog_cc_c89" != "xno" && break
6168 done
6169 rm -f conftest.$ac_ext
6170 CC=$ac_save_CC
6173 # AC_CACHE_VAL
6174 case "x$ac_cv_prog_cc_c89" in
6176 { echo "$as_me:$LINENO: result: none needed" >&5
6177 echo "${ECHO_T}none needed" >&6; } ;;
6178 xno)
6179 { echo "$as_me:$LINENO: result: unsupported" >&5
6180 echo "${ECHO_T}unsupported" >&6; } ;;
6182 CC="$CC $ac_cv_prog_cc_c89"
6183 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6184 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6185 esac
6188 ac_ext=c
6189 ac_cpp='$CPP $CPPFLAGS'
6190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6194 ac_ext=cpp
6195 ac_cpp='$CXXCPP $CPPFLAGS'
6196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6199 if test -z "$CXX"; then
6200 if test -n "$CCC"; then
6201 CXX=$CCC
6202 else
6203 if test -n "$ac_tool_prefix"; then
6204 for ac_prog in g++
6206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6207 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6210 if test "${ac_cv_prog_CXX+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6212 else
6213 if test -n "$CXX"; then
6214 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6215 else
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 for as_dir in $PATH
6219 IFS=$as_save_IFS
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6223 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 break 2
6227 done
6228 done
6229 IFS=$as_save_IFS
6233 CXX=$ac_cv_prog_CXX
6234 if test -n "$CXX"; then
6235 { echo "$as_me:$LINENO: result: $CXX" >&5
6236 echo "${ECHO_T}$CXX" >&6; }
6237 else
6238 { echo "$as_me:$LINENO: result: no" >&5
6239 echo "${ECHO_T}no" >&6; }
6243 test -n "$CXX" && break
6244 done
6246 if test -z "$CXX"; then
6247 ac_ct_CXX=$CXX
6248 for ac_prog in g++
6250 # Extract the first word of "$ac_prog", so it can be a program name with args.
6251 set dummy $ac_prog; ac_word=$2
6252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6254 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 else
6257 if test -n "$ac_ct_CXX"; then
6258 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6259 else
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6263 IFS=$as_save_IFS
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6267 ac_cv_prog_ac_ct_CXX="$ac_prog"
6268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6269 break 2
6271 done
6272 done
6273 IFS=$as_save_IFS
6277 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6278 if test -n "$ac_ct_CXX"; then
6279 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6280 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6281 else
6282 { echo "$as_me:$LINENO: result: no" >&5
6283 echo "${ECHO_T}no" >&6; }
6287 test -n "$ac_ct_CXX" && break
6288 done
6290 if test "x$ac_ct_CXX" = x; then
6291 CXX="g++"
6292 else
6293 case $cross_compiling:$ac_tool_warned in
6294 yes:)
6295 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6296 whose name does not start with the host triplet. If you think this
6297 configuration is useful to you, please write to autoconf@gnu.org." >&5
6298 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6299 whose name does not start with the host triplet. If you think this
6300 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6301 ac_tool_warned=yes ;;
6302 esac
6303 CXX=$ac_ct_CXX
6309 # Provide some information about the compiler.
6310 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6311 ac_compiler=`set X $ac_compile; echo $2`
6312 { (ac_try="$ac_compiler --version >&5"
6313 case "(($ac_try" in
6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6316 esac
6317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318 (eval "$ac_compiler --version >&5") 2>&5
6319 ac_status=$?
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }
6322 { (ac_try="$ac_compiler -v >&5"
6323 case "(($ac_try" in
6324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6326 esac
6327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6328 (eval "$ac_compiler -v >&5") 2>&5
6329 ac_status=$?
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }
6332 { (ac_try="$ac_compiler -V >&5"
6333 case "(($ac_try" in
6334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6335 *) ac_try_echo=$ac_try;;
6336 esac
6337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6338 (eval "$ac_compiler -V >&5") 2>&5
6339 ac_status=$?
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }
6343 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6344 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6345 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 else
6348 cat >conftest.$ac_ext <<_ACEOF
6349 /* confdefs.h. */
6350 _ACEOF
6351 cat confdefs.h >>conftest.$ac_ext
6352 cat >>conftest.$ac_ext <<_ACEOF
6353 /* end confdefs.h. */
6356 main ()
6358 #ifndef __GNUC__
6359 choke me
6360 #endif
6363 return 0;
6365 _ACEOF
6366 rm -f conftest.$ac_objext
6367 if { (ac_try="$ac_compile"
6368 case "(($ac_try" in
6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370 *) ac_try_echo=$ac_try;;
6371 esac
6372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6373 (eval "$ac_compile") 2>conftest.er1
6374 ac_status=$?
6375 grep -v '^ *+' conftest.er1 >conftest.err
6376 rm -f conftest.er1
6377 cat conftest.err >&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } &&
6380 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
6387 ac_status=$?
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); }; } &&
6390 { ac_try='test -s conftest.$ac_objext'
6391 { (case "(($ac_try" in
6392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6393 *) ac_try_echo=$ac_try;;
6394 esac
6395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6396 (eval "$ac_try") 2>&5
6397 ac_status=$?
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; }; then
6400 ac_compiler_gnu=yes
6401 else
6402 echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6405 ac_compiler_gnu=no
6408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6409 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6412 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6413 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6414 GXX=`test $ac_compiler_gnu = yes && echo yes`
6415 ac_test_CXXFLAGS=${CXXFLAGS+set}
6416 ac_save_CXXFLAGS=$CXXFLAGS
6417 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6418 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6419 if test "${ac_cv_prog_cxx_g+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6421 else
6422 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6423 ac_cxx_werror_flag=yes
6424 ac_cv_prog_cxx_g=no
6425 CXXFLAGS="-g"
6426 cat >conftest.$ac_ext <<_ACEOF
6427 /* confdefs.h. */
6428 _ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h. */
6434 main ()
6438 return 0;
6440 _ACEOF
6441 rm -f conftest.$ac_objext
6442 if { (ac_try="$ac_compile"
6443 case "(($ac_try" in
6444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6445 *) ac_try_echo=$ac_try;;
6446 esac
6447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6448 (eval "$ac_compile") 2>conftest.er1
6449 ac_status=$?
6450 grep -v '^ *+' conftest.er1 >conftest.err
6451 rm -f conftest.er1
6452 cat conftest.err >&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); } &&
6455 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
6462 ac_status=$?
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; } &&
6465 { ac_try='test -s conftest.$ac_objext'
6466 { (case "(($ac_try" in
6467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6468 *) ac_try_echo=$ac_try;;
6469 esac
6470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6471 (eval "$ac_try") 2>&5
6472 ac_status=$?
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); }; }; then
6475 ac_cv_prog_cxx_g=yes
6476 else
6477 echo "$as_me: failed program was:" >&5
6478 sed 's/^/| /' conftest.$ac_ext >&5
6480 CXXFLAGS=""
6481 cat >conftest.$ac_ext <<_ACEOF
6482 /* confdefs.h. */
6483 _ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h. */
6489 main ()
6493 return 0;
6495 _ACEOF
6496 rm -f conftest.$ac_objext
6497 if { (ac_try="$ac_compile"
6498 case "(($ac_try" in
6499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6500 *) ac_try_echo=$ac_try;;
6501 esac
6502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6503 (eval "$ac_compile") 2>conftest.er1
6504 ac_status=$?
6505 grep -v '^ *+' conftest.er1 >conftest.err
6506 rm -f conftest.er1
6507 cat conftest.err >&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); } &&
6510 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
6517 ac_status=$?
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; } &&
6520 { ac_try='test -s conftest.$ac_objext'
6521 { (case "(($ac_try" in
6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523 *) ac_try_echo=$ac_try;;
6524 esac
6525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526 (eval "$ac_try") 2>&5
6527 ac_status=$?
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; }; then
6531 else
6532 echo "$as_me: failed program was:" >&5
6533 sed 's/^/| /' conftest.$ac_ext >&5
6535 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6536 CXXFLAGS="-g"
6537 cat >conftest.$ac_ext <<_ACEOF
6538 /* confdefs.h. */
6539 _ACEOF
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h. */
6545 main ()
6549 return 0;
6551 _ACEOF
6552 rm -f conftest.$ac_objext
6553 if { (ac_try="$ac_compile"
6554 case "(($ac_try" in
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6557 esac
6558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559 (eval "$ac_compile") 2>conftest.er1
6560 ac_status=$?
6561 grep -v '^ *+' conftest.er1 >conftest.err
6562 rm -f conftest.er1
6563 cat conftest.err >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } &&
6566 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
6573 ac_status=$?
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; } &&
6576 { ac_try='test -s conftest.$ac_objext'
6577 { (case "(($ac_try" in
6578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6579 *) ac_try_echo=$ac_try;;
6580 esac
6581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6582 (eval "$ac_try") 2>&5
6583 ac_status=$?
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; }; then
6586 ac_cv_prog_cxx_g=yes
6587 else
6588 echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
6594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6603 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6604 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6605 if test "$ac_test_CXXFLAGS" = set; then
6606 CXXFLAGS=$ac_save_CXXFLAGS
6607 elif test $ac_cv_prog_cxx_g = yes; then
6608 if test "$GXX" = yes; then
6609 CXXFLAGS="-g -O2"
6610 else
6611 CXXFLAGS="-g"
6613 else
6614 if test "$GXX" = yes; then
6615 CXXFLAGS="-O2"
6616 else
6617 CXXFLAGS=
6620 ac_ext=c
6621 ac_cpp='$CPP $CPPFLAGS'
6622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6627 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6628 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6629 if test "${lt_cv_path_NM+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6631 else
6632 if test -n "$NM"; then
6633 # Let the user override the test.
6634 lt_cv_path_NM="$NM"
6635 else
6636 lt_nm_to_check="${ac_tool_prefix}nm"
6637 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6638 lt_nm_to_check="$lt_nm_to_check nm"
6640 for lt_tmp_nm in $lt_nm_to_check; do
6641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6642 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6643 IFS="$lt_save_ifs"
6644 test -z "$ac_dir" && ac_dir=.
6645 tmp_nm="$ac_dir/$lt_tmp_nm"
6646 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6647 # Check to see if the nm accepts a BSD-compat flag.
6648 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6649 # nm: unknown option "B" ignored
6650 # Tru64's nm complains that /dev/null is an invalid object file
6651 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6652 */dev/null* | *'Invalid file or object type'*)
6653 lt_cv_path_NM="$tmp_nm -B"
6654 break
6657 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6658 */dev/null*)
6659 lt_cv_path_NM="$tmp_nm -p"
6660 break
6663 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6664 continue # so that we can try to find one that supports BSD flags
6666 esac
6668 esac
6670 done
6671 IFS="$lt_save_ifs"
6672 done
6673 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6676 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6677 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6678 NM="$lt_cv_path_NM"
6682 { echo "$as_me:$LINENO: checking for GNU make" >&5
6683 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6684 if test "${llvm_cv_gnu_make_command+set}" = set; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 else
6687 llvm_cv_gnu_make_command=''
6688 for a in "$MAKE" make gmake gnumake ; do
6689 if test -z "$a" ; then continue ; fi ;
6690 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6691 then
6692 llvm_cv_gnu_make_command=$a ;
6693 break;
6695 done
6697 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6698 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6699 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6700 ifGNUmake='' ;
6701 else
6702 ifGNUmake='#' ;
6703 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6704 echo "${ECHO_T}\"Not found\"" >&6; };
6708 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6709 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6710 LN_S=$as_ln_s
6711 if test "$LN_S" = "ln -s"; then
6712 { echo "$as_me:$LINENO: result: yes" >&5
6713 echo "${ECHO_T}yes" >&6; }
6714 else
6715 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6716 echo "${ECHO_T}no, using $LN_S" >&6; }
6719 # Extract the first word of "cmp", so it can be a program name with args.
6720 set dummy cmp; ac_word=$2
6721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723 if test "${ac_cv_path_CMP+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6726 case $CMP in
6727 [\\/]* | ?:[\\/]*)
6728 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH
6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6738 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 break 2
6742 done
6743 done
6744 IFS=$as_save_IFS
6746 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6748 esac
6750 CMP=$ac_cv_path_CMP
6751 if test -n "$CMP"; then
6752 { echo "$as_me:$LINENO: result: $CMP" >&5
6753 echo "${ECHO_T}$CMP" >&6; }
6754 else
6755 { echo "$as_me:$LINENO: result: no" >&5
6756 echo "${ECHO_T}no" >&6; }
6760 # Extract the first word of "cp", so it can be a program name with args.
6761 set dummy cp; ac_word=$2
6762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6764 if test "${ac_cv_path_CP+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 else
6767 case $CP in
6768 [\\/]* | ?:[\\/]*)
6769 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6779 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 break 2
6783 done
6784 done
6785 IFS=$as_save_IFS
6787 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6789 esac
6791 CP=$ac_cv_path_CP
6792 if test -n "$CP"; then
6793 { echo "$as_me:$LINENO: result: $CP" >&5
6794 echo "${ECHO_T}$CP" >&6; }
6795 else
6796 { echo "$as_me:$LINENO: result: no" >&5
6797 echo "${ECHO_T}no" >&6; }
6801 # Extract the first word of "date", so it can be a program name with args.
6802 set dummy date; ac_word=$2
6803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6805 if test "${ac_cv_path_DATE+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6807 else
6808 case $DATE in
6809 [\\/]* | ?:[\\/]*)
6810 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814 for as_dir in $PATH
6816 IFS=$as_save_IFS
6817 test -z "$as_dir" && as_dir=.
6818 for ac_exec_ext in '' $ac_executable_extensions; do
6819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6820 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6822 break 2
6824 done
6825 done
6826 IFS=$as_save_IFS
6828 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6830 esac
6832 DATE=$ac_cv_path_DATE
6833 if test -n "$DATE"; then
6834 { echo "$as_me:$LINENO: result: $DATE" >&5
6835 echo "${ECHO_T}$DATE" >&6; }
6836 else
6837 { echo "$as_me:$LINENO: result: no" >&5
6838 echo "${ECHO_T}no" >&6; }
6842 # Extract the first word of "find", so it can be a program name with args.
6843 set dummy find; ac_word=$2
6844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6846 if test "${ac_cv_path_FIND+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 else
6849 case $FIND in
6850 [\\/]* | ?:[\\/]*)
6851 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 for as_dir in $PATH
6857 IFS=$as_save_IFS
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6861 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 break 2
6865 done
6866 done
6867 IFS=$as_save_IFS
6869 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6871 esac
6873 FIND=$ac_cv_path_FIND
6874 if test -n "$FIND"; then
6875 { echo "$as_me:$LINENO: result: $FIND" >&5
6876 echo "${ECHO_T}$FIND" >&6; }
6877 else
6878 { echo "$as_me:$LINENO: result: no" >&5
6879 echo "${ECHO_T}no" >&6; }
6883 # Extract the first word of "grep", so it can be a program name with args.
6884 set dummy grep; ac_word=$2
6885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6887 if test "${ac_cv_path_GREP+set}" = set; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
6889 else
6890 case $GREP in
6891 [\\/]* | ?:[\\/]*)
6892 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896 for as_dir in $PATH
6898 IFS=$as_save_IFS
6899 test -z "$as_dir" && as_dir=.
6900 for ac_exec_ext in '' $ac_executable_extensions; do
6901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6902 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6904 break 2
6906 done
6907 done
6908 IFS=$as_save_IFS
6910 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6912 esac
6914 GREP=$ac_cv_path_GREP
6915 if test -n "$GREP"; then
6916 { echo "$as_me:$LINENO: result: $GREP" >&5
6917 echo "${ECHO_T}$GREP" >&6; }
6918 else
6919 { echo "$as_me:$LINENO: result: no" >&5
6920 echo "${ECHO_T}no" >&6; }
6924 # Extract the first word of "mkdir", so it can be a program name with args.
6925 set dummy mkdir; ac_word=$2
6926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6928 if test "${ac_cv_path_MKDIR+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931 case $MKDIR in
6932 [\\/]* | ?:[\\/]*)
6933 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 for as_dir in $PATH
6939 IFS=$as_save_IFS
6940 test -z "$as_dir" && as_dir=.
6941 for ac_exec_ext in '' $ac_executable_extensions; do
6942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6943 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6945 break 2
6947 done
6948 done
6949 IFS=$as_save_IFS
6951 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6953 esac
6955 MKDIR=$ac_cv_path_MKDIR
6956 if test -n "$MKDIR"; then
6957 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6958 echo "${ECHO_T}$MKDIR" >&6; }
6959 else
6960 { echo "$as_me:$LINENO: result: no" >&5
6961 echo "${ECHO_T}no" >&6; }
6965 # Extract the first word of "mv", so it can be a program name with args.
6966 set dummy mv; ac_word=$2
6967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6969 if test "${ac_cv_path_MV+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 else
6972 case $MV in
6973 [\\/]* | ?:[\\/]*)
6974 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH
6980 IFS=$as_save_IFS
6981 test -z "$as_dir" && as_dir=.
6982 for ac_exec_ext in '' $ac_executable_extensions; do
6983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6984 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6986 break 2
6988 done
6989 done
6990 IFS=$as_save_IFS
6992 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6994 esac
6996 MV=$ac_cv_path_MV
6997 if test -n "$MV"; then
6998 { echo "$as_me:$LINENO: result: $MV" >&5
6999 echo "${ECHO_T}$MV" >&6; }
7000 else
7001 { echo "$as_me:$LINENO: result: no" >&5
7002 echo "${ECHO_T}no" >&6; }
7006 if test -n "$ac_tool_prefix"; then
7007 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7008 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7011 if test "${ac_cv_prog_RANLIB+set}" = set; then
7012 echo $ECHO_N "(cached) $ECHO_C" >&6
7013 else
7014 if test -n "$RANLIB"; then
7015 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7016 else
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7020 IFS=$as_save_IFS
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7024 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 break 2
7028 done
7029 done
7030 IFS=$as_save_IFS
7034 RANLIB=$ac_cv_prog_RANLIB
7035 if test -n "$RANLIB"; then
7036 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7037 echo "${ECHO_T}$RANLIB" >&6; }
7038 else
7039 { echo "$as_me:$LINENO: result: no" >&5
7040 echo "${ECHO_T}no" >&6; }
7045 if test -z "$ac_cv_prog_RANLIB"; then
7046 ac_ct_RANLIB=$RANLIB
7047 # Extract the first word of "ranlib", so it can be a program name with args.
7048 set dummy ranlib; ac_word=$2
7049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7051 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7053 else
7054 if test -n "$ac_ct_RANLIB"; then
7055 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7056 else
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 for as_dir in $PATH
7060 IFS=$as_save_IFS
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7064 ac_cv_prog_ac_ct_RANLIB="ranlib"
7065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7066 break 2
7068 done
7069 done
7070 IFS=$as_save_IFS
7074 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7075 if test -n "$ac_ct_RANLIB"; then
7076 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7077 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7078 else
7079 { echo "$as_me:$LINENO: result: no" >&5
7080 echo "${ECHO_T}no" >&6; }
7083 if test "x$ac_ct_RANLIB" = x; then
7084 RANLIB=":"
7085 else
7086 case $cross_compiling:$ac_tool_warned in
7087 yes:)
7088 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7089 whose name does not start with the host triplet. If you think this
7090 configuration is useful to you, please write to autoconf@gnu.org." >&5
7091 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7092 whose name does not start with the host triplet. If you think this
7093 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7094 ac_tool_warned=yes ;;
7095 esac
7096 RANLIB=$ac_ct_RANLIB
7098 else
7099 RANLIB="$ac_cv_prog_RANLIB"
7102 if test -n "$ac_tool_prefix"; then
7103 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7104 set dummy ${ac_tool_prefix}ar; ac_word=$2
7105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7107 if test "${ac_cv_prog_AR+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110 if test -n "$AR"; then
7111 ac_cv_prog_AR="$AR" # Let the user override the test.
7112 else
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7120 ac_cv_prog_AR="${ac_tool_prefix}ar"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 break 2
7124 done
7125 done
7126 IFS=$as_save_IFS
7130 AR=$ac_cv_prog_AR
7131 if test -n "$AR"; then
7132 { echo "$as_me:$LINENO: result: $AR" >&5
7133 echo "${ECHO_T}$AR" >&6; }
7134 else
7135 { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7141 if test -z "$ac_cv_prog_AR"; then
7142 ac_ct_AR=$AR
7143 # Extract the first word of "ar", so it can be a program name with args.
7144 set dummy ar; ac_word=$2
7145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7147 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150 if test -n "$ac_ct_AR"; then
7151 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7152 else
7153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 for as_dir in $PATH
7156 IFS=$as_save_IFS
7157 test -z "$as_dir" && as_dir=.
7158 for ac_exec_ext in '' $ac_executable_extensions; do
7159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7160 ac_cv_prog_ac_ct_AR="ar"
7161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7162 break 2
7164 done
7165 done
7166 IFS=$as_save_IFS
7170 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7171 if test -n "$ac_ct_AR"; then
7172 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7173 echo "${ECHO_T}$ac_ct_AR" >&6; }
7174 else
7175 { echo "$as_me:$LINENO: result: no" >&5
7176 echo "${ECHO_T}no" >&6; }
7179 if test "x$ac_ct_AR" = x; then
7180 AR="false"
7181 else
7182 case $cross_compiling:$ac_tool_warned in
7183 yes:)
7184 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7185 whose name does not start with the host triplet. If you think this
7186 configuration is useful to you, please write to autoconf@gnu.org." >&5
7187 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7188 whose name does not start with the host triplet. If you think this
7189 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7190 ac_tool_warned=yes ;;
7191 esac
7192 AR=$ac_ct_AR
7194 else
7195 AR="$ac_cv_prog_AR"
7198 # Extract the first word of "rm", so it can be a program name with args.
7199 set dummy rm; ac_word=$2
7200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7202 if test "${ac_cv_path_RM+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 else
7205 case $RM in
7206 [\\/]* | ?:[\\/]*)
7207 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 for as_dir in $PATH
7213 IFS=$as_save_IFS
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7217 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7219 break 2
7221 done
7222 done
7223 IFS=$as_save_IFS
7225 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7227 esac
7229 RM=$ac_cv_path_RM
7230 if test -n "$RM"; then
7231 { echo "$as_me:$LINENO: result: $RM" >&5
7232 echo "${ECHO_T}$RM" >&6; }
7233 else
7234 { echo "$as_me:$LINENO: result: no" >&5
7235 echo "${ECHO_T}no" >&6; }
7239 # Extract the first word of "sed", so it can be a program name with args.
7240 set dummy sed; ac_word=$2
7241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7243 if test "${ac_cv_path_SED+set}" = set; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
7245 else
7246 case $SED in
7247 [\\/]* | ?:[\\/]*)
7248 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252 for as_dir in $PATH
7254 IFS=$as_save_IFS
7255 test -z "$as_dir" && as_dir=.
7256 for ac_exec_ext in '' $ac_executable_extensions; do
7257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7258 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7260 break 2
7262 done
7263 done
7264 IFS=$as_save_IFS
7266 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7268 esac
7270 SED=$ac_cv_path_SED
7271 if test -n "$SED"; then
7272 { echo "$as_me:$LINENO: result: $SED" >&5
7273 echo "${ECHO_T}$SED" >&6; }
7274 else
7275 { echo "$as_me:$LINENO: result: no" >&5
7276 echo "${ECHO_T}no" >&6; }
7280 # Extract the first word of "tar", so it can be a program name with args.
7281 set dummy tar; ac_word=$2
7282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7284 if test "${ac_cv_path_TAR+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7286 else
7287 case $TAR in
7288 [\\/]* | ?:[\\/]*)
7289 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 for as_dir in $PATH
7295 IFS=$as_save_IFS
7296 test -z "$as_dir" && as_dir=.
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7299 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7301 break 2
7303 done
7304 done
7305 IFS=$as_save_IFS
7307 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7309 esac
7311 TAR=$ac_cv_path_TAR
7312 if test -n "$TAR"; then
7313 { echo "$as_me:$LINENO: result: $TAR" >&5
7314 echo "${ECHO_T}$TAR" >&6; }
7315 else
7316 { echo "$as_me:$LINENO: result: no" >&5
7317 echo "${ECHO_T}no" >&6; }
7321 # Extract the first word of "pwd", so it can be a program name with args.
7322 set dummy pwd; ac_word=$2
7323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7325 if test "${ac_cv_path_BINPWD+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 else
7328 case $BINPWD in
7329 [\\/]* | ?:[\\/]*)
7330 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 for as_dir in $PATH
7336 IFS=$as_save_IFS
7337 test -z "$as_dir" && as_dir=.
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7340 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 break 2
7344 done
7345 done
7346 IFS=$as_save_IFS
7348 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7350 esac
7352 BINPWD=$ac_cv_path_BINPWD
7353 if test -n "$BINPWD"; then
7354 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7355 echo "${ECHO_T}$BINPWD" >&6; }
7356 else
7357 { echo "$as_me:$LINENO: result: no" >&5
7358 echo "${ECHO_T}no" >&6; }
7363 # Extract the first word of "Graphviz", so it can be a program name with args.
7364 set dummy Graphviz; ac_word=$2
7365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7367 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
7369 else
7370 case $GRAPHVIZ in
7371 [\\/]* | ?:[\\/]*)
7372 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 for as_dir in $PATH
7378 IFS=$as_save_IFS
7379 test -z "$as_dir" && as_dir=.
7380 for ac_exec_ext in '' $ac_executable_extensions; do
7381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7382 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7384 break 2
7386 done
7387 done
7388 IFS=$as_save_IFS
7390 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7392 esac
7394 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7395 if test -n "$GRAPHVIZ"; then
7396 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7397 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7398 else
7399 { echo "$as_me:$LINENO: result: no" >&5
7400 echo "${ECHO_T}no" >&6; }
7404 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7406 cat >>confdefs.h <<\_ACEOF
7407 #define HAVE_GRAPHVIZ 1
7408 _ACEOF
7410 if test "$llvm_cv_os_type" = "MingW" ; then
7411 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7414 cat >>confdefs.h <<_ACEOF
7415 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7416 _ACEOF
7419 # Extract the first word of "dot", so it can be a program name with args.
7420 set dummy dot; ac_word=$2
7421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7423 if test "${ac_cv_path_DOT+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7425 else
7426 case $DOT in
7427 [\\/]* | ?:[\\/]*)
7428 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 for as_dir in $PATH
7434 IFS=$as_save_IFS
7435 test -z "$as_dir" && as_dir=.
7436 for ac_exec_ext in '' $ac_executable_extensions; do
7437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7438 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7440 break 2
7442 done
7443 done
7444 IFS=$as_save_IFS
7446 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7448 esac
7450 DOT=$ac_cv_path_DOT
7451 if test -n "$DOT"; then
7452 { echo "$as_me:$LINENO: result: $DOT" >&5
7453 echo "${ECHO_T}$DOT" >&6; }
7454 else
7455 { echo "$as_me:$LINENO: result: no" >&5
7456 echo "${ECHO_T}no" >&6; }
7460 if test "$DOT" != "echo dot" ; then
7462 cat >>confdefs.h <<\_ACEOF
7463 #define HAVE_DOT 1
7464 _ACEOF
7466 if test "$llvm_cv_os_type" = "MingW" ; then
7467 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7470 cat >>confdefs.h <<_ACEOF
7471 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7472 _ACEOF
7475 # Extract the first word of "fdp", so it can be a program name with args.
7476 set dummy fdp; ac_word=$2
7477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7479 if test "${ac_cv_path_FDP+set}" = set; then
7480 echo $ECHO_N "(cached) $ECHO_C" >&6
7481 else
7482 case $FDP in
7483 [\\/]* | ?:[\\/]*)
7484 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 for as_dir in $PATH
7490 IFS=$as_save_IFS
7491 test -z "$as_dir" && as_dir=.
7492 for ac_exec_ext in '' $ac_executable_extensions; do
7493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7494 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7496 break 2
7498 done
7499 done
7500 IFS=$as_save_IFS
7502 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7504 esac
7506 FDP=$ac_cv_path_FDP
7507 if test -n "$FDP"; then
7508 { echo "$as_me:$LINENO: result: $FDP" >&5
7509 echo "${ECHO_T}$FDP" >&6; }
7510 else
7511 { echo "$as_me:$LINENO: result: no" >&5
7512 echo "${ECHO_T}no" >&6; }
7516 if test "$FDP" != "echo fdp" ; then
7518 cat >>confdefs.h <<\_ACEOF
7519 #define HAVE_FDP 1
7520 _ACEOF
7522 if test "$llvm_cv_os_type" = "MingW" ; then
7523 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7526 cat >>confdefs.h <<_ACEOF
7527 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7528 _ACEOF
7531 # Extract the first word of "neato", so it can be a program name with args.
7532 set dummy neato; ac_word=$2
7533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7535 if test "${ac_cv_path_NEATO+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 else
7538 case $NEATO in
7539 [\\/]* | ?:[\\/]*)
7540 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7546 IFS=$as_save_IFS
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7550 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 break 2
7554 done
7555 done
7556 IFS=$as_save_IFS
7558 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7560 esac
7562 NEATO=$ac_cv_path_NEATO
7563 if test -n "$NEATO"; then
7564 { echo "$as_me:$LINENO: result: $NEATO" >&5
7565 echo "${ECHO_T}$NEATO" >&6; }
7566 else
7567 { echo "$as_me:$LINENO: result: no" >&5
7568 echo "${ECHO_T}no" >&6; }
7572 if test "$NEATO" != "echo neato" ; then
7574 cat >>confdefs.h <<\_ACEOF
7575 #define HAVE_NEATO 1
7576 _ACEOF
7578 if test "$llvm_cv_os_type" = "MingW" ; then
7579 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7582 cat >>confdefs.h <<_ACEOF
7583 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7584 _ACEOF
7587 # Extract the first word of "twopi", so it can be a program name with args.
7588 set dummy twopi; ac_word=$2
7589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7591 if test "${ac_cv_path_TWOPI+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 else
7594 case $TWOPI in
7595 [\\/]* | ?:[\\/]*)
7596 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 for as_dir in $PATH
7602 IFS=$as_save_IFS
7603 test -z "$as_dir" && as_dir=.
7604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7606 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 break 2
7610 done
7611 done
7612 IFS=$as_save_IFS
7614 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7616 esac
7618 TWOPI=$ac_cv_path_TWOPI
7619 if test -n "$TWOPI"; then
7620 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7621 echo "${ECHO_T}$TWOPI" >&6; }
7622 else
7623 { echo "$as_me:$LINENO: result: no" >&5
7624 echo "${ECHO_T}no" >&6; }
7628 if test "$TWOPI" != "echo twopi" ; then
7630 cat >>confdefs.h <<\_ACEOF
7631 #define HAVE_TWOPI 1
7632 _ACEOF
7634 if test "$llvm_cv_os_type" = "MingW" ; then
7635 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7638 cat >>confdefs.h <<_ACEOF
7639 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7640 _ACEOF
7643 # Extract the first word of "circo", so it can be a program name with args.
7644 set dummy circo; ac_word=$2
7645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7647 if test "${ac_cv_path_CIRCO+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7649 else
7650 case $CIRCO in
7651 [\\/]* | ?:[\\/]*)
7652 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656 for as_dir in $PATH
7658 IFS=$as_save_IFS
7659 test -z "$as_dir" && as_dir=.
7660 for ac_exec_ext in '' $ac_executable_extensions; do
7661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7662 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7664 break 2
7666 done
7667 done
7668 IFS=$as_save_IFS
7670 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7672 esac
7674 CIRCO=$ac_cv_path_CIRCO
7675 if test -n "$CIRCO"; then
7676 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7677 echo "${ECHO_T}$CIRCO" >&6; }
7678 else
7679 { echo "$as_me:$LINENO: result: no" >&5
7680 echo "${ECHO_T}no" >&6; }
7684 if test "$CIRCO" != "echo circo" ; then
7686 cat >>confdefs.h <<\_ACEOF
7687 #define HAVE_CIRCO 1
7688 _ACEOF
7690 if test "$llvm_cv_os_type" = "MingW" ; then
7691 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7694 cat >>confdefs.h <<_ACEOF
7695 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7696 _ACEOF
7699 for ac_prog in gv gsview32
7701 # Extract the first word of "$ac_prog", so it can be a program name with args.
7702 set dummy $ac_prog; ac_word=$2
7703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7705 if test "${ac_cv_path_GV+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 else
7708 case $GV in
7709 [\\/]* | ?:[\\/]*)
7710 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714 for as_dir in $PATH
7716 IFS=$as_save_IFS
7717 test -z "$as_dir" && as_dir=.
7718 for ac_exec_ext in '' $ac_executable_extensions; do
7719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7720 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7722 break 2
7724 done
7725 done
7726 IFS=$as_save_IFS
7729 esac
7731 GV=$ac_cv_path_GV
7732 if test -n "$GV"; then
7733 { echo "$as_me:$LINENO: result: $GV" >&5
7734 echo "${ECHO_T}$GV" >&6; }
7735 else
7736 { echo "$as_me:$LINENO: result: no" >&5
7737 echo "${ECHO_T}no" >&6; }
7741 test -n "$GV" && break
7742 done
7743 test -n "$GV" || GV="echo gv"
7745 if test "$GV" != "echo gv" ; then
7747 cat >>confdefs.h <<\_ACEOF
7748 #define HAVE_GV 1
7749 _ACEOF
7751 if test "$llvm_cv_os_type" = "MingW" ; then
7752 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7755 cat >>confdefs.h <<_ACEOF
7756 #define LLVM_PATH_GV "$GV${EXEEXT}"
7757 _ACEOF
7760 # Extract the first word of "dotty", so it can be a program name with args.
7761 set dummy dotty; ac_word=$2
7762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7764 if test "${ac_cv_path_DOTTY+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7766 else
7767 case $DOTTY in
7768 [\\/]* | ?:[\\/]*)
7769 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 for as_dir in $PATH
7775 IFS=$as_save_IFS
7776 test -z "$as_dir" && as_dir=.
7777 for ac_exec_ext in '' $ac_executable_extensions; do
7778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7779 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7781 break 2
7783 done
7784 done
7785 IFS=$as_save_IFS
7787 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7789 esac
7791 DOTTY=$ac_cv_path_DOTTY
7792 if test -n "$DOTTY"; then
7793 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7794 echo "${ECHO_T}$DOTTY" >&6; }
7795 else
7796 { echo "$as_me:$LINENO: result: no" >&5
7797 echo "${ECHO_T}no" >&6; }
7801 if test "$DOTTY" != "echo dotty" ; then
7803 cat >>confdefs.h <<\_ACEOF
7804 #define HAVE_DOTTY 1
7805 _ACEOF
7807 if test "$llvm_cv_os_type" = "MingW" ; then
7808 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7811 cat >>confdefs.h <<_ACEOF
7812 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7813 _ACEOF
7818 # Extract the first word of "perl", so it can be a program name with args.
7819 set dummy perl; ac_word=$2
7820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7822 if test "${ac_cv_path_PERL+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
7824 else
7825 case $PERL in
7826 [\\/]* | ?:[\\/]*)
7827 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 for as_dir in $PATH
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7837 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 break 2
7841 done
7842 done
7843 IFS=$as_save_IFS
7845 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7847 esac
7849 PERL=$ac_cv_path_PERL
7850 if test -n "$PERL"; then
7851 { echo "$as_me:$LINENO: result: $PERL" >&5
7852 echo "${ECHO_T}$PERL" >&6; }
7853 else
7854 { echo "$as_me:$LINENO: result: no" >&5
7855 echo "${ECHO_T}no" >&6; }
7859 if test "$PERL" != "none"; then
7860 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7861 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7862 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7863 { echo "$as_me:$LINENO: result: yes" >&5
7864 echo "${ECHO_T}yes" >&6; }
7865 else
7866 PERL=none
7867 { echo "$as_me:$LINENO: result: not found" >&5
7868 echo "${ECHO_T}not found" >&6; }
7873 if test x"$PERL" = xnone; then
7874 HAVE_PERL=0
7876 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7877 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7878 { (exit 1); exit 1; }; }
7879 else
7880 HAVE_PERL=1
7884 # Find a good install program. We prefer a C program (faster),
7885 # so one script is as good as another. But avoid the broken or
7886 # incompatible versions:
7887 # SysV /etc/install, /usr/sbin/install
7888 # SunOS /usr/etc/install
7889 # IRIX /sbin/install
7890 # AIX /bin/install
7891 # AmigaOS /C/install, which installs bootblocks on floppy discs
7892 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7893 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7894 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7895 # OS/2's system install, which has a completely different semantic
7896 # ./install, which can be erroneously created by make from ./install.sh.
7897 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7898 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7899 if test -z "$INSTALL"; then
7900 if test "${ac_cv_path_install+set}" = set; then
7901 echo $ECHO_N "(cached) $ECHO_C" >&6
7902 else
7903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904 for as_dir in $PATH
7906 IFS=$as_save_IFS
7907 test -z "$as_dir" && as_dir=.
7908 # Account for people who put trailing slashes in PATH elements.
7909 case $as_dir/ in
7910 ./ | .// | /cC/* | \
7911 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7912 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7913 /usr/ucb/* ) ;;
7915 # OSF1 and SCO ODT 3.0 have their own names for install.
7916 # Don't use installbsd from OSF since it installs stuff as root
7917 # by default.
7918 for ac_prog in ginstall scoinst install; do
7919 for ac_exec_ext in '' $ac_executable_extensions; do
7920 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7921 if test $ac_prog = install &&
7922 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7923 # AIX install. It has an incompatible calling convention.
7925 elif test $ac_prog = install &&
7926 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7927 # program-specific install script used by HP pwplus--don't use.
7929 else
7930 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7931 break 3
7934 done
7935 done
7937 esac
7938 done
7939 IFS=$as_save_IFS
7943 if test "${ac_cv_path_install+set}" = set; then
7944 INSTALL=$ac_cv_path_install
7945 else
7946 # As a last resort, use the slow shell script. Don't cache a
7947 # value for INSTALL within a source directory, because that will
7948 # break other packages using the cache if that directory is
7949 # removed, or if the value is a relative name.
7950 INSTALL=$ac_install_sh
7953 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7954 echo "${ECHO_T}$INSTALL" >&6; }
7956 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7957 # It thinks the first close brace ends the variable substitution.
7958 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7960 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7962 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7965 # Extract the first word of "bzip2", so it can be a program name with args.
7966 set dummy bzip2; ac_word=$2
7967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7969 if test "${ac_cv_path_BZIP2+set}" = set; then
7970 echo $ECHO_N "(cached) $ECHO_C" >&6
7971 else
7972 case $BZIP2 in
7973 [\\/]* | ?:[\\/]*)
7974 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978 for as_dir in $PATH
7980 IFS=$as_save_IFS
7981 test -z "$as_dir" && as_dir=.
7982 for ac_exec_ext in '' $ac_executable_extensions; do
7983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7984 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7986 break 2
7988 done
7989 done
7990 IFS=$as_save_IFS
7993 esac
7995 BZIP2=$ac_cv_path_BZIP2
7996 if test -n "$BZIP2"; then
7997 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7998 echo "${ECHO_T}$BZIP2" >&6; }
7999 else
8000 { echo "$as_me:$LINENO: result: no" >&5
8001 echo "${ECHO_T}no" >&6; }
8005 # Extract the first word of "doxygen", so it can be a program name with args.
8006 set dummy doxygen; ac_word=$2
8007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8009 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8010 echo $ECHO_N "(cached) $ECHO_C" >&6
8011 else
8012 case $DOXYGEN in
8013 [\\/]* | ?:[\\/]*)
8014 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018 for as_dir in $PATH
8020 IFS=$as_save_IFS
8021 test -z "$as_dir" && as_dir=.
8022 for ac_exec_ext in '' $ac_executable_extensions; do
8023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8024 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8026 break 2
8028 done
8029 done
8030 IFS=$as_save_IFS
8033 esac
8035 DOXYGEN=$ac_cv_path_DOXYGEN
8036 if test -n "$DOXYGEN"; then
8037 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8038 echo "${ECHO_T}$DOXYGEN" >&6; }
8039 else
8040 { echo "$as_me:$LINENO: result: no" >&5
8041 echo "${ECHO_T}no" >&6; }
8045 # Extract the first word of "groff", so it can be a program name with args.
8046 set dummy groff; ac_word=$2
8047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8049 if test "${ac_cv_path_GROFF+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8051 else
8052 case $GROFF in
8053 [\\/]* | ?:[\\/]*)
8054 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058 for as_dir in $PATH
8060 IFS=$as_save_IFS
8061 test -z "$as_dir" && as_dir=.
8062 for ac_exec_ext in '' $ac_executable_extensions; do
8063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8064 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8066 break 2
8068 done
8069 done
8070 IFS=$as_save_IFS
8073 esac
8075 GROFF=$ac_cv_path_GROFF
8076 if test -n "$GROFF"; then
8077 { echo "$as_me:$LINENO: result: $GROFF" >&5
8078 echo "${ECHO_T}$GROFF" >&6; }
8079 else
8080 { echo "$as_me:$LINENO: result: no" >&5
8081 echo "${ECHO_T}no" >&6; }
8085 # Extract the first word of "gzip", so it can be a program name with args.
8086 set dummy gzip; ac_word=$2
8087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8089 if test "${ac_cv_path_GZIP+set}" = set; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8091 else
8092 case $GZIP in
8093 [\\/]* | ?:[\\/]*)
8094 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098 for as_dir in $PATH
8100 IFS=$as_save_IFS
8101 test -z "$as_dir" && as_dir=.
8102 for ac_exec_ext in '' $ac_executable_extensions; do
8103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8104 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8106 break 2
8108 done
8109 done
8110 IFS=$as_save_IFS
8113 esac
8115 GZIP=$ac_cv_path_GZIP
8116 if test -n "$GZIP"; then
8117 { echo "$as_me:$LINENO: result: $GZIP" >&5
8118 echo "${ECHO_T}$GZIP" >&6; }
8119 else
8120 { echo "$as_me:$LINENO: result: no" >&5
8121 echo "${ECHO_T}no" >&6; }
8125 # Extract the first word of "pod2html", so it can be a program name with args.
8126 set dummy pod2html; ac_word=$2
8127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8129 if test "${ac_cv_path_POD2HTML+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8131 else
8132 case $POD2HTML in
8133 [\\/]* | ?:[\\/]*)
8134 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138 for as_dir in $PATH
8140 IFS=$as_save_IFS
8141 test -z "$as_dir" && as_dir=.
8142 for ac_exec_ext in '' $ac_executable_extensions; do
8143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8144 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8146 break 2
8148 done
8149 done
8150 IFS=$as_save_IFS
8153 esac
8155 POD2HTML=$ac_cv_path_POD2HTML
8156 if test -n "$POD2HTML"; then
8157 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8158 echo "${ECHO_T}$POD2HTML" >&6; }
8159 else
8160 { echo "$as_me:$LINENO: result: no" >&5
8161 echo "${ECHO_T}no" >&6; }
8165 # Extract the first word of "pod2man", so it can be a program name with args.
8166 set dummy pod2man; ac_word=$2
8167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8169 if test "${ac_cv_path_POD2MAN+set}" = set; then
8170 echo $ECHO_N "(cached) $ECHO_C" >&6
8171 else
8172 case $POD2MAN in
8173 [\\/]* | ?:[\\/]*)
8174 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178 for as_dir in $PATH
8180 IFS=$as_save_IFS
8181 test -z "$as_dir" && as_dir=.
8182 for ac_exec_ext in '' $ac_executable_extensions; do
8183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8184 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8186 break 2
8188 done
8189 done
8190 IFS=$as_save_IFS
8193 esac
8195 POD2MAN=$ac_cv_path_POD2MAN
8196 if test -n "$POD2MAN"; then
8197 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8198 echo "${ECHO_T}$POD2MAN" >&6; }
8199 else
8200 { echo "$as_me:$LINENO: result: no" >&5
8201 echo "${ECHO_T}no" >&6; }
8205 # Extract the first word of "runtest", so it can be a program name with args.
8206 set dummy runtest; ac_word=$2
8207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8209 if test "${ac_cv_path_RUNTEST+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8211 else
8212 case $RUNTEST in
8213 [\\/]* | ?:[\\/]*)
8214 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218 for as_dir in $PATH
8220 IFS=$as_save_IFS
8221 test -z "$as_dir" && as_dir=.
8222 for ac_exec_ext in '' $ac_executable_extensions; do
8223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8224 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8226 break 2
8228 done
8229 done
8230 IFS=$as_save_IFS
8233 esac
8235 RUNTEST=$ac_cv_path_RUNTEST
8236 if test -n "$RUNTEST"; then
8237 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8238 echo "${ECHO_T}$RUNTEST" >&6; }
8239 else
8240 { echo "$as_me:$LINENO: result: no" >&5
8241 echo "${ECHO_T}no" >&6; }
8246 no_itcl=true
8247 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8248 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8250 # Check whether --with-tclinclude was given.
8251 if test "${with_tclinclude+set}" = set; then
8252 withval=$with_tclinclude; with_tclinclude=${withval}
8253 else
8254 with_tclinclude=''
8257 if test "${ac_cv_path_tclsh+set}" = set; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 else
8261 if test x"${with_tclinclude}" != x ; then
8262 if test -f ${with_tclinclude}/tclsh ; then
8263 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8264 elif test -f ${with_tclinclude}/src/tclsh ; then
8265 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8266 else
8267 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8268 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8269 { (exit 1); exit 1; }; }
8275 if test x"${ac_cv_path_tclsh}" = x ; then
8276 { echo "$as_me:$LINENO: result: none" >&5
8277 echo "${ECHO_T}none" >&6; }
8278 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
8280 # Extract the first word of "$ac_prog", so it can be a program name with args.
8281 set dummy $ac_prog; ac_word=$2
8282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8284 if test "${ac_cv_path_TCLSH+set}" = set; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8286 else
8287 case $TCLSH in
8288 [\\/]* | ?:[\\/]*)
8289 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293 for as_dir in $PATH
8295 IFS=$as_save_IFS
8296 test -z "$as_dir" && as_dir=.
8297 for ac_exec_ext in '' $ac_executable_extensions; do
8298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8299 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8301 break 2
8303 done
8304 done
8305 IFS=$as_save_IFS
8308 esac
8310 TCLSH=$ac_cv_path_TCLSH
8311 if test -n "$TCLSH"; then
8312 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8313 echo "${ECHO_T}$TCLSH" >&6; }
8314 else
8315 { echo "$as_me:$LINENO: result: no" >&5
8316 echo "${ECHO_T}no" >&6; }
8320 test -n "$TCLSH" && break
8321 done
8323 if test x"${TCLSH}" = x ; then
8324 ac_cv_path_tclsh='';
8325 else
8326 ac_cv_path_tclsh="${TCLSH}";
8328 else
8329 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8330 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8331 TCLSH="${ac_cv_path_tclsh}"
8335 # Extract the first word of "zip", so it can be a program name with args.
8336 set dummy zip; ac_word=$2
8337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8339 if test "${ac_cv_path_ZIP+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8341 else
8342 case $ZIP in
8343 [\\/]* | ?:[\\/]*)
8344 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348 for as_dir in $PATH
8350 IFS=$as_save_IFS
8351 test -z "$as_dir" && as_dir=.
8352 for ac_exec_ext in '' $ac_executable_extensions; do
8353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8354 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8356 break 2
8358 done
8359 done
8360 IFS=$as_save_IFS
8363 esac
8365 ZIP=$ac_cv_path_ZIP
8366 if test -n "$ZIP"; then
8367 { echo "$as_me:$LINENO: result: $ZIP" >&5
8368 echo "${ECHO_T}$ZIP" >&6; }
8369 else
8370 { echo "$as_me:$LINENO: result: no" >&5
8371 echo "${ECHO_T}no" >&6; }
8375 for ac_prog in ocamlc
8377 # Extract the first word of "$ac_prog", so it can be a program name with args.
8378 set dummy $ac_prog; ac_word=$2
8379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8381 if test "${ac_cv_path_OCAMLC+set}" = set; then
8382 echo $ECHO_N "(cached) $ECHO_C" >&6
8383 else
8384 case $OCAMLC in
8385 [\\/]* | ?:[\\/]*)
8386 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390 for as_dir in $PATH
8392 IFS=$as_save_IFS
8393 test -z "$as_dir" && as_dir=.
8394 for ac_exec_ext in '' $ac_executable_extensions; do
8395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8396 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8398 break 2
8400 done
8401 done
8402 IFS=$as_save_IFS
8405 esac
8407 OCAMLC=$ac_cv_path_OCAMLC
8408 if test -n "$OCAMLC"; then
8409 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8410 echo "${ECHO_T}$OCAMLC" >&6; }
8411 else
8412 { echo "$as_me:$LINENO: result: no" >&5
8413 echo "${ECHO_T}no" >&6; }
8417 test -n "$OCAMLC" && break
8418 done
8420 for ac_prog in ocamlopt
8422 # Extract the first word of "$ac_prog", so it can be a program name with args.
8423 set dummy $ac_prog; ac_word=$2
8424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8426 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 else
8429 case $OCAMLOPT in
8430 [\\/]* | ?:[\\/]*)
8431 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8435 for as_dir in $PATH
8437 IFS=$as_save_IFS
8438 test -z "$as_dir" && as_dir=.
8439 for ac_exec_ext in '' $ac_executable_extensions; do
8440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8441 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8443 break 2
8445 done
8446 done
8447 IFS=$as_save_IFS
8450 esac
8452 OCAMLOPT=$ac_cv_path_OCAMLOPT
8453 if test -n "$OCAMLOPT"; then
8454 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8455 echo "${ECHO_T}$OCAMLOPT" >&6; }
8456 else
8457 { echo "$as_me:$LINENO: result: no" >&5
8458 echo "${ECHO_T}no" >&6; }
8462 test -n "$OCAMLOPT" && break
8463 done
8465 for ac_prog in ocamldep
8467 # Extract the first word of "$ac_prog", so it can be a program name with args.
8468 set dummy $ac_prog; ac_word=$2
8469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8471 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8473 else
8474 case $OCAMLDEP in
8475 [\\/]* | ?:[\\/]*)
8476 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480 for as_dir in $PATH
8482 IFS=$as_save_IFS
8483 test -z "$as_dir" && as_dir=.
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8486 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8488 break 2
8490 done
8491 done
8492 IFS=$as_save_IFS
8495 esac
8497 OCAMLDEP=$ac_cv_path_OCAMLDEP
8498 if test -n "$OCAMLDEP"; then
8499 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8500 echo "${ECHO_T}$OCAMLDEP" >&6; }
8501 else
8502 { echo "$as_me:$LINENO: result: no" >&5
8503 echo "${ECHO_T}no" >&6; }
8507 test -n "$OCAMLDEP" && break
8508 done
8510 for ac_prog in ocamldoc
8512 # Extract the first word of "$ac_prog", so it can be a program name with args.
8513 set dummy $ac_prog; ac_word=$2
8514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8516 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8518 else
8519 case $OCAMLDOC in
8520 [\\/]* | ?:[\\/]*)
8521 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525 for as_dir in $PATH
8527 IFS=$as_save_IFS
8528 test -z "$as_dir" && as_dir=.
8529 for ac_exec_ext in '' $ac_executable_extensions; do
8530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8531 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8533 break 2
8535 done
8536 done
8537 IFS=$as_save_IFS
8540 esac
8542 OCAMLDOC=$ac_cv_path_OCAMLDOC
8543 if test -n "$OCAMLDOC"; then
8544 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8545 echo "${ECHO_T}$OCAMLDOC" >&6; }
8546 else
8547 { echo "$as_me:$LINENO: result: no" >&5
8548 echo "${ECHO_T}no" >&6; }
8552 test -n "$OCAMLDOC" && break
8553 done
8555 for ac_prog in gas as
8557 # Extract the first word of "$ac_prog", so it can be a program name with args.
8558 set dummy $ac_prog; ac_word=$2
8559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8561 if test "${ac_cv_path_GAS+set}" = set; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8563 else
8564 case $GAS in
8565 [\\/]* | ?:[\\/]*)
8566 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8570 for as_dir in $PATH
8572 IFS=$as_save_IFS
8573 test -z "$as_dir" && as_dir=.
8574 for ac_exec_ext in '' $ac_executable_extensions; do
8575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8576 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8578 break 2
8580 done
8581 done
8582 IFS=$as_save_IFS
8585 esac
8587 GAS=$ac_cv_path_GAS
8588 if test -n "$GAS"; then
8589 { echo "$as_me:$LINENO: result: $GAS" >&5
8590 echo "${ECHO_T}$GAS" >&6; }
8591 else
8592 { echo "$as_me:$LINENO: result: no" >&5
8593 echo "${ECHO_T}no" >&6; }
8597 test -n "$GAS" && break
8598 done
8601 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8602 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8603 if test "${llvm_cv_link_use_r+set}" = set; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8605 else
8606 ac_ext=c
8607 ac_cpp='$CPP $CPPFLAGS'
8608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8612 oldcflags="$CFLAGS"
8613 CFLAGS="$CFLAGS -Wl,-R."
8614 cat >conftest.$ac_ext <<_ACEOF
8615 /* confdefs.h. */
8616 _ACEOF
8617 cat confdefs.h >>conftest.$ac_ext
8618 cat >>conftest.$ac_ext <<_ACEOF
8619 /* end confdefs.h. */
8622 main ()
8624 int main() { return 0; }
8626 return 0;
8628 _ACEOF
8629 rm -f conftest.$ac_objext conftest$ac_exeext
8630 if { (ac_try="$ac_link"
8631 case "(($ac_try" in
8632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8633 *) ac_try_echo=$ac_try;;
8634 esac
8635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8636 (eval "$ac_link") 2>conftest.er1
8637 ac_status=$?
8638 grep -v '^ *+' conftest.er1 >conftest.err
8639 rm -f conftest.er1
8640 cat conftest.err >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); } &&
8643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
8650 ac_status=$?
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; } &&
8653 { ac_try='test -s conftest$ac_exeext'
8654 { (case "(($ac_try" in
8655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656 *) ac_try_echo=$ac_try;;
8657 esac
8658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8659 (eval "$ac_try") 2>&5
8660 ac_status=$?
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); }; }; then
8663 llvm_cv_link_use_r=yes
8664 else
8665 echo "$as_me: failed program was:" >&5
8666 sed 's/^/| /' conftest.$ac_ext >&5
8668 llvm_cv_link_use_r=no
8671 rm -f core conftest.err conftest.$ac_objext \
8672 conftest$ac_exeext conftest.$ac_ext
8673 CFLAGS="$oldcflags"
8674 ac_ext=c
8675 ac_cpp='$CPP $CPPFLAGS'
8676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8682 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8683 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8684 if test "$llvm_cv_link_use_r" = yes ; then
8686 cat >>confdefs.h <<\_ACEOF
8687 #define HAVE_LINK_R 1
8688 _ACEOF
8693 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8694 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8695 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8696 echo $ECHO_N "(cached) $ECHO_C" >&6
8697 else
8698 ac_ext=c
8699 ac_cpp='$CPP $CPPFLAGS'
8700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8704 oldcflags="$CFLAGS"
8705 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8706 cat >conftest.$ac_ext <<_ACEOF
8707 /* confdefs.h. */
8708 _ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h. */
8714 main ()
8716 int main() { return 0; }
8718 return 0;
8720 _ACEOF
8721 rm -f conftest.$ac_objext conftest$ac_exeext
8722 if { (ac_try="$ac_link"
8723 case "(($ac_try" in
8724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8725 *) ac_try_echo=$ac_try;;
8726 esac
8727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8728 (eval "$ac_link") 2>conftest.er1
8729 ac_status=$?
8730 grep -v '^ *+' conftest.er1 >conftest.err
8731 rm -f conftest.er1
8732 cat conftest.err >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } &&
8735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
8742 ac_status=$?
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); }; } &&
8745 { ac_try='test -s conftest$ac_exeext'
8746 { (case "(($ac_try" in
8747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8748 *) ac_try_echo=$ac_try;;
8749 esac
8750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8751 (eval "$ac_try") 2>&5
8752 ac_status=$?
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); }; }; then
8755 llvm_cv_link_use_export_dynamic=yes
8756 else
8757 echo "$as_me: failed program was:" >&5
8758 sed 's/^/| /' conftest.$ac_ext >&5
8760 llvm_cv_link_use_export_dynamic=no
8763 rm -f core conftest.err conftest.$ac_objext \
8764 conftest$ac_exeext conftest.$ac_ext
8765 CFLAGS="$oldcflags"
8766 ac_ext=c
8767 ac_cpp='$CPP $CPPFLAGS'
8768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8774 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8775 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8776 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8778 cat >>confdefs.h <<\_ACEOF
8779 #define HAVE_LINK_EXPORT_DYNAMIC 1
8780 _ACEOF
8787 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8788 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8789 if test "${ac_cv_c_const+set}" = set; then
8790 echo $ECHO_N "(cached) $ECHO_C" >&6
8791 else
8792 cat >conftest.$ac_ext <<_ACEOF
8793 /* confdefs.h. */
8794 _ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8800 main ()
8802 /* FIXME: Include the comments suggested by Paul. */
8803 #ifndef __cplusplus
8804 /* Ultrix mips cc rejects this. */
8805 typedef int charset[2];
8806 const charset x;
8807 /* SunOS 4.1.1 cc rejects this. */
8808 char const *const *ccp;
8809 char **p;
8810 /* NEC SVR4.0.2 mips cc rejects this. */
8811 struct point {int x, y;};
8812 static struct point const zero = {0,0};
8813 /* AIX XL C 1.02.0.0 rejects this.
8814 It does not let you subtract one const X* pointer from another in
8815 an arm of an if-expression whose if-part is not a constant
8816 expression */
8817 const char *g = "string";
8818 ccp = &g + (g ? g-g : 0);
8819 /* HPUX 7.0 cc rejects these. */
8820 ++ccp;
8821 p = (char**) ccp;
8822 ccp = (char const *const *) p;
8823 { /* SCO 3.2v4 cc rejects this. */
8824 char *t;
8825 char const *s = 0 ? (char *) 0 : (char const *) 0;
8827 *t++ = 0;
8828 if (s) return 0;
8830 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8831 int x[] = {25, 17};
8832 const int *foo = &x[0];
8833 ++foo;
8835 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8836 typedef const int *iptr;
8837 iptr p = 0;
8838 ++p;
8840 { /* AIX XL C 1.02.0.0 rejects this saying
8841 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8842 struct s { int j; const int *ap[3]; };
8843 struct s *b; b->j = 5;
8845 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8846 const int foo = 10;
8847 if (!foo) return 0;
8849 return !x[0] && !zero.x;
8850 #endif
8853 return 0;
8855 _ACEOF
8856 rm -f conftest.$ac_objext
8857 if { (ac_try="$ac_compile"
8858 case "(($ac_try" in
8859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8860 *) ac_try_echo=$ac_try;;
8861 esac
8862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8863 (eval "$ac_compile") 2>conftest.er1
8864 ac_status=$?
8865 grep -v '^ *+' conftest.er1 >conftest.err
8866 rm -f conftest.er1
8867 cat conftest.err >&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); } &&
8870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8871 { (case "(($ac_try" in
8872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8873 *) ac_try_echo=$ac_try;;
8874 esac
8875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8876 (eval "$ac_try") 2>&5
8877 ac_status=$?
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); }; } &&
8880 { ac_try='test -s conftest.$ac_objext'
8881 { (case "(($ac_try" in
8882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8883 *) ac_try_echo=$ac_try;;
8884 esac
8885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886 (eval "$ac_try") 2>&5
8887 ac_status=$?
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); }; }; then
8890 ac_cv_c_const=yes
8891 else
8892 echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8895 ac_cv_c_const=no
8898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8900 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8901 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8902 if test $ac_cv_c_const = no; then
8904 cat >>confdefs.h <<\_ACEOF
8905 #define const
8906 _ACEOF
8915 ac_header_dirent=no
8916 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8917 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8918 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8919 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
8922 else
8923 cat >conftest.$ac_ext <<_ACEOF
8924 /* confdefs.h. */
8925 _ACEOF
8926 cat confdefs.h >>conftest.$ac_ext
8927 cat >>conftest.$ac_ext <<_ACEOF
8928 /* end confdefs.h. */
8929 #include <sys/types.h>
8930 #include <$ac_hdr>
8933 main ()
8935 if ((DIR *) 0)
8936 return 0;
8938 return 0;
8940 _ACEOF
8941 rm -f conftest.$ac_objext
8942 if { (ac_try="$ac_compile"
8943 case "(($ac_try" in
8944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945 *) ac_try_echo=$ac_try;;
8946 esac
8947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8948 (eval "$ac_compile") 2>conftest.er1
8949 ac_status=$?
8950 grep -v '^ *+' conftest.er1 >conftest.err
8951 rm -f conftest.er1
8952 cat conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } &&
8955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8956 { (case "(($ac_try" in
8957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8958 *) ac_try_echo=$ac_try;;
8959 esac
8960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8961 (eval "$ac_try") 2>&5
8962 ac_status=$?
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); }; } &&
8965 { ac_try='test -s conftest.$ac_objext'
8966 { (case "(($ac_try" in
8967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8968 *) ac_try_echo=$ac_try;;
8969 esac
8970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8971 (eval "$ac_try") 2>&5
8972 ac_status=$?
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); }; }; then
8975 eval "$as_ac_Header=yes"
8976 else
8977 echo "$as_me: failed program was:" >&5
8978 sed 's/^/| /' conftest.$ac_ext >&5
8980 eval "$as_ac_Header=no"
8983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8985 ac_res=`eval echo '${'$as_ac_Header'}'`
8986 { echo "$as_me:$LINENO: result: $ac_res" >&5
8987 echo "${ECHO_T}$ac_res" >&6; }
8988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8989 cat >>confdefs.h <<_ACEOF
8990 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8991 _ACEOF
8993 ac_header_dirent=$ac_hdr; break
8996 done
8997 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8998 if test $ac_header_dirent = dirent.h; then
8999 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9000 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9001 if test "${ac_cv_search_opendir+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9003 else
9004 ac_func_search_save_LIBS=$LIBS
9005 cat >conftest.$ac_ext <<_ACEOF
9006 /* confdefs.h. */
9007 _ACEOF
9008 cat confdefs.h >>conftest.$ac_ext
9009 cat >>conftest.$ac_ext <<_ACEOF
9010 /* end confdefs.h. */
9012 /* Override any GCC internal prototype to avoid an error.
9013 Use char because int might match the return type of a GCC
9014 builtin and then its argument prototype would still apply. */
9015 #ifdef __cplusplus
9016 extern "C"
9017 #endif
9018 char opendir ();
9020 main ()
9022 return opendir ();
9024 return 0;
9026 _ACEOF
9027 for ac_lib in '' dir; do
9028 if test -z "$ac_lib"; then
9029 ac_res="none required"
9030 else
9031 ac_res=-l$ac_lib
9032 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9034 rm -f conftest.$ac_objext conftest$ac_exeext
9035 if { (ac_try="$ac_link"
9036 case "(($ac_try" in
9037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9038 *) ac_try_echo=$ac_try;;
9039 esac
9040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9041 (eval "$ac_link") 2>conftest.er1
9042 ac_status=$?
9043 grep -v '^ *+' conftest.er1 >conftest.err
9044 rm -f conftest.er1
9045 cat conftest.err >&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); } &&
9048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9049 { (case "(($ac_try" in
9050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051 *) ac_try_echo=$ac_try;;
9052 esac
9053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9054 (eval "$ac_try") 2>&5
9055 ac_status=$?
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; } &&
9058 { ac_try='test -s conftest$ac_exeext'
9059 { (case "(($ac_try" in
9060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9061 *) ac_try_echo=$ac_try;;
9062 esac
9063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9064 (eval "$ac_try") 2>&5
9065 ac_status=$?
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; }; then
9068 ac_cv_search_opendir=$ac_res
9069 else
9070 echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.$ac_ext >&5
9076 rm -f core conftest.err conftest.$ac_objext \
9077 conftest$ac_exeext
9078 if test "${ac_cv_search_opendir+set}" = set; then
9079 break
9081 done
9082 if test "${ac_cv_search_opendir+set}" = set; then
9084 else
9085 ac_cv_search_opendir=no
9087 rm conftest.$ac_ext
9088 LIBS=$ac_func_search_save_LIBS
9090 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9091 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9092 ac_res=$ac_cv_search_opendir
9093 if test "$ac_res" != no; then
9094 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9098 else
9099 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9100 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9101 if test "${ac_cv_search_opendir+set}" = set; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9103 else
9104 ac_func_search_save_LIBS=$LIBS
9105 cat >conftest.$ac_ext <<_ACEOF
9106 /* confdefs.h. */
9107 _ACEOF
9108 cat confdefs.h >>conftest.$ac_ext
9109 cat >>conftest.$ac_ext <<_ACEOF
9110 /* end confdefs.h. */
9112 /* Override any GCC internal prototype to avoid an error.
9113 Use char because int might match the return type of a GCC
9114 builtin and then its argument prototype would still apply. */
9115 #ifdef __cplusplus
9116 extern "C"
9117 #endif
9118 char opendir ();
9120 main ()
9122 return opendir ();
9124 return 0;
9126 _ACEOF
9127 for ac_lib in '' x; do
9128 if test -z "$ac_lib"; then
9129 ac_res="none required"
9130 else
9131 ac_res=-l$ac_lib
9132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9134 rm -f conftest.$ac_objext conftest$ac_exeext
9135 if { (ac_try="$ac_link"
9136 case "(($ac_try" in
9137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9138 *) ac_try_echo=$ac_try;;
9139 esac
9140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9141 (eval "$ac_link") 2>conftest.er1
9142 ac_status=$?
9143 grep -v '^ *+' conftest.er1 >conftest.err
9144 rm -f conftest.er1
9145 cat conftest.err >&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); } &&
9148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9149 { (case "(($ac_try" in
9150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9151 *) ac_try_echo=$ac_try;;
9152 esac
9153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9154 (eval "$ac_try") 2>&5
9155 ac_status=$?
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); }; } &&
9158 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
9165 ac_status=$?
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); }; }; then
9168 ac_cv_search_opendir=$ac_res
9169 else
9170 echo "$as_me: failed program was:" >&5
9171 sed 's/^/| /' conftest.$ac_ext >&5
9176 rm -f core conftest.err conftest.$ac_objext \
9177 conftest$ac_exeext
9178 if test "${ac_cv_search_opendir+set}" = set; then
9179 break
9181 done
9182 if test "${ac_cv_search_opendir+set}" = set; then
9184 else
9185 ac_cv_search_opendir=no
9187 rm conftest.$ac_ext
9188 LIBS=$ac_func_search_save_LIBS
9190 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9191 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9192 ac_res=$ac_cv_search_opendir
9193 if test "$ac_res" != no; then
9194 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9201 for ac_header in dlfcn.h
9203 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9210 ac_res=`eval echo '${'$as_ac_Header'}'`
9211 { echo "$as_me:$LINENO: result: $ac_res" >&5
9212 echo "${ECHO_T}$ac_res" >&6; }
9213 else
9214 # Is the header compilable?
9215 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9216 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9217 cat >conftest.$ac_ext <<_ACEOF
9218 /* confdefs.h. */
9219 _ACEOF
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h. */
9223 $ac_includes_default
9224 #include <$ac_header>
9225 _ACEOF
9226 rm -f conftest.$ac_objext
9227 if { (ac_try="$ac_compile"
9228 case "(($ac_try" in
9229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9230 *) ac_try_echo=$ac_try;;
9231 esac
9232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9233 (eval "$ac_compile") 2>conftest.er1
9234 ac_status=$?
9235 grep -v '^ *+' conftest.er1 >conftest.err
9236 rm -f conftest.er1
9237 cat conftest.err >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } &&
9240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9241 { (case "(($ac_try" in
9242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9243 *) ac_try_echo=$ac_try;;
9244 esac
9245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9246 (eval "$ac_try") 2>&5
9247 ac_status=$?
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; } &&
9250 { ac_try='test -s conftest.$ac_objext'
9251 { (case "(($ac_try" in
9252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253 *) ac_try_echo=$ac_try;;
9254 esac
9255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9256 (eval "$ac_try") 2>&5
9257 ac_status=$?
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; }; then
9260 ac_header_compiler=yes
9261 else
9262 echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9265 ac_header_compiler=no
9268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9269 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9270 echo "${ECHO_T}$ac_header_compiler" >&6; }
9272 # Is the header present?
9273 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9275 cat >conftest.$ac_ext <<_ACEOF
9276 /* confdefs.h. */
9277 _ACEOF
9278 cat confdefs.h >>conftest.$ac_ext
9279 cat >>conftest.$ac_ext <<_ACEOF
9280 /* end confdefs.h. */
9281 #include <$ac_header>
9282 _ACEOF
9283 if { (ac_try="$ac_cpp conftest.$ac_ext"
9284 case "(($ac_try" in
9285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9286 *) ac_try_echo=$ac_try;;
9287 esac
9288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9290 ac_status=$?
9291 grep -v '^ *+' conftest.er1 >conftest.err
9292 rm -f conftest.er1
9293 cat conftest.err >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } >/dev/null; then
9296 if test -s conftest.err; then
9297 ac_cpp_err=$ac_c_preproc_warn_flag
9298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9299 else
9300 ac_cpp_err=
9302 else
9303 ac_cpp_err=yes
9305 if test -z "$ac_cpp_err"; then
9306 ac_header_preproc=yes
9307 else
9308 echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.$ac_ext >&5
9311 ac_header_preproc=no
9314 rm -f conftest.err conftest.$ac_ext
9315 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9316 echo "${ECHO_T}$ac_header_preproc" >&6; }
9318 # So? What about this header?
9319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9320 yes:no: )
9321 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9322 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9324 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9325 ac_header_preproc=yes
9327 no:yes:* )
9328 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9329 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9330 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9331 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9332 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9333 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9334 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9335 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9338 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9339 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9340 ( cat <<\_ASBOX
9341 ## ----------------------------------- ##
9342 ## Report this to llvmbugs@cs.uiuc.edu ##
9343 ## ----------------------------------- ##
9344 _ASBOX
9345 ) | sed "s/^/$as_me: WARNING: /" >&2
9347 esac
9348 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 else
9353 eval "$as_ac_Header=\$ac_header_preproc"
9355 ac_res=`eval echo '${'$as_ac_Header'}'`
9356 { echo "$as_me:$LINENO: result: $ac_res" >&5
9357 echo "${ECHO_T}$ac_res" >&6; }
9360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9361 cat >>confdefs.h <<_ACEOF
9362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9363 _ACEOF
9367 done
9369 # Check whether --enable-ltdl-install was given.
9370 if test "${enable_ltdl_install+set}" = set; then
9371 enableval=$enable_ltdl_install;
9377 if test x"${enable_ltdl_install-no}" != xno; then
9378 INSTALL_LTDL_TRUE=
9379 INSTALL_LTDL_FALSE='#'
9380 else
9381 INSTALL_LTDL_TRUE='#'
9382 INSTALL_LTDL_FALSE=
9387 if test x"${enable_ltdl_convenience-no}" != xno; then
9388 CONVENIENCE_LTDL_TRUE=
9389 CONVENIENCE_LTDL_FALSE='#'
9390 else
9391 CONVENIENCE_LTDL_TRUE='#'
9392 CONVENIENCE_LTDL_FALSE=
9396 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9397 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9398 library_names_spec=
9399 libname_spec='lib$name'
9400 soname_spec=
9401 shrext_cmds=".so"
9402 postinstall_cmds=
9403 postuninstall_cmds=
9404 finish_cmds=
9405 finish_eval=
9406 shlibpath_var=
9407 shlibpath_overrides_runpath=unknown
9408 version_type=none
9409 dynamic_linker="$host_os ld.so"
9410 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9411 if test "$GCC" = yes; then
9412 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9413 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9414 # if the path contains ";" then we assume it to be the separator
9415 # otherwise default to the standard path separator (i.e. ":") - it is
9416 # assumed that no part of a normal pathname contains ";" but that should
9417 # okay in the real world where ";" in dirpaths is itself problematic.
9418 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9419 else
9420 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9422 else
9423 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9425 need_lib_prefix=unknown
9426 hardcode_into_libs=no
9428 # when you set need_version to no, make sure it does not cause -set_version
9429 # flags to be left without arguments
9430 need_version=unknown
9432 case $host_os in
9433 aix3*)
9434 version_type=linux
9435 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9436 shlibpath_var=LIBPATH
9438 # AIX 3 has no versioning support, so we append a major version to the name.
9439 soname_spec='${libname}${release}${shared_ext}$major'
9442 aix4* | aix5*)
9443 version_type=linux
9444 need_lib_prefix=no
9445 need_version=no
9446 hardcode_into_libs=yes
9447 if test "$host_cpu" = ia64; then
9448 # AIX 5 supports IA64
9449 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9450 shlibpath_var=LD_LIBRARY_PATH
9451 else
9452 # With GCC up to 2.95.x, collect2 would create an import file
9453 # for dependence libraries. The import file would start with
9454 # the line `#! .'. This would cause the generated library to
9455 # depend on `.', always an invalid library. This was fixed in
9456 # development snapshots of GCC prior to 3.0.
9457 case $host_os in
9458 aix4 | aix4.[01] | aix4.[01].*)
9459 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9460 echo ' yes '
9461 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9463 else
9464 can_build_shared=no
9467 esac
9468 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9469 # soname into executable. Probably we can add versioning support to
9470 # collect2, so additional links can be useful in future.
9471 if test "$aix_use_runtimelinking" = yes; then
9472 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9473 # instead of lib<name>.a to let people know that these are not
9474 # typical AIX shared libraries.
9475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9476 else
9477 # We preserve .a as extension for shared libraries through AIX4.2
9478 # and later when we are not doing run time linking.
9479 library_names_spec='${libname}${release}.a $libname.a'
9480 soname_spec='${libname}${release}${shared_ext}$major'
9482 shlibpath_var=LIBPATH
9486 amigaos*)
9487 library_names_spec='$libname.ixlibrary $libname.a'
9488 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9489 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'
9492 beos*)
9493 library_names_spec='${libname}${shared_ext}'
9494 dynamic_linker="$host_os ld.so"
9495 shlibpath_var=LIBRARY_PATH
9498 bsdi[45]*)
9499 version_type=linux
9500 need_version=no
9501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9502 soname_spec='${libname}${release}${shared_ext}$major'
9503 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9504 shlibpath_var=LD_LIBRARY_PATH
9505 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9506 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9507 # the default ld.so.conf also contains /usr/contrib/lib and
9508 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9509 # libtool to hard-code these into programs
9512 cygwin* | mingw* | pw32*)
9513 version_type=windows
9514 shrext_cmds=".dll"
9515 need_version=no
9516 need_lib_prefix=no
9518 case $GCC,$host_os in
9519 yes,cygwin* | yes,mingw* | yes,pw32*)
9520 library_names_spec='$libname.dll.a'
9521 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9522 postinstall_cmds='base_file=`basename \${file}`~
9523 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9524 dldir=$destdir/`dirname \$dlpath`~
9525 test -d \$dldir || mkdir -p \$dldir~
9526 $install_prog $dir/$dlname \$dldir/$dlname~
9527 chmod a+x \$dldir/$dlname'
9528 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9529 dlpath=$dir/\$dldll~
9530 $rm \$dlpath'
9531 shlibpath_overrides_runpath=yes
9533 case $host_os in
9534 cygwin*)
9535 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9536 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9537 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9539 mingw*)
9540 # MinGW DLLs use traditional 'lib' prefix
9541 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9542 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9543 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9544 # It is most probably a Windows format PATH printed by
9545 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9546 # path with ; separators, and with drive letters. We can handle the
9547 # drive letters (cygwin fileutils understands them), so leave them,
9548 # especially as we might pass files found there to a mingw objdump,
9549 # which wouldn't understand a cygwinified path. Ahh.
9550 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9551 else
9552 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9555 pw32*)
9556 # pw32 DLLs use 'pw' prefix rather than 'lib'
9557 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9559 esac
9563 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9565 esac
9566 dynamic_linker='Win32 ld.exe'
9567 # FIXME: first we should search . and the directory the executable is in
9568 shlibpath_var=PATH
9571 darwin* | rhapsody*)
9572 dynamic_linker="$host_os dyld"
9573 version_type=darwin
9574 need_lib_prefix=no
9575 need_version=no
9576 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9577 soname_spec='${libname}${release}${major}$shared_ext'
9578 shlibpath_overrides_runpath=yes
9579 shlibpath_var=DYLD_LIBRARY_PATH
9580 shrext_cmds='.dylib'
9581 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9582 if test "$GCC" = yes; then
9583 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"`
9584 else
9585 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9587 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9590 dgux*)
9591 version_type=linux
9592 need_lib_prefix=no
9593 need_version=no
9594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9595 soname_spec='${libname}${release}${shared_ext}$major'
9596 shlibpath_var=LD_LIBRARY_PATH
9599 freebsd1*)
9600 dynamic_linker=no
9603 kfreebsd*-gnu)
9604 version_type=linux
9605 need_lib_prefix=no
9606 need_version=no
9607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9608 soname_spec='${libname}${release}${shared_ext}$major'
9609 shlibpath_var=LD_LIBRARY_PATH
9610 shlibpath_overrides_runpath=no
9611 hardcode_into_libs=yes
9612 dynamic_linker='GNU ld.so'
9615 freebsd* | dragonfly*)
9616 # DragonFly does not have aout. When/if they implement a new
9617 # versioning mechanism, adjust this.
9618 if test -x /usr/bin/objformat; then
9619 objformat=`/usr/bin/objformat`
9620 else
9621 case $host_os in
9622 freebsd[123]*) objformat=aout ;;
9623 *) objformat=elf ;;
9624 esac
9626 version_type=freebsd-$objformat
9627 case $version_type in
9628 freebsd-elf*)
9629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9630 need_version=no
9631 need_lib_prefix=no
9633 freebsd-*)
9634 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9635 need_version=yes
9637 esac
9638 shlibpath_var=LD_LIBRARY_PATH
9639 case $host_os in
9640 freebsd2*)
9641 shlibpath_overrides_runpath=yes
9643 freebsd3.[01]* | freebsdelf3.[01]*)
9644 shlibpath_overrides_runpath=yes
9645 hardcode_into_libs=yes
9647 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9648 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9649 shlibpath_overrides_runpath=no
9650 hardcode_into_libs=yes
9652 freebsd*) # from 4.6 on
9653 shlibpath_overrides_runpath=yes
9654 hardcode_into_libs=yes
9656 esac
9659 gnu*)
9660 version_type=linux
9661 need_lib_prefix=no
9662 need_version=no
9663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9664 soname_spec='${libname}${release}${shared_ext}$major'
9665 shlibpath_var=LD_LIBRARY_PATH
9666 hardcode_into_libs=yes
9669 hpux9* | hpux10* | hpux11*)
9670 # Give a soname corresponding to the major version so that dld.sl refuses to
9671 # link against other versions.
9672 version_type=sunos
9673 need_lib_prefix=no
9674 need_version=no
9675 case $host_cpu in
9676 ia64*)
9677 shrext_cmds='.so'
9678 hardcode_into_libs=yes
9679 dynamic_linker="$host_os dld.so"
9680 shlibpath_var=LD_LIBRARY_PATH
9681 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9683 soname_spec='${libname}${release}${shared_ext}$major'
9684 if test "X$HPUX_IA64_MODE" = X32; then
9685 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9686 else
9687 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9689 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9691 hppa*64*)
9692 shrext_cmds='.sl'
9693 hardcode_into_libs=yes
9694 dynamic_linker="$host_os dld.sl"
9695 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9696 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9698 soname_spec='${libname}${release}${shared_ext}$major'
9699 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9700 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9703 shrext_cmds='.sl'
9704 dynamic_linker="$host_os dld.sl"
9705 shlibpath_var=SHLIB_PATH
9706 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9708 soname_spec='${libname}${release}${shared_ext}$major'
9710 esac
9711 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9712 postinstall_cmds='chmod 555 $lib'
9715 interix3*)
9716 version_type=linux
9717 need_lib_prefix=no
9718 need_version=no
9719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9720 soname_spec='${libname}${release}${shared_ext}$major'
9721 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9722 shlibpath_var=LD_LIBRARY_PATH
9723 shlibpath_overrides_runpath=no
9724 hardcode_into_libs=yes
9727 irix5* | irix6* | nonstopux*)
9728 case $host_os in
9729 nonstopux*) version_type=nonstopux ;;
9731 if test "$lt_cv_prog_gnu_ld" = yes; then
9732 version_type=linux
9733 else
9734 version_type=irix
9735 fi ;;
9736 esac
9737 need_lib_prefix=no
9738 need_version=no
9739 soname_spec='${libname}${release}${shared_ext}$major'
9740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9741 case $host_os in
9742 irix5* | nonstopux*)
9743 libsuff= shlibsuff=
9746 case $LD in # libtool.m4 will add one of these switches to LD
9747 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9748 libsuff= shlibsuff= libmagic=32-bit;;
9749 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9750 libsuff=32 shlibsuff=N32 libmagic=N32;;
9751 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9752 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9753 *) libsuff= shlibsuff= libmagic=never-match;;
9754 esac
9756 esac
9757 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9758 shlibpath_overrides_runpath=no
9759 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9760 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9761 hardcode_into_libs=yes
9764 # No shared lib support for Linux oldld, aout, or coff.
9765 linux*oldld* | linux*aout* | linux*coff*)
9766 dynamic_linker=no
9769 # This must be Linux ELF.
9770 linux*)
9771 version_type=linux
9772 need_lib_prefix=no
9773 need_version=no
9774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9775 soname_spec='${libname}${release}${shared_ext}$major'
9776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9777 shlibpath_var=LD_LIBRARY_PATH
9778 shlibpath_overrides_runpath=no
9779 # This implies no fast_install, which is unacceptable.
9780 # Some rework will be needed to allow for fast_install
9781 # before this can be enabled.
9782 hardcode_into_libs=yes
9784 # Append ld.so.conf contents to the search path
9785 if test -f /etc/ld.so.conf; then
9786 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' ' '`
9787 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9790 # We used to test for /lib/ld.so.1 and disable shared libraries on
9791 # powerpc, because MkLinux only supported shared libraries with the
9792 # GNU dynamic linker. Since this was broken with cross compilers,
9793 # most powerpc-linux boxes support dynamic linking these days and
9794 # people can always --disable-shared, the test was removed, and we
9795 # assume the GNU/Linux dynamic linker is in use.
9796 dynamic_linker='GNU/Linux ld.so'
9799 knetbsd*-gnu)
9800 version_type=linux
9801 need_lib_prefix=no
9802 need_version=no
9803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9804 soname_spec='${libname}${release}${shared_ext}$major'
9805 shlibpath_var=LD_LIBRARY_PATH
9806 shlibpath_overrides_runpath=no
9807 hardcode_into_libs=yes
9808 dynamic_linker='GNU ld.so'
9811 netbsd*)
9812 version_type=sunos
9813 need_lib_prefix=no
9814 need_version=no
9815 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9818 dynamic_linker='NetBSD (a.out) ld.so'
9819 else
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 dynamic_linker='NetBSD ld.elf_so'
9824 shlibpath_var=LD_LIBRARY_PATH
9825 shlibpath_overrides_runpath=yes
9826 hardcode_into_libs=yes
9829 newsos6)
9830 version_type=linux
9831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9832 shlibpath_var=LD_LIBRARY_PATH
9833 shlibpath_overrides_runpath=yes
9836 nto-qnx*)
9837 version_type=linux
9838 need_lib_prefix=no
9839 need_version=no
9840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9841 soname_spec='${libname}${release}${shared_ext}$major'
9842 shlibpath_var=LD_LIBRARY_PATH
9843 shlibpath_overrides_runpath=yes
9846 openbsd*)
9847 version_type=sunos
9848 sys_lib_dlsearch_path_spec="/usr/lib"
9849 need_lib_prefix=no
9850 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9851 case $host_os in
9852 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9853 *) need_version=no ;;
9854 esac
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9856 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9857 shlibpath_var=LD_LIBRARY_PATH
9858 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9859 case $host_os in
9860 openbsd2.[89] | openbsd2.[89].*)
9861 shlibpath_overrides_runpath=no
9864 shlibpath_overrides_runpath=yes
9866 esac
9867 else
9868 shlibpath_overrides_runpath=yes
9872 os2*)
9873 libname_spec='$name'
9874 shrext_cmds=".dll"
9875 need_lib_prefix=no
9876 library_names_spec='$libname${shared_ext} $libname.a'
9877 dynamic_linker='OS/2 ld.exe'
9878 shlibpath_var=LIBPATH
9881 osf3* | osf4* | osf5*)
9882 version_type=osf
9883 need_lib_prefix=no
9884 need_version=no
9885 soname_spec='${libname}${release}${shared_ext}$major'
9886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9887 shlibpath_var=LD_LIBRARY_PATH
9888 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9889 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9892 solaris*)
9893 version_type=linux
9894 need_lib_prefix=no
9895 need_version=no
9896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9897 soname_spec='${libname}${release}${shared_ext}$major'
9898 shlibpath_var=LD_LIBRARY_PATH
9899 shlibpath_overrides_runpath=yes
9900 hardcode_into_libs=yes
9901 # ldd complains unless libraries are executable
9902 postinstall_cmds='chmod +x $lib'
9905 sunos4*)
9906 version_type=sunos
9907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9908 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9909 shlibpath_var=LD_LIBRARY_PATH
9910 shlibpath_overrides_runpath=yes
9911 if test "$with_gnu_ld" = yes; then
9912 need_lib_prefix=no
9914 need_version=yes
9917 sysv4 | sysv4.3*)
9918 version_type=linux
9919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9920 soname_spec='${libname}${release}${shared_ext}$major'
9921 shlibpath_var=LD_LIBRARY_PATH
9922 case $host_vendor in
9923 sni)
9924 shlibpath_overrides_runpath=no
9925 need_lib_prefix=no
9926 export_dynamic_flag_spec='${wl}-Blargedynsym'
9927 runpath_var=LD_RUN_PATH
9929 siemens)
9930 need_lib_prefix=no
9932 motorola)
9933 need_lib_prefix=no
9934 need_version=no
9935 shlibpath_overrides_runpath=no
9936 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9938 esac
9941 sysv4*MP*)
9942 if test -d /usr/nec ;then
9943 version_type=linux
9944 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9945 soname_spec='$libname${shared_ext}.$major'
9946 shlibpath_var=LD_LIBRARY_PATH
9950 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9951 version_type=freebsd-elf
9952 need_lib_prefix=no
9953 need_version=no
9954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9955 soname_spec='${libname}${release}${shared_ext}$major'
9956 shlibpath_var=LD_LIBRARY_PATH
9957 hardcode_into_libs=yes
9958 if test "$with_gnu_ld" = yes; then
9959 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9960 shlibpath_overrides_runpath=no
9961 else
9962 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9963 shlibpath_overrides_runpath=yes
9964 case $host_os in
9965 sco3.2v5*)
9966 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9968 esac
9970 sys_lib_dlsearch_path_spec='/usr/lib'
9973 uts4*)
9974 version_type=linux
9975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9976 soname_spec='${libname}${release}${shared_ext}$major'
9977 shlibpath_var=LD_LIBRARY_PATH
9981 dynamic_linker=no
9983 esac
9984 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9985 echo "${ECHO_T}$dynamic_linker" >&6; }
9986 test "$dynamic_linker" = no && can_build_shared=no
9988 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9989 if test "$GCC" = yes; then
9990 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9994 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9995 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9996 if test "${libltdl_cv_shlibext+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9998 else
10000 module=yes
10001 eval libltdl_cv_shlibext=$shrext_cmds
10004 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10005 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10006 if test -n "$libltdl_cv_shlibext"; then
10008 cat >>confdefs.h <<_ACEOF
10009 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10010 _ACEOF
10015 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10016 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10017 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10019 else
10020 libltdl_cv_shlibpath_var="$shlibpath_var"
10022 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10023 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10024 if test -n "$libltdl_cv_shlibpath_var"; then
10026 cat >>confdefs.h <<_ACEOF
10027 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10028 _ACEOF
10033 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10034 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10035 if test "${libltdl_cv_sys_search_path+set}" = set; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
10037 else
10038 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10040 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10041 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10042 if test -n "$libltdl_cv_sys_search_path"; then
10043 sys_search_path=
10044 for dir in $libltdl_cv_sys_search_path; do
10045 if test -z "$sys_search_path"; then
10046 sys_search_path="$dir"
10047 else
10048 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10050 done
10052 cat >>confdefs.h <<_ACEOF
10053 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10054 _ACEOF
10058 { echo "$as_me:$LINENO: checking for objdir" >&5
10059 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10060 if test "${libltdl_cv_objdir+set}" = set; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
10062 else
10063 libltdl_cv_objdir="$objdir"
10064 if test -n "$objdir"; then
10066 else
10067 rm -f .libs 2>/dev/null
10068 mkdir .libs 2>/dev/null
10069 if test -d .libs; then
10070 libltdl_cv_objdir=.libs
10071 else
10072 # MS-DOS does not allow filenames that begin with a dot.
10073 libltdl_cv_objdir=_libs
10075 rmdir .libs 2>/dev/null
10079 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10080 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10082 cat >>confdefs.h <<_ACEOF
10083 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10084 _ACEOF
10091 # Check for command to grab the raw symbol name followed by C symbol from nm.
10092 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10093 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10094 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10096 else
10098 # These are sane defaults that work on at least a few old systems.
10099 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10101 # Character class describing NM global symbol codes.
10102 symcode='[BCDEGRST]'
10104 # Regexp to match symbols that can be accessed directly from C.
10105 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10107 # Transform an extracted symbol line into a proper C declaration
10108 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10110 # Transform an extracted symbol line into symbol name and symbol address
10111 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'"
10113 # Define system-specific variables.
10114 case $host_os in
10115 aix*)
10116 symcode='[BCDT]'
10118 cygwin* | mingw* | pw32*)
10119 symcode='[ABCDGISTW]'
10121 hpux*) # Its linker distinguishes data from code symbols
10122 if test "$host_cpu" = ia64; then
10123 symcode='[ABCDEGRST]'
10125 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10126 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'"
10128 linux*)
10129 if test "$host_cpu" = ia64; then
10130 symcode='[ABCDGIRSTW]'
10131 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10132 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'"
10135 irix* | nonstopux*)
10136 symcode='[BCDEGRST]'
10138 osf*)
10139 symcode='[BCDEGQRST]'
10141 solaris*)
10142 symcode='[BDRT]'
10144 sco3.2v5*)
10145 symcode='[DT]'
10147 sysv4.2uw2*)
10148 symcode='[DT]'
10150 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10151 symcode='[ABDT]'
10153 sysv4)
10154 symcode='[DFNSTU]'
10156 esac
10158 # Handle CRLF in mingw tool chain
10159 opt_cr=
10160 case $build_os in
10161 mingw*)
10162 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10164 esac
10166 # If we're using GNU nm, then use its standard symbol codes.
10167 case `$NM -V 2>&1` in
10168 *GNU* | *'with BFD'*)
10169 symcode='[ABCDGIRSTW]' ;;
10170 esac
10172 # Try without a prefix undercore, then with it.
10173 for ac_symprfx in "" "_"; do
10175 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10176 symxfrm="\\1 $ac_symprfx\\2 \\2"
10178 # Write the raw and C identifiers.
10179 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10181 # Check to see that the pipe works correctly.
10182 pipe_works=no
10184 rm -f conftest*
10185 cat > conftest.$ac_ext <<EOF
10186 #ifdef __cplusplus
10187 extern "C" {
10188 #endif
10189 char nm_test_var;
10190 void nm_test_func(){}
10191 #ifdef __cplusplus
10193 #endif
10194 int main(){nm_test_var='a';nm_test_func();return(0);}
10197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10198 (eval $ac_compile) 2>&5
10199 ac_status=$?
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; then
10202 # Now try to grab the symbols.
10203 nlist=conftest.nm
10204 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10205 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10206 ac_status=$?
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } && test -s "$nlist"; then
10209 # Try sorting and uniquifying the output.
10210 if sort "$nlist" | uniq > "$nlist"T; then
10211 mv -f "$nlist"T "$nlist"
10212 else
10213 rm -f "$nlist"T
10216 # Make sure that we snagged all the symbols we need.
10217 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10218 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10219 cat <<EOF > conftest.$ac_ext
10220 #ifdef __cplusplus
10221 extern "C" {
10222 #endif
10225 # Now generate the symbol file.
10226 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10228 cat <<EOF >> conftest.$ac_ext
10229 #if defined (__STDC__) && __STDC__
10230 # define lt_ptr_t void *
10231 #else
10232 # define lt_ptr_t char *
10233 # define const
10234 #endif
10236 /* The mapping between symbol names and symbols. */
10237 const struct {
10238 const char *name;
10239 lt_ptr_t address;
10241 lt_preloaded_symbols[] =
10244 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10245 cat <<\EOF >> conftest.$ac_ext
10246 {0, (lt_ptr_t) 0}
10249 #ifdef __cplusplus
10251 #endif
10253 # Now try linking the two files.
10254 mv conftest.$ac_objext conftstm.$ac_objext
10255 lt_save_LIBS="$LIBS"
10256 lt_save_CFLAGS="$CFLAGS"
10257 LIBS="conftstm.$ac_objext"
10258 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10260 (eval $ac_link) 2>&5
10261 ac_status=$?
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10264 pipe_works=yes
10266 LIBS="$lt_save_LIBS"
10267 CFLAGS="$lt_save_CFLAGS"
10268 else
10269 echo "cannot find nm_test_func in $nlist" >&5
10271 else
10272 echo "cannot find nm_test_var in $nlist" >&5
10274 else
10275 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10277 else
10278 echo "$progname: failed program was:" >&5
10279 cat conftest.$ac_ext >&5
10281 rm -f conftest* conftst*
10283 # Do not use the global_symbol_pipe unless it works.
10284 if test "$pipe_works" = yes; then
10285 break
10286 else
10287 lt_cv_sys_global_symbol_pipe=
10289 done
10293 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10294 lt_cv_sys_global_symbol_to_cdecl=
10296 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10297 { echo "$as_me:$LINENO: result: failed" >&5
10298 echo "${ECHO_T}failed" >&6; }
10299 else
10300 { echo "$as_me:$LINENO: result: ok" >&5
10301 echo "${ECHO_T}ok" >&6; }
10305 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10306 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10307 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10309 else
10310 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10311 libltdl_cv_preloaded_symbols=yes
10312 else
10313 libltdl_cv_preloaded_symbols=no
10317 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10318 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10319 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10321 cat >>confdefs.h <<\_ACEOF
10322 #define HAVE_PRELOADED_SYMBOLS 1
10323 _ACEOF
10327 LIBADD_DL=
10329 ac_ext=c
10330 ac_cpp='$CPP $CPPFLAGS'
10331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10336 { echo "$as_me:$LINENO: checking for shl_load" >&5
10337 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10338 if test "${ac_cv_func_shl_load+set}" = set; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
10340 else
10341 cat >conftest.$ac_ext <<_ACEOF
10342 /* confdefs.h. */
10343 _ACEOF
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h. */
10347 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10349 #define shl_load innocuous_shl_load
10351 /* System header to define __stub macros and hopefully few prototypes,
10352 which can conflict with char shl_load (); below.
10353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10354 <limits.h> exists even on freestanding compilers. */
10356 #ifdef __STDC__
10357 # include <limits.h>
10358 #else
10359 # include <assert.h>
10360 #endif
10362 #undef shl_load
10364 /* Override any GCC internal prototype to avoid an error.
10365 Use char because int might match the return type of a GCC
10366 builtin and then its argument prototype would still apply. */
10367 #ifdef __cplusplus
10368 extern "C"
10369 #endif
10370 char shl_load ();
10371 /* The GNU C library defines this for functions which it implements
10372 to always fail with ENOSYS. Some functions are actually named
10373 something starting with __ and the normal name is an alias. */
10374 #if defined __stub_shl_load || defined __stub___shl_load
10375 choke me
10376 #endif
10379 main ()
10381 return shl_load ();
10383 return 0;
10385 _ACEOF
10386 rm -f conftest.$ac_objext conftest$ac_exeext
10387 if { (ac_try="$ac_link"
10388 case "(($ac_try" in
10389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390 *) ac_try_echo=$ac_try;;
10391 esac
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_link") 2>conftest.er1
10394 ac_status=$?
10395 grep -v '^ *+' conftest.er1 >conftest.err
10396 rm -f conftest.er1
10397 cat conftest.err >&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } &&
10400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10401 { (case "(($ac_try" in
10402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403 *) ac_try_echo=$ac_try;;
10404 esac
10405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406 (eval "$ac_try") 2>&5
10407 ac_status=$?
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; } &&
10410 { ac_try='test -s conftest$ac_exeext'
10411 { (case "(($ac_try" in
10412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413 *) ac_try_echo=$ac_try;;
10414 esac
10415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10416 (eval "$ac_try") 2>&5
10417 ac_status=$?
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); }; }; then
10420 ac_cv_func_shl_load=yes
10421 else
10422 echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10425 ac_cv_func_shl_load=no
10428 rm -f core conftest.err conftest.$ac_objext \
10429 conftest$ac_exeext conftest.$ac_ext
10431 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10432 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10433 if test $ac_cv_func_shl_load = yes; then
10435 cat >>confdefs.h <<\_ACEOF
10436 #define HAVE_SHL_LOAD 1
10437 _ACEOF
10439 else
10440 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10441 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10442 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10444 else
10445 ac_check_lib_save_LIBS=$LIBS
10446 LIBS="-ldld $LIBS"
10447 cat >conftest.$ac_ext <<_ACEOF
10448 /* confdefs.h. */
10449 _ACEOF
10450 cat confdefs.h >>conftest.$ac_ext
10451 cat >>conftest.$ac_ext <<_ACEOF
10452 /* end confdefs.h. */
10454 /* Override any GCC internal prototype to avoid an error.
10455 Use char because int might match the return type of a GCC
10456 builtin and then its argument prototype would still apply. */
10457 #ifdef __cplusplus
10458 extern "C"
10459 #endif
10460 char shl_load ();
10462 main ()
10464 return shl_load ();
10466 return 0;
10468 _ACEOF
10469 rm -f conftest.$ac_objext conftest$ac_exeext
10470 if { (ac_try="$ac_link"
10471 case "(($ac_try" in
10472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10473 *) ac_try_echo=$ac_try;;
10474 esac
10475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10476 (eval "$ac_link") 2>conftest.er1
10477 ac_status=$?
10478 grep -v '^ *+' conftest.er1 >conftest.err
10479 rm -f conftest.er1
10480 cat conftest.err >&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } &&
10483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10484 { (case "(($ac_try" in
10485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10486 *) ac_try_echo=$ac_try;;
10487 esac
10488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10489 (eval "$ac_try") 2>&5
10490 ac_status=$?
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); }; } &&
10493 { ac_try='test -s conftest$ac_exeext'
10494 { (case "(($ac_try" in
10495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10496 *) ac_try_echo=$ac_try;;
10497 esac
10498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10499 (eval "$ac_try") 2>&5
10500 ac_status=$?
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }; }; then
10503 ac_cv_lib_dld_shl_load=yes
10504 else
10505 echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10508 ac_cv_lib_dld_shl_load=no
10511 rm -f core conftest.err conftest.$ac_objext \
10512 conftest$ac_exeext conftest.$ac_ext
10513 LIBS=$ac_check_lib_save_LIBS
10515 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10516 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10517 if test $ac_cv_lib_dld_shl_load = yes; then
10519 cat >>confdefs.h <<\_ACEOF
10520 #define HAVE_SHL_LOAD 1
10521 _ACEOF
10523 LIBADD_DL="$LIBADD_DL -ldld"
10524 else
10525 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10526 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10527 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
10529 else
10530 ac_check_lib_save_LIBS=$LIBS
10531 LIBS="-ldl $LIBS"
10532 cat >conftest.$ac_ext <<_ACEOF
10533 /* confdefs.h. */
10534 _ACEOF
10535 cat confdefs.h >>conftest.$ac_ext
10536 cat >>conftest.$ac_ext <<_ACEOF
10537 /* end confdefs.h. */
10539 /* Override any GCC internal prototype to avoid an error.
10540 Use char because int might match the return type of a GCC
10541 builtin and then its argument prototype would still apply. */
10542 #ifdef __cplusplus
10543 extern "C"
10544 #endif
10545 char dlopen ();
10547 main ()
10549 return dlopen ();
10551 return 0;
10553 _ACEOF
10554 rm -f conftest.$ac_objext conftest$ac_exeext
10555 if { (ac_try="$ac_link"
10556 case "(($ac_try" in
10557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558 *) ac_try_echo=$ac_try;;
10559 esac
10560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561 (eval "$ac_link") 2>conftest.er1
10562 ac_status=$?
10563 grep -v '^ *+' conftest.er1 >conftest.err
10564 rm -f conftest.er1
10565 cat conftest.err >&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } &&
10568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10569 { (case "(($ac_try" in
10570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10571 *) ac_try_echo=$ac_try;;
10572 esac
10573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10574 (eval "$ac_try") 2>&5
10575 ac_status=$?
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); }; } &&
10578 { ac_try='test -s conftest$ac_exeext'
10579 { (case "(($ac_try" in
10580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10581 *) ac_try_echo=$ac_try;;
10582 esac
10583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10584 (eval "$ac_try") 2>&5
10585 ac_status=$?
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; }; then
10588 ac_cv_lib_dl_dlopen=yes
10589 else
10590 echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.$ac_ext >&5
10593 ac_cv_lib_dl_dlopen=no
10596 rm -f core conftest.err conftest.$ac_objext \
10597 conftest$ac_exeext conftest.$ac_ext
10598 LIBS=$ac_check_lib_save_LIBS
10600 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10601 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10602 if test $ac_cv_lib_dl_dlopen = yes; then
10604 cat >>confdefs.h <<\_ACEOF
10605 #define HAVE_LIBDL 1
10606 _ACEOF
10608 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10609 else
10610 cat >conftest.$ac_ext <<_ACEOF
10611 /* confdefs.h. */
10612 _ACEOF
10613 cat confdefs.h >>conftest.$ac_ext
10614 cat >>conftest.$ac_ext <<_ACEOF
10615 /* end confdefs.h. */
10616 #if HAVE_DLFCN_H
10617 # include <dlfcn.h>
10618 #endif
10621 main ()
10623 dlopen(0, 0);
10625 return 0;
10627 _ACEOF
10628 rm -f conftest.$ac_objext conftest$ac_exeext
10629 if { (ac_try="$ac_link"
10630 case "(($ac_try" in
10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632 *) ac_try_echo=$ac_try;;
10633 esac
10634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635 (eval "$ac_link") 2>conftest.er1
10636 ac_status=$?
10637 grep -v '^ *+' conftest.er1 >conftest.err
10638 rm -f conftest.er1
10639 cat conftest.err >&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } &&
10642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10643 { (case "(($ac_try" in
10644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645 *) ac_try_echo=$ac_try;;
10646 esac
10647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648 (eval "$ac_try") 2>&5
10649 ac_status=$?
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; } &&
10652 { ac_try='test -s conftest$ac_exeext'
10653 { (case "(($ac_try" in
10654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655 *) ac_try_echo=$ac_try;;
10656 esac
10657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10658 (eval "$ac_try") 2>&5
10659 ac_status=$?
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; }; then
10663 cat >>confdefs.h <<\_ACEOF
10664 #define HAVE_LIBDL 1
10665 _ACEOF
10666 libltdl_cv_func_dlopen="yes"
10667 else
10668 echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10671 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10672 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10673 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10674 echo $ECHO_N "(cached) $ECHO_C" >&6
10675 else
10676 ac_check_lib_save_LIBS=$LIBS
10677 LIBS="-lsvld $LIBS"
10678 cat >conftest.$ac_ext <<_ACEOF
10679 /* confdefs.h. */
10680 _ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10685 /* Override any GCC internal prototype to avoid an error.
10686 Use char because int might match the return type of a GCC
10687 builtin and then its argument prototype would still apply. */
10688 #ifdef __cplusplus
10689 extern "C"
10690 #endif
10691 char dlopen ();
10693 main ()
10695 return dlopen ();
10697 return 0;
10699 _ACEOF
10700 rm -f conftest.$ac_objext conftest$ac_exeext
10701 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
10708 ac_status=$?
10709 grep -v '^ *+' conftest.er1 >conftest.err
10710 rm -f conftest.er1
10711 cat conftest.err >&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); } &&
10714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10715 { (case "(($ac_try" in
10716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717 *) ac_try_echo=$ac_try;;
10718 esac
10719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720 (eval "$ac_try") 2>&5
10721 ac_status=$?
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; } &&
10724 { ac_try='test -s conftest$ac_exeext'
10725 { (case "(($ac_try" in
10726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10727 *) ac_try_echo=$ac_try;;
10728 esac
10729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10730 (eval "$ac_try") 2>&5
10731 ac_status=$?
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); }; }; then
10734 ac_cv_lib_svld_dlopen=yes
10735 else
10736 echo "$as_me: failed program was:" >&5
10737 sed 's/^/| /' conftest.$ac_ext >&5
10739 ac_cv_lib_svld_dlopen=no
10742 rm -f core conftest.err conftest.$ac_objext \
10743 conftest$ac_exeext conftest.$ac_ext
10744 LIBS=$ac_check_lib_save_LIBS
10746 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10747 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10748 if test $ac_cv_lib_svld_dlopen = yes; then
10750 cat >>confdefs.h <<\_ACEOF
10751 #define HAVE_LIBDL 1
10752 _ACEOF
10754 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10755 else
10756 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10757 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10758 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10760 else
10761 ac_check_lib_save_LIBS=$LIBS
10762 LIBS="-ldld $LIBS"
10763 cat >conftest.$ac_ext <<_ACEOF
10764 /* confdefs.h. */
10765 _ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h. */
10770 /* Override any GCC internal prototype to avoid an error.
10771 Use char because int might match the return type of a GCC
10772 builtin and then its argument prototype would still apply. */
10773 #ifdef __cplusplus
10774 extern "C"
10775 #endif
10776 char dld_link ();
10778 main ()
10780 return dld_link ();
10782 return 0;
10784 _ACEOF
10785 rm -f conftest.$ac_objext conftest$ac_exeext
10786 if { (ac_try="$ac_link"
10787 case "(($ac_try" in
10788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10789 *) ac_try_echo=$ac_try;;
10790 esac
10791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10792 (eval "$ac_link") 2>conftest.er1
10793 ac_status=$?
10794 grep -v '^ *+' conftest.er1 >conftest.err
10795 rm -f conftest.er1
10796 cat conftest.err >&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); } &&
10799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10800 { (case "(($ac_try" in
10801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10802 *) ac_try_echo=$ac_try;;
10803 esac
10804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10805 (eval "$ac_try") 2>&5
10806 ac_status=$?
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; } &&
10809 { ac_try='test -s conftest$ac_exeext'
10810 { (case "(($ac_try" in
10811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10812 *) ac_try_echo=$ac_try;;
10813 esac
10814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10815 (eval "$ac_try") 2>&5
10816 ac_status=$?
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; }; then
10819 ac_cv_lib_dld_dld_link=yes
10820 else
10821 echo "$as_me: failed program was:" >&5
10822 sed 's/^/| /' conftest.$ac_ext >&5
10824 ac_cv_lib_dld_dld_link=no
10827 rm -f core conftest.err conftest.$ac_objext \
10828 conftest$ac_exeext conftest.$ac_ext
10829 LIBS=$ac_check_lib_save_LIBS
10831 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10832 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10833 if test $ac_cv_lib_dld_dld_link = yes; then
10835 cat >>confdefs.h <<\_ACEOF
10836 #define HAVE_DLD 1
10837 _ACEOF
10839 LIBADD_DL="$LIBADD_DL -ldld"
10840 else
10841 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10842 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10843 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10845 else
10846 cat >conftest.$ac_ext <<_ACEOF
10847 /* confdefs.h. */
10848 _ACEOF
10849 cat confdefs.h >>conftest.$ac_ext
10850 cat >>conftest.$ac_ext <<_ACEOF
10851 /* end confdefs.h. */
10852 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10854 #define _dyld_func_lookup innocuous__dyld_func_lookup
10856 /* System header to define __stub macros and hopefully few prototypes,
10857 which can conflict with char _dyld_func_lookup (); below.
10858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10859 <limits.h> exists even on freestanding compilers. */
10861 #ifdef __STDC__
10862 # include <limits.h>
10863 #else
10864 # include <assert.h>
10865 #endif
10867 #undef _dyld_func_lookup
10869 /* Override any GCC internal prototype to avoid an error.
10870 Use char because int might match the return type of a GCC
10871 builtin and then its argument prototype would still apply. */
10872 #ifdef __cplusplus
10873 extern "C"
10874 #endif
10875 char _dyld_func_lookup ();
10876 /* The GNU C library defines this for functions which it implements
10877 to always fail with ENOSYS. Some functions are actually named
10878 something starting with __ and the normal name is an alias. */
10879 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10880 choke me
10881 #endif
10884 main ()
10886 return _dyld_func_lookup ();
10888 return 0;
10890 _ACEOF
10891 rm -f conftest.$ac_objext conftest$ac_exeext
10892 if { (ac_try="$ac_link"
10893 case "(($ac_try" in
10894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10895 *) ac_try_echo=$ac_try;;
10896 esac
10897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10898 (eval "$ac_link") 2>conftest.er1
10899 ac_status=$?
10900 grep -v '^ *+' conftest.er1 >conftest.err
10901 rm -f conftest.er1
10902 cat conftest.err >&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); } &&
10905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10906 { (case "(($ac_try" in
10907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10908 *) ac_try_echo=$ac_try;;
10909 esac
10910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10911 (eval "$ac_try") 2>&5
10912 ac_status=$?
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; } &&
10915 { ac_try='test -s conftest$ac_exeext'
10916 { (case "(($ac_try" in
10917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10918 *) ac_try_echo=$ac_try;;
10919 esac
10920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10921 (eval "$ac_try") 2>&5
10922 ac_status=$?
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; }; then
10925 ac_cv_func__dyld_func_lookup=yes
10926 else
10927 echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10930 ac_cv_func__dyld_func_lookup=no
10933 rm -f core conftest.err conftest.$ac_objext \
10934 conftest$ac_exeext conftest.$ac_ext
10936 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10937 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10938 if test $ac_cv_func__dyld_func_lookup = yes; then
10940 cat >>confdefs.h <<\_ACEOF
10941 #define HAVE_DYLD 1
10942 _ACEOF
10955 rm -f core conftest.err conftest.$ac_objext \
10956 conftest$ac_exeext conftest.$ac_ext
10967 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10968 then
10969 lt_save_LIBS="$LIBS"
10970 LIBS="$LIBS $LIBADD_DL"
10972 for ac_func in dlerror
10974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10975 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10977 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10978 echo $ECHO_N "(cached) $ECHO_C" >&6
10979 else
10980 cat >conftest.$ac_ext <<_ACEOF
10981 /* confdefs.h. */
10982 _ACEOF
10983 cat confdefs.h >>conftest.$ac_ext
10984 cat >>conftest.$ac_ext <<_ACEOF
10985 /* end confdefs.h. */
10986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10988 #define $ac_func innocuous_$ac_func
10990 /* System header to define __stub macros and hopefully few prototypes,
10991 which can conflict with char $ac_func (); below.
10992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10993 <limits.h> exists even on freestanding compilers. */
10995 #ifdef __STDC__
10996 # include <limits.h>
10997 #else
10998 # include <assert.h>
10999 #endif
11001 #undef $ac_func
11003 /* Override any GCC internal prototype to avoid an error.
11004 Use char because int might match the return type of a GCC
11005 builtin and then its argument prototype would still apply. */
11006 #ifdef __cplusplus
11007 extern "C"
11008 #endif
11009 char $ac_func ();
11010 /* The GNU C library defines this for functions which it implements
11011 to always fail with ENOSYS. Some functions are actually named
11012 something starting with __ and the normal name is an alias. */
11013 #if defined __stub_$ac_func || defined __stub___$ac_func
11014 choke me
11015 #endif
11018 main ()
11020 return $ac_func ();
11022 return 0;
11024 _ACEOF
11025 rm -f conftest.$ac_objext conftest$ac_exeext
11026 if { (ac_try="$ac_link"
11027 case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11030 esac
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_link") 2>conftest.er1
11033 ac_status=$?
11034 grep -v '^ *+' conftest.er1 >conftest.err
11035 rm -f conftest.er1
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } &&
11039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11040 { (case "(($ac_try" in
11041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042 *) ac_try_echo=$ac_try;;
11043 esac
11044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045 (eval "$ac_try") 2>&5
11046 ac_status=$?
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; } &&
11049 { ac_try='test -s conftest$ac_exeext'
11050 { (case "(($ac_try" in
11051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052 *) ac_try_echo=$ac_try;;
11053 esac
11054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055 (eval "$ac_try") 2>&5
11056 ac_status=$?
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); }; }; then
11059 eval "$as_ac_var=yes"
11060 else
11061 echo "$as_me: failed program was:" >&5
11062 sed 's/^/| /' conftest.$ac_ext >&5
11064 eval "$as_ac_var=no"
11067 rm -f core conftest.err conftest.$ac_objext \
11068 conftest$ac_exeext conftest.$ac_ext
11070 ac_res=`eval echo '${'$as_ac_var'}'`
11071 { echo "$as_me:$LINENO: result: $ac_res" >&5
11072 echo "${ECHO_T}$ac_res" >&6; }
11073 if test `eval echo '${'$as_ac_var'}'` = yes; then
11074 cat >>confdefs.h <<_ACEOF
11075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11076 _ACEOF
11079 done
11081 LIBS="$lt_save_LIBS"
11083 ac_ext=c
11084 ac_cpp='$CPP $CPPFLAGS'
11085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11091 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11092 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11093 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11094 echo $ECHO_N "(cached) $ECHO_C" >&6
11095 else
11096 ac_cv_sys_symbol_underscore=no
11097 cat > conftest.$ac_ext <<EOF
11098 void nm_test_func(){}
11099 int main(){nm_test_func;return 0;}
11101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11102 (eval $ac_compile) 2>&5
11103 ac_status=$?
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; then
11106 # Now try to grab the symbols.
11107 ac_nlist=conftest.nm
11108 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11109 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11110 ac_status=$?
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } && test -s "$ac_nlist"; then
11113 # See whether the symbols have a leading underscore.
11114 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11115 ac_cv_sys_symbol_underscore=yes
11116 else
11117 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11119 else
11120 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11123 else
11124 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11126 else
11127 echo "configure: failed program was:" >&5
11128 cat conftest.c >&5
11130 rm -rf conftest*
11133 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11134 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11137 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11138 if test x"$libltdl_cv_func_dlopen" = xyes ||
11139 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11140 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11141 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11142 if test "${libltdl_cv_need_uscore+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11144 else
11145 libltdl_cv_need_uscore=unknown
11146 save_LIBS="$LIBS"
11147 LIBS="$LIBS $LIBADD_DL"
11148 if test "$cross_compiling" = yes; then :
11149 libltdl_cv_need_uscore=cross
11150 else
11151 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11152 lt_status=$lt_dlunknown
11153 cat > conftest.$ac_ext <<EOF
11154 #line 11154 "configure"
11155 #include "confdefs.h"
11157 #if HAVE_DLFCN_H
11158 #include <dlfcn.h>
11159 #endif
11161 #include <stdio.h>
11163 #ifdef RTLD_GLOBAL
11164 # define LT_DLGLOBAL RTLD_GLOBAL
11165 #else
11166 # ifdef DL_GLOBAL
11167 # define LT_DLGLOBAL DL_GLOBAL
11168 # else
11169 # define LT_DLGLOBAL 0
11170 # endif
11171 #endif
11173 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11174 find out it does not work in some platform. */
11175 #ifndef LT_DLLAZY_OR_NOW
11176 # ifdef RTLD_LAZY
11177 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11178 # else
11179 # ifdef DL_LAZY
11180 # define LT_DLLAZY_OR_NOW DL_LAZY
11181 # else
11182 # ifdef RTLD_NOW
11183 # define LT_DLLAZY_OR_NOW RTLD_NOW
11184 # else
11185 # ifdef DL_NOW
11186 # define LT_DLLAZY_OR_NOW DL_NOW
11187 # else
11188 # define LT_DLLAZY_OR_NOW 0
11189 # endif
11190 # endif
11191 # endif
11192 # endif
11193 #endif
11195 #ifdef __cplusplus
11196 extern "C" void exit (int);
11197 #endif
11199 void fnord() { int i=42;}
11200 int main ()
11202 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11203 int status = $lt_dlunknown;
11205 if (self)
11207 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11208 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11209 /* dlclose (self); */
11211 else
11212 puts (dlerror ());
11214 exit (status);
11217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11218 (eval $ac_link) 2>&5
11219 ac_status=$?
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11222 (./conftest; exit; ) >&5 2>/dev/null
11223 lt_status=$?
11224 case x$lt_status in
11225 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11226 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11227 x$lt_dlunknown|x*) ;;
11228 esac
11229 else :
11230 # compilation failed
11234 rm -fr conftest*
11236 LIBS="$save_LIBS"
11239 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11240 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11244 if test x"$libltdl_cv_need_uscore" = xyes; then
11246 cat >>confdefs.h <<\_ACEOF
11247 #define NEED_USCORE 1
11248 _ACEOF
11253 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11254 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11255 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11257 else
11258 # PORTME does your system automatically load deplibs for dlopen?
11259 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11260 # For now, we just catch OSes we know something about -- in the
11261 # future, we'll try test this programmatically.
11262 libltdl_cv_sys_dlopen_deplibs=unknown
11263 case "$host_os" in
11264 aix3*|aix4.1.*|aix4.2.*)
11265 # Unknown whether this is true for these versions of AIX, but
11266 # we want this `case' here to explicitly catch those versions.
11267 libltdl_cv_sys_dlopen_deplibs=unknown
11269 aix[45]*)
11270 libltdl_cv_sys_dlopen_deplibs=yes
11272 darwin*)
11273 # Assuming the user has installed a libdl from somewhere, this is true
11274 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11275 libltdl_cv_sys_dlopen_deplibs=yes
11277 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11278 # GNU and its variants, using gnu ld.so (Glibc)
11279 libltdl_cv_sys_dlopen_deplibs=yes
11281 hpux10*|hpux11*)
11282 libltdl_cv_sys_dlopen_deplibs=yes
11284 interix*)
11285 libltdl_cv_sys_dlopen_deplibs=yes
11287 irix[12345]*|irix6.[01]*)
11288 # Catch all versions of IRIX before 6.2, and indicate that we don't
11289 # know how it worked for any of those versions.
11290 libltdl_cv_sys_dlopen_deplibs=unknown
11292 irix*)
11293 # The case above catches anything before 6.2, and it's known that
11294 # at 6.2 and later dlopen does load deplibs.
11295 libltdl_cv_sys_dlopen_deplibs=yes
11297 netbsd*)
11298 libltdl_cv_sys_dlopen_deplibs=yes
11300 openbsd*)
11301 libltdl_cv_sys_dlopen_deplibs=yes
11303 osf[1234]*)
11304 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11305 # it did *not* use an RPATH in a shared library to find objects the
11306 # library depends on, so we explictly say `no'.
11307 libltdl_cv_sys_dlopen_deplibs=no
11309 osf5.0|osf5.0a|osf5.1)
11310 # dlopen *does* load deplibs and with the right loader patch applied
11311 # it even uses RPATH in a shared library to search for shared objects
11312 # that the library depends on, but there's no easy way to know if that
11313 # patch is installed. Since this is the case, all we can really
11314 # say is unknown -- it depends on the patch being installed. If
11315 # it is, this changes to `yes'. Without it, it would be `no'.
11316 libltdl_cv_sys_dlopen_deplibs=unknown
11318 osf*)
11319 # the two cases above should catch all versions of osf <= 5.1. Read
11320 # the comments above for what we know about them.
11321 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11322 # is used to find them so we can finally say `yes'.
11323 libltdl_cv_sys_dlopen_deplibs=yes
11325 solaris*)
11326 libltdl_cv_sys_dlopen_deplibs=yes
11328 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11329 libltdl_cv_sys_dlopen_deplibs=yes
11331 esac
11334 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11335 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11336 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11338 cat >>confdefs.h <<\_ACEOF
11339 #define LTDL_DLOPEN_DEPLIBS 1
11340 _ACEOF
11345 for ac_header in argz.h
11347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11352 echo $ECHO_N "(cached) $ECHO_C" >&6
11354 ac_res=`eval echo '${'$as_ac_Header'}'`
11355 { echo "$as_me:$LINENO: result: $ac_res" >&5
11356 echo "${ECHO_T}$ac_res" >&6; }
11357 else
11358 # Is the header compilable?
11359 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11361 cat >conftest.$ac_ext <<_ACEOF
11362 /* confdefs.h. */
11363 _ACEOF
11364 cat confdefs.h >>conftest.$ac_ext
11365 cat >>conftest.$ac_ext <<_ACEOF
11366 /* end confdefs.h. */
11367 $ac_includes_default
11368 #include <$ac_header>
11369 _ACEOF
11370 rm -f conftest.$ac_objext
11371 if { (ac_try="$ac_compile"
11372 case "(($ac_try" in
11373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11374 *) ac_try_echo=$ac_try;;
11375 esac
11376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11377 (eval "$ac_compile") 2>conftest.er1
11378 ac_status=$?
11379 grep -v '^ *+' conftest.er1 >conftest.err
11380 rm -f conftest.er1
11381 cat conftest.err >&5
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); } &&
11384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11385 { (case "(($ac_try" in
11386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387 *) ac_try_echo=$ac_try;;
11388 esac
11389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11390 (eval "$ac_try") 2>&5
11391 ac_status=$?
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; } &&
11394 { ac_try='test -s conftest.$ac_objext'
11395 { (case "(($ac_try" in
11396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11397 *) ac_try_echo=$ac_try;;
11398 esac
11399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11400 (eval "$ac_try") 2>&5
11401 ac_status=$?
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; }; then
11404 ac_header_compiler=yes
11405 else
11406 echo "$as_me: failed program was:" >&5
11407 sed 's/^/| /' conftest.$ac_ext >&5
11409 ac_header_compiler=no
11412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11414 echo "${ECHO_T}$ac_header_compiler" >&6; }
11416 # Is the header present?
11417 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11419 cat >conftest.$ac_ext <<_ACEOF
11420 /* confdefs.h. */
11421 _ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h. */
11425 #include <$ac_header>
11426 _ACEOF
11427 if { (ac_try="$ac_cpp conftest.$ac_ext"
11428 case "(($ac_try" in
11429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11430 *) ac_try_echo=$ac_try;;
11431 esac
11432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11434 ac_status=$?
11435 grep -v '^ *+' conftest.er1 >conftest.err
11436 rm -f conftest.er1
11437 cat conftest.err >&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); } >/dev/null; then
11440 if test -s conftest.err; then
11441 ac_cpp_err=$ac_c_preproc_warn_flag
11442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11443 else
11444 ac_cpp_err=
11446 else
11447 ac_cpp_err=yes
11449 if test -z "$ac_cpp_err"; then
11450 ac_header_preproc=yes
11451 else
11452 echo "$as_me: failed program was:" >&5
11453 sed 's/^/| /' conftest.$ac_ext >&5
11455 ac_header_preproc=no
11458 rm -f conftest.err conftest.$ac_ext
11459 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11460 echo "${ECHO_T}$ac_header_preproc" >&6; }
11462 # So? What about this header?
11463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11464 yes:no: )
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11469 ac_header_preproc=yes
11471 no:yes:* )
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11477 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11479 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11483 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11484 ( cat <<\_ASBOX
11485 ## ----------------------------------- ##
11486 ## Report this to llvmbugs@cs.uiuc.edu ##
11487 ## ----------------------------------- ##
11488 _ASBOX
11489 ) | sed "s/^/$as_me: WARNING: /" >&2
11491 esac
11492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11496 else
11497 eval "$as_ac_Header=\$ac_header_preproc"
11499 ac_res=`eval echo '${'$as_ac_Header'}'`
11500 { echo "$as_me:$LINENO: result: $ac_res" >&5
11501 echo "${ECHO_T}$ac_res" >&6; }
11504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11505 cat >>confdefs.h <<_ACEOF
11506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11507 _ACEOF
11511 done
11514 { echo "$as_me:$LINENO: checking for error_t" >&5
11515 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11516 if test "${ac_cv_type_error_t+set}" = set; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
11518 else
11519 cat >conftest.$ac_ext <<_ACEOF
11520 /* confdefs.h. */
11521 _ACEOF
11522 cat confdefs.h >>conftest.$ac_ext
11523 cat >>conftest.$ac_ext <<_ACEOF
11524 /* end confdefs.h. */
11525 #if HAVE_ARGZ_H
11526 # include <argz.h>
11527 #endif
11529 typedef error_t ac__type_new_;
11531 main ()
11533 if ((ac__type_new_ *) 0)
11534 return 0;
11535 if (sizeof (ac__type_new_))
11536 return 0;
11538 return 0;
11540 _ACEOF
11541 rm -f conftest.$ac_objext
11542 if { (ac_try="$ac_compile"
11543 case "(($ac_try" in
11544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545 *) ac_try_echo=$ac_try;;
11546 esac
11547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548 (eval "$ac_compile") 2>conftest.er1
11549 ac_status=$?
11550 grep -v '^ *+' conftest.er1 >conftest.err
11551 rm -f conftest.er1
11552 cat conftest.err >&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); } &&
11555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11556 { (case "(($ac_try" in
11557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11558 *) ac_try_echo=$ac_try;;
11559 esac
11560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11561 (eval "$ac_try") 2>&5
11562 ac_status=$?
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; } &&
11565 { ac_try='test -s conftest.$ac_objext'
11566 { (case "(($ac_try" in
11567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11568 *) ac_try_echo=$ac_try;;
11569 esac
11570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11571 (eval "$ac_try") 2>&5
11572 ac_status=$?
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); }; }; then
11575 ac_cv_type_error_t=yes
11576 else
11577 echo "$as_me: failed program was:" >&5
11578 sed 's/^/| /' conftest.$ac_ext >&5
11580 ac_cv_type_error_t=no
11583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11585 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11586 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11587 if test $ac_cv_type_error_t = yes; then
11589 cat >>confdefs.h <<_ACEOF
11590 #define HAVE_ERROR_T 1
11591 _ACEOF
11594 else
11596 cat >>confdefs.h <<\_ACEOF
11597 #define error_t int
11598 _ACEOF
11608 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11611 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11613 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 else
11616 cat >conftest.$ac_ext <<_ACEOF
11617 /* confdefs.h. */
11618 _ACEOF
11619 cat confdefs.h >>conftest.$ac_ext
11620 cat >>conftest.$ac_ext <<_ACEOF
11621 /* end confdefs.h. */
11622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11624 #define $ac_func innocuous_$ac_func
11626 /* System header to define __stub macros and hopefully few prototypes,
11627 which can conflict with char $ac_func (); below.
11628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11629 <limits.h> exists even on freestanding compilers. */
11631 #ifdef __STDC__
11632 # include <limits.h>
11633 #else
11634 # include <assert.h>
11635 #endif
11637 #undef $ac_func
11639 /* Override any GCC internal prototype to avoid an error.
11640 Use char because int might match the return type of a GCC
11641 builtin and then its argument prototype would still apply. */
11642 #ifdef __cplusplus
11643 extern "C"
11644 #endif
11645 char $ac_func ();
11646 /* The GNU C library defines this for functions which it implements
11647 to always fail with ENOSYS. Some functions are actually named
11648 something starting with __ and the normal name is an alias. */
11649 #if defined __stub_$ac_func || defined __stub___$ac_func
11650 choke me
11651 #endif
11654 main ()
11656 return $ac_func ();
11658 return 0;
11660 _ACEOF
11661 rm -f conftest.$ac_objext conftest$ac_exeext
11662 if { (ac_try="$ac_link"
11663 case "(($ac_try" in
11664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11665 *) ac_try_echo=$ac_try;;
11666 esac
11667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11668 (eval "$ac_link") 2>conftest.er1
11669 ac_status=$?
11670 grep -v '^ *+' conftest.er1 >conftest.err
11671 rm -f conftest.er1
11672 cat conftest.err >&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } &&
11675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11676 { (case "(($ac_try" in
11677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678 *) ac_try_echo=$ac_try;;
11679 esac
11680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681 (eval "$ac_try") 2>&5
11682 ac_status=$?
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); }; } &&
11685 { ac_try='test -s conftest$ac_exeext'
11686 { (case "(($ac_try" in
11687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688 *) ac_try_echo=$ac_try;;
11689 esac
11690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11691 (eval "$ac_try") 2>&5
11692 ac_status=$?
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); }; }; then
11695 eval "$as_ac_var=yes"
11696 else
11697 echo "$as_me: failed program was:" >&5
11698 sed 's/^/| /' conftest.$ac_ext >&5
11700 eval "$as_ac_var=no"
11703 rm -f core conftest.err conftest.$ac_objext \
11704 conftest$ac_exeext conftest.$ac_ext
11706 ac_res=`eval echo '${'$as_ac_var'}'`
11707 { echo "$as_me:$LINENO: result: $ac_res" >&5
11708 echo "${ECHO_T}$ac_res" >&6; }
11709 if test `eval echo '${'$as_ac_var'}'` = yes; then
11710 cat >>confdefs.h <<_ACEOF
11711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11712 _ACEOF
11715 done
11744 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11745 stdio.h unistd.h
11747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 ac_res=`eval echo '${'$as_ac_Header'}'`
11755 { echo "$as_me:$LINENO: result: $ac_res" >&5
11756 echo "${ECHO_T}$ac_res" >&6; }
11757 else
11758 # Is the header compilable?
11759 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11761 cat >conftest.$ac_ext <<_ACEOF
11762 /* confdefs.h. */
11763 _ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h. */
11767 $ac_includes_default
11768 #include <$ac_header>
11769 _ACEOF
11770 rm -f conftest.$ac_objext
11771 if { (ac_try="$ac_compile"
11772 case "(($ac_try" in
11773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11775 esac
11776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777 (eval "$ac_compile") 2>conftest.er1
11778 ac_status=$?
11779 grep -v '^ *+' conftest.er1 >conftest.err
11780 rm -f conftest.er1
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } &&
11784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11785 { (case "(($ac_try" in
11786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787 *) ac_try_echo=$ac_try;;
11788 esac
11789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790 (eval "$ac_try") 2>&5
11791 ac_status=$?
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; } &&
11794 { ac_try='test -s conftest.$ac_objext'
11795 { (case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11798 esac
11799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_try") 2>&5
11801 ac_status=$?
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; }; then
11804 ac_header_compiler=yes
11805 else
11806 echo "$as_me: failed program was:" >&5
11807 sed 's/^/| /' conftest.$ac_ext >&5
11809 ac_header_compiler=no
11812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11814 echo "${ECHO_T}$ac_header_compiler" >&6; }
11816 # Is the header present?
11817 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11819 cat >conftest.$ac_ext <<_ACEOF
11820 /* confdefs.h. */
11821 _ACEOF
11822 cat confdefs.h >>conftest.$ac_ext
11823 cat >>conftest.$ac_ext <<_ACEOF
11824 /* end confdefs.h. */
11825 #include <$ac_header>
11826 _ACEOF
11827 if { (ac_try="$ac_cpp conftest.$ac_ext"
11828 case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11831 esac
11832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11834 ac_status=$?
11835 grep -v '^ *+' conftest.er1 >conftest.err
11836 rm -f conftest.er1
11837 cat conftest.err >&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } >/dev/null; then
11840 if test -s conftest.err; then
11841 ac_cpp_err=$ac_c_preproc_warn_flag
11842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11843 else
11844 ac_cpp_err=
11846 else
11847 ac_cpp_err=yes
11849 if test -z "$ac_cpp_err"; then
11850 ac_header_preproc=yes
11851 else
11852 echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.$ac_ext >&5
11855 ac_header_preproc=no
11858 rm -f conftest.err conftest.$ac_ext
11859 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11860 echo "${ECHO_T}$ac_header_preproc" >&6; }
11862 # So? What about this header?
11863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11864 yes:no: )
11865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11869 ac_header_preproc=yes
11871 no:yes:* )
11872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11879 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11884 ( cat <<\_ASBOX
11885 ## ----------------------------------- ##
11886 ## Report this to llvmbugs@cs.uiuc.edu ##
11887 ## ----------------------------------- ##
11888 _ASBOX
11889 ) | sed "s/^/$as_me: WARNING: /" >&2
11891 esac
11892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6
11896 else
11897 eval "$as_ac_Header=\$ac_header_preproc"
11899 ac_res=`eval echo '${'$as_ac_Header'}'`
11900 { echo "$as_me:$LINENO: result: $ac_res" >&5
11901 echo "${ECHO_T}$ac_res" >&6; }
11904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11905 cat >>confdefs.h <<_ACEOF
11906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11907 _ACEOF
11911 done
11917 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11926 ac_res=`eval echo '${'$as_ac_Header'}'`
11927 { echo "$as_me:$LINENO: result: $ac_res" >&5
11928 echo "${ECHO_T}$ac_res" >&6; }
11929 else
11930 # Is the header compilable?
11931 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11933 cat >conftest.$ac_ext <<_ACEOF
11934 /* confdefs.h. */
11935 _ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h. */
11939 $ac_includes_default
11940 #include <$ac_header>
11941 _ACEOF
11942 rm -f conftest.$ac_objext
11943 if { (ac_try="$ac_compile"
11944 case "(($ac_try" in
11945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946 *) ac_try_echo=$ac_try;;
11947 esac
11948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949 (eval "$ac_compile") 2>conftest.er1
11950 ac_status=$?
11951 grep -v '^ *+' conftest.er1 >conftest.err
11952 rm -f conftest.er1
11953 cat conftest.err >&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); } &&
11956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11957 { (case "(($ac_try" in
11958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11960 esac
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_try") 2>&5
11963 ac_status=$?
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; } &&
11966 { ac_try='test -s conftest.$ac_objext'
11967 { (case "(($ac_try" in
11968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11970 esac
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_try") 2>&5
11973 ac_status=$?
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; }; then
11976 ac_header_compiler=yes
11977 else
11978 echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11981 ac_header_compiler=no
11984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11985 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11986 echo "${ECHO_T}$ac_header_compiler" >&6; }
11988 # Is the header present?
11989 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11990 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11991 cat >conftest.$ac_ext <<_ACEOF
11992 /* confdefs.h. */
11993 _ACEOF
11994 cat confdefs.h >>conftest.$ac_ext
11995 cat >>conftest.$ac_ext <<_ACEOF
11996 /* end confdefs.h. */
11997 #include <$ac_header>
11998 _ACEOF
11999 if { (ac_try="$ac_cpp conftest.$ac_ext"
12000 case "(($ac_try" in
12001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12002 *) ac_try_echo=$ac_try;;
12003 esac
12004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12006 ac_status=$?
12007 grep -v '^ *+' conftest.er1 >conftest.err
12008 rm -f conftest.er1
12009 cat conftest.err >&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } >/dev/null; then
12012 if test -s conftest.err; then
12013 ac_cpp_err=$ac_c_preproc_warn_flag
12014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12015 else
12016 ac_cpp_err=
12018 else
12019 ac_cpp_err=yes
12021 if test -z "$ac_cpp_err"; then
12022 ac_header_preproc=yes
12023 else
12024 echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12027 ac_header_preproc=no
12030 rm -f conftest.err conftest.$ac_ext
12031 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12032 echo "${ECHO_T}$ac_header_preproc" >&6; }
12034 # So? What about this header?
12035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12036 yes:no: )
12037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12040 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12041 ac_header_preproc=yes
12043 no:yes:* )
12044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12047 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12049 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12051 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12055 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12056 ( cat <<\_ASBOX
12057 ## ----------------------------------- ##
12058 ## Report this to llvmbugs@cs.uiuc.edu ##
12059 ## ----------------------------------- ##
12060 _ASBOX
12061 ) | sed "s/^/$as_me: WARNING: /" >&2
12063 esac
12064 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12067 echo $ECHO_N "(cached) $ECHO_C" >&6
12068 else
12069 eval "$as_ac_Header=\$ac_header_preproc"
12071 ac_res=`eval echo '${'$as_ac_Header'}'`
12072 { echo "$as_me:$LINENO: result: $ac_res" >&5
12073 echo "${ECHO_T}$ac_res" >&6; }
12076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12077 cat >>confdefs.h <<_ACEOF
12078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12079 _ACEOF
12083 done
12087 for ac_header in string.h strings.h
12089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12096 ac_res=`eval echo '${'$as_ac_Header'}'`
12097 { echo "$as_me:$LINENO: result: $ac_res" >&5
12098 echo "${ECHO_T}$ac_res" >&6; }
12099 else
12100 # Is the header compilable?
12101 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12103 cat >conftest.$ac_ext <<_ACEOF
12104 /* confdefs.h. */
12105 _ACEOF
12106 cat confdefs.h >>conftest.$ac_ext
12107 cat >>conftest.$ac_ext <<_ACEOF
12108 /* end confdefs.h. */
12109 $ac_includes_default
12110 #include <$ac_header>
12111 _ACEOF
12112 rm -f conftest.$ac_objext
12113 if { (ac_try="$ac_compile"
12114 case "(($ac_try" in
12115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116 *) ac_try_echo=$ac_try;;
12117 esac
12118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119 (eval "$ac_compile") 2>conftest.er1
12120 ac_status=$?
12121 grep -v '^ *+' conftest.er1 >conftest.err
12122 rm -f conftest.er1
12123 cat conftest.err >&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } &&
12126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12127 { (case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12130 esac
12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132 (eval "$ac_try") 2>&5
12133 ac_status=$?
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; } &&
12136 { ac_try='test -s conftest.$ac_objext'
12137 { (case "(($ac_try" in
12138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139 *) ac_try_echo=$ac_try;;
12140 esac
12141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142 (eval "$ac_try") 2>&5
12143 ac_status=$?
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; }; then
12146 ac_header_compiler=yes
12147 else
12148 echo "$as_me: failed program was:" >&5
12149 sed 's/^/| /' conftest.$ac_ext >&5
12151 ac_header_compiler=no
12154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12155 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12156 echo "${ECHO_T}$ac_header_compiler" >&6; }
12158 # Is the header present?
12159 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12161 cat >conftest.$ac_ext <<_ACEOF
12162 /* confdefs.h. */
12163 _ACEOF
12164 cat confdefs.h >>conftest.$ac_ext
12165 cat >>conftest.$ac_ext <<_ACEOF
12166 /* end confdefs.h. */
12167 #include <$ac_header>
12168 _ACEOF
12169 if { (ac_try="$ac_cpp conftest.$ac_ext"
12170 case "(($ac_try" in
12171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12172 *) ac_try_echo=$ac_try;;
12173 esac
12174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12176 ac_status=$?
12177 grep -v '^ *+' conftest.er1 >conftest.err
12178 rm -f conftest.er1
12179 cat conftest.err >&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } >/dev/null; then
12182 if test -s conftest.err; then
12183 ac_cpp_err=$ac_c_preproc_warn_flag
12184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12185 else
12186 ac_cpp_err=
12188 else
12189 ac_cpp_err=yes
12191 if test -z "$ac_cpp_err"; then
12192 ac_header_preproc=yes
12193 else
12194 echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12197 ac_header_preproc=no
12200 rm -f conftest.err conftest.$ac_ext
12201 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12202 echo "${ECHO_T}$ac_header_preproc" >&6; }
12204 # So? What about this header?
12205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12206 yes:no: )
12207 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12208 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12210 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12211 ac_header_preproc=yes
12213 no:yes:* )
12214 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12216 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12217 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12218 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12219 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12220 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12221 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12223 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12224 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12225 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12226 ( cat <<\_ASBOX
12227 ## ----------------------------------- ##
12228 ## Report this to llvmbugs@cs.uiuc.edu ##
12229 ## ----------------------------------- ##
12230 _ASBOX
12231 ) | sed "s/^/$as_me: WARNING: /" >&2
12233 esac
12234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12238 else
12239 eval "$as_ac_Header=\$ac_header_preproc"
12241 ac_res=`eval echo '${'$as_ac_Header'}'`
12242 { echo "$as_me:$LINENO: result: $ac_res" >&5
12243 echo "${ECHO_T}$ac_res" >&6; }
12246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12247 cat >>confdefs.h <<_ACEOF
12248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12249 _ACEOF
12250 break
12253 done
12258 for ac_func in strchr index
12260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12261 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12263 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12264 echo $ECHO_N "(cached) $ECHO_C" >&6
12265 else
12266 cat >conftest.$ac_ext <<_ACEOF
12267 /* confdefs.h. */
12268 _ACEOF
12269 cat confdefs.h >>conftest.$ac_ext
12270 cat >>conftest.$ac_ext <<_ACEOF
12271 /* end confdefs.h. */
12272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12274 #define $ac_func innocuous_$ac_func
12276 /* System header to define __stub macros and hopefully few prototypes,
12277 which can conflict with char $ac_func (); below.
12278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12279 <limits.h> exists even on freestanding compilers. */
12281 #ifdef __STDC__
12282 # include <limits.h>
12283 #else
12284 # include <assert.h>
12285 #endif
12287 #undef $ac_func
12289 /* Override any GCC internal prototype to avoid an error.
12290 Use char because int might match the return type of a GCC
12291 builtin and then its argument prototype would still apply. */
12292 #ifdef __cplusplus
12293 extern "C"
12294 #endif
12295 char $ac_func ();
12296 /* The GNU C library defines this for functions which it implements
12297 to always fail with ENOSYS. Some functions are actually named
12298 something starting with __ and the normal name is an alias. */
12299 #if defined __stub_$ac_func || defined __stub___$ac_func
12300 choke me
12301 #endif
12304 main ()
12306 return $ac_func ();
12308 return 0;
12310 _ACEOF
12311 rm -f conftest.$ac_objext conftest$ac_exeext
12312 if { (ac_try="$ac_link"
12313 case "(($ac_try" in
12314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12315 *) ac_try_echo=$ac_try;;
12316 esac
12317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12318 (eval "$ac_link") 2>conftest.er1
12319 ac_status=$?
12320 grep -v '^ *+' conftest.er1 >conftest.err
12321 rm -f conftest.er1
12322 cat conftest.err >&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); } &&
12325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12326 { (case "(($ac_try" in
12327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12328 *) ac_try_echo=$ac_try;;
12329 esac
12330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12331 (eval "$ac_try") 2>&5
12332 ac_status=$?
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; } &&
12335 { ac_try='test -s conftest$ac_exeext'
12336 { (case "(($ac_try" in
12337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12338 *) ac_try_echo=$ac_try;;
12339 esac
12340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12341 (eval "$ac_try") 2>&5
12342 ac_status=$?
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; }; then
12345 eval "$as_ac_var=yes"
12346 else
12347 echo "$as_me: failed program was:" >&5
12348 sed 's/^/| /' conftest.$ac_ext >&5
12350 eval "$as_ac_var=no"
12353 rm -f core conftest.err conftest.$ac_objext \
12354 conftest$ac_exeext conftest.$ac_ext
12356 ac_res=`eval echo '${'$as_ac_var'}'`
12357 { echo "$as_me:$LINENO: result: $ac_res" >&5
12358 echo "${ECHO_T}$ac_res" >&6; }
12359 if test `eval echo '${'$as_ac_var'}'` = yes; then
12360 cat >>confdefs.h <<_ACEOF
12361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12362 _ACEOF
12363 break
12365 done
12369 for ac_func in strrchr rindex
12371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12376 else
12377 cat >conftest.$ac_ext <<_ACEOF
12378 /* confdefs.h. */
12379 _ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12385 #define $ac_func innocuous_$ac_func
12387 /* System header to define __stub macros and hopefully few prototypes,
12388 which can conflict with char $ac_func (); below.
12389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12390 <limits.h> exists even on freestanding compilers. */
12392 #ifdef __STDC__
12393 # include <limits.h>
12394 #else
12395 # include <assert.h>
12396 #endif
12398 #undef $ac_func
12400 /* Override any GCC internal prototype to avoid an error.
12401 Use char because int might match the return type of a GCC
12402 builtin and then its argument prototype would still apply. */
12403 #ifdef __cplusplus
12404 extern "C"
12405 #endif
12406 char $ac_func ();
12407 /* The GNU C library defines this for functions which it implements
12408 to always fail with ENOSYS. Some functions are actually named
12409 something starting with __ and the normal name is an alias. */
12410 #if defined __stub_$ac_func || defined __stub___$ac_func
12411 choke me
12412 #endif
12415 main ()
12417 return $ac_func ();
12419 return 0;
12421 _ACEOF
12422 rm -f conftest.$ac_objext conftest$ac_exeext
12423 if { (ac_try="$ac_link"
12424 case "(($ac_try" in
12425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426 *) ac_try_echo=$ac_try;;
12427 esac
12428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429 (eval "$ac_link") 2>conftest.er1
12430 ac_status=$?
12431 grep -v '^ *+' conftest.er1 >conftest.err
12432 rm -f conftest.er1
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } &&
12436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12437 { (case "(($ac_try" in
12438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439 *) ac_try_echo=$ac_try;;
12440 esac
12441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442 (eval "$ac_try") 2>&5
12443 ac_status=$?
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; } &&
12446 { ac_try='test -s conftest$ac_exeext'
12447 { (case "(($ac_try" in
12448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449 *) ac_try_echo=$ac_try;;
12450 esac
12451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12452 (eval "$ac_try") 2>&5
12453 ac_status=$?
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); }; }; then
12456 eval "$as_ac_var=yes"
12457 else
12458 echo "$as_me: failed program was:" >&5
12459 sed 's/^/| /' conftest.$ac_ext >&5
12461 eval "$as_ac_var=no"
12464 rm -f core conftest.err conftest.$ac_objext \
12465 conftest$ac_exeext conftest.$ac_ext
12467 ac_res=`eval echo '${'$as_ac_var'}'`
12468 { echo "$as_me:$LINENO: result: $ac_res" >&5
12469 echo "${ECHO_T}$ac_res" >&6; }
12470 if test `eval echo '${'$as_ac_var'}'` = yes; then
12471 cat >>confdefs.h <<_ACEOF
12472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12473 _ACEOF
12474 break
12476 done
12480 for ac_func in memcpy bcopy
12482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12483 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12485 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12487 else
12488 cat >conftest.$ac_ext <<_ACEOF
12489 /* confdefs.h. */
12490 _ACEOF
12491 cat confdefs.h >>conftest.$ac_ext
12492 cat >>conftest.$ac_ext <<_ACEOF
12493 /* end confdefs.h. */
12494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12496 #define $ac_func innocuous_$ac_func
12498 /* System header to define __stub macros and hopefully few prototypes,
12499 which can conflict with char $ac_func (); below.
12500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12501 <limits.h> exists even on freestanding compilers. */
12503 #ifdef __STDC__
12504 # include <limits.h>
12505 #else
12506 # include <assert.h>
12507 #endif
12509 #undef $ac_func
12511 /* Override any GCC internal prototype to avoid an error.
12512 Use char because int might match the return type of a GCC
12513 builtin and then its argument prototype would still apply. */
12514 #ifdef __cplusplus
12515 extern "C"
12516 #endif
12517 char $ac_func ();
12518 /* The GNU C library defines this for functions which it implements
12519 to always fail with ENOSYS. Some functions are actually named
12520 something starting with __ and the normal name is an alias. */
12521 #if defined __stub_$ac_func || defined __stub___$ac_func
12522 choke me
12523 #endif
12526 main ()
12528 return $ac_func ();
12530 return 0;
12532 _ACEOF
12533 rm -f conftest.$ac_objext conftest$ac_exeext
12534 if { (ac_try="$ac_link"
12535 case "(($ac_try" in
12536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12537 *) ac_try_echo=$ac_try;;
12538 esac
12539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12540 (eval "$ac_link") 2>conftest.er1
12541 ac_status=$?
12542 grep -v '^ *+' conftest.er1 >conftest.err
12543 rm -f conftest.er1
12544 cat conftest.err >&5
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); } &&
12547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12548 { (case "(($ac_try" in
12549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12550 *) ac_try_echo=$ac_try;;
12551 esac
12552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12553 (eval "$ac_try") 2>&5
12554 ac_status=$?
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; } &&
12557 { ac_try='test -s conftest$ac_exeext'
12558 { (case "(($ac_try" in
12559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560 *) ac_try_echo=$ac_try;;
12561 esac
12562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563 (eval "$ac_try") 2>&5
12564 ac_status=$?
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; }; then
12567 eval "$as_ac_var=yes"
12568 else
12569 echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12572 eval "$as_ac_var=no"
12575 rm -f core conftest.err conftest.$ac_objext \
12576 conftest$ac_exeext conftest.$ac_ext
12578 ac_res=`eval echo '${'$as_ac_var'}'`
12579 { echo "$as_me:$LINENO: result: $ac_res" >&5
12580 echo "${ECHO_T}$ac_res" >&6; }
12581 if test `eval echo '${'$as_ac_var'}'` = yes; then
12582 cat >>confdefs.h <<_ACEOF
12583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12584 _ACEOF
12585 break
12587 done
12591 for ac_func in memmove strcmp
12593 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12594 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12595 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12596 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12597 echo $ECHO_N "(cached) $ECHO_C" >&6
12598 else
12599 cat >conftest.$ac_ext <<_ACEOF
12600 /* confdefs.h. */
12601 _ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
12604 /* end confdefs.h. */
12605 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12607 #define $ac_func innocuous_$ac_func
12609 /* System header to define __stub macros and hopefully few prototypes,
12610 which can conflict with char $ac_func (); below.
12611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12612 <limits.h> exists even on freestanding compilers. */
12614 #ifdef __STDC__
12615 # include <limits.h>
12616 #else
12617 # include <assert.h>
12618 #endif
12620 #undef $ac_func
12622 /* Override any GCC internal prototype to avoid an error.
12623 Use char because int might match the return type of a GCC
12624 builtin and then its argument prototype would still apply. */
12625 #ifdef __cplusplus
12626 extern "C"
12627 #endif
12628 char $ac_func ();
12629 /* The GNU C library defines this for functions which it implements
12630 to always fail with ENOSYS. Some functions are actually named
12631 something starting with __ and the normal name is an alias. */
12632 #if defined __stub_$ac_func || defined __stub___$ac_func
12633 choke me
12634 #endif
12637 main ()
12639 return $ac_func ();
12641 return 0;
12643 _ACEOF
12644 rm -f conftest.$ac_objext conftest$ac_exeext
12645 if { (ac_try="$ac_link"
12646 case "(($ac_try" in
12647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648 *) ac_try_echo=$ac_try;;
12649 esac
12650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651 (eval "$ac_link") 2>conftest.er1
12652 ac_status=$?
12653 grep -v '^ *+' conftest.er1 >conftest.err
12654 rm -f conftest.er1
12655 cat conftest.err >&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); } &&
12658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12659 { (case "(($ac_try" in
12660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12661 *) ac_try_echo=$ac_try;;
12662 esac
12663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12664 (eval "$ac_try") 2>&5
12665 ac_status=$?
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); }; } &&
12668 { ac_try='test -s conftest$ac_exeext'
12669 { (case "(($ac_try" in
12670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12671 *) ac_try_echo=$ac_try;;
12672 esac
12673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12674 (eval "$ac_try") 2>&5
12675 ac_status=$?
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
12678 eval "$as_ac_var=yes"
12679 else
12680 echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.$ac_ext >&5
12683 eval "$as_ac_var=no"
12686 rm -f core conftest.err conftest.$ac_objext \
12687 conftest$ac_exeext conftest.$ac_ext
12689 ac_res=`eval echo '${'$as_ac_var'}'`
12690 { echo "$as_me:$LINENO: result: $ac_res" >&5
12691 echo "${ECHO_T}$ac_res" >&6; }
12692 if test `eval echo '${'$as_ac_var'}'` = yes; then
12693 cat >>confdefs.h <<_ACEOF
12694 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12695 _ACEOF
12698 done
12703 for ac_func in closedir opendir readdir
12705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12710 else
12711 cat >conftest.$ac_ext <<_ACEOF
12712 /* confdefs.h. */
12713 _ACEOF
12714 cat confdefs.h >>conftest.$ac_ext
12715 cat >>conftest.$ac_ext <<_ACEOF
12716 /* end confdefs.h. */
12717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12719 #define $ac_func innocuous_$ac_func
12721 /* System header to define __stub macros and hopefully few prototypes,
12722 which can conflict with char $ac_func (); below.
12723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12724 <limits.h> exists even on freestanding compilers. */
12726 #ifdef __STDC__
12727 # include <limits.h>
12728 #else
12729 # include <assert.h>
12730 #endif
12732 #undef $ac_func
12734 /* Override any GCC internal prototype to avoid an error.
12735 Use char because int might match the return type of a GCC
12736 builtin and then its argument prototype would still apply. */
12737 #ifdef __cplusplus
12738 extern "C"
12739 #endif
12740 char $ac_func ();
12741 /* The GNU C library defines this for functions which it implements
12742 to always fail with ENOSYS. Some functions are actually named
12743 something starting with __ and the normal name is an alias. */
12744 #if defined __stub_$ac_func || defined __stub___$ac_func
12745 choke me
12746 #endif
12749 main ()
12751 return $ac_func ();
12753 return 0;
12755 _ACEOF
12756 rm -f conftest.$ac_objext conftest$ac_exeext
12757 if { (ac_try="$ac_link"
12758 case "(($ac_try" in
12759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760 *) ac_try_echo=$ac_try;;
12761 esac
12762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12763 (eval "$ac_link") 2>conftest.er1
12764 ac_status=$?
12765 grep -v '^ *+' conftest.er1 >conftest.err
12766 rm -f conftest.er1
12767 cat conftest.err >&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } &&
12770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12771 { (case "(($ac_try" in
12772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773 *) ac_try_echo=$ac_try;;
12774 esac
12775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776 (eval "$ac_try") 2>&5
12777 ac_status=$?
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); }; } &&
12780 { ac_try='test -s conftest$ac_exeext'
12781 { (case "(($ac_try" in
12782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783 *) ac_try_echo=$ac_try;;
12784 esac
12785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12786 (eval "$ac_try") 2>&5
12787 ac_status=$?
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; }; then
12790 eval "$as_ac_var=yes"
12791 else
12792 echo "$as_me: failed program was:" >&5
12793 sed 's/^/| /' conftest.$ac_ext >&5
12795 eval "$as_ac_var=no"
12798 rm -f core conftest.err conftest.$ac_objext \
12799 conftest$ac_exeext conftest.$ac_ext
12801 ac_res=`eval echo '${'$as_ac_var'}'`
12802 { echo "$as_me:$LINENO: result: $ac_res" >&5
12803 echo "${ECHO_T}$ac_res" >&6; }
12804 if test `eval echo '${'$as_ac_var'}'` = yes; then
12805 cat >>confdefs.h <<_ACEOF
12806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12807 _ACEOF
12810 done
12814 if test "$WITH_LLVMGCCDIR" = "default" ; then
12815 LLVMGCC="llvm-gcc${EXEEXT}"
12816 LLVMGXX="llvm-g++${EXEEXT}"
12817 LLVMGCCCOMMAND="$LLVMGCC"
12818 LLVMGXXCOMMAND="$LLVMGXX"
12819 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12821 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12823 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12824 set dummy $LLVMGCC; ac_word=$2
12825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12827 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
12829 else
12830 case $LLVMGCC in
12831 [\\/]* | ?:[\\/]*)
12832 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12836 for as_dir in $PATH
12838 IFS=$as_save_IFS
12839 test -z "$as_dir" && as_dir=.
12840 for ac_exec_ext in '' $ac_executable_extensions; do
12841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12842 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12844 break 2
12846 done
12847 done
12848 IFS=$as_save_IFS
12851 esac
12853 LLVMGCC=$ac_cv_path_LLVMGCC
12854 if test -n "$LLVMGCC"; then
12855 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12856 echo "${ECHO_T}$LLVMGCC" >&6; }
12857 else
12858 { echo "$as_me:$LINENO: result: no" >&5
12859 echo "${ECHO_T}no" >&6; }
12863 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12864 set dummy $LLVMGXX; ac_word=$2
12865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12867 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12868 echo $ECHO_N "(cached) $ECHO_C" >&6
12869 else
12870 case $LLVMGXX in
12871 [\\/]* | ?:[\\/]*)
12872 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12876 for as_dir in $PATH
12878 IFS=$as_save_IFS
12879 test -z "$as_dir" && as_dir=.
12880 for ac_exec_ext in '' $ac_executable_extensions; do
12881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12882 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
12883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12884 break 2
12886 done
12887 done
12888 IFS=$as_save_IFS
12891 esac
12893 LLVMGXX=$ac_cv_path_LLVMGXX
12894 if test -n "$LLVMGXX"; then
12895 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12896 echo "${ECHO_T}$LLVMGXX" >&6; }
12897 else
12898 { echo "$as_me:$LINENO: result: no" >&5
12899 echo "${ECHO_T}no" >&6; }
12903 else
12904 if test -z "$LLVMGCC"; then
12905 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
12906 LLVMGCCCOMMAND="$LLVMGCC"
12908 if test -z "$LLVMGXX"; then
12909 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
12910 LLVMGXXCOMMAND="$LLVMGXX"
12913 LLVMGCC=$LLVMGCC
12915 LLVMGXX=$LLVMGXX
12917 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12919 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12924 # Check whether --with-llvmcc was given.
12925 if test "${with_llvmcc+set}" = set; then
12926 withval=$with_llvmcc;
12927 else
12928 with_llvmcc=check
12931 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12932 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12933 if test "$with_llvmcc" != "check"; then
12934 if (test "$with_llvmcc" != "llvm-gcc" &&
12935 test "$with_llvmcc" != "clang" &&
12936 test "$with_llvmcc" != "none"); then
12937 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12938 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12939 { (exit 1); exit 1; }; }
12941 WITH_LLVMCC="$with_llvmcc"
12942 elif test -n "$LLVMGCC"; then
12943 WITH_LLVMCC=llvm-gcc
12944 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12945 WITH_LLVMCC=clang
12946 else
12947 WITH_LLVMCC=none
12949 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12950 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12951 LLVMCC_OPTION=$WITH_LLVMCC
12954 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12955 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12957 ICC=no
12958 IXX=no
12959 case $CC in
12960 icc*|icpc*)
12961 ICC=yes
12962 IXX=yes
12966 esac
12968 if test "$GCC" != "yes" && test "$ICC" != "yes"
12969 then
12970 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12971 echo "$as_me: error: gcc|icc required but not found" >&2;}
12972 { (exit 1); exit 1; }; }
12975 if test "$GXX" != "yes" && test "$IXX" != "yes"
12976 then
12977 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12978 echo "$as_me: error: g++|icc required but not found" >&2;}
12979 { (exit 1); exit 1; }; }
12982 if test "$GCC" = "yes"
12983 then
12984 cat >conftest.$ac_ext <<_ACEOF
12985 #if !defined(__GNUC__) || __GNUC__ < 3
12986 #error Unsupported GCC version
12987 #endif
12989 _ACEOF
12990 rm -f conftest.$ac_objext
12991 if { (ac_try="$ac_compile"
12992 case "(($ac_try" in
12993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12994 *) ac_try_echo=$ac_try;;
12995 esac
12996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12997 (eval "$ac_compile") 2>conftest.er1
12998 ac_status=$?
12999 grep -v '^ *+' conftest.er1 >conftest.err
13000 rm -f conftest.er1
13001 cat conftest.err >&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); } &&
13004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13005 { (case "(($ac_try" in
13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13008 esac
13009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010 (eval "$ac_try") 2>&5
13011 ac_status=$?
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; } &&
13014 { ac_try='test -s conftest.$ac_objext'
13015 { (case "(($ac_try" in
13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017 *) ac_try_echo=$ac_try;;
13018 esac
13019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020 (eval "$ac_try") 2>&5
13021 ac_status=$?
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); }; }; then
13025 else
13026 echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.$ac_ext >&5
13029 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13030 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13031 { (exit 1); exit 1; }; }
13034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13037 if test -z "$llvm_cv_gnu_make_command"
13038 then
13039 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13040 echo "$as_me: error: GNU Make required but not found" >&2;}
13041 { (exit 1); exit 1; }; }
13044 { echo "$as_me:$LINENO: result: ok" >&5
13045 echo "${ECHO_T}ok" >&6; }
13047 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13048 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13049 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13051 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13053 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13054 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13058 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13059 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13060 if test "${ac_cv_lib_m_sin+set}" = set; then
13061 echo $ECHO_N "(cached) $ECHO_C" >&6
13062 else
13063 ac_check_lib_save_LIBS=$LIBS
13064 LIBS="-lm $LIBS"
13065 cat >conftest.$ac_ext <<_ACEOF
13066 /* confdefs.h. */
13067 _ACEOF
13068 cat confdefs.h >>conftest.$ac_ext
13069 cat >>conftest.$ac_ext <<_ACEOF
13070 /* end confdefs.h. */
13072 /* Override any GCC internal prototype to avoid an error.
13073 Use char because int might match the return type of a GCC
13074 builtin and then its argument prototype would still apply. */
13075 #ifdef __cplusplus
13076 extern "C"
13077 #endif
13078 char sin ();
13080 main ()
13082 return sin ();
13084 return 0;
13086 _ACEOF
13087 rm -f conftest.$ac_objext conftest$ac_exeext
13088 if { (ac_try="$ac_link"
13089 case "(($ac_try" in
13090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13091 *) ac_try_echo=$ac_try;;
13092 esac
13093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13094 (eval "$ac_link") 2>conftest.er1
13095 ac_status=$?
13096 grep -v '^ *+' conftest.er1 >conftest.err
13097 rm -f conftest.er1
13098 cat conftest.err >&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } &&
13101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13102 { (case "(($ac_try" in
13103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13104 *) ac_try_echo=$ac_try;;
13105 esac
13106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13107 (eval "$ac_try") 2>&5
13108 ac_status=$?
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; } &&
13111 { ac_try='test -s conftest$ac_exeext'
13112 { (case "(($ac_try" in
13113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114 *) ac_try_echo=$ac_try;;
13115 esac
13116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13117 (eval "$ac_try") 2>&5
13118 ac_status=$?
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; }; then
13121 ac_cv_lib_m_sin=yes
13122 else
13123 echo "$as_me: failed program was:" >&5
13124 sed 's/^/| /' conftest.$ac_ext >&5
13126 ac_cv_lib_m_sin=no
13129 rm -f core conftest.err conftest.$ac_objext \
13130 conftest$ac_exeext conftest.$ac_ext
13131 LIBS=$ac_check_lib_save_LIBS
13133 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13134 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13135 if test $ac_cv_lib_m_sin = yes; then
13136 cat >>confdefs.h <<_ACEOF
13137 #define HAVE_LIBM 1
13138 _ACEOF
13140 LIBS="-lm $LIBS"
13144 if test "$llvm_cv_os_type" = "MingW" ; then
13146 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13147 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13148 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13149 echo $ECHO_N "(cached) $ECHO_C" >&6
13150 else
13151 ac_check_lib_save_LIBS=$LIBS
13152 LIBS="-limagehlp $LIBS"
13153 cat >conftest.$ac_ext <<_ACEOF
13154 /* confdefs.h. */
13155 _ACEOF
13156 cat confdefs.h >>conftest.$ac_ext
13157 cat >>conftest.$ac_ext <<_ACEOF
13158 /* end confdefs.h. */
13162 main ()
13164 return main ();
13166 return 0;
13168 _ACEOF
13169 rm -f conftest.$ac_objext conftest$ac_exeext
13170 if { (ac_try="$ac_link"
13171 case "(($ac_try" in
13172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13173 *) ac_try_echo=$ac_try;;
13174 esac
13175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13176 (eval "$ac_link") 2>conftest.er1
13177 ac_status=$?
13178 grep -v '^ *+' conftest.er1 >conftest.err
13179 rm -f conftest.er1
13180 cat conftest.err >&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); } &&
13183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13184 { (case "(($ac_try" in
13185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186 *) ac_try_echo=$ac_try;;
13187 esac
13188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13189 (eval "$ac_try") 2>&5
13190 ac_status=$?
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); }; } &&
13193 { ac_try='test -s conftest$ac_exeext'
13194 { (case "(($ac_try" in
13195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196 *) ac_try_echo=$ac_try;;
13197 esac
13198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13199 (eval "$ac_try") 2>&5
13200 ac_status=$?
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); }; }; then
13203 ac_cv_lib_imagehlp_main=yes
13204 else
13205 echo "$as_me: failed program was:" >&5
13206 sed 's/^/| /' conftest.$ac_ext >&5
13208 ac_cv_lib_imagehlp_main=no
13211 rm -f core conftest.err conftest.$ac_objext \
13212 conftest$ac_exeext conftest.$ac_ext
13213 LIBS=$ac_check_lib_save_LIBS
13215 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13216 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13217 if test $ac_cv_lib_imagehlp_main = yes; then
13218 cat >>confdefs.h <<_ACEOF
13219 #define HAVE_LIBIMAGEHLP 1
13220 _ACEOF
13222 LIBS="-limagehlp $LIBS"
13227 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13228 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13229 if test "${ac_cv_lib_psapi_main+set}" = set; then
13230 echo $ECHO_N "(cached) $ECHO_C" >&6
13231 else
13232 ac_check_lib_save_LIBS=$LIBS
13233 LIBS="-lpsapi $LIBS"
13234 cat >conftest.$ac_ext <<_ACEOF
13235 /* confdefs.h. */
13236 _ACEOF
13237 cat confdefs.h >>conftest.$ac_ext
13238 cat >>conftest.$ac_ext <<_ACEOF
13239 /* end confdefs.h. */
13243 main ()
13245 return main ();
13247 return 0;
13249 _ACEOF
13250 rm -f conftest.$ac_objext conftest$ac_exeext
13251 if { (ac_try="$ac_link"
13252 case "(($ac_try" in
13253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254 *) ac_try_echo=$ac_try;;
13255 esac
13256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13257 (eval "$ac_link") 2>conftest.er1
13258 ac_status=$?
13259 grep -v '^ *+' conftest.er1 >conftest.err
13260 rm -f conftest.er1
13261 cat conftest.err >&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); } &&
13264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13265 { (case "(($ac_try" in
13266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13267 *) ac_try_echo=$ac_try;;
13268 esac
13269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13270 (eval "$ac_try") 2>&5
13271 ac_status=$?
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; } &&
13274 { ac_try='test -s conftest$ac_exeext'
13275 { (case "(($ac_try" in
13276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13278 esac
13279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280 (eval "$ac_try") 2>&5
13281 ac_status=$?
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); }; }; then
13284 ac_cv_lib_psapi_main=yes
13285 else
13286 echo "$as_me: failed program was:" >&5
13287 sed 's/^/| /' conftest.$ac_ext >&5
13289 ac_cv_lib_psapi_main=no
13292 rm -f core conftest.err conftest.$ac_objext \
13293 conftest$ac_exeext conftest.$ac_ext
13294 LIBS=$ac_check_lib_save_LIBS
13296 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13297 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13298 if test $ac_cv_lib_psapi_main = yes; then
13299 cat >>confdefs.h <<_ACEOF
13300 #define HAVE_LIBPSAPI 1
13301 _ACEOF
13303 LIBS="-lpsapi $LIBS"
13309 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13310 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13311 if test "${ac_cv_search_dlopen+set}" = set; then
13312 echo $ECHO_N "(cached) $ECHO_C" >&6
13313 else
13314 ac_func_search_save_LIBS=$LIBS
13315 cat >conftest.$ac_ext <<_ACEOF
13316 /* confdefs.h. */
13317 _ACEOF
13318 cat confdefs.h >>conftest.$ac_ext
13319 cat >>conftest.$ac_ext <<_ACEOF
13320 /* end confdefs.h. */
13322 /* Override any GCC internal prototype to avoid an error.
13323 Use char because int might match the return type of a GCC
13324 builtin and then its argument prototype would still apply. */
13325 #ifdef __cplusplus
13326 extern "C"
13327 #endif
13328 char dlopen ();
13330 main ()
13332 return dlopen ();
13334 return 0;
13336 _ACEOF
13337 for ac_lib in '' dl; do
13338 if test -z "$ac_lib"; then
13339 ac_res="none required"
13340 else
13341 ac_res=-l$ac_lib
13342 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13344 rm -f conftest.$ac_objext conftest$ac_exeext
13345 if { (ac_try="$ac_link"
13346 case "(($ac_try" in
13347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13348 *) ac_try_echo=$ac_try;;
13349 esac
13350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13351 (eval "$ac_link") 2>conftest.er1
13352 ac_status=$?
13353 grep -v '^ *+' conftest.er1 >conftest.err
13354 rm -f conftest.er1
13355 cat conftest.err >&5
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); } &&
13358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13359 { (case "(($ac_try" in
13360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13361 *) ac_try_echo=$ac_try;;
13362 esac
13363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13364 (eval "$ac_try") 2>&5
13365 ac_status=$?
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); }; } &&
13368 { ac_try='test -s conftest$ac_exeext'
13369 { (case "(($ac_try" in
13370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371 *) ac_try_echo=$ac_try;;
13372 esac
13373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13374 (eval "$ac_try") 2>&5
13375 ac_status=$?
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; }; then
13378 ac_cv_search_dlopen=$ac_res
13379 else
13380 echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13386 rm -f core conftest.err conftest.$ac_objext \
13387 conftest$ac_exeext
13388 if test "${ac_cv_search_dlopen+set}" = set; then
13389 break
13391 done
13392 if test "${ac_cv_search_dlopen+set}" = set; then
13394 else
13395 ac_cv_search_dlopen=no
13397 rm conftest.$ac_ext
13398 LIBS=$ac_func_search_save_LIBS
13400 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13401 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13402 ac_res=$ac_cv_search_dlopen
13403 if test "$ac_res" != no; then
13404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13406 cat >>confdefs.h <<\_ACEOF
13407 #define HAVE_DLOPEN 1
13408 _ACEOF
13410 else
13411 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13412 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13416 if test "$llvm_cv_enable_libffi" = "yes" ; then
13417 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13418 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13419 if test "${ac_cv_search_ffi_call+set}" = set; then
13420 echo $ECHO_N "(cached) $ECHO_C" >&6
13421 else
13422 ac_func_search_save_LIBS=$LIBS
13423 cat >conftest.$ac_ext <<_ACEOF
13424 /* confdefs.h. */
13425 _ACEOF
13426 cat confdefs.h >>conftest.$ac_ext
13427 cat >>conftest.$ac_ext <<_ACEOF
13428 /* end confdefs.h. */
13430 /* Override any GCC internal prototype to avoid an error.
13431 Use char because int might match the return type of a GCC
13432 builtin and then its argument prototype would still apply. */
13433 #ifdef __cplusplus
13434 extern "C"
13435 #endif
13436 char ffi_call ();
13438 main ()
13440 return ffi_call ();
13442 return 0;
13444 _ACEOF
13445 for ac_lib in '' ffi; do
13446 if test -z "$ac_lib"; then
13447 ac_res="none required"
13448 else
13449 ac_res=-l$ac_lib
13450 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13452 rm -f conftest.$ac_objext conftest$ac_exeext
13453 if { (ac_try="$ac_link"
13454 case "(($ac_try" in
13455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456 *) ac_try_echo=$ac_try;;
13457 esac
13458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459 (eval "$ac_link") 2>conftest.er1
13460 ac_status=$?
13461 grep -v '^ *+' conftest.er1 >conftest.err
13462 rm -f conftest.er1
13463 cat conftest.err >&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } &&
13466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13467 { (case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13470 esac
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_try") 2>&5
13473 ac_status=$?
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); }; } &&
13476 { ac_try='test -s conftest$ac_exeext'
13477 { (case "(($ac_try" in
13478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479 *) ac_try_echo=$ac_try;;
13480 esac
13481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482 (eval "$ac_try") 2>&5
13483 ac_status=$?
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); }; }; then
13486 ac_cv_search_ffi_call=$ac_res
13487 else
13488 echo "$as_me: failed program was:" >&5
13489 sed 's/^/| /' conftest.$ac_ext >&5
13494 rm -f core conftest.err conftest.$ac_objext \
13495 conftest$ac_exeext
13496 if test "${ac_cv_search_ffi_call+set}" = set; then
13497 break
13499 done
13500 if test "${ac_cv_search_ffi_call+set}" = set; then
13502 else
13503 ac_cv_search_ffi_call=no
13505 rm conftest.$ac_ext
13506 LIBS=$ac_func_search_save_LIBS
13508 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13509 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13510 ac_res=$ac_cv_search_ffi_call
13511 if test "$ac_res" != no; then
13512 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13514 cat >>confdefs.h <<\_ACEOF
13515 #define HAVE_FFI_CALL 1
13516 _ACEOF
13518 else
13519 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13520 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13521 { (exit 1); exit 1; }; }
13526 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13527 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13528 if test "${ac_cv_search_mallinfo+set}" = set; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
13530 else
13531 ac_func_search_save_LIBS=$LIBS
13532 cat >conftest.$ac_ext <<_ACEOF
13533 /* confdefs.h. */
13534 _ACEOF
13535 cat confdefs.h >>conftest.$ac_ext
13536 cat >>conftest.$ac_ext <<_ACEOF
13537 /* end confdefs.h. */
13539 /* Override any GCC internal prototype to avoid an error.
13540 Use char because int might match the return type of a GCC
13541 builtin and then its argument prototype would still apply. */
13542 #ifdef __cplusplus
13543 extern "C"
13544 #endif
13545 char mallinfo ();
13547 main ()
13549 return mallinfo ();
13551 return 0;
13553 _ACEOF
13554 for ac_lib in '' malloc; do
13555 if test -z "$ac_lib"; then
13556 ac_res="none required"
13557 else
13558 ac_res=-l$ac_lib
13559 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13561 rm -f conftest.$ac_objext conftest$ac_exeext
13562 if { (ac_try="$ac_link"
13563 case "(($ac_try" in
13564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565 *) ac_try_echo=$ac_try;;
13566 esac
13567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13568 (eval "$ac_link") 2>conftest.er1
13569 ac_status=$?
13570 grep -v '^ *+' conftest.er1 >conftest.err
13571 rm -f conftest.er1
13572 cat conftest.err >&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } &&
13575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13576 { (case "(($ac_try" in
13577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13578 *) ac_try_echo=$ac_try;;
13579 esac
13580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13581 (eval "$ac_try") 2>&5
13582 ac_status=$?
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; } &&
13585 { ac_try='test -s conftest$ac_exeext'
13586 { (case "(($ac_try" in
13587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13588 *) ac_try_echo=$ac_try;;
13589 esac
13590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13591 (eval "$ac_try") 2>&5
13592 ac_status=$?
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }; }; then
13595 ac_cv_search_mallinfo=$ac_res
13596 else
13597 echo "$as_me: failed program was:" >&5
13598 sed 's/^/| /' conftest.$ac_ext >&5
13603 rm -f core conftest.err conftest.$ac_objext \
13604 conftest$ac_exeext
13605 if test "${ac_cv_search_mallinfo+set}" = set; then
13606 break
13608 done
13609 if test "${ac_cv_search_mallinfo+set}" = set; then
13611 else
13612 ac_cv_search_mallinfo=no
13614 rm conftest.$ac_ext
13615 LIBS=$ac_func_search_save_LIBS
13617 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13618 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13619 ac_res=$ac_cv_search_mallinfo
13620 if test "$ac_res" != no; then
13621 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13623 cat >>confdefs.h <<\_ACEOF
13624 #define HAVE_MALLINFO 1
13625 _ACEOF
13630 if test "$ENABLE_THREADS" -eq 1 ; then
13632 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13633 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13634 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13636 else
13637 ac_check_lib_save_LIBS=$LIBS
13638 LIBS="-lpthread $LIBS"
13639 cat >conftest.$ac_ext <<_ACEOF
13640 /* confdefs.h. */
13641 _ACEOF
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h. */
13646 /* Override any GCC internal prototype to avoid an error.
13647 Use char because int might match the return type of a GCC
13648 builtin and then its argument prototype would still apply. */
13649 #ifdef __cplusplus
13650 extern "C"
13651 #endif
13652 char pthread_mutex_init ();
13654 main ()
13656 return pthread_mutex_init ();
13658 return 0;
13660 _ACEOF
13661 rm -f conftest.$ac_objext conftest$ac_exeext
13662 if { (ac_try="$ac_link"
13663 case "(($ac_try" in
13664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665 *) ac_try_echo=$ac_try;;
13666 esac
13667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13668 (eval "$ac_link") 2>conftest.er1
13669 ac_status=$?
13670 grep -v '^ *+' conftest.er1 >conftest.err
13671 rm -f conftest.er1
13672 cat conftest.err >&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } &&
13675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13676 { (case "(($ac_try" in
13677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13678 *) ac_try_echo=$ac_try;;
13679 esac
13680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13681 (eval "$ac_try") 2>&5
13682 ac_status=$?
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); }; } &&
13685 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
13692 ac_status=$?
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }; }; then
13695 ac_cv_lib_pthread_pthread_mutex_init=yes
13696 else
13697 echo "$as_me: failed program was:" >&5
13698 sed 's/^/| /' conftest.$ac_ext >&5
13700 ac_cv_lib_pthread_pthread_mutex_init=no
13703 rm -f core conftest.err conftest.$ac_objext \
13704 conftest$ac_exeext conftest.$ac_ext
13705 LIBS=$ac_check_lib_save_LIBS
13707 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13708 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13709 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13710 cat >>confdefs.h <<_ACEOF
13711 #define HAVE_LIBPTHREAD 1
13712 _ACEOF
13714 LIBS="-lpthread $LIBS"
13718 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13719 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13720 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13721 echo $ECHO_N "(cached) $ECHO_C" >&6
13722 else
13723 ac_func_search_save_LIBS=$LIBS
13724 cat >conftest.$ac_ext <<_ACEOF
13725 /* confdefs.h. */
13726 _ACEOF
13727 cat confdefs.h >>conftest.$ac_ext
13728 cat >>conftest.$ac_ext <<_ACEOF
13729 /* end confdefs.h. */
13731 /* Override any GCC internal prototype to avoid an error.
13732 Use char because int might match the return type of a GCC
13733 builtin and then its argument prototype would still apply. */
13734 #ifdef __cplusplus
13735 extern "C"
13736 #endif
13737 char pthread_mutex_lock ();
13739 main ()
13741 return pthread_mutex_lock ();
13743 return 0;
13745 _ACEOF
13746 for ac_lib in '' pthread; do
13747 if test -z "$ac_lib"; then
13748 ac_res="none required"
13749 else
13750 ac_res=-l$ac_lib
13751 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13753 rm -f conftest.$ac_objext conftest$ac_exeext
13754 if { (ac_try="$ac_link"
13755 case "(($ac_try" in
13756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757 *) ac_try_echo=$ac_try;;
13758 esac
13759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760 (eval "$ac_link") 2>conftest.er1
13761 ac_status=$?
13762 grep -v '^ *+' conftest.er1 >conftest.err
13763 rm -f conftest.er1
13764 cat conftest.err >&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } &&
13767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13768 { (case "(($ac_try" in
13769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770 *) ac_try_echo=$ac_try;;
13771 esac
13772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773 (eval "$ac_try") 2>&5
13774 ac_status=$?
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; } &&
13777 { ac_try='test -s conftest$ac_exeext'
13778 { (case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13781 esac
13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783 (eval "$ac_try") 2>&5
13784 ac_status=$?
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; }; then
13787 ac_cv_search_pthread_mutex_lock=$ac_res
13788 else
13789 echo "$as_me: failed program was:" >&5
13790 sed 's/^/| /' conftest.$ac_ext >&5
13795 rm -f core conftest.err conftest.$ac_objext \
13796 conftest$ac_exeext
13797 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13798 break
13800 done
13801 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13803 else
13804 ac_cv_search_pthread_mutex_lock=no
13806 rm conftest.$ac_ext
13807 LIBS=$ac_func_search_save_LIBS
13809 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13810 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13811 ac_res=$ac_cv_search_pthread_mutex_lock
13812 if test "$ac_res" != no; then
13813 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13815 cat >>confdefs.h <<\_ACEOF
13816 #define HAVE_PTHREAD_MUTEX_LOCK 1
13817 _ACEOF
13821 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13822 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13823 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13824 echo $ECHO_N "(cached) $ECHO_C" >&6
13825 else
13826 ac_func_search_save_LIBS=$LIBS
13827 cat >conftest.$ac_ext <<_ACEOF
13828 /* confdefs.h. */
13829 _ACEOF
13830 cat confdefs.h >>conftest.$ac_ext
13831 cat >>conftest.$ac_ext <<_ACEOF
13832 /* end confdefs.h. */
13834 /* Override any GCC internal prototype to avoid an error.
13835 Use char because int might match the return type of a GCC
13836 builtin and then its argument prototype would still apply. */
13837 #ifdef __cplusplus
13838 extern "C"
13839 #endif
13840 char pthread_rwlock_init ();
13842 main ()
13844 return pthread_rwlock_init ();
13846 return 0;
13848 _ACEOF
13849 for ac_lib in '' pthread; do
13850 if test -z "$ac_lib"; then
13851 ac_res="none required"
13852 else
13853 ac_res=-l$ac_lib
13854 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13856 rm -f conftest.$ac_objext conftest$ac_exeext
13857 if { (ac_try="$ac_link"
13858 case "(($ac_try" in
13859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13860 *) ac_try_echo=$ac_try;;
13861 esac
13862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13863 (eval "$ac_link") 2>conftest.er1
13864 ac_status=$?
13865 grep -v '^ *+' conftest.er1 >conftest.err
13866 rm -f conftest.er1
13867 cat conftest.err >&5
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); } &&
13870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13871 { (case "(($ac_try" in
13872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873 *) ac_try_echo=$ac_try;;
13874 esac
13875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13876 (eval "$ac_try") 2>&5
13877 ac_status=$?
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; } &&
13880 { ac_try='test -s conftest$ac_exeext'
13881 { (case "(($ac_try" in
13882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883 *) ac_try_echo=$ac_try;;
13884 esac
13885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886 (eval "$ac_try") 2>&5
13887 ac_status=$?
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); }; }; then
13890 ac_cv_search_pthread_rwlock_init=$ac_res
13891 else
13892 echo "$as_me: failed program was:" >&5
13893 sed 's/^/| /' conftest.$ac_ext >&5
13898 rm -f core conftest.err conftest.$ac_objext \
13899 conftest$ac_exeext
13900 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13901 break
13903 done
13904 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13906 else
13907 ac_cv_search_pthread_rwlock_init=no
13909 rm conftest.$ac_ext
13910 LIBS=$ac_func_search_save_LIBS
13912 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13913 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13914 ac_res=$ac_cv_search_pthread_rwlock_init
13915 if test "$ac_res" != no; then
13916 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13918 cat >>confdefs.h <<\_ACEOF
13919 #define HAVE_PTHREAD_RWLOCK_INIT 1
13920 _ACEOF
13924 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13925 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13926 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13927 echo $ECHO_N "(cached) $ECHO_C" >&6
13928 else
13929 ac_func_search_save_LIBS=$LIBS
13930 cat >conftest.$ac_ext <<_ACEOF
13931 /* confdefs.h. */
13932 _ACEOF
13933 cat confdefs.h >>conftest.$ac_ext
13934 cat >>conftest.$ac_ext <<_ACEOF
13935 /* end confdefs.h. */
13937 /* Override any GCC internal prototype to avoid an error.
13938 Use char because int might match the return type of a GCC
13939 builtin and then its argument prototype would still apply. */
13940 #ifdef __cplusplus
13941 extern "C"
13942 #endif
13943 char pthread_getspecific ();
13945 main ()
13947 return pthread_getspecific ();
13949 return 0;
13951 _ACEOF
13952 for ac_lib in '' pthread; do
13953 if test -z "$ac_lib"; then
13954 ac_res="none required"
13955 else
13956 ac_res=-l$ac_lib
13957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13959 rm -f conftest.$ac_objext conftest$ac_exeext
13960 if { (ac_try="$ac_link"
13961 case "(($ac_try" in
13962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13963 *) ac_try_echo=$ac_try;;
13964 esac
13965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13966 (eval "$ac_link") 2>conftest.er1
13967 ac_status=$?
13968 grep -v '^ *+' conftest.er1 >conftest.err
13969 rm -f conftest.er1
13970 cat conftest.err >&5
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); } &&
13973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13974 { (case "(($ac_try" in
13975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13976 *) ac_try_echo=$ac_try;;
13977 esac
13978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13979 (eval "$ac_try") 2>&5
13980 ac_status=$?
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; } &&
13983 { ac_try='test -s conftest$ac_exeext'
13984 { (case "(($ac_try" in
13985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13986 *) ac_try_echo=$ac_try;;
13987 esac
13988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13989 (eval "$ac_try") 2>&5
13990 ac_status=$?
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; }; then
13993 ac_cv_search_pthread_getspecific=$ac_res
13994 else
13995 echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
14001 rm -f core conftest.err conftest.$ac_objext \
14002 conftest$ac_exeext
14003 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14004 break
14006 done
14007 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14009 else
14010 ac_cv_search_pthread_getspecific=no
14012 rm conftest.$ac_ext
14013 LIBS=$ac_func_search_save_LIBS
14015 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14016 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14017 ac_res=$ac_cv_search_pthread_getspecific
14018 if test "$ac_res" != no; then
14019 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14021 cat >>confdefs.h <<\_ACEOF
14022 #define HAVE_PTHREAD_GETSPECIFIC 1
14023 _ACEOF
14030 # Check whether --with-udis86 was given.
14031 if test "${with_udis86+set}" = set; then
14032 withval=$with_udis86;
14033 USE_UDIS86=1
14035 case "$withval" in
14036 /usr/lib|yes) ;;
14037 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14038 esac
14040 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14041 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14042 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14044 else
14045 ac_check_lib_save_LIBS=$LIBS
14046 LIBS="-ludis86 $LIBS"
14047 cat >conftest.$ac_ext <<_ACEOF
14048 /* confdefs.h. */
14049 _ACEOF
14050 cat confdefs.h >>conftest.$ac_ext
14051 cat >>conftest.$ac_ext <<_ACEOF
14052 /* end confdefs.h. */
14054 /* Override any GCC internal prototype to avoid an error.
14055 Use char because int might match the return type of a GCC
14056 builtin and then its argument prototype would still apply. */
14057 #ifdef __cplusplus
14058 extern "C"
14059 #endif
14060 char ud_init ();
14062 main ()
14064 return ud_init ();
14066 return 0;
14068 _ACEOF
14069 rm -f conftest.$ac_objext conftest$ac_exeext
14070 if { (ac_try="$ac_link"
14071 case "(($ac_try" in
14072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14074 esac
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076 (eval "$ac_link") 2>conftest.er1
14077 ac_status=$?
14078 grep -v '^ *+' conftest.er1 >conftest.err
14079 rm -f conftest.er1
14080 cat conftest.err >&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } &&
14083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
14090 ac_status=$?
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }; } &&
14093 { ac_try='test -s conftest$ac_exeext'
14094 { (case "(($ac_try" in
14095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096 *) ac_try_echo=$ac_try;;
14097 esac
14098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099 (eval "$ac_try") 2>&5
14100 ac_status=$?
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; }; then
14103 ac_cv_lib_udis86_ud_init=yes
14104 else
14105 echo "$as_me: failed program was:" >&5
14106 sed 's/^/| /' conftest.$ac_ext >&5
14108 ac_cv_lib_udis86_ud_init=no
14111 rm -f core conftest.err conftest.$ac_objext \
14112 conftest$ac_exeext conftest.$ac_ext
14113 LIBS=$ac_check_lib_save_LIBS
14115 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14116 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14117 if test $ac_cv_lib_udis86_ud_init = yes; then
14118 cat >>confdefs.h <<_ACEOF
14119 #define HAVE_LIBUDIS86 1
14120 _ACEOF
14122 LIBS="-ludis86 $LIBS"
14124 else
14126 echo "Error! You need to have libudis86 around."
14127 exit -1
14132 else
14133 USE_UDIS86=0
14138 cat >>confdefs.h <<_ACEOF
14139 #define USE_UDIS86 $USE_UDIS86
14140 _ACEOF
14144 # Check whether --with-oprofile was given.
14145 if test "${with_oprofile+set}" = set; then
14146 withval=$with_oprofile;
14147 USE_OPROFILE=1
14149 case "$withval" in
14150 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14151 no) llvm_cv_oppath=
14152 USE_OPROFILE=0
14154 *) llvm_cv_oppath="${withval}/lib/oprofile"
14155 CPPFLAGS="-I${withval}/include";;
14156 esac
14157 if test -n "$llvm_cv_oppath" ; then
14158 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14159 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14160 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14161 if test "${ac_cv_search_bfd_init+set}" = set; then
14162 echo $ECHO_N "(cached) $ECHO_C" >&6
14163 else
14164 ac_func_search_save_LIBS=$LIBS
14165 cat >conftest.$ac_ext <<_ACEOF
14166 /* confdefs.h. */
14167 _ACEOF
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h. */
14172 /* Override any GCC internal prototype to avoid an error.
14173 Use char because int might match the return type of a GCC
14174 builtin and then its argument prototype would still apply. */
14175 #ifdef __cplusplus
14176 extern "C"
14177 #endif
14178 char bfd_init ();
14180 main ()
14182 return bfd_init ();
14184 return 0;
14186 _ACEOF
14187 for ac_lib in '' bfd; do
14188 if test -z "$ac_lib"; then
14189 ac_res="none required"
14190 else
14191 ac_res=-l$ac_lib
14192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14194 rm -f conftest.$ac_objext conftest$ac_exeext
14195 if { (ac_try="$ac_link"
14196 case "(($ac_try" in
14197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14198 *) ac_try_echo=$ac_try;;
14199 esac
14200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14201 (eval "$ac_link") 2>conftest.er1
14202 ac_status=$?
14203 grep -v '^ *+' conftest.er1 >conftest.err
14204 rm -f conftest.er1
14205 cat conftest.err >&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); } &&
14208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14209 { (case "(($ac_try" in
14210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211 *) ac_try_echo=$ac_try;;
14212 esac
14213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214 (eval "$ac_try") 2>&5
14215 ac_status=$?
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; } &&
14218 { ac_try='test -s conftest$ac_exeext'
14219 { (case "(($ac_try" in
14220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221 *) ac_try_echo=$ac_try;;
14222 esac
14223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224 (eval "$ac_try") 2>&5
14225 ac_status=$?
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; }; then
14228 ac_cv_search_bfd_init=$ac_res
14229 else
14230 echo "$as_me: failed program was:" >&5
14231 sed 's/^/| /' conftest.$ac_ext >&5
14236 rm -f core conftest.err conftest.$ac_objext \
14237 conftest$ac_exeext
14238 if test "${ac_cv_search_bfd_init+set}" = set; then
14239 break
14241 done
14242 if test "${ac_cv_search_bfd_init+set}" = set; then
14244 else
14245 ac_cv_search_bfd_init=no
14247 rm conftest.$ac_ext
14248 LIBS=$ac_func_search_save_LIBS
14250 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14251 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14252 ac_res=$ac_cv_search_bfd_init
14253 if test "$ac_res" != no; then
14254 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14258 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14259 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14260 if test "${ac_cv_search_op_open_agent+set}" = set; then
14261 echo $ECHO_N "(cached) $ECHO_C" >&6
14262 else
14263 ac_func_search_save_LIBS=$LIBS
14264 cat >conftest.$ac_ext <<_ACEOF
14265 /* confdefs.h. */
14266 _ACEOF
14267 cat confdefs.h >>conftest.$ac_ext
14268 cat >>conftest.$ac_ext <<_ACEOF
14269 /* end confdefs.h. */
14271 /* Override any GCC internal prototype to avoid an error.
14272 Use char because int might match the return type of a GCC
14273 builtin and then its argument prototype would still apply. */
14274 #ifdef __cplusplus
14275 extern "C"
14276 #endif
14277 char op_open_agent ();
14279 main ()
14281 return op_open_agent ();
14283 return 0;
14285 _ACEOF
14286 for ac_lib in '' opagent; do
14287 if test -z "$ac_lib"; then
14288 ac_res="none required"
14289 else
14290 ac_res=-l$ac_lib
14291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14293 rm -f conftest.$ac_objext conftest$ac_exeext
14294 if { (ac_try="$ac_link"
14295 case "(($ac_try" in
14296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14298 esac
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_link") 2>conftest.er1
14301 ac_status=$?
14302 grep -v '^ *+' conftest.er1 >conftest.err
14303 rm -f conftest.er1
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } &&
14307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14308 { (case "(($ac_try" in
14309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310 *) ac_try_echo=$ac_try;;
14311 esac
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313 (eval "$ac_try") 2>&5
14314 ac_status=$?
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; } &&
14317 { ac_try='test -s conftest$ac_exeext'
14318 { (case "(($ac_try" in
14319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320 *) ac_try_echo=$ac_try;;
14321 esac
14322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323 (eval "$ac_try") 2>&5
14324 ac_status=$?
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; }; then
14327 ac_cv_search_op_open_agent=$ac_res
14328 else
14329 echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14335 rm -f core conftest.err conftest.$ac_objext \
14336 conftest$ac_exeext
14337 if test "${ac_cv_search_op_open_agent+set}" = set; then
14338 break
14340 done
14341 if test "${ac_cv_search_op_open_agent+set}" = set; then
14343 else
14344 ac_cv_search_op_open_agent=no
14346 rm conftest.$ac_ext
14347 LIBS=$ac_func_search_save_LIBS
14349 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14350 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14351 ac_res=$ac_cv_search_op_open_agent
14352 if test "$ac_res" != no; then
14353 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14355 else
14357 echo "Error! You need to have libopagent around."
14358 exit -1
14362 if test "${ac_cv_header_opagent_h+set}" = set; then
14363 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14364 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14365 if test "${ac_cv_header_opagent_h+set}" = set; then
14366 echo $ECHO_N "(cached) $ECHO_C" >&6
14368 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14369 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14370 else
14371 # Is the header compilable?
14372 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14373 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14374 cat >conftest.$ac_ext <<_ACEOF
14375 /* confdefs.h. */
14376 _ACEOF
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h. */
14380 $ac_includes_default
14381 #include <opagent.h>
14382 _ACEOF
14383 rm -f conftest.$ac_objext
14384 if { (ac_try="$ac_compile"
14385 case "(($ac_try" in
14386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14387 *) ac_try_echo=$ac_try;;
14388 esac
14389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14390 (eval "$ac_compile") 2>conftest.er1
14391 ac_status=$?
14392 grep -v '^ *+' conftest.er1 >conftest.err
14393 rm -f conftest.er1
14394 cat conftest.err >&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); } &&
14397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14398 { (case "(($ac_try" in
14399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400 *) ac_try_echo=$ac_try;;
14401 esac
14402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403 (eval "$ac_try") 2>&5
14404 ac_status=$?
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); }; } &&
14407 { ac_try='test -s conftest.$ac_objext'
14408 { (case "(($ac_try" in
14409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410 *) ac_try_echo=$ac_try;;
14411 esac
14412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413 (eval "$ac_try") 2>&5
14414 ac_status=$?
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; }; then
14417 ac_header_compiler=yes
14418 else
14419 echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14422 ac_header_compiler=no
14425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14426 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14427 echo "${ECHO_T}$ac_header_compiler" >&6; }
14429 # Is the header present?
14430 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14431 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14432 cat >conftest.$ac_ext <<_ACEOF
14433 /* confdefs.h. */
14434 _ACEOF
14435 cat confdefs.h >>conftest.$ac_ext
14436 cat >>conftest.$ac_ext <<_ACEOF
14437 /* end confdefs.h. */
14438 #include <opagent.h>
14439 _ACEOF
14440 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
14447 ac_status=$?
14448 grep -v '^ *+' conftest.er1 >conftest.err
14449 rm -f conftest.er1
14450 cat conftest.err >&5
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); } >/dev/null; then
14453 if test -s conftest.err; then
14454 ac_cpp_err=$ac_c_preproc_warn_flag
14455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14456 else
14457 ac_cpp_err=
14459 else
14460 ac_cpp_err=yes
14462 if test -z "$ac_cpp_err"; then
14463 ac_header_preproc=yes
14464 else
14465 echo "$as_me: failed program was:" >&5
14466 sed 's/^/| /' conftest.$ac_ext >&5
14468 ac_header_preproc=no
14471 rm -f conftest.err conftest.$ac_ext
14472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14473 echo "${ECHO_T}$ac_header_preproc" >&6; }
14475 # So? What about this header?
14476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14477 yes:no: )
14478 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14479 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14480 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14481 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14482 ac_header_preproc=yes
14484 no:yes:* )
14485 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14486 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14487 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14488 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14489 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14490 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14491 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14492 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14493 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14494 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14495 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14496 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14497 ( cat <<\_ASBOX
14498 ## ----------------------------------- ##
14499 ## Report this to llvmbugs@cs.uiuc.edu ##
14500 ## ----------------------------------- ##
14501 _ASBOX
14502 ) | sed "s/^/$as_me: WARNING: /" >&2
14504 esac
14505 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14506 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14507 if test "${ac_cv_header_opagent_h+set}" = set; then
14508 echo $ECHO_N "(cached) $ECHO_C" >&6
14509 else
14510 ac_cv_header_opagent_h=$ac_header_preproc
14512 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14513 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14516 if test $ac_cv_header_opagent_h = yes; then
14518 else
14520 echo "Error! You need to have opagent.h around."
14521 exit -1
14528 else
14530 USE_OPROFILE=0
14536 cat >>confdefs.h <<_ACEOF
14537 #define USE_OPROFILE $USE_OPROFILE
14538 _ACEOF
14547 ac_header_dirent=no
14548 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14549 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14550 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14551 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14553 echo $ECHO_N "(cached) $ECHO_C" >&6
14554 else
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 <sys/types.h>
14562 #include <$ac_hdr>
14565 main ()
14567 if ((DIR *) 0)
14568 return 0;
14570 return 0;
14572 _ACEOF
14573 rm -f conftest.$ac_objext
14574 if { (ac_try="$ac_compile"
14575 case "(($ac_try" in
14576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14577 *) ac_try_echo=$ac_try;;
14578 esac
14579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14580 (eval "$ac_compile") 2>conftest.er1
14581 ac_status=$?
14582 grep -v '^ *+' conftest.er1 >conftest.err
14583 rm -f conftest.er1
14584 cat conftest.err >&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); } &&
14587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14588 { (case "(($ac_try" in
14589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590 *) ac_try_echo=$ac_try;;
14591 esac
14592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14593 (eval "$ac_try") 2>&5
14594 ac_status=$?
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; } &&
14597 { ac_try='test -s conftest.$ac_objext'
14598 { (case "(($ac_try" in
14599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14600 *) ac_try_echo=$ac_try;;
14601 esac
14602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14603 (eval "$ac_try") 2>&5
14604 ac_status=$?
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); }; }; then
14607 eval "$as_ac_Header=yes"
14608 else
14609 echo "$as_me: failed program was:" >&5
14610 sed 's/^/| /' conftest.$ac_ext >&5
14612 eval "$as_ac_Header=no"
14615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14617 ac_res=`eval echo '${'$as_ac_Header'}'`
14618 { echo "$as_me:$LINENO: result: $ac_res" >&5
14619 echo "${ECHO_T}$ac_res" >&6; }
14620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14621 cat >>confdefs.h <<_ACEOF
14622 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14623 _ACEOF
14625 ac_header_dirent=$ac_hdr; break
14628 done
14629 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14630 if test $ac_header_dirent = dirent.h; then
14631 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14632 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14633 if test "${ac_cv_search_opendir+set}" = set; then
14634 echo $ECHO_N "(cached) $ECHO_C" >&6
14635 else
14636 ac_func_search_save_LIBS=$LIBS
14637 cat >conftest.$ac_ext <<_ACEOF
14638 /* confdefs.h. */
14639 _ACEOF
14640 cat confdefs.h >>conftest.$ac_ext
14641 cat >>conftest.$ac_ext <<_ACEOF
14642 /* end confdefs.h. */
14644 /* Override any GCC internal prototype to avoid an error.
14645 Use char because int might match the return type of a GCC
14646 builtin and then its argument prototype would still apply. */
14647 #ifdef __cplusplus
14648 extern "C"
14649 #endif
14650 char opendir ();
14652 main ()
14654 return opendir ();
14656 return 0;
14658 _ACEOF
14659 for ac_lib in '' dir; do
14660 if test -z "$ac_lib"; then
14661 ac_res="none required"
14662 else
14663 ac_res=-l$ac_lib
14664 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14666 rm -f conftest.$ac_objext conftest$ac_exeext
14667 if { (ac_try="$ac_link"
14668 case "(($ac_try" in
14669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670 *) ac_try_echo=$ac_try;;
14671 esac
14672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14673 (eval "$ac_link") 2>conftest.er1
14674 ac_status=$?
14675 grep -v '^ *+' conftest.er1 >conftest.err
14676 rm -f conftest.er1
14677 cat conftest.err >&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } &&
14680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14681 { (case "(($ac_try" in
14682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14683 *) ac_try_echo=$ac_try;;
14684 esac
14685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14686 (eval "$ac_try") 2>&5
14687 ac_status=$?
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); }; } &&
14690 { ac_try='test -s conftest$ac_exeext'
14691 { (case "(($ac_try" in
14692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693 *) ac_try_echo=$ac_try;;
14694 esac
14695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14696 (eval "$ac_try") 2>&5
14697 ac_status=$?
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); }; }; then
14700 ac_cv_search_opendir=$ac_res
14701 else
14702 echo "$as_me: failed program was:" >&5
14703 sed 's/^/| /' conftest.$ac_ext >&5
14708 rm -f core conftest.err conftest.$ac_objext \
14709 conftest$ac_exeext
14710 if test "${ac_cv_search_opendir+set}" = set; then
14711 break
14713 done
14714 if test "${ac_cv_search_opendir+set}" = set; then
14716 else
14717 ac_cv_search_opendir=no
14719 rm conftest.$ac_ext
14720 LIBS=$ac_func_search_save_LIBS
14722 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14723 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14724 ac_res=$ac_cv_search_opendir
14725 if test "$ac_res" != no; then
14726 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14730 else
14731 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14732 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14733 if test "${ac_cv_search_opendir+set}" = set; then
14734 echo $ECHO_N "(cached) $ECHO_C" >&6
14735 else
14736 ac_func_search_save_LIBS=$LIBS
14737 cat >conftest.$ac_ext <<_ACEOF
14738 /* confdefs.h. */
14739 _ACEOF
14740 cat confdefs.h >>conftest.$ac_ext
14741 cat >>conftest.$ac_ext <<_ACEOF
14742 /* end confdefs.h. */
14744 /* Override any GCC internal prototype to avoid an error.
14745 Use char because int might match the return type of a GCC
14746 builtin and then its argument prototype would still apply. */
14747 #ifdef __cplusplus
14748 extern "C"
14749 #endif
14750 char opendir ();
14752 main ()
14754 return opendir ();
14756 return 0;
14758 _ACEOF
14759 for ac_lib in '' x; do
14760 if test -z "$ac_lib"; then
14761 ac_res="none required"
14762 else
14763 ac_res=-l$ac_lib
14764 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14766 rm -f conftest.$ac_objext conftest$ac_exeext
14767 if { (ac_try="$ac_link"
14768 case "(($ac_try" in
14769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14770 *) ac_try_echo=$ac_try;;
14771 esac
14772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14773 (eval "$ac_link") 2>conftest.er1
14774 ac_status=$?
14775 grep -v '^ *+' conftest.er1 >conftest.err
14776 rm -f conftest.er1
14777 cat conftest.err >&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); } &&
14780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14781 { (case "(($ac_try" in
14782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14783 *) ac_try_echo=$ac_try;;
14784 esac
14785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14786 (eval "$ac_try") 2>&5
14787 ac_status=$?
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); }; } &&
14790 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
14797 ac_status=$?
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); }; }; then
14800 ac_cv_search_opendir=$ac_res
14801 else
14802 echo "$as_me: failed program was:" >&5
14803 sed 's/^/| /' conftest.$ac_ext >&5
14808 rm -f core conftest.err conftest.$ac_objext \
14809 conftest$ac_exeext
14810 if test "${ac_cv_search_opendir+set}" = set; then
14811 break
14813 done
14814 if test "${ac_cv_search_opendir+set}" = set; then
14816 else
14817 ac_cv_search_opendir=no
14819 rm conftest.$ac_ext
14820 LIBS=$ac_func_search_save_LIBS
14822 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14823 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14824 ac_res=$ac_cv_search_opendir
14825 if test "$ac_res" != no; then
14826 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14832 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14833 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14834 if test "${ac_cv_header_mmap_anon+set}" = set; then
14835 echo $ECHO_N "(cached) $ECHO_C" >&6
14836 else
14837 ac_ext=c
14838 ac_cpp='$CPP $CPPFLAGS'
14839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14843 cat >conftest.$ac_ext <<_ACEOF
14844 /* confdefs.h. */
14845 _ACEOF
14846 cat confdefs.h >>conftest.$ac_ext
14847 cat >>conftest.$ac_ext <<_ACEOF
14848 /* end confdefs.h. */
14849 #include <sys/mman.h>
14850 #include <unistd.h>
14851 #include <fcntl.h>
14853 main ()
14855 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14857 return 0;
14859 _ACEOF
14860 rm -f conftest.$ac_objext
14861 if { (ac_try="$ac_compile"
14862 case "(($ac_try" in
14863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14864 *) ac_try_echo=$ac_try;;
14865 esac
14866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14867 (eval "$ac_compile") 2>conftest.er1
14868 ac_status=$?
14869 grep -v '^ *+' conftest.er1 >conftest.err
14870 rm -f conftest.er1
14871 cat conftest.err >&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } &&
14874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14875 { (case "(($ac_try" in
14876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14877 *) ac_try_echo=$ac_try;;
14878 esac
14879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14880 (eval "$ac_try") 2>&5
14881 ac_status=$?
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; } &&
14884 { ac_try='test -s conftest.$ac_objext'
14885 { (case "(($ac_try" in
14886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14887 *) ac_try_echo=$ac_try;;
14888 esac
14889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14890 (eval "$ac_try") 2>&5
14891 ac_status=$?
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }; then
14894 ac_cv_header_mmap_anon=yes
14895 else
14896 echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14899 ac_cv_header_mmap_anon=no
14902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14903 ac_ext=c
14904 ac_cpp='$CPP $CPPFLAGS'
14905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14911 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14912 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14913 if test "$ac_cv_header_mmap_anon" = yes; then
14915 cat >>confdefs.h <<\_ACEOF
14916 #define HAVE_MMAP_ANONYMOUS 1
14917 _ACEOF
14921 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14922 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14923 if test "${ac_cv_header_stat_broken+set}" = set; then
14924 echo $ECHO_N "(cached) $ECHO_C" >&6
14925 else
14926 cat >conftest.$ac_ext <<_ACEOF
14927 /* confdefs.h. */
14928 _ACEOF
14929 cat confdefs.h >>conftest.$ac_ext
14930 cat >>conftest.$ac_ext <<_ACEOF
14931 /* end confdefs.h. */
14932 #include <sys/types.h>
14933 #include <sys/stat.h>
14935 #if defined S_ISBLK && defined S_IFDIR
14936 # if S_ISBLK (S_IFDIR)
14937 You lose.
14938 # endif
14939 #endif
14941 #if defined S_ISBLK && defined S_IFCHR
14942 # if S_ISBLK (S_IFCHR)
14943 You lose.
14944 # endif
14945 #endif
14947 #if defined S_ISLNK && defined S_IFREG
14948 # if S_ISLNK (S_IFREG)
14949 You lose.
14950 # endif
14951 #endif
14953 #if defined S_ISSOCK && defined S_IFREG
14954 # if S_ISSOCK (S_IFREG)
14955 You lose.
14956 # endif
14957 #endif
14959 _ACEOF
14960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14961 $EGREP "You lose" >/dev/null 2>&1; then
14962 ac_cv_header_stat_broken=yes
14963 else
14964 ac_cv_header_stat_broken=no
14966 rm -f conftest*
14969 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14970 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14971 if test $ac_cv_header_stat_broken = yes; then
14973 cat >>confdefs.h <<\_ACEOF
14974 #define STAT_MACROS_BROKEN 1
14975 _ACEOF
14979 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14980 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14981 if test "${ac_cv_header_stdc+set}" = set; then
14982 echo $ECHO_N "(cached) $ECHO_C" >&6
14983 else
14984 cat >conftest.$ac_ext <<_ACEOF
14985 /* confdefs.h. */
14986 _ACEOF
14987 cat confdefs.h >>conftest.$ac_ext
14988 cat >>conftest.$ac_ext <<_ACEOF
14989 /* end confdefs.h. */
14990 #include <stdlib.h>
14991 #include <stdarg.h>
14992 #include <string.h>
14993 #include <float.h>
14996 main ()
15000 return 0;
15002 _ACEOF
15003 rm -f conftest.$ac_objext
15004 if { (ac_try="$ac_compile"
15005 case "(($ac_try" in
15006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007 *) ac_try_echo=$ac_try;;
15008 esac
15009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15010 (eval "$ac_compile") 2>conftest.er1
15011 ac_status=$?
15012 grep -v '^ *+' conftest.er1 >conftest.err
15013 rm -f conftest.er1
15014 cat conftest.err >&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } &&
15017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15018 { (case "(($ac_try" in
15019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020 *) ac_try_echo=$ac_try;;
15021 esac
15022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023 (eval "$ac_try") 2>&5
15024 ac_status=$?
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; } &&
15027 { ac_try='test -s conftest.$ac_objext'
15028 { (case "(($ac_try" in
15029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030 *) ac_try_echo=$ac_try;;
15031 esac
15032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033 (eval "$ac_try") 2>&5
15034 ac_status=$?
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; }; then
15037 ac_cv_header_stdc=yes
15038 else
15039 echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15042 ac_cv_header_stdc=no
15045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15047 if test $ac_cv_header_stdc = yes; then
15048 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 <string.h>
15057 _ACEOF
15058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15059 $EGREP "memchr" >/dev/null 2>&1; then
15061 else
15062 ac_cv_header_stdc=no
15064 rm -f conftest*
15068 if test $ac_cv_header_stdc = yes; then
15069 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15070 cat >conftest.$ac_ext <<_ACEOF
15071 /* confdefs.h. */
15072 _ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h. */
15076 #include <stdlib.h>
15078 _ACEOF
15079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15080 $EGREP "free" >/dev/null 2>&1; then
15082 else
15083 ac_cv_header_stdc=no
15085 rm -f conftest*
15089 if test $ac_cv_header_stdc = yes; then
15090 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15091 if test "$cross_compiling" = yes; then
15093 else
15094 cat >conftest.$ac_ext <<_ACEOF
15095 /* confdefs.h. */
15096 _ACEOF
15097 cat confdefs.h >>conftest.$ac_ext
15098 cat >>conftest.$ac_ext <<_ACEOF
15099 /* end confdefs.h. */
15100 #include <ctype.h>
15101 #include <stdlib.h>
15102 #if ((' ' & 0x0FF) == 0x020)
15103 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15104 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15105 #else
15106 # define ISLOWER(c) \
15107 (('a' <= (c) && (c) <= 'i') \
15108 || ('j' <= (c) && (c) <= 'r') \
15109 || ('s' <= (c) && (c) <= 'z'))
15110 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15111 #endif
15113 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15115 main ()
15117 int i;
15118 for (i = 0; i < 256; i++)
15119 if (XOR (islower (i), ISLOWER (i))
15120 || toupper (i) != TOUPPER (i))
15121 return 2;
15122 return 0;
15124 _ACEOF
15125 rm -f conftest$ac_exeext
15126 if { (ac_try="$ac_link"
15127 case "(($ac_try" in
15128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15129 *) ac_try_echo=$ac_try;;
15130 esac
15131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15132 (eval "$ac_link") 2>&5
15133 ac_status=$?
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15136 { (case "(($ac_try" in
15137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138 *) ac_try_echo=$ac_try;;
15139 esac
15140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141 (eval "$ac_try") 2>&5
15142 ac_status=$?
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); }; }; then
15146 else
15147 echo "$as_me: program exited with status $ac_status" >&5
15148 echo "$as_me: failed program was:" >&5
15149 sed 's/^/| /' conftest.$ac_ext >&5
15151 ( exit $ac_status )
15152 ac_cv_header_stdc=no
15154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15160 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15161 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15162 if test $ac_cv_header_stdc = yes; then
15164 cat >>confdefs.h <<\_ACEOF
15165 #define STDC_HEADERS 1
15166 _ACEOF
15170 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15171 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15172 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15174 else
15175 cat >conftest.$ac_ext <<_ACEOF
15176 /* confdefs.h. */
15177 _ACEOF
15178 cat confdefs.h >>conftest.$ac_ext
15179 cat >>conftest.$ac_ext <<_ACEOF
15180 /* end confdefs.h. */
15181 #include <sys/types.h>
15182 #include <sys/wait.h>
15183 #ifndef WEXITSTATUS
15184 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15185 #endif
15186 #ifndef WIFEXITED
15187 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15188 #endif
15191 main ()
15193 int s;
15194 wait (&s);
15195 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15197 return 0;
15199 _ACEOF
15200 rm -f conftest.$ac_objext
15201 if { (ac_try="$ac_compile"
15202 case "(($ac_try" in
15203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15204 *) ac_try_echo=$ac_try;;
15205 esac
15206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15207 (eval "$ac_compile") 2>conftest.er1
15208 ac_status=$?
15209 grep -v '^ *+' conftest.er1 >conftest.err
15210 rm -f conftest.er1
15211 cat conftest.err >&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } &&
15214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15215 { (case "(($ac_try" in
15216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15217 *) ac_try_echo=$ac_try;;
15218 esac
15219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15220 (eval "$ac_try") 2>&5
15221 ac_status=$?
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); }; } &&
15224 { ac_try='test -s conftest.$ac_objext'
15225 { (case "(($ac_try" in
15226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227 *) ac_try_echo=$ac_try;;
15228 esac
15229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230 (eval "$ac_try") 2>&5
15231 ac_status=$?
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; }; then
15234 ac_cv_header_sys_wait_h=yes
15235 else
15236 echo "$as_me: failed program was:" >&5
15237 sed 's/^/| /' conftest.$ac_ext >&5
15239 ac_cv_header_sys_wait_h=no
15242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15244 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15245 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15246 if test $ac_cv_header_sys_wait_h = yes; then
15248 cat >>confdefs.h <<\_ACEOF
15249 #define HAVE_SYS_WAIT_H 1
15250 _ACEOF
15254 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15255 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15256 if test "${ac_cv_header_time+set}" = set; then
15257 echo $ECHO_N "(cached) $ECHO_C" >&6
15258 else
15259 cat >conftest.$ac_ext <<_ACEOF
15260 /* confdefs.h. */
15261 _ACEOF
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h. */
15265 #include <sys/types.h>
15266 #include <sys/time.h>
15267 #include <time.h>
15270 main ()
15272 if ((struct tm *) 0)
15273 return 0;
15275 return 0;
15277 _ACEOF
15278 rm -f conftest.$ac_objext
15279 if { (ac_try="$ac_compile"
15280 case "(($ac_try" in
15281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15282 *) ac_try_echo=$ac_try;;
15283 esac
15284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15285 (eval "$ac_compile") 2>conftest.er1
15286 ac_status=$?
15287 grep -v '^ *+' conftest.er1 >conftest.err
15288 rm -f conftest.er1
15289 cat conftest.err >&5
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); } &&
15292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15293 { (case "(($ac_try" in
15294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15295 *) ac_try_echo=$ac_try;;
15296 esac
15297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15298 (eval "$ac_try") 2>&5
15299 ac_status=$?
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; } &&
15302 { ac_try='test -s conftest.$ac_objext'
15303 { (case "(($ac_try" in
15304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15305 *) ac_try_echo=$ac_try;;
15306 esac
15307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15308 (eval "$ac_try") 2>&5
15309 ac_status=$?
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; }; then
15312 ac_cv_header_time=yes
15313 else
15314 echo "$as_me: failed program was:" >&5
15315 sed 's/^/| /' conftest.$ac_ext >&5
15317 ac_cv_header_time=no
15320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15322 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15323 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15324 if test $ac_cv_header_time = yes; then
15326 cat >>confdefs.h <<\_ACEOF
15327 #define TIME_WITH_SYS_TIME 1
15328 _ACEOF
15339 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15346 echo $ECHO_N "(cached) $ECHO_C" >&6
15348 ac_res=`eval echo '${'$as_ac_Header'}'`
15349 { echo "$as_me:$LINENO: result: $ac_res" >&5
15350 echo "${ECHO_T}$ac_res" >&6; }
15351 else
15352 # Is the header compilable?
15353 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15355 cat >conftest.$ac_ext <<_ACEOF
15356 /* confdefs.h. */
15357 _ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h. */
15361 $ac_includes_default
15362 #include <$ac_header>
15363 _ACEOF
15364 rm -f conftest.$ac_objext
15365 if { (ac_try="$ac_compile"
15366 case "(($ac_try" in
15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368 *) ac_try_echo=$ac_try;;
15369 esac
15370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15371 (eval "$ac_compile") 2>conftest.er1
15372 ac_status=$?
15373 grep -v '^ *+' conftest.er1 >conftest.err
15374 rm -f conftest.er1
15375 cat conftest.err >&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } &&
15378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15379 { (case "(($ac_try" in
15380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15381 *) ac_try_echo=$ac_try;;
15382 esac
15383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15384 (eval "$ac_try") 2>&5
15385 ac_status=$?
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; } &&
15388 { ac_try='test -s conftest.$ac_objext'
15389 { (case "(($ac_try" in
15390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391 *) ac_try_echo=$ac_try;;
15392 esac
15393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15394 (eval "$ac_try") 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15398 ac_header_compiler=yes
15399 else
15400 echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15403 ac_header_compiler=no
15406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15408 echo "${ECHO_T}$ac_header_compiler" >&6; }
15410 # Is the header present?
15411 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15413 cat >conftest.$ac_ext <<_ACEOF
15414 /* confdefs.h. */
15415 _ACEOF
15416 cat confdefs.h >>conftest.$ac_ext
15417 cat >>conftest.$ac_ext <<_ACEOF
15418 /* end confdefs.h. */
15419 #include <$ac_header>
15420 _ACEOF
15421 if { (ac_try="$ac_cpp conftest.$ac_ext"
15422 case "(($ac_try" in
15423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15424 *) ac_try_echo=$ac_try;;
15425 esac
15426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15428 ac_status=$?
15429 grep -v '^ *+' conftest.er1 >conftest.err
15430 rm -f conftest.er1
15431 cat conftest.err >&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } >/dev/null; then
15434 if test -s conftest.err; then
15435 ac_cpp_err=$ac_c_preproc_warn_flag
15436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15437 else
15438 ac_cpp_err=
15440 else
15441 ac_cpp_err=yes
15443 if test -z "$ac_cpp_err"; then
15444 ac_header_preproc=yes
15445 else
15446 echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15449 ac_header_preproc=no
15452 rm -f conftest.err conftest.$ac_ext
15453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15454 echo "${ECHO_T}$ac_header_preproc" >&6; }
15456 # So? What about this header?
15457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15458 yes:no: )
15459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15463 ac_header_preproc=yes
15465 no:yes:* )
15466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15473 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15478 ( cat <<\_ASBOX
15479 ## ----------------------------------- ##
15480 ## Report this to llvmbugs@cs.uiuc.edu ##
15481 ## ----------------------------------- ##
15482 _ASBOX
15483 ) | sed "s/^/$as_me: WARNING: /" >&2
15485 esac
15486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15489 echo $ECHO_N "(cached) $ECHO_C" >&6
15490 else
15491 eval "$as_ac_Header=\$ac_header_preproc"
15493 ac_res=`eval echo '${'$as_ac_Header'}'`
15494 { echo "$as_me:$LINENO: result: $ac_res" >&5
15495 echo "${ECHO_T}$ac_res" >&6; }
15498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15499 cat >>confdefs.h <<_ACEOF
15500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15501 _ACEOF
15505 done
15513 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15520 echo $ECHO_N "(cached) $ECHO_C" >&6
15522 ac_res=`eval echo '${'$as_ac_Header'}'`
15523 { echo "$as_me:$LINENO: result: $ac_res" >&5
15524 echo "${ECHO_T}$ac_res" >&6; }
15525 else
15526 # Is the header compilable?
15527 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15529 cat >conftest.$ac_ext <<_ACEOF
15530 /* confdefs.h. */
15531 _ACEOF
15532 cat confdefs.h >>conftest.$ac_ext
15533 cat >>conftest.$ac_ext <<_ACEOF
15534 /* end confdefs.h. */
15535 $ac_includes_default
15536 #include <$ac_header>
15537 _ACEOF
15538 rm -f conftest.$ac_objext
15539 if { (ac_try="$ac_compile"
15540 case "(($ac_try" in
15541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15542 *) ac_try_echo=$ac_try;;
15543 esac
15544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15545 (eval "$ac_compile") 2>conftest.er1
15546 ac_status=$?
15547 grep -v '^ *+' conftest.er1 >conftest.err
15548 rm -f conftest.er1
15549 cat conftest.err >&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); } &&
15552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15553 { (case "(($ac_try" in
15554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15555 *) ac_try_echo=$ac_try;;
15556 esac
15557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15558 (eval "$ac_try") 2>&5
15559 ac_status=$?
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); }; } &&
15562 { ac_try='test -s conftest.$ac_objext'
15563 { (case "(($ac_try" in
15564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15565 *) ac_try_echo=$ac_try;;
15566 esac
15567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15568 (eval "$ac_try") 2>&5
15569 ac_status=$?
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); }; }; then
15572 ac_header_compiler=yes
15573 else
15574 echo "$as_me: failed program was:" >&5
15575 sed 's/^/| /' conftest.$ac_ext >&5
15577 ac_header_compiler=no
15580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15582 echo "${ECHO_T}$ac_header_compiler" >&6; }
15584 # Is the header present?
15585 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15587 cat >conftest.$ac_ext <<_ACEOF
15588 /* confdefs.h. */
15589 _ACEOF
15590 cat confdefs.h >>conftest.$ac_ext
15591 cat >>conftest.$ac_ext <<_ACEOF
15592 /* end confdefs.h. */
15593 #include <$ac_header>
15594 _ACEOF
15595 if { (ac_try="$ac_cpp conftest.$ac_ext"
15596 case "(($ac_try" in
15597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15598 *) ac_try_echo=$ac_try;;
15599 esac
15600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15602 ac_status=$?
15603 grep -v '^ *+' conftest.er1 >conftest.err
15604 rm -f conftest.er1
15605 cat conftest.err >&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); } >/dev/null; then
15608 if test -s conftest.err; then
15609 ac_cpp_err=$ac_c_preproc_warn_flag
15610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15611 else
15612 ac_cpp_err=
15614 else
15615 ac_cpp_err=yes
15617 if test -z "$ac_cpp_err"; then
15618 ac_header_preproc=yes
15619 else
15620 echo "$as_me: failed program was:" >&5
15621 sed 's/^/| /' conftest.$ac_ext >&5
15623 ac_header_preproc=no
15626 rm -f conftest.err conftest.$ac_ext
15627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15628 echo "${ECHO_T}$ac_header_preproc" >&6; }
15630 # So? What about this header?
15631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15632 yes:no: )
15633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15637 ac_header_preproc=yes
15639 no:yes:* )
15640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15643 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15647 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15652 ( cat <<\_ASBOX
15653 ## ----------------------------------- ##
15654 ## Report this to llvmbugs@cs.uiuc.edu ##
15655 ## ----------------------------------- ##
15656 _ASBOX
15657 ) | sed "s/^/$as_me: WARNING: /" >&2
15659 esac
15660 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15663 echo $ECHO_N "(cached) $ECHO_C" >&6
15664 else
15665 eval "$as_ac_Header=\$ac_header_preproc"
15667 ac_res=`eval echo '${'$as_ac_Header'}'`
15668 { echo "$as_me:$LINENO: result: $ac_res" >&5
15669 echo "${ECHO_T}$ac_res" >&6; }
15672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15673 cat >>confdefs.h <<_ACEOF
15674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15675 _ACEOF
15679 done
15683 for ac_header in utime.h windows.h
15685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15690 echo $ECHO_N "(cached) $ECHO_C" >&6
15692 ac_res=`eval echo '${'$as_ac_Header'}'`
15693 { echo "$as_me:$LINENO: result: $ac_res" >&5
15694 echo "${ECHO_T}$ac_res" >&6; }
15695 else
15696 # Is the header compilable?
15697 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15699 cat >conftest.$ac_ext <<_ACEOF
15700 /* confdefs.h. */
15701 _ACEOF
15702 cat confdefs.h >>conftest.$ac_ext
15703 cat >>conftest.$ac_ext <<_ACEOF
15704 /* end confdefs.h. */
15705 $ac_includes_default
15706 #include <$ac_header>
15707 _ACEOF
15708 rm -f conftest.$ac_objext
15709 if { (ac_try="$ac_compile"
15710 case "(($ac_try" in
15711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15712 *) ac_try_echo=$ac_try;;
15713 esac
15714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15715 (eval "$ac_compile") 2>conftest.er1
15716 ac_status=$?
15717 grep -v '^ *+' conftest.er1 >conftest.err
15718 rm -f conftest.er1
15719 cat conftest.err >&5
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); } &&
15722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15723 { (case "(($ac_try" in
15724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15725 *) ac_try_echo=$ac_try;;
15726 esac
15727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15728 (eval "$ac_try") 2>&5
15729 ac_status=$?
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); }; } &&
15732 { ac_try='test -s conftest.$ac_objext'
15733 { (case "(($ac_try" in
15734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15735 *) ac_try_echo=$ac_try;;
15736 esac
15737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15738 (eval "$ac_try") 2>&5
15739 ac_status=$?
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; }; then
15742 ac_header_compiler=yes
15743 else
15744 echo "$as_me: failed program was:" >&5
15745 sed 's/^/| /' conftest.$ac_ext >&5
15747 ac_header_compiler=no
15750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15752 echo "${ECHO_T}$ac_header_compiler" >&6; }
15754 # Is the header present?
15755 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15757 cat >conftest.$ac_ext <<_ACEOF
15758 /* confdefs.h. */
15759 _ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h. */
15763 #include <$ac_header>
15764 _ACEOF
15765 if { (ac_try="$ac_cpp conftest.$ac_ext"
15766 case "(($ac_try" in
15767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768 *) ac_try_echo=$ac_try;;
15769 esac
15770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15772 ac_status=$?
15773 grep -v '^ *+' conftest.er1 >conftest.err
15774 rm -f conftest.er1
15775 cat conftest.err >&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } >/dev/null; then
15778 if test -s conftest.err; then
15779 ac_cpp_err=$ac_c_preproc_warn_flag
15780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15781 else
15782 ac_cpp_err=
15784 else
15785 ac_cpp_err=yes
15787 if test -z "$ac_cpp_err"; then
15788 ac_header_preproc=yes
15789 else
15790 echo "$as_me: failed program was:" >&5
15791 sed 's/^/| /' conftest.$ac_ext >&5
15793 ac_header_preproc=no
15796 rm -f conftest.err conftest.$ac_ext
15797 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15798 echo "${ECHO_T}$ac_header_preproc" >&6; }
15800 # So? What about this header?
15801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15802 yes:no: )
15803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15807 ac_header_preproc=yes
15809 no:yes:* )
15810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15813 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15817 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15822 ( cat <<\_ASBOX
15823 ## ----------------------------------- ##
15824 ## Report this to llvmbugs@cs.uiuc.edu ##
15825 ## ----------------------------------- ##
15826 _ASBOX
15827 ) | sed "s/^/$as_me: WARNING: /" >&2
15829 esac
15830 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15833 echo $ECHO_N "(cached) $ECHO_C" >&6
15834 else
15835 eval "$as_ac_Header=\$ac_header_preproc"
15837 ac_res=`eval echo '${'$as_ac_Header'}'`
15838 { echo "$as_me:$LINENO: result: $ac_res" >&5
15839 echo "${ECHO_T}$ac_res" >&6; }
15842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15843 cat >>confdefs.h <<_ACEOF
15844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15845 _ACEOF
15849 done
15855 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15862 echo $ECHO_N "(cached) $ECHO_C" >&6
15864 ac_res=`eval echo '${'$as_ac_Header'}'`
15865 { echo "$as_me:$LINENO: result: $ac_res" >&5
15866 echo "${ECHO_T}$ac_res" >&6; }
15867 else
15868 # Is the header compilable?
15869 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15871 cat >conftest.$ac_ext <<_ACEOF
15872 /* confdefs.h. */
15873 _ACEOF
15874 cat confdefs.h >>conftest.$ac_ext
15875 cat >>conftest.$ac_ext <<_ACEOF
15876 /* end confdefs.h. */
15877 $ac_includes_default
15878 #include <$ac_header>
15879 _ACEOF
15880 rm -f conftest.$ac_objext
15881 if { (ac_try="$ac_compile"
15882 case "(($ac_try" in
15883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15884 *) ac_try_echo=$ac_try;;
15885 esac
15886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15887 (eval "$ac_compile") 2>conftest.er1
15888 ac_status=$?
15889 grep -v '^ *+' conftest.er1 >conftest.err
15890 rm -f conftest.er1
15891 cat conftest.err >&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } &&
15894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15895 { (case "(($ac_try" in
15896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15897 *) ac_try_echo=$ac_try;;
15898 esac
15899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15900 (eval "$ac_try") 2>&5
15901 ac_status=$?
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); }; } &&
15904 { ac_try='test -s conftest.$ac_objext'
15905 { (case "(($ac_try" in
15906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15907 *) ac_try_echo=$ac_try;;
15908 esac
15909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15910 (eval "$ac_try") 2>&5
15911 ac_status=$?
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); }; }; then
15914 ac_header_compiler=yes
15915 else
15916 echo "$as_me: failed program was:" >&5
15917 sed 's/^/| /' conftest.$ac_ext >&5
15919 ac_header_compiler=no
15922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15924 echo "${ECHO_T}$ac_header_compiler" >&6; }
15926 # Is the header present?
15927 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15929 cat >conftest.$ac_ext <<_ACEOF
15930 /* confdefs.h. */
15931 _ACEOF
15932 cat confdefs.h >>conftest.$ac_ext
15933 cat >>conftest.$ac_ext <<_ACEOF
15934 /* end confdefs.h. */
15935 #include <$ac_header>
15936 _ACEOF
15937 if { (ac_try="$ac_cpp conftest.$ac_ext"
15938 case "(($ac_try" in
15939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940 *) ac_try_echo=$ac_try;;
15941 esac
15942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15944 ac_status=$?
15945 grep -v '^ *+' conftest.er1 >conftest.err
15946 rm -f conftest.er1
15947 cat conftest.err >&5
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); } >/dev/null; then
15950 if test -s conftest.err; then
15951 ac_cpp_err=$ac_c_preproc_warn_flag
15952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15953 else
15954 ac_cpp_err=
15956 else
15957 ac_cpp_err=yes
15959 if test -z "$ac_cpp_err"; then
15960 ac_header_preproc=yes
15961 else
15962 echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.$ac_ext >&5
15965 ac_header_preproc=no
15968 rm -f conftest.err conftest.$ac_ext
15969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15970 echo "${ECHO_T}$ac_header_preproc" >&6; }
15972 # So? What about this header?
15973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15974 yes:no: )
15975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15978 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15979 ac_header_preproc=yes
15981 no:yes:* )
15982 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15984 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15985 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15986 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15987 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15988 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15989 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15992 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15993 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15994 ( cat <<\_ASBOX
15995 ## ----------------------------------- ##
15996 ## Report this to llvmbugs@cs.uiuc.edu ##
15997 ## ----------------------------------- ##
15998 _ASBOX
15999 ) | sed "s/^/$as_me: WARNING: /" >&2
16001 esac
16002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16005 echo $ECHO_N "(cached) $ECHO_C" >&6
16006 else
16007 eval "$as_ac_Header=\$ac_header_preproc"
16009 ac_res=`eval echo '${'$as_ac_Header'}'`
16010 { echo "$as_me:$LINENO: result: $ac_res" >&5
16011 echo "${ECHO_T}$ac_res" >&6; }
16014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16015 cat >>confdefs.h <<_ACEOF
16016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16017 _ACEOF
16021 done
16027 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16034 echo $ECHO_N "(cached) $ECHO_C" >&6
16036 ac_res=`eval echo '${'$as_ac_Header'}'`
16037 { echo "$as_me:$LINENO: result: $ac_res" >&5
16038 echo "${ECHO_T}$ac_res" >&6; }
16039 else
16040 # Is the header compilable?
16041 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16043 cat >conftest.$ac_ext <<_ACEOF
16044 /* confdefs.h. */
16045 _ACEOF
16046 cat confdefs.h >>conftest.$ac_ext
16047 cat >>conftest.$ac_ext <<_ACEOF
16048 /* end confdefs.h. */
16049 $ac_includes_default
16050 #include <$ac_header>
16051 _ACEOF
16052 rm -f conftest.$ac_objext
16053 if { (ac_try="$ac_compile"
16054 case "(($ac_try" in
16055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16056 *) ac_try_echo=$ac_try;;
16057 esac
16058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16059 (eval "$ac_compile") 2>conftest.er1
16060 ac_status=$?
16061 grep -v '^ *+' conftest.er1 >conftest.err
16062 rm -f conftest.er1
16063 cat conftest.err >&5
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); } &&
16066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16067 { (case "(($ac_try" in
16068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16069 *) ac_try_echo=$ac_try;;
16070 esac
16071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16072 (eval "$ac_try") 2>&5
16073 ac_status=$?
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); }; } &&
16076 { ac_try='test -s conftest.$ac_objext'
16077 { (case "(($ac_try" in
16078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16079 *) ac_try_echo=$ac_try;;
16080 esac
16081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16082 (eval "$ac_try") 2>&5
16083 ac_status=$?
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; }; then
16086 ac_header_compiler=yes
16087 else
16088 echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.$ac_ext >&5
16091 ac_header_compiler=no
16094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16095 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16096 echo "${ECHO_T}$ac_header_compiler" >&6; }
16098 # Is the header present?
16099 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16101 cat >conftest.$ac_ext <<_ACEOF
16102 /* confdefs.h. */
16103 _ACEOF
16104 cat confdefs.h >>conftest.$ac_ext
16105 cat >>conftest.$ac_ext <<_ACEOF
16106 /* end confdefs.h. */
16107 #include <$ac_header>
16108 _ACEOF
16109 if { (ac_try="$ac_cpp conftest.$ac_ext"
16110 case "(($ac_try" in
16111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16112 *) ac_try_echo=$ac_try;;
16113 esac
16114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16116 ac_status=$?
16117 grep -v '^ *+' conftest.er1 >conftest.err
16118 rm -f conftest.er1
16119 cat conftest.err >&5
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); } >/dev/null; then
16122 if test -s conftest.err; then
16123 ac_cpp_err=$ac_c_preproc_warn_flag
16124 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16125 else
16126 ac_cpp_err=
16128 else
16129 ac_cpp_err=yes
16131 if test -z "$ac_cpp_err"; then
16132 ac_header_preproc=yes
16133 else
16134 echo "$as_me: failed program was:" >&5
16135 sed 's/^/| /' conftest.$ac_ext >&5
16137 ac_header_preproc=no
16140 rm -f conftest.err conftest.$ac_ext
16141 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16142 echo "${ECHO_T}$ac_header_preproc" >&6; }
16144 # So? What about this header?
16145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16146 yes:no: )
16147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16151 ac_header_preproc=yes
16153 no:yes:* )
16154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16157 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16161 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16166 ( cat <<\_ASBOX
16167 ## ----------------------------------- ##
16168 ## Report this to llvmbugs@cs.uiuc.edu ##
16169 ## ----------------------------------- ##
16170 _ASBOX
16171 ) | sed "s/^/$as_me: WARNING: /" >&2
16173 esac
16174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16177 echo $ECHO_N "(cached) $ECHO_C" >&6
16178 else
16179 eval "$as_ac_Header=\$ac_header_preproc"
16181 ac_res=`eval echo '${'$as_ac_Header'}'`
16182 { echo "$as_me:$LINENO: result: $ac_res" >&5
16183 echo "${ECHO_T}$ac_res" >&6; }
16186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16187 cat >>confdefs.h <<_ACEOF
16188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16189 _ACEOF
16193 done
16196 for ac_header in valgrind/valgrind.h
16198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16203 echo $ECHO_N "(cached) $ECHO_C" >&6
16205 ac_res=`eval echo '${'$as_ac_Header'}'`
16206 { echo "$as_me:$LINENO: result: $ac_res" >&5
16207 echo "${ECHO_T}$ac_res" >&6; }
16208 else
16209 # Is the header compilable?
16210 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16212 cat >conftest.$ac_ext <<_ACEOF
16213 /* confdefs.h. */
16214 _ACEOF
16215 cat confdefs.h >>conftest.$ac_ext
16216 cat >>conftest.$ac_ext <<_ACEOF
16217 /* end confdefs.h. */
16218 $ac_includes_default
16219 #include <$ac_header>
16220 _ACEOF
16221 rm -f conftest.$ac_objext
16222 if { (ac_try="$ac_compile"
16223 case "(($ac_try" in
16224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16225 *) ac_try_echo=$ac_try;;
16226 esac
16227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16228 (eval "$ac_compile") 2>conftest.er1
16229 ac_status=$?
16230 grep -v '^ *+' conftest.er1 >conftest.err
16231 rm -f conftest.er1
16232 cat conftest.err >&5
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); } &&
16235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16236 { (case "(($ac_try" in
16237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16238 *) ac_try_echo=$ac_try;;
16239 esac
16240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16241 (eval "$ac_try") 2>&5
16242 ac_status=$?
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); }; } &&
16245 { ac_try='test -s conftest.$ac_objext'
16246 { (case "(($ac_try" in
16247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16248 *) ac_try_echo=$ac_try;;
16249 esac
16250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16251 (eval "$ac_try") 2>&5
16252 ac_status=$?
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); }; }; then
16255 ac_header_compiler=yes
16256 else
16257 echo "$as_me: failed program was:" >&5
16258 sed 's/^/| /' conftest.$ac_ext >&5
16260 ac_header_compiler=no
16263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16265 echo "${ECHO_T}$ac_header_compiler" >&6; }
16267 # Is the header present?
16268 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16270 cat >conftest.$ac_ext <<_ACEOF
16271 /* confdefs.h. */
16272 _ACEOF
16273 cat confdefs.h >>conftest.$ac_ext
16274 cat >>conftest.$ac_ext <<_ACEOF
16275 /* end confdefs.h. */
16276 #include <$ac_header>
16277 _ACEOF
16278 if { (ac_try="$ac_cpp conftest.$ac_ext"
16279 case "(($ac_try" in
16280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281 *) ac_try_echo=$ac_try;;
16282 esac
16283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16285 ac_status=$?
16286 grep -v '^ *+' conftest.er1 >conftest.err
16287 rm -f conftest.er1
16288 cat conftest.err >&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); } >/dev/null; then
16291 if test -s conftest.err; then
16292 ac_cpp_err=$ac_c_preproc_warn_flag
16293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16294 else
16295 ac_cpp_err=
16297 else
16298 ac_cpp_err=yes
16300 if test -z "$ac_cpp_err"; then
16301 ac_header_preproc=yes
16302 else
16303 echo "$as_me: failed program was:" >&5
16304 sed 's/^/| /' conftest.$ac_ext >&5
16306 ac_header_preproc=no
16309 rm -f conftest.err conftest.$ac_ext
16310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16311 echo "${ECHO_T}$ac_header_preproc" >&6; }
16313 # So? What about this header?
16314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16315 yes:no: )
16316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16320 ac_header_preproc=yes
16322 no:yes:* )
16323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16326 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16330 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16335 ( cat <<\_ASBOX
16336 ## ----------------------------------- ##
16337 ## Report this to llvmbugs@cs.uiuc.edu ##
16338 ## ----------------------------------- ##
16339 _ASBOX
16340 ) | sed "s/^/$as_me: WARNING: /" >&2
16342 esac
16343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16346 echo $ECHO_N "(cached) $ECHO_C" >&6
16347 else
16348 eval "$as_ac_Header=\$ac_header_preproc"
16350 ac_res=`eval echo '${'$as_ac_Header'}'`
16351 { echo "$as_me:$LINENO: result: $ac_res" >&5
16352 echo "${ECHO_T}$ac_res" >&6; }
16355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16356 cat >>confdefs.h <<_ACEOF
16357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16358 _ACEOF
16362 done
16364 if test "$ENABLE_THREADS" -eq 1 ; then
16366 for ac_header in pthread.h
16368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16373 echo $ECHO_N "(cached) $ECHO_C" >&6
16375 ac_res=`eval echo '${'$as_ac_Header'}'`
16376 { echo "$as_me:$LINENO: result: $ac_res" >&5
16377 echo "${ECHO_T}$ac_res" >&6; }
16378 else
16379 # Is the header compilable?
16380 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16382 cat >conftest.$ac_ext <<_ACEOF
16383 /* confdefs.h. */
16384 _ACEOF
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h. */
16388 $ac_includes_default
16389 #include <$ac_header>
16390 _ACEOF
16391 rm -f conftest.$ac_objext
16392 if { (ac_try="$ac_compile"
16393 case "(($ac_try" in
16394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395 *) ac_try_echo=$ac_try;;
16396 esac
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398 (eval "$ac_compile") 2>conftest.er1
16399 ac_status=$?
16400 grep -v '^ *+' conftest.er1 >conftest.err
16401 rm -f conftest.er1
16402 cat conftest.err >&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); } &&
16405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16406 { (case "(($ac_try" in
16407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408 *) ac_try_echo=$ac_try;;
16409 esac
16410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411 (eval "$ac_try") 2>&5
16412 ac_status=$?
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); }; } &&
16415 { ac_try='test -s conftest.$ac_objext'
16416 { (case "(($ac_try" in
16417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418 *) ac_try_echo=$ac_try;;
16419 esac
16420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16421 (eval "$ac_try") 2>&5
16422 ac_status=$?
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); }; }; then
16425 ac_header_compiler=yes
16426 else
16427 echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16430 ac_header_compiler=no
16433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16434 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16435 echo "${ECHO_T}$ac_header_compiler" >&6; }
16437 # Is the header present?
16438 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16440 cat >conftest.$ac_ext <<_ACEOF
16441 /* confdefs.h. */
16442 _ACEOF
16443 cat confdefs.h >>conftest.$ac_ext
16444 cat >>conftest.$ac_ext <<_ACEOF
16445 /* end confdefs.h. */
16446 #include <$ac_header>
16447 _ACEOF
16448 if { (ac_try="$ac_cpp conftest.$ac_ext"
16449 case "(($ac_try" in
16450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16451 *) ac_try_echo=$ac_try;;
16452 esac
16453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16455 ac_status=$?
16456 grep -v '^ *+' conftest.er1 >conftest.err
16457 rm -f conftest.er1
16458 cat conftest.err >&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); } >/dev/null; then
16461 if test -s conftest.err; then
16462 ac_cpp_err=$ac_c_preproc_warn_flag
16463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16464 else
16465 ac_cpp_err=
16467 else
16468 ac_cpp_err=yes
16470 if test -z "$ac_cpp_err"; then
16471 ac_header_preproc=yes
16472 else
16473 echo "$as_me: failed program was:" >&5
16474 sed 's/^/| /' conftest.$ac_ext >&5
16476 ac_header_preproc=no
16479 rm -f conftest.err conftest.$ac_ext
16480 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16481 echo "${ECHO_T}$ac_header_preproc" >&6; }
16483 # So? What about this header?
16484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16485 yes:no: )
16486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16487 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16489 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16490 ac_header_preproc=yes
16492 no:yes:* )
16493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16494 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16496 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16497 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16498 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16499 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16500 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16503 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16504 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16505 ( cat <<\_ASBOX
16506 ## ----------------------------------- ##
16507 ## Report this to llvmbugs@cs.uiuc.edu ##
16508 ## ----------------------------------- ##
16509 _ASBOX
16510 ) | sed "s/^/$as_me: WARNING: /" >&2
16512 esac
16513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16516 echo $ECHO_N "(cached) $ECHO_C" >&6
16517 else
16518 eval "$as_ac_Header=\$ac_header_preproc"
16520 ac_res=`eval echo '${'$as_ac_Header'}'`
16521 { echo "$as_me:$LINENO: result: $ac_res" >&5
16522 echo "${ECHO_T}$ac_res" >&6; }
16525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16526 cat >>confdefs.h <<_ACEOF
16527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16528 _ACEOF
16529 HAVE_PTHREAD=1
16531 else
16532 HAVE_PTHREAD=0
16536 done
16538 else
16539 HAVE_PTHREAD=0
16543 if test "$llvm_cv_enable_libffi" = "yes" ; then
16546 for ac_header in ffi.h ffi/ffi.h
16548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16553 echo $ECHO_N "(cached) $ECHO_C" >&6
16555 ac_res=`eval echo '${'$as_ac_Header'}'`
16556 { echo "$as_me:$LINENO: result: $ac_res" >&5
16557 echo "${ECHO_T}$ac_res" >&6; }
16558 else
16559 # Is the header compilable?
16560 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16561 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16562 cat >conftest.$ac_ext <<_ACEOF
16563 /* confdefs.h. */
16564 _ACEOF
16565 cat confdefs.h >>conftest.$ac_ext
16566 cat >>conftest.$ac_ext <<_ACEOF
16567 /* end confdefs.h. */
16568 $ac_includes_default
16569 #include <$ac_header>
16570 _ACEOF
16571 rm -f conftest.$ac_objext
16572 if { (ac_try="$ac_compile"
16573 case "(($ac_try" in
16574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575 *) ac_try_echo=$ac_try;;
16576 esac
16577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578 (eval "$ac_compile") 2>conftest.er1
16579 ac_status=$?
16580 grep -v '^ *+' conftest.er1 >conftest.err
16581 rm -f conftest.er1
16582 cat conftest.err >&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); } &&
16585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16586 { (case "(($ac_try" in
16587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16588 *) ac_try_echo=$ac_try;;
16589 esac
16590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16591 (eval "$ac_try") 2>&5
16592 ac_status=$?
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); }; } &&
16595 { ac_try='test -s conftest.$ac_objext'
16596 { (case "(($ac_try" in
16597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598 *) ac_try_echo=$ac_try;;
16599 esac
16600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601 (eval "$ac_try") 2>&5
16602 ac_status=$?
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; }; then
16605 ac_header_compiler=yes
16606 else
16607 echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16610 ac_header_compiler=no
16613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16614 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16615 echo "${ECHO_T}$ac_header_compiler" >&6; }
16617 # Is the header present?
16618 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16620 cat >conftest.$ac_ext <<_ACEOF
16621 /* confdefs.h. */
16622 _ACEOF
16623 cat confdefs.h >>conftest.$ac_ext
16624 cat >>conftest.$ac_ext <<_ACEOF
16625 /* end confdefs.h. */
16626 #include <$ac_header>
16627 _ACEOF
16628 if { (ac_try="$ac_cpp conftest.$ac_ext"
16629 case "(($ac_try" in
16630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16631 *) ac_try_echo=$ac_try;;
16632 esac
16633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16635 ac_status=$?
16636 grep -v '^ *+' conftest.er1 >conftest.err
16637 rm -f conftest.er1
16638 cat conftest.err >&5
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); } >/dev/null; then
16641 if test -s conftest.err; then
16642 ac_cpp_err=$ac_c_preproc_warn_flag
16643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16644 else
16645 ac_cpp_err=
16647 else
16648 ac_cpp_err=yes
16650 if test -z "$ac_cpp_err"; then
16651 ac_header_preproc=yes
16652 else
16653 echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16656 ac_header_preproc=no
16659 rm -f conftest.err conftest.$ac_ext
16660 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16661 echo "${ECHO_T}$ac_header_preproc" >&6; }
16663 # So? What about this header?
16664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16665 yes:no: )
16666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16669 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16670 ac_header_preproc=yes
16672 no:yes:* )
16673 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16674 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16675 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16676 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16677 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16678 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16679 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16680 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16683 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16684 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16685 ( cat <<\_ASBOX
16686 ## ----------------------------------- ##
16687 ## Report this to llvmbugs@cs.uiuc.edu ##
16688 ## ----------------------------------- ##
16689 _ASBOX
16690 ) | sed "s/^/$as_me: WARNING: /" >&2
16692 esac
16693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16696 echo $ECHO_N "(cached) $ECHO_C" >&6
16697 else
16698 eval "$as_ac_Header=\$ac_header_preproc"
16700 ac_res=`eval echo '${'$as_ac_Header'}'`
16701 { echo "$as_me:$LINENO: result: $ac_res" >&5
16702 echo "${ECHO_T}$ac_res" >&6; }
16705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16706 cat >>confdefs.h <<_ACEOF
16707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16708 _ACEOF
16712 done
16719 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16720 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16721 if test "${ac_cv_huge_val_sanity+set}" = set; then
16722 echo $ECHO_N "(cached) $ECHO_C" >&6
16723 else
16725 ac_ext=cpp
16726 ac_cpp='$CXXCPP $CPPFLAGS'
16727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16731 ac_save_CXXFLAGS=$CXXFLAGS
16732 CXXFLAGS=-pedantic
16733 if test "$cross_compiling" = yes; then
16734 ac_cv_huge_val_sanity=yes
16735 else
16736 cat >conftest.$ac_ext <<_ACEOF
16737 /* confdefs.h. */
16738 _ACEOF
16739 cat confdefs.h >>conftest.$ac_ext
16740 cat >>conftest.$ac_ext <<_ACEOF
16741 /* end confdefs.h. */
16742 #include <math.h>
16744 main ()
16746 double x = HUGE_VAL; return x != x;
16748 return 0;
16750 _ACEOF
16751 rm -f conftest$ac_exeext
16752 if { (ac_try="$ac_link"
16753 case "(($ac_try" in
16754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755 *) ac_try_echo=$ac_try;;
16756 esac
16757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16758 (eval "$ac_link") 2>&5
16759 ac_status=$?
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16762 { (case "(($ac_try" in
16763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764 *) ac_try_echo=$ac_try;;
16765 esac
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767 (eval "$ac_try") 2>&5
16768 ac_status=$?
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; }; then
16771 ac_cv_huge_val_sanity=yes
16772 else
16773 echo "$as_me: program exited with status $ac_status" >&5
16774 echo "$as_me: failed program was:" >&5
16775 sed 's/^/| /' conftest.$ac_ext >&5
16777 ( exit $ac_status )
16778 ac_cv_huge_val_sanity=no
16780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16784 CXXFLAGS=$ac_save_CXXFLAGS
16785 ac_ext=c
16786 ac_cpp='$CPP $CPPFLAGS'
16787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16793 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16794 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16795 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16798 { echo "$as_me:$LINENO: checking for pid_t" >&5
16799 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16800 if test "${ac_cv_type_pid_t+set}" = set; then
16801 echo $ECHO_N "(cached) $ECHO_C" >&6
16802 else
16803 cat >conftest.$ac_ext <<_ACEOF
16804 /* confdefs.h. */
16805 _ACEOF
16806 cat confdefs.h >>conftest.$ac_ext
16807 cat >>conftest.$ac_ext <<_ACEOF
16808 /* end confdefs.h. */
16809 $ac_includes_default
16810 typedef pid_t ac__type_new_;
16812 main ()
16814 if ((ac__type_new_ *) 0)
16815 return 0;
16816 if (sizeof (ac__type_new_))
16817 return 0;
16819 return 0;
16821 _ACEOF
16822 rm -f conftest.$ac_objext
16823 if { (ac_try="$ac_compile"
16824 case "(($ac_try" in
16825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16826 *) ac_try_echo=$ac_try;;
16827 esac
16828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16829 (eval "$ac_compile") 2>conftest.er1
16830 ac_status=$?
16831 grep -v '^ *+' conftest.er1 >conftest.err
16832 rm -f conftest.er1
16833 cat conftest.err >&5
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); } &&
16836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16837 { (case "(($ac_try" in
16838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16839 *) ac_try_echo=$ac_try;;
16840 esac
16841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16842 (eval "$ac_try") 2>&5
16843 ac_status=$?
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; } &&
16846 { ac_try='test -s conftest.$ac_objext'
16847 { (case "(($ac_try" in
16848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16849 *) ac_try_echo=$ac_try;;
16850 esac
16851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16852 (eval "$ac_try") 2>&5
16853 ac_status=$?
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); }; }; then
16856 ac_cv_type_pid_t=yes
16857 else
16858 echo "$as_me: failed program was:" >&5
16859 sed 's/^/| /' conftest.$ac_ext >&5
16861 ac_cv_type_pid_t=no
16864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16866 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16867 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16868 if test $ac_cv_type_pid_t = yes; then
16870 else
16872 cat >>confdefs.h <<_ACEOF
16873 #define pid_t int
16874 _ACEOF
16878 { echo "$as_me:$LINENO: checking for size_t" >&5
16879 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16880 if test "${ac_cv_type_size_t+set}" = set; then
16881 echo $ECHO_N "(cached) $ECHO_C" >&6
16882 else
16883 cat >conftest.$ac_ext <<_ACEOF
16884 /* confdefs.h. */
16885 _ACEOF
16886 cat confdefs.h >>conftest.$ac_ext
16887 cat >>conftest.$ac_ext <<_ACEOF
16888 /* end confdefs.h. */
16889 $ac_includes_default
16890 typedef size_t ac__type_new_;
16892 main ()
16894 if ((ac__type_new_ *) 0)
16895 return 0;
16896 if (sizeof (ac__type_new_))
16897 return 0;
16899 return 0;
16901 _ACEOF
16902 rm -f conftest.$ac_objext
16903 if { (ac_try="$ac_compile"
16904 case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16907 esac
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909 (eval "$ac_compile") 2>conftest.er1
16910 ac_status=$?
16911 grep -v '^ *+' conftest.er1 >conftest.err
16912 rm -f conftest.er1
16913 cat conftest.err >&5
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); } &&
16916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16917 { (case "(($ac_try" in
16918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919 *) ac_try_echo=$ac_try;;
16920 esac
16921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922 (eval "$ac_try") 2>&5
16923 ac_status=$?
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; } &&
16926 { ac_try='test -s conftest.$ac_objext'
16927 { (case "(($ac_try" in
16928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16929 *) ac_try_echo=$ac_try;;
16930 esac
16931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16932 (eval "$ac_try") 2>&5
16933 ac_status=$?
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); }; }; then
16936 ac_cv_type_size_t=yes
16937 else
16938 echo "$as_me: failed program was:" >&5
16939 sed 's/^/| /' conftest.$ac_ext >&5
16941 ac_cv_type_size_t=no
16944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16946 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16947 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16948 if test $ac_cv_type_size_t = yes; then
16950 else
16952 cat >>confdefs.h <<_ACEOF
16953 #define size_t unsigned int
16954 _ACEOF
16959 cat >>confdefs.h <<_ACEOF
16960 #define RETSIGTYPE void
16961 _ACEOF
16963 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16964 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16965 if test "${ac_cv_struct_tm+set}" = set; then
16966 echo $ECHO_N "(cached) $ECHO_C" >&6
16967 else
16968 cat >conftest.$ac_ext <<_ACEOF
16969 /* confdefs.h. */
16970 _ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h. */
16974 #include <sys/types.h>
16975 #include <time.h>
16978 main ()
16980 struct tm *tp; tp->tm_sec;
16982 return 0;
16984 _ACEOF
16985 rm -f conftest.$ac_objext
16986 if { (ac_try="$ac_compile"
16987 case "(($ac_try" in
16988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16989 *) ac_try_echo=$ac_try;;
16990 esac
16991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16992 (eval "$ac_compile") 2>conftest.er1
16993 ac_status=$?
16994 grep -v '^ *+' conftest.er1 >conftest.err
16995 rm -f conftest.er1
16996 cat conftest.err >&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); } &&
16999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17000 { (case "(($ac_try" in
17001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17002 *) ac_try_echo=$ac_try;;
17003 esac
17004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17005 (eval "$ac_try") 2>&5
17006 ac_status=$?
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; } &&
17009 { ac_try='test -s conftest.$ac_objext'
17010 { (case "(($ac_try" in
17011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012 *) ac_try_echo=$ac_try;;
17013 esac
17014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015 (eval "$ac_try") 2>&5
17016 ac_status=$?
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); }; }; then
17019 ac_cv_struct_tm=time.h
17020 else
17021 echo "$as_me: failed program was:" >&5
17022 sed 's/^/| /' conftest.$ac_ext >&5
17024 ac_cv_struct_tm=sys/time.h
17027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17029 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17030 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17031 if test $ac_cv_struct_tm = sys/time.h; then
17033 cat >>confdefs.h <<\_ACEOF
17034 #define TM_IN_SYS_TIME 1
17035 _ACEOF
17039 { echo "$as_me:$LINENO: checking for int64_t" >&5
17040 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17041 if test "${ac_cv_type_int64_t+set}" = set; then
17042 echo $ECHO_N "(cached) $ECHO_C" >&6
17043 else
17044 cat >conftest.$ac_ext <<_ACEOF
17045 /* confdefs.h. */
17046 _ACEOF
17047 cat confdefs.h >>conftest.$ac_ext
17048 cat >>conftest.$ac_ext <<_ACEOF
17049 /* end confdefs.h. */
17050 $ac_includes_default
17051 typedef int64_t ac__type_new_;
17053 main ()
17055 if ((ac__type_new_ *) 0)
17056 return 0;
17057 if (sizeof (ac__type_new_))
17058 return 0;
17060 return 0;
17062 _ACEOF
17063 rm -f conftest.$ac_objext
17064 if { (ac_try="$ac_compile"
17065 case "(($ac_try" in
17066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067 *) ac_try_echo=$ac_try;;
17068 esac
17069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070 (eval "$ac_compile") 2>conftest.er1
17071 ac_status=$?
17072 grep -v '^ *+' conftest.er1 >conftest.err
17073 rm -f conftest.er1
17074 cat conftest.err >&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } &&
17077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17078 { (case "(($ac_try" in
17079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17080 *) ac_try_echo=$ac_try;;
17081 esac
17082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17083 (eval "$ac_try") 2>&5
17084 ac_status=$?
17085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); }; } &&
17087 { ac_try='test -s conftest.$ac_objext'
17088 { (case "(($ac_try" in
17089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090 *) ac_try_echo=$ac_try;;
17091 esac
17092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093 (eval "$ac_try") 2>&5
17094 ac_status=$?
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; }; then
17097 ac_cv_type_int64_t=yes
17098 else
17099 echo "$as_me: failed program was:" >&5
17100 sed 's/^/| /' conftest.$ac_ext >&5
17102 ac_cv_type_int64_t=no
17105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17107 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17108 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17109 if test $ac_cv_type_int64_t = yes; then
17111 cat >>confdefs.h <<_ACEOF
17112 #define HAVE_INT64_T 1
17113 _ACEOF
17116 else
17117 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17118 echo "$as_me: error: Type int64_t required but not found" >&2;}
17119 { (exit 1); exit 1; }; }
17122 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17123 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17124 if test "${ac_cv_type_uint64_t+set}" = set; then
17125 echo $ECHO_N "(cached) $ECHO_C" >&6
17126 else
17127 cat >conftest.$ac_ext <<_ACEOF
17128 /* confdefs.h. */
17129 _ACEOF
17130 cat confdefs.h >>conftest.$ac_ext
17131 cat >>conftest.$ac_ext <<_ACEOF
17132 /* end confdefs.h. */
17133 $ac_includes_default
17134 typedef uint64_t ac__type_new_;
17136 main ()
17138 if ((ac__type_new_ *) 0)
17139 return 0;
17140 if (sizeof (ac__type_new_))
17141 return 0;
17143 return 0;
17145 _ACEOF
17146 rm -f conftest.$ac_objext
17147 if { (ac_try="$ac_compile"
17148 case "(($ac_try" in
17149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150 *) ac_try_echo=$ac_try;;
17151 esac
17152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153 (eval "$ac_compile") 2>conftest.er1
17154 ac_status=$?
17155 grep -v '^ *+' conftest.er1 >conftest.err
17156 rm -f conftest.er1
17157 cat conftest.err >&5
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); } &&
17160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17161 { (case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17164 esac
17165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_try") 2>&5
17167 ac_status=$?
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; } &&
17170 { ac_try='test -s conftest.$ac_objext'
17171 { (case "(($ac_try" in
17172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17173 *) ac_try_echo=$ac_try;;
17174 esac
17175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17176 (eval "$ac_try") 2>&5
17177 ac_status=$?
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); }; }; then
17180 ac_cv_type_uint64_t=yes
17181 else
17182 echo "$as_me: failed program was:" >&5
17183 sed 's/^/| /' conftest.$ac_ext >&5
17185 ac_cv_type_uint64_t=no
17188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17190 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17191 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17192 if test $ac_cv_type_uint64_t = yes; then
17194 cat >>confdefs.h <<_ACEOF
17195 #define HAVE_UINT64_T 1
17196 _ACEOF
17199 else
17200 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17201 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17202 if test "${ac_cv_type_u_int64_t+set}" = set; then
17203 echo $ECHO_N "(cached) $ECHO_C" >&6
17204 else
17205 cat >conftest.$ac_ext <<_ACEOF
17206 /* confdefs.h. */
17207 _ACEOF
17208 cat confdefs.h >>conftest.$ac_ext
17209 cat >>conftest.$ac_ext <<_ACEOF
17210 /* end confdefs.h. */
17211 $ac_includes_default
17212 typedef u_int64_t ac__type_new_;
17214 main ()
17216 if ((ac__type_new_ *) 0)
17217 return 0;
17218 if (sizeof (ac__type_new_))
17219 return 0;
17221 return 0;
17223 _ACEOF
17224 rm -f conftest.$ac_objext
17225 if { (ac_try="$ac_compile"
17226 case "(($ac_try" in
17227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228 *) ac_try_echo=$ac_try;;
17229 esac
17230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231 (eval "$ac_compile") 2>conftest.er1
17232 ac_status=$?
17233 grep -v '^ *+' conftest.er1 >conftest.err
17234 rm -f conftest.er1
17235 cat conftest.err >&5
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); } &&
17238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17239 { (case "(($ac_try" in
17240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17241 *) ac_try_echo=$ac_try;;
17242 esac
17243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17244 (eval "$ac_try") 2>&5
17245 ac_status=$?
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); }; } &&
17248 { ac_try='test -s conftest.$ac_objext'
17249 { (case "(($ac_try" in
17250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251 *) ac_try_echo=$ac_try;;
17252 esac
17253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17254 (eval "$ac_try") 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; }; then
17258 ac_cv_type_u_int64_t=yes
17259 else
17260 echo "$as_me: failed program was:" >&5
17261 sed 's/^/| /' conftest.$ac_ext >&5
17263 ac_cv_type_u_int64_t=no
17266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17268 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17269 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17270 if test $ac_cv_type_u_int64_t = yes; then
17272 cat >>confdefs.h <<_ACEOF
17273 #define HAVE_U_INT64_T 1
17274 _ACEOF
17277 else
17278 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17279 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17280 { (exit 1); exit 1; }; }
17294 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17297 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17299 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17300 echo $ECHO_N "(cached) $ECHO_C" >&6
17301 else
17302 cat >conftest.$ac_ext <<_ACEOF
17303 /* confdefs.h. */
17304 _ACEOF
17305 cat confdefs.h >>conftest.$ac_ext
17306 cat >>conftest.$ac_ext <<_ACEOF
17307 /* end confdefs.h. */
17308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17310 #define $ac_func innocuous_$ac_func
17312 /* System header to define __stub macros and hopefully few prototypes,
17313 which can conflict with char $ac_func (); below.
17314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17315 <limits.h> exists even on freestanding compilers. */
17317 #ifdef __STDC__
17318 # include <limits.h>
17319 #else
17320 # include <assert.h>
17321 #endif
17323 #undef $ac_func
17325 /* Override any GCC internal prototype to avoid an error.
17326 Use char because int might match the return type of a GCC
17327 builtin and then its argument prototype would still apply. */
17328 #ifdef __cplusplus
17329 extern "C"
17330 #endif
17331 char $ac_func ();
17332 /* The GNU C library defines this for functions which it implements
17333 to always fail with ENOSYS. Some functions are actually named
17334 something starting with __ and the normal name is an alias. */
17335 #if defined __stub_$ac_func || defined __stub___$ac_func
17336 choke me
17337 #endif
17340 main ()
17342 return $ac_func ();
17344 return 0;
17346 _ACEOF
17347 rm -f conftest.$ac_objext conftest$ac_exeext
17348 if { (ac_try="$ac_link"
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_link") 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_exeext'
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 eval "$as_ac_var=yes"
17382 else
17383 echo "$as_me: failed program was:" >&5
17384 sed 's/^/| /' conftest.$ac_ext >&5
17386 eval "$as_ac_var=no"
17389 rm -f core conftest.err conftest.$ac_objext \
17390 conftest$ac_exeext conftest.$ac_ext
17392 ac_res=`eval echo '${'$as_ac_var'}'`
17393 { echo "$as_me:$LINENO: result: $ac_res" >&5
17394 echo "${ECHO_T}$ac_res" >&6; }
17395 if test `eval echo '${'$as_ac_var'}'` = yes; then
17396 cat >>confdefs.h <<_ACEOF
17397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17398 _ACEOF
17401 done
17407 for ac_func in powf fmodf strtof round
17409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17410 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17412 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17413 echo $ECHO_N "(cached) $ECHO_C" >&6
17414 else
17415 cat >conftest.$ac_ext <<_ACEOF
17416 /* confdefs.h. */
17417 _ACEOF
17418 cat confdefs.h >>conftest.$ac_ext
17419 cat >>conftest.$ac_ext <<_ACEOF
17420 /* end confdefs.h. */
17421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17423 #define $ac_func innocuous_$ac_func
17425 /* System header to define __stub macros and hopefully few prototypes,
17426 which can conflict with char $ac_func (); below.
17427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17428 <limits.h> exists even on freestanding compilers. */
17430 #ifdef __STDC__
17431 # include <limits.h>
17432 #else
17433 # include <assert.h>
17434 #endif
17436 #undef $ac_func
17438 /* Override any GCC internal prototype to avoid an error.
17439 Use char because int might match the return type of a GCC
17440 builtin and then its argument prototype would still apply. */
17441 #ifdef __cplusplus
17442 extern "C"
17443 #endif
17444 char $ac_func ();
17445 /* The GNU C library defines this for functions which it implements
17446 to always fail with ENOSYS. Some functions are actually named
17447 something starting with __ and the normal name is an alias. */
17448 #if defined __stub_$ac_func || defined __stub___$ac_func
17449 choke me
17450 #endif
17453 main ()
17455 return $ac_func ();
17457 return 0;
17459 _ACEOF
17460 rm -f conftest.$ac_objext conftest$ac_exeext
17461 if { (ac_try="$ac_link"
17462 case "(($ac_try" in
17463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17464 *) ac_try_echo=$ac_try;;
17465 esac
17466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17467 (eval "$ac_link") 2>conftest.er1
17468 ac_status=$?
17469 grep -v '^ *+' conftest.er1 >conftest.err
17470 rm -f conftest.er1
17471 cat conftest.err >&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); } &&
17474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17475 { (case "(($ac_try" in
17476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17477 *) ac_try_echo=$ac_try;;
17478 esac
17479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17480 (eval "$ac_try") 2>&5
17481 ac_status=$?
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); }; } &&
17484 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17494 eval "$as_ac_var=yes"
17495 else
17496 echo "$as_me: failed program was:" >&5
17497 sed 's/^/| /' conftest.$ac_ext >&5
17499 eval "$as_ac_var=no"
17502 rm -f core conftest.err conftest.$ac_objext \
17503 conftest$ac_exeext conftest.$ac_ext
17505 ac_res=`eval echo '${'$as_ac_var'}'`
17506 { echo "$as_me:$LINENO: result: $ac_res" >&5
17507 echo "${ECHO_T}$ac_res" >&6; }
17508 if test `eval echo '${'$as_ac_var'}'` = yes; then
17509 cat >>confdefs.h <<_ACEOF
17510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17511 _ACEOF
17514 done
17521 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17524 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17526 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17527 echo $ECHO_N "(cached) $ECHO_C" >&6
17528 else
17529 cat >conftest.$ac_ext <<_ACEOF
17530 /* confdefs.h. */
17531 _ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h. */
17535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17537 #define $ac_func innocuous_$ac_func
17539 /* System header to define __stub macros and hopefully few prototypes,
17540 which can conflict with char $ac_func (); below.
17541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17542 <limits.h> exists even on freestanding compilers. */
17544 #ifdef __STDC__
17545 # include <limits.h>
17546 #else
17547 # include <assert.h>
17548 #endif
17550 #undef $ac_func
17552 /* Override any GCC internal prototype to avoid an error.
17553 Use char because int might match the return type of a GCC
17554 builtin and then its argument prototype would still apply. */
17555 #ifdef __cplusplus
17556 extern "C"
17557 #endif
17558 char $ac_func ();
17559 /* The GNU C library defines this for functions which it implements
17560 to always fail with ENOSYS. Some functions are actually named
17561 something starting with __ and the normal name is an alias. */
17562 #if defined __stub_$ac_func || defined __stub___$ac_func
17563 choke me
17564 #endif
17567 main ()
17569 return $ac_func ();
17571 return 0;
17573 _ACEOF
17574 rm -f conftest.$ac_objext conftest$ac_exeext
17575 if { (ac_try="$ac_link"
17576 case "(($ac_try" in
17577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17578 *) ac_try_echo=$ac_try;;
17579 esac
17580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17581 (eval "$ac_link") 2>conftest.er1
17582 ac_status=$?
17583 grep -v '^ *+' conftest.er1 >conftest.err
17584 rm -f conftest.er1
17585 cat conftest.err >&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); } &&
17588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17589 { (case "(($ac_try" in
17590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17591 *) ac_try_echo=$ac_try;;
17592 esac
17593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17594 (eval "$ac_try") 2>&5
17595 ac_status=$?
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); }; } &&
17598 { ac_try='test -s conftest$ac_exeext'
17599 { (case "(($ac_try" in
17600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17601 *) ac_try_echo=$ac_try;;
17602 esac
17603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17604 (eval "$ac_try") 2>&5
17605 ac_status=$?
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; }; then
17608 eval "$as_ac_var=yes"
17609 else
17610 echo "$as_me: failed program was:" >&5
17611 sed 's/^/| /' conftest.$ac_ext >&5
17613 eval "$as_ac_var=no"
17616 rm -f core conftest.err conftest.$ac_objext \
17617 conftest$ac_exeext conftest.$ac_ext
17619 ac_res=`eval echo '${'$as_ac_var'}'`
17620 { echo "$as_me:$LINENO: result: $ac_res" >&5
17621 echo "${ECHO_T}$ac_res" >&6; }
17622 if test `eval echo '${'$as_ac_var'}'` = yes; then
17623 cat >>confdefs.h <<_ACEOF
17624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17625 _ACEOF
17628 done
17633 for ac_func in isatty mkdtemp mkstemp
17635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17639 echo $ECHO_N "(cached) $ECHO_C" >&6
17640 else
17641 cat >conftest.$ac_ext <<_ACEOF
17642 /* confdefs.h. */
17643 _ACEOF
17644 cat confdefs.h >>conftest.$ac_ext
17645 cat >>conftest.$ac_ext <<_ACEOF
17646 /* end confdefs.h. */
17647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17649 #define $ac_func innocuous_$ac_func
17651 /* System header to define __stub macros and hopefully few prototypes,
17652 which can conflict with char $ac_func (); below.
17653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17654 <limits.h> exists even on freestanding compilers. */
17656 #ifdef __STDC__
17657 # include <limits.h>
17658 #else
17659 # include <assert.h>
17660 #endif
17662 #undef $ac_func
17664 /* Override any GCC internal prototype to avoid an error.
17665 Use char because int might match the return type of a GCC
17666 builtin and then its argument prototype would still apply. */
17667 #ifdef __cplusplus
17668 extern "C"
17669 #endif
17670 char $ac_func ();
17671 /* The GNU C library defines this for functions which it implements
17672 to always fail with ENOSYS. Some functions are actually named
17673 something starting with __ and the normal name is an alias. */
17674 #if defined __stub_$ac_func || defined __stub___$ac_func
17675 choke me
17676 #endif
17679 main ()
17681 return $ac_func ();
17683 return 0;
17685 _ACEOF
17686 rm -f conftest.$ac_objext conftest$ac_exeext
17687 if { (ac_try="$ac_link"
17688 case "(($ac_try" in
17689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17690 *) ac_try_echo=$ac_try;;
17691 esac
17692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17693 (eval "$ac_link") 2>conftest.er1
17694 ac_status=$?
17695 grep -v '^ *+' conftest.er1 >conftest.err
17696 rm -f conftest.er1
17697 cat conftest.err >&5
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); } &&
17700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17701 { (case "(($ac_try" in
17702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17703 *) ac_try_echo=$ac_try;;
17704 esac
17705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17706 (eval "$ac_try") 2>&5
17707 ac_status=$?
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); }; } &&
17710 { ac_try='test -s conftest$ac_exeext'
17711 { (case "(($ac_try" in
17712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17713 *) ac_try_echo=$ac_try;;
17714 esac
17715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17716 (eval "$ac_try") 2>&5
17717 ac_status=$?
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; }; then
17720 eval "$as_ac_var=yes"
17721 else
17722 echo "$as_me: failed program was:" >&5
17723 sed 's/^/| /' conftest.$ac_ext >&5
17725 eval "$as_ac_var=no"
17728 rm -f core conftest.err conftest.$ac_objext \
17729 conftest$ac_exeext conftest.$ac_ext
17731 ac_res=`eval echo '${'$as_ac_var'}'`
17732 { echo "$as_me:$LINENO: result: $ac_res" >&5
17733 echo "${ECHO_T}$ac_res" >&6; }
17734 if test `eval echo '${'$as_ac_var'}'` = yes; then
17735 cat >>confdefs.h <<_ACEOF
17736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17737 _ACEOF
17740 done
17747 for ac_func in mktemp realpath sbrk setrlimit strdup
17749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17753 echo $ECHO_N "(cached) $ECHO_C" >&6
17754 else
17755 cat >conftest.$ac_ext <<_ACEOF
17756 /* confdefs.h. */
17757 _ACEOF
17758 cat confdefs.h >>conftest.$ac_ext
17759 cat >>conftest.$ac_ext <<_ACEOF
17760 /* end confdefs.h. */
17761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17763 #define $ac_func innocuous_$ac_func
17765 /* System header to define __stub macros and hopefully few prototypes,
17766 which can conflict with char $ac_func (); below.
17767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17768 <limits.h> exists even on freestanding compilers. */
17770 #ifdef __STDC__
17771 # include <limits.h>
17772 #else
17773 # include <assert.h>
17774 #endif
17776 #undef $ac_func
17778 /* Override any GCC internal prototype to avoid an error.
17779 Use char because int might match the return type of a GCC
17780 builtin and then its argument prototype would still apply. */
17781 #ifdef __cplusplus
17782 extern "C"
17783 #endif
17784 char $ac_func ();
17785 /* The GNU C library defines this for functions which it implements
17786 to always fail with ENOSYS. Some functions are actually named
17787 something starting with __ and the normal name is an alias. */
17788 #if defined __stub_$ac_func || defined __stub___$ac_func
17789 choke me
17790 #endif
17793 main ()
17795 return $ac_func ();
17797 return 0;
17799 _ACEOF
17800 rm -f conftest.$ac_objext conftest$ac_exeext
17801 if { (ac_try="$ac_link"
17802 case "(($ac_try" in
17803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17804 *) ac_try_echo=$ac_try;;
17805 esac
17806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17807 (eval "$ac_link") 2>conftest.er1
17808 ac_status=$?
17809 grep -v '^ *+' conftest.er1 >conftest.err
17810 rm -f conftest.er1
17811 cat conftest.err >&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); } &&
17814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17815 { (case "(($ac_try" in
17816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17817 *) ac_try_echo=$ac_try;;
17818 esac
17819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17820 (eval "$ac_try") 2>&5
17821 ac_status=$?
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; } &&
17824 { ac_try='test -s conftest$ac_exeext'
17825 { (case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17828 esac
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830 (eval "$ac_try") 2>&5
17831 ac_status=$?
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; }; then
17834 eval "$as_ac_var=yes"
17835 else
17836 echo "$as_me: failed program was:" >&5
17837 sed 's/^/| /' conftest.$ac_ext >&5
17839 eval "$as_ac_var=no"
17842 rm -f core conftest.err conftest.$ac_objext \
17843 conftest$ac_exeext conftest.$ac_ext
17845 ac_res=`eval echo '${'$as_ac_var'}'`
17846 { echo "$as_me:$LINENO: result: $ac_res" >&5
17847 echo "${ECHO_T}$ac_res" >&6; }
17848 if test `eval echo '${'$as_ac_var'}'` = yes; then
17849 cat >>confdefs.h <<_ACEOF
17850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17851 _ACEOF
17854 done
17860 for ac_func in strerror strerror_r strerror_s setenv
17862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17866 echo $ECHO_N "(cached) $ECHO_C" >&6
17867 else
17868 cat >conftest.$ac_ext <<_ACEOF
17869 /* confdefs.h. */
17870 _ACEOF
17871 cat confdefs.h >>conftest.$ac_ext
17872 cat >>conftest.$ac_ext <<_ACEOF
17873 /* end confdefs.h. */
17874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17876 #define $ac_func innocuous_$ac_func
17878 /* System header to define __stub macros and hopefully few prototypes,
17879 which can conflict with char $ac_func (); below.
17880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17881 <limits.h> exists even on freestanding compilers. */
17883 #ifdef __STDC__
17884 # include <limits.h>
17885 #else
17886 # include <assert.h>
17887 #endif
17889 #undef $ac_func
17891 /* Override any GCC internal prototype to avoid an error.
17892 Use char because int might match the return type of a GCC
17893 builtin and then its argument prototype would still apply. */
17894 #ifdef __cplusplus
17895 extern "C"
17896 #endif
17897 char $ac_func ();
17898 /* The GNU C library defines this for functions which it implements
17899 to always fail with ENOSYS. Some functions are actually named
17900 something starting with __ and the normal name is an alias. */
17901 #if defined __stub_$ac_func || defined __stub___$ac_func
17902 choke me
17903 #endif
17906 main ()
17908 return $ac_func ();
17910 return 0;
17912 _ACEOF
17913 rm -f conftest.$ac_objext conftest$ac_exeext
17914 if { (ac_try="$ac_link"
17915 case "(($ac_try" in
17916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17917 *) ac_try_echo=$ac_try;;
17918 esac
17919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17920 (eval "$ac_link") 2>conftest.er1
17921 ac_status=$?
17922 grep -v '^ *+' conftest.er1 >conftest.err
17923 rm -f conftest.er1
17924 cat conftest.err >&5
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); } &&
17927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17928 { (case "(($ac_try" in
17929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930 *) ac_try_echo=$ac_try;;
17931 esac
17932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17933 (eval "$ac_try") 2>&5
17934 ac_status=$?
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); }; } &&
17937 { ac_try='test -s conftest$ac_exeext'
17938 { (case "(($ac_try" in
17939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17940 *) ac_try_echo=$ac_try;;
17941 esac
17942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17943 (eval "$ac_try") 2>&5
17944 ac_status=$?
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); }; }; then
17947 eval "$as_ac_var=yes"
17948 else
17949 echo "$as_me: failed program was:" >&5
17950 sed 's/^/| /' conftest.$ac_ext >&5
17952 eval "$as_ac_var=no"
17955 rm -f core conftest.err conftest.$ac_objext \
17956 conftest$ac_exeext conftest.$ac_ext
17958 ac_res=`eval echo '${'$as_ac_var'}'`
17959 { echo "$as_me:$LINENO: result: $ac_res" >&5
17960 echo "${ECHO_T}$ac_res" >&6; }
17961 if test `eval echo '${'$as_ac_var'}'` = yes; then
17962 cat >>confdefs.h <<_ACEOF
17963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17964 _ACEOF
17967 done
17973 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17976 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17978 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17979 echo $ECHO_N "(cached) $ECHO_C" >&6
17980 else
17981 cat >conftest.$ac_ext <<_ACEOF
17982 /* confdefs.h. */
17983 _ACEOF
17984 cat confdefs.h >>conftest.$ac_ext
17985 cat >>conftest.$ac_ext <<_ACEOF
17986 /* end confdefs.h. */
17987 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17989 #define $ac_func innocuous_$ac_func
17991 /* System header to define __stub macros and hopefully few prototypes,
17992 which can conflict with char $ac_func (); below.
17993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17994 <limits.h> exists even on freestanding compilers. */
17996 #ifdef __STDC__
17997 # include <limits.h>
17998 #else
17999 # include <assert.h>
18000 #endif
18002 #undef $ac_func
18004 /* Override any GCC internal prototype to avoid an error.
18005 Use char because int might match the return type of a GCC
18006 builtin and then its argument prototype would still apply. */
18007 #ifdef __cplusplus
18008 extern "C"
18009 #endif
18010 char $ac_func ();
18011 /* The GNU C library defines this for functions which it implements
18012 to always fail with ENOSYS. Some functions are actually named
18013 something starting with __ and the normal name is an alias. */
18014 #if defined __stub_$ac_func || defined __stub___$ac_func
18015 choke me
18016 #endif
18019 main ()
18021 return $ac_func ();
18023 return 0;
18025 _ACEOF
18026 rm -f conftest.$ac_objext conftest$ac_exeext
18027 if { (ac_try="$ac_link"
18028 case "(($ac_try" in
18029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18030 *) ac_try_echo=$ac_try;;
18031 esac
18032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18033 (eval "$ac_link") 2>conftest.er1
18034 ac_status=$?
18035 grep -v '^ *+' conftest.er1 >conftest.err
18036 rm -f conftest.er1
18037 cat conftest.err >&5
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); } &&
18040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18041 { (case "(($ac_try" in
18042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18043 *) ac_try_echo=$ac_try;;
18044 esac
18045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18046 (eval "$ac_try") 2>&5
18047 ac_status=$?
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); }; } &&
18050 { ac_try='test -s conftest$ac_exeext'
18051 { (case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18054 esac
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_try") 2>&5
18057 ac_status=$?
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); }; }; then
18060 eval "$as_ac_var=yes"
18061 else
18062 echo "$as_me: failed program was:" >&5
18063 sed 's/^/| /' conftest.$ac_ext >&5
18065 eval "$as_ac_var=no"
18068 rm -f core conftest.err conftest.$ac_objext \
18069 conftest$ac_exeext conftest.$ac_ext
18071 ac_res=`eval echo '${'$as_ac_var'}'`
18072 { echo "$as_me:$LINENO: result: $ac_res" >&5
18073 echo "${ECHO_T}$ac_res" >&6; }
18074 if test `eval echo '${'$as_ac_var'}'` = yes; then
18075 cat >>confdefs.h <<_ACEOF
18076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18077 _ACEOF
18080 done
18086 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18089 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18091 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18092 echo $ECHO_N "(cached) $ECHO_C" >&6
18093 else
18094 cat >conftest.$ac_ext <<_ACEOF
18095 /* confdefs.h. */
18096 _ACEOF
18097 cat confdefs.h >>conftest.$ac_ext
18098 cat >>conftest.$ac_ext <<_ACEOF
18099 /* end confdefs.h. */
18100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18102 #define $ac_func innocuous_$ac_func
18104 /* System header to define __stub macros and hopefully few prototypes,
18105 which can conflict with char $ac_func (); below.
18106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18107 <limits.h> exists even on freestanding compilers. */
18109 #ifdef __STDC__
18110 # include <limits.h>
18111 #else
18112 # include <assert.h>
18113 #endif
18115 #undef $ac_func
18117 /* Override any GCC internal prototype to avoid an error.
18118 Use char because int might match the return type of a GCC
18119 builtin and then its argument prototype would still apply. */
18120 #ifdef __cplusplus
18121 extern "C"
18122 #endif
18123 char $ac_func ();
18124 /* The GNU C library defines this for functions which it implements
18125 to always fail with ENOSYS. Some functions are actually named
18126 something starting with __ and the normal name is an alias. */
18127 #if defined __stub_$ac_func || defined __stub___$ac_func
18128 choke me
18129 #endif
18132 main ()
18134 return $ac_func ();
18136 return 0;
18138 _ACEOF
18139 rm -f conftest.$ac_objext conftest$ac_exeext
18140 if { (ac_try="$ac_link"
18141 case "(($ac_try" in
18142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18143 *) ac_try_echo=$ac_try;;
18144 esac
18145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18146 (eval "$ac_link") 2>conftest.er1
18147 ac_status=$?
18148 grep -v '^ *+' conftest.er1 >conftest.err
18149 rm -f conftest.er1
18150 cat conftest.err >&5
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); } &&
18153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18154 { (case "(($ac_try" in
18155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156 *) ac_try_echo=$ac_try;;
18157 esac
18158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18159 (eval "$ac_try") 2>&5
18160 ac_status=$?
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; } &&
18163 { ac_try='test -s conftest$ac_exeext'
18164 { (case "(($ac_try" in
18165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18167 esac
18168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169 (eval "$ac_try") 2>&5
18170 ac_status=$?
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); }; }; then
18173 eval "$as_ac_var=yes"
18174 else
18175 echo "$as_me: failed program was:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18178 eval "$as_ac_var=no"
18181 rm -f core conftest.err conftest.$ac_objext \
18182 conftest$ac_exeext conftest.$ac_ext
18184 ac_res=`eval echo '${'$as_ac_var'}'`
18185 { echo "$as_me:$LINENO: result: $ac_res" >&5
18186 echo "${ECHO_T}$ac_res" >&6; }
18187 if test `eval echo '${'$as_ac_var'}'` = yes; then
18188 cat >>confdefs.h <<_ACEOF
18189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18190 _ACEOF
18193 done
18195 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18196 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18197 if test "${llvm_cv_c_printf_a+set}" = set; then
18198 echo $ECHO_N "(cached) $ECHO_C" >&6
18199 else
18200 ac_ext=c
18201 ac_cpp='$CPP $CPPFLAGS'
18202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18206 if test "$cross_compiling" = yes; then
18207 llvmac_cv_c_printf_a=no
18208 else
18209 cat >conftest.$ac_ext <<_ACEOF
18211 /* confdefs.h. */
18212 _ACEOF
18213 cat confdefs.h >>conftest.$ac_ext
18214 cat >>conftest.$ac_ext <<_ACEOF
18215 /* end confdefs.h. */
18217 #include <stdio.h>
18218 #include <stdlib.h>
18221 main ()
18224 volatile double A, B;
18225 char Buffer[100];
18226 A = 1;
18227 A /= 10.0;
18228 sprintf(Buffer, "%a", A);
18229 B = atof(Buffer);
18230 if (A != B)
18231 return (1);
18232 if (A != 0x1.999999999999ap-4)
18233 return (1);
18234 return (0);
18236 return 0;
18238 _ACEOF
18239 rm -f conftest$ac_exeext
18240 if { (ac_try="$ac_link"
18241 case "(($ac_try" in
18242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243 *) ac_try_echo=$ac_try;;
18244 esac
18245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18246 (eval "$ac_link") 2>&5
18247 ac_status=$?
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18250 { (case "(($ac_try" in
18251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18252 *) ac_try_echo=$ac_try;;
18253 esac
18254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18255 (eval "$ac_try") 2>&5
18256 ac_status=$?
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); }; }; then
18259 llvm_cv_c_printf_a=yes
18260 else
18261 echo "$as_me: program exited with status $ac_status" >&5
18262 echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18265 ( exit $ac_status )
18266 llvmac_cv_c_printf_a=no
18268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18272 ac_ext=c
18273 ac_cpp='$CPP $CPPFLAGS'
18274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18279 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18280 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18281 if test "$llvm_cv_c_printf_a" = "yes"; then
18283 cat >>confdefs.h <<\_ACEOF
18284 #define HAVE_PRINTF_A 1
18285 _ACEOF
18290 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18291 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18292 if test "${ac_cv_func_rand48+set}" = set; then
18293 echo $ECHO_N "(cached) $ECHO_C" >&6
18294 else
18295 ac_ext=cpp
18296 ac_cpp='$CXXCPP $CPPFLAGS'
18297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18301 cat >conftest.$ac_ext <<_ACEOF
18302 /* confdefs.h. */
18303 _ACEOF
18304 cat confdefs.h >>conftest.$ac_ext
18305 cat >>conftest.$ac_ext <<_ACEOF
18306 /* end confdefs.h. */
18307 #include <stdlib.h>
18309 main ()
18311 srand48(0);lrand48();drand48();
18313 return 0;
18315 _ACEOF
18316 rm -f conftest.$ac_objext
18317 if { (ac_try="$ac_compile"
18318 case "(($ac_try" in
18319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18320 *) ac_try_echo=$ac_try;;
18321 esac
18322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18323 (eval "$ac_compile") 2>conftest.er1
18324 ac_status=$?
18325 grep -v '^ *+' conftest.er1 >conftest.err
18326 rm -f conftest.er1
18327 cat conftest.err >&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); } &&
18330 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18331 { (case "(($ac_try" in
18332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18333 *) ac_try_echo=$ac_try;;
18334 esac
18335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18336 (eval "$ac_try") 2>&5
18337 ac_status=$?
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; } &&
18340 { ac_try='test -s conftest.$ac_objext'
18341 { (case "(($ac_try" in
18342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18343 *) ac_try_echo=$ac_try;;
18344 esac
18345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18346 (eval "$ac_try") 2>&5
18347 ac_status=$?
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); }; }; then
18350 ac_cv_func_rand48=yes
18351 else
18352 echo "$as_me: failed program was:" >&5
18353 sed 's/^/| /' conftest.$ac_ext >&5
18355 ac_cv_func_rand48=no
18358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18359 ac_ext=c
18360 ac_cpp='$CPP $CPPFLAGS'
18361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18366 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18367 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18369 if test "$ac_cv_func_rand48" = "yes" ; then
18371 cat >>confdefs.h <<\_ACEOF
18372 #define HAVE_RAND48 1
18373 _ACEOF
18379 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18380 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18381 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18382 echo $ECHO_N "(cached) $ECHO_C" >&6
18383 else
18384 ac_ext=cpp
18385 ac_cpp='$CXXCPP $CPPFLAGS'
18386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18390 cat >conftest.$ac_ext <<_ACEOF
18391 /* confdefs.h. */
18392 _ACEOF
18393 cat confdefs.h >>conftest.$ac_ext
18394 cat >>conftest.$ac_ext <<_ACEOF
18395 /* end confdefs.h. */
18396 #include <math.h>
18398 main ()
18400 float f; isnan(f);
18402 return 0;
18404 _ACEOF
18405 rm -f conftest.$ac_objext
18406 if { (ac_try="$ac_compile"
18407 case "(($ac_try" in
18408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18409 *) ac_try_echo=$ac_try;;
18410 esac
18411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18412 (eval "$ac_compile") 2>conftest.er1
18413 ac_status=$?
18414 grep -v '^ *+' conftest.er1 >conftest.err
18415 rm -f conftest.er1
18416 cat conftest.err >&5
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); } &&
18419 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18420 { (case "(($ac_try" in
18421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422 *) ac_try_echo=$ac_try;;
18423 esac
18424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18425 (eval "$ac_try") 2>&5
18426 ac_status=$?
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; } &&
18429 { ac_try='test -s conftest.$ac_objext'
18430 { (case "(($ac_try" in
18431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18432 *) ac_try_echo=$ac_try;;
18433 esac
18434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18435 (eval "$ac_try") 2>&5
18436 ac_status=$?
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); }; }; then
18439 ac_cv_func_isnan_in_math_h=yes
18440 else
18441 echo "$as_me: failed program was:" >&5
18442 sed 's/^/| /' conftest.$ac_ext >&5
18444 ac_cv_func_isnan_in_math_h=no
18447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18448 ac_ext=c
18449 ac_cpp='$CPP $CPPFLAGS'
18450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18455 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18456 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18459 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18461 cat >>confdefs.h <<\_ACEOF
18462 #define HAVE_ISNAN_IN_MATH_H 1
18463 _ACEOF
18467 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18468 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18469 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18470 echo $ECHO_N "(cached) $ECHO_C" >&6
18471 else
18472 ac_ext=cpp
18473 ac_cpp='$CXXCPP $CPPFLAGS'
18474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18478 cat >conftest.$ac_ext <<_ACEOF
18479 /* confdefs.h. */
18480 _ACEOF
18481 cat confdefs.h >>conftest.$ac_ext
18482 cat >>conftest.$ac_ext <<_ACEOF
18483 /* end confdefs.h. */
18484 #include <cmath>
18486 main ()
18488 float f; isnan(f);
18490 return 0;
18492 _ACEOF
18493 rm -f conftest.$ac_objext
18494 if { (ac_try="$ac_compile"
18495 case "(($ac_try" in
18496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18497 *) ac_try_echo=$ac_try;;
18498 esac
18499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18500 (eval "$ac_compile") 2>conftest.er1
18501 ac_status=$?
18502 grep -v '^ *+' conftest.er1 >conftest.err
18503 rm -f conftest.er1
18504 cat conftest.err >&5
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); } &&
18507 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18508 { (case "(($ac_try" in
18509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510 *) ac_try_echo=$ac_try;;
18511 esac
18512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513 (eval "$ac_try") 2>&5
18514 ac_status=$?
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); }; } &&
18517 { ac_try='test -s conftest.$ac_objext'
18518 { (case "(($ac_try" in
18519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18520 *) ac_try_echo=$ac_try;;
18521 esac
18522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18523 (eval "$ac_try") 2>&5
18524 ac_status=$?
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); }; }; then
18527 ac_cv_func_isnan_in_cmath=yes
18528 else
18529 echo "$as_me: failed program was:" >&5
18530 sed 's/^/| /' conftest.$ac_ext >&5
18532 ac_cv_func_isnan_in_cmath=no
18535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18536 ac_ext=c
18537 ac_cpp='$CPP $CPPFLAGS'
18538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18543 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18544 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18546 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18548 cat >>confdefs.h <<\_ACEOF
18549 #define HAVE_ISNAN_IN_CMATH 1
18550 _ACEOF
18554 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18555 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18556 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18557 echo $ECHO_N "(cached) $ECHO_C" >&6
18558 else
18559 ac_ext=cpp
18560 ac_cpp='$CXXCPP $CPPFLAGS'
18561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18565 cat >conftest.$ac_ext <<_ACEOF
18566 /* confdefs.h. */
18567 _ACEOF
18568 cat confdefs.h >>conftest.$ac_ext
18569 cat >>conftest.$ac_ext <<_ACEOF
18570 /* end confdefs.h. */
18571 #include <cmath>
18573 main ()
18575 float f; std::isnan(f);
18577 return 0;
18579 _ACEOF
18580 rm -f conftest.$ac_objext
18581 if { (ac_try="$ac_compile"
18582 case "(($ac_try" in
18583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584 *) ac_try_echo=$ac_try;;
18585 esac
18586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18587 (eval "$ac_compile") 2>conftest.er1
18588 ac_status=$?
18589 grep -v '^ *+' conftest.er1 >conftest.err
18590 rm -f conftest.er1
18591 cat conftest.err >&5
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); } &&
18594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18595 { (case "(($ac_try" in
18596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18597 *) ac_try_echo=$ac_try;;
18598 esac
18599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18600 (eval "$ac_try") 2>&5
18601 ac_status=$?
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); }; } &&
18604 { ac_try='test -s conftest.$ac_objext'
18605 { (case "(($ac_try" in
18606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18607 *) ac_try_echo=$ac_try;;
18608 esac
18609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18610 (eval "$ac_try") 2>&5
18611 ac_status=$?
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); }; }; then
18614 ac_cv_func_std_isnan_in_cmath=yes
18615 else
18616 echo "$as_me: failed program was:" >&5
18617 sed 's/^/| /' conftest.$ac_ext >&5
18619 ac_cv_func_std_isnan_in_cmath=no
18622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18623 ac_ext=c
18624 ac_cpp='$CPP $CPPFLAGS'
18625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18630 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18631 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18633 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18635 cat >>confdefs.h <<\_ACEOF
18636 #define HAVE_STD_ISNAN_IN_CMATH 1
18637 _ACEOF
18642 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18643 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18644 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18645 echo $ECHO_N "(cached) $ECHO_C" >&6
18646 else
18647 ac_ext=cpp
18648 ac_cpp='$CXXCPP $CPPFLAGS'
18649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18653 cat >conftest.$ac_ext <<_ACEOF
18654 /* confdefs.h. */
18655 _ACEOF
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h. */
18659 #include <math.h>
18661 main ()
18663 float f; isinf(f);
18665 return 0;
18667 _ACEOF
18668 rm -f conftest.$ac_objext
18669 if { (ac_try="$ac_compile"
18670 case "(($ac_try" in
18671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18672 *) ac_try_echo=$ac_try;;
18673 esac
18674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18675 (eval "$ac_compile") 2>conftest.er1
18676 ac_status=$?
18677 grep -v '^ *+' conftest.er1 >conftest.err
18678 rm -f conftest.er1
18679 cat conftest.err >&5
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); } &&
18682 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18683 { (case "(($ac_try" in
18684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18685 *) ac_try_echo=$ac_try;;
18686 esac
18687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18688 (eval "$ac_try") 2>&5
18689 ac_status=$?
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); }; } &&
18692 { ac_try='test -s conftest.$ac_objext'
18693 { (case "(($ac_try" in
18694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18695 *) ac_try_echo=$ac_try;;
18696 esac
18697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18698 (eval "$ac_try") 2>&5
18699 ac_status=$?
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); }; }; then
18702 ac_cv_func_isinf_in_math_h=yes
18703 else
18704 echo "$as_me: failed program was:" >&5
18705 sed 's/^/| /' conftest.$ac_ext >&5
18707 ac_cv_func_isinf_in_math_h=no
18710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18711 ac_ext=c
18712 ac_cpp='$CPP $CPPFLAGS'
18713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18718 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18719 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18721 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18723 cat >>confdefs.h <<\_ACEOF
18724 #define HAVE_ISINF_IN_MATH_H 1
18725 _ACEOF
18729 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18730 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18731 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18732 echo $ECHO_N "(cached) $ECHO_C" >&6
18733 else
18734 ac_ext=cpp
18735 ac_cpp='$CXXCPP $CPPFLAGS'
18736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18740 cat >conftest.$ac_ext <<_ACEOF
18741 /* confdefs.h. */
18742 _ACEOF
18743 cat confdefs.h >>conftest.$ac_ext
18744 cat >>conftest.$ac_ext <<_ACEOF
18745 /* end confdefs.h. */
18746 #include <cmath>
18748 main ()
18750 float f; isinf(f);
18752 return 0;
18754 _ACEOF
18755 rm -f conftest.$ac_objext
18756 if { (ac_try="$ac_compile"
18757 case "(($ac_try" in
18758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18759 *) ac_try_echo=$ac_try;;
18760 esac
18761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18762 (eval "$ac_compile") 2>conftest.er1
18763 ac_status=$?
18764 grep -v '^ *+' conftest.er1 >conftest.err
18765 rm -f conftest.er1
18766 cat conftest.err >&5
18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); } &&
18769 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18770 { (case "(($ac_try" in
18771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772 *) ac_try_echo=$ac_try;;
18773 esac
18774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775 (eval "$ac_try") 2>&5
18776 ac_status=$?
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); }; } &&
18779 { ac_try='test -s conftest.$ac_objext'
18780 { (case "(($ac_try" in
18781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18782 *) ac_try_echo=$ac_try;;
18783 esac
18784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18785 (eval "$ac_try") 2>&5
18786 ac_status=$?
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); }; }; then
18789 ac_cv_func_isinf_in_cmath=yes
18790 else
18791 echo "$as_me: failed program was:" >&5
18792 sed 's/^/| /' conftest.$ac_ext >&5
18794 ac_cv_func_isinf_in_cmath=no
18797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18798 ac_ext=c
18799 ac_cpp='$CPP $CPPFLAGS'
18800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18805 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18806 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18808 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18810 cat >>confdefs.h <<\_ACEOF
18811 #define HAVE_ISINF_IN_CMATH 1
18812 _ACEOF
18816 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18817 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18818 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18819 echo $ECHO_N "(cached) $ECHO_C" >&6
18820 else
18821 ac_ext=cpp
18822 ac_cpp='$CXXCPP $CPPFLAGS'
18823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18827 cat >conftest.$ac_ext <<_ACEOF
18828 /* confdefs.h. */
18829 _ACEOF
18830 cat confdefs.h >>conftest.$ac_ext
18831 cat >>conftest.$ac_ext <<_ACEOF
18832 /* end confdefs.h. */
18833 #include <cmath>
18835 main ()
18837 float f; std::isinf(f)}
18839 return 0;
18841 _ACEOF
18842 rm -f conftest.$ac_objext
18843 if { (ac_try="$ac_compile"
18844 case "(($ac_try" in
18845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18846 *) ac_try_echo=$ac_try;;
18847 esac
18848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18849 (eval "$ac_compile") 2>conftest.er1
18850 ac_status=$?
18851 grep -v '^ *+' conftest.er1 >conftest.err
18852 rm -f conftest.er1
18853 cat conftest.err >&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); } &&
18856 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18857 { (case "(($ac_try" in
18858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18859 *) ac_try_echo=$ac_try;;
18860 esac
18861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18862 (eval "$ac_try") 2>&5
18863 ac_status=$?
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); }; } &&
18866 { ac_try='test -s conftest.$ac_objext'
18867 { (case "(($ac_try" in
18868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869 *) ac_try_echo=$ac_try;;
18870 esac
18871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18872 (eval "$ac_try") 2>&5
18873 ac_status=$?
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); }; }; then
18876 ac_cv_func_std_isinf_in_cmath=yes
18877 else
18878 echo "$as_me: failed program was:" >&5
18879 sed 's/^/| /' conftest.$ac_ext >&5
18881 ac_cv_func_std_isinf_in_cmath=no
18884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18885 ac_ext=c
18886 ac_cpp='$CPP $CPPFLAGS'
18887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18892 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18893 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18895 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18897 cat >>confdefs.h <<\_ACEOF
18898 #define HAVE_STD_ISINF_IN_CMATH 1
18899 _ACEOF
18903 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18904 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18905 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18906 echo $ECHO_N "(cached) $ECHO_C" >&6
18907 else
18908 ac_ext=cpp
18909 ac_cpp='$CXXCPP $CPPFLAGS'
18910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18914 cat >conftest.$ac_ext <<_ACEOF
18915 /* confdefs.h. */
18916 _ACEOF
18917 cat confdefs.h >>conftest.$ac_ext
18918 cat >>conftest.$ac_ext <<_ACEOF
18919 /* end confdefs.h. */
18920 #include <ieeefp.h>
18922 main ()
18924 float f; finite(f);
18926 return 0;
18928 _ACEOF
18929 rm -f conftest.$ac_objext
18930 if { (ac_try="$ac_compile"
18931 case "(($ac_try" in
18932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18933 *) ac_try_echo=$ac_try;;
18934 esac
18935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18936 (eval "$ac_compile") 2>conftest.er1
18937 ac_status=$?
18938 grep -v '^ *+' conftest.er1 >conftest.err
18939 rm -f conftest.er1
18940 cat conftest.err >&5
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); } &&
18943 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18944 { (case "(($ac_try" in
18945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18946 *) ac_try_echo=$ac_try;;
18947 esac
18948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18949 (eval "$ac_try") 2>&5
18950 ac_status=$?
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); }; } &&
18953 { ac_try='test -s conftest.$ac_objext'
18954 { (case "(($ac_try" in
18955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18956 *) ac_try_echo=$ac_try;;
18957 esac
18958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18959 (eval "$ac_try") 2>&5
18960 ac_status=$?
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; }; then
18963 ac_cv_func_finite_in_ieeefp_h=yes
18964 else
18965 echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18968 ac_cv_func_finite_in_ieeefp_h=no
18971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18972 ac_ext=c
18973 ac_cpp='$CPP $CPPFLAGS'
18974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18979 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18980 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18982 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18984 cat >>confdefs.h <<\_ACEOF
18985 #define HAVE_FINITE_IN_IEEEFP_H 1
18986 _ACEOF
18992 if test "$llvm_cv_platform_type" = "Unix" ; then
18995 for ac_header in stdlib.h unistd.h
18997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18999 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19002 echo $ECHO_N "(cached) $ECHO_C" >&6
19004 ac_res=`eval echo '${'$as_ac_Header'}'`
19005 { echo "$as_me:$LINENO: result: $ac_res" >&5
19006 echo "${ECHO_T}$ac_res" >&6; }
19007 else
19008 # Is the header compilable?
19009 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19011 cat >conftest.$ac_ext <<_ACEOF
19012 /* confdefs.h. */
19013 _ACEOF
19014 cat confdefs.h >>conftest.$ac_ext
19015 cat >>conftest.$ac_ext <<_ACEOF
19016 /* end confdefs.h. */
19017 $ac_includes_default
19018 #include <$ac_header>
19019 _ACEOF
19020 rm -f conftest.$ac_objext
19021 if { (ac_try="$ac_compile"
19022 case "(($ac_try" in
19023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19024 *) ac_try_echo=$ac_try;;
19025 esac
19026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19027 (eval "$ac_compile") 2>conftest.er1
19028 ac_status=$?
19029 grep -v '^ *+' conftest.er1 >conftest.err
19030 rm -f conftest.er1
19031 cat conftest.err >&5
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); } &&
19034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19035 { (case "(($ac_try" in
19036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037 *) ac_try_echo=$ac_try;;
19038 esac
19039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19040 (eval "$ac_try") 2>&5
19041 ac_status=$?
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); }; } &&
19044 { ac_try='test -s conftest.$ac_objext'
19045 { (case "(($ac_try" in
19046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19047 *) ac_try_echo=$ac_try;;
19048 esac
19049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19050 (eval "$ac_try") 2>&5
19051 ac_status=$?
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); }; }; then
19054 ac_header_compiler=yes
19055 else
19056 echo "$as_me: failed program was:" >&5
19057 sed 's/^/| /' conftest.$ac_ext >&5
19059 ac_header_compiler=no
19062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19063 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19064 echo "${ECHO_T}$ac_header_compiler" >&6; }
19066 # Is the header present?
19067 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19069 cat >conftest.$ac_ext <<_ACEOF
19070 /* confdefs.h. */
19071 _ACEOF
19072 cat confdefs.h >>conftest.$ac_ext
19073 cat >>conftest.$ac_ext <<_ACEOF
19074 /* end confdefs.h. */
19075 #include <$ac_header>
19076 _ACEOF
19077 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
19084 ac_status=$?
19085 grep -v '^ *+' conftest.er1 >conftest.err
19086 rm -f conftest.er1
19087 cat conftest.err >&5
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); } >/dev/null; then
19090 if test -s conftest.err; then
19091 ac_cpp_err=$ac_c_preproc_warn_flag
19092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19093 else
19094 ac_cpp_err=
19096 else
19097 ac_cpp_err=yes
19099 if test -z "$ac_cpp_err"; then
19100 ac_header_preproc=yes
19101 else
19102 echo "$as_me: failed program was:" >&5
19103 sed 's/^/| /' conftest.$ac_ext >&5
19105 ac_header_preproc=no
19108 rm -f conftest.err conftest.$ac_ext
19109 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19110 echo "${ECHO_T}$ac_header_preproc" >&6; }
19112 # So? What about this header?
19113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19114 yes:no: )
19115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19118 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19119 ac_header_preproc=yes
19121 no:yes:* )
19122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19123 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19125 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19126 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19127 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19128 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19129 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19132 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19133 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19134 ( cat <<\_ASBOX
19135 ## ----------------------------------- ##
19136 ## Report this to llvmbugs@cs.uiuc.edu ##
19137 ## ----------------------------------- ##
19138 _ASBOX
19139 ) | sed "s/^/$as_me: WARNING: /" >&2
19141 esac
19142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19145 echo $ECHO_N "(cached) $ECHO_C" >&6
19146 else
19147 eval "$as_ac_Header=\$ac_header_preproc"
19149 ac_res=`eval echo '${'$as_ac_Header'}'`
19150 { echo "$as_me:$LINENO: result: $ac_res" >&5
19151 echo "${ECHO_T}$ac_res" >&6; }
19154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19155 cat >>confdefs.h <<_ACEOF
19156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19157 _ACEOF
19161 done
19164 for ac_func in getpagesize
19166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19167 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19170 echo $ECHO_N "(cached) $ECHO_C" >&6
19171 else
19172 cat >conftest.$ac_ext <<_ACEOF
19173 /* confdefs.h. */
19174 _ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h. */
19178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19180 #define $ac_func innocuous_$ac_func
19182 /* System header to define __stub macros and hopefully few prototypes,
19183 which can conflict with char $ac_func (); below.
19184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19185 <limits.h> exists even on freestanding compilers. */
19187 #ifdef __STDC__
19188 # include <limits.h>
19189 #else
19190 # include <assert.h>
19191 #endif
19193 #undef $ac_func
19195 /* Override any GCC internal prototype to avoid an error.
19196 Use char because int might match the return type of a GCC
19197 builtin and then its argument prototype would still apply. */
19198 #ifdef __cplusplus
19199 extern "C"
19200 #endif
19201 char $ac_func ();
19202 /* The GNU C library defines this for functions which it implements
19203 to always fail with ENOSYS. Some functions are actually named
19204 something starting with __ and the normal name is an alias. */
19205 #if defined __stub_$ac_func || defined __stub___$ac_func
19206 choke me
19207 #endif
19210 main ()
19212 return $ac_func ();
19214 return 0;
19216 _ACEOF
19217 rm -f conftest.$ac_objext conftest$ac_exeext
19218 if { (ac_try="$ac_link"
19219 case "(($ac_try" in
19220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19221 *) ac_try_echo=$ac_try;;
19222 esac
19223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19224 (eval "$ac_link") 2>conftest.er1
19225 ac_status=$?
19226 grep -v '^ *+' conftest.er1 >conftest.err
19227 rm -f conftest.er1
19228 cat conftest.err >&5
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); } &&
19231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19232 { (case "(($ac_try" in
19233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19234 *) ac_try_echo=$ac_try;;
19235 esac
19236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19237 (eval "$ac_try") 2>&5
19238 ac_status=$?
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); }; } &&
19241 { ac_try='test -s conftest$ac_exeext'
19242 { (case "(($ac_try" in
19243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19244 *) ac_try_echo=$ac_try;;
19245 esac
19246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19247 (eval "$ac_try") 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; }; then
19251 eval "$as_ac_var=yes"
19252 else
19253 echo "$as_me: failed program was:" >&5
19254 sed 's/^/| /' conftest.$ac_ext >&5
19256 eval "$as_ac_var=no"
19259 rm -f core conftest.err conftest.$ac_objext \
19260 conftest$ac_exeext conftest.$ac_ext
19262 ac_res=`eval echo '${'$as_ac_var'}'`
19263 { echo "$as_me:$LINENO: result: $ac_res" >&5
19264 echo "${ECHO_T}$ac_res" >&6; }
19265 if test `eval echo '${'$as_ac_var'}'` = yes; then
19266 cat >>confdefs.h <<_ACEOF
19267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19268 _ACEOF
19271 done
19273 { echo "$as_me:$LINENO: checking for working mmap" >&5
19274 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19275 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19276 echo $ECHO_N "(cached) $ECHO_C" >&6
19277 else
19278 if test "$cross_compiling" = yes; then
19279 ac_cv_func_mmap_fixed_mapped=no
19280 else
19281 cat >conftest.$ac_ext <<_ACEOF
19282 /* confdefs.h. */
19283 _ACEOF
19284 cat confdefs.h >>conftest.$ac_ext
19285 cat >>conftest.$ac_ext <<_ACEOF
19286 /* end confdefs.h. */
19287 $ac_includes_default
19288 /* malloc might have been renamed as rpl_malloc. */
19289 #undef malloc
19291 /* Thanks to Mike Haertel and Jim Avera for this test.
19292 Here is a matrix of mmap possibilities:
19293 mmap private not fixed
19294 mmap private fixed at somewhere currently unmapped
19295 mmap private fixed at somewhere already mapped
19296 mmap shared not fixed
19297 mmap shared fixed at somewhere currently unmapped
19298 mmap shared fixed at somewhere already mapped
19299 For private mappings, we should verify that changes cannot be read()
19300 back from the file, nor mmap's back from the file at a different
19301 address. (There have been systems where private was not correctly
19302 implemented like the infamous i386 svr4.0, and systems where the
19303 VM page cache was not coherent with the file system buffer cache
19304 like early versions of FreeBSD and possibly contemporary NetBSD.)
19305 For shared mappings, we should conversely verify that changes get
19306 propagated back to all the places they're supposed to be.
19308 Grep wants private fixed already mapped.
19309 The main things grep needs to know about mmap are:
19310 * does it exist and is it safe to write into the mmap'd area
19311 * how to use it (BSD variants) */
19313 #include <fcntl.h>
19314 #include <sys/mman.h>
19316 #if !STDC_HEADERS && !HAVE_STDLIB_H
19317 char *malloc ();
19318 #endif
19320 /* This mess was copied from the GNU getpagesize.h. */
19321 #if !HAVE_GETPAGESIZE
19322 /* Assume that all systems that can run configure have sys/param.h. */
19323 # if !HAVE_SYS_PARAM_H
19324 # define HAVE_SYS_PARAM_H 1
19325 # endif
19327 # ifdef _SC_PAGESIZE
19328 # define getpagesize() sysconf(_SC_PAGESIZE)
19329 # else /* no _SC_PAGESIZE */
19330 # if HAVE_SYS_PARAM_H
19331 # include <sys/param.h>
19332 # ifdef EXEC_PAGESIZE
19333 # define getpagesize() EXEC_PAGESIZE
19334 # else /* no EXEC_PAGESIZE */
19335 # ifdef NBPG
19336 # define getpagesize() NBPG * CLSIZE
19337 # ifndef CLSIZE
19338 # define CLSIZE 1
19339 # endif /* no CLSIZE */
19340 # else /* no NBPG */
19341 # ifdef NBPC
19342 # define getpagesize() NBPC
19343 # else /* no NBPC */
19344 # ifdef PAGESIZE
19345 # define getpagesize() PAGESIZE
19346 # endif /* PAGESIZE */
19347 # endif /* no NBPC */
19348 # endif /* no NBPG */
19349 # endif /* no EXEC_PAGESIZE */
19350 # else /* no HAVE_SYS_PARAM_H */
19351 # define getpagesize() 8192 /* punt totally */
19352 # endif /* no HAVE_SYS_PARAM_H */
19353 # endif /* no _SC_PAGESIZE */
19355 #endif /* no HAVE_GETPAGESIZE */
19358 main ()
19360 char *data, *data2, *data3;
19361 int i, pagesize;
19362 int fd;
19364 pagesize = getpagesize ();
19366 /* First, make a file with some known garbage in it. */
19367 data = (char *) malloc (pagesize);
19368 if (!data)
19369 return 1;
19370 for (i = 0; i < pagesize; ++i)
19371 *(data + i) = rand ();
19372 umask (0);
19373 fd = creat ("conftest.mmap", 0600);
19374 if (fd < 0)
19375 return 1;
19376 if (write (fd, data, pagesize) != pagesize)
19377 return 1;
19378 close (fd);
19380 /* Next, try to mmap the file at a fixed address which already has
19381 something else allocated at it. If we can, also make sure that
19382 we see the same garbage. */
19383 fd = open ("conftest.mmap", O_RDWR);
19384 if (fd < 0)
19385 return 1;
19386 data2 = (char *) malloc (2 * pagesize);
19387 if (!data2)
19388 return 1;
19389 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19390 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19391 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19392 return 1;
19393 for (i = 0; i < pagesize; ++i)
19394 if (*(data + i) != *(data2 + i))
19395 return 1;
19397 /* Finally, make sure that changes to the mapped area do not
19398 percolate back to the file as seen by read(). (This is a bug on
19399 some variants of i386 svr4.0.) */
19400 for (i = 0; i < pagesize; ++i)
19401 *(data2 + i) = *(data2 + i) + 1;
19402 data3 = (char *) malloc (pagesize);
19403 if (!data3)
19404 return 1;
19405 if (read (fd, data3, pagesize) != pagesize)
19406 return 1;
19407 for (i = 0; i < pagesize; ++i)
19408 if (*(data + i) != *(data3 + i))
19409 return 1;
19410 close (fd);
19411 return 0;
19413 _ACEOF
19414 rm -f conftest$ac_exeext
19415 if { (ac_try="$ac_link"
19416 case "(($ac_try" in
19417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19418 *) ac_try_echo=$ac_try;;
19419 esac
19420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19421 (eval "$ac_link") 2>&5
19422 ac_status=$?
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19425 { (case "(($ac_try" in
19426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427 *) ac_try_echo=$ac_try;;
19428 esac
19429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19430 (eval "$ac_try") 2>&5
19431 ac_status=$?
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }; }; then
19434 ac_cv_func_mmap_fixed_mapped=yes
19435 else
19436 echo "$as_me: program exited with status $ac_status" >&5
19437 echo "$as_me: failed program was:" >&5
19438 sed 's/^/| /' conftest.$ac_ext >&5
19440 ( exit $ac_status )
19441 ac_cv_func_mmap_fixed_mapped=no
19443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19448 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19449 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19450 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19452 cat >>confdefs.h <<\_ACEOF
19453 #define HAVE_MMAP 1
19454 _ACEOF
19457 rm -f conftest.mmap
19459 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19460 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19461 if test "${ac_cv_func_mmap_file+set}" = set; then
19462 echo $ECHO_N "(cached) $ECHO_C" >&6
19463 else
19464 ac_ext=c
19465 ac_cpp='$CPP $CPPFLAGS'
19466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19470 if test "$cross_compiling" = yes; then
19471 ac_cv_func_mmap_file=no
19472 else
19473 cat >conftest.$ac_ext <<_ACEOF
19475 /* confdefs.h. */
19476 _ACEOF
19477 cat confdefs.h >>conftest.$ac_ext
19478 cat >>conftest.$ac_ext <<_ACEOF
19479 /* end confdefs.h. */
19481 #include <sys/types.h>
19482 #include <sys/mman.h>
19483 #include <fcntl.h>
19486 main ()
19489 int fd;
19490 fd = creat ("foo",0777);
19491 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19492 unlink ("foo");
19493 return (fd != (int) MAP_FAILED);
19495 return 0;
19497 _ACEOF
19498 rm -f conftest$ac_exeext
19499 if { (ac_try="$ac_link"
19500 case "(($ac_try" in
19501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19502 *) ac_try_echo=$ac_try;;
19503 esac
19504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505 (eval "$ac_link") 2>&5
19506 ac_status=$?
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19509 { (case "(($ac_try" in
19510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511 *) ac_try_echo=$ac_try;;
19512 esac
19513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19514 (eval "$ac_try") 2>&5
19515 ac_status=$?
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; }; then
19518 ac_cv_func_mmap_file=yes
19519 else
19520 echo "$as_me: program exited with status $ac_status" >&5
19521 echo "$as_me: failed program was:" >&5
19522 sed 's/^/| /' conftest.$ac_ext >&5
19524 ( exit $ac_status )
19525 ac_cv_func_mmap_file=no
19527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19531 ac_ext=c
19532 ac_cpp='$CPP $CPPFLAGS'
19533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19539 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19540 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19541 if test "$ac_cv_func_mmap_file" = yes; then
19543 cat >>confdefs.h <<\_ACEOF
19544 #define HAVE_MMAP_FILE
19545 _ACEOF
19547 MMAP_FILE=yes
19551 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19552 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19553 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19554 echo $ECHO_N "(cached) $ECHO_C" >&6
19555 else
19556 if test "$llvm_cv_os_type" = "Interix" ; then
19557 ac_cv_need_dev_zero_for_mmap=yes
19558 else
19559 ac_cv_need_dev_zero_for_mmap=no
19563 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19564 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19565 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19567 cat >>confdefs.h <<\_ACEOF
19568 #define NEED_DEV_ZERO_FOR_MMAP 1
19569 _ACEOF
19573 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19574 then
19575 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19576 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19578 if test "$ac_cv_func_mmap_file" = "no"
19579 then
19580 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19581 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19585 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19586 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19587 cat >conftest.$ac_ext <<_ACEOF
19588 /* confdefs.h. */
19589 _ACEOF
19590 cat confdefs.h >>conftest.$ac_ext
19591 cat >>conftest.$ac_ext <<_ACEOF
19592 /* end confdefs.h. */
19593 int main() {
19594 volatile unsigned long val = 1;
19595 __sync_synchronize();
19596 __sync_val_compare_and_swap(&val, 1, 0);
19597 __sync_add_and_fetch(&val, 1);
19598 __sync_sub_and_fetch(&val, 1);
19599 return 0;
19602 _ACEOF
19603 rm -f conftest.$ac_objext conftest$ac_exeext
19604 if { (ac_try="$ac_link"
19605 case "(($ac_try" in
19606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19607 *) ac_try_echo=$ac_try;;
19608 esac
19609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19610 (eval "$ac_link") 2>conftest.er1
19611 ac_status=$?
19612 grep -v '^ *+' conftest.er1 >conftest.err
19613 rm -f conftest.er1
19614 cat conftest.err >&5
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); } &&
19617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19618 { (case "(($ac_try" in
19619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620 *) ac_try_echo=$ac_try;;
19621 esac
19622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623 (eval "$ac_try") 2>&5
19624 ac_status=$?
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; } &&
19627 { ac_try='test -s conftest$ac_exeext'
19628 { (case "(($ac_try" in
19629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630 *) ac_try_echo=$ac_try;;
19631 esac
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633 (eval "$ac_try") 2>&5
19634 ac_status=$?
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); }; }; then
19637 { echo "$as_me:$LINENO: result: yes" >&5
19638 echo "${ECHO_T}yes" >&6; }
19640 cat >>confdefs.h <<\_ACEOF
19641 #define LLVM_MULTITHREADED 1
19642 _ACEOF
19644 else
19645 echo "$as_me: failed program was:" >&5
19646 sed 's/^/| /' conftest.$ac_ext >&5
19648 { echo "$as_me:$LINENO: result: no" >&5
19649 echo "${ECHO_T}no" >&6; }
19651 cat >>confdefs.h <<\_ACEOF
19652 #define LLVM_MULTITHREADED 0
19653 _ACEOF
19655 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19656 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19659 rm -f core conftest.err conftest.$ac_objext \
19660 conftest$ac_exeext conftest.$ac_ext
19664 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19665 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19666 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19667 if test "${llvm_cv_linux_mixed+set}" = set; then
19668 echo $ECHO_N "(cached) $ECHO_C" >&6
19669 else
19670 ac_ext=c
19671 ac_cpp='$CPP $CPPFLAGS'
19672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19676 cat >conftest.$ac_ext <<_ACEOF
19677 /* confdefs.h. */
19678 _ACEOF
19679 cat confdefs.h >>conftest.$ac_ext
19680 cat >>conftest.$ac_ext <<_ACEOF
19681 /* end confdefs.h. */
19682 #ifndef __x86_64__
19683 error: Not x86-64 even if uname says so!
19684 #endif
19687 main ()
19691 return 0;
19693 _ACEOF
19694 rm -f conftest.$ac_objext
19695 if { (ac_try="$ac_compile"
19696 case "(($ac_try" in
19697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698 *) ac_try_echo=$ac_try;;
19699 esac
19700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701 (eval "$ac_compile") 2>conftest.er1
19702 ac_status=$?
19703 grep -v '^ *+' conftest.er1 >conftest.err
19704 rm -f conftest.er1
19705 cat conftest.err >&5
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); } &&
19708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19709 { (case "(($ac_try" in
19710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711 *) ac_try_echo=$ac_try;;
19712 esac
19713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714 (eval "$ac_try") 2>&5
19715 ac_status=$?
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); }; } &&
19718 { ac_try='test -s conftest.$ac_objext'
19719 { (case "(($ac_try" in
19720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721 *) ac_try_echo=$ac_try;;
19722 esac
19723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19724 (eval "$ac_try") 2>&5
19725 ac_status=$?
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); }; }; then
19728 llvm_cv_linux_mixed=no
19729 else
19730 echo "$as_me: failed program was:" >&5
19731 sed 's/^/| /' conftest.$ac_ext >&5
19733 llvm_cv_linux_mixed=yes
19736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19737 ac_ext=c
19738 ac_cpp='$CPP $CPPFLAGS'
19739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19745 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19746 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19748 if test "$llvm_cv_linux_mixed" = "yes"; then
19749 llvm_cv_target_arch="x86"
19750 ARCH="x86"
19755 for ac_func in __dso_handle
19757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19758 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19760 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19762 else
19763 cat >conftest.$ac_ext <<_ACEOF
19764 /* confdefs.h. */
19765 _ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h. */
19769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19771 #define $ac_func innocuous_$ac_func
19773 /* System header to define __stub macros and hopefully few prototypes,
19774 which can conflict with char $ac_func (); below.
19775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19776 <limits.h> exists even on freestanding compilers. */
19778 #ifdef __STDC__
19779 # include <limits.h>
19780 #else
19781 # include <assert.h>
19782 #endif
19784 #undef $ac_func
19786 /* Override any GCC internal prototype to avoid an error.
19787 Use char because int might match the return type of a GCC
19788 builtin and then its argument prototype would still apply. */
19789 #ifdef __cplusplus
19790 extern "C"
19791 #endif
19792 char $ac_func ();
19793 /* The GNU C library defines this for functions which it implements
19794 to always fail with ENOSYS. Some functions are actually named
19795 something starting with __ and the normal name is an alias. */
19796 #if defined __stub_$ac_func || defined __stub___$ac_func
19797 choke me
19798 #endif
19801 main ()
19803 return $ac_func ();
19805 return 0;
19807 _ACEOF
19808 rm -f conftest.$ac_objext conftest$ac_exeext
19809 if { (ac_try="$ac_link"
19810 case "(($ac_try" in
19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812 *) ac_try_echo=$ac_try;;
19813 esac
19814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815 (eval "$ac_link") 2>conftest.er1
19816 ac_status=$?
19817 grep -v '^ *+' conftest.er1 >conftest.err
19818 rm -f conftest.er1
19819 cat conftest.err >&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); } &&
19822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19823 { (case "(($ac_try" in
19824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19825 *) ac_try_echo=$ac_try;;
19826 esac
19827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19828 (eval "$ac_try") 2>&5
19829 ac_status=$?
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; } &&
19832 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19842 eval "$as_ac_var=yes"
19843 else
19844 echo "$as_me: failed program was:" >&5
19845 sed 's/^/| /' conftest.$ac_ext >&5
19847 eval "$as_ac_var=no"
19850 rm -f core conftest.err conftest.$ac_objext \
19851 conftest$ac_exeext conftest.$ac_ext
19853 ac_res=`eval echo '${'$as_ac_var'}'`
19854 { echo "$as_me:$LINENO: result: $ac_res" >&5
19855 echo "${ECHO_T}$ac_res" >&6; }
19856 if test `eval echo '${'$as_ac_var'}'` = yes; then
19857 cat >>confdefs.h <<_ACEOF
19858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19859 _ACEOF
19862 done
19865 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19866 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19867 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19868 echo $ECHO_N "(cached) $ECHO_C" >&6
19869 else
19870 llvm_cv_llvmgcc_sanity="no"
19871 if test -x "$LLVMGCC" ; then
19872 cp /dev/null conftest.c
19873 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19874 grep 'target datalayout =' > /dev/null 2>&1
19875 if test $? -eq 0 ; then
19876 llvm_cv_llvmgcc_sanity="yes"
19878 rm conftest.c
19881 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19882 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
19884 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
19885 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19886 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
19887 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19888 LLVMCC1=$llvmcc1path
19890 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19891 LLVMCC1PLUS=$llvmcc1pluspath
19893 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19894 LLVMGCCDIR=$llvmgccdir
19896 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
19897 LLVMGCC_LANGS=$llvmgcclangs
19899 { echo "$as_me:$LINENO: result: ok" >&5
19900 echo "${ECHO_T}ok" >&6; }
19903 SHLIBEXT=$libltdl_cv_shlibext
19906 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
19909 # Translate the various configuration directories and other basic
19910 # information into substitutions that will end up in Makefile.config.in
19911 # that these configured values can be used by the makefiles
19912 if test "${prefix}" = "NONE" ; then
19913 prefix="/usr/local"
19915 eval LLVM_PREFIX="${prefix}";
19916 eval LLVM_BINDIR="${prefix}/bin";
19917 eval LLVM_LIBDIR="${prefix}/lib";
19918 eval LLVM_DATADIR="${prefix}/share/llvm";
19919 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
19920 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19921 eval LLVM_INCLUDEDIR="${prefix}/include";
19922 eval LLVM_INFODIR="${prefix}/info";
19923 eval LLVM_MANDIR="${prefix}/man";
19924 LLVM_CONFIGTIME=`date`
19936 # Place the various directores into the config.h file as #defines so that we
19937 # can know about the installation paths within LLVM.
19939 cat >>confdefs.h <<_ACEOF
19940 #define LLVM_PREFIX "$LLVM_PREFIX"
19941 _ACEOF
19944 cat >>confdefs.h <<_ACEOF
19945 #define LLVM_BINDIR "$LLVM_BINDIR"
19946 _ACEOF
19949 cat >>confdefs.h <<_ACEOF
19950 #define LLVM_LIBDIR "$LLVM_LIBDIR"
19951 _ACEOF
19954 cat >>confdefs.h <<_ACEOF
19955 #define LLVM_DATADIR "$LLVM_DATADIR"
19956 _ACEOF
19959 cat >>confdefs.h <<_ACEOF
19960 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19961 _ACEOF
19964 cat >>confdefs.h <<_ACEOF
19965 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19966 _ACEOF
19969 cat >>confdefs.h <<_ACEOF
19970 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19971 _ACEOF
19974 cat >>confdefs.h <<_ACEOF
19975 #define LLVM_INFODIR "$LLVM_INFODIR"
19976 _ACEOF
19979 cat >>confdefs.h <<_ACEOF
19980 #define LLVM_MANDIR "$LLVM_MANDIR"
19981 _ACEOF
19984 cat >>confdefs.h <<_ACEOF
19985 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19986 _ACEOF
19989 cat >>confdefs.h <<_ACEOF
19990 #define LLVM_HOSTTRIPLE "$host"
19991 _ACEOF
19994 # Determine which bindings to build.
19995 if test "$BINDINGS_TO_BUILD" = auto ; then
19996 BINDINGS_TO_BUILD=""
19997 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19998 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20001 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20004 # This isn't really configurey, but it avoids having to repeat the list in
20005 # other files.
20006 ALL_BINDINGS=ocaml
20009 # Do any work necessary to ensure that bindings have what they need.
20010 binding_prereqs_failed=0
20011 for a_binding in $BINDINGS_TO_BUILD ; do
20012 case "$a_binding" in
20013 ocaml)
20014 if test "x$OCAMLC" = x ; then
20015 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20016 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20017 binding_prereqs_failed=1
20019 if test "x$OCAMLDEP" = x ; then
20020 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20021 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20022 binding_prereqs_failed=1
20024 if test "x$OCAMLOPT" = x ; then
20025 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20026 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20028 if test "x$with_ocaml_libdir" != xauto ; then
20029 OCAML_LIBDIR=$with_ocaml_libdir
20031 else
20032 ocaml_stdlib="`"$OCAMLC" -where`"
20033 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20034 then
20035 # ocaml stdlib is beneath our prefix; use stdlib
20036 OCAML_LIBDIR=$ocaml_stdlib
20038 else
20039 # ocaml stdlib is outside our prefix; use libdir/ocaml
20040 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20045 esac
20046 done
20047 if test "$binding_prereqs_failed" = 1 ; then
20048 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20049 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20050 { (exit 1); exit 1; }; }
20053 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20054 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20055 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20056 echo $ECHO_N "(cached) $ECHO_C" >&6
20057 else
20058 ac_ext=cpp
20059 ac_cpp='$CXXCPP $CPPFLAGS'
20060 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20061 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20062 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20064 oldcxxflags="$CXXFLAGS"
20065 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20066 cat >conftest.$ac_ext <<_ACEOF
20067 /* confdefs.h. */
20068 _ACEOF
20069 cat confdefs.h >>conftest.$ac_ext
20070 cat >>conftest.$ac_ext <<_ACEOF
20071 /* end confdefs.h. */
20074 main ()
20078 return 0;
20080 _ACEOF
20081 rm -f conftest.$ac_objext
20082 if { (ac_try="$ac_compile"
20083 case "(($ac_try" in
20084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20085 *) ac_try_echo=$ac_try;;
20086 esac
20087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20088 (eval "$ac_compile") 2>conftest.er1
20089 ac_status=$?
20090 grep -v '^ *+' conftest.er1 >conftest.err
20091 rm -f conftest.er1
20092 cat conftest.err >&5
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); } &&
20095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20096 { (case "(($ac_try" in
20097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098 *) ac_try_echo=$ac_try;;
20099 esac
20100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20101 (eval "$ac_try") 2>&5
20102 ac_status=$?
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); }; } &&
20105 { ac_try='test -s conftest.$ac_objext'
20106 { (case "(($ac_try" in
20107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20108 *) ac_try_echo=$ac_try;;
20109 esac
20110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20111 (eval "$ac_try") 2>&5
20112 ac_status=$?
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); }; }; then
20115 llvm_cv_cxx_visibility_inlines_hidden=yes
20116 else
20117 echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.$ac_ext >&5
20120 llvm_cv_cxx_visibility_inlines_hidden=no
20123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20124 CXXFLAGS="$oldcxxflags"
20125 ac_ext=c
20126 ac_cpp='$CPP $CPPFLAGS'
20127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20133 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20134 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20135 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20136 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20138 else
20139 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20144 if test "$llvm_cv_link_use_r" = "yes" ; then
20145 RPATH="-Wl,-R"
20146 else
20147 RPATH="-Wl,-rpath"
20151 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20152 RDYNAMIC="-Wl,-export-dynamic"
20153 else
20154 RDYNAMIC=""
20159 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
20161 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20163 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20165 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20167 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20169 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20172 ac_config_files="$ac_config_files Makefile.config"
20175 ac_config_files="$ac_config_files llvm.spec"
20178 ac_config_files="$ac_config_files docs/doxygen.cfg"
20181 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20184 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20187 ac_config_commands="$ac_config_commands setup"
20189 ac_config_commands="$ac_config_commands Makefile"
20192 ac_config_commands="$ac_config_commands Makefile.common"
20195 ac_config_commands="$ac_config_commands examples/Makefile"
20198 ac_config_commands="$ac_config_commands lib/Makefile"
20201 ac_config_commands="$ac_config_commands runtime/Makefile"
20204 ac_config_commands="$ac_config_commands test/Makefile"
20207 ac_config_commands="$ac_config_commands test/Makefile.tests"
20210 ac_config_commands="$ac_config_commands unittests/Makefile"
20213 ac_config_commands="$ac_config_commands tools/Makefile"
20216 ac_config_commands="$ac_config_commands utils/Makefile"
20219 ac_config_commands="$ac_config_commands projects/Makefile"
20222 ac_config_commands="$ac_config_commands bindings/Makefile"
20225 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20229 cat >confcache <<\_ACEOF
20230 # This file is a shell script that caches the results of configure
20231 # tests run on this system so they can be shared between configure
20232 # scripts and configure runs, see configure's option --config-cache.
20233 # It is not useful on other systems. If it contains results you don't
20234 # want to keep, you may remove or edit it.
20236 # config.status only pays attention to the cache file if you give it
20237 # the --recheck option to rerun configure.
20239 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20240 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20241 # following values.
20243 _ACEOF
20245 # The following way of writing the cache mishandles newlines in values,
20246 # but we know of no workaround that is simple, portable, and efficient.
20247 # So, we kill variables containing newlines.
20248 # Ultrix sh set writes to stderr and can't be redirected directly,
20249 # and sets the high bit in the cache file unless we assign to the vars.
20251 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20252 eval ac_val=\$$ac_var
20253 case $ac_val in #(
20254 *${as_nl}*)
20255 case $ac_var in #(
20256 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20257 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20258 esac
20259 case $ac_var in #(
20260 _ | IFS | as_nl) ;; #(
20261 *) $as_unset $ac_var ;;
20262 esac ;;
20263 esac
20264 done
20266 (set) 2>&1 |
20267 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20268 *${as_nl}ac_space=\ *)
20269 # `set' does not quote correctly, so add quotes (double-quote
20270 # substitution turns \\\\ into \\, and sed turns \\ into \).
20271 sed -n \
20272 "s/'/'\\\\''/g;
20273 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20274 ;; #(
20276 # `set' quotes correctly as required by POSIX, so do not add quotes.
20277 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20279 esac |
20280 sort
20282 sed '
20283 /^ac_cv_env_/b end
20284 t clear
20285 :clear
20286 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20287 t end
20288 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20289 :end' >>confcache
20290 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20291 if test -w "$cache_file"; then
20292 test "x$cache_file" != "x/dev/null" &&
20293 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20294 echo "$as_me: updating cache $cache_file" >&6;}
20295 cat confcache >$cache_file
20296 else
20297 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20298 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20301 rm -f confcache
20303 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20304 # Let make expand exec_prefix.
20305 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20307 DEFS=-DHAVE_CONFIG_H
20309 ac_libobjs=
20310 ac_ltlibobjs=
20311 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20312 # 1. Remove the extension, and $U if already installed.
20313 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20314 ac_i=`echo "$ac_i" | sed "$ac_script"`
20315 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20316 # will be set to the directory where LIBOBJS objects are built.
20317 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20318 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20319 done
20320 LIBOBJS=$ac_libobjs
20322 LTLIBOBJS=$ac_ltlibobjs
20325 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20326 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20327 Usually this means the macro was only invoked conditionally." >&5
20328 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20329 Usually this means the macro was only invoked conditionally." >&2;}
20330 { (exit 1); exit 1; }; }
20332 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20333 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20334 Usually this means the macro was only invoked conditionally." >&5
20335 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20336 Usually this means the macro was only invoked conditionally." >&2;}
20337 { (exit 1); exit 1; }; }
20340 : ${CONFIG_STATUS=./config.status}
20341 ac_clean_files_save=$ac_clean_files
20342 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20343 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20344 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20345 cat >$CONFIG_STATUS <<_ACEOF
20346 #! $SHELL
20347 # Generated by $as_me.
20348 # Run this file to recreate the current configuration.
20349 # Compiler output produced by configure, useful for debugging
20350 # configure, is in config.log if it exists.
20352 debug=false
20353 ac_cs_recheck=false
20354 ac_cs_silent=false
20355 SHELL=\${CONFIG_SHELL-$SHELL}
20356 _ACEOF
20358 cat >>$CONFIG_STATUS <<\_ACEOF
20359 ## --------------------- ##
20360 ## M4sh Initialization. ##
20361 ## --------------------- ##
20363 # Be Bourne compatible
20364 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20365 emulate sh
20366 NULLCMD=:
20367 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20368 # is contrary to our usage. Disable this feature.
20369 alias -g '${1+"$@"}'='"$@"'
20370 setopt NO_GLOB_SUBST
20371 else
20372 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20374 BIN_SH=xpg4; export BIN_SH # for Tru64
20375 DUALCASE=1; export DUALCASE # for MKS sh
20378 # PATH needs CR
20379 # Avoid depending upon Character Ranges.
20380 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20381 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20382 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20383 as_cr_digits='0123456789'
20384 as_cr_alnum=$as_cr_Letters$as_cr_digits
20386 # The user is always right.
20387 if test "${PATH_SEPARATOR+set}" != set; then
20388 echo "#! /bin/sh" >conf$$.sh
20389 echo "exit 0" >>conf$$.sh
20390 chmod +x conf$$.sh
20391 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20392 PATH_SEPARATOR=';'
20393 else
20394 PATH_SEPARATOR=:
20396 rm -f conf$$.sh
20399 # Support unset when possible.
20400 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20401 as_unset=unset
20402 else
20403 as_unset=false
20407 # IFS
20408 # We need space, tab and new line, in precisely that order. Quoting is
20409 # there to prevent editors from complaining about space-tab.
20410 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20411 # splitting by setting IFS to empty value.)
20412 as_nl='
20414 IFS=" "" $as_nl"
20416 # Find who we are. Look in the path if we contain no directory separator.
20417 case $0 in
20418 *[\\/]* ) as_myself=$0 ;;
20419 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20420 for as_dir in $PATH
20422 IFS=$as_save_IFS
20423 test -z "$as_dir" && as_dir=.
20424 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20425 done
20426 IFS=$as_save_IFS
20429 esac
20430 # We did not find ourselves, most probably we were run as `sh COMMAND'
20431 # in which case we are not to be found in the path.
20432 if test "x$as_myself" = x; then
20433 as_myself=$0
20435 if test ! -f "$as_myself"; then
20436 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20437 { (exit 1); exit 1; }
20440 # Work around bugs in pre-3.0 UWIN ksh.
20441 for as_var in ENV MAIL MAILPATH
20442 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20443 done
20444 PS1='$ '
20445 PS2='> '
20446 PS4='+ '
20448 # NLS nuisances.
20449 for as_var in \
20450 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20451 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20452 LC_TELEPHONE LC_TIME
20454 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20455 eval $as_var=C; export $as_var
20456 else
20457 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20459 done
20461 # Required to use basename.
20462 if expr a : '\(a\)' >/dev/null 2>&1 &&
20463 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20464 as_expr=expr
20465 else
20466 as_expr=false
20469 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20470 as_basename=basename
20471 else
20472 as_basename=false
20476 # Name of the executable.
20477 as_me=`$as_basename -- "$0" ||
20478 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20479 X"$0" : 'X\(//\)$' \| \
20480 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20481 echo X/"$0" |
20482 sed '/^.*\/\([^/][^/]*\)\/*$/{
20483 s//\1/
20486 /^X\/\(\/\/\)$/{
20487 s//\1/
20490 /^X\/\(\/\).*/{
20491 s//\1/
20494 s/.*/./; q'`
20496 # CDPATH.
20497 $as_unset CDPATH
20501 as_lineno_1=$LINENO
20502 as_lineno_2=$LINENO
20503 test "x$as_lineno_1" != "x$as_lineno_2" &&
20504 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20506 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20507 # uniformly replaced by the line number. The first 'sed' inserts a
20508 # line-number line after each line using $LINENO; the second 'sed'
20509 # does the real work. The second script uses 'N' to pair each
20510 # line-number line with the line containing $LINENO, and appends
20511 # trailing '-' during substitution so that $LINENO is not a special
20512 # case at line end.
20513 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20514 # scripts with optimization help from Paolo Bonzini. Blame Lee
20515 # E. McMahon (1931-1989) for sed's syntax. :-)
20516 sed -n '
20518 /[$]LINENO/=
20519 ' <$as_myself |
20520 sed '
20521 s/[$]LINENO.*/&-/
20522 t lineno
20524 :lineno
20526 :loop
20527 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20528 t loop
20529 s/-\n.*//
20530 ' >$as_me.lineno &&
20531 chmod +x "$as_me.lineno" ||
20532 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20533 { (exit 1); exit 1; }; }
20535 # Don't try to exec as it changes $[0], causing all sort of problems
20536 # (the dirname of $[0] is not the place where we might find the
20537 # original and so on. Autoconf is especially sensitive to this).
20538 . "./$as_me.lineno"
20539 # Exit status is that of the last command.
20540 exit
20544 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20545 as_dirname=dirname
20546 else
20547 as_dirname=false
20550 ECHO_C= ECHO_N= ECHO_T=
20551 case `echo -n x` in
20552 -n*)
20553 case `echo 'x\c'` in
20554 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20555 *) ECHO_C='\c';;
20556 esac;;
20558 ECHO_N='-n';;
20559 esac
20561 if expr a : '\(a\)' >/dev/null 2>&1 &&
20562 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20563 as_expr=expr
20564 else
20565 as_expr=false
20568 rm -f conf$$ conf$$.exe conf$$.file
20569 if test -d conf$$.dir; then
20570 rm -f conf$$.dir/conf$$.file
20571 else
20572 rm -f conf$$.dir
20573 mkdir conf$$.dir
20575 echo >conf$$.file
20576 if ln -s conf$$.file conf$$ 2>/dev/null; then
20577 as_ln_s='ln -s'
20578 # ... but there are two gotchas:
20579 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20580 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20581 # In both cases, we have to default to `cp -p'.
20582 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20583 as_ln_s='cp -p'
20584 elif ln conf$$.file conf$$ 2>/dev/null; then
20585 as_ln_s=ln
20586 else
20587 as_ln_s='cp -p'
20589 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20590 rmdir conf$$.dir 2>/dev/null
20592 if mkdir -p . 2>/dev/null; then
20593 as_mkdir_p=:
20594 else
20595 test -d ./-p && rmdir ./-p
20596 as_mkdir_p=false
20599 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
20600 # systems may use methods other than mode bits to determine executability.
20601 cat >conf$$.file <<_ASEOF
20602 #! /bin/sh
20603 exit 0
20604 _ASEOF
20605 chmod +x conf$$.file
20606 if test -x conf$$.file >/dev/null 2>&1; then
20607 as_executable_p="test -x"
20608 else
20609 as_executable_p=:
20611 rm -f conf$$.file
20613 # Sed expression to map a string onto a valid CPP name.
20614 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20616 # Sed expression to map a string onto a valid variable name.
20617 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20620 exec 6>&1
20622 # Save the log message, to keep $[0] and so on meaningful, and to
20623 # report actual input values of CONFIG_FILES etc. instead of their
20624 # values after options handling.
20625 ac_log="
20626 This file was extended by llvm $as_me 2.8svn, which was
20627 generated by GNU Autoconf 2.60. Invocation command line was
20629 CONFIG_FILES = $CONFIG_FILES
20630 CONFIG_HEADERS = $CONFIG_HEADERS
20631 CONFIG_LINKS = $CONFIG_LINKS
20632 CONFIG_COMMANDS = $CONFIG_COMMANDS
20633 $ $0 $@
20635 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20638 _ACEOF
20640 cat >>$CONFIG_STATUS <<_ACEOF
20641 # Files that config.status was made for.
20642 config_files="$ac_config_files"
20643 config_headers="$ac_config_headers"
20644 config_commands="$ac_config_commands"
20646 _ACEOF
20648 cat >>$CONFIG_STATUS <<\_ACEOF
20649 ac_cs_usage="\
20650 \`$as_me' instantiates files from templates according to the
20651 current configuration.
20653 Usage: $0 [OPTIONS] [FILE]...
20655 -h, --help print this help, then exit
20656 -V, --version print version number, then exit
20657 -q, --quiet do not print progress messages
20658 -d, --debug don't remove temporary files
20659 --recheck update $as_me by reconfiguring in the same conditions
20660 --file=FILE[:TEMPLATE]
20661 instantiate the configuration file FILE
20662 --header=FILE[:TEMPLATE]
20663 instantiate the configuration header FILE
20665 Configuration files:
20666 $config_files
20668 Configuration headers:
20669 $config_headers
20671 Configuration commands:
20672 $config_commands
20674 Report bugs to <bug-autoconf@gnu.org>."
20676 _ACEOF
20677 cat >>$CONFIG_STATUS <<_ACEOF
20678 ac_cs_version="\\
20679 llvm config.status 2.8svn
20680 configured by $0, generated by GNU Autoconf 2.60,
20681 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20683 Copyright (C) 2006 Free Software Foundation, Inc.
20684 This config.status script is free software; the Free Software Foundation
20685 gives unlimited permission to copy, distribute and modify it."
20687 ac_pwd='$ac_pwd'
20688 srcdir='$srcdir'
20689 INSTALL='$INSTALL'
20690 _ACEOF
20692 cat >>$CONFIG_STATUS <<\_ACEOF
20693 # If no file are specified by the user, then we need to provide default
20694 # value. By we need to know if files were specified by the user.
20695 ac_need_defaults=:
20696 while test $# != 0
20698 case $1 in
20699 --*=*)
20700 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20701 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20702 ac_shift=:
20705 ac_option=$1
20706 ac_optarg=$2
20707 ac_shift=shift
20709 esac
20711 case $ac_option in
20712 # Handling of the options.
20713 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20714 ac_cs_recheck=: ;;
20715 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20716 echo "$ac_cs_version"; exit ;;
20717 --debug | --debu | --deb | --de | --d | -d )
20718 debug=: ;;
20719 --file | --fil | --fi | --f )
20720 $ac_shift
20721 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20722 ac_need_defaults=false;;
20723 --header | --heade | --head | --hea )
20724 $ac_shift
20725 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20726 ac_need_defaults=false;;
20727 --he | --h)
20728 # Conflict between --help and --header
20729 { echo "$as_me: error: ambiguous option: $1
20730 Try \`$0 --help' for more information." >&2
20731 { (exit 1); exit 1; }; };;
20732 --help | --hel | -h )
20733 echo "$ac_cs_usage"; exit ;;
20734 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20735 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20736 ac_cs_silent=: ;;
20738 # This is an error.
20739 -*) { echo "$as_me: error: unrecognized option: $1
20740 Try \`$0 --help' for more information." >&2
20741 { (exit 1); exit 1; }; } ;;
20743 *) ac_config_targets="$ac_config_targets $1"
20744 ac_need_defaults=false ;;
20746 esac
20747 shift
20748 done
20750 ac_configure_extra_args=
20752 if $ac_cs_silent; then
20753 exec 6>/dev/null
20754 ac_configure_extra_args="$ac_configure_extra_args --silent"
20757 _ACEOF
20758 cat >>$CONFIG_STATUS <<_ACEOF
20759 if \$ac_cs_recheck; then
20760 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20761 CONFIG_SHELL=$SHELL
20762 export CONFIG_SHELL
20763 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20766 _ACEOF
20767 cat >>$CONFIG_STATUS <<\_ACEOF
20768 exec 5>>config.log
20770 echo
20771 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20772 ## Running $as_me. ##
20773 _ASBOX
20774 echo "$ac_log"
20775 } >&5
20777 _ACEOF
20778 cat >>$CONFIG_STATUS <<_ACEOF
20780 # INIT-COMMANDS
20782 llvm_src="${srcdir}"
20784 _ACEOF
20786 cat >>$CONFIG_STATUS <<\_ACEOF
20788 # Handling of arguments.
20789 for ac_config_target in $ac_config_targets
20791 case $ac_config_target in
20792 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20793 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20794 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20795 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20796 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20797 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20798 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20799 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20800 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20801 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20802 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20803 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20804 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20805 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20806 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20807 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20808 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20809 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20810 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20811 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20812 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20813 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20814 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20815 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20816 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20818 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20819 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20820 { (exit 1); exit 1; }; };;
20821 esac
20822 done
20825 # If the user did not use the arguments to specify the items to instantiate,
20826 # then the envvar interface is used. Set only those that are not.
20827 # We use the long form for the default assignment because of an extremely
20828 # bizarre bug on SunOS 4.1.3.
20829 if $ac_need_defaults; then
20830 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20831 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20832 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20835 # Have a temporary directory for convenience. Make it in the build tree
20836 # simply because there is no reason against having it here, and in addition,
20837 # creating and moving files from /tmp can sometimes cause problems.
20838 # Hook for its removal unless debugging.
20839 # Note that there is a small window in which the directory will not be cleaned:
20840 # after its creation but before its name has been assigned to `$tmp'.
20841 $debug ||
20843 tmp=
20844 trap 'exit_status=$?
20845 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20847 trap '{ (exit 1); exit 1; }' 1 2 13 15
20849 # Create a (secure) tmp directory for tmp files.
20852 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20853 test -n "$tmp" && test -d "$tmp"
20854 } ||
20856 tmp=./conf$$-$RANDOM
20857 (umask 077 && mkdir "$tmp")
20858 } ||
20860 echo "$me: cannot create a temporary directory in ." >&2
20861 { (exit 1); exit 1; }
20865 # Set up the sed scripts for CONFIG_FILES section.
20868 # No need to generate the scripts if there are no CONFIG_FILES.
20869 # This happens for instance when ./config.status config.h
20870 if test -n "$CONFIG_FILES"; then
20872 _ACEOF
20876 ac_delim='%!_!# '
20877 for ac_last_try in false false false false false :; do
20878 cat >conf$$subs.sed <<_ACEOF
20879 SHELL!$SHELL$ac_delim
20880 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20881 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20882 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20883 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20884 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20885 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20886 exec_prefix!$exec_prefix$ac_delim
20887 prefix!$prefix$ac_delim
20888 program_transform_name!$program_transform_name$ac_delim
20889 bindir!$bindir$ac_delim
20890 sbindir!$sbindir$ac_delim
20891 libexecdir!$libexecdir$ac_delim
20892 datarootdir!$datarootdir$ac_delim
20893 datadir!$datadir$ac_delim
20894 sysconfdir!$sysconfdir$ac_delim
20895 sharedstatedir!$sharedstatedir$ac_delim
20896 localstatedir!$localstatedir$ac_delim
20897 includedir!$includedir$ac_delim
20898 oldincludedir!$oldincludedir$ac_delim
20899 docdir!$docdir$ac_delim
20900 infodir!$infodir$ac_delim
20901 htmldir!$htmldir$ac_delim
20902 dvidir!$dvidir$ac_delim
20903 pdfdir!$pdfdir$ac_delim
20904 psdir!$psdir$ac_delim
20905 libdir!$libdir$ac_delim
20906 localedir!$localedir$ac_delim
20907 mandir!$mandir$ac_delim
20908 DEFS!$DEFS$ac_delim
20909 ECHO_C!$ECHO_C$ac_delim
20910 ECHO_N!$ECHO_N$ac_delim
20911 ECHO_T!$ECHO_T$ac_delim
20912 LIBS!$LIBS$ac_delim
20913 build_alias!$build_alias$ac_delim
20914 host_alias!$host_alias$ac_delim
20915 target_alias!$target_alias$ac_delim
20916 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20917 subdirs!$subdirs$ac_delim
20918 build!$build$ac_delim
20919 build_cpu!$build_cpu$ac_delim
20920 build_vendor!$build_vendor$ac_delim
20921 build_os!$build_os$ac_delim
20922 host!$host$ac_delim
20923 host_cpu!$host_cpu$ac_delim
20924 host_vendor!$host_vendor$ac_delim
20925 host_os!$host_os$ac_delim
20926 target!$target$ac_delim
20927 target_cpu!$target_cpu$ac_delim
20928 target_vendor!$target_vendor$ac_delim
20929 target_os!$target_os$ac_delim
20930 OS!$OS$ac_delim
20931 HOST_OS!$HOST_OS$ac_delim
20932 TARGET_OS!$TARGET_OS$ac_delim
20933 LINKALL!$LINKALL$ac_delim
20934 NOLINKALL!$NOLINKALL$ac_delim
20935 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20936 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20937 ARCH!$ARCH$ac_delim
20938 ENDIAN!$ENDIAN$ac_delim
20939 CC!$CC$ac_delim
20940 CFLAGS!$CFLAGS$ac_delim
20941 LDFLAGS!$LDFLAGS$ac_delim
20942 CPPFLAGS!$CPPFLAGS$ac_delim
20943 ac_ct_CC!$ac_ct_CC$ac_delim
20944 EXEEXT!$EXEEXT$ac_delim
20945 OBJEXT!$OBJEXT$ac_delim
20946 CPP!$CPP$ac_delim
20947 GREP!$GREP$ac_delim
20948 EGREP!$EGREP$ac_delim
20949 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20950 BUILD_CC!$BUILD_CC$ac_delim
20951 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20952 BUILD_CXX!$BUILD_CXX$ac_delim
20953 CVSBUILD!$CVSBUILD$ac_delim
20954 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20955 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20956 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20957 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20958 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20959 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20960 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20961 JIT!$JIT$ac_delim
20962 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20963 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20964 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20965 ENABLE_PIC!$ENABLE_PIC$ac_delim
20966 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
20967 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20968 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20969 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20970 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20971 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20972 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20973 CLANGPATH!$CLANGPATH$ac_delim
20974 CLANGXXPATH!$CLANGXXPATH$ac_delim
20975 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
20976 _ACEOF
20978 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20979 break
20980 elif $ac_last_try; then
20981 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20982 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20983 { (exit 1); exit 1; }; }
20984 else
20985 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20987 done
20989 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20990 if test -n "$ac_eof"; then
20991 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20992 ac_eof=`expr $ac_eof + 1`
20995 cat >>$CONFIG_STATUS <<_ACEOF
20996 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20997 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20998 _ACEOF
20999 sed '
21000 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21001 s/^/s,@/; s/!/@,|#_!!_#|/
21004 s/'"$ac_delim"'$/,g/; t
21005 s/$/\\/; p
21006 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21007 ' >>$CONFIG_STATUS <conf$$subs.sed
21008 rm -f conf$$subs.sed
21009 cat >>$CONFIG_STATUS <<_ACEOF
21010 CEOF$ac_eof
21011 _ACEOF
21014 ac_delim='%!_!# '
21015 for ac_last_try in false false false false false :; do
21016 cat >conf$$subs.sed <<_ACEOF
21017 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21018 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21019 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21020 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
21021 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21022 CXX!$CXX$ac_delim
21023 CXXFLAGS!$CXXFLAGS$ac_delim
21024 ac_ct_CXX!$ac_ct_CXX$ac_delim
21025 NM!$NM$ac_delim
21026 ifGNUmake!$ifGNUmake$ac_delim
21027 LN_S!$LN_S$ac_delim
21028 CMP!$CMP$ac_delim
21029 CP!$CP$ac_delim
21030 DATE!$DATE$ac_delim
21031 FIND!$FIND$ac_delim
21032 MKDIR!$MKDIR$ac_delim
21033 MV!$MV$ac_delim
21034 RANLIB!$RANLIB$ac_delim
21035 AR!$AR$ac_delim
21036 RM!$RM$ac_delim
21037 SED!$SED$ac_delim
21038 TAR!$TAR$ac_delim
21039 BINPWD!$BINPWD$ac_delim
21040 GRAPHVIZ!$GRAPHVIZ$ac_delim
21041 DOT!$DOT$ac_delim
21042 FDP!$FDP$ac_delim
21043 NEATO!$NEATO$ac_delim
21044 TWOPI!$TWOPI$ac_delim
21045 CIRCO!$CIRCO$ac_delim
21046 GV!$GV$ac_delim
21047 DOTTY!$DOTTY$ac_delim
21048 PERL!$PERL$ac_delim
21049 HAVE_PERL!$HAVE_PERL$ac_delim
21050 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21051 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21052 INSTALL_DATA!$INSTALL_DATA$ac_delim
21053 BZIP2!$BZIP2$ac_delim
21054 DOXYGEN!$DOXYGEN$ac_delim
21055 GROFF!$GROFF$ac_delim
21056 GZIP!$GZIP$ac_delim
21057 POD2HTML!$POD2HTML$ac_delim
21058 POD2MAN!$POD2MAN$ac_delim
21059 RUNTEST!$RUNTEST$ac_delim
21060 TCLSH!$TCLSH$ac_delim
21061 ZIP!$ZIP$ac_delim
21062 OCAMLC!$OCAMLC$ac_delim
21063 OCAMLOPT!$OCAMLOPT$ac_delim
21064 OCAMLDEP!$OCAMLDEP$ac_delim
21065 OCAMLDOC!$OCAMLDOC$ac_delim
21066 GAS!$GAS$ac_delim
21067 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21068 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21069 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21070 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21071 LIBADD_DL!$LIBADD_DL$ac_delim
21072 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21073 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21074 LLVMGCC!$LLVMGCC$ac_delim
21075 LLVMGXX!$LLVMGXX$ac_delim
21076 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21077 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21078 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21079 USE_UDIS86!$USE_UDIS86$ac_delim
21080 USE_OPROFILE!$USE_OPROFILE$ac_delim
21081 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21082 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21083 MMAP_FILE!$MMAP_FILE$ac_delim
21084 LLVMCC1!$LLVMCC1$ac_delim
21085 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21086 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21087 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21088 SHLIBEXT!$SHLIBEXT$ac_delim
21089 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21090 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21091 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21092 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21093 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21094 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21095 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21096 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21097 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21098 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21099 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21100 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21101 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21102 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21103 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21104 RPATH!$RPATH$ac_delim
21105 RDYNAMIC!$RDYNAMIC$ac_delim
21106 LIBOBJS!$LIBOBJS$ac_delim
21107 LTLIBOBJS!$LTLIBOBJS$ac_delim
21108 _ACEOF
21110 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
21111 break
21112 elif $ac_last_try; then
21113 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21114 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21115 { (exit 1); exit 1; }; }
21116 else
21117 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21119 done
21121 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21122 if test -n "$ac_eof"; then
21123 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21124 ac_eof=`expr $ac_eof + 1`
21127 cat >>$CONFIG_STATUS <<_ACEOF
21128 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21129 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21130 _ACEOF
21131 sed '
21132 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21133 s/^/s,@/; s/!/@,|#_!!_#|/
21136 s/'"$ac_delim"'$/,g/; t
21137 s/$/\\/; p
21138 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21139 ' >>$CONFIG_STATUS <conf$$subs.sed
21140 rm -f conf$$subs.sed
21141 cat >>$CONFIG_STATUS <<_ACEOF
21142 :end
21143 s/|#_!!_#|//g
21144 CEOF$ac_eof
21145 _ACEOF
21148 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21149 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21150 # trailing colons and then remove the whole line if VPATH becomes empty
21151 # (actually we leave an empty line to preserve line numbers).
21152 if test "x$srcdir" = x.; then
21153 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21154 s/:*\$(srcdir):*/:/
21155 s/:*\${srcdir}:*/:/
21156 s/:*@srcdir@:*/:/
21157 s/^\([^=]*=[ ]*\):*/\1/
21158 s/:*$//
21159 s/^[^=]*=[ ]*$//
21163 cat >>$CONFIG_STATUS <<\_ACEOF
21164 fi # test -n "$CONFIG_FILES"
21167 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21169 case $ac_tag in
21170 :[FHLC]) ac_mode=$ac_tag; continue;;
21171 esac
21172 case $ac_mode$ac_tag in
21173 :[FHL]*:*);;
21174 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21175 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21176 { (exit 1); exit 1; }; };;
21177 :[FH]-) ac_tag=-:-;;
21178 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21179 esac
21180 ac_save_IFS=$IFS
21181 IFS=:
21182 set x $ac_tag
21183 IFS=$ac_save_IFS
21184 shift
21185 ac_file=$1
21186 shift
21188 case $ac_mode in
21189 :L) ac_source=$1;;
21190 :[FH])
21191 ac_file_inputs=
21192 for ac_f
21194 case $ac_f in
21195 -) ac_f="$tmp/stdin";;
21196 *) # Look for the file first in the build tree, then in the source tree
21197 # (if the path is not absolute). The absolute path cannot be DOS-style,
21198 # because $ac_f cannot contain `:'.
21199 test -f "$ac_f" ||
21200 case $ac_f in
21201 [\\/$]*) false;;
21202 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21203 esac ||
21204 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21205 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21206 { (exit 1); exit 1; }; };;
21207 esac
21208 ac_file_inputs="$ac_file_inputs $ac_f"
21209 done
21211 # Let's still pretend it is `configure' which instantiates (i.e., don't
21212 # use $as_me), people would be surprised to read:
21213 # /* config.h. Generated by config.status. */
21214 configure_input="Generated from "`IFS=:
21215 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21216 if test x"$ac_file" != x-; then
21217 configure_input="$ac_file. $configure_input"
21218 { echo "$as_me:$LINENO: creating $ac_file" >&5
21219 echo "$as_me: creating $ac_file" >&6;}
21222 case $ac_tag in
21223 *:-:* | *:-) cat >"$tmp/stdin";;
21224 esac
21226 esac
21228 ac_dir=`$as_dirname -- "$ac_file" ||
21229 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21230 X"$ac_file" : 'X\(//\)[^/]' \| \
21231 X"$ac_file" : 'X\(//\)$' \| \
21232 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21233 echo X"$ac_file" |
21234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21235 s//\1/
21238 /^X\(\/\/\)[^/].*/{
21239 s//\1/
21242 /^X\(\/\/\)$/{
21243 s//\1/
21246 /^X\(\/\).*/{
21247 s//\1/
21250 s/.*/./; q'`
21251 { as_dir="$ac_dir"
21252 case $as_dir in #(
21253 -*) as_dir=./$as_dir;;
21254 esac
21255 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21256 as_dirs=
21257 while :; do
21258 case $as_dir in #(
21259 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21260 *) as_qdir=$as_dir;;
21261 esac
21262 as_dirs="'$as_qdir' $as_dirs"
21263 as_dir=`$as_dirname -- "$as_dir" ||
21264 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21265 X"$as_dir" : 'X\(//\)[^/]' \| \
21266 X"$as_dir" : 'X\(//\)$' \| \
21267 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21268 echo X"$as_dir" |
21269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21270 s//\1/
21273 /^X\(\/\/\)[^/].*/{
21274 s//\1/
21277 /^X\(\/\/\)$/{
21278 s//\1/
21281 /^X\(\/\).*/{
21282 s//\1/
21285 s/.*/./; q'`
21286 test -d "$as_dir" && break
21287 done
21288 test -z "$as_dirs" || eval "mkdir $as_dirs"
21289 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21290 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21291 { (exit 1); exit 1; }; }; }
21292 ac_builddir=.
21294 case "$ac_dir" in
21295 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21297 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21298 # A ".." for each directory in $ac_dir_suffix.
21299 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21300 case $ac_top_builddir_sub in
21301 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21302 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21303 esac ;;
21304 esac
21305 ac_abs_top_builddir=$ac_pwd
21306 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21307 # for backward compatibility:
21308 ac_top_builddir=$ac_top_build_prefix
21310 case $srcdir in
21311 .) # We are building in place.
21312 ac_srcdir=.
21313 ac_top_srcdir=$ac_top_builddir_sub
21314 ac_abs_top_srcdir=$ac_pwd ;;
21315 [\\/]* | ?:[\\/]* ) # Absolute name.
21316 ac_srcdir=$srcdir$ac_dir_suffix;
21317 ac_top_srcdir=$srcdir
21318 ac_abs_top_srcdir=$srcdir ;;
21319 *) # Relative name.
21320 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21321 ac_top_srcdir=$ac_top_build_prefix$srcdir
21322 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21323 esac
21324 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21327 case $ac_mode in
21330 # CONFIG_FILE
21333 case $INSTALL in
21334 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21335 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21336 esac
21337 _ACEOF
21339 cat >>$CONFIG_STATUS <<\_ACEOF
21340 # If the template does not know about datarootdir, expand it.
21341 # FIXME: This hack should be removed a few years after 2.60.
21342 ac_datarootdir_hack=; ac_datarootdir_seen=
21344 case `sed -n '/datarootdir/ {
21348 /@datadir@/p
21349 /@docdir@/p
21350 /@infodir@/p
21351 /@localedir@/p
21352 /@mandir@/p
21353 ' $ac_file_inputs` in
21354 *datarootdir*) ac_datarootdir_seen=yes;;
21355 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21356 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21357 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21358 _ACEOF
21359 cat >>$CONFIG_STATUS <<_ACEOF
21360 ac_datarootdir_hack='
21361 s&@datadir@&$datadir&g
21362 s&@docdir@&$docdir&g
21363 s&@infodir@&$infodir&g
21364 s&@localedir@&$localedir&g
21365 s&@mandir@&$mandir&g
21366 s&\\\${datarootdir}&$datarootdir&g' ;;
21367 esac
21368 _ACEOF
21370 # Neutralize VPATH when `$srcdir' = `.'.
21371 # Shell code in configure.ac might set extrasub.
21372 # FIXME: do we really want to maintain this feature?
21373 cat >>$CONFIG_STATUS <<_ACEOF
21374 sed "$ac_vpsub
21375 $extrasub
21376 _ACEOF
21377 cat >>$CONFIG_STATUS <<\_ACEOF
21379 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21380 s&@configure_input@&$configure_input&;t t
21381 s&@top_builddir@&$ac_top_builddir_sub&;t t
21382 s&@srcdir@&$ac_srcdir&;t t
21383 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21384 s&@top_srcdir@&$ac_top_srcdir&;t t
21385 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21386 s&@builddir@&$ac_builddir&;t t
21387 s&@abs_builddir@&$ac_abs_builddir&;t t
21388 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21389 s&@INSTALL@&$ac_INSTALL&;t t
21390 $ac_datarootdir_hack
21391 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21393 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21394 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21395 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21396 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21397 which seems to be undefined. Please make sure it is defined." >&5
21398 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21399 which seems to be undefined. Please make sure it is defined." >&2;}
21401 rm -f "$tmp/stdin"
21402 case $ac_file in
21403 -) cat "$tmp/out"; rm -f "$tmp/out";;
21404 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21405 esac
21409 # CONFIG_HEADER
21411 _ACEOF
21413 # Transform confdefs.h into a sed script `conftest.defines', that
21414 # substitutes the proper values into config.h.in to produce config.h.
21415 rm -f conftest.defines conftest.tail
21416 # First, append a space to every undef/define line, to ease matching.
21417 echo 's/$/ /' >conftest.defines
21418 # Then, protect against being on the right side of a sed subst, or in
21419 # an unquoted here document, in config.status. If some macros were
21420 # called several times there might be several #defines for the same
21421 # symbol, which is useless. But do not sort them, since the last
21422 # AC_DEFINE must be honored.
21423 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21424 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21425 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21426 # PARAMS is the parameter list in the macro definition--in most cases, it's
21427 # just an empty string.
21428 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21429 ac_dB='\\)[ (].*,\\1define\\2'
21430 ac_dC=' '
21431 ac_dD=' ,'
21433 uniq confdefs.h |
21434 sed -n '
21435 t rset
21436 :rset
21437 s/^[ ]*#[ ]*define[ ][ ]*//
21438 t ok
21441 s/[\\&,]/\\&/g
21442 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21443 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21444 ' >>conftest.defines
21446 # Remove the space that was appended to ease matching.
21447 # Then replace #undef with comments. This is necessary, for
21448 # example, in the case of _POSIX_SOURCE, which is predefined and required
21449 # on some systems where configure will not decide to define it.
21450 # (The regexp can be short, since the line contains either #define or #undef.)
21451 echo 's/ $//
21452 s,^[ #]*u.*,/* & */,' >>conftest.defines
21454 # Break up conftest.defines:
21455 ac_max_sed_lines=50
21457 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21458 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21459 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21460 # et cetera.
21461 ac_in='$ac_file_inputs'
21462 ac_out='"$tmp/out1"'
21463 ac_nxt='"$tmp/out2"'
21465 while :
21467 # Write a here document:
21468 cat >>$CONFIG_STATUS <<_ACEOF
21469 # First, check the format of the line:
21470 cat >"\$tmp/defines.sed" <<\\CEOF
21471 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21472 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21474 :def
21475 _ACEOF
21476 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21477 echo 'CEOF
21478 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21479 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21480 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21481 grep . conftest.tail >/dev/null || break
21482 rm -f conftest.defines
21483 mv conftest.tail conftest.defines
21484 done
21485 rm -f conftest.defines conftest.tail
21487 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21488 cat >>$CONFIG_STATUS <<\_ACEOF
21489 if test x"$ac_file" != x-; then
21490 echo "/* $configure_input */" >"$tmp/config.h"
21491 cat "$ac_result" >>"$tmp/config.h"
21492 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21493 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21494 echo "$as_me: $ac_file is unchanged" >&6;}
21495 else
21496 rm -f $ac_file
21497 mv "$tmp/config.h" $ac_file
21499 else
21500 echo "/* $configure_input */"
21501 cat "$ac_result"
21503 rm -f "$tmp/out12"
21506 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21507 echo "$as_me: executing $ac_file commands" >&6;}
21509 esac
21512 case $ac_file$ac_mode in
21513 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21514 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21515 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21516 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21517 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21518 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21519 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21520 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21521 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21522 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21523 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21524 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21525 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21526 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21527 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21528 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21529 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21530 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21531 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21532 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21533 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21534 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21535 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21536 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21537 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21538 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21540 esac
21541 done # for ac_tag
21544 { (exit 0); exit 0; }
21545 _ACEOF
21546 chmod +x $CONFIG_STATUS
21547 ac_clean_files=$ac_clean_files_save
21550 # configure is writing to config.log, and then calls config.status.
21551 # config.status does its own redirection, appending to config.log.
21552 # Unfortunately, on DOS this fails, as config.log is still kept open
21553 # by configure, so config.status won't be able to write to it; its
21554 # output is simply discarded. So we exec the FD to /dev/null,
21555 # effectively closing config.log, so it can be properly (re)opened and
21556 # appended to by config.status. When coming back to configure, we
21557 # need to make the FD available again.
21558 if test "$no_create" != yes; then
21559 ac_cs_success=:
21560 ac_config_status_args=
21561 test "$silent" = yes &&
21562 ac_config_status_args="$ac_config_status_args --quiet"
21563 exec 5>/dev/null
21564 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21565 exec 5>>config.log
21566 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21567 # would make configure fail if this is the last instruction.
21568 $ac_cs_success || { (exit 1); exit 1; }
21572 # CONFIG_SUBDIRS section.
21574 if test "$no_recursion" != yes; then
21576 # Remove --cache-file and --srcdir arguments so they do not pile up.
21577 ac_sub_configure_args=
21578 ac_prev=
21579 eval "set x $ac_configure_args"
21580 shift
21581 for ac_arg
21583 if test -n "$ac_prev"; then
21584 ac_prev=
21585 continue
21587 case $ac_arg in
21588 -cache-file | --cache-file | --cache-fil | --cache-fi \
21589 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21590 ac_prev=cache_file ;;
21591 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21592 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21593 | --c=*)
21595 --config-cache | -C)
21597 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21598 ac_prev=srcdir ;;
21599 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21601 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21602 ac_prev=prefix ;;
21603 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21606 case $ac_arg in
21607 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21608 esac
21609 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21610 esac
21611 done
21613 # Always prepend --prefix to ensure using the same prefix
21614 # in subdir configurations.
21615 ac_arg="--prefix=$prefix"
21616 case $ac_arg in
21617 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21618 esac
21619 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21621 ac_popdir=`pwd`
21622 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21624 # Do not complain, so a configure script can configure whichever
21625 # parts of a large source tree are present.
21626 test -d "$srcdir/$ac_dir" || continue
21628 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21629 echo "$as_me:$LINENO: $ac_msg" >&5
21630 echo "$ac_msg" >&6
21631 { as_dir="$ac_dir"
21632 case $as_dir in #(
21633 -*) as_dir=./$as_dir;;
21634 esac
21635 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21636 as_dirs=
21637 while :; do
21638 case $as_dir in #(
21639 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21640 *) as_qdir=$as_dir;;
21641 esac
21642 as_dirs="'$as_qdir' $as_dirs"
21643 as_dir=`$as_dirname -- "$as_dir" ||
21644 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21645 X"$as_dir" : 'X\(//\)[^/]' \| \
21646 X"$as_dir" : 'X\(//\)$' \| \
21647 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21648 echo X"$as_dir" |
21649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21650 s//\1/
21653 /^X\(\/\/\)[^/].*/{
21654 s//\1/
21657 /^X\(\/\/\)$/{
21658 s//\1/
21661 /^X\(\/\).*/{
21662 s//\1/
21665 s/.*/./; q'`
21666 test -d "$as_dir" && break
21667 done
21668 test -z "$as_dirs" || eval "mkdir $as_dirs"
21669 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21670 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21671 { (exit 1); exit 1; }; }; }
21672 ac_builddir=.
21674 case "$ac_dir" in
21675 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21677 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21678 # A ".." for each directory in $ac_dir_suffix.
21679 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21680 case $ac_top_builddir_sub in
21681 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21682 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21683 esac ;;
21684 esac
21685 ac_abs_top_builddir=$ac_pwd
21686 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21687 # for backward compatibility:
21688 ac_top_builddir=$ac_top_build_prefix
21690 case $srcdir in
21691 .) # We are building in place.
21692 ac_srcdir=.
21693 ac_top_srcdir=$ac_top_builddir_sub
21694 ac_abs_top_srcdir=$ac_pwd ;;
21695 [\\/]* | ?:[\\/]* ) # Absolute name.
21696 ac_srcdir=$srcdir$ac_dir_suffix;
21697 ac_top_srcdir=$srcdir
21698 ac_abs_top_srcdir=$srcdir ;;
21699 *) # Relative name.
21700 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21701 ac_top_srcdir=$ac_top_build_prefix$srcdir
21702 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21703 esac
21704 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21707 cd "$ac_dir"
21709 # Check for guested configure; otherwise get Cygnus style configure.
21710 if test -f "$ac_srcdir/configure.gnu"; then
21711 ac_sub_configure=$ac_srcdir/configure.gnu
21712 elif test -f "$ac_srcdir/configure"; then
21713 ac_sub_configure=$ac_srcdir/configure
21714 elif test -f "$ac_srcdir/configure.in"; then
21715 # This should be Cygnus configure.
21716 ac_sub_configure=$ac_aux_dir/configure
21717 else
21718 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21719 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21720 ac_sub_configure=
21723 # The recursion is here.
21724 if test -n "$ac_sub_configure"; then
21725 # Make the cache file name correct relative to the subdirectory.
21726 case $cache_file in
21727 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21728 *) # Relative name.
21729 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21730 esac
21732 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21733 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21734 # The eval makes quoting arguments work.
21735 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21736 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21737 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21738 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21739 { (exit 1); exit 1; }; }
21742 cd "$ac_popdir"
21743 done