Commit testcase for r101213.
[llvm.git] / configure
blob82aaccdb04dae75559aef0ab4dd579c767254d2b
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"
2002 llvm-gcc) ;;
2003 test-suite) ;;
2004 llvm-test) ;;
2005 poolalloc) ;;
2006 llvm-poolalloc) ;;
2008 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2009 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2011 esac
2013 done
2016 # Make sure we can run config.sub.
2017 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2018 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2019 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2020 { (exit 1); exit 1; }; }
2022 { echo "$as_me:$LINENO: checking build system type" >&5
2023 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2024 if test "${ac_cv_build+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027 ac_build_alias=$build_alias
2028 test "x$ac_build_alias" = x &&
2029 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2030 test "x$ac_build_alias" = x &&
2031 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2032 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2033 { (exit 1); exit 1; }; }
2034 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2035 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2036 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2037 { (exit 1); exit 1; }; }
2040 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2041 echo "${ECHO_T}$ac_cv_build" >&6; }
2042 case $ac_cv_build in
2043 *-*-*) ;;
2044 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2045 echo "$as_me: error: invalid value of canonical build" >&2;}
2046 { (exit 1); exit 1; }; };;
2047 esac
2048 build=$ac_cv_build
2049 ac_save_IFS=$IFS; IFS='-'
2050 set x $ac_cv_build
2051 shift
2052 build_cpu=$1
2053 build_vendor=$2
2054 shift; shift
2055 # Remember, the first character of IFS is used to create $*,
2056 # except with old shells:
2057 build_os=$*
2058 IFS=$ac_save_IFS
2059 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2062 { echo "$as_me:$LINENO: checking host system type" >&5
2063 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2064 if test "${ac_cv_host+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 else
2067 if test "x$host_alias" = x; then
2068 ac_cv_host=$ac_cv_build
2069 else
2070 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2071 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2072 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2073 { (exit 1); exit 1; }; }
2077 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2078 echo "${ECHO_T}$ac_cv_host" >&6; }
2079 case $ac_cv_host in
2080 *-*-*) ;;
2081 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2082 echo "$as_me: error: invalid value of canonical host" >&2;}
2083 { (exit 1); exit 1; }; };;
2084 esac
2085 host=$ac_cv_host
2086 ac_save_IFS=$IFS; IFS='-'
2087 set x $ac_cv_host
2088 shift
2089 host_cpu=$1
2090 host_vendor=$2
2091 shift; shift
2092 # Remember, the first character of IFS is used to create $*,
2093 # except with old shells:
2094 host_os=$*
2095 IFS=$ac_save_IFS
2096 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2099 { echo "$as_me:$LINENO: checking target system type" >&5
2100 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2101 if test "${ac_cv_target+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 else
2104 if test "x$target_alias" = x; then
2105 ac_cv_target=$ac_cv_host
2106 else
2107 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2108 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2109 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2110 { (exit 1); exit 1; }; }
2114 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2115 echo "${ECHO_T}$ac_cv_target" >&6; }
2116 case $ac_cv_target in
2117 *-*-*) ;;
2118 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2119 echo "$as_me: error: invalid value of canonical target" >&2;}
2120 { (exit 1); exit 1; }; };;
2121 esac
2122 target=$ac_cv_target
2123 ac_save_IFS=$IFS; IFS='-'
2124 set x $ac_cv_target
2125 shift
2126 target_cpu=$1
2127 target_vendor=$2
2128 shift; shift
2129 # Remember, the first character of IFS is used to create $*,
2130 # except with old shells:
2131 target_os=$*
2132 IFS=$ac_save_IFS
2133 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2136 # The aliases save the names the user supplied, while $host etc.
2137 # will get canonicalized.
2138 test -n "$target_alias" &&
2139 test "$program_prefix$program_suffix$program_transform_name" = \
2140 NONENONEs,x,x, &&
2141 program_prefix=${target_alias}-
2143 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2144 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2145 if test "${llvm_cv_os_type+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148 case $host in
2149 *-*-aix*)
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="AIX"
2153 llvm_cv_platform_type="Unix" ;;
2154 *-*-irix*)
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="IRIX"
2158 llvm_cv_platform_type="Unix" ;;
2159 *-*-cygwin*)
2160 llvm_cv_link_all_option="-Wl,--whole-archive"
2161 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2162 llvm_cv_os_type="Cygwin"
2163 llvm_cv_platform_type="Unix" ;;
2164 *-*-darwin*)
2165 llvm_cv_link_all_option="-Wl,-all_load"
2166 llvm_cv_no_link_all_option="-Wl,-noall_load"
2167 llvm_cv_os_type="Darwin"
2168 llvm_cv_platform_type="Unix" ;;
2169 *-*-minix*)
2170 llvm_cv_link_all_option="-Wl,-all_load"
2171 llvm_cv_no_link_all_option="-Wl,-noall_load"
2172 llvm_cv_os_type="Minix"
2173 llvm_cv_platform_type="Unix" ;;
2174 *-*-freebsd*)
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="FreeBSD"
2178 llvm_cv_platform_type="Unix" ;;
2179 *-*-openbsd*)
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="OpenBSD"
2183 llvm_cv_platform_type="Unix" ;;
2184 *-*-netbsd*)
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="NetBSD"
2188 llvm_cv_platform_type="Unix" ;;
2189 *-*-dragonfly*)
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="DragonFly"
2193 llvm_cv_platform_type="Unix" ;;
2194 *-*-hpux*)
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="HP-UX"
2198 llvm_cv_platform_type="Unix" ;;
2199 *-*-interix*)
2200 llvm_cv_link_all_option="-Wl,--whole-archive"
2201 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2202 llvm_cv_os_type="Interix"
2203 llvm_cv_platform_type="Unix" ;;
2204 *-*-linux*)
2205 llvm_cv_link_all_option="-Wl,--whole-archive"
2206 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2207 llvm_cv_os_type="Linux"
2208 llvm_cv_platform_type="Unix" ;;
2209 *-*-solaris*)
2210 llvm_cv_link_all_option="-Wl,-z,allextract"
2211 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2212 llvm_cv_os_type="SunOS"
2213 llvm_cv_platform_type="Unix" ;;
2214 *-*-auroraux*)
2215 llvm_cv_link_all_option="-Wl,-z,allextract"
2216 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2217 llvm_cv_os_type="AuroraUX"
2218 llvm_cv_platform_type="Unix" ;;
2219 *-*-win32*)
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="Win32"
2223 llvm_cv_platform_type="Win32" ;;
2224 *-*-mingw*)
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="MingW"
2228 llvm_cv_platform_type="Win32" ;;
2229 *-*-haiku*)
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="Haiku"
2233 llvm_cv_platform_type="Unix" ;;
2234 *-unknown-eabi*)
2235 llvm_cv_link_all_option="-Wl,--whole-archive"
2236 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2237 llvm_cv_os_type="Freestanding"
2238 llvm_cv_platform_type="Unix" ;;
2239 *-unknown-elf*)
2240 llvm_cv_link_all_option="-Wl,--whole-archive"
2241 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2242 llvm_cv_os_type="Freestanding"
2243 llvm_cv_platform_type="Unix" ;;
2245 llvm_cv_link_all_option=""
2246 llvm_cv_no_link_all_option=""
2247 llvm_cv_os_type="Unknown"
2248 llvm_cv_platform_type="Unknown" ;;
2249 esac
2251 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2252 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2254 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2255 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2256 if test "${llvm_cv_target_os_type+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259 case $target in
2260 *-*-aix*)
2261 llvm_cv_target_os_type="AIX" ;;
2262 *-*-irix*)
2263 llvm_cv_target_os_type="IRIX" ;;
2264 *-*-cygwin*)
2265 llvm_cv_target_os_type="Cygwin" ;;
2266 *-*-darwin*)
2267 llvm_cv_target_os_type="Darwin" ;;
2268 *-*-minix*)
2269 llvm_cv_target_os_type="Minix" ;;
2270 *-*-freebsd*)
2271 llvm_cv_target_os_type="FreeBSD" ;;
2272 *-*-openbsd*)
2273 llvm_cv_target_os_type="OpenBSD" ;;
2274 *-*-netbsd*)
2275 llvm_cv_target_os_type="NetBSD" ;;
2276 *-*-dragonfly*)
2277 llvm_cv_target_os_type="DragonFly" ;;
2278 *-*-hpux*)
2279 llvm_cv_target_os_type="HP-UX" ;;
2280 *-*-interix*)
2281 llvm_cv_target_os_type="Interix" ;;
2282 *-*-linux*)
2283 llvm_cv_target_os_type="Linux" ;;
2284 *-*-solaris*)
2285 llvm_cv_target_os_type="SunOS" ;;
2286 *-*-auroraux*)
2287 llvm_cv_target_os_type="AuroraUX" ;;
2288 *-*-win32*)
2289 llvm_cv_target_os_type="Win32" ;;
2290 *-*-mingw*)
2291 llvm_cv_target_os_type="MingW" ;;
2292 *-*-haiku*)
2293 llvm_cv_target_os_type="Haiku" ;;
2294 *-unknown-eabi*)
2295 llvm_cv_target_os_type="Freestanding" ;;
2297 llvm_cv_target_os_type="Unknown" ;;
2298 esac
2300 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2301 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2303 if test "$llvm_cv_os_type" = "Unknown" ; then
2304 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2305 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2306 { (exit 1); exit 1; }; }
2309 OS=$llvm_cv_os_type
2311 HOST_OS=$llvm_cv_os_type
2313 TARGET_OS=$llvm_cv_target_os_type
2316 LINKALL=$llvm_cv_link_all_option
2318 NOLINKALL=$llvm_cv_no_link_all_option
2321 case $llvm_cv_platform_type in
2322 Unix)
2324 cat >>confdefs.h <<\_ACEOF
2325 #define LLVM_ON_UNIX 1
2326 _ACEOF
2328 LLVM_ON_UNIX=1
2330 LLVM_ON_WIN32=0
2333 Win32)
2335 cat >>confdefs.h <<\_ACEOF
2336 #define LLVM_ON_WIN32 1
2337 _ACEOF
2339 LLVM_ON_UNIX=0
2341 LLVM_ON_WIN32=1
2344 esac
2346 { echo "$as_me:$LINENO: checking target architecture" >&5
2347 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2348 if test "${llvm_cv_target_arch+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351 case $target in
2352 i?86-*) llvm_cv_target_arch="x86" ;;
2353 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2354 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2355 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2356 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2357 arm*-*) llvm_cv_target_arch="ARM" ;;
2358 mips-*) llvm_cv_target_arch="Mips" ;;
2359 pic16-*) llvm_cv_target_arch="PIC16" ;;
2360 xcore-*) llvm_cv_target_arch="XCore" ;;
2361 msp430-*) llvm_cv_target_arch="MSP430" ;;
2362 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2363 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2364 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2365 *) llvm_cv_target_arch="Unknown" ;;
2366 esac
2368 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2369 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2371 if test "$llvm_cv_target_arch" = "Unknown" ; then
2372 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2373 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2376 # Determine the LLVM native architecture for the target
2377 case "$llvm_cv_target_arch" in
2378 x86) LLVM_NATIVE_ARCH="X86" ;;
2379 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2380 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2381 esac
2383 ARCH=$llvm_cv_target_arch
2386 ac_ext=c
2387 ac_cpp='$CPP $CPPFLAGS'
2388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2391 if test -n "$ac_tool_prefix"; then
2392 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2393 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2396 if test "${ac_cv_prog_CC+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399 if test -n "$CC"; then
2400 ac_cv_prog_CC="$CC" # Let the user override the test.
2401 else
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 for as_dir in $PATH
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2409 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411 break 2
2413 done
2414 done
2415 IFS=$as_save_IFS
2419 CC=$ac_cv_prog_CC
2420 if test -n "$CC"; then
2421 { echo "$as_me:$LINENO: result: $CC" >&5
2422 echo "${ECHO_T}$CC" >&6; }
2423 else
2424 { echo "$as_me:$LINENO: result: no" >&5
2425 echo "${ECHO_T}no" >&6; }
2430 if test -z "$ac_cv_prog_CC"; then
2431 ac_ct_CC=$CC
2432 # Extract the first word of "gcc", so it can be a program name with args.
2433 set dummy gcc; ac_word=$2
2434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2436 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439 if test -n "$ac_ct_CC"; then
2440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2441 else
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2449 ac_cv_prog_ac_ct_CC="gcc"
2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 break 2
2453 done
2454 done
2455 IFS=$as_save_IFS
2459 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2460 if test -n "$ac_ct_CC"; then
2461 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2462 echo "${ECHO_T}$ac_ct_CC" >&6; }
2463 else
2464 { echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6; }
2468 if test "x$ac_ct_CC" = x; then
2469 CC=""
2470 else
2471 case $cross_compiling:$ac_tool_warned in
2472 yes:)
2473 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2474 whose name does not start with the host triplet. If you think this
2475 configuration is useful to you, please write to autoconf@gnu.org." >&5
2476 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2477 whose name does not start with the host triplet. If you think this
2478 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2479 ac_tool_warned=yes ;;
2480 esac
2481 CC=$ac_ct_CC
2483 else
2484 CC="$ac_cv_prog_CC"
2487 if test -z "$CC"; then
2488 if test -n "$ac_tool_prefix"; then
2489 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2490 set dummy ${ac_tool_prefix}cc; ac_word=$2
2491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493 if test "${ac_cv_prog_CC+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2495 else
2496 if test -n "$CC"; then
2497 ac_cv_prog_CC="$CC" # Let the user override the test.
2498 else
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 for as_dir in $PATH
2502 IFS=$as_save_IFS
2503 test -z "$as_dir" && as_dir=.
2504 for ac_exec_ext in '' $ac_executable_extensions; do
2505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2506 ac_cv_prog_CC="${ac_tool_prefix}cc"
2507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2508 break 2
2510 done
2511 done
2512 IFS=$as_save_IFS
2516 CC=$ac_cv_prog_CC
2517 if test -n "$CC"; then
2518 { echo "$as_me:$LINENO: result: $CC" >&5
2519 echo "${ECHO_T}$CC" >&6; }
2520 else
2521 { echo "$as_me:$LINENO: result: no" >&5
2522 echo "${ECHO_T}no" >&6; }
2528 if test -z "$CC"; then
2529 # Extract the first word of "cc", so it can be a program name with args.
2530 set dummy cc; ac_word=$2
2531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2533 if test "${ac_cv_prog_CC+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
2535 else
2536 if test -n "$CC"; then
2537 ac_cv_prog_CC="$CC" # Let the user override the test.
2538 else
2539 ac_prog_rejected=no
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2547 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2548 ac_prog_rejected=yes
2549 continue
2551 ac_cv_prog_CC="cc"
2552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553 break 2
2555 done
2556 done
2557 IFS=$as_save_IFS
2559 if test $ac_prog_rejected = yes; then
2560 # We found a bogon in the path, so make sure we never use it.
2561 set dummy $ac_cv_prog_CC
2562 shift
2563 if test $# != 0; then
2564 # We chose a different compiler from the bogus one.
2565 # However, it has the same basename, so the bogon will be chosen
2566 # first if we set CC to just the basename; use the full file name.
2567 shift
2568 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2573 CC=$ac_cv_prog_CC
2574 if test -n "$CC"; then
2575 { echo "$as_me:$LINENO: result: $CC" >&5
2576 echo "${ECHO_T}$CC" >&6; }
2577 else
2578 { echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6; }
2584 if test -z "$CC"; then
2585 if test -n "$ac_tool_prefix"; then
2586 for ac_prog in cl.exe
2588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2589 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2592 if test "${ac_cv_prog_CC+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 else
2595 if test -n "$CC"; then
2596 ac_cv_prog_CC="$CC" # Let the user override the test.
2597 else
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2605 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 break 2
2609 done
2610 done
2611 IFS=$as_save_IFS
2615 CC=$ac_cv_prog_CC
2616 if test -n "$CC"; then
2617 { echo "$as_me:$LINENO: result: $CC" >&5
2618 echo "${ECHO_T}$CC" >&6; }
2619 else
2620 { echo "$as_me:$LINENO: result: no" >&5
2621 echo "${ECHO_T}no" >&6; }
2625 test -n "$CC" && break
2626 done
2628 if test -z "$CC"; then
2629 ac_ct_CC=$CC
2630 for ac_prog in cl.exe
2632 # Extract the first word of "$ac_prog", so it can be a program name with args.
2633 set dummy $ac_prog; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639 if test -n "$ac_ct_CC"; then
2640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_ac_ct_CC="$ac_prog"
2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 break 2
2653 done
2654 done
2655 IFS=$as_save_IFS
2659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2660 if test -n "$ac_ct_CC"; then
2661 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2662 echo "${ECHO_T}$ac_ct_CC" >&6; }
2663 else
2664 { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2669 test -n "$ac_ct_CC" && break
2670 done
2672 if test "x$ac_ct_CC" = x; then
2673 CC=""
2674 else
2675 case $cross_compiling:$ac_tool_warned in
2676 yes:)
2677 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2678 whose name does not start with the host triplet. If you think this
2679 configuration is useful to you, please write to autoconf@gnu.org." >&5
2680 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2681 whose name does not start with the host triplet. If you think this
2682 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2683 ac_tool_warned=yes ;;
2684 esac
2685 CC=$ac_ct_CC
2692 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2693 See \`config.log' for more details." >&5
2694 echo "$as_me: error: no acceptable C compiler found in \$PATH
2695 See \`config.log' for more details." >&2;}
2696 { (exit 1); exit 1; }; }
2698 # Provide some information about the compiler.
2699 echo "$as_me:$LINENO: checking for C compiler version" >&5
2700 ac_compiler=`set X $ac_compile; echo $2`
2701 { (ac_try="$ac_compiler --version >&5"
2702 case "(($ac_try" in
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2705 esac
2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_compiler --version >&5") 2>&5
2708 ac_status=$?
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }
2711 { (ac_try="$ac_compiler -v >&5"
2712 case "(($ac_try" in
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2715 esac
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717 (eval "$ac_compiler -v >&5") 2>&5
2718 ac_status=$?
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }
2721 { (ac_try="$ac_compiler -V >&5"
2722 case "(($ac_try" in
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2725 esac
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_compiler -V >&5") 2>&5
2728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }
2732 cat >conftest.$ac_ext <<_ACEOF
2733 /* confdefs.h. */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2740 main ()
2744 return 0;
2746 _ACEOF
2747 ac_clean_files_save=$ac_clean_files
2748 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2749 # Try to create an executable without -o first, disregard a.out.
2750 # It will help us diagnose broken compilers, and finding out an intuition
2751 # of exeext.
2752 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2753 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2754 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2756 # List of possible output files, starting from the most likely.
2757 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2758 # only as a last resort. b.out is created by i960 compilers.
2759 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2761 # The IRIX 6 linker writes into existing files which may not be
2762 # executable, retaining their permissions. Remove them first so a
2763 # subsequent execution test works.
2764 ac_rmfiles=
2765 for ac_file in $ac_files
2767 case $ac_file in
2768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2769 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2770 esac
2771 done
2772 rm -f $ac_rmfiles
2774 if { (ac_try="$ac_link_default"
2775 case "(($ac_try" in
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2778 esac
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_link_default") 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; then
2784 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2785 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2786 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2787 # so that the user can short-circuit this test for compilers unknown to
2788 # Autoconf.
2789 for ac_file in $ac_files
2791 test -f "$ac_file" || continue
2792 case $ac_file in
2793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2795 [ab].out )
2796 # We found the default executable, but exeext='' is most
2797 # certainly right.
2798 break;;
2799 *.* )
2800 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2801 then :; else
2802 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2804 # We set ac_cv_exeext here because the later test for it is not
2805 # safe: cross compilers may not add the suffix if given an `-o'
2806 # argument, so we may need to know it at that point already.
2807 # Even if this section looks crufty: it has the advantage of
2808 # actually working.
2809 break;;
2811 break;;
2812 esac
2813 done
2814 test "$ac_cv_exeext" = no && ac_cv_exeext=
2816 else
2817 echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2820 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2821 See \`config.log' for more details." >&5
2822 echo "$as_me: error: C compiler cannot create executables
2823 See \`config.log' for more details." >&2;}
2824 { (exit 77); exit 77; }; }
2827 ac_exeext=$ac_cv_exeext
2828 { echo "$as_me:$LINENO: result: $ac_file" >&5
2829 echo "${ECHO_T}$ac_file" >&6; }
2831 # Check that the compiler produces executables we can run. If not, either
2832 # the compiler is broken, or we cross compile.
2833 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2834 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2835 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2836 # If not cross compiling, check that we can run a simple program.
2837 if test "$cross_compiling" != yes; then
2838 if { ac_try='./$ac_file'
2839 { (case "(($ac_try" in
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2842 esac
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844 (eval "$ac_try") 2>&5
2845 ac_status=$?
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2848 cross_compiling=no
2849 else
2850 if test "$cross_compiling" = maybe; then
2851 cross_compiling=yes
2852 else
2853 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2854 If you meant to cross compile, use \`--host'.
2855 See \`config.log' for more details." >&5
2856 echo "$as_me: error: cannot run C compiled programs.
2857 If you meant to cross compile, use \`--host'.
2858 See \`config.log' for more details." >&2;}
2859 { (exit 1); exit 1; }; }
2863 { echo "$as_me:$LINENO: result: yes" >&5
2864 echo "${ECHO_T}yes" >&6; }
2866 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2867 ac_clean_files=$ac_clean_files_save
2868 # Check that the compiler produces executables we can run. If not, either
2869 # the compiler is broken, or we cross compile.
2870 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2871 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2872 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2873 echo "${ECHO_T}$cross_compiling" >&6; }
2875 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2876 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2877 if { (ac_try="$ac_link"
2878 case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881 esac
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_link") 2>&5
2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; then
2887 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2888 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2889 # work properly (i.e., refer to `conftest.exe'), while it won't with
2890 # `rm'.
2891 for ac_file in conftest.exe conftest conftest.*; do
2892 test -f "$ac_file" || continue
2893 case $ac_file in
2894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2895 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2896 break;;
2897 * ) break;;
2898 esac
2899 done
2900 else
2901 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2904 See \`config.log' for more details." >&2;}
2905 { (exit 1); exit 1; }; }
2908 rm -f conftest$ac_cv_exeext
2909 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2910 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2912 rm -f conftest.$ac_ext
2913 EXEEXT=$ac_cv_exeext
2914 ac_exeext=$EXEEXT
2915 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2916 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2917 if test "${ac_cv_objext+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 else
2920 cat >conftest.$ac_ext <<_ACEOF
2921 /* confdefs.h. */
2922 _ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2928 main ()
2932 return 0;
2934 _ACEOF
2935 rm -f conftest.o conftest.obj
2936 if { (ac_try="$ac_compile"
2937 case "(($ac_try" in
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2940 esac
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942 (eval "$ac_compile") 2>&5
2943 ac_status=$?
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; then
2946 for ac_file in conftest.o conftest.obj conftest.*; do
2947 test -f "$ac_file" || continue;
2948 case $ac_file in
2949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2950 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2951 break;;
2952 esac
2953 done
2954 else
2955 echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2958 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2959 See \`config.log' for more details." >&5
2960 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2961 See \`config.log' for more details." >&2;}
2962 { (exit 1); exit 1; }; }
2965 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2967 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2968 echo "${ECHO_T}$ac_cv_objext" >&6; }
2969 OBJEXT=$ac_cv_objext
2970 ac_objext=$OBJEXT
2971 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2972 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2973 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976 cat >conftest.$ac_ext <<_ACEOF
2977 /* confdefs.h. */
2978 _ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h. */
2984 main ()
2986 #ifndef __GNUC__
2987 choke me
2988 #endif
2991 return 0;
2993 _ACEOF
2994 rm -f conftest.$ac_objext
2995 if { (ac_try="$ac_compile"
2996 case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
2999 esac
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_compile") 2>conftest.er1
3002 ac_status=$?
3003 grep -v '^ *+' conftest.er1 >conftest.err
3004 rm -f conftest.er1
3005 cat conftest.err >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); } &&
3008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3009 { (case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012 esac
3013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014 (eval "$ac_try") 2>&5
3015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; } &&
3018 { ac_try='test -s conftest.$ac_objext'
3019 { (case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022 esac
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_try") 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; }; then
3028 ac_compiler_gnu=yes
3029 else
3030 echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3033 ac_compiler_gnu=no
3036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3037 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3040 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3041 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3042 GCC=`test $ac_compiler_gnu = yes && echo yes`
3043 ac_test_CFLAGS=${CFLAGS+set}
3044 ac_save_CFLAGS=$CFLAGS
3045 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3046 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3047 if test "${ac_cv_prog_cc_g+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 else
3050 ac_save_c_werror_flag=$ac_c_werror_flag
3051 ac_c_werror_flag=yes
3052 ac_cv_prog_cc_g=no
3053 CFLAGS="-g"
3054 cat >conftest.$ac_ext <<_ACEOF
3055 /* confdefs.h. */
3056 _ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h. */
3062 main ()
3066 return 0;
3068 _ACEOF
3069 rm -f conftest.$ac_objext
3070 if { (ac_try="$ac_compile"
3071 case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074 esac
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_compile") 2>conftest.er1
3077 ac_status=$?
3078 grep -v '^ *+' conftest.er1 >conftest.err
3079 rm -f conftest.er1
3080 cat conftest.err >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } &&
3083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3084 { (case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087 esac
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_try") 2>&5
3090 ac_status=$?
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; } &&
3093 { ac_try='test -s conftest.$ac_objext'
3094 { (case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097 esac
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_try") 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
3103 ac_cv_prog_cc_g=yes
3104 else
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3108 CFLAGS=""
3109 cat >conftest.$ac_ext <<_ACEOF
3110 /* confdefs.h. */
3111 _ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h. */
3117 main ()
3121 return 0;
3123 _ACEOF
3124 rm -f conftest.$ac_objext
3125 if { (ac_try="$ac_compile"
3126 case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129 esac
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_compile") 2>conftest.er1
3132 ac_status=$?
3133 grep -v '^ *+' conftest.er1 >conftest.err
3134 rm -f conftest.er1
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } &&
3138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3139 { (case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142 esac
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_try") 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; } &&
3148 { ac_try='test -s conftest.$ac_objext'
3149 { (case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152 esac
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_try") 2>&5
3155 ac_status=$?
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3159 else
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3163 ac_c_werror_flag=$ac_save_c_werror_flag
3164 CFLAGS="-g"
3165 cat >conftest.$ac_ext <<_ACEOF
3166 /* confdefs.h. */
3167 _ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3173 main ()
3177 return 0;
3179 _ACEOF
3180 rm -f conftest.$ac_objext
3181 if { (ac_try="$ac_compile"
3182 case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compile") 2>conftest.er1
3188 ac_status=$?
3189 grep -v '^ *+' conftest.er1 >conftest.err
3190 rm -f conftest.er1
3191 cat conftest.err >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } &&
3194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3195 { (case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198 esac
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_try") 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; } &&
3204 { ac_try='test -s conftest.$ac_objext'
3205 { (case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208 esac
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_try") 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; }; then
3214 ac_cv_prog_cc_g=yes
3215 else
3216 echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 ac_c_werror_flag=$ac_save_c_werror_flag
3231 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3232 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3233 if test "$ac_test_CFLAGS" = set; then
3234 CFLAGS=$ac_save_CFLAGS
3235 elif test $ac_cv_prog_cc_g = yes; then
3236 if test "$GCC" = yes; then
3237 CFLAGS="-g -O2"
3238 else
3239 CFLAGS="-g"
3241 else
3242 if test "$GCC" = yes; then
3243 CFLAGS="-O2"
3244 else
3245 CFLAGS=
3248 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3249 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3250 if test "${ac_cv_prog_cc_c89+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 else
3253 ac_cv_prog_cc_c89=no
3254 ac_save_CC=$CC
3255 cat >conftest.$ac_ext <<_ACEOF
3256 /* confdefs.h. */
3257 _ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3261 #include <stdarg.h>
3262 #include <stdio.h>
3263 #include <sys/types.h>
3264 #include <sys/stat.h>
3265 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3266 struct buf { int x; };
3267 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3268 static char *e (p, i)
3269 char **p;
3270 int i;
3272 return p[i];
3274 static char *f (char * (*g) (char **, int), char **p, ...)
3276 char *s;
3277 va_list v;
3278 va_start (v,p);
3279 s = g (p, va_arg (v,int));
3280 va_end (v);
3281 return s;
3284 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3285 function prototypes and stuff, but not '\xHH' hex character constants.
3286 These don't provoke an error unfortunately, instead are silently treated
3287 as 'x'. The following induces an error, until -std is added to get
3288 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3289 array size at least. It's necessary to write '\x00'==0 to get something
3290 that's true only with -std. */
3291 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3293 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3294 inside strings and character constants. */
3295 #define FOO(x) 'x'
3296 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3298 int test (int i, double x);
3299 struct s1 {int (*f) (int a);};
3300 struct s2 {int (*f) (double a);};
3301 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3302 int argc;
3303 char **argv;
3305 main ()
3307 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3309 return 0;
3311 _ACEOF
3312 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3313 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3315 CC="$ac_save_CC $ac_arg"
3316 rm -f conftest.$ac_objext
3317 if { (ac_try="$ac_compile"
3318 case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321 esac
3322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323 (eval "$ac_compile") 2>conftest.er1
3324 ac_status=$?
3325 grep -v '^ *+' conftest.er1 >conftest.err
3326 rm -f conftest.er1
3327 cat conftest.err >&5
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); } &&
3330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3331 { (case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334 esac
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336 (eval "$ac_try") 2>&5
3337 ac_status=$?
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; } &&
3340 { ac_try='test -s conftest.$ac_objext'
3341 { (case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344 esac
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346 (eval "$ac_try") 2>&5
3347 ac_status=$?
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
3350 ac_cv_prog_cc_c89=$ac_arg
3351 else
3352 echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3358 rm -f core conftest.err conftest.$ac_objext
3359 test "x$ac_cv_prog_cc_c89" != "xno" && break
3360 done
3361 rm -f conftest.$ac_ext
3362 CC=$ac_save_CC
3365 # AC_CACHE_VAL
3366 case "x$ac_cv_prog_cc_c89" in
3368 { echo "$as_me:$LINENO: result: none needed" >&5
3369 echo "${ECHO_T}none needed" >&6; } ;;
3370 xno)
3371 { echo "$as_me:$LINENO: result: unsupported" >&5
3372 echo "${ECHO_T}unsupported" >&6; } ;;
3374 CC="$CC $ac_cv_prog_cc_c89"
3375 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3376 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3377 esac
3380 ac_ext=c
3381 ac_cpp='$CPP $CPPFLAGS'
3382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3387 ac_ext=c
3388 ac_cpp='$CPP $CPPFLAGS'
3389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3393 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3394 # On Suns, sometimes $CPP names a directory.
3395 if test -n "$CPP" && test -d "$CPP"; then
3396 CPP=
3398 if test -z "$CPP"; then
3399 if test "${ac_cv_prog_CPP+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 else
3402 # Double quotes because CPP needs to be expanded
3403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3405 ac_preproc_ok=false
3406 for ac_c_preproc_warn_flag in '' yes
3408 # Use a header file that comes with gcc, so configuring glibc
3409 # with a fresh cross-compiler works.
3410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3411 # <limits.h> exists even on freestanding compilers.
3412 # On the NeXT, cc -E runs the code through the compiler's parser,
3413 # not just through cpp. "Syntax error" is here to catch this case.
3414 cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h. */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3420 #ifdef __STDC__
3421 # include <limits.h>
3422 #else
3423 # include <assert.h>
3424 #endif
3425 Syntax error
3426 _ACEOF
3427 if { (ac_try="$ac_cpp conftest.$ac_ext"
3428 case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431 esac
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3434 ac_status=$?
3435 grep -v '^ *+' conftest.er1 >conftest.err
3436 rm -f conftest.er1
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } >/dev/null; then
3440 if test -s conftest.err; then
3441 ac_cpp_err=$ac_c_preproc_warn_flag
3442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3443 else
3444 ac_cpp_err=
3446 else
3447 ac_cpp_err=yes
3449 if test -z "$ac_cpp_err"; then
3451 else
3452 echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3455 # Broken: fails on valid input.
3456 continue
3459 rm -f conftest.err conftest.$ac_ext
3461 # OK, works on sane cases. Now check whether nonexistent headers
3462 # can be detected and how.
3463 cat >conftest.$ac_ext <<_ACEOF
3464 /* confdefs.h. */
3465 _ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3469 #include <ac_nonexistent.h>
3470 _ACEOF
3471 if { (ac_try="$ac_cpp conftest.$ac_ext"
3472 case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475 esac
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3478 ac_status=$?
3479 grep -v '^ *+' conftest.er1 >conftest.err
3480 rm -f conftest.er1
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } >/dev/null; then
3484 if test -s conftest.err; then
3485 ac_cpp_err=$ac_c_preproc_warn_flag
3486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3487 else
3488 ac_cpp_err=
3490 else
3491 ac_cpp_err=yes
3493 if test -z "$ac_cpp_err"; then
3494 # Broken: success on invalid input.
3495 continue
3496 else
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 # Passes both tests.
3501 ac_preproc_ok=:
3502 break
3505 rm -f conftest.err conftest.$ac_ext
3507 done
3508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3509 rm -f conftest.err conftest.$ac_ext
3510 if $ac_preproc_ok; then
3511 break
3514 done
3515 ac_cv_prog_CPP=$CPP
3518 CPP=$ac_cv_prog_CPP
3519 else
3520 ac_cv_prog_CPP=$CPP
3522 { echo "$as_me:$LINENO: result: $CPP" >&5
3523 echo "${ECHO_T}$CPP" >&6; }
3524 ac_preproc_ok=false
3525 for ac_c_preproc_warn_flag in '' yes
3527 # Use a header file that comes with gcc, so configuring glibc
3528 # with a fresh cross-compiler works.
3529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3530 # <limits.h> exists even on freestanding compilers.
3531 # On the NeXT, cc -E runs the code through the compiler's parser,
3532 # not just through cpp. "Syntax error" is here to catch this case.
3533 cat >conftest.$ac_ext <<_ACEOF
3534 /* confdefs.h. */
3535 _ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3539 #ifdef __STDC__
3540 # include <limits.h>
3541 #else
3542 # include <assert.h>
3543 #endif
3544 Syntax error
3545 _ACEOF
3546 if { (ac_try="$ac_cpp conftest.$ac_ext"
3547 case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3550 esac
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3553 ac_status=$?
3554 grep -v '^ *+' conftest.er1 >conftest.err
3555 rm -f conftest.er1
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } >/dev/null; then
3559 if test -s conftest.err; then
3560 ac_cpp_err=$ac_c_preproc_warn_flag
3561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3562 else
3563 ac_cpp_err=
3565 else
3566 ac_cpp_err=yes
3568 if test -z "$ac_cpp_err"; then
3570 else
3571 echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3574 # Broken: fails on valid input.
3575 continue
3578 rm -f conftest.err conftest.$ac_ext
3580 # OK, works on sane cases. Now check whether nonexistent headers
3581 # can be detected and how.
3582 cat >conftest.$ac_ext <<_ACEOF
3583 /* confdefs.h. */
3584 _ACEOF
3585 cat confdefs.h >>conftest.$ac_ext
3586 cat >>conftest.$ac_ext <<_ACEOF
3587 /* end confdefs.h. */
3588 #include <ac_nonexistent.h>
3589 _ACEOF
3590 if { (ac_try="$ac_cpp conftest.$ac_ext"
3591 case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594 esac
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3597 ac_status=$?
3598 grep -v '^ *+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } >/dev/null; then
3603 if test -s conftest.err; then
3604 ac_cpp_err=$ac_c_preproc_warn_flag
3605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3606 else
3607 ac_cpp_err=
3609 else
3610 ac_cpp_err=yes
3612 if test -z "$ac_cpp_err"; then
3613 # Broken: success on invalid input.
3614 continue
3615 else
3616 echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3619 # Passes both tests.
3620 ac_preproc_ok=:
3621 break
3624 rm -f conftest.err conftest.$ac_ext
3626 done
3627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3628 rm -f conftest.err conftest.$ac_ext
3629 if $ac_preproc_ok; then
3631 else
3632 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3633 See \`config.log' for more details." >&5
3634 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3635 See \`config.log' for more details." >&2;}
3636 { (exit 1); exit 1; }; }
3639 ac_ext=c
3640 ac_cpp='$CPP $CPPFLAGS'
3641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3646 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3647 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3648 if test "${ac_cv_path_GREP+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 else
3651 # Extract the first word of "grep ggrep" to use in msg output
3652 if test -z "$GREP"; then
3653 set dummy grep ggrep; ac_prog_name=$2
3654 if test "${ac_cv_path_GREP+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657 ac_path_GREP_found=false
3658 # Loop through the user's path and test for each of PROGNAME-LIST
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_prog in grep ggrep; do
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3667 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3668 # Check for GNU ac_path_GREP and select it if it is found.
3669 # Check for GNU $ac_path_GREP
3670 case `"$ac_path_GREP" --version 2>&1` in
3671 *GNU*)
3672 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3674 ac_count=0
3675 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3676 while :
3678 cat "conftest.in" "conftest.in" >"conftest.tmp"
3679 mv "conftest.tmp" "conftest.in"
3680 cp "conftest.in" "conftest.nl"
3681 echo 'GREP' >> "conftest.nl"
3682 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3684 ac_count=`expr $ac_count + 1`
3685 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3686 # Best one so far, save it but keep looking for a better one
3687 ac_cv_path_GREP="$ac_path_GREP"
3688 ac_path_GREP_max=$ac_count
3690 # 10*(2^10) chars as input seems more than enough
3691 test $ac_count -gt 10 && break
3692 done
3693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3694 esac
3697 $ac_path_GREP_found && break 3
3698 done
3699 done
3701 done
3702 IFS=$as_save_IFS
3707 GREP="$ac_cv_path_GREP"
3708 if test -z "$GREP"; then
3709 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3710 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3711 { (exit 1); exit 1; }; }
3714 else
3715 ac_cv_path_GREP=$GREP
3720 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3721 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3722 GREP="$ac_cv_path_GREP"
3725 { echo "$as_me:$LINENO: checking for egrep" >&5
3726 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3727 if test "${ac_cv_path_EGREP+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3731 then ac_cv_path_EGREP="$GREP -E"
3732 else
3733 # Extract the first word of "egrep" to use in msg output
3734 if test -z "$EGREP"; then
3735 set dummy egrep; ac_prog_name=$2
3736 if test "${ac_cv_path_EGREP+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739 ac_path_EGREP_found=false
3740 # Loop through the user's path and test for each of PROGNAME-LIST
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
3746 for ac_prog in egrep; do
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3749 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3750 # Check for GNU ac_path_EGREP and select it if it is found.
3751 # Check for GNU $ac_path_EGREP
3752 case `"$ac_path_EGREP" --version 2>&1` in
3753 *GNU*)
3754 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3756 ac_count=0
3757 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3758 while :
3760 cat "conftest.in" "conftest.in" >"conftest.tmp"
3761 mv "conftest.tmp" "conftest.in"
3762 cp "conftest.in" "conftest.nl"
3763 echo 'EGREP' >> "conftest.nl"
3764 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3766 ac_count=`expr $ac_count + 1`
3767 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3768 # Best one so far, save it but keep looking for a better one
3769 ac_cv_path_EGREP="$ac_path_EGREP"
3770 ac_path_EGREP_max=$ac_count
3772 # 10*(2^10) chars as input seems more than enough
3773 test $ac_count -gt 10 && break
3774 done
3775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3776 esac
3779 $ac_path_EGREP_found && break 3
3780 done
3781 done
3783 done
3784 IFS=$as_save_IFS
3789 EGREP="$ac_cv_path_EGREP"
3790 if test -z "$EGREP"; then
3791 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3792 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3793 { (exit 1); exit 1; }; }
3796 else
3797 ac_cv_path_EGREP=$EGREP
3803 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3804 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3805 EGREP="$ac_cv_path_EGREP"
3808 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3809 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3810 if test "${ac_cv_header_stdc+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 else
3813 cat >conftest.$ac_ext <<_ACEOF
3814 /* confdefs.h. */
3815 _ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3819 #include <stdlib.h>
3820 #include <stdarg.h>
3821 #include <string.h>
3822 #include <float.h>
3825 main ()
3829 return 0;
3831 _ACEOF
3832 rm -f conftest.$ac_objext
3833 if { (ac_try="$ac_compile"
3834 case "(($ac_try" in
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3837 esac
3838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839 (eval "$ac_compile") 2>conftest.er1
3840 ac_status=$?
3841 grep -v '^ *+' conftest.er1 >conftest.err
3842 rm -f conftest.er1
3843 cat conftest.err >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); } &&
3846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3847 { (case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850 esac
3851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852 (eval "$ac_try") 2>&5
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; } &&
3856 { ac_try='test -s conftest.$ac_objext'
3857 { (case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3860 esac
3861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862 (eval "$ac_try") 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 ac_cv_header_stdc=yes
3867 else
3868 echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3871 ac_cv_header_stdc=no
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876 if test $ac_cv_header_stdc = yes; then
3877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3878 cat >conftest.$ac_ext <<_ACEOF
3879 /* confdefs.h. */
3880 _ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h. */
3884 #include <string.h>
3886 _ACEOF
3887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3888 $EGREP "memchr" >/dev/null 2>&1; then
3890 else
3891 ac_cv_header_stdc=no
3893 rm -f conftest*
3897 if test $ac_cv_header_stdc = yes; then
3898 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3899 cat >conftest.$ac_ext <<_ACEOF
3900 /* confdefs.h. */
3901 _ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3905 #include <stdlib.h>
3907 _ACEOF
3908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3909 $EGREP "free" >/dev/null 2>&1; then
3911 else
3912 ac_cv_header_stdc=no
3914 rm -f conftest*
3918 if test $ac_cv_header_stdc = yes; then
3919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3920 if test "$cross_compiling" = yes; then
3922 else
3923 cat >conftest.$ac_ext <<_ACEOF
3924 /* confdefs.h. */
3925 _ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3929 #include <ctype.h>
3930 #include <stdlib.h>
3931 #if ((' ' & 0x0FF) == 0x020)
3932 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3933 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3934 #else
3935 # define ISLOWER(c) \
3936 (('a' <= (c) && (c) <= 'i') \
3937 || ('j' <= (c) && (c) <= 'r') \
3938 || ('s' <= (c) && (c) <= 'z'))
3939 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3940 #endif
3942 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3944 main ()
3946 int i;
3947 for (i = 0; i < 256; i++)
3948 if (XOR (islower (i), ISLOWER (i))
3949 || toupper (i) != TOUPPER (i))
3950 return 2;
3951 return 0;
3953 _ACEOF
3954 rm -f conftest$ac_exeext
3955 if { (ac_try="$ac_link"
3956 case "(($ac_try" in
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3959 esac
3960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3961 (eval "$ac_link") 2>&5
3962 ac_status=$?
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3965 { (case "(($ac_try" in
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3968 esac
3969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970 (eval "$ac_try") 2>&5
3971 ac_status=$?
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; }; then
3975 else
3976 echo "$as_me: program exited with status $ac_status" >&5
3977 echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3980 ( exit $ac_status )
3981 ac_cv_header_stdc=no
3983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3989 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3990 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3991 if test $ac_cv_header_stdc = yes; then
3993 cat >>confdefs.h <<\_ACEOF
3994 #define STDC_HEADERS 1
3995 _ACEOF
3999 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4009 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4010 inttypes.h stdint.h unistd.h
4012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018 cat >conftest.$ac_ext <<_ACEOF
4019 /* confdefs.h. */
4020 _ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4024 $ac_includes_default
4026 #include <$ac_header>
4027 _ACEOF
4028 rm -f conftest.$ac_objext
4029 if { (ac_try="$ac_compile"
4030 case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4033 esac
4034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035 (eval "$ac_compile") 2>conftest.er1
4036 ac_status=$?
4037 grep -v '^ *+' conftest.er1 >conftest.err
4038 rm -f conftest.er1
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } &&
4042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4043 { (case "(($ac_try" in
4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4046 esac
4047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4048 (eval "$ac_try") 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; } &&
4052 { ac_try='test -s conftest.$ac_objext'
4053 { (case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4056 esac
4057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058 (eval "$ac_try") 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; }; then
4062 eval "$as_ac_Header=yes"
4063 else
4064 echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4067 eval "$as_ac_Header=no"
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 ac_res=`eval echo '${'$as_ac_Header'}'`
4073 { echo "$as_me:$LINENO: result: $ac_res" >&5
4074 echo "${ECHO_T}$ac_res" >&6; }
4075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4076 cat >>confdefs.h <<_ACEOF
4077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4078 _ACEOF
4082 done
4085 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4086 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4087 if test "${ac_cv_c_bigendian+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090 # See if sys/param.h defines the BYTE_ORDER macro.
4091 cat >conftest.$ac_ext <<_ACEOF
4092 /* confdefs.h. */
4093 _ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h. */
4097 #include <sys/types.h>
4098 #include <sys/param.h>
4101 main ()
4103 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4104 bogus endian macros
4105 #endif
4108 return 0;
4110 _ACEOF
4111 rm -f conftest.$ac_objext
4112 if { (ac_try="$ac_compile"
4113 case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4116 esac
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_compile") 2>conftest.er1
4119 ac_status=$?
4120 grep -v '^ *+' conftest.er1 >conftest.err
4121 rm -f conftest.er1
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } &&
4125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4126 { (case "(($ac_try" in
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4129 esac
4130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131 (eval "$ac_try") 2>&5
4132 ac_status=$?
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); }; } &&
4135 { ac_try='test -s conftest.$ac_objext'
4136 { (case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4139 esac
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_try") 2>&5
4142 ac_status=$?
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; }; then
4145 # It does; now see whether it defined to BIG_ENDIAN or not.
4146 cat >conftest.$ac_ext <<_ACEOF
4147 /* confdefs.h. */
4148 _ACEOF
4149 cat confdefs.h >>conftest.$ac_ext
4150 cat >>conftest.$ac_ext <<_ACEOF
4151 /* end confdefs.h. */
4152 #include <sys/types.h>
4153 #include <sys/param.h>
4156 main ()
4158 #if BYTE_ORDER != BIG_ENDIAN
4159 not big endian
4160 #endif
4163 return 0;
4165 _ACEOF
4166 rm -f conftest.$ac_objext
4167 if { (ac_try="$ac_compile"
4168 case "(($ac_try" in
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4171 esac
4172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173 (eval "$ac_compile") 2>conftest.er1
4174 ac_status=$?
4175 grep -v '^ *+' conftest.er1 >conftest.err
4176 rm -f conftest.er1
4177 cat conftest.err >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } &&
4180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4181 { (case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4184 esac
4185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186 (eval "$ac_try") 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest.$ac_objext'
4191 { (case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4194 esac
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_try") 2>&5
4197 ac_status=$?
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
4200 ac_cv_c_bigendian=yes
4201 else
4202 echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4205 ac_cv_c_bigendian=no
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 else
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4213 # It does not; compile a test program.
4214 if test "$cross_compiling" = yes; then
4215 # try to guess the endianness by grepping values into an object file
4216 ac_cv_c_bigendian=unknown
4217 cat >conftest.$ac_ext <<_ACEOF
4218 /* confdefs.h. */
4219 _ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4224 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4225 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4226 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4227 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4228 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4230 main ()
4232 _ascii (); _ebcdic ();
4234 return 0;
4236 _ACEOF
4237 rm -f conftest.$ac_objext
4238 if { (ac_try="$ac_compile"
4239 case "(($ac_try" in
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4242 esac
4243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244 (eval "$ac_compile") 2>conftest.er1
4245 ac_status=$?
4246 grep -v '^ *+' conftest.er1 >conftest.err
4247 rm -f conftest.er1
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } &&
4251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4252 { (case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4255 esac
4256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_try") 2>&5
4258 ac_status=$?
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; } &&
4261 { ac_try='test -s conftest.$ac_objext'
4262 { (case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4265 esac
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_try") 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; }; then
4271 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4272 ac_cv_c_bigendian=yes
4274 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4275 if test "$ac_cv_c_bigendian" = unknown; then
4276 ac_cv_c_bigendian=no
4277 else
4278 # finding both strings is unlikely to happen, but who knows?
4279 ac_cv_c_bigendian=unknown
4282 else
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290 else
4291 cat >conftest.$ac_ext <<_ACEOF
4292 /* confdefs.h. */
4293 _ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h. */
4297 $ac_includes_default
4299 main ()
4302 /* Are we little or big endian? From Harbison&Steele. */
4303 union
4305 long int l;
4306 char c[sizeof (long int)];
4307 } u;
4308 u.l = 1;
4309 return u.c[sizeof (long int) - 1] == 1;
4312 return 0;
4314 _ACEOF
4315 rm -f conftest$ac_exeext
4316 if { (ac_try="$ac_link"
4317 case "(($ac_try" in
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4320 esac
4321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322 (eval "$ac_link") 2>&5
4323 ac_status=$?
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4326 { (case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4329 esac
4330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4331 (eval "$ac_try") 2>&5
4332 ac_status=$?
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; }; then
4335 ac_cv_c_bigendian=no
4336 else
4337 echo "$as_me: program exited with status $ac_status" >&5
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4341 ( exit $ac_status )
4342 ac_cv_c_bigendian=yes
4344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4353 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4354 case $ac_cv_c_bigendian in
4355 yes)
4356 ENDIAN=big
4359 ENDIAN=little
4362 { { echo "$as_me:$LINENO: error: unknown endianness
4363 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4364 echo "$as_me: error: unknown endianness
4365 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4366 { (exit 1); exit 1; }; } ;;
4367 esac
4370 if test "$cross_compiling" = yes; then
4371 LLVM_CROSS_COMPILING=1
4374 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4375 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4376 if test "${ac_cv_build_exeext+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4380 ac_cv_build_exeext=.exe
4381 else
4382 ac_build_prefix=${build_alias}-
4384 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4385 set dummy ${ac_build_prefix}gcc; ac_word=$2
4386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4388 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 else
4391 if test -n "$BUILD_CC"; then
4392 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4393 else
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH
4397 IFS=$as_save_IFS
4398 test -z "$as_dir" && as_dir=.
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4401 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4403 break 2
4405 done
4406 done
4407 IFS=$as_save_IFS
4411 BUILD_CC=$ac_cv_prog_BUILD_CC
4412 if test -n "$BUILD_CC"; then
4413 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4414 echo "${ECHO_T}$BUILD_CC" >&6; }
4415 else
4416 { echo "$as_me:$LINENO: result: no" >&5
4417 echo "${ECHO_T}no" >&6; }
4421 if test -z "$BUILD_CC"; then
4422 # Extract the first word of "gcc", so it can be a program name with args.
4423 set dummy gcc; ac_word=$2
4424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4426 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4428 else
4429 if test -n "$BUILD_CC"; then
4430 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4431 else
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4439 ac_cv_prog_BUILD_CC="gcc"
4440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 break 2
4443 done
4444 done
4445 IFS=$as_save_IFS
4449 BUILD_CC=$ac_cv_prog_BUILD_CC
4450 if test -n "$BUILD_CC"; then
4451 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4452 echo "${ECHO_T}$BUILD_CC" >&6; }
4453 else
4454 { echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6; }
4459 if test -z "$BUILD_CC"; then
4460 # Extract the first word of "cc", so it can be a program name with args.
4461 set dummy cc; ac_word=$2
4462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4464 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 else
4467 if test -n "$BUILD_CC"; then
4468 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4469 else
4470 ac_prog_rejected=no
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4479 ac_prog_rejected=yes
4480 continue
4482 ac_cv_prog_BUILD_CC="cc"
4483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 break 2
4486 done
4487 done
4488 IFS=$as_save_IFS
4490 if test $ac_prog_rejected = yes; then
4491 # We found a bogon in the path, so make sure we never use it.
4492 set dummy $ac_cv_prog_BUILD_CC
4493 shift
4494 if test $# != 0; then
4495 # We chose a different compiler from the bogus one.
4496 # However, it has the same basename, so the bogon will be chosen
4497 # first if we set BUILD_CC to just the basename; use the full file name.
4498 shift
4499 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4504 BUILD_CC=$ac_cv_prog_BUILD_CC
4505 if test -n "$BUILD_CC"; then
4506 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4507 echo "${ECHO_T}$BUILD_CC" >&6; }
4508 else
4509 { echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6; }
4516 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4517 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4518 { (exit 1); exit 1; }; }
4519 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4520 rm -f conftest*
4521 echo 'int main () { return 0; }' > conftest.$ac_ext
4522 ac_cv_build_exeext=
4523 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4524 (eval $ac_build_link) 2>&5
4525 ac_status=$?
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; then
4528 for file in conftest.*; do
4529 case $file in
4530 *.c | *.o | *.obj | *.dSYM) ;;
4531 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4532 esac
4533 done
4534 else
4535 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4536 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4537 { (exit 1); exit 1; }; }
4539 rm -f conftest*
4540 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4544 BUILD_EXEEXT=""
4545 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4546 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4547 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4548 ac_build_exeext=$BUILD_EXEEXT
4550 ac_build_prefix=${build_alias}-
4551 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4552 set dummy ${ac_build_prefix}g++; ac_word=$2
4553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4555 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558 if test -n "$BUILD_CXX"; then
4559 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4568 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4572 done
4573 done
4574 IFS=$as_save_IFS
4578 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4579 if test -n "$BUILD_CXX"; then
4580 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4581 echo "${ECHO_T}$BUILD_CXX" >&6; }
4582 else
4583 { echo "$as_me:$LINENO: result: no" >&5
4584 echo "${ECHO_T}no" >&6; }
4588 if test -z "$BUILD_CXX"; then
4589 # Extract the first word of "g++", so it can be a program name with args.
4590 set dummy g++; ac_word=$2
4591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4593 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596 if test -n "$BUILD_CXX"; then
4597 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4606 ac_cv_prog_BUILD_CXX="g++"
4607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 break 2
4610 done
4611 done
4612 IFS=$as_save_IFS
4616 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4617 if test -n "$BUILD_CXX"; then
4618 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4619 echo "${ECHO_T}$BUILD_CXX" >&6; }
4620 else
4621 { echo "$as_me:$LINENO: result: no" >&5
4622 echo "${ECHO_T}no" >&6; }
4626 if test -z "$BUILD_CXX"; then
4627 # Extract the first word of "c++", so it can be a program name with args.
4628 set dummy c++; ac_word=$2
4629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4631 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 else
4634 if test -n "$BUILD_CXX"; then
4635 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4636 else
4637 ac_prog_rejected=no
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4645 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4646 ac_prog_rejected=yes
4647 continue
4649 ac_cv_prog_BUILD_CXX="c++"
4650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4653 done
4654 done
4655 IFS=$as_save_IFS
4657 if test $ac_prog_rejected = yes; then
4658 # We found a bogon in the path, so make sure we never use it.
4659 set dummy $ac_cv_prog_BUILD_CXX
4660 shift
4661 if test $# != 0; then
4662 # We chose a different compiler from the bogus one.
4663 # However, it has the same basename, so the bogon will be chosen
4664 # first if we set BUILD_CXX to just the basename; use the full file name.
4665 shift
4666 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4671 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4672 if test -n "$BUILD_CXX"; then
4673 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4674 echo "${ECHO_T}$BUILD_CXX" >&6; }
4675 else
4676 { echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6; }
4683 else
4684 LLVM_CROSS_COMPILING=0
4688 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4689 cvsbuild="yes"
4690 optimize="no"
4691 CVSBUILD=CVSBUILD=1
4693 else
4694 cvsbuild="no"
4695 optimize="yes"
4699 # Check whether --enable-optimized was given.
4700 if test "${enable_optimized+set}" = set; then
4701 enableval=$enable_optimized;
4702 else
4703 enableval=$optimize
4706 if test ${enableval} = "no" ; then
4707 ENABLE_OPTIMIZED=
4709 else
4710 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4714 # Check whether --enable-profiling was given.
4715 if test "${enable_profiling+set}" = set; then
4716 enableval=$enable_profiling;
4717 else
4718 enableval="no"
4721 if test ${enableval} = "no" ; then
4722 ENABLE_PROFILING=
4724 else
4725 ENABLE_PROFILING=ENABLE_PROFILING=1
4729 # Check whether --enable-assertions was given.
4730 if test "${enable_assertions+set}" = set; then
4731 enableval=$enable_assertions;
4732 else
4733 enableval="yes"
4736 if test ${enableval} = "yes" ; then
4737 DISABLE_ASSERTIONS=
4739 else
4740 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4744 # Check whether --enable-expensive-checks was given.
4745 if test "${enable_expensive_checks+set}" = set; then
4746 enableval=$enable_expensive_checks;
4747 else
4748 enableval="no"
4751 if test ${enableval} = "yes" ; then
4752 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4754 EXPENSIVE_CHECKS=yes
4756 else
4757 ENABLE_EXPENSIVE_CHECKS=
4759 EXPENSIVE_CHECKS=no
4763 # Check whether --enable-debug-runtime was given.
4764 if test "${enable_debug_runtime+set}" = set; then
4765 enableval=$enable_debug_runtime;
4766 else
4767 enableval=no
4770 if test ${enableval} = "no" ; then
4771 DEBUG_RUNTIME=
4773 else
4774 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4778 # Check whether --enable-debug-symbols was given.
4779 if test "${enable_debug_symbols+set}" = set; then
4780 enableval=$enable_debug_symbols;
4781 else
4782 enableval=no
4785 if test ${enableval} = "no" ; then
4786 DEBUG_SYMBOLS=
4788 else
4789 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4793 # Check whether --enable-jit was given.
4794 if test "${enable_jit+set}" = set; then
4795 enableval=$enable_jit;
4796 else
4797 enableval=default
4800 if test ${enableval} = "no"
4801 then
4802 JIT=
4804 else
4805 case "$llvm_cv_target_arch" in
4806 x86) TARGET_HAS_JIT=1
4808 Sparc) TARGET_HAS_JIT=0
4810 PowerPC) TARGET_HAS_JIT=1
4812 x86_64) TARGET_HAS_JIT=1
4814 Alpha) TARGET_HAS_JIT=1
4816 ARM) TARGET_HAS_JIT=1
4818 Mips) TARGET_HAS_JIT=0
4820 PIC16) TARGET_HAS_JIT=0
4822 XCore) TARGET_HAS_JIT=0
4824 MSP430) TARGET_HAS_JIT=0
4826 SystemZ) TARGET_HAS_JIT=0
4828 Blackfin) TARGET_HAS_JIT=0
4830 MBlaze) TARGET_HAS_JIT=0
4832 *) TARGET_HAS_JIT=0
4834 esac
4837 # Check whether --enable-doxygen was given.
4838 if test "${enable_doxygen+set}" = set; then
4839 enableval=$enable_doxygen;
4840 else
4841 enableval=default
4844 case "$enableval" in
4845 yes) ENABLE_DOXYGEN=1
4847 no) ENABLE_DOXYGEN=0
4849 default) ENABLE_DOXYGEN=0
4851 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4852 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4853 { (exit 1); exit 1; }; } ;;
4854 esac
4856 # Check whether --enable-threads was given.
4857 if test "${enable_threads+set}" = set; then
4858 enableval=$enable_threads;
4859 else
4860 enableval=default
4863 case "$enableval" in
4864 yes) ENABLE_THREADS=1
4866 no) ENABLE_THREADS=0
4868 default) ENABLE_THREADS=1
4870 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4871 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4872 { (exit 1); exit 1; }; } ;;
4873 esac
4875 cat >>confdefs.h <<_ACEOF
4876 #define ENABLE_THREADS $ENABLE_THREADS
4877 _ACEOF
4880 # Check whether --enable-pic was given.
4881 if test "${enable_pic+set}" = set; then
4882 enableval=$enable_pic;
4883 else
4884 enableval=default
4887 case "$enableval" in
4888 yes) ENABLE_PIC=1
4890 no) ENABLE_PIC=0
4892 default) ENABLE_PIC=1
4894 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4895 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4896 { (exit 1); exit 1; }; } ;;
4897 esac
4899 cat >>confdefs.h <<_ACEOF
4900 #define ENABLE_PIC $ENABLE_PIC
4901 _ACEOF
4904 # Check whether --enable-shared was given.
4905 if test "${enable_shared+set}" = set; then
4906 enableval=$enable_shared;
4907 else
4908 enableval=default
4911 case "$enableval" in
4912 yes) ENABLE_SHARED=1
4914 no) ENABLE_SHARED=0
4916 default) ENABLE_SHARED=0
4918 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4919 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4920 { (exit 1); exit 1; }; } ;;
4921 esac
4923 TARGETS_TO_BUILD=""
4924 # Check whether --enable-targets was given.
4925 if test "${enable_targets+set}" = set; then
4926 enableval=$enable_targets;
4927 else
4928 enableval=all
4931 if test "$enableval" = host-only ; then
4932 enableval=host
4934 case "$enableval" in
4935 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
4936 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4937 case "$a_target" in
4938 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4939 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4940 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4941 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4942 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4943 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4944 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4945 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4946 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4947 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4948 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4949 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4950 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4951 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4952 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4953 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4954 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4955 host) case "$llvm_cv_target_arch" in
4956 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4957 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4958 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4959 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4960 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4961 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4962 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4963 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4964 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4965 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4966 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4967 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4968 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4969 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4970 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4971 echo "$as_me: error: Can not set target to build" >&2;}
4972 { (exit 1); exit 1; }; } ;;
4973 esac ;;
4974 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4975 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4976 { (exit 1); exit 1; }; } ;;
4977 esac
4978 done
4980 esac
4981 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4984 # Determine whether we are building LLVM support for the native architecture.
4985 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4986 for a_target in $TARGETS_TO_BUILD; do
4987 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4988 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4990 cat >>confdefs.h <<_ACEOF
4991 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4992 _ACEOF
4995 done
4997 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4998 # target feature def files.
4999 LLVM_ENUM_TARGETS=""
5000 LLVM_ENUM_ASM_PRINTERS=""
5001 LLVM_ENUM_ASM_PARSERS=""
5002 LLVM_ENUM_DISASSEMBLERS=""
5003 for target_to_build in $TARGETS_TO_BUILD; do
5004 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5005 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5006 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5008 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5009 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5011 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5012 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5014 done
5020 # Check whether --enable-cbe-printf-a was given.
5021 if test "${enable_cbe_printf_a+set}" = set; then
5022 enableval=$enable_cbe_printf_a;
5023 else
5024 enableval=default
5027 case "$enableval" in
5028 yes) ENABLE_CBE_PRINTF_A=1
5030 no) ENABLE_CBE_PRINTF_A=0
5032 default) ENABLE_CBE_PRINTF_A=1
5034 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5035 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5036 { (exit 1); exit 1; }; } ;;
5037 esac
5039 cat >>confdefs.h <<_ACEOF
5040 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5041 _ACEOF
5045 # Check whether --with-llvmgccdir was given.
5046 if test "${with_llvmgccdir+set}" = set; then
5047 withval=$with_llvmgccdir;
5048 else
5049 withval=default
5052 case "$withval" in
5053 default) WITH_LLVMGCCDIR=default ;;
5054 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5055 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5056 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5057 { (exit 1); exit 1; }; } ;;
5058 esac
5061 # Check whether --with-llvmgcc was given.
5062 if test "${with_llvmgcc+set}" = set; then
5063 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5064 WITH_LLVMGCCDIR=""
5069 # Check whether --with-llvmgxx was given.
5070 if test "${with_llvmgxx+set}" = set; then
5071 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5072 WITH_LLVMGCCDIR=""
5076 if test -n "$LLVMGCC"; then
5077 LLVMGCCCOMMAND="$LLVMGCC"
5080 if test -n "$LLVMGXX"; then
5081 LLVMGXXCOMMAND="$LLVMGXX"
5084 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5085 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5086 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5087 { (exit 1); exit 1; }; };
5090 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5091 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5092 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5093 { (exit 1); exit 1; }; };
5097 # Check whether --with-clang was given.
5098 if test "${with_clang+set}" = set; then
5099 withval=$with_clang;
5100 else
5101 with_clang=default
5106 # Check whether --with-built-clang was given.
5107 if test "${with_built_clang+set}" = set; then
5108 withval=$with_built_clang;
5109 else
5110 with_built_clang=check
5114 { echo "$as_me:$LINENO: checking clang compiler" >&5
5115 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5116 WITH_CLANGPATH=""
5117 WITH_BUILT_CLANG=0
5118 if test "$with_clang" != "default"; then
5119 WITH_CLANGPATH="$with_clang"
5120 if ! test -x "$WITH_CLANGPATH"; then
5121 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5122 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5123 { (exit 1); exit 1; }; }
5125 elif test "$with_built_clang" = "yes"; then
5126 WITH_BUILT_CLANG=1
5127 elif test "$with_built_clang" = "no"; then
5128 WITH_BUILT_CLANG=0
5129 else
5130 if test "$with_built_clang" != "check"; then
5131 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5132 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5133 { (exit 1); exit 1; }; }
5136 if test -f ${srcdir}/tools/clang/README.txt; then
5137 WITH_BUILT_CLANG=1
5141 if ! test -z "$WITH_CLANGPATH"; then
5142 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5143 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5144 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5145 elif test "$WITH_BUILT_CLANG" = "1"; then
5146 { echo "$as_me:$LINENO: result: built" >&5
5147 echo "${ECHO_T}built" >&6; }
5148 else
5149 { echo "$as_me:$LINENO: result: none" >&5
5150 echo "${ECHO_T}none" >&6; }
5152 CLANGPATH=$WITH_CLANGPATH
5154 CLANGXXPATH=$WITH_CLANGXXPATH
5156 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5160 # Check whether --with-optimize-option was given.
5161 if test "${with_optimize_option+set}" = set; then
5162 withval=$with_optimize_option;
5163 else
5164 withval=default
5167 { echo "$as_me:$LINENO: checking optimization flags" >&5
5168 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5169 case "$withval" in
5170 default)
5171 case "$llvm_cv_os_type" in
5172 MingW) optimize_option=-O2 ;;
5173 *) optimize_option=-O3 ;;
5174 esac ;;
5175 *) optimize_option="$withval" ;;
5176 esac
5177 OPTIMIZE_OPTION=$optimize_option
5179 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5180 echo "${ECHO_T}$optimize_option" >&6; }
5183 # Check whether --with-extra-options was given.
5184 if test "${with_extra_options+set}" = set; then
5185 withval=$with_extra_options;
5186 else
5187 withval=default
5190 case "$withval" in
5191 default) EXTRA_OPTIONS= ;;
5192 *) EXTRA_OPTIONS=$withval ;;
5193 esac
5194 EXTRA_OPTIONS=$EXTRA_OPTIONS
5197 # Check whether --enable-bindings was given.
5198 if test "${enable_bindings+set}" = set; then
5199 enableval=$enable_bindings;
5200 else
5201 enableval=default
5204 BINDINGS_TO_BUILD=""
5205 case "$enableval" in
5206 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5207 all ) BINDINGS_TO_BUILD="ocaml" ;;
5208 none | no) BINDINGS_TO_BUILD="" ;;
5209 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5210 case "$a_binding" in
5211 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5212 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5213 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5214 { (exit 1); exit 1; }; } ;;
5215 esac
5216 done
5218 esac
5221 # Check whether --with-ocaml-libdir was given.
5222 if test "${with_ocaml_libdir+set}" = set; then
5223 withval=$with_ocaml_libdir;
5224 else
5225 withval=auto
5228 case "$withval" in
5229 auto) with_ocaml_libdir="$withval" ;;
5230 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5231 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5232 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5233 { (exit 1); exit 1; }; } ;;
5234 esac
5237 # Check whether --with-c-include-dirs was given.
5238 if test "${with_c_include_dirs+set}" = set; then
5239 withval=$with_c_include_dirs;
5240 else
5241 withval=""
5245 cat >>confdefs.h <<_ACEOF
5246 #define C_INCLUDE_DIRS "$withval"
5247 _ACEOF
5251 # Check whether --with-cxx-include-root was given.
5252 if test "${with_cxx_include_root+set}" = set; then
5253 withval=$with_cxx_include_root;
5254 else
5255 withval=""
5259 cat >>confdefs.h <<_ACEOF
5260 #define CXX_INCLUDE_ROOT "$withval"
5261 _ACEOF
5265 # Check whether --with-cxx-include-arch was given.
5266 if test "${with_cxx_include_arch+set}" = set; then
5267 withval=$with_cxx_include_arch;
5268 else
5269 withval=""
5273 cat >>confdefs.h <<_ACEOF
5274 #define CXX_INCLUDE_ARCH "$withval"
5275 _ACEOF
5279 # Check whether --with-cxx-include-32bit-dir was given.
5280 if test "${with_cxx_include_32bit_dir+set}" = set; then
5281 withval=$with_cxx_include_32bit_dir;
5282 else
5283 withval=""
5287 cat >>confdefs.h <<_ACEOF
5288 #define CXX_INCLUDE_32BIT_DIR "$withval"
5289 _ACEOF
5293 # Check whether --with-cxx-include-64bit-dir was given.
5294 if test "${with_cxx_include_64bit_dir+set}" = set; then
5295 withval=$with_cxx_include_64bit_dir;
5296 else
5297 withval=""
5301 cat >>confdefs.h <<_ACEOF
5302 #define CXX_INCLUDE_64BIT_DIR "$withval"
5303 _ACEOF
5307 # Check whether --with-binutils-include was given.
5308 if test "${with_binutils_include+set}" = set; then
5309 withval=$with_binutils_include;
5310 else
5311 withval=default
5314 case "$withval" in
5315 default) WITH_BINUTILS_INCDIR=default ;;
5316 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5317 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5318 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5319 { (exit 1); exit 1; }; } ;;
5320 esac
5321 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5322 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5324 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5325 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5326 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5327 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5328 { (exit 1); exit 1; }; };
5332 # Check whether --enable-libffi was given.
5333 if test "${enable_libffi+set}" = set; then
5334 enableval=$enable_libffi; case "$enableval" in
5335 yes) llvm_cv_enable_libffi="yes" ;;
5336 no) llvm_cv_enable_libffi="no" ;;
5337 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5338 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5339 { (exit 1); exit 1; }; } ;;
5340 esac
5341 else
5342 llvm_cv_enable_libffi=no
5346 if test "$llvm_cv_os_type" = "Win32" ; then
5347 llvmc_dynamic="yes"
5348 else
5349 llvmc_dynamic="no"
5352 # Check whether --enable-llvmc-dynamic was given.
5353 if test "${enable_llvmc_dynamic+set}" = set; then
5354 enableval=$enable_llvmc_dynamic;
5355 else
5356 enableval=$llvmc_dynamic
5359 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5360 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5362 else
5363 ENABLE_LLVMC_DYNAMIC=
5367 # Check whether --enable-llvmc-dynamic-plugins was given.
5368 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5369 enableval=$enable_llvmc_dynamic_plugins;
5370 else
5371 enableval=yes
5374 if test ${enableval} = "yes" ; then
5375 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5377 else
5378 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5383 ac_ext=c
5384 ac_cpp='$CPP $CPPFLAGS'
5385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5388 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5389 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5390 # On Suns, sometimes $CPP names a directory.
5391 if test -n "$CPP" && test -d "$CPP"; then
5392 CPP=
5394 if test -z "$CPP"; then
5395 if test "${ac_cv_prog_CPP+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5397 else
5398 # Double quotes because CPP needs to be expanded
5399 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5401 ac_preproc_ok=false
5402 for ac_c_preproc_warn_flag in '' yes
5404 # Use a header file that comes with gcc, so configuring glibc
5405 # with a fresh cross-compiler works.
5406 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5407 # <limits.h> exists even on freestanding compilers.
5408 # On the NeXT, cc -E runs the code through the compiler's parser,
5409 # not just through cpp. "Syntax error" is here to catch this case.
5410 cat >conftest.$ac_ext <<_ACEOF
5411 /* confdefs.h. */
5412 _ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h. */
5416 #ifdef __STDC__
5417 # include <limits.h>
5418 #else
5419 # include <assert.h>
5420 #endif
5421 Syntax error
5422 _ACEOF
5423 if { (ac_try="$ac_cpp conftest.$ac_ext"
5424 case "(($ac_try" in
5425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426 *) ac_try_echo=$ac_try;;
5427 esac
5428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5430 ac_status=$?
5431 grep -v '^ *+' conftest.er1 >conftest.err
5432 rm -f conftest.er1
5433 cat conftest.err >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); } >/dev/null; then
5436 if test -s conftest.err; then
5437 ac_cpp_err=$ac_c_preproc_warn_flag
5438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5439 else
5440 ac_cpp_err=
5442 else
5443 ac_cpp_err=yes
5445 if test -z "$ac_cpp_err"; then
5447 else
5448 echo "$as_me: failed program was:" >&5
5449 sed 's/^/| /' conftest.$ac_ext >&5
5451 # Broken: fails on valid input.
5452 continue
5455 rm -f conftest.err conftest.$ac_ext
5457 # OK, works on sane cases. Now check whether nonexistent headers
5458 # can be detected and how.
5459 cat >conftest.$ac_ext <<_ACEOF
5460 /* confdefs.h. */
5461 _ACEOF
5462 cat confdefs.h >>conftest.$ac_ext
5463 cat >>conftest.$ac_ext <<_ACEOF
5464 /* end confdefs.h. */
5465 #include <ac_nonexistent.h>
5466 _ACEOF
5467 if { (ac_try="$ac_cpp conftest.$ac_ext"
5468 case "(($ac_try" in
5469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5470 *) ac_try_echo=$ac_try;;
5471 esac
5472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5474 ac_status=$?
5475 grep -v '^ *+' conftest.er1 >conftest.err
5476 rm -f conftest.er1
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } >/dev/null; then
5480 if test -s conftest.err; then
5481 ac_cpp_err=$ac_c_preproc_warn_flag
5482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5483 else
5484 ac_cpp_err=
5486 else
5487 ac_cpp_err=yes
5489 if test -z "$ac_cpp_err"; then
5490 # Broken: success on invalid input.
5491 continue
5492 else
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5496 # Passes both tests.
5497 ac_preproc_ok=:
5498 break
5501 rm -f conftest.err conftest.$ac_ext
5503 done
5504 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5505 rm -f conftest.err conftest.$ac_ext
5506 if $ac_preproc_ok; then
5507 break
5510 done
5511 ac_cv_prog_CPP=$CPP
5514 CPP=$ac_cv_prog_CPP
5515 else
5516 ac_cv_prog_CPP=$CPP
5518 { echo "$as_me:$LINENO: result: $CPP" >&5
5519 echo "${ECHO_T}$CPP" >&6; }
5520 ac_preproc_ok=false
5521 for ac_c_preproc_warn_flag in '' yes
5523 # Use a header file that comes with gcc, so configuring glibc
5524 # with a fresh cross-compiler works.
5525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5526 # <limits.h> exists even on freestanding compilers.
5527 # On the NeXT, cc -E runs the code through the compiler's parser,
5528 # not just through cpp. "Syntax error" is here to catch this case.
5529 cat >conftest.$ac_ext <<_ACEOF
5530 /* confdefs.h. */
5531 _ACEOF
5532 cat confdefs.h >>conftest.$ac_ext
5533 cat >>conftest.$ac_ext <<_ACEOF
5534 /* end confdefs.h. */
5535 #ifdef __STDC__
5536 # include <limits.h>
5537 #else
5538 # include <assert.h>
5539 #endif
5540 Syntax error
5541 _ACEOF
5542 if { (ac_try="$ac_cpp conftest.$ac_ext"
5543 case "(($ac_try" in
5544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545 *) ac_try_echo=$ac_try;;
5546 esac
5547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5549 ac_status=$?
5550 grep -v '^ *+' conftest.er1 >conftest.err
5551 rm -f conftest.er1
5552 cat conftest.err >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); } >/dev/null; then
5555 if test -s conftest.err; then
5556 ac_cpp_err=$ac_c_preproc_warn_flag
5557 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5558 else
5559 ac_cpp_err=
5561 else
5562 ac_cpp_err=yes
5564 if test -z "$ac_cpp_err"; then
5566 else
5567 echo "$as_me: failed program was:" >&5
5568 sed 's/^/| /' conftest.$ac_ext >&5
5570 # Broken: fails on valid input.
5571 continue
5574 rm -f conftest.err conftest.$ac_ext
5576 # OK, works on sane cases. Now check whether nonexistent headers
5577 # can be detected and how.
5578 cat >conftest.$ac_ext <<_ACEOF
5579 /* confdefs.h. */
5580 _ACEOF
5581 cat confdefs.h >>conftest.$ac_ext
5582 cat >>conftest.$ac_ext <<_ACEOF
5583 /* end confdefs.h. */
5584 #include <ac_nonexistent.h>
5585 _ACEOF
5586 if { (ac_try="$ac_cpp conftest.$ac_ext"
5587 case "(($ac_try" in
5588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589 *) ac_try_echo=$ac_try;;
5590 esac
5591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5593 ac_status=$?
5594 grep -v '^ *+' conftest.er1 >conftest.err
5595 rm -f conftest.er1
5596 cat conftest.err >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } >/dev/null; then
5599 if test -s conftest.err; then
5600 ac_cpp_err=$ac_c_preproc_warn_flag
5601 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5602 else
5603 ac_cpp_err=
5605 else
5606 ac_cpp_err=yes
5608 if test -z "$ac_cpp_err"; then
5609 # Broken: success on invalid input.
5610 continue
5611 else
5612 echo "$as_me: failed program was:" >&5
5613 sed 's/^/| /' conftest.$ac_ext >&5
5615 # Passes both tests.
5616 ac_preproc_ok=:
5617 break
5620 rm -f conftest.err conftest.$ac_ext
5622 done
5623 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5624 rm -f conftest.err conftest.$ac_ext
5625 if $ac_preproc_ok; then
5627 else
5628 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5629 See \`config.log' for more details." >&5
5630 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5631 See \`config.log' for more details." >&2;}
5632 { (exit 1); exit 1; }; }
5635 ac_ext=c
5636 ac_cpp='$CPP $CPPFLAGS'
5637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5641 ac_ext=c
5642 ac_cpp='$CPP $CPPFLAGS'
5643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5646 if test -n "$ac_tool_prefix"; then
5647 for ac_prog in gcc
5649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5650 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5653 if test "${ac_cv_prog_CC+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5655 else
5656 if test -n "$CC"; then
5657 ac_cv_prog_CC="$CC" # Let the user override the test.
5658 else
5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 for as_dir in $PATH
5662 IFS=$as_save_IFS
5663 test -z "$as_dir" && as_dir=.
5664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5666 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5668 break 2
5670 done
5671 done
5672 IFS=$as_save_IFS
5676 CC=$ac_cv_prog_CC
5677 if test -n "$CC"; then
5678 { echo "$as_me:$LINENO: result: $CC" >&5
5679 echo "${ECHO_T}$CC" >&6; }
5680 else
5681 { echo "$as_me:$LINENO: result: no" >&5
5682 echo "${ECHO_T}no" >&6; }
5686 test -n "$CC" && break
5687 done
5689 if test -z "$CC"; then
5690 ac_ct_CC=$CC
5691 for ac_prog in gcc
5693 # Extract the first word of "$ac_prog", so it can be a program name with args.
5694 set dummy $ac_prog; ac_word=$2
5695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5697 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5699 else
5700 if test -n "$ac_ct_CC"; then
5701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5702 else
5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 for as_dir in $PATH
5706 IFS=$as_save_IFS
5707 test -z "$as_dir" && as_dir=.
5708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5710 ac_cv_prog_ac_ct_CC="$ac_prog"
5711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5712 break 2
5714 done
5715 done
5716 IFS=$as_save_IFS
5720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5721 if test -n "$ac_ct_CC"; then
5722 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5723 echo "${ECHO_T}$ac_ct_CC" >&6; }
5724 else
5725 { echo "$as_me:$LINENO: result: no" >&5
5726 echo "${ECHO_T}no" >&6; }
5730 test -n "$ac_ct_CC" && break
5731 done
5733 if test "x$ac_ct_CC" = x; then
5734 CC=""
5735 else
5736 case $cross_compiling:$ac_tool_warned in
5737 yes:)
5738 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5739 whose name does not start with the host triplet. If you think this
5740 configuration is useful to you, please write to autoconf@gnu.org." >&5
5741 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5742 whose name does not start with the host triplet. If you think this
5743 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5744 ac_tool_warned=yes ;;
5745 esac
5746 CC=$ac_ct_CC
5751 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5752 See \`config.log' for more details." >&5
5753 echo "$as_me: error: no acceptable C compiler found in \$PATH
5754 See \`config.log' for more details." >&2;}
5755 { (exit 1); exit 1; }; }
5757 # Provide some information about the compiler.
5758 echo "$as_me:$LINENO: checking for C compiler version" >&5
5759 ac_compiler=`set X $ac_compile; echo $2`
5760 { (ac_try="$ac_compiler --version >&5"
5761 case "(($ac_try" in
5762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5763 *) ac_try_echo=$ac_try;;
5764 esac
5765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5766 (eval "$ac_compiler --version >&5") 2>&5
5767 ac_status=$?
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }
5770 { (ac_try="$ac_compiler -v >&5"
5771 case "(($ac_try" in
5772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773 *) ac_try_echo=$ac_try;;
5774 esac
5775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776 (eval "$ac_compiler -v >&5") 2>&5
5777 ac_status=$?
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }
5780 { (ac_try="$ac_compiler -V >&5"
5781 case "(($ac_try" in
5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783 *) ac_try_echo=$ac_try;;
5784 esac
5785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786 (eval "$ac_compiler -V >&5") 2>&5
5787 ac_status=$?
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }
5791 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5792 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5793 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 else
5796 cat >conftest.$ac_ext <<_ACEOF
5797 /* confdefs.h. */
5798 _ACEOF
5799 cat confdefs.h >>conftest.$ac_ext
5800 cat >>conftest.$ac_ext <<_ACEOF
5801 /* end confdefs.h. */
5804 main ()
5806 #ifndef __GNUC__
5807 choke me
5808 #endif
5811 return 0;
5813 _ACEOF
5814 rm -f conftest.$ac_objext
5815 if { (ac_try="$ac_compile"
5816 case "(($ac_try" in
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5819 esac
5820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821 (eval "$ac_compile") 2>conftest.er1
5822 ac_status=$?
5823 grep -v '^ *+' conftest.er1 >conftest.err
5824 rm -f conftest.er1
5825 cat conftest.err >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); } &&
5828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5829 { (case "(($ac_try" in
5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5832 esac
5833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834 (eval "$ac_try") 2>&5
5835 ac_status=$?
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; } &&
5838 { ac_try='test -s conftest.$ac_objext'
5839 { (case "(($ac_try" in
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5842 esac
5843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844 (eval "$ac_try") 2>&5
5845 ac_status=$?
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
5848 ac_compiler_gnu=yes
5849 else
5850 echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5853 ac_compiler_gnu=no
5856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5857 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5860 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5861 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5862 GCC=`test $ac_compiler_gnu = yes && echo yes`
5863 ac_test_CFLAGS=${CFLAGS+set}
5864 ac_save_CFLAGS=$CFLAGS
5865 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5866 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5867 if test "${ac_cv_prog_cc_g+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 else
5870 ac_save_c_werror_flag=$ac_c_werror_flag
5871 ac_c_werror_flag=yes
5872 ac_cv_prog_cc_g=no
5873 CFLAGS="-g"
5874 cat >conftest.$ac_ext <<_ACEOF
5875 /* confdefs.h. */
5876 _ACEOF
5877 cat confdefs.h >>conftest.$ac_ext
5878 cat >>conftest.$ac_ext <<_ACEOF
5879 /* end confdefs.h. */
5882 main ()
5886 return 0;
5888 _ACEOF
5889 rm -f conftest.$ac_objext
5890 if { (ac_try="$ac_compile"
5891 case "(($ac_try" in
5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5893 *) ac_try_echo=$ac_try;;
5894 esac
5895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5896 (eval "$ac_compile") 2>conftest.er1
5897 ac_status=$?
5898 grep -v '^ *+' conftest.er1 >conftest.err
5899 rm -f conftest.er1
5900 cat conftest.err >&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); } &&
5903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5904 { (case "(($ac_try" in
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5907 esac
5908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909 (eval "$ac_try") 2>&5
5910 ac_status=$?
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); }; } &&
5913 { ac_try='test -s conftest.$ac_objext'
5914 { (case "(($ac_try" in
5915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916 *) ac_try_echo=$ac_try;;
5917 esac
5918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5919 (eval "$ac_try") 2>&5
5920 ac_status=$?
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; }; then
5923 ac_cv_prog_cc_g=yes
5924 else
5925 echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5928 CFLAGS=""
5929 cat >conftest.$ac_ext <<_ACEOF
5930 /* confdefs.h. */
5931 _ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h. */
5937 main ()
5941 return 0;
5943 _ACEOF
5944 rm -f conftest.$ac_objext
5945 if { (ac_try="$ac_compile"
5946 case "(($ac_try" in
5947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5949 esac
5950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_compile") 2>conftest.er1
5952 ac_status=$?
5953 grep -v '^ *+' conftest.er1 >conftest.err
5954 rm -f conftest.er1
5955 cat conftest.err >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } &&
5958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5959 { (case "(($ac_try" in
5960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5961 *) ac_try_echo=$ac_try;;
5962 esac
5963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5964 (eval "$ac_try") 2>&5
5965 ac_status=$?
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; } &&
5968 { ac_try='test -s conftest.$ac_objext'
5969 { (case "(($ac_try" in
5970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5971 *) ac_try_echo=$ac_try;;
5972 esac
5973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5974 (eval "$ac_try") 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; }; then
5979 else
5980 echo "$as_me: failed program was:" >&5
5981 sed 's/^/| /' conftest.$ac_ext >&5
5983 ac_c_werror_flag=$ac_save_c_werror_flag
5984 CFLAGS="-g"
5985 cat >conftest.$ac_ext <<_ACEOF
5986 /* confdefs.h. */
5987 _ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h. */
5993 main ()
5997 return 0;
5999 _ACEOF
6000 rm -f conftest.$ac_objext
6001 if { (ac_try="$ac_compile"
6002 case "(($ac_try" in
6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004 *) ac_try_echo=$ac_try;;
6005 esac
6006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007 (eval "$ac_compile") 2>conftest.er1
6008 ac_status=$?
6009 grep -v '^ *+' conftest.er1 >conftest.err
6010 rm -f conftest.er1
6011 cat conftest.err >&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } &&
6014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6015 { (case "(($ac_try" in
6016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6017 *) ac_try_echo=$ac_try;;
6018 esac
6019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6020 (eval "$ac_try") 2>&5
6021 ac_status=$?
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; } &&
6024 { ac_try='test -s conftest.$ac_objext'
6025 { (case "(($ac_try" in
6026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027 *) ac_try_echo=$ac_try;;
6028 esac
6029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6030 (eval "$ac_try") 2>&5
6031 ac_status=$?
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; }; then
6034 ac_cv_prog_cc_g=yes
6035 else
6036 echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049 ac_c_werror_flag=$ac_save_c_werror_flag
6051 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6052 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6053 if test "$ac_test_CFLAGS" = set; then
6054 CFLAGS=$ac_save_CFLAGS
6055 elif test $ac_cv_prog_cc_g = yes; then
6056 if test "$GCC" = yes; then
6057 CFLAGS="-g -O2"
6058 else
6059 CFLAGS="-g"
6061 else
6062 if test "$GCC" = yes; then
6063 CFLAGS="-O2"
6064 else
6065 CFLAGS=
6068 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6069 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6070 if test "${ac_cv_prog_cc_c89+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073 ac_cv_prog_cc_c89=no
6074 ac_save_CC=$CC
6075 cat >conftest.$ac_ext <<_ACEOF
6076 /* confdefs.h. */
6077 _ACEOF
6078 cat confdefs.h >>conftest.$ac_ext
6079 cat >>conftest.$ac_ext <<_ACEOF
6080 /* end confdefs.h. */
6081 #include <stdarg.h>
6082 #include <stdio.h>
6083 #include <sys/types.h>
6084 #include <sys/stat.h>
6085 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6086 struct buf { int x; };
6087 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6088 static char *e (p, i)
6089 char **p;
6090 int i;
6092 return p[i];
6094 static char *f (char * (*g) (char **, int), char **p, ...)
6096 char *s;
6097 va_list v;
6098 va_start (v,p);
6099 s = g (p, va_arg (v,int));
6100 va_end (v);
6101 return s;
6104 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6105 function prototypes and stuff, but not '\xHH' hex character constants.
6106 These don't provoke an error unfortunately, instead are silently treated
6107 as 'x'. The following induces an error, until -std is added to get
6108 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6109 array size at least. It's necessary to write '\x00'==0 to get something
6110 that's true only with -std. */
6111 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6113 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6114 inside strings and character constants. */
6115 #define FOO(x) 'x'
6116 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6118 int test (int i, double x);
6119 struct s1 {int (*f) (int a);};
6120 struct s2 {int (*f) (double a);};
6121 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6122 int argc;
6123 char **argv;
6125 main ()
6127 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6129 return 0;
6131 _ACEOF
6132 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6133 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6135 CC="$ac_save_CC $ac_arg"
6136 rm -f conftest.$ac_objext
6137 if { (ac_try="$ac_compile"
6138 case "(($ac_try" in
6139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6141 esac
6142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143 (eval "$ac_compile") 2>conftest.er1
6144 ac_status=$?
6145 grep -v '^ *+' conftest.er1 >conftest.err
6146 rm -f conftest.er1
6147 cat conftest.err >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } &&
6150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6151 { (case "(($ac_try" in
6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153 *) ac_try_echo=$ac_try;;
6154 esac
6155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156 (eval "$ac_try") 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; } &&
6160 { ac_try='test -s conftest.$ac_objext'
6161 { (case "(($ac_try" in
6162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163 *) ac_try_echo=$ac_try;;
6164 esac
6165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6166 (eval "$ac_try") 2>&5
6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; }; then
6170 ac_cv_prog_cc_c89=$ac_arg
6171 else
6172 echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.$ac_ext >&5
6178 rm -f core conftest.err conftest.$ac_objext
6179 test "x$ac_cv_prog_cc_c89" != "xno" && break
6180 done
6181 rm -f conftest.$ac_ext
6182 CC=$ac_save_CC
6185 # AC_CACHE_VAL
6186 case "x$ac_cv_prog_cc_c89" in
6188 { echo "$as_me:$LINENO: result: none needed" >&5
6189 echo "${ECHO_T}none needed" >&6; } ;;
6190 xno)
6191 { echo "$as_me:$LINENO: result: unsupported" >&5
6192 echo "${ECHO_T}unsupported" >&6; } ;;
6194 CC="$CC $ac_cv_prog_cc_c89"
6195 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6196 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6197 esac
6200 ac_ext=c
6201 ac_cpp='$CPP $CPPFLAGS'
6202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6206 ac_ext=cpp
6207 ac_cpp='$CXXCPP $CPPFLAGS'
6208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6211 if test -z "$CXX"; then
6212 if test -n "$CCC"; then
6213 CXX=$CCC
6214 else
6215 if test -n "$ac_tool_prefix"; then
6216 for ac_prog in g++
6218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6222 if test "${ac_cv_prog_CXX+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 else
6225 if test -n "$CXX"; then
6226 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6227 else
6228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229 for as_dir in $PATH
6231 IFS=$as_save_IFS
6232 test -z "$as_dir" && as_dir=.
6233 for ac_exec_ext in '' $ac_executable_extensions; do
6234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6235 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6237 break 2
6239 done
6240 done
6241 IFS=$as_save_IFS
6245 CXX=$ac_cv_prog_CXX
6246 if test -n "$CXX"; then
6247 { echo "$as_me:$LINENO: result: $CXX" >&5
6248 echo "${ECHO_T}$CXX" >&6; }
6249 else
6250 { echo "$as_me:$LINENO: result: no" >&5
6251 echo "${ECHO_T}no" >&6; }
6255 test -n "$CXX" && break
6256 done
6258 if test -z "$CXX"; then
6259 ac_ct_CXX=$CXX
6260 for ac_prog in g++
6262 # Extract the first word of "$ac_prog", so it can be a program name with args.
6263 set dummy $ac_prog; ac_word=$2
6264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6266 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6268 else
6269 if test -n "$ac_ct_CXX"; then
6270 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6271 else
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 for as_dir in $PATH
6275 IFS=$as_save_IFS
6276 test -z "$as_dir" && as_dir=.
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6279 ac_cv_prog_ac_ct_CXX="$ac_prog"
6280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6281 break 2
6283 done
6284 done
6285 IFS=$as_save_IFS
6289 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6290 if test -n "$ac_ct_CXX"; then
6291 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6292 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6293 else
6294 { echo "$as_me:$LINENO: result: no" >&5
6295 echo "${ECHO_T}no" >&6; }
6299 test -n "$ac_ct_CXX" && break
6300 done
6302 if test "x$ac_ct_CXX" = x; then
6303 CXX="g++"
6304 else
6305 case $cross_compiling:$ac_tool_warned in
6306 yes:)
6307 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6308 whose name does not start with the host triplet. If you think this
6309 configuration is useful to you, please write to autoconf@gnu.org." >&5
6310 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6311 whose name does not start with the host triplet. If you think this
6312 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6313 ac_tool_warned=yes ;;
6314 esac
6315 CXX=$ac_ct_CXX
6321 # Provide some information about the compiler.
6322 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6323 ac_compiler=`set X $ac_compile; echo $2`
6324 { (ac_try="$ac_compiler --version >&5"
6325 case "(($ac_try" in
6326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6327 *) ac_try_echo=$ac_try;;
6328 esac
6329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6330 (eval "$ac_compiler --version >&5") 2>&5
6331 ac_status=$?
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }
6334 { (ac_try="$ac_compiler -v >&5"
6335 case "(($ac_try" in
6336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6337 *) ac_try_echo=$ac_try;;
6338 esac
6339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6340 (eval "$ac_compiler -v >&5") 2>&5
6341 ac_status=$?
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }
6344 { (ac_try="$ac_compiler -V >&5"
6345 case "(($ac_try" in
6346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347 *) ac_try_echo=$ac_try;;
6348 esac
6349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350 (eval "$ac_compiler -V >&5") 2>&5
6351 ac_status=$?
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }
6355 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6356 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6357 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 else
6360 cat >conftest.$ac_ext <<_ACEOF
6361 /* confdefs.h. */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6368 main ()
6370 #ifndef __GNUC__
6371 choke me
6372 #endif
6375 return 0;
6377 _ACEOF
6378 rm -f conftest.$ac_objext
6379 if { (ac_try="$ac_compile"
6380 case "(($ac_try" in
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6383 esac
6384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6385 (eval "$ac_compile") 2>conftest.er1
6386 ac_status=$?
6387 grep -v '^ *+' conftest.er1 >conftest.err
6388 rm -f conftest.er1
6389 cat conftest.err >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } &&
6392 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6393 { (case "(($ac_try" in
6394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395 *) ac_try_echo=$ac_try;;
6396 esac
6397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398 (eval "$ac_try") 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; } &&
6402 { ac_try='test -s conftest.$ac_objext'
6403 { (case "(($ac_try" in
6404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6405 *) ac_try_echo=$ac_try;;
6406 esac
6407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6408 (eval "$ac_try") 2>&5
6409 ac_status=$?
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; }; then
6412 ac_compiler_gnu=yes
6413 else
6414 echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6417 ac_compiler_gnu=no
6420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6424 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6425 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6426 GXX=`test $ac_compiler_gnu = yes && echo yes`
6427 ac_test_CXXFLAGS=${CXXFLAGS+set}
6428 ac_save_CXXFLAGS=$CXXFLAGS
6429 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6430 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6431 if test "${ac_cv_prog_cxx_g+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 else
6434 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6435 ac_cxx_werror_flag=yes
6436 ac_cv_prog_cxx_g=no
6437 CXXFLAGS="-g"
6438 cat >conftest.$ac_ext <<_ACEOF
6439 /* confdefs.h. */
6440 _ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6446 main ()
6450 return 0;
6452 _ACEOF
6453 rm -f conftest.$ac_objext
6454 if { (ac_try="$ac_compile"
6455 case "(($ac_try" in
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6458 esac
6459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 (eval "$ac_compile") 2>conftest.er1
6461 ac_status=$?
6462 grep -v '^ *+' conftest.er1 >conftest.err
6463 rm -f conftest.er1
6464 cat conftest.err >&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } &&
6467 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6468 { (case "(($ac_try" in
6469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6470 *) ac_try_echo=$ac_try;;
6471 esac
6472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6473 (eval "$ac_try") 2>&5
6474 ac_status=$?
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; } &&
6477 { ac_try='test -s conftest.$ac_objext'
6478 { (case "(($ac_try" in
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6481 esac
6482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483 (eval "$ac_try") 2>&5
6484 ac_status=$?
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; }; then
6487 ac_cv_prog_cxx_g=yes
6488 else
6489 echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6492 CXXFLAGS=""
6493 cat >conftest.$ac_ext <<_ACEOF
6494 /* confdefs.h. */
6495 _ACEOF
6496 cat confdefs.h >>conftest.$ac_ext
6497 cat >>conftest.$ac_ext <<_ACEOF
6498 /* end confdefs.h. */
6501 main ()
6505 return 0;
6507 _ACEOF
6508 rm -f conftest.$ac_objext
6509 if { (ac_try="$ac_compile"
6510 case "(($ac_try" in
6511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6512 *) ac_try_echo=$ac_try;;
6513 esac
6514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6515 (eval "$ac_compile") 2>conftest.er1
6516 ac_status=$?
6517 grep -v '^ *+' conftest.er1 >conftest.err
6518 rm -f conftest.er1
6519 cat conftest.err >&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } &&
6522 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6523 { (case "(($ac_try" in
6524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525 *) ac_try_echo=$ac_try;;
6526 esac
6527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6528 (eval "$ac_try") 2>&5
6529 ac_status=$?
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; } &&
6532 { ac_try='test -s conftest.$ac_objext'
6533 { (case "(($ac_try" in
6534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6535 *) ac_try_echo=$ac_try;;
6536 esac
6537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6538 (eval "$ac_try") 2>&5
6539 ac_status=$?
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; }; then
6543 else
6544 echo "$as_me: failed program was:" >&5
6545 sed 's/^/| /' conftest.$ac_ext >&5
6547 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6548 CXXFLAGS="-g"
6549 cat >conftest.$ac_ext <<_ACEOF
6550 /* confdefs.h. */
6551 _ACEOF
6552 cat confdefs.h >>conftest.$ac_ext
6553 cat >>conftest.$ac_ext <<_ACEOF
6554 /* end confdefs.h. */
6557 main ()
6561 return 0;
6563 _ACEOF
6564 rm -f conftest.$ac_objext
6565 if { (ac_try="$ac_compile"
6566 case "(($ac_try" in
6567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6568 *) ac_try_echo=$ac_try;;
6569 esac
6570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6571 (eval "$ac_compile") 2>conftest.er1
6572 ac_status=$?
6573 grep -v '^ *+' conftest.er1 >conftest.err
6574 rm -f conftest.er1
6575 cat conftest.err >&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } &&
6578 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6579 { (case "(($ac_try" in
6580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581 *) ac_try_echo=$ac_try;;
6582 esac
6583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6584 (eval "$ac_try") 2>&5
6585 ac_status=$?
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; } &&
6588 { ac_try='test -s conftest.$ac_objext'
6589 { (case "(($ac_try" in
6590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6591 *) ac_try_echo=$ac_try;;
6592 esac
6593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6594 (eval "$ac_try") 2>&5
6595 ac_status=$?
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; }; then
6598 ac_cv_prog_cxx_g=yes
6599 else
6600 echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6615 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6616 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6617 if test "$ac_test_CXXFLAGS" = set; then
6618 CXXFLAGS=$ac_save_CXXFLAGS
6619 elif test $ac_cv_prog_cxx_g = yes; then
6620 if test "$GXX" = yes; then
6621 CXXFLAGS="-g -O2"
6622 else
6623 CXXFLAGS="-g"
6625 else
6626 if test "$GXX" = yes; then
6627 CXXFLAGS="-O2"
6628 else
6629 CXXFLAGS=
6632 ac_ext=c
6633 ac_cpp='$CPP $CPPFLAGS'
6634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6639 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6640 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6641 if test "${lt_cv_path_NM+set}" = set; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 else
6644 if test -n "$NM"; then
6645 # Let the user override the test.
6646 lt_cv_path_NM="$NM"
6647 else
6648 lt_nm_to_check="${ac_tool_prefix}nm"
6649 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6650 lt_nm_to_check="$lt_nm_to_check nm"
6652 for lt_tmp_nm in $lt_nm_to_check; do
6653 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6654 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6655 IFS="$lt_save_ifs"
6656 test -z "$ac_dir" && ac_dir=.
6657 tmp_nm="$ac_dir/$lt_tmp_nm"
6658 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6659 # Check to see if the nm accepts a BSD-compat flag.
6660 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6661 # nm: unknown option "B" ignored
6662 # Tru64's nm complains that /dev/null is an invalid object file
6663 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6664 */dev/null* | *'Invalid file or object type'*)
6665 lt_cv_path_NM="$tmp_nm -B"
6666 break
6669 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6670 */dev/null*)
6671 lt_cv_path_NM="$tmp_nm -p"
6672 break
6675 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6676 continue # so that we can try to find one that supports BSD flags
6678 esac
6680 esac
6682 done
6683 IFS="$lt_save_ifs"
6684 done
6685 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6688 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6689 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6690 NM="$lt_cv_path_NM"
6694 { echo "$as_me:$LINENO: checking for GNU make" >&5
6695 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6696 if test "${llvm_cv_gnu_make_command+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 else
6699 llvm_cv_gnu_make_command=''
6700 for a in "$MAKE" make gmake gnumake ; do
6701 if test -z "$a" ; then continue ; fi ;
6702 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6703 then
6704 llvm_cv_gnu_make_command=$a ;
6705 break;
6707 done
6709 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6710 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6711 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6712 ifGNUmake='' ;
6713 else
6714 ifGNUmake='#' ;
6715 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6716 echo "${ECHO_T}\"Not found\"" >&6; };
6720 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6721 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6722 LN_S=$as_ln_s
6723 if test "$LN_S" = "ln -s"; then
6724 { echo "$as_me:$LINENO: result: yes" >&5
6725 echo "${ECHO_T}yes" >&6; }
6726 else
6727 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6728 echo "${ECHO_T}no, using $LN_S" >&6; }
6731 # Extract the first word of "cmp", so it can be a program name with args.
6732 set dummy cmp; ac_word=$2
6733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6735 if test "${ac_cv_path_CMP+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 else
6738 case $CMP in
6739 [\\/]* | ?:[\\/]*)
6740 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6750 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 break 2
6754 done
6755 done
6756 IFS=$as_save_IFS
6758 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6760 esac
6762 CMP=$ac_cv_path_CMP
6763 if test -n "$CMP"; then
6764 { echo "$as_me:$LINENO: result: $CMP" >&5
6765 echo "${ECHO_T}$CMP" >&6; }
6766 else
6767 { echo "$as_me:$LINENO: result: no" >&5
6768 echo "${ECHO_T}no" >&6; }
6772 # Extract the first word of "cp", so it can be a program name with args.
6773 set dummy cp; ac_word=$2
6774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776 if test "${ac_cv_path_CP+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6778 else
6779 case $CP in
6780 [\\/]* | ?:[\\/]*)
6781 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 for as_dir in $PATH
6787 IFS=$as_save_IFS
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6791 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6793 break 2
6795 done
6796 done
6797 IFS=$as_save_IFS
6799 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6801 esac
6803 CP=$ac_cv_path_CP
6804 if test -n "$CP"; then
6805 { echo "$as_me:$LINENO: result: $CP" >&5
6806 echo "${ECHO_T}$CP" >&6; }
6807 else
6808 { echo "$as_me:$LINENO: result: no" >&5
6809 echo "${ECHO_T}no" >&6; }
6813 # Extract the first word of "date", so it can be a program name with args.
6814 set dummy date; ac_word=$2
6815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6817 if test "${ac_cv_path_DATE+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820 case $DATE in
6821 [\\/]* | ?:[\\/]*)
6822 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6828 IFS=$as_save_IFS
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6832 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 break 2
6836 done
6837 done
6838 IFS=$as_save_IFS
6840 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6842 esac
6844 DATE=$ac_cv_path_DATE
6845 if test -n "$DATE"; then
6846 { echo "$as_me:$LINENO: result: $DATE" >&5
6847 echo "${ECHO_T}$DATE" >&6; }
6848 else
6849 { echo "$as_me:$LINENO: result: no" >&5
6850 echo "${ECHO_T}no" >&6; }
6854 # Extract the first word of "find", so it can be a program name with args.
6855 set dummy find; ac_word=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_path_FIND+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 else
6861 case $FIND in
6862 [\\/]* | ?:[\\/]*)
6863 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6869 IFS=$as_save_IFS
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6873 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 break 2
6877 done
6878 done
6879 IFS=$as_save_IFS
6881 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6883 esac
6885 FIND=$ac_cv_path_FIND
6886 if test -n "$FIND"; then
6887 { echo "$as_me:$LINENO: result: $FIND" >&5
6888 echo "${ECHO_T}$FIND" >&6; }
6889 else
6890 { echo "$as_me:$LINENO: result: no" >&5
6891 echo "${ECHO_T}no" >&6; }
6895 # Extract the first word of "grep", so it can be a program name with args.
6896 set dummy grep; ac_word=$2
6897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6899 if test "${ac_cv_path_GREP+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 else
6902 case $GREP in
6903 [\\/]* | ?:[\\/]*)
6904 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 for as_dir in $PATH
6910 IFS=$as_save_IFS
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6914 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 break 2
6918 done
6919 done
6920 IFS=$as_save_IFS
6922 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6924 esac
6926 GREP=$ac_cv_path_GREP
6927 if test -n "$GREP"; then
6928 { echo "$as_me:$LINENO: result: $GREP" >&5
6929 echo "${ECHO_T}$GREP" >&6; }
6930 else
6931 { echo "$as_me:$LINENO: result: no" >&5
6932 echo "${ECHO_T}no" >&6; }
6936 # Extract the first word of "mkdir", so it can be a program name with args.
6937 set dummy mkdir; ac_word=$2
6938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6940 if test "${ac_cv_path_MKDIR+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 else
6943 case $MKDIR in
6944 [\\/]* | ?:[\\/]*)
6945 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6951 IFS=$as_save_IFS
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6955 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 break 2
6959 done
6960 done
6961 IFS=$as_save_IFS
6963 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6965 esac
6967 MKDIR=$ac_cv_path_MKDIR
6968 if test -n "$MKDIR"; then
6969 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6970 echo "${ECHO_T}$MKDIR" >&6; }
6971 else
6972 { echo "$as_me:$LINENO: result: no" >&5
6973 echo "${ECHO_T}no" >&6; }
6977 # Extract the first word of "mv", so it can be a program name with args.
6978 set dummy mv; ac_word=$2
6979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6981 if test "${ac_cv_path_MV+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
6983 else
6984 case $MV in
6985 [\\/]* | ?:[\\/]*)
6986 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6996 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 break 2
7000 done
7001 done
7002 IFS=$as_save_IFS
7004 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7006 esac
7008 MV=$ac_cv_path_MV
7009 if test -n "$MV"; then
7010 { echo "$as_me:$LINENO: result: $MV" >&5
7011 echo "${ECHO_T}$MV" >&6; }
7012 else
7013 { echo "$as_me:$LINENO: result: no" >&5
7014 echo "${ECHO_T}no" >&6; }
7018 if test -n "$ac_tool_prefix"; then
7019 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7020 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7023 if test "${ac_cv_prog_RANLIB+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 else
7026 if test -n "$RANLIB"; then
7027 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7028 else
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7032 IFS=$as_save_IFS
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7036 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 break 2
7040 done
7041 done
7042 IFS=$as_save_IFS
7046 RANLIB=$ac_cv_prog_RANLIB
7047 if test -n "$RANLIB"; then
7048 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7049 echo "${ECHO_T}$RANLIB" >&6; }
7050 else
7051 { echo "$as_me:$LINENO: result: no" >&5
7052 echo "${ECHO_T}no" >&6; }
7057 if test -z "$ac_cv_prog_RANLIB"; then
7058 ac_ct_RANLIB=$RANLIB
7059 # Extract the first word of "ranlib", so it can be a program name with args.
7060 set dummy ranlib; ac_word=$2
7061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7063 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7065 else
7066 if test -n "$ac_ct_RANLIB"; then
7067 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7068 else
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 for as_dir in $PATH
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7076 ac_cv_prog_ac_ct_RANLIB="ranlib"
7077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 break 2
7080 done
7081 done
7082 IFS=$as_save_IFS
7086 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7087 if test -n "$ac_ct_RANLIB"; then
7088 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7089 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7090 else
7091 { echo "$as_me:$LINENO: result: no" >&5
7092 echo "${ECHO_T}no" >&6; }
7095 if test "x$ac_ct_RANLIB" = x; then
7096 RANLIB=":"
7097 else
7098 case $cross_compiling:$ac_tool_warned in
7099 yes:)
7100 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7101 whose name does not start with the host triplet. If you think this
7102 configuration is useful to you, please write to autoconf@gnu.org." >&5
7103 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7104 whose name does not start with the host triplet. If you think this
7105 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7106 ac_tool_warned=yes ;;
7107 esac
7108 RANLIB=$ac_ct_RANLIB
7110 else
7111 RANLIB="$ac_cv_prog_RANLIB"
7114 if test -n "$ac_tool_prefix"; then
7115 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7116 set dummy ${ac_tool_prefix}ar; ac_word=$2
7117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7119 if test "${ac_cv_prog_AR+set}" = set; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
7121 else
7122 if test -n "$AR"; then
7123 ac_cv_prog_AR="$AR" # Let the user override the test.
7124 else
7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 for as_dir in $PATH
7128 IFS=$as_save_IFS
7129 test -z "$as_dir" && as_dir=.
7130 for ac_exec_ext in '' $ac_executable_extensions; do
7131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7132 ac_cv_prog_AR="${ac_tool_prefix}ar"
7133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7134 break 2
7136 done
7137 done
7138 IFS=$as_save_IFS
7142 AR=$ac_cv_prog_AR
7143 if test -n "$AR"; then
7144 { echo "$as_me:$LINENO: result: $AR" >&5
7145 echo "${ECHO_T}$AR" >&6; }
7146 else
7147 { echo "$as_me:$LINENO: result: no" >&5
7148 echo "${ECHO_T}no" >&6; }
7153 if test -z "$ac_cv_prog_AR"; then
7154 ac_ct_AR=$AR
7155 # Extract the first word of "ar", so it can be a program name with args.
7156 set dummy ar; ac_word=$2
7157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7159 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 else
7162 if test -n "$ac_ct_AR"; then
7163 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7164 else
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 for as_dir in $PATH
7168 IFS=$as_save_IFS
7169 test -z "$as_dir" && as_dir=.
7170 for ac_exec_ext in '' $ac_executable_extensions; do
7171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7172 ac_cv_prog_ac_ct_AR="ar"
7173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7174 break 2
7176 done
7177 done
7178 IFS=$as_save_IFS
7182 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7183 if test -n "$ac_ct_AR"; then
7184 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7185 echo "${ECHO_T}$ac_ct_AR" >&6; }
7186 else
7187 { echo "$as_me:$LINENO: result: no" >&5
7188 echo "${ECHO_T}no" >&6; }
7191 if test "x$ac_ct_AR" = x; then
7192 AR="false"
7193 else
7194 case $cross_compiling:$ac_tool_warned in
7195 yes:)
7196 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7197 whose name does not start with the host triplet. If you think this
7198 configuration is useful to you, please write to autoconf@gnu.org." >&5
7199 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7200 whose name does not start with the host triplet. If you think this
7201 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7202 ac_tool_warned=yes ;;
7203 esac
7204 AR=$ac_ct_AR
7206 else
7207 AR="$ac_cv_prog_AR"
7210 # Extract the first word of "rm", so it can be a program name with args.
7211 set dummy rm; ac_word=$2
7212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7214 if test "${ac_cv_path_RM+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
7216 else
7217 case $RM in
7218 [\\/]* | ?:[\\/]*)
7219 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223 for as_dir in $PATH
7225 IFS=$as_save_IFS
7226 test -z "$as_dir" && as_dir=.
7227 for ac_exec_ext in '' $ac_executable_extensions; do
7228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7229 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 break 2
7233 done
7234 done
7235 IFS=$as_save_IFS
7237 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7239 esac
7241 RM=$ac_cv_path_RM
7242 if test -n "$RM"; then
7243 { echo "$as_me:$LINENO: result: $RM" >&5
7244 echo "${ECHO_T}$RM" >&6; }
7245 else
7246 { echo "$as_me:$LINENO: result: no" >&5
7247 echo "${ECHO_T}no" >&6; }
7251 # Extract the first word of "sed", so it can be a program name with args.
7252 set dummy sed; ac_word=$2
7253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7255 if test "${ac_cv_path_SED+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7257 else
7258 case $SED in
7259 [\\/]* | ?:[\\/]*)
7260 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264 for as_dir in $PATH
7266 IFS=$as_save_IFS
7267 test -z "$as_dir" && as_dir=.
7268 for ac_exec_ext in '' $ac_executable_extensions; do
7269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7270 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7272 break 2
7274 done
7275 done
7276 IFS=$as_save_IFS
7278 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7280 esac
7282 SED=$ac_cv_path_SED
7283 if test -n "$SED"; then
7284 { echo "$as_me:$LINENO: result: $SED" >&5
7285 echo "${ECHO_T}$SED" >&6; }
7286 else
7287 { echo "$as_me:$LINENO: result: no" >&5
7288 echo "${ECHO_T}no" >&6; }
7292 # Extract the first word of "tar", so it can be a program name with args.
7293 set dummy tar; ac_word=$2
7294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7296 if test "${ac_cv_path_TAR+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 else
7299 case $TAR in
7300 [\\/]* | ?:[\\/]*)
7301 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7307 IFS=$as_save_IFS
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7311 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7313 break 2
7315 done
7316 done
7317 IFS=$as_save_IFS
7319 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7321 esac
7323 TAR=$ac_cv_path_TAR
7324 if test -n "$TAR"; then
7325 { echo "$as_me:$LINENO: result: $TAR" >&5
7326 echo "${ECHO_T}$TAR" >&6; }
7327 else
7328 { echo "$as_me:$LINENO: result: no" >&5
7329 echo "${ECHO_T}no" >&6; }
7333 # Extract the first word of "pwd", so it can be a program name with args.
7334 set dummy pwd; ac_word=$2
7335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7337 if test "${ac_cv_path_BINPWD+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 else
7340 case $BINPWD in
7341 [\\/]* | ?:[\\/]*)
7342 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 for as_dir in $PATH
7348 IFS=$as_save_IFS
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7352 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 break 2
7356 done
7357 done
7358 IFS=$as_save_IFS
7360 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7362 esac
7364 BINPWD=$ac_cv_path_BINPWD
7365 if test -n "$BINPWD"; then
7366 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7367 echo "${ECHO_T}$BINPWD" >&6; }
7368 else
7369 { echo "$as_me:$LINENO: result: no" >&5
7370 echo "${ECHO_T}no" >&6; }
7375 # Extract the first word of "Graphviz", so it can be a program name with args.
7376 set dummy Graphviz; ac_word=$2
7377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7379 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7381 else
7382 case $GRAPHVIZ in
7383 [\\/]* | ?:[\\/]*)
7384 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 for as_dir in $PATH
7390 IFS=$as_save_IFS
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7394 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7396 break 2
7398 done
7399 done
7400 IFS=$as_save_IFS
7402 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7404 esac
7406 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7407 if test -n "$GRAPHVIZ"; then
7408 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7409 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7410 else
7411 { echo "$as_me:$LINENO: result: no" >&5
7412 echo "${ECHO_T}no" >&6; }
7416 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7418 cat >>confdefs.h <<\_ACEOF
7419 #define HAVE_GRAPHVIZ 1
7420 _ACEOF
7422 if test "$llvm_cv_os_type" = "MingW" ; then
7423 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7426 cat >>confdefs.h <<_ACEOF
7427 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7428 _ACEOF
7431 # Extract the first word of "dot", so it can be a program name with args.
7432 set dummy dot; ac_word=$2
7433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7435 if test "${ac_cv_path_DOT+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 else
7438 case $DOT in
7439 [\\/]* | ?:[\\/]*)
7440 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 for as_dir in $PATH
7446 IFS=$as_save_IFS
7447 test -z "$as_dir" && as_dir=.
7448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7450 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7452 break 2
7454 done
7455 done
7456 IFS=$as_save_IFS
7458 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7460 esac
7462 DOT=$ac_cv_path_DOT
7463 if test -n "$DOT"; then
7464 { echo "$as_me:$LINENO: result: $DOT" >&5
7465 echo "${ECHO_T}$DOT" >&6; }
7466 else
7467 { echo "$as_me:$LINENO: result: no" >&5
7468 echo "${ECHO_T}no" >&6; }
7472 if test "$DOT" != "echo dot" ; then
7474 cat >>confdefs.h <<\_ACEOF
7475 #define HAVE_DOT 1
7476 _ACEOF
7478 if test "$llvm_cv_os_type" = "MingW" ; then
7479 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7482 cat >>confdefs.h <<_ACEOF
7483 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7484 _ACEOF
7487 # Extract the first word of "fdp", so it can be a program name with args.
7488 set dummy fdp; ac_word=$2
7489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7491 if test "${ac_cv_path_FDP+set}" = set; then
7492 echo $ECHO_N "(cached) $ECHO_C" >&6
7493 else
7494 case $FDP in
7495 [\\/]* | ?:[\\/]*)
7496 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500 for as_dir in $PATH
7502 IFS=$as_save_IFS
7503 test -z "$as_dir" && as_dir=.
7504 for ac_exec_ext in '' $ac_executable_extensions; do
7505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7506 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7508 break 2
7510 done
7511 done
7512 IFS=$as_save_IFS
7514 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7516 esac
7518 FDP=$ac_cv_path_FDP
7519 if test -n "$FDP"; then
7520 { echo "$as_me:$LINENO: result: $FDP" >&5
7521 echo "${ECHO_T}$FDP" >&6; }
7522 else
7523 { echo "$as_me:$LINENO: result: no" >&5
7524 echo "${ECHO_T}no" >&6; }
7528 if test "$FDP" != "echo fdp" ; then
7530 cat >>confdefs.h <<\_ACEOF
7531 #define HAVE_FDP 1
7532 _ACEOF
7534 if test "$llvm_cv_os_type" = "MingW" ; then
7535 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7538 cat >>confdefs.h <<_ACEOF
7539 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7540 _ACEOF
7543 # Extract the first word of "neato", so it can be a program name with args.
7544 set dummy neato; ac_word=$2
7545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7547 if test "${ac_cv_path_NEATO+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550 case $NEATO in
7551 [\\/]* | ?:[\\/]*)
7552 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7558 IFS=$as_save_IFS
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7562 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 break 2
7566 done
7567 done
7568 IFS=$as_save_IFS
7570 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7572 esac
7574 NEATO=$ac_cv_path_NEATO
7575 if test -n "$NEATO"; then
7576 { echo "$as_me:$LINENO: result: $NEATO" >&5
7577 echo "${ECHO_T}$NEATO" >&6; }
7578 else
7579 { echo "$as_me:$LINENO: result: no" >&5
7580 echo "${ECHO_T}no" >&6; }
7584 if test "$NEATO" != "echo neato" ; then
7586 cat >>confdefs.h <<\_ACEOF
7587 #define HAVE_NEATO 1
7588 _ACEOF
7590 if test "$llvm_cv_os_type" = "MingW" ; then
7591 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7594 cat >>confdefs.h <<_ACEOF
7595 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7596 _ACEOF
7599 # Extract the first word of "twopi", so it can be a program name with args.
7600 set dummy twopi; ac_word=$2
7601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7603 if test "${ac_cv_path_TWOPI+set}" = set; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
7605 else
7606 case $TWOPI in
7607 [\\/]* | ?:[\\/]*)
7608 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 for as_dir in $PATH
7614 IFS=$as_save_IFS
7615 test -z "$as_dir" && as_dir=.
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7618 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 break 2
7622 done
7623 done
7624 IFS=$as_save_IFS
7626 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7628 esac
7630 TWOPI=$ac_cv_path_TWOPI
7631 if test -n "$TWOPI"; then
7632 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7633 echo "${ECHO_T}$TWOPI" >&6; }
7634 else
7635 { echo "$as_me:$LINENO: result: no" >&5
7636 echo "${ECHO_T}no" >&6; }
7640 if test "$TWOPI" != "echo twopi" ; then
7642 cat >>confdefs.h <<\_ACEOF
7643 #define HAVE_TWOPI 1
7644 _ACEOF
7646 if test "$llvm_cv_os_type" = "MingW" ; then
7647 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7650 cat >>confdefs.h <<_ACEOF
7651 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7652 _ACEOF
7655 # Extract the first word of "circo", so it can be a program name with args.
7656 set dummy circo; ac_word=$2
7657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7659 if test "${ac_cv_path_CIRCO+set}" = set; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
7661 else
7662 case $CIRCO in
7663 [\\/]* | ?:[\\/]*)
7664 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668 for as_dir in $PATH
7670 IFS=$as_save_IFS
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7674 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7676 break 2
7678 done
7679 done
7680 IFS=$as_save_IFS
7682 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7684 esac
7686 CIRCO=$ac_cv_path_CIRCO
7687 if test -n "$CIRCO"; then
7688 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7689 echo "${ECHO_T}$CIRCO" >&6; }
7690 else
7691 { echo "$as_me:$LINENO: result: no" >&5
7692 echo "${ECHO_T}no" >&6; }
7696 if test "$CIRCO" != "echo circo" ; then
7698 cat >>confdefs.h <<\_ACEOF
7699 #define HAVE_CIRCO 1
7700 _ACEOF
7702 if test "$llvm_cv_os_type" = "MingW" ; then
7703 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7706 cat >>confdefs.h <<_ACEOF
7707 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7708 _ACEOF
7711 for ac_prog in gv gsview32
7713 # Extract the first word of "$ac_prog", so it can be a program name with args.
7714 set dummy $ac_prog; ac_word=$2
7715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7717 if test "${ac_cv_path_GV+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7719 else
7720 case $GV in
7721 [\\/]* | ?:[\\/]*)
7722 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726 for as_dir in $PATH
7728 IFS=$as_save_IFS
7729 test -z "$as_dir" && as_dir=.
7730 for ac_exec_ext in '' $ac_executable_extensions; do
7731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7732 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7734 break 2
7736 done
7737 done
7738 IFS=$as_save_IFS
7741 esac
7743 GV=$ac_cv_path_GV
7744 if test -n "$GV"; then
7745 { echo "$as_me:$LINENO: result: $GV" >&5
7746 echo "${ECHO_T}$GV" >&6; }
7747 else
7748 { echo "$as_me:$LINENO: result: no" >&5
7749 echo "${ECHO_T}no" >&6; }
7753 test -n "$GV" && break
7754 done
7755 test -n "$GV" || GV="echo gv"
7757 if test "$GV" != "echo gv" ; then
7759 cat >>confdefs.h <<\_ACEOF
7760 #define HAVE_GV 1
7761 _ACEOF
7763 if test "$llvm_cv_os_type" = "MingW" ; then
7764 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7767 cat >>confdefs.h <<_ACEOF
7768 #define LLVM_PATH_GV "$GV${EXEEXT}"
7769 _ACEOF
7772 # Extract the first word of "dotty", so it can be a program name with args.
7773 set dummy dotty; ac_word=$2
7774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7776 if test "${ac_cv_path_DOTTY+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7778 else
7779 case $DOTTY in
7780 [\\/]* | ?:[\\/]*)
7781 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785 for as_dir in $PATH
7787 IFS=$as_save_IFS
7788 test -z "$as_dir" && as_dir=.
7789 for ac_exec_ext in '' $ac_executable_extensions; do
7790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7791 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7793 break 2
7795 done
7796 done
7797 IFS=$as_save_IFS
7799 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7801 esac
7803 DOTTY=$ac_cv_path_DOTTY
7804 if test -n "$DOTTY"; then
7805 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7806 echo "${ECHO_T}$DOTTY" >&6; }
7807 else
7808 { echo "$as_me:$LINENO: result: no" >&5
7809 echo "${ECHO_T}no" >&6; }
7813 if test "$DOTTY" != "echo dotty" ; then
7815 cat >>confdefs.h <<\_ACEOF
7816 #define HAVE_DOTTY 1
7817 _ACEOF
7819 if test "$llvm_cv_os_type" = "MingW" ; then
7820 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7823 cat >>confdefs.h <<_ACEOF
7824 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7825 _ACEOF
7830 # Extract the first word of "perl", so it can be a program name with args.
7831 set dummy perl; ac_word=$2
7832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7834 if test "${ac_cv_path_PERL+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 else
7837 case $PERL in
7838 [\\/]* | ?:[\\/]*)
7839 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 for as_dir in $PATH
7845 IFS=$as_save_IFS
7846 test -z "$as_dir" && as_dir=.
7847 for ac_exec_ext in '' $ac_executable_extensions; do
7848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7849 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7851 break 2
7853 done
7854 done
7855 IFS=$as_save_IFS
7857 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7859 esac
7861 PERL=$ac_cv_path_PERL
7862 if test -n "$PERL"; then
7863 { echo "$as_me:$LINENO: result: $PERL" >&5
7864 echo "${ECHO_T}$PERL" >&6; }
7865 else
7866 { echo "$as_me:$LINENO: result: no" >&5
7867 echo "${ECHO_T}no" >&6; }
7871 if test "$PERL" != "none"; then
7872 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7873 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7874 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7875 { echo "$as_me:$LINENO: result: yes" >&5
7876 echo "${ECHO_T}yes" >&6; }
7877 else
7878 PERL=none
7879 { echo "$as_me:$LINENO: result: not found" >&5
7880 echo "${ECHO_T}not found" >&6; }
7885 if test x"$PERL" = xnone; then
7886 HAVE_PERL=0
7888 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7889 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7890 { (exit 1); exit 1; }; }
7891 else
7892 HAVE_PERL=1
7896 # Find a good install program. We prefer a C program (faster),
7897 # so one script is as good as another. But avoid the broken or
7898 # incompatible versions:
7899 # SysV /etc/install, /usr/sbin/install
7900 # SunOS /usr/etc/install
7901 # IRIX /sbin/install
7902 # AIX /bin/install
7903 # AmigaOS /C/install, which installs bootblocks on floppy discs
7904 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7905 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7906 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7907 # OS/2's system install, which has a completely different semantic
7908 # ./install, which can be erroneously created by make from ./install.sh.
7909 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7910 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7911 if test -z "$INSTALL"; then
7912 if test "${ac_cv_path_install+set}" = set; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
7914 else
7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916 for as_dir in $PATH
7918 IFS=$as_save_IFS
7919 test -z "$as_dir" && as_dir=.
7920 # Account for people who put trailing slashes in PATH elements.
7921 case $as_dir/ in
7922 ./ | .// | /cC/* | \
7923 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7924 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7925 /usr/ucb/* ) ;;
7927 # OSF1 and SCO ODT 3.0 have their own names for install.
7928 # Don't use installbsd from OSF since it installs stuff as root
7929 # by default.
7930 for ac_prog in ginstall scoinst install; do
7931 for ac_exec_ext in '' $ac_executable_extensions; do
7932 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7933 if test $ac_prog = install &&
7934 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7935 # AIX install. It has an incompatible calling convention.
7937 elif test $ac_prog = install &&
7938 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7939 # program-specific install script used by HP pwplus--don't use.
7941 else
7942 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7943 break 3
7946 done
7947 done
7949 esac
7950 done
7951 IFS=$as_save_IFS
7955 if test "${ac_cv_path_install+set}" = set; then
7956 INSTALL=$ac_cv_path_install
7957 else
7958 # As a last resort, use the slow shell script. Don't cache a
7959 # value for INSTALL within a source directory, because that will
7960 # break other packages using the cache if that directory is
7961 # removed, or if the value is a relative name.
7962 INSTALL=$ac_install_sh
7965 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7966 echo "${ECHO_T}$INSTALL" >&6; }
7968 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7969 # It thinks the first close brace ends the variable substitution.
7970 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7972 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7974 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7977 # Extract the first word of "bzip2", so it can be a program name with args.
7978 set dummy bzip2; ac_word=$2
7979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7981 if test "${ac_cv_path_BZIP2+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 else
7984 case $BZIP2 in
7985 [\\/]* | ?:[\\/]*)
7986 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990 for as_dir in $PATH
7992 IFS=$as_save_IFS
7993 test -z "$as_dir" && as_dir=.
7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7996 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7998 break 2
8000 done
8001 done
8002 IFS=$as_save_IFS
8005 esac
8007 BZIP2=$ac_cv_path_BZIP2
8008 if test -n "$BZIP2"; then
8009 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8010 echo "${ECHO_T}$BZIP2" >&6; }
8011 else
8012 { echo "$as_me:$LINENO: result: no" >&5
8013 echo "${ECHO_T}no" >&6; }
8017 # Extract the first word of "doxygen", so it can be a program name with args.
8018 set dummy doxygen; ac_word=$2
8019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8021 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8022 echo $ECHO_N "(cached) $ECHO_C" >&6
8023 else
8024 case $DOXYGEN in
8025 [\\/]* | ?:[\\/]*)
8026 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 for as_dir in $PATH
8032 IFS=$as_save_IFS
8033 test -z "$as_dir" && as_dir=.
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8036 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8038 break 2
8040 done
8041 done
8042 IFS=$as_save_IFS
8045 esac
8047 DOXYGEN=$ac_cv_path_DOXYGEN
8048 if test -n "$DOXYGEN"; then
8049 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8050 echo "${ECHO_T}$DOXYGEN" >&6; }
8051 else
8052 { echo "$as_me:$LINENO: result: no" >&5
8053 echo "${ECHO_T}no" >&6; }
8057 # Extract the first word of "groff", so it can be a program name with args.
8058 set dummy groff; ac_word=$2
8059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8061 if test "${ac_cv_path_GROFF+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8063 else
8064 case $GROFF in
8065 [\\/]* | ?:[\\/]*)
8066 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 for as_dir in $PATH
8072 IFS=$as_save_IFS
8073 test -z "$as_dir" && as_dir=.
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8076 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8078 break 2
8080 done
8081 done
8082 IFS=$as_save_IFS
8085 esac
8087 GROFF=$ac_cv_path_GROFF
8088 if test -n "$GROFF"; then
8089 { echo "$as_me:$LINENO: result: $GROFF" >&5
8090 echo "${ECHO_T}$GROFF" >&6; }
8091 else
8092 { echo "$as_me:$LINENO: result: no" >&5
8093 echo "${ECHO_T}no" >&6; }
8097 # Extract the first word of "gzip", so it can be a program name with args.
8098 set dummy gzip; ac_word=$2
8099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8101 if test "${ac_cv_path_GZIP+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8103 else
8104 case $GZIP in
8105 [\\/]* | ?:[\\/]*)
8106 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 for as_dir in $PATH
8112 IFS=$as_save_IFS
8113 test -z "$as_dir" && as_dir=.
8114 for ac_exec_ext in '' $ac_executable_extensions; do
8115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8116 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8118 break 2
8120 done
8121 done
8122 IFS=$as_save_IFS
8125 esac
8127 GZIP=$ac_cv_path_GZIP
8128 if test -n "$GZIP"; then
8129 { echo "$as_me:$LINENO: result: $GZIP" >&5
8130 echo "${ECHO_T}$GZIP" >&6; }
8131 else
8132 { echo "$as_me:$LINENO: result: no" >&5
8133 echo "${ECHO_T}no" >&6; }
8137 # Extract the first word of "pod2html", so it can be a program name with args.
8138 set dummy pod2html; ac_word=$2
8139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8141 if test "${ac_cv_path_POD2HTML+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8143 else
8144 case $POD2HTML in
8145 [\\/]* | ?:[\\/]*)
8146 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150 for as_dir in $PATH
8152 IFS=$as_save_IFS
8153 test -z "$as_dir" && as_dir=.
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8156 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 break 2
8160 done
8161 done
8162 IFS=$as_save_IFS
8165 esac
8167 POD2HTML=$ac_cv_path_POD2HTML
8168 if test -n "$POD2HTML"; then
8169 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8170 echo "${ECHO_T}$POD2HTML" >&6; }
8171 else
8172 { echo "$as_me:$LINENO: result: no" >&5
8173 echo "${ECHO_T}no" >&6; }
8177 # Extract the first word of "pod2man", so it can be a program name with args.
8178 set dummy pod2man; ac_word=$2
8179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8181 if test "${ac_cv_path_POD2MAN+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
8183 else
8184 case $POD2MAN in
8185 [\\/]* | ?:[\\/]*)
8186 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190 for as_dir in $PATH
8192 IFS=$as_save_IFS
8193 test -z "$as_dir" && as_dir=.
8194 for ac_exec_ext in '' $ac_executable_extensions; do
8195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8196 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8198 break 2
8200 done
8201 done
8202 IFS=$as_save_IFS
8205 esac
8207 POD2MAN=$ac_cv_path_POD2MAN
8208 if test -n "$POD2MAN"; then
8209 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8210 echo "${ECHO_T}$POD2MAN" >&6; }
8211 else
8212 { echo "$as_me:$LINENO: result: no" >&5
8213 echo "${ECHO_T}no" >&6; }
8217 # Extract the first word of "runtest", so it can be a program name with args.
8218 set dummy runtest; ac_word=$2
8219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8221 if test "${ac_cv_path_RUNTEST+set}" = set; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
8223 else
8224 case $RUNTEST in
8225 [\\/]* | ?:[\\/]*)
8226 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230 for as_dir in $PATH
8232 IFS=$as_save_IFS
8233 test -z "$as_dir" && as_dir=.
8234 for ac_exec_ext in '' $ac_executable_extensions; do
8235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8236 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8238 break 2
8240 done
8241 done
8242 IFS=$as_save_IFS
8245 esac
8247 RUNTEST=$ac_cv_path_RUNTEST
8248 if test -n "$RUNTEST"; then
8249 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8250 echo "${ECHO_T}$RUNTEST" >&6; }
8251 else
8252 { echo "$as_me:$LINENO: result: no" >&5
8253 echo "${ECHO_T}no" >&6; }
8258 no_itcl=true
8259 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8260 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8262 # Check whether --with-tclinclude was given.
8263 if test "${with_tclinclude+set}" = set; then
8264 withval=$with_tclinclude; with_tclinclude=${withval}
8265 else
8266 with_tclinclude=''
8269 if test "${ac_cv_path_tclsh+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8271 else
8273 if test x"${with_tclinclude}" != x ; then
8274 if test -f ${with_tclinclude}/tclsh ; then
8275 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8276 elif test -f ${with_tclinclude}/src/tclsh ; then
8277 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8278 else
8279 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8280 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8281 { (exit 1); exit 1; }; }
8287 if test x"${ac_cv_path_tclsh}" = x ; then
8288 { echo "$as_me:$LINENO: result: none" >&5
8289 echo "${ECHO_T}none" >&6; }
8290 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
8292 # Extract the first word of "$ac_prog", so it can be a program name with args.
8293 set dummy $ac_prog; ac_word=$2
8294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8296 if test "${ac_cv_path_TCLSH+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8298 else
8299 case $TCLSH in
8300 [\\/]* | ?:[\\/]*)
8301 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 for as_dir in $PATH
8307 IFS=$as_save_IFS
8308 test -z "$as_dir" && as_dir=.
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8311 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8313 break 2
8315 done
8316 done
8317 IFS=$as_save_IFS
8320 esac
8322 TCLSH=$ac_cv_path_TCLSH
8323 if test -n "$TCLSH"; then
8324 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8325 echo "${ECHO_T}$TCLSH" >&6; }
8326 else
8327 { echo "$as_me:$LINENO: result: no" >&5
8328 echo "${ECHO_T}no" >&6; }
8332 test -n "$TCLSH" && break
8333 done
8335 if test x"${TCLSH}" = x ; then
8336 ac_cv_path_tclsh='';
8337 else
8338 ac_cv_path_tclsh="${TCLSH}";
8340 else
8341 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8342 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8343 TCLSH="${ac_cv_path_tclsh}"
8347 # Extract the first word of "zip", so it can be a program name with args.
8348 set dummy zip; ac_word=$2
8349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8351 if test "${ac_cv_path_ZIP+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8353 else
8354 case $ZIP in
8355 [\\/]* | ?:[\\/]*)
8356 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360 for as_dir in $PATH
8362 IFS=$as_save_IFS
8363 test -z "$as_dir" && as_dir=.
8364 for ac_exec_ext in '' $ac_executable_extensions; do
8365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8366 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8368 break 2
8370 done
8371 done
8372 IFS=$as_save_IFS
8375 esac
8377 ZIP=$ac_cv_path_ZIP
8378 if test -n "$ZIP"; then
8379 { echo "$as_me:$LINENO: result: $ZIP" >&5
8380 echo "${ECHO_T}$ZIP" >&6; }
8381 else
8382 { echo "$as_me:$LINENO: result: no" >&5
8383 echo "${ECHO_T}no" >&6; }
8387 for ac_prog in ocamlc
8389 # Extract the first word of "$ac_prog", so it can be a program name with args.
8390 set dummy $ac_prog; ac_word=$2
8391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8393 if test "${ac_cv_path_OCAMLC+set}" = set; then
8394 echo $ECHO_N "(cached) $ECHO_C" >&6
8395 else
8396 case $OCAMLC in
8397 [\\/]* | ?:[\\/]*)
8398 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402 for as_dir in $PATH
8404 IFS=$as_save_IFS
8405 test -z "$as_dir" && as_dir=.
8406 for ac_exec_ext in '' $ac_executable_extensions; do
8407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8408 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8410 break 2
8412 done
8413 done
8414 IFS=$as_save_IFS
8417 esac
8419 OCAMLC=$ac_cv_path_OCAMLC
8420 if test -n "$OCAMLC"; then
8421 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8422 echo "${ECHO_T}$OCAMLC" >&6; }
8423 else
8424 { echo "$as_me:$LINENO: result: no" >&5
8425 echo "${ECHO_T}no" >&6; }
8429 test -n "$OCAMLC" && break
8430 done
8432 for ac_prog in ocamlopt
8434 # Extract the first word of "$ac_prog", so it can be a program name with args.
8435 set dummy $ac_prog; ac_word=$2
8436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8438 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8439 echo $ECHO_N "(cached) $ECHO_C" >&6
8440 else
8441 case $OCAMLOPT in
8442 [\\/]* | ?:[\\/]*)
8443 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447 for as_dir in $PATH
8449 IFS=$as_save_IFS
8450 test -z "$as_dir" && as_dir=.
8451 for ac_exec_ext in '' $ac_executable_extensions; do
8452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8453 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8455 break 2
8457 done
8458 done
8459 IFS=$as_save_IFS
8462 esac
8464 OCAMLOPT=$ac_cv_path_OCAMLOPT
8465 if test -n "$OCAMLOPT"; then
8466 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8467 echo "${ECHO_T}$OCAMLOPT" >&6; }
8468 else
8469 { echo "$as_me:$LINENO: result: no" >&5
8470 echo "${ECHO_T}no" >&6; }
8474 test -n "$OCAMLOPT" && break
8475 done
8477 for ac_prog in ocamldep
8479 # Extract the first word of "$ac_prog", so it can be a program name with args.
8480 set dummy $ac_prog; ac_word=$2
8481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8483 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
8485 else
8486 case $OCAMLDEP in
8487 [\\/]* | ?:[\\/]*)
8488 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492 for as_dir in $PATH
8494 IFS=$as_save_IFS
8495 test -z "$as_dir" && as_dir=.
8496 for ac_exec_ext in '' $ac_executable_extensions; do
8497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8498 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8500 break 2
8502 done
8503 done
8504 IFS=$as_save_IFS
8507 esac
8509 OCAMLDEP=$ac_cv_path_OCAMLDEP
8510 if test -n "$OCAMLDEP"; then
8511 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8512 echo "${ECHO_T}$OCAMLDEP" >&6; }
8513 else
8514 { echo "$as_me:$LINENO: result: no" >&5
8515 echo "${ECHO_T}no" >&6; }
8519 test -n "$OCAMLDEP" && break
8520 done
8522 for ac_prog in ocamldoc
8524 # Extract the first word of "$ac_prog", so it can be a program name with args.
8525 set dummy $ac_prog; ac_word=$2
8526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8528 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
8530 else
8531 case $OCAMLDOC in
8532 [\\/]* | ?:[\\/]*)
8533 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537 for as_dir in $PATH
8539 IFS=$as_save_IFS
8540 test -z "$as_dir" && as_dir=.
8541 for ac_exec_ext in '' $ac_executable_extensions; do
8542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8543 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8545 break 2
8547 done
8548 done
8549 IFS=$as_save_IFS
8552 esac
8554 OCAMLDOC=$ac_cv_path_OCAMLDOC
8555 if test -n "$OCAMLDOC"; then
8556 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8557 echo "${ECHO_T}$OCAMLDOC" >&6; }
8558 else
8559 { echo "$as_me:$LINENO: result: no" >&5
8560 echo "${ECHO_T}no" >&6; }
8564 test -n "$OCAMLDOC" && break
8565 done
8567 for ac_prog in gas as
8569 # Extract the first word of "$ac_prog", so it can be a program name with args.
8570 set dummy $ac_prog; ac_word=$2
8571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8573 if test "${ac_cv_path_GAS+set}" = set; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8575 else
8576 case $GAS in
8577 [\\/]* | ?:[\\/]*)
8578 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582 for as_dir in $PATH
8584 IFS=$as_save_IFS
8585 test -z "$as_dir" && as_dir=.
8586 for ac_exec_ext in '' $ac_executable_extensions; do
8587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8588 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8590 break 2
8592 done
8593 done
8594 IFS=$as_save_IFS
8597 esac
8599 GAS=$ac_cv_path_GAS
8600 if test -n "$GAS"; then
8601 { echo "$as_me:$LINENO: result: $GAS" >&5
8602 echo "${ECHO_T}$GAS" >&6; }
8603 else
8604 { echo "$as_me:$LINENO: result: no" >&5
8605 echo "${ECHO_T}no" >&6; }
8609 test -n "$GAS" && break
8610 done
8613 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8614 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8615 if test "${llvm_cv_link_use_r+set}" = set; then
8616 echo $ECHO_N "(cached) $ECHO_C" >&6
8617 else
8618 ac_ext=c
8619 ac_cpp='$CPP $CPPFLAGS'
8620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8624 oldcflags="$CFLAGS"
8625 CFLAGS="$CFLAGS -Wl,-R."
8626 cat >conftest.$ac_ext <<_ACEOF
8627 /* confdefs.h. */
8628 _ACEOF
8629 cat confdefs.h >>conftest.$ac_ext
8630 cat >>conftest.$ac_ext <<_ACEOF
8631 /* end confdefs.h. */
8634 main ()
8636 int main() { return 0; }
8638 return 0;
8640 _ACEOF
8641 rm -f conftest.$ac_objext conftest$ac_exeext
8642 if { (ac_try="$ac_link"
8643 case "(($ac_try" in
8644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8645 *) ac_try_echo=$ac_try;;
8646 esac
8647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8648 (eval "$ac_link") 2>conftest.er1
8649 ac_status=$?
8650 grep -v '^ *+' conftest.er1 >conftest.err
8651 rm -f conftest.er1
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } &&
8655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8656 { (case "(($ac_try" in
8657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8658 *) ac_try_echo=$ac_try;;
8659 esac
8660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8661 (eval "$ac_try") 2>&5
8662 ac_status=$?
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; } &&
8665 { ac_try='test -s conftest$ac_exeext'
8666 { (case "(($ac_try" in
8667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8668 *) ac_try_echo=$ac_try;;
8669 esac
8670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8671 (eval "$ac_try") 2>&5
8672 ac_status=$?
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); }; }; then
8675 llvm_cv_link_use_r=yes
8676 else
8677 echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.$ac_ext >&5
8680 llvm_cv_link_use_r=no
8683 rm -f core conftest.err conftest.$ac_objext \
8684 conftest$ac_exeext conftest.$ac_ext
8685 CFLAGS="$oldcflags"
8686 ac_ext=c
8687 ac_cpp='$CPP $CPPFLAGS'
8688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8694 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8695 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8696 if test "$llvm_cv_link_use_r" = yes ; then
8698 cat >>confdefs.h <<\_ACEOF
8699 #define HAVE_LINK_R 1
8700 _ACEOF
8705 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8706 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8707 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8709 else
8710 ac_ext=c
8711 ac_cpp='$CPP $CPPFLAGS'
8712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8716 oldcflags="$CFLAGS"
8717 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8718 cat >conftest.$ac_ext <<_ACEOF
8719 /* confdefs.h. */
8720 _ACEOF
8721 cat confdefs.h >>conftest.$ac_ext
8722 cat >>conftest.$ac_ext <<_ACEOF
8723 /* end confdefs.h. */
8726 main ()
8728 int main() { return 0; }
8730 return 0;
8732 _ACEOF
8733 rm -f conftest.$ac_objext conftest$ac_exeext
8734 if { (ac_try="$ac_link"
8735 case "(($ac_try" in
8736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8737 *) ac_try_echo=$ac_try;;
8738 esac
8739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8740 (eval "$ac_link") 2>conftest.er1
8741 ac_status=$?
8742 grep -v '^ *+' conftest.er1 >conftest.err
8743 rm -f conftest.er1
8744 cat conftest.err >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); } &&
8747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8748 { (case "(($ac_try" in
8749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750 *) ac_try_echo=$ac_try;;
8751 esac
8752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8753 (eval "$ac_try") 2>&5
8754 ac_status=$?
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); }; } &&
8757 { ac_try='test -s conftest$ac_exeext'
8758 { (case "(($ac_try" in
8759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8760 *) ac_try_echo=$ac_try;;
8761 esac
8762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8763 (eval "$ac_try") 2>&5
8764 ac_status=$?
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); }; }; then
8767 llvm_cv_link_use_export_dynamic=yes
8768 else
8769 echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8772 llvm_cv_link_use_export_dynamic=no
8775 rm -f core conftest.err conftest.$ac_objext \
8776 conftest$ac_exeext conftest.$ac_ext
8777 CFLAGS="$oldcflags"
8778 ac_ext=c
8779 ac_cpp='$CPP $CPPFLAGS'
8780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8786 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8787 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8788 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8790 cat >>confdefs.h <<\_ACEOF
8791 #define HAVE_LINK_EXPORT_DYNAMIC 1
8792 _ACEOF
8799 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8800 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8801 if test "${ac_cv_c_const+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8803 else
8804 cat >conftest.$ac_ext <<_ACEOF
8805 /* confdefs.h. */
8806 _ACEOF
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h. */
8812 main ()
8814 /* FIXME: Include the comments suggested by Paul. */
8815 #ifndef __cplusplus
8816 /* Ultrix mips cc rejects this. */
8817 typedef int charset[2];
8818 const charset x;
8819 /* SunOS 4.1.1 cc rejects this. */
8820 char const *const *ccp;
8821 char **p;
8822 /* NEC SVR4.0.2 mips cc rejects this. */
8823 struct point {int x, y;};
8824 static struct point const zero = {0,0};
8825 /* AIX XL C 1.02.0.0 rejects this.
8826 It does not let you subtract one const X* pointer from another in
8827 an arm of an if-expression whose if-part is not a constant
8828 expression */
8829 const char *g = "string";
8830 ccp = &g + (g ? g-g : 0);
8831 /* HPUX 7.0 cc rejects these. */
8832 ++ccp;
8833 p = (char**) ccp;
8834 ccp = (char const *const *) p;
8835 { /* SCO 3.2v4 cc rejects this. */
8836 char *t;
8837 char const *s = 0 ? (char *) 0 : (char const *) 0;
8839 *t++ = 0;
8840 if (s) return 0;
8842 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8843 int x[] = {25, 17};
8844 const int *foo = &x[0];
8845 ++foo;
8847 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8848 typedef const int *iptr;
8849 iptr p = 0;
8850 ++p;
8852 { /* AIX XL C 1.02.0.0 rejects this saying
8853 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8854 struct s { int j; const int *ap[3]; };
8855 struct s *b; b->j = 5;
8857 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8858 const int foo = 10;
8859 if (!foo) return 0;
8861 return !x[0] && !zero.x;
8862 #endif
8865 return 0;
8867 _ACEOF
8868 rm -f conftest.$ac_objext
8869 if { (ac_try="$ac_compile"
8870 case "(($ac_try" in
8871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872 *) ac_try_echo=$ac_try;;
8873 esac
8874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8875 (eval "$ac_compile") 2>conftest.er1
8876 ac_status=$?
8877 grep -v '^ *+' conftest.er1 >conftest.err
8878 rm -f conftest.er1
8879 cat conftest.err >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); } &&
8882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8883 { (case "(($ac_try" in
8884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8885 *) ac_try_echo=$ac_try;;
8886 esac
8887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8888 (eval "$ac_try") 2>&5
8889 ac_status=$?
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; } &&
8892 { ac_try='test -s conftest.$ac_objext'
8893 { (case "(($ac_try" in
8894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8895 *) ac_try_echo=$ac_try;;
8896 esac
8897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8898 (eval "$ac_try") 2>&5
8899 ac_status=$?
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; }; then
8902 ac_cv_c_const=yes
8903 else
8904 echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.$ac_ext >&5
8907 ac_cv_c_const=no
8910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8912 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8913 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8914 if test $ac_cv_c_const = no; then
8916 cat >>confdefs.h <<\_ACEOF
8917 #define const
8918 _ACEOF
8927 ac_header_dirent=no
8928 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8929 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8930 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8931 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8933 echo $ECHO_N "(cached) $ECHO_C" >&6
8934 else
8935 cat >conftest.$ac_ext <<_ACEOF
8936 /* confdefs.h. */
8937 _ACEOF
8938 cat confdefs.h >>conftest.$ac_ext
8939 cat >>conftest.$ac_ext <<_ACEOF
8940 /* end confdefs.h. */
8941 #include <sys/types.h>
8942 #include <$ac_hdr>
8945 main ()
8947 if ((DIR *) 0)
8948 return 0;
8950 return 0;
8952 _ACEOF
8953 rm -f conftest.$ac_objext
8954 if { (ac_try="$ac_compile"
8955 case "(($ac_try" in
8956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8957 *) ac_try_echo=$ac_try;;
8958 esac
8959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8960 (eval "$ac_compile") 2>conftest.er1
8961 ac_status=$?
8962 grep -v '^ *+' conftest.er1 >conftest.err
8963 rm -f conftest.er1
8964 cat conftest.err >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } &&
8967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8968 { (case "(($ac_try" in
8969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8970 *) ac_try_echo=$ac_try;;
8971 esac
8972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8973 (eval "$ac_try") 2>&5
8974 ac_status=$?
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; } &&
8977 { ac_try='test -s conftest.$ac_objext'
8978 { (case "(($ac_try" in
8979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8980 *) ac_try_echo=$ac_try;;
8981 esac
8982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8983 (eval "$ac_try") 2>&5
8984 ac_status=$?
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; }; then
8987 eval "$as_ac_Header=yes"
8988 else
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8992 eval "$as_ac_Header=no"
8995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8997 ac_res=`eval echo '${'$as_ac_Header'}'`
8998 { echo "$as_me:$LINENO: result: $ac_res" >&5
8999 echo "${ECHO_T}$ac_res" >&6; }
9000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9001 cat >>confdefs.h <<_ACEOF
9002 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9003 _ACEOF
9005 ac_header_dirent=$ac_hdr; break
9008 done
9009 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9010 if test $ac_header_dirent = dirent.h; then
9011 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9012 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9013 if test "${ac_cv_search_opendir+set}" = set; then
9014 echo $ECHO_N "(cached) $ECHO_C" >&6
9015 else
9016 ac_func_search_save_LIBS=$LIBS
9017 cat >conftest.$ac_ext <<_ACEOF
9018 /* confdefs.h. */
9019 _ACEOF
9020 cat confdefs.h >>conftest.$ac_ext
9021 cat >>conftest.$ac_ext <<_ACEOF
9022 /* end confdefs.h. */
9024 /* Override any GCC internal prototype to avoid an error.
9025 Use char because int might match the return type of a GCC
9026 builtin and then its argument prototype would still apply. */
9027 #ifdef __cplusplus
9028 extern "C"
9029 #endif
9030 char opendir ();
9032 main ()
9034 return opendir ();
9036 return 0;
9038 _ACEOF
9039 for ac_lib in '' dir; do
9040 if test -z "$ac_lib"; then
9041 ac_res="none required"
9042 else
9043 ac_res=-l$ac_lib
9044 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9046 rm -f conftest.$ac_objext conftest$ac_exeext
9047 if { (ac_try="$ac_link"
9048 case "(($ac_try" in
9049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9050 *) ac_try_echo=$ac_try;;
9051 esac
9052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9053 (eval "$ac_link") 2>conftest.er1
9054 ac_status=$?
9055 grep -v '^ *+' conftest.er1 >conftest.err
9056 rm -f conftest.er1
9057 cat conftest.err >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } &&
9060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9061 { (case "(($ac_try" in
9062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9063 *) ac_try_echo=$ac_try;;
9064 esac
9065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9066 (eval "$ac_try") 2>&5
9067 ac_status=$?
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; } &&
9070 { ac_try='test -s conftest$ac_exeext'
9071 { (case "(($ac_try" in
9072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9073 *) ac_try_echo=$ac_try;;
9074 esac
9075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9076 (eval "$ac_try") 2>&5
9077 ac_status=$?
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; }; then
9080 ac_cv_search_opendir=$ac_res
9081 else
9082 echo "$as_me: failed program was:" >&5
9083 sed 's/^/| /' conftest.$ac_ext >&5
9088 rm -f core conftest.err conftest.$ac_objext \
9089 conftest$ac_exeext
9090 if test "${ac_cv_search_opendir+set}" = set; then
9091 break
9093 done
9094 if test "${ac_cv_search_opendir+set}" = set; then
9096 else
9097 ac_cv_search_opendir=no
9099 rm conftest.$ac_ext
9100 LIBS=$ac_func_search_save_LIBS
9102 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9103 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9104 ac_res=$ac_cv_search_opendir
9105 if test "$ac_res" != no; then
9106 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9110 else
9111 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9112 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9113 if test "${ac_cv_search_opendir+set}" = set; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
9115 else
9116 ac_func_search_save_LIBS=$LIBS
9117 cat >conftest.$ac_ext <<_ACEOF
9118 /* confdefs.h. */
9119 _ACEOF
9120 cat confdefs.h >>conftest.$ac_ext
9121 cat >>conftest.$ac_ext <<_ACEOF
9122 /* end confdefs.h. */
9124 /* Override any GCC internal prototype to avoid an error.
9125 Use char because int might match the return type of a GCC
9126 builtin and then its argument prototype would still apply. */
9127 #ifdef __cplusplus
9128 extern "C"
9129 #endif
9130 char opendir ();
9132 main ()
9134 return opendir ();
9136 return 0;
9138 _ACEOF
9139 for ac_lib in '' x; do
9140 if test -z "$ac_lib"; then
9141 ac_res="none required"
9142 else
9143 ac_res=-l$ac_lib
9144 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9146 rm -f conftest.$ac_objext conftest$ac_exeext
9147 if { (ac_try="$ac_link"
9148 case "(($ac_try" in
9149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9150 *) ac_try_echo=$ac_try;;
9151 esac
9152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9153 (eval "$ac_link") 2>conftest.er1
9154 ac_status=$?
9155 grep -v '^ *+' conftest.er1 >conftest.err
9156 rm -f conftest.er1
9157 cat conftest.err >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); } &&
9160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9161 { (case "(($ac_try" in
9162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9164 esac
9165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166 (eval "$ac_try") 2>&5
9167 ac_status=$?
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; } &&
9170 { ac_try='test -s conftest$ac_exeext'
9171 { (case "(($ac_try" in
9172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9173 *) ac_try_echo=$ac_try;;
9174 esac
9175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9176 (eval "$ac_try") 2>&5
9177 ac_status=$?
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); }; }; then
9180 ac_cv_search_opendir=$ac_res
9181 else
9182 echo "$as_me: failed program was:" >&5
9183 sed 's/^/| /' conftest.$ac_ext >&5
9188 rm -f core conftest.err conftest.$ac_objext \
9189 conftest$ac_exeext
9190 if test "${ac_cv_search_opendir+set}" = set; then
9191 break
9193 done
9194 if test "${ac_cv_search_opendir+set}" = set; then
9196 else
9197 ac_cv_search_opendir=no
9199 rm conftest.$ac_ext
9200 LIBS=$ac_func_search_save_LIBS
9202 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9203 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9204 ac_res=$ac_cv_search_opendir
9205 if test "$ac_res" != no; then
9206 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9213 for ac_header in dlfcn.h
9215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9222 ac_res=`eval echo '${'$as_ac_Header'}'`
9223 { echo "$as_me:$LINENO: result: $ac_res" >&5
9224 echo "${ECHO_T}$ac_res" >&6; }
9225 else
9226 # Is the header compilable?
9227 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9228 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9229 cat >conftest.$ac_ext <<_ACEOF
9230 /* confdefs.h. */
9231 _ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h. */
9235 $ac_includes_default
9236 #include <$ac_header>
9237 _ACEOF
9238 rm -f conftest.$ac_objext
9239 if { (ac_try="$ac_compile"
9240 case "(($ac_try" in
9241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9242 *) ac_try_echo=$ac_try;;
9243 esac
9244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9245 (eval "$ac_compile") 2>conftest.er1
9246 ac_status=$?
9247 grep -v '^ *+' conftest.er1 >conftest.err
9248 rm -f conftest.er1
9249 cat conftest.err >&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } &&
9252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9253 { (case "(($ac_try" in
9254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255 *) ac_try_echo=$ac_try;;
9256 esac
9257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9258 (eval "$ac_try") 2>&5
9259 ac_status=$?
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; } &&
9262 { ac_try='test -s conftest.$ac_objext'
9263 { (case "(($ac_try" in
9264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9265 *) ac_try_echo=$ac_try;;
9266 esac
9267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9268 (eval "$ac_try") 2>&5
9269 ac_status=$?
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9272 ac_header_compiler=yes
9273 else
9274 echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.$ac_ext >&5
9277 ac_header_compiler=no
9280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9281 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9282 echo "${ECHO_T}$ac_header_compiler" >&6; }
9284 # Is the header present?
9285 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9287 cat >conftest.$ac_ext <<_ACEOF
9288 /* confdefs.h. */
9289 _ACEOF
9290 cat confdefs.h >>conftest.$ac_ext
9291 cat >>conftest.$ac_ext <<_ACEOF
9292 /* end confdefs.h. */
9293 #include <$ac_header>
9294 _ACEOF
9295 if { (ac_try="$ac_cpp conftest.$ac_ext"
9296 case "(($ac_try" in
9297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9298 *) ac_try_echo=$ac_try;;
9299 esac
9300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9302 ac_status=$?
9303 grep -v '^ *+' conftest.er1 >conftest.err
9304 rm -f conftest.er1
9305 cat conftest.err >&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); } >/dev/null; then
9308 if test -s conftest.err; then
9309 ac_cpp_err=$ac_c_preproc_warn_flag
9310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9311 else
9312 ac_cpp_err=
9314 else
9315 ac_cpp_err=yes
9317 if test -z "$ac_cpp_err"; then
9318 ac_header_preproc=yes
9319 else
9320 echo "$as_me: failed program was:" >&5
9321 sed 's/^/| /' conftest.$ac_ext >&5
9323 ac_header_preproc=no
9326 rm -f conftest.err conftest.$ac_ext
9327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9328 echo "${ECHO_T}$ac_header_preproc" >&6; }
9330 # So? What about this header?
9331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9332 yes:no: )
9333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9337 ac_header_preproc=yes
9339 no:yes:* )
9340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9347 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9352 ( cat <<\_ASBOX
9353 ## ----------------------------------- ##
9354 ## Report this to llvmbugs@cs.uiuc.edu ##
9355 ## ----------------------------------- ##
9356 _ASBOX
9357 ) | sed "s/^/$as_me: WARNING: /" >&2
9359 esac
9360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9364 else
9365 eval "$as_ac_Header=\$ac_header_preproc"
9367 ac_res=`eval echo '${'$as_ac_Header'}'`
9368 { echo "$as_me:$LINENO: result: $ac_res" >&5
9369 echo "${ECHO_T}$ac_res" >&6; }
9372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9373 cat >>confdefs.h <<_ACEOF
9374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9375 _ACEOF
9379 done
9381 # Check whether --enable-ltdl-install was given.
9382 if test "${enable_ltdl_install+set}" = set; then
9383 enableval=$enable_ltdl_install;
9389 if test x"${enable_ltdl_install-no}" != xno; then
9390 INSTALL_LTDL_TRUE=
9391 INSTALL_LTDL_FALSE='#'
9392 else
9393 INSTALL_LTDL_TRUE='#'
9394 INSTALL_LTDL_FALSE=
9399 if test x"${enable_ltdl_convenience-no}" != xno; then
9400 CONVENIENCE_LTDL_TRUE=
9401 CONVENIENCE_LTDL_FALSE='#'
9402 else
9403 CONVENIENCE_LTDL_TRUE='#'
9404 CONVENIENCE_LTDL_FALSE=
9408 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9409 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9410 library_names_spec=
9411 libname_spec='lib$name'
9412 soname_spec=
9413 shrext_cmds=".so"
9414 postinstall_cmds=
9415 postuninstall_cmds=
9416 finish_cmds=
9417 finish_eval=
9418 shlibpath_var=
9419 shlibpath_overrides_runpath=unknown
9420 version_type=none
9421 dynamic_linker="$host_os ld.so"
9422 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9423 if test "$GCC" = yes; then
9424 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9425 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9426 # if the path contains ";" then we assume it to be the separator
9427 # otherwise default to the standard path separator (i.e. ":") - it is
9428 # assumed that no part of a normal pathname contains ";" but that should
9429 # okay in the real world where ";" in dirpaths is itself problematic.
9430 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9431 else
9432 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9434 else
9435 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9437 need_lib_prefix=unknown
9438 hardcode_into_libs=no
9440 # when you set need_version to no, make sure it does not cause -set_version
9441 # flags to be left without arguments
9442 need_version=unknown
9444 case $host_os in
9445 aix3*)
9446 version_type=linux
9447 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9448 shlibpath_var=LIBPATH
9450 # AIX 3 has no versioning support, so we append a major version to the name.
9451 soname_spec='${libname}${release}${shared_ext}$major'
9454 aix4* | aix5*)
9455 version_type=linux
9456 need_lib_prefix=no
9457 need_version=no
9458 hardcode_into_libs=yes
9459 if test "$host_cpu" = ia64; then
9460 # AIX 5 supports IA64
9461 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9462 shlibpath_var=LD_LIBRARY_PATH
9463 else
9464 # With GCC up to 2.95.x, collect2 would create an import file
9465 # for dependence libraries. The import file would start with
9466 # the line `#! .'. This would cause the generated library to
9467 # depend on `.', always an invalid library. This was fixed in
9468 # development snapshots of GCC prior to 3.0.
9469 case $host_os in
9470 aix4 | aix4.[01] | aix4.[01].*)
9471 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9472 echo ' yes '
9473 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9475 else
9476 can_build_shared=no
9479 esac
9480 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9481 # soname into executable. Probably we can add versioning support to
9482 # collect2, so additional links can be useful in future.
9483 if test "$aix_use_runtimelinking" = yes; then
9484 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9485 # instead of lib<name>.a to let people know that these are not
9486 # typical AIX shared libraries.
9487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9488 else
9489 # We preserve .a as extension for shared libraries through AIX4.2
9490 # and later when we are not doing run time linking.
9491 library_names_spec='${libname}${release}.a $libname.a'
9492 soname_spec='${libname}${release}${shared_ext}$major'
9494 shlibpath_var=LIBPATH
9498 amigaos*)
9499 library_names_spec='$libname.ixlibrary $libname.a'
9500 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9501 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'
9504 beos*)
9505 library_names_spec='${libname}${shared_ext}'
9506 dynamic_linker="$host_os ld.so"
9507 shlibpath_var=LIBRARY_PATH
9510 bsdi[45]*)
9511 version_type=linux
9512 need_version=no
9513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9514 soname_spec='${libname}${release}${shared_ext}$major'
9515 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9516 shlibpath_var=LD_LIBRARY_PATH
9517 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9518 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9519 # the default ld.so.conf also contains /usr/contrib/lib and
9520 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9521 # libtool to hard-code these into programs
9524 cygwin* | mingw* | pw32*)
9525 version_type=windows
9526 shrext_cmds=".dll"
9527 need_version=no
9528 need_lib_prefix=no
9530 case $GCC,$host_os in
9531 yes,cygwin* | yes,mingw* | yes,pw32*)
9532 library_names_spec='$libname.dll.a'
9533 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9534 postinstall_cmds='base_file=`basename \${file}`~
9535 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9536 dldir=$destdir/`dirname \$dlpath`~
9537 test -d \$dldir || mkdir -p \$dldir~
9538 $install_prog $dir/$dlname \$dldir/$dlname~
9539 chmod a+x \$dldir/$dlname'
9540 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9541 dlpath=$dir/\$dldll~
9542 $rm \$dlpath'
9543 shlibpath_overrides_runpath=yes
9545 case $host_os in
9546 cygwin*)
9547 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9548 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9549 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9551 mingw*)
9552 # MinGW DLLs use traditional 'lib' prefix
9553 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9554 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9555 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9556 # It is most probably a Windows format PATH printed by
9557 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9558 # path with ; separators, and with drive letters. We can handle the
9559 # drive letters (cygwin fileutils understands them), so leave them,
9560 # especially as we might pass files found there to a mingw objdump,
9561 # which wouldn't understand a cygwinified path. Ahh.
9562 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9563 else
9564 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9567 pw32*)
9568 # pw32 DLLs use 'pw' prefix rather than 'lib'
9569 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9571 esac
9575 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9577 esac
9578 dynamic_linker='Win32 ld.exe'
9579 # FIXME: first we should search . and the directory the executable is in
9580 shlibpath_var=PATH
9583 darwin* | rhapsody*)
9584 dynamic_linker="$host_os dyld"
9585 version_type=darwin
9586 need_lib_prefix=no
9587 need_version=no
9588 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9589 soname_spec='${libname}${release}${major}$shared_ext'
9590 shlibpath_overrides_runpath=yes
9591 shlibpath_var=DYLD_LIBRARY_PATH
9592 shrext_cmds='.dylib'
9593 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9594 if test "$GCC" = yes; then
9595 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"`
9596 else
9597 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9599 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9602 dgux*)
9603 version_type=linux
9604 need_lib_prefix=no
9605 need_version=no
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9607 soname_spec='${libname}${release}${shared_ext}$major'
9608 shlibpath_var=LD_LIBRARY_PATH
9611 freebsd1*)
9612 dynamic_linker=no
9615 kfreebsd*-gnu)
9616 version_type=linux
9617 need_lib_prefix=no
9618 need_version=no
9619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9620 soname_spec='${libname}${release}${shared_ext}$major'
9621 shlibpath_var=LD_LIBRARY_PATH
9622 shlibpath_overrides_runpath=no
9623 hardcode_into_libs=yes
9624 dynamic_linker='GNU ld.so'
9627 freebsd* | dragonfly*)
9628 # DragonFly does not have aout. When/if they implement a new
9629 # versioning mechanism, adjust this.
9630 if test -x /usr/bin/objformat; then
9631 objformat=`/usr/bin/objformat`
9632 else
9633 case $host_os in
9634 freebsd[123]*) objformat=aout ;;
9635 *) objformat=elf ;;
9636 esac
9638 version_type=freebsd-$objformat
9639 case $version_type in
9640 freebsd-elf*)
9641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9642 need_version=no
9643 need_lib_prefix=no
9645 freebsd-*)
9646 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9647 need_version=yes
9649 esac
9650 shlibpath_var=LD_LIBRARY_PATH
9651 case $host_os in
9652 freebsd2*)
9653 shlibpath_overrides_runpath=yes
9655 freebsd3.[01]* | freebsdelf3.[01]*)
9656 shlibpath_overrides_runpath=yes
9657 hardcode_into_libs=yes
9659 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9660 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9661 shlibpath_overrides_runpath=no
9662 hardcode_into_libs=yes
9664 freebsd*) # from 4.6 on
9665 shlibpath_overrides_runpath=yes
9666 hardcode_into_libs=yes
9668 esac
9671 gnu*)
9672 version_type=linux
9673 need_lib_prefix=no
9674 need_version=no
9675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9676 soname_spec='${libname}${release}${shared_ext}$major'
9677 shlibpath_var=LD_LIBRARY_PATH
9678 hardcode_into_libs=yes
9681 hpux9* | hpux10* | hpux11*)
9682 # Give a soname corresponding to the major version so that dld.sl refuses to
9683 # link against other versions.
9684 version_type=sunos
9685 need_lib_prefix=no
9686 need_version=no
9687 case $host_cpu in
9688 ia64*)
9689 shrext_cmds='.so'
9690 hardcode_into_libs=yes
9691 dynamic_linker="$host_os dld.so"
9692 shlibpath_var=LD_LIBRARY_PATH
9693 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9695 soname_spec='${libname}${release}${shared_ext}$major'
9696 if test "X$HPUX_IA64_MODE" = X32; then
9697 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9698 else
9699 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9701 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9703 hppa*64*)
9704 shrext_cmds='.sl'
9705 hardcode_into_libs=yes
9706 dynamic_linker="$host_os dld.sl"
9707 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9708 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9710 soname_spec='${libname}${release}${shared_ext}$major'
9711 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9712 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9715 shrext_cmds='.sl'
9716 dynamic_linker="$host_os dld.sl"
9717 shlibpath_var=SHLIB_PATH
9718 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
9722 esac
9723 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9724 postinstall_cmds='chmod 555 $lib'
9727 interix3*)
9728 version_type=linux
9729 need_lib_prefix=no
9730 need_version=no
9731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9732 soname_spec='${libname}${release}${shared_ext}$major'
9733 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9734 shlibpath_var=LD_LIBRARY_PATH
9735 shlibpath_overrides_runpath=no
9736 hardcode_into_libs=yes
9739 irix5* | irix6* | nonstopux*)
9740 case $host_os in
9741 nonstopux*) version_type=nonstopux ;;
9743 if test "$lt_cv_prog_gnu_ld" = yes; then
9744 version_type=linux
9745 else
9746 version_type=irix
9747 fi ;;
9748 esac
9749 need_lib_prefix=no
9750 need_version=no
9751 soname_spec='${libname}${release}${shared_ext}$major'
9752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9753 case $host_os in
9754 irix5* | nonstopux*)
9755 libsuff= shlibsuff=
9758 case $LD in # libtool.m4 will add one of these switches to LD
9759 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9760 libsuff= shlibsuff= libmagic=32-bit;;
9761 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9762 libsuff=32 shlibsuff=N32 libmagic=N32;;
9763 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9764 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9765 *) libsuff= shlibsuff= libmagic=never-match;;
9766 esac
9768 esac
9769 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9770 shlibpath_overrides_runpath=no
9771 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9772 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9773 hardcode_into_libs=yes
9776 # No shared lib support for Linux oldld, aout, or coff.
9777 linux*oldld* | linux*aout* | linux*coff*)
9778 dynamic_linker=no
9781 # This must be Linux ELF.
9782 linux*)
9783 version_type=linux
9784 need_lib_prefix=no
9785 need_version=no
9786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9787 soname_spec='${libname}${release}${shared_ext}$major'
9788 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9789 shlibpath_var=LD_LIBRARY_PATH
9790 shlibpath_overrides_runpath=no
9791 # This implies no fast_install, which is unacceptable.
9792 # Some rework will be needed to allow for fast_install
9793 # before this can be enabled.
9794 hardcode_into_libs=yes
9796 # Append ld.so.conf contents to the search path
9797 if test -f /etc/ld.so.conf; then
9798 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' ' '`
9799 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9802 # We used to test for /lib/ld.so.1 and disable shared libraries on
9803 # powerpc, because MkLinux only supported shared libraries with the
9804 # GNU dynamic linker. Since this was broken with cross compilers,
9805 # most powerpc-linux boxes support dynamic linking these days and
9806 # people can always --disable-shared, the test was removed, and we
9807 # assume the GNU/Linux dynamic linker is in use.
9808 dynamic_linker='GNU/Linux ld.so'
9811 knetbsd*-gnu)
9812 version_type=linux
9813 need_lib_prefix=no
9814 need_version=no
9815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9816 soname_spec='${libname}${release}${shared_ext}$major'
9817 shlibpath_var=LD_LIBRARY_PATH
9818 shlibpath_overrides_runpath=no
9819 hardcode_into_libs=yes
9820 dynamic_linker='GNU ld.so'
9823 netbsd*)
9824 version_type=sunos
9825 need_lib_prefix=no
9826 need_version=no
9827 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9829 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9830 dynamic_linker='NetBSD (a.out) ld.so'
9831 else
9832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9833 soname_spec='${libname}${release}${shared_ext}$major'
9834 dynamic_linker='NetBSD ld.elf_so'
9836 shlibpath_var=LD_LIBRARY_PATH
9837 shlibpath_overrides_runpath=yes
9838 hardcode_into_libs=yes
9841 newsos6)
9842 version_type=linux
9843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9844 shlibpath_var=LD_LIBRARY_PATH
9845 shlibpath_overrides_runpath=yes
9848 nto-qnx*)
9849 version_type=linux
9850 need_lib_prefix=no
9851 need_version=no
9852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9853 soname_spec='${libname}${release}${shared_ext}$major'
9854 shlibpath_var=LD_LIBRARY_PATH
9855 shlibpath_overrides_runpath=yes
9858 openbsd*)
9859 version_type=sunos
9860 sys_lib_dlsearch_path_spec="/usr/lib"
9861 need_lib_prefix=no
9862 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9863 case $host_os in
9864 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9865 *) need_version=no ;;
9866 esac
9867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9869 shlibpath_var=LD_LIBRARY_PATH
9870 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9871 case $host_os in
9872 openbsd2.[89] | openbsd2.[89].*)
9873 shlibpath_overrides_runpath=no
9876 shlibpath_overrides_runpath=yes
9878 esac
9879 else
9880 shlibpath_overrides_runpath=yes
9884 os2*)
9885 libname_spec='$name'
9886 shrext_cmds=".dll"
9887 need_lib_prefix=no
9888 library_names_spec='$libname${shared_ext} $libname.a'
9889 dynamic_linker='OS/2 ld.exe'
9890 shlibpath_var=LIBPATH
9893 osf3* | osf4* | osf5*)
9894 version_type=osf
9895 need_lib_prefix=no
9896 need_version=no
9897 soname_spec='${libname}${release}${shared_ext}$major'
9898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9899 shlibpath_var=LD_LIBRARY_PATH
9900 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9901 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9904 solaris*)
9905 version_type=linux
9906 need_lib_prefix=no
9907 need_version=no
9908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9909 soname_spec='${libname}${release}${shared_ext}$major'
9910 shlibpath_var=LD_LIBRARY_PATH
9911 shlibpath_overrides_runpath=yes
9912 hardcode_into_libs=yes
9913 # ldd complains unless libraries are executable
9914 postinstall_cmds='chmod +x $lib'
9917 sunos4*)
9918 version_type=sunos
9919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9920 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9921 shlibpath_var=LD_LIBRARY_PATH
9922 shlibpath_overrides_runpath=yes
9923 if test "$with_gnu_ld" = yes; then
9924 need_lib_prefix=no
9926 need_version=yes
9929 sysv4 | sysv4.3*)
9930 version_type=linux
9931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9932 soname_spec='${libname}${release}${shared_ext}$major'
9933 shlibpath_var=LD_LIBRARY_PATH
9934 case $host_vendor in
9935 sni)
9936 shlibpath_overrides_runpath=no
9937 need_lib_prefix=no
9938 export_dynamic_flag_spec='${wl}-Blargedynsym'
9939 runpath_var=LD_RUN_PATH
9941 siemens)
9942 need_lib_prefix=no
9944 motorola)
9945 need_lib_prefix=no
9946 need_version=no
9947 shlibpath_overrides_runpath=no
9948 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9950 esac
9953 sysv4*MP*)
9954 if test -d /usr/nec ;then
9955 version_type=linux
9956 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9957 soname_spec='$libname${shared_ext}.$major'
9958 shlibpath_var=LD_LIBRARY_PATH
9962 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9963 version_type=freebsd-elf
9964 need_lib_prefix=no
9965 need_version=no
9966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9967 soname_spec='${libname}${release}${shared_ext}$major'
9968 shlibpath_var=LD_LIBRARY_PATH
9969 hardcode_into_libs=yes
9970 if test "$with_gnu_ld" = yes; then
9971 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9972 shlibpath_overrides_runpath=no
9973 else
9974 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9975 shlibpath_overrides_runpath=yes
9976 case $host_os in
9977 sco3.2v5*)
9978 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9980 esac
9982 sys_lib_dlsearch_path_spec='/usr/lib'
9985 uts4*)
9986 version_type=linux
9987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9988 soname_spec='${libname}${release}${shared_ext}$major'
9989 shlibpath_var=LD_LIBRARY_PATH
9993 dynamic_linker=no
9995 esac
9996 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9997 echo "${ECHO_T}$dynamic_linker" >&6; }
9998 test "$dynamic_linker" = no && can_build_shared=no
10000 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10001 if test "$GCC" = yes; then
10002 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10006 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10007 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10008 if test "${libltdl_cv_shlibext+set}" = set; then
10009 echo $ECHO_N "(cached) $ECHO_C" >&6
10010 else
10012 module=yes
10013 eval libltdl_cv_shlibext=$shrext_cmds
10016 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10017 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10018 if test -n "$libltdl_cv_shlibext"; then
10020 cat >>confdefs.h <<_ACEOF
10021 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10022 _ACEOF
10027 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10028 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10029 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10030 echo $ECHO_N "(cached) $ECHO_C" >&6
10031 else
10032 libltdl_cv_shlibpath_var="$shlibpath_var"
10034 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10035 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10036 if test -n "$libltdl_cv_shlibpath_var"; then
10038 cat >>confdefs.h <<_ACEOF
10039 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10040 _ACEOF
10045 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10046 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10047 if test "${libltdl_cv_sys_search_path+set}" = set; then
10048 echo $ECHO_N "(cached) $ECHO_C" >&6
10049 else
10050 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10052 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10053 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10054 if test -n "$libltdl_cv_sys_search_path"; then
10055 sys_search_path=
10056 for dir in $libltdl_cv_sys_search_path; do
10057 if test -z "$sys_search_path"; then
10058 sys_search_path="$dir"
10059 else
10060 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10062 done
10064 cat >>confdefs.h <<_ACEOF
10065 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10066 _ACEOF
10070 { echo "$as_me:$LINENO: checking for objdir" >&5
10071 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10072 if test "${libltdl_cv_objdir+set}" = set; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
10074 else
10075 libltdl_cv_objdir="$objdir"
10076 if test -n "$objdir"; then
10078 else
10079 rm -f .libs 2>/dev/null
10080 mkdir .libs 2>/dev/null
10081 if test -d .libs; then
10082 libltdl_cv_objdir=.libs
10083 else
10084 # MS-DOS does not allow filenames that begin with a dot.
10085 libltdl_cv_objdir=_libs
10087 rmdir .libs 2>/dev/null
10091 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10092 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10094 cat >>confdefs.h <<_ACEOF
10095 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10096 _ACEOF
10103 # Check for command to grab the raw symbol name followed by C symbol from nm.
10104 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10105 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10106 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10107 echo $ECHO_N "(cached) $ECHO_C" >&6
10108 else
10110 # These are sane defaults that work on at least a few old systems.
10111 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10113 # Character class describing NM global symbol codes.
10114 symcode='[BCDEGRST]'
10116 # Regexp to match symbols that can be accessed directly from C.
10117 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10119 # Transform an extracted symbol line into a proper C declaration
10120 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10122 # Transform an extracted symbol line into symbol name and symbol address
10123 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'"
10125 # Define system-specific variables.
10126 case $host_os in
10127 aix*)
10128 symcode='[BCDT]'
10130 cygwin* | mingw* | pw32*)
10131 symcode='[ABCDGISTW]'
10133 hpux*) # Its linker distinguishes data from code symbols
10134 if test "$host_cpu" = ia64; then
10135 symcode='[ABCDEGRST]'
10137 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10138 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'"
10140 linux*)
10141 if test "$host_cpu" = ia64; then
10142 symcode='[ABCDGIRSTW]'
10143 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10144 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'"
10147 irix* | nonstopux*)
10148 symcode='[BCDEGRST]'
10150 osf*)
10151 symcode='[BCDEGQRST]'
10153 solaris*)
10154 symcode='[BDRT]'
10156 sco3.2v5*)
10157 symcode='[DT]'
10159 sysv4.2uw2*)
10160 symcode='[DT]'
10162 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10163 symcode='[ABDT]'
10165 sysv4)
10166 symcode='[DFNSTU]'
10168 esac
10170 # Handle CRLF in mingw tool chain
10171 opt_cr=
10172 case $build_os in
10173 mingw*)
10174 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10176 esac
10178 # If we're using GNU nm, then use its standard symbol codes.
10179 case `$NM -V 2>&1` in
10180 *GNU* | *'with BFD'*)
10181 symcode='[ABCDGIRSTW]' ;;
10182 esac
10184 # Try without a prefix undercore, then with it.
10185 for ac_symprfx in "" "_"; do
10187 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10188 symxfrm="\\1 $ac_symprfx\\2 \\2"
10190 # Write the raw and C identifiers.
10191 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10193 # Check to see that the pipe works correctly.
10194 pipe_works=no
10196 rm -f conftest*
10197 cat > conftest.$ac_ext <<EOF
10198 #ifdef __cplusplus
10199 extern "C" {
10200 #endif
10201 char nm_test_var;
10202 void nm_test_func(){}
10203 #ifdef __cplusplus
10205 #endif
10206 int main(){nm_test_var='a';nm_test_func();return(0);}
10209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10210 (eval $ac_compile) 2>&5
10211 ac_status=$?
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; then
10214 # Now try to grab the symbols.
10215 nlist=conftest.nm
10216 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10217 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10218 ac_status=$?
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } && test -s "$nlist"; then
10221 # Try sorting and uniquifying the output.
10222 if sort "$nlist" | uniq > "$nlist"T; then
10223 mv -f "$nlist"T "$nlist"
10224 else
10225 rm -f "$nlist"T
10228 # Make sure that we snagged all the symbols we need.
10229 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10230 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10231 cat <<EOF > conftest.$ac_ext
10232 #ifdef __cplusplus
10233 extern "C" {
10234 #endif
10237 # Now generate the symbol file.
10238 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10240 cat <<EOF >> conftest.$ac_ext
10241 #if defined (__STDC__) && __STDC__
10242 # define lt_ptr_t void *
10243 #else
10244 # define lt_ptr_t char *
10245 # define const
10246 #endif
10248 /* The mapping between symbol names and symbols. */
10249 const struct {
10250 const char *name;
10251 lt_ptr_t address;
10253 lt_preloaded_symbols[] =
10256 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10257 cat <<\EOF >> conftest.$ac_ext
10258 {0, (lt_ptr_t) 0}
10261 #ifdef __cplusplus
10263 #endif
10265 # Now try linking the two files.
10266 mv conftest.$ac_objext conftstm.$ac_objext
10267 lt_save_LIBS="$LIBS"
10268 lt_save_CFLAGS="$CFLAGS"
10269 LIBS="conftstm.$ac_objext"
10270 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10272 (eval $ac_link) 2>&5
10273 ac_status=$?
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10276 pipe_works=yes
10278 LIBS="$lt_save_LIBS"
10279 CFLAGS="$lt_save_CFLAGS"
10280 else
10281 echo "cannot find nm_test_func in $nlist" >&5
10283 else
10284 echo "cannot find nm_test_var in $nlist" >&5
10286 else
10287 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10289 else
10290 echo "$progname: failed program was:" >&5
10291 cat conftest.$ac_ext >&5
10293 rm -f conftest* conftst*
10295 # Do not use the global_symbol_pipe unless it works.
10296 if test "$pipe_works" = yes; then
10297 break
10298 else
10299 lt_cv_sys_global_symbol_pipe=
10301 done
10305 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10306 lt_cv_sys_global_symbol_to_cdecl=
10308 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10309 { echo "$as_me:$LINENO: result: failed" >&5
10310 echo "${ECHO_T}failed" >&6; }
10311 else
10312 { echo "$as_me:$LINENO: result: ok" >&5
10313 echo "${ECHO_T}ok" >&6; }
10317 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10318 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10319 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
10321 else
10322 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10323 libltdl_cv_preloaded_symbols=yes
10324 else
10325 libltdl_cv_preloaded_symbols=no
10329 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10330 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10331 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10333 cat >>confdefs.h <<\_ACEOF
10334 #define HAVE_PRELOADED_SYMBOLS 1
10335 _ACEOF
10339 LIBADD_DL=
10341 ac_ext=c
10342 ac_cpp='$CPP $CPPFLAGS'
10343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10348 { echo "$as_me:$LINENO: checking for shl_load" >&5
10349 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10350 if test "${ac_cv_func_shl_load+set}" = set; then
10351 echo $ECHO_N "(cached) $ECHO_C" >&6
10352 else
10353 cat >conftest.$ac_ext <<_ACEOF
10354 /* confdefs.h. */
10355 _ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h. */
10359 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10361 #define shl_load innocuous_shl_load
10363 /* System header to define __stub macros and hopefully few prototypes,
10364 which can conflict with char shl_load (); below.
10365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10366 <limits.h> exists even on freestanding compilers. */
10368 #ifdef __STDC__
10369 # include <limits.h>
10370 #else
10371 # include <assert.h>
10372 #endif
10374 #undef shl_load
10376 /* Override any GCC internal prototype to avoid an error.
10377 Use char because int might match the return type of a GCC
10378 builtin and then its argument prototype would still apply. */
10379 #ifdef __cplusplus
10380 extern "C"
10381 #endif
10382 char shl_load ();
10383 /* The GNU C library defines this for functions which it implements
10384 to always fail with ENOSYS. Some functions are actually named
10385 something starting with __ and the normal name is an alias. */
10386 #if defined __stub_shl_load || defined __stub___shl_load
10387 choke me
10388 #endif
10391 main ()
10393 return shl_load ();
10395 return 0;
10397 _ACEOF
10398 rm -f conftest.$ac_objext conftest$ac_exeext
10399 if { (ac_try="$ac_link"
10400 case "(($ac_try" in
10401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402 *) ac_try_echo=$ac_try;;
10403 esac
10404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10405 (eval "$ac_link") 2>conftest.er1
10406 ac_status=$?
10407 grep -v '^ *+' conftest.er1 >conftest.err
10408 rm -f conftest.er1
10409 cat conftest.err >&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } &&
10412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10413 { (case "(($ac_try" in
10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10416 esac
10417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418 (eval "$ac_try") 2>&5
10419 ac_status=$?
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; } &&
10422 { ac_try='test -s conftest$ac_exeext'
10423 { (case "(($ac_try" in
10424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10425 *) ac_try_echo=$ac_try;;
10426 esac
10427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10428 (eval "$ac_try") 2>&5
10429 ac_status=$?
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); }; }; then
10432 ac_cv_func_shl_load=yes
10433 else
10434 echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10437 ac_cv_func_shl_load=no
10440 rm -f core conftest.err conftest.$ac_objext \
10441 conftest$ac_exeext conftest.$ac_ext
10443 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10444 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10445 if test $ac_cv_func_shl_load = yes; then
10447 cat >>confdefs.h <<\_ACEOF
10448 #define HAVE_SHL_LOAD 1
10449 _ACEOF
10451 else
10452 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10453 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10454 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
10456 else
10457 ac_check_lib_save_LIBS=$LIBS
10458 LIBS="-ldld $LIBS"
10459 cat >conftest.$ac_ext <<_ACEOF
10460 /* confdefs.h. */
10461 _ACEOF
10462 cat confdefs.h >>conftest.$ac_ext
10463 cat >>conftest.$ac_ext <<_ACEOF
10464 /* end confdefs.h. */
10466 /* Override any GCC internal prototype to avoid an error.
10467 Use char because int might match the return type of a GCC
10468 builtin and then its argument prototype would still apply. */
10469 #ifdef __cplusplus
10470 extern "C"
10471 #endif
10472 char shl_load ();
10474 main ()
10476 return shl_load ();
10478 return 0;
10480 _ACEOF
10481 rm -f conftest.$ac_objext conftest$ac_exeext
10482 if { (ac_try="$ac_link"
10483 case "(($ac_try" in
10484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485 *) ac_try_echo=$ac_try;;
10486 esac
10487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10488 (eval "$ac_link") 2>conftest.er1
10489 ac_status=$?
10490 grep -v '^ *+' conftest.er1 >conftest.err
10491 rm -f conftest.er1
10492 cat conftest.err >&5
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); } &&
10495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10496 { (case "(($ac_try" in
10497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10498 *) ac_try_echo=$ac_try;;
10499 esac
10500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10501 (eval "$ac_try") 2>&5
10502 ac_status=$?
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; } &&
10505 { ac_try='test -s conftest$ac_exeext'
10506 { (case "(($ac_try" in
10507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508 *) ac_try_echo=$ac_try;;
10509 esac
10510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511 (eval "$ac_try") 2>&5
10512 ac_status=$?
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; }; then
10515 ac_cv_lib_dld_shl_load=yes
10516 else
10517 echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.$ac_ext >&5
10520 ac_cv_lib_dld_shl_load=no
10523 rm -f core conftest.err conftest.$ac_objext \
10524 conftest$ac_exeext conftest.$ac_ext
10525 LIBS=$ac_check_lib_save_LIBS
10527 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10528 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10529 if test $ac_cv_lib_dld_shl_load = yes; then
10531 cat >>confdefs.h <<\_ACEOF
10532 #define HAVE_SHL_LOAD 1
10533 _ACEOF
10535 LIBADD_DL="$LIBADD_DL -ldld"
10536 else
10537 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10538 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10539 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10541 else
10542 ac_check_lib_save_LIBS=$LIBS
10543 LIBS="-ldl $LIBS"
10544 cat >conftest.$ac_ext <<_ACEOF
10545 /* confdefs.h. */
10546 _ACEOF
10547 cat confdefs.h >>conftest.$ac_ext
10548 cat >>conftest.$ac_ext <<_ACEOF
10549 /* end confdefs.h. */
10551 /* Override any GCC internal prototype to avoid an error.
10552 Use char because int might match the return type of a GCC
10553 builtin and then its argument prototype would still apply. */
10554 #ifdef __cplusplus
10555 extern "C"
10556 #endif
10557 char dlopen ();
10559 main ()
10561 return dlopen ();
10563 return 0;
10565 _ACEOF
10566 rm -f conftest.$ac_objext conftest$ac_exeext
10567 if { (ac_try="$ac_link"
10568 case "(($ac_try" in
10569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10570 *) ac_try_echo=$ac_try;;
10571 esac
10572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10573 (eval "$ac_link") 2>conftest.er1
10574 ac_status=$?
10575 grep -v '^ *+' conftest.er1 >conftest.err
10576 rm -f conftest.er1
10577 cat conftest.err >&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } &&
10580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10581 { (case "(($ac_try" in
10582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583 *) ac_try_echo=$ac_try;;
10584 esac
10585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10586 (eval "$ac_try") 2>&5
10587 ac_status=$?
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; } &&
10590 { ac_try='test -s conftest$ac_exeext'
10591 { (case "(($ac_try" in
10592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10593 *) ac_try_echo=$ac_try;;
10594 esac
10595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10596 (eval "$ac_try") 2>&5
10597 ac_status=$?
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); }; }; then
10600 ac_cv_lib_dl_dlopen=yes
10601 else
10602 echo "$as_me: failed program was:" >&5
10603 sed 's/^/| /' conftest.$ac_ext >&5
10605 ac_cv_lib_dl_dlopen=no
10608 rm -f core conftest.err conftest.$ac_objext \
10609 conftest$ac_exeext conftest.$ac_ext
10610 LIBS=$ac_check_lib_save_LIBS
10612 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10613 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10614 if test $ac_cv_lib_dl_dlopen = yes; then
10616 cat >>confdefs.h <<\_ACEOF
10617 #define HAVE_LIBDL 1
10618 _ACEOF
10620 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10621 else
10622 cat >conftest.$ac_ext <<_ACEOF
10623 /* confdefs.h. */
10624 _ACEOF
10625 cat confdefs.h >>conftest.$ac_ext
10626 cat >>conftest.$ac_ext <<_ACEOF
10627 /* end confdefs.h. */
10628 #if HAVE_DLFCN_H
10629 # include <dlfcn.h>
10630 #endif
10633 main ()
10635 dlopen(0, 0);
10637 return 0;
10639 _ACEOF
10640 rm -f conftest.$ac_objext conftest$ac_exeext
10641 if { (ac_try="$ac_link"
10642 case "(($ac_try" in
10643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10644 *) ac_try_echo=$ac_try;;
10645 esac
10646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10647 (eval "$ac_link") 2>conftest.er1
10648 ac_status=$?
10649 grep -v '^ *+' conftest.er1 >conftest.err
10650 rm -f conftest.er1
10651 cat conftest.err >&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } &&
10654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10655 { (case "(($ac_try" in
10656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657 *) ac_try_echo=$ac_try;;
10658 esac
10659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10660 (eval "$ac_try") 2>&5
10661 ac_status=$?
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; } &&
10664 { ac_try='test -s conftest$ac_exeext'
10665 { (case "(($ac_try" in
10666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10667 *) ac_try_echo=$ac_try;;
10668 esac
10669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10670 (eval "$ac_try") 2>&5
10671 ac_status=$?
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); }; }; then
10675 cat >>confdefs.h <<\_ACEOF
10676 #define HAVE_LIBDL 1
10677 _ACEOF
10678 libltdl_cv_func_dlopen="yes"
10679 else
10680 echo "$as_me: failed program was:" >&5
10681 sed 's/^/| /' conftest.$ac_ext >&5
10683 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10684 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10685 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10687 else
10688 ac_check_lib_save_LIBS=$LIBS
10689 LIBS="-lsvld $LIBS"
10690 cat >conftest.$ac_ext <<_ACEOF
10691 /* confdefs.h. */
10692 _ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h. */
10697 /* Override any GCC internal prototype to avoid an error.
10698 Use char because int might match the return type of a GCC
10699 builtin and then its argument prototype would still apply. */
10700 #ifdef __cplusplus
10701 extern "C"
10702 #endif
10703 char dlopen ();
10705 main ()
10707 return dlopen ();
10709 return 0;
10711 _ACEOF
10712 rm -f conftest.$ac_objext conftest$ac_exeext
10713 if { (ac_try="$ac_link"
10714 case "(($ac_try" in
10715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716 *) ac_try_echo=$ac_try;;
10717 esac
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719 (eval "$ac_link") 2>conftest.er1
10720 ac_status=$?
10721 grep -v '^ *+' conftest.er1 >conftest.err
10722 rm -f conftest.er1
10723 cat conftest.err >&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } &&
10726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10727 { (case "(($ac_try" in
10728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729 *) ac_try_echo=$ac_try;;
10730 esac
10731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732 (eval "$ac_try") 2>&5
10733 ac_status=$?
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; } &&
10736 { ac_try='test -s conftest$ac_exeext'
10737 { (case "(($ac_try" in
10738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739 *) ac_try_echo=$ac_try;;
10740 esac
10741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10742 (eval "$ac_try") 2>&5
10743 ac_status=$?
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); }; }; then
10746 ac_cv_lib_svld_dlopen=yes
10747 else
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 ac_cv_lib_svld_dlopen=no
10754 rm -f core conftest.err conftest.$ac_objext \
10755 conftest$ac_exeext conftest.$ac_ext
10756 LIBS=$ac_check_lib_save_LIBS
10758 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10759 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10760 if test $ac_cv_lib_svld_dlopen = yes; then
10762 cat >>confdefs.h <<\_ACEOF
10763 #define HAVE_LIBDL 1
10764 _ACEOF
10766 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10767 else
10768 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10769 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10770 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10772 else
10773 ac_check_lib_save_LIBS=$LIBS
10774 LIBS="-ldld $LIBS"
10775 cat >conftest.$ac_ext <<_ACEOF
10776 /* confdefs.h. */
10777 _ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h. */
10782 /* Override any GCC internal prototype to avoid an error.
10783 Use char because int might match the return type of a GCC
10784 builtin and then its argument prototype would still apply. */
10785 #ifdef __cplusplus
10786 extern "C"
10787 #endif
10788 char dld_link ();
10790 main ()
10792 return dld_link ();
10794 return 0;
10796 _ACEOF
10797 rm -f conftest.$ac_objext conftest$ac_exeext
10798 if { (ac_try="$ac_link"
10799 case "(($ac_try" in
10800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10801 *) ac_try_echo=$ac_try;;
10802 esac
10803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10804 (eval "$ac_link") 2>conftest.er1
10805 ac_status=$?
10806 grep -v '^ *+' conftest.er1 >conftest.err
10807 rm -f conftest.er1
10808 cat conftest.err >&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); } &&
10811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10812 { (case "(($ac_try" in
10813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814 *) ac_try_echo=$ac_try;;
10815 esac
10816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817 (eval "$ac_try") 2>&5
10818 ac_status=$?
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; } &&
10821 { ac_try='test -s conftest$ac_exeext'
10822 { (case "(($ac_try" in
10823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824 *) ac_try_echo=$ac_try;;
10825 esac
10826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827 (eval "$ac_try") 2>&5
10828 ac_status=$?
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; }; then
10831 ac_cv_lib_dld_dld_link=yes
10832 else
10833 echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.$ac_ext >&5
10836 ac_cv_lib_dld_dld_link=no
10839 rm -f core conftest.err conftest.$ac_objext \
10840 conftest$ac_exeext conftest.$ac_ext
10841 LIBS=$ac_check_lib_save_LIBS
10843 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10844 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10845 if test $ac_cv_lib_dld_dld_link = yes; then
10847 cat >>confdefs.h <<\_ACEOF
10848 #define HAVE_DLD 1
10849 _ACEOF
10851 LIBADD_DL="$LIBADD_DL -ldld"
10852 else
10853 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10854 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10855 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10857 else
10858 cat >conftest.$ac_ext <<_ACEOF
10859 /* confdefs.h. */
10860 _ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h. */
10864 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10866 #define _dyld_func_lookup innocuous__dyld_func_lookup
10868 /* System header to define __stub macros and hopefully few prototypes,
10869 which can conflict with char _dyld_func_lookup (); below.
10870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10871 <limits.h> exists even on freestanding compilers. */
10873 #ifdef __STDC__
10874 # include <limits.h>
10875 #else
10876 # include <assert.h>
10877 #endif
10879 #undef _dyld_func_lookup
10881 /* Override any GCC internal prototype to avoid an error.
10882 Use char because int might match the return type of a GCC
10883 builtin and then its argument prototype would still apply. */
10884 #ifdef __cplusplus
10885 extern "C"
10886 #endif
10887 char _dyld_func_lookup ();
10888 /* The GNU C library defines this for functions which it implements
10889 to always fail with ENOSYS. Some functions are actually named
10890 something starting with __ and the normal name is an alias. */
10891 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10892 choke me
10893 #endif
10896 main ()
10898 return _dyld_func_lookup ();
10900 return 0;
10902 _ACEOF
10903 rm -f conftest.$ac_objext conftest$ac_exeext
10904 if { (ac_try="$ac_link"
10905 case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10908 esac
10909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_link") 2>conftest.er1
10911 ac_status=$?
10912 grep -v '^ *+' conftest.er1 >conftest.err
10913 rm -f conftest.er1
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } &&
10917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10918 { (case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10921 esac
10922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923 (eval "$ac_try") 2>&5
10924 ac_status=$?
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; } &&
10927 { ac_try='test -s conftest$ac_exeext'
10928 { (case "(($ac_try" in
10929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10930 *) ac_try_echo=$ac_try;;
10931 esac
10932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10933 (eval "$ac_try") 2>&5
10934 ac_status=$?
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); }; }; then
10937 ac_cv_func__dyld_func_lookup=yes
10938 else
10939 echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.$ac_ext >&5
10942 ac_cv_func__dyld_func_lookup=no
10945 rm -f core conftest.err conftest.$ac_objext \
10946 conftest$ac_exeext conftest.$ac_ext
10948 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10949 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10950 if test $ac_cv_func__dyld_func_lookup = yes; then
10952 cat >>confdefs.h <<\_ACEOF
10953 #define HAVE_DYLD 1
10954 _ACEOF
10967 rm -f core conftest.err conftest.$ac_objext \
10968 conftest$ac_exeext conftest.$ac_ext
10979 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10980 then
10981 lt_save_LIBS="$LIBS"
10982 LIBS="$LIBS $LIBADD_DL"
10984 for ac_func in dlerror
10986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10987 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10989 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10990 echo $ECHO_N "(cached) $ECHO_C" >&6
10991 else
10992 cat >conftest.$ac_ext <<_ACEOF
10993 /* confdefs.h. */
10994 _ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h. */
10998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11000 #define $ac_func innocuous_$ac_func
11002 /* System header to define __stub macros and hopefully few prototypes,
11003 which can conflict with char $ac_func (); below.
11004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11005 <limits.h> exists even on freestanding compilers. */
11007 #ifdef __STDC__
11008 # include <limits.h>
11009 #else
11010 # include <assert.h>
11011 #endif
11013 #undef $ac_func
11015 /* Override any GCC internal prototype to avoid an error.
11016 Use char because int might match the return type of a GCC
11017 builtin and then its argument prototype would still apply. */
11018 #ifdef __cplusplus
11019 extern "C"
11020 #endif
11021 char $ac_func ();
11022 /* The GNU C library defines this for functions which it implements
11023 to always fail with ENOSYS. Some functions are actually named
11024 something starting with __ and the normal name is an alias. */
11025 #if defined __stub_$ac_func || defined __stub___$ac_func
11026 choke me
11027 #endif
11030 main ()
11032 return $ac_func ();
11034 return 0;
11036 _ACEOF
11037 rm -f conftest.$ac_objext conftest$ac_exeext
11038 if { (ac_try="$ac_link"
11039 case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11042 esac
11043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044 (eval "$ac_link") 2>conftest.er1
11045 ac_status=$?
11046 grep -v '^ *+' conftest.er1 >conftest.err
11047 rm -f conftest.er1
11048 cat conftest.err >&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } &&
11051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11052 { (case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11055 esac
11056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057 (eval "$ac_try") 2>&5
11058 ac_status=$?
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; } &&
11061 { ac_try='test -s conftest$ac_exeext'
11062 { (case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11065 esac
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_try") 2>&5
11068 ac_status=$?
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; }; then
11071 eval "$as_ac_var=yes"
11072 else
11073 echo "$as_me: failed program was:" >&5
11074 sed 's/^/| /' conftest.$ac_ext >&5
11076 eval "$as_ac_var=no"
11079 rm -f core conftest.err conftest.$ac_objext \
11080 conftest$ac_exeext conftest.$ac_ext
11082 ac_res=`eval echo '${'$as_ac_var'}'`
11083 { echo "$as_me:$LINENO: result: $ac_res" >&5
11084 echo "${ECHO_T}$ac_res" >&6; }
11085 if test `eval echo '${'$as_ac_var'}'` = yes; then
11086 cat >>confdefs.h <<_ACEOF
11087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11088 _ACEOF
11091 done
11093 LIBS="$lt_save_LIBS"
11095 ac_ext=c
11096 ac_cpp='$CPP $CPPFLAGS'
11097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11103 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11104 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11105 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11107 else
11108 ac_cv_sys_symbol_underscore=no
11109 cat > conftest.$ac_ext <<EOF
11110 void nm_test_func(){}
11111 int main(){nm_test_func;return 0;}
11113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11114 (eval $ac_compile) 2>&5
11115 ac_status=$?
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; then
11118 # Now try to grab the symbols.
11119 ac_nlist=conftest.nm
11120 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11121 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11122 ac_status=$?
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); } && test -s "$ac_nlist"; then
11125 # See whether the symbols have a leading underscore.
11126 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11127 ac_cv_sys_symbol_underscore=yes
11128 else
11129 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11131 else
11132 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11135 else
11136 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11138 else
11139 echo "configure: failed program was:" >&5
11140 cat conftest.c >&5
11142 rm -rf conftest*
11145 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11146 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11149 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11150 if test x"$libltdl_cv_func_dlopen" = xyes ||
11151 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11152 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11153 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11154 if test "${libltdl_cv_need_uscore+set}" = set; then
11155 echo $ECHO_N "(cached) $ECHO_C" >&6
11156 else
11157 libltdl_cv_need_uscore=unknown
11158 save_LIBS="$LIBS"
11159 LIBS="$LIBS $LIBADD_DL"
11160 if test "$cross_compiling" = yes; then :
11161 libltdl_cv_need_uscore=cross
11162 else
11163 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11164 lt_status=$lt_dlunknown
11165 cat > conftest.$ac_ext <<EOF
11166 #line 11166 "configure"
11167 #include "confdefs.h"
11169 #if HAVE_DLFCN_H
11170 #include <dlfcn.h>
11171 #endif
11173 #include <stdio.h>
11175 #ifdef RTLD_GLOBAL
11176 # define LT_DLGLOBAL RTLD_GLOBAL
11177 #else
11178 # ifdef DL_GLOBAL
11179 # define LT_DLGLOBAL DL_GLOBAL
11180 # else
11181 # define LT_DLGLOBAL 0
11182 # endif
11183 #endif
11185 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11186 find out it does not work in some platform. */
11187 #ifndef LT_DLLAZY_OR_NOW
11188 # ifdef RTLD_LAZY
11189 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11190 # else
11191 # ifdef DL_LAZY
11192 # define LT_DLLAZY_OR_NOW DL_LAZY
11193 # else
11194 # ifdef RTLD_NOW
11195 # define LT_DLLAZY_OR_NOW RTLD_NOW
11196 # else
11197 # ifdef DL_NOW
11198 # define LT_DLLAZY_OR_NOW DL_NOW
11199 # else
11200 # define LT_DLLAZY_OR_NOW 0
11201 # endif
11202 # endif
11203 # endif
11204 # endif
11205 #endif
11207 #ifdef __cplusplus
11208 extern "C" void exit (int);
11209 #endif
11211 void fnord() { int i=42;}
11212 int main ()
11214 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11215 int status = $lt_dlunknown;
11217 if (self)
11219 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11220 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11221 /* dlclose (self); */
11223 else
11224 puts (dlerror ());
11226 exit (status);
11229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11230 (eval $ac_link) 2>&5
11231 ac_status=$?
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11234 (./conftest; exit; ) >&5 2>/dev/null
11235 lt_status=$?
11236 case x$lt_status in
11237 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11238 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11239 x$lt_dlunknown|x*) ;;
11240 esac
11241 else :
11242 # compilation failed
11246 rm -fr conftest*
11248 LIBS="$save_LIBS"
11251 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11252 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11256 if test x"$libltdl_cv_need_uscore" = xyes; then
11258 cat >>confdefs.h <<\_ACEOF
11259 #define NEED_USCORE 1
11260 _ACEOF
11265 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11266 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11267 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11269 else
11270 # PORTME does your system automatically load deplibs for dlopen?
11271 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11272 # For now, we just catch OSes we know something about -- in the
11273 # future, we'll try test this programmatically.
11274 libltdl_cv_sys_dlopen_deplibs=unknown
11275 case "$host_os" in
11276 aix3*|aix4.1.*|aix4.2.*)
11277 # Unknown whether this is true for these versions of AIX, but
11278 # we want this `case' here to explicitly catch those versions.
11279 libltdl_cv_sys_dlopen_deplibs=unknown
11281 aix[45]*)
11282 libltdl_cv_sys_dlopen_deplibs=yes
11284 darwin*)
11285 # Assuming the user has installed a libdl from somewhere, this is true
11286 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11287 libltdl_cv_sys_dlopen_deplibs=yes
11289 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11290 # GNU and its variants, using gnu ld.so (Glibc)
11291 libltdl_cv_sys_dlopen_deplibs=yes
11293 hpux10*|hpux11*)
11294 libltdl_cv_sys_dlopen_deplibs=yes
11296 interix*)
11297 libltdl_cv_sys_dlopen_deplibs=yes
11299 irix[12345]*|irix6.[01]*)
11300 # Catch all versions of IRIX before 6.2, and indicate that we don't
11301 # know how it worked for any of those versions.
11302 libltdl_cv_sys_dlopen_deplibs=unknown
11304 irix*)
11305 # The case above catches anything before 6.2, and it's known that
11306 # at 6.2 and later dlopen does load deplibs.
11307 libltdl_cv_sys_dlopen_deplibs=yes
11309 netbsd*)
11310 libltdl_cv_sys_dlopen_deplibs=yes
11312 openbsd*)
11313 libltdl_cv_sys_dlopen_deplibs=yes
11315 osf[1234]*)
11316 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11317 # it did *not* use an RPATH in a shared library to find objects the
11318 # library depends on, so we explictly say `no'.
11319 libltdl_cv_sys_dlopen_deplibs=no
11321 osf5.0|osf5.0a|osf5.1)
11322 # dlopen *does* load deplibs and with the right loader patch applied
11323 # it even uses RPATH in a shared library to search for shared objects
11324 # that the library depends on, but there's no easy way to know if that
11325 # patch is installed. Since this is the case, all we can really
11326 # say is unknown -- it depends on the patch being installed. If
11327 # it is, this changes to `yes'. Without it, it would be `no'.
11328 libltdl_cv_sys_dlopen_deplibs=unknown
11330 osf*)
11331 # the two cases above should catch all versions of osf <= 5.1. Read
11332 # the comments above for what we know about them.
11333 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11334 # is used to find them so we can finally say `yes'.
11335 libltdl_cv_sys_dlopen_deplibs=yes
11337 solaris*)
11338 libltdl_cv_sys_dlopen_deplibs=yes
11340 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11341 libltdl_cv_sys_dlopen_deplibs=yes
11343 esac
11346 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11347 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11348 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11350 cat >>confdefs.h <<\_ACEOF
11351 #define LTDL_DLOPEN_DEPLIBS 1
11352 _ACEOF
11357 for ac_header in argz.h
11359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11361 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11364 echo $ECHO_N "(cached) $ECHO_C" >&6
11366 ac_res=`eval echo '${'$as_ac_Header'}'`
11367 { echo "$as_me:$LINENO: result: $ac_res" >&5
11368 echo "${ECHO_T}$ac_res" >&6; }
11369 else
11370 # Is the header compilable?
11371 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11373 cat >conftest.$ac_ext <<_ACEOF
11374 /* confdefs.h. */
11375 _ACEOF
11376 cat confdefs.h >>conftest.$ac_ext
11377 cat >>conftest.$ac_ext <<_ACEOF
11378 /* end confdefs.h. */
11379 $ac_includes_default
11380 #include <$ac_header>
11381 _ACEOF
11382 rm -f conftest.$ac_objext
11383 if { (ac_try="$ac_compile"
11384 case "(($ac_try" in
11385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386 *) ac_try_echo=$ac_try;;
11387 esac
11388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11389 (eval "$ac_compile") 2>conftest.er1
11390 ac_status=$?
11391 grep -v '^ *+' conftest.er1 >conftest.err
11392 rm -f conftest.er1
11393 cat conftest.err >&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); } &&
11396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11397 { (case "(($ac_try" in
11398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11399 *) ac_try_echo=$ac_try;;
11400 esac
11401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11402 (eval "$ac_try") 2>&5
11403 ac_status=$?
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; } &&
11406 { ac_try='test -s conftest.$ac_objext'
11407 { (case "(($ac_try" in
11408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11409 *) ac_try_echo=$ac_try;;
11410 esac
11411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11412 (eval "$ac_try") 2>&5
11413 ac_status=$?
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }; }; then
11416 ac_header_compiler=yes
11417 else
11418 echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.$ac_ext >&5
11421 ac_header_compiler=no
11424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11426 echo "${ECHO_T}$ac_header_compiler" >&6; }
11428 # Is the header present?
11429 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11431 cat >conftest.$ac_ext <<_ACEOF
11432 /* confdefs.h. */
11433 _ACEOF
11434 cat confdefs.h >>conftest.$ac_ext
11435 cat >>conftest.$ac_ext <<_ACEOF
11436 /* end confdefs.h. */
11437 #include <$ac_header>
11438 _ACEOF
11439 if { (ac_try="$ac_cpp conftest.$ac_ext"
11440 case "(($ac_try" in
11441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442 *) ac_try_echo=$ac_try;;
11443 esac
11444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11446 ac_status=$?
11447 grep -v '^ *+' conftest.er1 >conftest.err
11448 rm -f conftest.er1
11449 cat conftest.err >&5
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); } >/dev/null; then
11452 if test -s conftest.err; then
11453 ac_cpp_err=$ac_c_preproc_warn_flag
11454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11455 else
11456 ac_cpp_err=
11458 else
11459 ac_cpp_err=yes
11461 if test -z "$ac_cpp_err"; then
11462 ac_header_preproc=yes
11463 else
11464 echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.$ac_ext >&5
11467 ac_header_preproc=no
11470 rm -f conftest.err conftest.$ac_ext
11471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11472 echo "${ECHO_T}$ac_header_preproc" >&6; }
11474 # So? What about this header?
11475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11476 yes:no: )
11477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11481 ac_header_preproc=yes
11483 no:yes:* )
11484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11496 ( cat <<\_ASBOX
11497 ## ----------------------------------- ##
11498 ## Report this to llvmbugs@cs.uiuc.edu ##
11499 ## ----------------------------------- ##
11500 _ASBOX
11501 ) | sed "s/^/$as_me: WARNING: /" >&2
11503 esac
11504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11507 echo $ECHO_N "(cached) $ECHO_C" >&6
11508 else
11509 eval "$as_ac_Header=\$ac_header_preproc"
11511 ac_res=`eval echo '${'$as_ac_Header'}'`
11512 { echo "$as_me:$LINENO: result: $ac_res" >&5
11513 echo "${ECHO_T}$ac_res" >&6; }
11516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11517 cat >>confdefs.h <<_ACEOF
11518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11519 _ACEOF
11523 done
11526 { echo "$as_me:$LINENO: checking for error_t" >&5
11527 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11528 if test "${ac_cv_type_error_t+set}" = set; then
11529 echo $ECHO_N "(cached) $ECHO_C" >&6
11530 else
11531 cat >conftest.$ac_ext <<_ACEOF
11532 /* confdefs.h. */
11533 _ACEOF
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h. */
11537 #if HAVE_ARGZ_H
11538 # include <argz.h>
11539 #endif
11541 typedef error_t ac__type_new_;
11543 main ()
11545 if ((ac__type_new_ *) 0)
11546 return 0;
11547 if (sizeof (ac__type_new_))
11548 return 0;
11550 return 0;
11552 _ACEOF
11553 rm -f conftest.$ac_objext
11554 if { (ac_try="$ac_compile"
11555 case "(($ac_try" in
11556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557 *) ac_try_echo=$ac_try;;
11558 esac
11559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11560 (eval "$ac_compile") 2>conftest.er1
11561 ac_status=$?
11562 grep -v '^ *+' conftest.er1 >conftest.err
11563 rm -f conftest.er1
11564 cat conftest.err >&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
11567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11568 { (case "(($ac_try" in
11569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570 *) ac_try_echo=$ac_try;;
11571 esac
11572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573 (eval "$ac_try") 2>&5
11574 ac_status=$?
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; } &&
11577 { ac_try='test -s conftest.$ac_objext'
11578 { (case "(($ac_try" in
11579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580 *) ac_try_echo=$ac_try;;
11581 esac
11582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11583 (eval "$ac_try") 2>&5
11584 ac_status=$?
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); }; }; then
11587 ac_cv_type_error_t=yes
11588 else
11589 echo "$as_me: failed program was:" >&5
11590 sed 's/^/| /' conftest.$ac_ext >&5
11592 ac_cv_type_error_t=no
11595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11597 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11598 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11599 if test $ac_cv_type_error_t = yes; then
11601 cat >>confdefs.h <<_ACEOF
11602 #define HAVE_ERROR_T 1
11603 _ACEOF
11606 else
11608 cat >>confdefs.h <<\_ACEOF
11609 #define error_t int
11610 _ACEOF
11620 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11623 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11625 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11626 echo $ECHO_N "(cached) $ECHO_C" >&6
11627 else
11628 cat >conftest.$ac_ext <<_ACEOF
11629 /* confdefs.h. */
11630 _ACEOF
11631 cat confdefs.h >>conftest.$ac_ext
11632 cat >>conftest.$ac_ext <<_ACEOF
11633 /* end confdefs.h. */
11634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11636 #define $ac_func innocuous_$ac_func
11638 /* System header to define __stub macros and hopefully few prototypes,
11639 which can conflict with char $ac_func (); below.
11640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11641 <limits.h> exists even on freestanding compilers. */
11643 #ifdef __STDC__
11644 # include <limits.h>
11645 #else
11646 # include <assert.h>
11647 #endif
11649 #undef $ac_func
11651 /* Override any GCC internal prototype to avoid an error.
11652 Use char because int might match the return type of a GCC
11653 builtin and then its argument prototype would still apply. */
11654 #ifdef __cplusplus
11655 extern "C"
11656 #endif
11657 char $ac_func ();
11658 /* The GNU C library defines this for functions which it implements
11659 to always fail with ENOSYS. Some functions are actually named
11660 something starting with __ and the normal name is an alias. */
11661 #if defined __stub_$ac_func || defined __stub___$ac_func
11662 choke me
11663 #endif
11666 main ()
11668 return $ac_func ();
11670 return 0;
11672 _ACEOF
11673 rm -f conftest.$ac_objext conftest$ac_exeext
11674 if { (ac_try="$ac_link"
11675 case "(($ac_try" in
11676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677 *) ac_try_echo=$ac_try;;
11678 esac
11679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680 (eval "$ac_link") 2>conftest.er1
11681 ac_status=$?
11682 grep -v '^ *+' conftest.er1 >conftest.err
11683 rm -f conftest.er1
11684 cat conftest.err >&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); } &&
11687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11688 { (case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11691 esac
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_try") 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; } &&
11697 { ac_try='test -s conftest$ac_exeext'
11698 { (case "(($ac_try" in
11699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11700 *) ac_try_echo=$ac_try;;
11701 esac
11702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11703 (eval "$ac_try") 2>&5
11704 ac_status=$?
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
11707 eval "$as_ac_var=yes"
11708 else
11709 echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11712 eval "$as_ac_var=no"
11715 rm -f core conftest.err conftest.$ac_objext \
11716 conftest$ac_exeext conftest.$ac_ext
11718 ac_res=`eval echo '${'$as_ac_var'}'`
11719 { echo "$as_me:$LINENO: result: $ac_res" >&5
11720 echo "${ECHO_T}$ac_res" >&6; }
11721 if test `eval echo '${'$as_ac_var'}'` = yes; then
11722 cat >>confdefs.h <<_ACEOF
11723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11724 _ACEOF
11727 done
11756 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11757 stdio.h unistd.h
11759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11764 echo $ECHO_N "(cached) $ECHO_C" >&6
11766 ac_res=`eval echo '${'$as_ac_Header'}'`
11767 { echo "$as_me:$LINENO: result: $ac_res" >&5
11768 echo "${ECHO_T}$ac_res" >&6; }
11769 else
11770 # Is the header compilable?
11771 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11773 cat >conftest.$ac_ext <<_ACEOF
11774 /* confdefs.h. */
11775 _ACEOF
11776 cat confdefs.h >>conftest.$ac_ext
11777 cat >>conftest.$ac_ext <<_ACEOF
11778 /* end confdefs.h. */
11779 $ac_includes_default
11780 #include <$ac_header>
11781 _ACEOF
11782 rm -f conftest.$ac_objext
11783 if { (ac_try="$ac_compile"
11784 case "(($ac_try" in
11785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786 *) ac_try_echo=$ac_try;;
11787 esac
11788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789 (eval "$ac_compile") 2>conftest.er1
11790 ac_status=$?
11791 grep -v '^ *+' conftest.er1 >conftest.err
11792 rm -f conftest.er1
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11797 { (case "(($ac_try" in
11798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11799 *) ac_try_echo=$ac_try;;
11800 esac
11801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11802 (eval "$ac_try") 2>&5
11803 ac_status=$?
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); }; } &&
11806 { ac_try='test -s conftest.$ac_objext'
11807 { (case "(($ac_try" in
11808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809 *) ac_try_echo=$ac_try;;
11810 esac
11811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812 (eval "$ac_try") 2>&5
11813 ac_status=$?
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; }; then
11816 ac_header_compiler=yes
11817 else
11818 echo "$as_me: failed program was:" >&5
11819 sed 's/^/| /' conftest.$ac_ext >&5
11821 ac_header_compiler=no
11824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11825 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11826 echo "${ECHO_T}$ac_header_compiler" >&6; }
11828 # Is the header present?
11829 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11831 cat >conftest.$ac_ext <<_ACEOF
11832 /* confdefs.h. */
11833 _ACEOF
11834 cat confdefs.h >>conftest.$ac_ext
11835 cat >>conftest.$ac_ext <<_ACEOF
11836 /* end confdefs.h. */
11837 #include <$ac_header>
11838 _ACEOF
11839 if { (ac_try="$ac_cpp conftest.$ac_ext"
11840 case "(($ac_try" in
11841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842 *) ac_try_echo=$ac_try;;
11843 esac
11844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11846 ac_status=$?
11847 grep -v '^ *+' conftest.er1 >conftest.err
11848 rm -f conftest.er1
11849 cat conftest.err >&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } >/dev/null; then
11852 if test -s conftest.err; then
11853 ac_cpp_err=$ac_c_preproc_warn_flag
11854 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11855 else
11856 ac_cpp_err=
11858 else
11859 ac_cpp_err=yes
11861 if test -z "$ac_cpp_err"; then
11862 ac_header_preproc=yes
11863 else
11864 echo "$as_me: failed program was:" >&5
11865 sed 's/^/| /' conftest.$ac_ext >&5
11867 ac_header_preproc=no
11870 rm -f conftest.err conftest.$ac_ext
11871 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11872 echo "${ECHO_T}$ac_header_preproc" >&6; }
11874 # So? What about this header?
11875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11876 yes:no: )
11877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11880 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11881 ac_header_preproc=yes
11883 no:yes:* )
11884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11887 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11888 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11889 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11890 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11891 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11895 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11896 ( cat <<\_ASBOX
11897 ## ----------------------------------- ##
11898 ## Report this to llvmbugs@cs.uiuc.edu ##
11899 ## ----------------------------------- ##
11900 _ASBOX
11901 ) | sed "s/^/$as_me: WARNING: /" >&2
11903 esac
11904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11908 else
11909 eval "$as_ac_Header=\$ac_header_preproc"
11911 ac_res=`eval echo '${'$as_ac_Header'}'`
11912 { echo "$as_me:$LINENO: result: $ac_res" >&5
11913 echo "${ECHO_T}$ac_res" >&6; }
11916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11917 cat >>confdefs.h <<_ACEOF
11918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11919 _ACEOF
11923 done
11929 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11936 echo $ECHO_N "(cached) $ECHO_C" >&6
11938 ac_res=`eval echo '${'$as_ac_Header'}'`
11939 { echo "$as_me:$LINENO: result: $ac_res" >&5
11940 echo "${ECHO_T}$ac_res" >&6; }
11941 else
11942 # Is the header compilable?
11943 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11945 cat >conftest.$ac_ext <<_ACEOF
11946 /* confdefs.h. */
11947 _ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11951 $ac_includes_default
11952 #include <$ac_header>
11953 _ACEOF
11954 rm -f conftest.$ac_objext
11955 if { (ac_try="$ac_compile"
11956 case "(($ac_try" in
11957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958 *) ac_try_echo=$ac_try;;
11959 esac
11960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961 (eval "$ac_compile") 2>conftest.er1
11962 ac_status=$?
11963 grep -v '^ *+' conftest.er1 >conftest.err
11964 rm -f conftest.er1
11965 cat conftest.err >&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } &&
11968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11969 { (case "(($ac_try" in
11970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971 *) ac_try_echo=$ac_try;;
11972 esac
11973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11974 (eval "$ac_try") 2>&5
11975 ac_status=$?
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; } &&
11978 { ac_try='test -s conftest.$ac_objext'
11979 { (case "(($ac_try" in
11980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981 *) ac_try_echo=$ac_try;;
11982 esac
11983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984 (eval "$ac_try") 2>&5
11985 ac_status=$?
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); }; }; then
11988 ac_header_compiler=yes
11989 else
11990 echo "$as_me: failed program was:" >&5
11991 sed 's/^/| /' conftest.$ac_ext >&5
11993 ac_header_compiler=no
11996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11998 echo "${ECHO_T}$ac_header_compiler" >&6; }
12000 # Is the header present?
12001 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12003 cat >conftest.$ac_ext <<_ACEOF
12004 /* confdefs.h. */
12005 _ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h. */
12009 #include <$ac_header>
12010 _ACEOF
12011 if { (ac_try="$ac_cpp conftest.$ac_ext"
12012 case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12015 esac
12016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12018 ac_status=$?
12019 grep -v '^ *+' conftest.er1 >conftest.err
12020 rm -f conftest.er1
12021 cat conftest.err >&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); } >/dev/null; then
12024 if test -s conftest.err; then
12025 ac_cpp_err=$ac_c_preproc_warn_flag
12026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12027 else
12028 ac_cpp_err=
12030 else
12031 ac_cpp_err=yes
12033 if test -z "$ac_cpp_err"; then
12034 ac_header_preproc=yes
12035 else
12036 echo "$as_me: failed program was:" >&5
12037 sed 's/^/| /' conftest.$ac_ext >&5
12039 ac_header_preproc=no
12042 rm -f conftest.err conftest.$ac_ext
12043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12044 echo "${ECHO_T}$ac_header_preproc" >&6; }
12046 # So? What about this header?
12047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12048 yes:no: )
12049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12053 ac_header_preproc=yes
12055 no:yes:* )
12056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12059 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12063 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12068 ( cat <<\_ASBOX
12069 ## ----------------------------------- ##
12070 ## Report this to llvmbugs@cs.uiuc.edu ##
12071 ## ----------------------------------- ##
12072 _ASBOX
12073 ) | sed "s/^/$as_me: WARNING: /" >&2
12075 esac
12076 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12079 echo $ECHO_N "(cached) $ECHO_C" >&6
12080 else
12081 eval "$as_ac_Header=\$ac_header_preproc"
12083 ac_res=`eval echo '${'$as_ac_Header'}'`
12084 { echo "$as_me:$LINENO: result: $ac_res" >&5
12085 echo "${ECHO_T}$ac_res" >&6; }
12088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12089 cat >>confdefs.h <<_ACEOF
12090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12091 _ACEOF
12095 done
12099 for ac_header in string.h strings.h
12101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12108 ac_res=`eval echo '${'$as_ac_Header'}'`
12109 { echo "$as_me:$LINENO: result: $ac_res" >&5
12110 echo "${ECHO_T}$ac_res" >&6; }
12111 else
12112 # Is the header compilable?
12113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12115 cat >conftest.$ac_ext <<_ACEOF
12116 /* confdefs.h. */
12117 _ACEOF
12118 cat confdefs.h >>conftest.$ac_ext
12119 cat >>conftest.$ac_ext <<_ACEOF
12120 /* end confdefs.h. */
12121 $ac_includes_default
12122 #include <$ac_header>
12123 _ACEOF
12124 rm -f conftest.$ac_objext
12125 if { (ac_try="$ac_compile"
12126 case "(($ac_try" in
12127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128 *) ac_try_echo=$ac_try;;
12129 esac
12130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131 (eval "$ac_compile") 2>conftest.er1
12132 ac_status=$?
12133 grep -v '^ *+' conftest.er1 >conftest.err
12134 rm -f conftest.er1
12135 cat conftest.err >&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } &&
12138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12139 { (case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12142 esac
12143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144 (eval "$ac_try") 2>&5
12145 ac_status=$?
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; } &&
12148 { ac_try='test -s conftest.$ac_objext'
12149 { (case "(($ac_try" in
12150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151 *) ac_try_echo=$ac_try;;
12152 esac
12153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12154 (eval "$ac_try") 2>&5
12155 ac_status=$?
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); }; }; then
12158 ac_header_compiler=yes
12159 else
12160 echo "$as_me: failed program was:" >&5
12161 sed 's/^/| /' conftest.$ac_ext >&5
12163 ac_header_compiler=no
12166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12168 echo "${ECHO_T}$ac_header_compiler" >&6; }
12170 # Is the header present?
12171 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12173 cat >conftest.$ac_ext <<_ACEOF
12174 /* confdefs.h. */
12175 _ACEOF
12176 cat confdefs.h >>conftest.$ac_ext
12177 cat >>conftest.$ac_ext <<_ACEOF
12178 /* end confdefs.h. */
12179 #include <$ac_header>
12180 _ACEOF
12181 if { (ac_try="$ac_cpp conftest.$ac_ext"
12182 case "(($ac_try" in
12183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184 *) ac_try_echo=$ac_try;;
12185 esac
12186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12188 ac_status=$?
12189 grep -v '^ *+' conftest.er1 >conftest.err
12190 rm -f conftest.er1
12191 cat conftest.err >&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } >/dev/null; then
12194 if test -s conftest.err; then
12195 ac_cpp_err=$ac_c_preproc_warn_flag
12196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12197 else
12198 ac_cpp_err=
12200 else
12201 ac_cpp_err=yes
12203 if test -z "$ac_cpp_err"; then
12204 ac_header_preproc=yes
12205 else
12206 echo "$as_me: failed program was:" >&5
12207 sed 's/^/| /' conftest.$ac_ext >&5
12209 ac_header_preproc=no
12212 rm -f conftest.err conftest.$ac_ext
12213 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12214 echo "${ECHO_T}$ac_header_preproc" >&6; }
12216 # So? What about this header?
12217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12218 yes:no: )
12219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12222 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12223 ac_header_preproc=yes
12225 no:yes:* )
12226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12229 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12231 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12233 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12237 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12238 ( cat <<\_ASBOX
12239 ## ----------------------------------- ##
12240 ## Report this to llvmbugs@cs.uiuc.edu ##
12241 ## ----------------------------------- ##
12242 _ASBOX
12243 ) | sed "s/^/$as_me: WARNING: /" >&2
12245 esac
12246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12249 echo $ECHO_N "(cached) $ECHO_C" >&6
12250 else
12251 eval "$as_ac_Header=\$ac_header_preproc"
12253 ac_res=`eval echo '${'$as_ac_Header'}'`
12254 { echo "$as_me:$LINENO: result: $ac_res" >&5
12255 echo "${ECHO_T}$ac_res" >&6; }
12258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12259 cat >>confdefs.h <<_ACEOF
12260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12261 _ACEOF
12262 break
12265 done
12270 for ac_func in strchr index
12272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12273 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12275 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12276 echo $ECHO_N "(cached) $ECHO_C" >&6
12277 else
12278 cat >conftest.$ac_ext <<_ACEOF
12279 /* confdefs.h. */
12280 _ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h. */
12284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12286 #define $ac_func innocuous_$ac_func
12288 /* System header to define __stub macros and hopefully few prototypes,
12289 which can conflict with char $ac_func (); below.
12290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12291 <limits.h> exists even on freestanding compilers. */
12293 #ifdef __STDC__
12294 # include <limits.h>
12295 #else
12296 # include <assert.h>
12297 #endif
12299 #undef $ac_func
12301 /* Override any GCC internal prototype to avoid an error.
12302 Use char because int might match the return type of a GCC
12303 builtin and then its argument prototype would still apply. */
12304 #ifdef __cplusplus
12305 extern "C"
12306 #endif
12307 char $ac_func ();
12308 /* The GNU C library defines this for functions which it implements
12309 to always fail with ENOSYS. Some functions are actually named
12310 something starting with __ and the normal name is an alias. */
12311 #if defined __stub_$ac_func || defined __stub___$ac_func
12312 choke me
12313 #endif
12316 main ()
12318 return $ac_func ();
12320 return 0;
12322 _ACEOF
12323 rm -f conftest.$ac_objext conftest$ac_exeext
12324 if { (ac_try="$ac_link"
12325 case "(($ac_try" in
12326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327 *) ac_try_echo=$ac_try;;
12328 esac
12329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330 (eval "$ac_link") 2>conftest.er1
12331 ac_status=$?
12332 grep -v '^ *+' conftest.er1 >conftest.err
12333 rm -f conftest.er1
12334 cat conftest.err >&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } &&
12337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12338 { (case "(($ac_try" in
12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12341 esac
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 (eval "$ac_try") 2>&5
12344 ac_status=$?
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }; } &&
12347 { ac_try='test -s conftest$ac_exeext'
12348 { (case "(($ac_try" in
12349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12351 esac
12352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353 (eval "$ac_try") 2>&5
12354 ac_status=$?
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; }; then
12357 eval "$as_ac_var=yes"
12358 else
12359 echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12362 eval "$as_ac_var=no"
12365 rm -f core conftest.err conftest.$ac_objext \
12366 conftest$ac_exeext conftest.$ac_ext
12368 ac_res=`eval echo '${'$as_ac_var'}'`
12369 { echo "$as_me:$LINENO: result: $ac_res" >&5
12370 echo "${ECHO_T}$ac_res" >&6; }
12371 if test `eval echo '${'$as_ac_var'}'` = yes; then
12372 cat >>confdefs.h <<_ACEOF
12373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12374 _ACEOF
12375 break
12377 done
12381 for ac_func in strrchr rindex
12383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12388 else
12389 cat >conftest.$ac_ext <<_ACEOF
12390 /* confdefs.h. */
12391 _ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12397 #define $ac_func innocuous_$ac_func
12399 /* System header to define __stub macros and hopefully few prototypes,
12400 which can conflict with char $ac_func (); below.
12401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12402 <limits.h> exists even on freestanding compilers. */
12404 #ifdef __STDC__
12405 # include <limits.h>
12406 #else
12407 # include <assert.h>
12408 #endif
12410 #undef $ac_func
12412 /* Override any GCC internal prototype to avoid an error.
12413 Use char because int might match the return type of a GCC
12414 builtin and then its argument prototype would still apply. */
12415 #ifdef __cplusplus
12416 extern "C"
12417 #endif
12418 char $ac_func ();
12419 /* The GNU C library defines this for functions which it implements
12420 to always fail with ENOSYS. Some functions are actually named
12421 something starting with __ and the normal name is an alias. */
12422 #if defined __stub_$ac_func || defined __stub___$ac_func
12423 choke me
12424 #endif
12427 main ()
12429 return $ac_func ();
12431 return 0;
12433 _ACEOF
12434 rm -f conftest.$ac_objext conftest$ac_exeext
12435 if { (ac_try="$ac_link"
12436 case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12439 esac
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_link") 2>conftest.er1
12442 ac_status=$?
12443 grep -v '^ *+' conftest.er1 >conftest.err
12444 rm -f conftest.er1
12445 cat conftest.err >&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } &&
12448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12449 { (case "(($ac_try" in
12450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451 *) ac_try_echo=$ac_try;;
12452 esac
12453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454 (eval "$ac_try") 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; } &&
12458 { ac_try='test -s conftest$ac_exeext'
12459 { (case "(($ac_try" in
12460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461 *) ac_try_echo=$ac_try;;
12462 esac
12463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464 (eval "$ac_try") 2>&5
12465 ac_status=$?
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; }; then
12468 eval "$as_ac_var=yes"
12469 else
12470 echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12473 eval "$as_ac_var=no"
12476 rm -f core conftest.err conftest.$ac_objext \
12477 conftest$ac_exeext conftest.$ac_ext
12479 ac_res=`eval echo '${'$as_ac_var'}'`
12480 { echo "$as_me:$LINENO: result: $ac_res" >&5
12481 echo "${ECHO_T}$ac_res" >&6; }
12482 if test `eval echo '${'$as_ac_var'}'` = yes; then
12483 cat >>confdefs.h <<_ACEOF
12484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12485 _ACEOF
12486 break
12488 done
12492 for ac_func in memcpy bcopy
12494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12495 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12497 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12498 echo $ECHO_N "(cached) $ECHO_C" >&6
12499 else
12500 cat >conftest.$ac_ext <<_ACEOF
12501 /* confdefs.h. */
12502 _ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h. */
12506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12508 #define $ac_func innocuous_$ac_func
12510 /* System header to define __stub macros and hopefully few prototypes,
12511 which can conflict with char $ac_func (); below.
12512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12513 <limits.h> exists even on freestanding compilers. */
12515 #ifdef __STDC__
12516 # include <limits.h>
12517 #else
12518 # include <assert.h>
12519 #endif
12521 #undef $ac_func
12523 /* Override any GCC internal prototype to avoid an error.
12524 Use char because int might match the return type of a GCC
12525 builtin and then its argument prototype would still apply. */
12526 #ifdef __cplusplus
12527 extern "C"
12528 #endif
12529 char $ac_func ();
12530 /* The GNU C library defines this for functions which it implements
12531 to always fail with ENOSYS. Some functions are actually named
12532 something starting with __ and the normal name is an alias. */
12533 #if defined __stub_$ac_func || defined __stub___$ac_func
12534 choke me
12535 #endif
12538 main ()
12540 return $ac_func ();
12542 return 0;
12544 _ACEOF
12545 rm -f conftest.$ac_objext conftest$ac_exeext
12546 if { (ac_try="$ac_link"
12547 case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12550 esac
12551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552 (eval "$ac_link") 2>conftest.er1
12553 ac_status=$?
12554 grep -v '^ *+' conftest.er1 >conftest.err
12555 rm -f conftest.er1
12556 cat conftest.err >&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); } &&
12559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12560 { (case "(($ac_try" in
12561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12562 *) ac_try_echo=$ac_try;;
12563 esac
12564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12565 (eval "$ac_try") 2>&5
12566 ac_status=$?
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; } &&
12569 { ac_try='test -s conftest$ac_exeext'
12570 { (case "(($ac_try" in
12571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572 *) ac_try_echo=$ac_try;;
12573 esac
12574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575 (eval "$ac_try") 2>&5
12576 ac_status=$?
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); }; }; then
12579 eval "$as_ac_var=yes"
12580 else
12581 echo "$as_me: failed program was:" >&5
12582 sed 's/^/| /' conftest.$ac_ext >&5
12584 eval "$as_ac_var=no"
12587 rm -f core conftest.err conftest.$ac_objext \
12588 conftest$ac_exeext conftest.$ac_ext
12590 ac_res=`eval echo '${'$as_ac_var'}'`
12591 { echo "$as_me:$LINENO: result: $ac_res" >&5
12592 echo "${ECHO_T}$ac_res" >&6; }
12593 if test `eval echo '${'$as_ac_var'}'` = yes; then
12594 cat >>confdefs.h <<_ACEOF
12595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12596 _ACEOF
12597 break
12599 done
12603 for ac_func in memmove strcmp
12605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12606 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12608 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12609 echo $ECHO_N "(cached) $ECHO_C" >&6
12610 else
12611 cat >conftest.$ac_ext <<_ACEOF
12612 /* confdefs.h. */
12613 _ACEOF
12614 cat confdefs.h >>conftest.$ac_ext
12615 cat >>conftest.$ac_ext <<_ACEOF
12616 /* end confdefs.h. */
12617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12619 #define $ac_func innocuous_$ac_func
12621 /* System header to define __stub macros and hopefully few prototypes,
12622 which can conflict with char $ac_func (); below.
12623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12624 <limits.h> exists even on freestanding compilers. */
12626 #ifdef __STDC__
12627 # include <limits.h>
12628 #else
12629 # include <assert.h>
12630 #endif
12632 #undef $ac_func
12634 /* Override any GCC internal prototype to avoid an error.
12635 Use char because int might match the return type of a GCC
12636 builtin and then its argument prototype would still apply. */
12637 #ifdef __cplusplus
12638 extern "C"
12639 #endif
12640 char $ac_func ();
12641 /* The GNU C library defines this for functions which it implements
12642 to always fail with ENOSYS. Some functions are actually named
12643 something starting with __ and the normal name is an alias. */
12644 #if defined __stub_$ac_func || defined __stub___$ac_func
12645 choke me
12646 #endif
12649 main ()
12651 return $ac_func ();
12653 return 0;
12655 _ACEOF
12656 rm -f conftest.$ac_objext conftest$ac_exeext
12657 if { (ac_try="$ac_link"
12658 case "(($ac_try" in
12659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12660 *) ac_try_echo=$ac_try;;
12661 esac
12662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12663 (eval "$ac_link") 2>conftest.er1
12664 ac_status=$?
12665 grep -v '^ *+' conftest.er1 >conftest.err
12666 rm -f conftest.er1
12667 cat conftest.err >&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } &&
12670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12671 { (case "(($ac_try" in
12672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673 *) ac_try_echo=$ac_try;;
12674 esac
12675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12676 (eval "$ac_try") 2>&5
12677 ac_status=$?
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; } &&
12680 { ac_try='test -s conftest$ac_exeext'
12681 { (case "(($ac_try" in
12682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683 *) ac_try_echo=$ac_try;;
12684 esac
12685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12686 (eval "$ac_try") 2>&5
12687 ac_status=$?
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; }; then
12690 eval "$as_ac_var=yes"
12691 else
12692 echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12695 eval "$as_ac_var=no"
12698 rm -f core conftest.err conftest.$ac_objext \
12699 conftest$ac_exeext conftest.$ac_ext
12701 ac_res=`eval echo '${'$as_ac_var'}'`
12702 { echo "$as_me:$LINENO: result: $ac_res" >&5
12703 echo "${ECHO_T}$ac_res" >&6; }
12704 if test `eval echo '${'$as_ac_var'}'` = yes; then
12705 cat >>confdefs.h <<_ACEOF
12706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12707 _ACEOF
12710 done
12715 for ac_func in closedir opendir readdir
12717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12718 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12720 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12721 echo $ECHO_N "(cached) $ECHO_C" >&6
12722 else
12723 cat >conftest.$ac_ext <<_ACEOF
12724 /* confdefs.h. */
12725 _ACEOF
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h. */
12729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12731 #define $ac_func innocuous_$ac_func
12733 /* System header to define __stub macros and hopefully few prototypes,
12734 which can conflict with char $ac_func (); below.
12735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12736 <limits.h> exists even on freestanding compilers. */
12738 #ifdef __STDC__
12739 # include <limits.h>
12740 #else
12741 # include <assert.h>
12742 #endif
12744 #undef $ac_func
12746 /* Override any GCC internal prototype to avoid an error.
12747 Use char because int might match the return type of a GCC
12748 builtin and then its argument prototype would still apply. */
12749 #ifdef __cplusplus
12750 extern "C"
12751 #endif
12752 char $ac_func ();
12753 /* The GNU C library defines this for functions which it implements
12754 to always fail with ENOSYS. Some functions are actually named
12755 something starting with __ and the normal name is an alias. */
12756 #if defined __stub_$ac_func || defined __stub___$ac_func
12757 choke me
12758 #endif
12761 main ()
12763 return $ac_func ();
12765 return 0;
12767 _ACEOF
12768 rm -f conftest.$ac_objext conftest$ac_exeext
12769 if { (ac_try="$ac_link"
12770 case "(($ac_try" in
12771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12772 *) ac_try_echo=$ac_try;;
12773 esac
12774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12775 (eval "$ac_link") 2>conftest.er1
12776 ac_status=$?
12777 grep -v '^ *+' conftest.er1 >conftest.err
12778 rm -f conftest.er1
12779 cat conftest.err >&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); } &&
12782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12783 { (case "(($ac_try" in
12784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12785 *) ac_try_echo=$ac_try;;
12786 esac
12787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12788 (eval "$ac_try") 2>&5
12789 ac_status=$?
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; } &&
12792 { ac_try='test -s conftest$ac_exeext'
12793 { (case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12796 esac
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_try") 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; }; then
12802 eval "$as_ac_var=yes"
12803 else
12804 echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12807 eval "$as_ac_var=no"
12810 rm -f core conftest.err conftest.$ac_objext \
12811 conftest$ac_exeext conftest.$ac_ext
12813 ac_res=`eval echo '${'$as_ac_var'}'`
12814 { echo "$as_me:$LINENO: result: $ac_res" >&5
12815 echo "${ECHO_T}$ac_res" >&6; }
12816 if test `eval echo '${'$as_ac_var'}'` = yes; then
12817 cat >>confdefs.h <<_ACEOF
12818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12819 _ACEOF
12822 done
12826 if test "$WITH_LLVMGCCDIR" = "default" ; then
12827 LLVMGCC="llvm-gcc${EXEEXT}"
12828 LLVMGXX="llvm-g++${EXEEXT}"
12829 LLVMGCCCOMMAND="$LLVMGCC"
12830 LLVMGXXCOMMAND="$LLVMGXX"
12831 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12833 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12835 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12836 set dummy $LLVMGCC; ac_word=$2
12837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12839 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12840 echo $ECHO_N "(cached) $ECHO_C" >&6
12841 else
12842 case $LLVMGCC in
12843 [\\/]* | ?:[\\/]*)
12844 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12848 for as_dir in $PATH
12850 IFS=$as_save_IFS
12851 test -z "$as_dir" && as_dir=.
12852 for ac_exec_ext in '' $ac_executable_extensions; do
12853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12854 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12856 break 2
12858 done
12859 done
12860 IFS=$as_save_IFS
12863 esac
12865 LLVMGCC=$ac_cv_path_LLVMGCC
12866 if test -n "$LLVMGCC"; then
12867 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12868 echo "${ECHO_T}$LLVMGCC" >&6; }
12869 else
12870 { echo "$as_me:$LINENO: result: no" >&5
12871 echo "${ECHO_T}no" >&6; }
12875 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12876 set dummy $LLVMGXX; ac_word=$2
12877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12879 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12880 echo $ECHO_N "(cached) $ECHO_C" >&6
12881 else
12882 case $LLVMGXX in
12883 [\\/]* | ?:[\\/]*)
12884 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12888 for as_dir in $PATH
12890 IFS=$as_save_IFS
12891 test -z "$as_dir" && as_dir=.
12892 for ac_exec_ext in '' $ac_executable_extensions; do
12893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12894 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
12895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12896 break 2
12898 done
12899 done
12900 IFS=$as_save_IFS
12903 esac
12905 LLVMGXX=$ac_cv_path_LLVMGXX
12906 if test -n "$LLVMGXX"; then
12907 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12908 echo "${ECHO_T}$LLVMGXX" >&6; }
12909 else
12910 { echo "$as_me:$LINENO: result: no" >&5
12911 echo "${ECHO_T}no" >&6; }
12915 else
12916 if test -z "$LLVMGCC"; then
12917 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
12918 LLVMGCCCOMMAND="$LLVMGCC"
12920 if test -z "$LLVMGXX"; then
12921 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
12922 LLVMGXXCOMMAND="$LLVMGXX"
12925 LLVMGCC=$LLVMGCC
12927 LLVMGXX=$LLVMGXX
12929 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12931 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12936 # Check whether --with-llvmcc was given.
12937 if test "${with_llvmcc+set}" = set; then
12938 withval=$with_llvmcc;
12939 else
12940 with_llvmcc=check
12943 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12944 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12945 if test "$with_llvmcc" != "check"; then
12946 if (test "$with_llvmcc" != "llvm-gcc" &&
12947 test "$with_llvmcc" != "clang" &&
12948 test "$with_llvmcc" != "none"); then
12949 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12950 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12951 { (exit 1); exit 1; }; }
12953 WITH_LLVMCC="$with_llvmcc"
12954 elif test -n "$LLVMGCC"; then
12955 WITH_LLVMCC=llvm-gcc
12956 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12957 WITH_LLVMCC=clang
12958 else
12959 WITH_LLVMCC=none
12961 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12962 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12963 LLVMCC_OPTION=$WITH_LLVMCC
12966 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12967 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12969 ICC=no
12970 IXX=no
12971 case $CC in
12972 icc*|icpc*)
12973 ICC=yes
12974 IXX=yes
12978 esac
12980 if test "$GCC" != "yes" && test "$ICC" != "yes"
12981 then
12982 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12983 echo "$as_me: error: gcc|icc required but not found" >&2;}
12984 { (exit 1); exit 1; }; }
12987 if test "$GXX" != "yes" && test "$IXX" != "yes"
12988 then
12989 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12990 echo "$as_me: error: g++|icc required but not found" >&2;}
12991 { (exit 1); exit 1; }; }
12994 if test "$GCC" = "yes"
12995 then
12996 cat >conftest.$ac_ext <<_ACEOF
12997 #if !defined(__GNUC__) || __GNUC__ < 3
12998 #error Unsupported GCC version
12999 #endif
13001 _ACEOF
13002 rm -f conftest.$ac_objext
13003 if { (ac_try="$ac_compile"
13004 case "(($ac_try" in
13005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13006 *) ac_try_echo=$ac_try;;
13007 esac
13008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13009 (eval "$ac_compile") 2>conftest.er1
13010 ac_status=$?
13011 grep -v '^ *+' conftest.er1 >conftest.err
13012 rm -f conftest.er1
13013 cat conftest.err >&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); } &&
13016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13017 { (case "(($ac_try" in
13018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13019 *) ac_try_echo=$ac_try;;
13020 esac
13021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13022 (eval "$ac_try") 2>&5
13023 ac_status=$?
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; } &&
13026 { ac_try='test -s conftest.$ac_objext'
13027 { (case "(($ac_try" in
13028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13029 *) ac_try_echo=$ac_try;;
13030 esac
13031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13032 (eval "$ac_try") 2>&5
13033 ac_status=$?
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); }; }; then
13037 else
13038 echo "$as_me: failed program was:" >&5
13039 sed 's/^/| /' conftest.$ac_ext >&5
13041 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13042 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13043 { (exit 1); exit 1; }; }
13046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13049 if test -z "$llvm_cv_gnu_make_command"
13050 then
13051 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13052 echo "$as_me: error: GNU Make required but not found" >&2;}
13053 { (exit 1); exit 1; }; }
13056 { echo "$as_me:$LINENO: result: ok" >&5
13057 echo "${ECHO_T}ok" >&6; }
13059 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13060 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13061 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13063 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13065 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13066 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13070 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13071 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13072 if test "${ac_cv_lib_m_sin+set}" = set; then
13073 echo $ECHO_N "(cached) $ECHO_C" >&6
13074 else
13075 ac_check_lib_save_LIBS=$LIBS
13076 LIBS="-lm $LIBS"
13077 cat >conftest.$ac_ext <<_ACEOF
13078 /* confdefs.h. */
13079 _ACEOF
13080 cat confdefs.h >>conftest.$ac_ext
13081 cat >>conftest.$ac_ext <<_ACEOF
13082 /* end confdefs.h. */
13084 /* Override any GCC internal prototype to avoid an error.
13085 Use char because int might match the return type of a GCC
13086 builtin and then its argument prototype would still apply. */
13087 #ifdef __cplusplus
13088 extern "C"
13089 #endif
13090 char sin ();
13092 main ()
13094 return sin ();
13096 return 0;
13098 _ACEOF
13099 rm -f conftest.$ac_objext conftest$ac_exeext
13100 if { (ac_try="$ac_link"
13101 case "(($ac_try" in
13102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13103 *) ac_try_echo=$ac_try;;
13104 esac
13105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13106 (eval "$ac_link") 2>conftest.er1
13107 ac_status=$?
13108 grep -v '^ *+' conftest.er1 >conftest.err
13109 rm -f conftest.er1
13110 cat conftest.err >&5
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); } &&
13113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13114 { (case "(($ac_try" in
13115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13116 *) ac_try_echo=$ac_try;;
13117 esac
13118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13119 (eval "$ac_try") 2>&5
13120 ac_status=$?
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; } &&
13123 { ac_try='test -s conftest$ac_exeext'
13124 { (case "(($ac_try" in
13125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126 *) ac_try_echo=$ac_try;;
13127 esac
13128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129 (eval "$ac_try") 2>&5
13130 ac_status=$?
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; }; then
13133 ac_cv_lib_m_sin=yes
13134 else
13135 echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.$ac_ext >&5
13138 ac_cv_lib_m_sin=no
13141 rm -f core conftest.err conftest.$ac_objext \
13142 conftest$ac_exeext conftest.$ac_ext
13143 LIBS=$ac_check_lib_save_LIBS
13145 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13146 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13147 if test $ac_cv_lib_m_sin = yes; then
13148 cat >>confdefs.h <<_ACEOF
13149 #define HAVE_LIBM 1
13150 _ACEOF
13152 LIBS="-lm $LIBS"
13156 if test "$llvm_cv_os_type" = "MingW" ; then
13158 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13159 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13160 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13161 echo $ECHO_N "(cached) $ECHO_C" >&6
13162 else
13163 ac_check_lib_save_LIBS=$LIBS
13164 LIBS="-limagehlp $LIBS"
13165 cat >conftest.$ac_ext <<_ACEOF
13166 /* confdefs.h. */
13167 _ACEOF
13168 cat confdefs.h >>conftest.$ac_ext
13169 cat >>conftest.$ac_ext <<_ACEOF
13170 /* end confdefs.h. */
13174 main ()
13176 return main ();
13178 return 0;
13180 _ACEOF
13181 rm -f conftest.$ac_objext conftest$ac_exeext
13182 if { (ac_try="$ac_link"
13183 case "(($ac_try" in
13184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185 *) ac_try_echo=$ac_try;;
13186 esac
13187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13188 (eval "$ac_link") 2>conftest.er1
13189 ac_status=$?
13190 grep -v '^ *+' conftest.er1 >conftest.err
13191 rm -f conftest.er1
13192 cat conftest.err >&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } &&
13195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13196 { (case "(($ac_try" in
13197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13198 *) ac_try_echo=$ac_try;;
13199 esac
13200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13201 (eval "$ac_try") 2>&5
13202 ac_status=$?
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; } &&
13205 { ac_try='test -s conftest$ac_exeext'
13206 { (case "(($ac_try" in
13207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13208 *) ac_try_echo=$ac_try;;
13209 esac
13210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13211 (eval "$ac_try") 2>&5
13212 ac_status=$?
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); }; }; then
13215 ac_cv_lib_imagehlp_main=yes
13216 else
13217 echo "$as_me: failed program was:" >&5
13218 sed 's/^/| /' conftest.$ac_ext >&5
13220 ac_cv_lib_imagehlp_main=no
13223 rm -f core conftest.err conftest.$ac_objext \
13224 conftest$ac_exeext conftest.$ac_ext
13225 LIBS=$ac_check_lib_save_LIBS
13227 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13228 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13229 if test $ac_cv_lib_imagehlp_main = yes; then
13230 cat >>confdefs.h <<_ACEOF
13231 #define HAVE_LIBIMAGEHLP 1
13232 _ACEOF
13234 LIBS="-limagehlp $LIBS"
13239 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13240 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13241 if test "${ac_cv_lib_psapi_main+set}" = set; then
13242 echo $ECHO_N "(cached) $ECHO_C" >&6
13243 else
13244 ac_check_lib_save_LIBS=$LIBS
13245 LIBS="-lpsapi $LIBS"
13246 cat >conftest.$ac_ext <<_ACEOF
13247 /* confdefs.h. */
13248 _ACEOF
13249 cat confdefs.h >>conftest.$ac_ext
13250 cat >>conftest.$ac_ext <<_ACEOF
13251 /* end confdefs.h. */
13255 main ()
13257 return main ();
13259 return 0;
13261 _ACEOF
13262 rm -f conftest.$ac_objext conftest$ac_exeext
13263 if { (ac_try="$ac_link"
13264 case "(($ac_try" in
13265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13266 *) ac_try_echo=$ac_try;;
13267 esac
13268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13269 (eval "$ac_link") 2>conftest.er1
13270 ac_status=$?
13271 grep -v '^ *+' conftest.er1 >conftest.err
13272 rm -f conftest.er1
13273 cat conftest.err >&5
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); } &&
13276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13277 { (case "(($ac_try" in
13278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13279 *) ac_try_echo=$ac_try;;
13280 esac
13281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13282 (eval "$ac_try") 2>&5
13283 ac_status=$?
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }; } &&
13286 { ac_try='test -s conftest$ac_exeext'
13287 { (case "(($ac_try" in
13288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289 *) ac_try_echo=$ac_try;;
13290 esac
13291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13292 (eval "$ac_try") 2>&5
13293 ac_status=$?
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }; }; then
13296 ac_cv_lib_psapi_main=yes
13297 else
13298 echo "$as_me: failed program was:" >&5
13299 sed 's/^/| /' conftest.$ac_ext >&5
13301 ac_cv_lib_psapi_main=no
13304 rm -f core conftest.err conftest.$ac_objext \
13305 conftest$ac_exeext conftest.$ac_ext
13306 LIBS=$ac_check_lib_save_LIBS
13308 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13309 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13310 if test $ac_cv_lib_psapi_main = yes; then
13311 cat >>confdefs.h <<_ACEOF
13312 #define HAVE_LIBPSAPI 1
13313 _ACEOF
13315 LIBS="-lpsapi $LIBS"
13321 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13322 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13323 if test "${ac_cv_search_dlopen+set}" = set; then
13324 echo $ECHO_N "(cached) $ECHO_C" >&6
13325 else
13326 ac_func_search_save_LIBS=$LIBS
13327 cat >conftest.$ac_ext <<_ACEOF
13328 /* confdefs.h. */
13329 _ACEOF
13330 cat confdefs.h >>conftest.$ac_ext
13331 cat >>conftest.$ac_ext <<_ACEOF
13332 /* end confdefs.h. */
13334 /* Override any GCC internal prototype to avoid an error.
13335 Use char because int might match the return type of a GCC
13336 builtin and then its argument prototype would still apply. */
13337 #ifdef __cplusplus
13338 extern "C"
13339 #endif
13340 char dlopen ();
13342 main ()
13344 return dlopen ();
13346 return 0;
13348 _ACEOF
13349 for ac_lib in '' dl; do
13350 if test -z "$ac_lib"; then
13351 ac_res="none required"
13352 else
13353 ac_res=-l$ac_lib
13354 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13356 rm -f conftest.$ac_objext conftest$ac_exeext
13357 if { (ac_try="$ac_link"
13358 case "(($ac_try" in
13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360 *) ac_try_echo=$ac_try;;
13361 esac
13362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363 (eval "$ac_link") 2>conftest.er1
13364 ac_status=$?
13365 grep -v '^ *+' conftest.er1 >conftest.err
13366 rm -f conftest.er1
13367 cat conftest.err >&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); } &&
13370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13371 { (case "(($ac_try" in
13372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373 *) ac_try_echo=$ac_try;;
13374 esac
13375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376 (eval "$ac_try") 2>&5
13377 ac_status=$?
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); }; } &&
13380 { ac_try='test -s conftest$ac_exeext'
13381 { (case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13384 esac
13385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386 (eval "$ac_try") 2>&5
13387 ac_status=$?
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; }; then
13390 ac_cv_search_dlopen=$ac_res
13391 else
13392 echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.$ac_ext >&5
13398 rm -f core conftest.err conftest.$ac_objext \
13399 conftest$ac_exeext
13400 if test "${ac_cv_search_dlopen+set}" = set; then
13401 break
13403 done
13404 if test "${ac_cv_search_dlopen+set}" = set; then
13406 else
13407 ac_cv_search_dlopen=no
13409 rm conftest.$ac_ext
13410 LIBS=$ac_func_search_save_LIBS
13412 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13413 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13414 ac_res=$ac_cv_search_dlopen
13415 if test "$ac_res" != no; then
13416 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13418 cat >>confdefs.h <<\_ACEOF
13419 #define HAVE_DLOPEN 1
13420 _ACEOF
13422 else
13423 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13424 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13428 if test "$llvm_cv_enable_libffi" = "yes" ; then
13429 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13430 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13431 if test "${ac_cv_search_ffi_call+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13433 else
13434 ac_func_search_save_LIBS=$LIBS
13435 cat >conftest.$ac_ext <<_ACEOF
13436 /* confdefs.h. */
13437 _ACEOF
13438 cat confdefs.h >>conftest.$ac_ext
13439 cat >>conftest.$ac_ext <<_ACEOF
13440 /* end confdefs.h. */
13442 /* Override any GCC internal prototype to avoid an error.
13443 Use char because int might match the return type of a GCC
13444 builtin and then its argument prototype would still apply. */
13445 #ifdef __cplusplus
13446 extern "C"
13447 #endif
13448 char ffi_call ();
13450 main ()
13452 return ffi_call ();
13454 return 0;
13456 _ACEOF
13457 for ac_lib in '' ffi; do
13458 if test -z "$ac_lib"; then
13459 ac_res="none required"
13460 else
13461 ac_res=-l$ac_lib
13462 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13464 rm -f conftest.$ac_objext conftest$ac_exeext
13465 if { (ac_try="$ac_link"
13466 case "(($ac_try" in
13467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13468 *) ac_try_echo=$ac_try;;
13469 esac
13470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13471 (eval "$ac_link") 2>conftest.er1
13472 ac_status=$?
13473 grep -v '^ *+' conftest.er1 >conftest.err
13474 rm -f conftest.er1
13475 cat conftest.err >&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); } &&
13478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13479 { (case "(($ac_try" in
13480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481 *) ac_try_echo=$ac_try;;
13482 esac
13483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13484 (eval "$ac_try") 2>&5
13485 ac_status=$?
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; } &&
13488 { ac_try='test -s conftest$ac_exeext'
13489 { (case "(($ac_try" in
13490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13491 *) ac_try_echo=$ac_try;;
13492 esac
13493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13494 (eval "$ac_try") 2>&5
13495 ac_status=$?
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 ac_cv_search_ffi_call=$ac_res
13499 else
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13506 rm -f core conftest.err conftest.$ac_objext \
13507 conftest$ac_exeext
13508 if test "${ac_cv_search_ffi_call+set}" = set; then
13509 break
13511 done
13512 if test "${ac_cv_search_ffi_call+set}" = set; then
13514 else
13515 ac_cv_search_ffi_call=no
13517 rm conftest.$ac_ext
13518 LIBS=$ac_func_search_save_LIBS
13520 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13521 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13522 ac_res=$ac_cv_search_ffi_call
13523 if test "$ac_res" != no; then
13524 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13526 cat >>confdefs.h <<\_ACEOF
13527 #define HAVE_FFI_CALL 1
13528 _ACEOF
13530 else
13531 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13532 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13533 { (exit 1); exit 1; }; }
13538 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13539 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13540 if test "${ac_cv_search_mallinfo+set}" = set; then
13541 echo $ECHO_N "(cached) $ECHO_C" >&6
13542 else
13543 ac_func_search_save_LIBS=$LIBS
13544 cat >conftest.$ac_ext <<_ACEOF
13545 /* confdefs.h. */
13546 _ACEOF
13547 cat confdefs.h >>conftest.$ac_ext
13548 cat >>conftest.$ac_ext <<_ACEOF
13549 /* end confdefs.h. */
13551 /* Override any GCC internal prototype to avoid an error.
13552 Use char because int might match the return type of a GCC
13553 builtin and then its argument prototype would still apply. */
13554 #ifdef __cplusplus
13555 extern "C"
13556 #endif
13557 char mallinfo ();
13559 main ()
13561 return mallinfo ();
13563 return 0;
13565 _ACEOF
13566 for ac_lib in '' malloc; do
13567 if test -z "$ac_lib"; then
13568 ac_res="none required"
13569 else
13570 ac_res=-l$ac_lib
13571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13573 rm -f conftest.$ac_objext conftest$ac_exeext
13574 if { (ac_try="$ac_link"
13575 case "(($ac_try" in
13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13578 esac
13579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580 (eval "$ac_link") 2>conftest.er1
13581 ac_status=$?
13582 grep -v '^ *+' conftest.er1 >conftest.err
13583 rm -f conftest.er1
13584 cat conftest.err >&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); } &&
13587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13588 { (case "(($ac_try" in
13589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13590 *) ac_try_echo=$ac_try;;
13591 esac
13592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13593 (eval "$ac_try") 2>&5
13594 ac_status=$?
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; } &&
13597 { ac_try='test -s conftest$ac_exeext'
13598 { (case "(($ac_try" in
13599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13600 *) ac_try_echo=$ac_try;;
13601 esac
13602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13603 (eval "$ac_try") 2>&5
13604 ac_status=$?
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); }; }; then
13607 ac_cv_search_mallinfo=$ac_res
13608 else
13609 echo "$as_me: failed program was:" >&5
13610 sed 's/^/| /' conftest.$ac_ext >&5
13615 rm -f core conftest.err conftest.$ac_objext \
13616 conftest$ac_exeext
13617 if test "${ac_cv_search_mallinfo+set}" = set; then
13618 break
13620 done
13621 if test "${ac_cv_search_mallinfo+set}" = set; then
13623 else
13624 ac_cv_search_mallinfo=no
13626 rm conftest.$ac_ext
13627 LIBS=$ac_func_search_save_LIBS
13629 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13630 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13631 ac_res=$ac_cv_search_mallinfo
13632 if test "$ac_res" != no; then
13633 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13635 cat >>confdefs.h <<\_ACEOF
13636 #define HAVE_MALLINFO 1
13637 _ACEOF
13642 if test "$ENABLE_THREADS" -eq 1 ; then
13644 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13645 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13646 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
13648 else
13649 ac_check_lib_save_LIBS=$LIBS
13650 LIBS="-lpthread $LIBS"
13651 cat >conftest.$ac_ext <<_ACEOF
13652 /* confdefs.h. */
13653 _ACEOF
13654 cat confdefs.h >>conftest.$ac_ext
13655 cat >>conftest.$ac_ext <<_ACEOF
13656 /* end confdefs.h. */
13658 /* Override any GCC internal prototype to avoid an error.
13659 Use char because int might match the return type of a GCC
13660 builtin and then its argument prototype would still apply. */
13661 #ifdef __cplusplus
13662 extern "C"
13663 #endif
13664 char pthread_mutex_init ();
13666 main ()
13668 return pthread_mutex_init ();
13670 return 0;
13672 _ACEOF
13673 rm -f conftest.$ac_objext conftest$ac_exeext
13674 if { (ac_try="$ac_link"
13675 case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13678 esac
13679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_link") 2>conftest.er1
13681 ac_status=$?
13682 grep -v '^ *+' conftest.er1 >conftest.err
13683 rm -f conftest.er1
13684 cat conftest.err >&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } &&
13687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13688 { (case "(($ac_try" in
13689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13690 *) ac_try_echo=$ac_try;;
13691 esac
13692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13693 (eval "$ac_try") 2>&5
13694 ac_status=$?
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; } &&
13697 { ac_try='test -s conftest$ac_exeext'
13698 { (case "(($ac_try" in
13699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13700 *) ac_try_echo=$ac_try;;
13701 esac
13702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13703 (eval "$ac_try") 2>&5
13704 ac_status=$?
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; }; then
13707 ac_cv_lib_pthread_pthread_mutex_init=yes
13708 else
13709 echo "$as_me: failed program was:" >&5
13710 sed 's/^/| /' conftest.$ac_ext >&5
13712 ac_cv_lib_pthread_pthread_mutex_init=no
13715 rm -f core conftest.err conftest.$ac_objext \
13716 conftest$ac_exeext conftest.$ac_ext
13717 LIBS=$ac_check_lib_save_LIBS
13719 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13720 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13721 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13722 cat >>confdefs.h <<_ACEOF
13723 #define HAVE_LIBPTHREAD 1
13724 _ACEOF
13726 LIBS="-lpthread $LIBS"
13730 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13731 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13732 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13733 echo $ECHO_N "(cached) $ECHO_C" >&6
13734 else
13735 ac_func_search_save_LIBS=$LIBS
13736 cat >conftest.$ac_ext <<_ACEOF
13737 /* confdefs.h. */
13738 _ACEOF
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h. */
13743 /* Override any GCC internal prototype to avoid an error.
13744 Use char because int might match the return type of a GCC
13745 builtin and then its argument prototype would still apply. */
13746 #ifdef __cplusplus
13747 extern "C"
13748 #endif
13749 char pthread_mutex_lock ();
13751 main ()
13753 return pthread_mutex_lock ();
13755 return 0;
13757 _ACEOF
13758 for ac_lib in '' pthread; do
13759 if test -z "$ac_lib"; then
13760 ac_res="none required"
13761 else
13762 ac_res=-l$ac_lib
13763 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13765 rm -f conftest.$ac_objext conftest$ac_exeext
13766 if { (ac_try="$ac_link"
13767 case "(($ac_try" in
13768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769 *) ac_try_echo=$ac_try;;
13770 esac
13771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772 (eval "$ac_link") 2>conftest.er1
13773 ac_status=$?
13774 grep -v '^ *+' conftest.er1 >conftest.err
13775 rm -f conftest.er1
13776 cat conftest.err >&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } &&
13779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13780 { (case "(($ac_try" in
13781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782 *) ac_try_echo=$ac_try;;
13783 esac
13784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13785 (eval "$ac_try") 2>&5
13786 ac_status=$?
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; } &&
13789 { ac_try='test -s conftest$ac_exeext'
13790 { (case "(($ac_try" in
13791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792 *) ac_try_echo=$ac_try;;
13793 esac
13794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13795 (eval "$ac_try") 2>&5
13796 ac_status=$?
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
13799 ac_cv_search_pthread_mutex_lock=$ac_res
13800 else
13801 echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13807 rm -f core conftest.err conftest.$ac_objext \
13808 conftest$ac_exeext
13809 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13810 break
13812 done
13813 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13815 else
13816 ac_cv_search_pthread_mutex_lock=no
13818 rm conftest.$ac_ext
13819 LIBS=$ac_func_search_save_LIBS
13821 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13822 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13823 ac_res=$ac_cv_search_pthread_mutex_lock
13824 if test "$ac_res" != no; then
13825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13827 cat >>confdefs.h <<\_ACEOF
13828 #define HAVE_PTHREAD_MUTEX_LOCK 1
13829 _ACEOF
13833 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13834 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13835 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13837 else
13838 ac_func_search_save_LIBS=$LIBS
13839 cat >conftest.$ac_ext <<_ACEOF
13840 /* confdefs.h. */
13841 _ACEOF
13842 cat confdefs.h >>conftest.$ac_ext
13843 cat >>conftest.$ac_ext <<_ACEOF
13844 /* end confdefs.h. */
13846 /* Override any GCC internal prototype to avoid an error.
13847 Use char because int might match the return type of a GCC
13848 builtin and then its argument prototype would still apply. */
13849 #ifdef __cplusplus
13850 extern "C"
13851 #endif
13852 char pthread_rwlock_init ();
13854 main ()
13856 return pthread_rwlock_init ();
13858 return 0;
13860 _ACEOF
13861 for ac_lib in '' pthread; do
13862 if test -z "$ac_lib"; then
13863 ac_res="none required"
13864 else
13865 ac_res=-l$ac_lib
13866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13868 rm -f conftest.$ac_objext conftest$ac_exeext
13869 if { (ac_try="$ac_link"
13870 case "(($ac_try" in
13871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872 *) ac_try_echo=$ac_try;;
13873 esac
13874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875 (eval "$ac_link") 2>conftest.er1
13876 ac_status=$?
13877 grep -v '^ *+' conftest.er1 >conftest.err
13878 rm -f conftest.er1
13879 cat conftest.err >&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } &&
13882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13883 { (case "(($ac_try" in
13884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13886 esac
13887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888 (eval "$ac_try") 2>&5
13889 ac_status=$?
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; } &&
13892 { ac_try='test -s conftest$ac_exeext'
13893 { (case "(($ac_try" in
13894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13896 esac
13897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898 (eval "$ac_try") 2>&5
13899 ac_status=$?
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; }; then
13902 ac_cv_search_pthread_rwlock_init=$ac_res
13903 else
13904 echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13910 rm -f core conftest.err conftest.$ac_objext \
13911 conftest$ac_exeext
13912 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13913 break
13915 done
13916 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13918 else
13919 ac_cv_search_pthread_rwlock_init=no
13921 rm conftest.$ac_ext
13922 LIBS=$ac_func_search_save_LIBS
13924 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13925 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13926 ac_res=$ac_cv_search_pthread_rwlock_init
13927 if test "$ac_res" != no; then
13928 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13930 cat >>confdefs.h <<\_ACEOF
13931 #define HAVE_PTHREAD_RWLOCK_INIT 1
13932 _ACEOF
13936 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13937 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13938 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13939 echo $ECHO_N "(cached) $ECHO_C" >&6
13940 else
13941 ac_func_search_save_LIBS=$LIBS
13942 cat >conftest.$ac_ext <<_ACEOF
13943 /* confdefs.h. */
13944 _ACEOF
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h. */
13949 /* Override any GCC internal prototype to avoid an error.
13950 Use char because int might match the return type of a GCC
13951 builtin and then its argument prototype would still apply. */
13952 #ifdef __cplusplus
13953 extern "C"
13954 #endif
13955 char pthread_getspecific ();
13957 main ()
13959 return pthread_getspecific ();
13961 return 0;
13963 _ACEOF
13964 for ac_lib in '' pthread; do
13965 if test -z "$ac_lib"; then
13966 ac_res="none required"
13967 else
13968 ac_res=-l$ac_lib
13969 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13971 rm -f conftest.$ac_objext conftest$ac_exeext
13972 if { (ac_try="$ac_link"
13973 case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13976 esac
13977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978 (eval "$ac_link") 2>conftest.er1
13979 ac_status=$?
13980 grep -v '^ *+' conftest.er1 >conftest.err
13981 rm -f conftest.er1
13982 cat conftest.err >&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } &&
13985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13986 { (case "(($ac_try" in
13987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13988 *) ac_try_echo=$ac_try;;
13989 esac
13990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13991 (eval "$ac_try") 2>&5
13992 ac_status=$?
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; } &&
13995 { ac_try='test -s conftest$ac_exeext'
13996 { (case "(($ac_try" in
13997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13998 *) ac_try_echo=$ac_try;;
13999 esac
14000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14001 (eval "$ac_try") 2>&5
14002 ac_status=$?
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); }; }; then
14005 ac_cv_search_pthread_getspecific=$ac_res
14006 else
14007 echo "$as_me: failed program was:" >&5
14008 sed 's/^/| /' conftest.$ac_ext >&5
14013 rm -f core conftest.err conftest.$ac_objext \
14014 conftest$ac_exeext
14015 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14016 break
14018 done
14019 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14021 else
14022 ac_cv_search_pthread_getspecific=no
14024 rm conftest.$ac_ext
14025 LIBS=$ac_func_search_save_LIBS
14027 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14028 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14029 ac_res=$ac_cv_search_pthread_getspecific
14030 if test "$ac_res" != no; then
14031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14033 cat >>confdefs.h <<\_ACEOF
14034 #define HAVE_PTHREAD_GETSPECIFIC 1
14035 _ACEOF
14042 # Check whether --with-udis86 was given.
14043 if test "${with_udis86+set}" = set; then
14044 withval=$with_udis86;
14045 USE_UDIS86=1
14047 case "$withval" in
14048 /usr/lib|yes) ;;
14049 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14050 esac
14052 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14053 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14054 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14055 echo $ECHO_N "(cached) $ECHO_C" >&6
14056 else
14057 ac_check_lib_save_LIBS=$LIBS
14058 LIBS="-ludis86 $LIBS"
14059 cat >conftest.$ac_ext <<_ACEOF
14060 /* confdefs.h. */
14061 _ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h. */
14066 /* Override any GCC internal prototype to avoid an error.
14067 Use char because int might match the return type of a GCC
14068 builtin and then its argument prototype would still apply. */
14069 #ifdef __cplusplus
14070 extern "C"
14071 #endif
14072 char ud_init ();
14074 main ()
14076 return ud_init ();
14078 return 0;
14080 _ACEOF
14081 rm -f conftest.$ac_objext conftest$ac_exeext
14082 if { (ac_try="$ac_link"
14083 case "(($ac_try" in
14084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085 *) ac_try_echo=$ac_try;;
14086 esac
14087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088 (eval "$ac_link") 2>conftest.er1
14089 ac_status=$?
14090 grep -v '^ *+' conftest.er1 >conftest.err
14091 rm -f conftest.er1
14092 cat conftest.err >&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); } &&
14095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14096 { (case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14099 esac
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_try") 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; } &&
14105 { ac_try='test -s conftest$ac_exeext'
14106 { (case "(($ac_try" in
14107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14108 *) ac_try_echo=$ac_try;;
14109 esac
14110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14111 (eval "$ac_try") 2>&5
14112 ac_status=$?
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; }; then
14115 ac_cv_lib_udis86_ud_init=yes
14116 else
14117 echo "$as_me: failed program was:" >&5
14118 sed 's/^/| /' conftest.$ac_ext >&5
14120 ac_cv_lib_udis86_ud_init=no
14123 rm -f core conftest.err conftest.$ac_objext \
14124 conftest$ac_exeext conftest.$ac_ext
14125 LIBS=$ac_check_lib_save_LIBS
14127 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14128 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14129 if test $ac_cv_lib_udis86_ud_init = yes; then
14130 cat >>confdefs.h <<_ACEOF
14131 #define HAVE_LIBUDIS86 1
14132 _ACEOF
14134 LIBS="-ludis86 $LIBS"
14136 else
14138 echo "Error! You need to have libudis86 around."
14139 exit -1
14144 else
14145 USE_UDIS86=0
14150 cat >>confdefs.h <<_ACEOF
14151 #define USE_UDIS86 $USE_UDIS86
14152 _ACEOF
14156 # Check whether --with-oprofile was given.
14157 if test "${with_oprofile+set}" = set; then
14158 withval=$with_oprofile;
14159 USE_OPROFILE=1
14161 case "$withval" in
14162 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14163 no) llvm_cv_oppath=
14164 USE_OPROFILE=0
14166 *) llvm_cv_oppath="${withval}/lib/oprofile"
14167 CPPFLAGS="-I${withval}/include";;
14168 esac
14169 if test -n "$llvm_cv_oppath" ; then
14170 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14171 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14172 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14173 if test "${ac_cv_search_bfd_init+set}" = set; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
14175 else
14176 ac_func_search_save_LIBS=$LIBS
14177 cat >conftest.$ac_ext <<_ACEOF
14178 /* confdefs.h. */
14179 _ACEOF
14180 cat confdefs.h >>conftest.$ac_ext
14181 cat >>conftest.$ac_ext <<_ACEOF
14182 /* end confdefs.h. */
14184 /* Override any GCC internal prototype to avoid an error.
14185 Use char because int might match the return type of a GCC
14186 builtin and then its argument prototype would still apply. */
14187 #ifdef __cplusplus
14188 extern "C"
14189 #endif
14190 char bfd_init ();
14192 main ()
14194 return bfd_init ();
14196 return 0;
14198 _ACEOF
14199 for ac_lib in '' bfd; do
14200 if test -z "$ac_lib"; then
14201 ac_res="none required"
14202 else
14203 ac_res=-l$ac_lib
14204 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14206 rm -f conftest.$ac_objext conftest$ac_exeext
14207 if { (ac_try="$ac_link"
14208 case "(($ac_try" in
14209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210 *) ac_try_echo=$ac_try;;
14211 esac
14212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213 (eval "$ac_link") 2>conftest.er1
14214 ac_status=$?
14215 grep -v '^ *+' conftest.er1 >conftest.err
14216 rm -f conftest.er1
14217 cat conftest.err >&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } &&
14220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14221 { (case "(($ac_try" in
14222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223 *) ac_try_echo=$ac_try;;
14224 esac
14225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226 (eval "$ac_try") 2>&5
14227 ac_status=$?
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); }; } &&
14230 { ac_try='test -s conftest$ac_exeext'
14231 { (case "(($ac_try" in
14232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233 *) ac_try_echo=$ac_try;;
14234 esac
14235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236 (eval "$ac_try") 2>&5
14237 ac_status=$?
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
14240 ac_cv_search_bfd_init=$ac_res
14241 else
14242 echo "$as_me: failed program was:" >&5
14243 sed 's/^/| /' conftest.$ac_ext >&5
14248 rm -f core conftest.err conftest.$ac_objext \
14249 conftest$ac_exeext
14250 if test "${ac_cv_search_bfd_init+set}" = set; then
14251 break
14253 done
14254 if test "${ac_cv_search_bfd_init+set}" = set; then
14256 else
14257 ac_cv_search_bfd_init=no
14259 rm conftest.$ac_ext
14260 LIBS=$ac_func_search_save_LIBS
14262 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14263 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14264 ac_res=$ac_cv_search_bfd_init
14265 if test "$ac_res" != no; then
14266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14270 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14271 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14272 if test "${ac_cv_search_op_open_agent+set}" = set; then
14273 echo $ECHO_N "(cached) $ECHO_C" >&6
14274 else
14275 ac_func_search_save_LIBS=$LIBS
14276 cat >conftest.$ac_ext <<_ACEOF
14277 /* confdefs.h. */
14278 _ACEOF
14279 cat confdefs.h >>conftest.$ac_ext
14280 cat >>conftest.$ac_ext <<_ACEOF
14281 /* end confdefs.h. */
14283 /* Override any GCC internal prototype to avoid an error.
14284 Use char because int might match the return type of a GCC
14285 builtin and then its argument prototype would still apply. */
14286 #ifdef __cplusplus
14287 extern "C"
14288 #endif
14289 char op_open_agent ();
14291 main ()
14293 return op_open_agent ();
14295 return 0;
14297 _ACEOF
14298 for ac_lib in '' opagent; do
14299 if test -z "$ac_lib"; then
14300 ac_res="none required"
14301 else
14302 ac_res=-l$ac_lib
14303 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14305 rm -f conftest.$ac_objext conftest$ac_exeext
14306 if { (ac_try="$ac_link"
14307 case "(($ac_try" in
14308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309 *) ac_try_echo=$ac_try;;
14310 esac
14311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14312 (eval "$ac_link") 2>conftest.er1
14313 ac_status=$?
14314 grep -v '^ *+' conftest.er1 >conftest.err
14315 rm -f conftest.er1
14316 cat conftest.err >&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } &&
14319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14320 { (case "(($ac_try" in
14321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14322 *) ac_try_echo=$ac_try;;
14323 esac
14324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14325 (eval "$ac_try") 2>&5
14326 ac_status=$?
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; } &&
14329 { ac_try='test -s conftest$ac_exeext'
14330 { (case "(($ac_try" in
14331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332 *) ac_try_echo=$ac_try;;
14333 esac
14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335 (eval "$ac_try") 2>&5
14336 ac_status=$?
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; }; then
14339 ac_cv_search_op_open_agent=$ac_res
14340 else
14341 echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14347 rm -f core conftest.err conftest.$ac_objext \
14348 conftest$ac_exeext
14349 if test "${ac_cv_search_op_open_agent+set}" = set; then
14350 break
14352 done
14353 if test "${ac_cv_search_op_open_agent+set}" = set; then
14355 else
14356 ac_cv_search_op_open_agent=no
14358 rm conftest.$ac_ext
14359 LIBS=$ac_func_search_save_LIBS
14361 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14362 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14363 ac_res=$ac_cv_search_op_open_agent
14364 if test "$ac_res" != no; then
14365 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14367 else
14369 echo "Error! You need to have libopagent around."
14370 exit -1
14374 if test "${ac_cv_header_opagent_h+set}" = set; then
14375 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14376 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14377 if test "${ac_cv_header_opagent_h+set}" = set; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14380 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14381 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14382 else
14383 # Is the header compilable?
14384 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14385 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14386 cat >conftest.$ac_ext <<_ACEOF
14387 /* confdefs.h. */
14388 _ACEOF
14389 cat confdefs.h >>conftest.$ac_ext
14390 cat >>conftest.$ac_ext <<_ACEOF
14391 /* end confdefs.h. */
14392 $ac_includes_default
14393 #include <opagent.h>
14394 _ACEOF
14395 rm -f conftest.$ac_objext
14396 if { (ac_try="$ac_compile"
14397 case "(($ac_try" in
14398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14399 *) ac_try_echo=$ac_try;;
14400 esac
14401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14402 (eval "$ac_compile") 2>conftest.er1
14403 ac_status=$?
14404 grep -v '^ *+' conftest.er1 >conftest.err
14405 rm -f conftest.er1
14406 cat conftest.err >&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); } &&
14409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14410 { (case "(($ac_try" in
14411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412 *) ac_try_echo=$ac_try;;
14413 esac
14414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14415 (eval "$ac_try") 2>&5
14416 ac_status=$?
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; } &&
14419 { ac_try='test -s conftest.$ac_objext'
14420 { (case "(($ac_try" in
14421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14422 *) ac_try_echo=$ac_try;;
14423 esac
14424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14425 (eval "$ac_try") 2>&5
14426 ac_status=$?
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); }; }; then
14429 ac_header_compiler=yes
14430 else
14431 echo "$as_me: failed program was:" >&5
14432 sed 's/^/| /' conftest.$ac_ext >&5
14434 ac_header_compiler=no
14437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14438 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14439 echo "${ECHO_T}$ac_header_compiler" >&6; }
14441 # Is the header present?
14442 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14443 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14444 cat >conftest.$ac_ext <<_ACEOF
14445 /* confdefs.h. */
14446 _ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h. */
14450 #include <opagent.h>
14451 _ACEOF
14452 if { (ac_try="$ac_cpp conftest.$ac_ext"
14453 case "(($ac_try" in
14454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14455 *) ac_try_echo=$ac_try;;
14456 esac
14457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14459 ac_status=$?
14460 grep -v '^ *+' conftest.er1 >conftest.err
14461 rm -f conftest.er1
14462 cat conftest.err >&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); } >/dev/null; then
14465 if test -s conftest.err; then
14466 ac_cpp_err=$ac_c_preproc_warn_flag
14467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14468 else
14469 ac_cpp_err=
14471 else
14472 ac_cpp_err=yes
14474 if test -z "$ac_cpp_err"; then
14475 ac_header_preproc=yes
14476 else
14477 echo "$as_me: failed program was:" >&5
14478 sed 's/^/| /' conftest.$ac_ext >&5
14480 ac_header_preproc=no
14483 rm -f conftest.err conftest.$ac_ext
14484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14485 echo "${ECHO_T}$ac_header_preproc" >&6; }
14487 # So? What about this header?
14488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14489 yes:no: )
14490 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14491 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14492 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14493 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14494 ac_header_preproc=yes
14496 no:yes:* )
14497 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14498 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14499 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14500 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14501 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14502 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14503 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14504 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14505 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14506 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14507 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14508 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14509 ( cat <<\_ASBOX
14510 ## ----------------------------------- ##
14511 ## Report this to llvmbugs@cs.uiuc.edu ##
14512 ## ----------------------------------- ##
14513 _ASBOX
14514 ) | sed "s/^/$as_me: WARNING: /" >&2
14516 esac
14517 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14518 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14519 if test "${ac_cv_header_opagent_h+set}" = set; then
14520 echo $ECHO_N "(cached) $ECHO_C" >&6
14521 else
14522 ac_cv_header_opagent_h=$ac_header_preproc
14524 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14525 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14528 if test $ac_cv_header_opagent_h = yes; then
14530 else
14532 echo "Error! You need to have opagent.h around."
14533 exit -1
14540 else
14542 USE_OPROFILE=0
14548 cat >>confdefs.h <<_ACEOF
14549 #define USE_OPROFILE $USE_OPROFILE
14550 _ACEOF
14559 ac_header_dirent=no
14560 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14561 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14562 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14563 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14565 echo $ECHO_N "(cached) $ECHO_C" >&6
14566 else
14567 cat >conftest.$ac_ext <<_ACEOF
14568 /* confdefs.h. */
14569 _ACEOF
14570 cat confdefs.h >>conftest.$ac_ext
14571 cat >>conftest.$ac_ext <<_ACEOF
14572 /* end confdefs.h. */
14573 #include <sys/types.h>
14574 #include <$ac_hdr>
14577 main ()
14579 if ((DIR *) 0)
14580 return 0;
14582 return 0;
14584 _ACEOF
14585 rm -f conftest.$ac_objext
14586 if { (ac_try="$ac_compile"
14587 case "(($ac_try" in
14588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14589 *) ac_try_echo=$ac_try;;
14590 esac
14591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14592 (eval "$ac_compile") 2>conftest.er1
14593 ac_status=$?
14594 grep -v '^ *+' conftest.er1 >conftest.err
14595 rm -f conftest.er1
14596 cat conftest.err >&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); } &&
14599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14600 { (case "(($ac_try" in
14601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14602 *) ac_try_echo=$ac_try;;
14603 esac
14604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14605 (eval "$ac_try") 2>&5
14606 ac_status=$?
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); }; } &&
14609 { ac_try='test -s conftest.$ac_objext'
14610 { (case "(($ac_try" in
14611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612 *) ac_try_echo=$ac_try;;
14613 esac
14614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615 (eval "$ac_try") 2>&5
14616 ac_status=$?
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; }; then
14619 eval "$as_ac_Header=yes"
14620 else
14621 echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14624 eval "$as_ac_Header=no"
14627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14629 ac_res=`eval echo '${'$as_ac_Header'}'`
14630 { echo "$as_me:$LINENO: result: $ac_res" >&5
14631 echo "${ECHO_T}$ac_res" >&6; }
14632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14633 cat >>confdefs.h <<_ACEOF
14634 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14635 _ACEOF
14637 ac_header_dirent=$ac_hdr; break
14640 done
14641 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14642 if test $ac_header_dirent = dirent.h; then
14643 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14644 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14645 if test "${ac_cv_search_opendir+set}" = set; then
14646 echo $ECHO_N "(cached) $ECHO_C" >&6
14647 else
14648 ac_func_search_save_LIBS=$LIBS
14649 cat >conftest.$ac_ext <<_ACEOF
14650 /* confdefs.h. */
14651 _ACEOF
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h. */
14656 /* Override any GCC internal prototype to avoid an error.
14657 Use char because int might match the return type of a GCC
14658 builtin and then its argument prototype would still apply. */
14659 #ifdef __cplusplus
14660 extern "C"
14661 #endif
14662 char opendir ();
14664 main ()
14666 return opendir ();
14668 return 0;
14670 _ACEOF
14671 for ac_lib in '' dir; do
14672 if test -z "$ac_lib"; then
14673 ac_res="none required"
14674 else
14675 ac_res=-l$ac_lib
14676 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14678 rm -f conftest.$ac_objext conftest$ac_exeext
14679 if { (ac_try="$ac_link"
14680 case "(($ac_try" in
14681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14682 *) ac_try_echo=$ac_try;;
14683 esac
14684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14685 (eval "$ac_link") 2>conftest.er1
14686 ac_status=$?
14687 grep -v '^ *+' conftest.er1 >conftest.err
14688 rm -f conftest.er1
14689 cat conftest.err >&5
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); } &&
14692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14693 { (case "(($ac_try" in
14694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14695 *) ac_try_echo=$ac_try;;
14696 esac
14697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14698 (eval "$ac_try") 2>&5
14699 ac_status=$?
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); }; } &&
14702 { ac_try='test -s conftest$ac_exeext'
14703 { (case "(($ac_try" in
14704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14705 *) ac_try_echo=$ac_try;;
14706 esac
14707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14708 (eval "$ac_try") 2>&5
14709 ac_status=$?
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; }; then
14712 ac_cv_search_opendir=$ac_res
14713 else
14714 echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
14720 rm -f core conftest.err conftest.$ac_objext \
14721 conftest$ac_exeext
14722 if test "${ac_cv_search_opendir+set}" = set; then
14723 break
14725 done
14726 if test "${ac_cv_search_opendir+set}" = set; then
14728 else
14729 ac_cv_search_opendir=no
14731 rm conftest.$ac_ext
14732 LIBS=$ac_func_search_save_LIBS
14734 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14735 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14736 ac_res=$ac_cv_search_opendir
14737 if test "$ac_res" != no; then
14738 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14742 else
14743 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14744 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14745 if test "${ac_cv_search_opendir+set}" = set; then
14746 echo $ECHO_N "(cached) $ECHO_C" >&6
14747 else
14748 ac_func_search_save_LIBS=$LIBS
14749 cat >conftest.$ac_ext <<_ACEOF
14750 /* confdefs.h. */
14751 _ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h. */
14756 /* Override any GCC internal prototype to avoid an error.
14757 Use char because int might match the return type of a GCC
14758 builtin and then its argument prototype would still apply. */
14759 #ifdef __cplusplus
14760 extern "C"
14761 #endif
14762 char opendir ();
14764 main ()
14766 return opendir ();
14768 return 0;
14770 _ACEOF
14771 for ac_lib in '' x; do
14772 if test -z "$ac_lib"; then
14773 ac_res="none required"
14774 else
14775 ac_res=-l$ac_lib
14776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14778 rm -f conftest.$ac_objext conftest$ac_exeext
14779 if { (ac_try="$ac_link"
14780 case "(($ac_try" in
14781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14782 *) ac_try_echo=$ac_try;;
14783 esac
14784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14785 (eval "$ac_link") 2>conftest.er1
14786 ac_status=$?
14787 grep -v '^ *+' conftest.er1 >conftest.err
14788 rm -f conftest.er1
14789 cat conftest.err >&5
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); } &&
14792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14793 { (case "(($ac_try" in
14794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14795 *) ac_try_echo=$ac_try;;
14796 esac
14797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14798 (eval "$ac_try") 2>&5
14799 ac_status=$?
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); }; } &&
14802 { ac_try='test -s conftest$ac_exeext'
14803 { (case "(($ac_try" in
14804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14805 *) ac_try_echo=$ac_try;;
14806 esac
14807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14808 (eval "$ac_try") 2>&5
14809 ac_status=$?
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); }; }; then
14812 ac_cv_search_opendir=$ac_res
14813 else
14814 echo "$as_me: failed program was:" >&5
14815 sed 's/^/| /' conftest.$ac_ext >&5
14820 rm -f core conftest.err conftest.$ac_objext \
14821 conftest$ac_exeext
14822 if test "${ac_cv_search_opendir+set}" = set; then
14823 break
14825 done
14826 if test "${ac_cv_search_opendir+set}" = set; then
14828 else
14829 ac_cv_search_opendir=no
14831 rm conftest.$ac_ext
14832 LIBS=$ac_func_search_save_LIBS
14834 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14835 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14836 ac_res=$ac_cv_search_opendir
14837 if test "$ac_res" != no; then
14838 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14844 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14845 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14846 if test "${ac_cv_header_mmap_anon+set}" = set; then
14847 echo $ECHO_N "(cached) $ECHO_C" >&6
14848 else
14849 ac_ext=c
14850 ac_cpp='$CPP $CPPFLAGS'
14851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14855 cat >conftest.$ac_ext <<_ACEOF
14856 /* confdefs.h. */
14857 _ACEOF
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h. */
14861 #include <sys/mman.h>
14862 #include <unistd.h>
14863 #include <fcntl.h>
14865 main ()
14867 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14869 return 0;
14871 _ACEOF
14872 rm -f conftest.$ac_objext
14873 if { (ac_try="$ac_compile"
14874 case "(($ac_try" in
14875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876 *) ac_try_echo=$ac_try;;
14877 esac
14878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879 (eval "$ac_compile") 2>conftest.er1
14880 ac_status=$?
14881 grep -v '^ *+' conftest.er1 >conftest.err
14882 rm -f conftest.er1
14883 cat conftest.err >&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } &&
14886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14887 { (case "(($ac_try" in
14888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889 *) ac_try_echo=$ac_try;;
14890 esac
14891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14892 (eval "$ac_try") 2>&5
14893 ac_status=$?
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); }; } &&
14896 { ac_try='test -s conftest.$ac_objext'
14897 { (case "(($ac_try" in
14898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899 *) ac_try_echo=$ac_try;;
14900 esac
14901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14902 (eval "$ac_try") 2>&5
14903 ac_status=$?
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); }; }; then
14906 ac_cv_header_mmap_anon=yes
14907 else
14908 echo "$as_me: failed program was:" >&5
14909 sed 's/^/| /' conftest.$ac_ext >&5
14911 ac_cv_header_mmap_anon=no
14914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14915 ac_ext=c
14916 ac_cpp='$CPP $CPPFLAGS'
14917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14923 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14924 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14925 if test "$ac_cv_header_mmap_anon" = yes; then
14927 cat >>confdefs.h <<\_ACEOF
14928 #define HAVE_MMAP_ANONYMOUS 1
14929 _ACEOF
14933 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14934 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14935 if test "${ac_cv_header_stat_broken+set}" = set; then
14936 echo $ECHO_N "(cached) $ECHO_C" >&6
14937 else
14938 cat >conftest.$ac_ext <<_ACEOF
14939 /* confdefs.h. */
14940 _ACEOF
14941 cat confdefs.h >>conftest.$ac_ext
14942 cat >>conftest.$ac_ext <<_ACEOF
14943 /* end confdefs.h. */
14944 #include <sys/types.h>
14945 #include <sys/stat.h>
14947 #if defined S_ISBLK && defined S_IFDIR
14948 # if S_ISBLK (S_IFDIR)
14949 You lose.
14950 # endif
14951 #endif
14953 #if defined S_ISBLK && defined S_IFCHR
14954 # if S_ISBLK (S_IFCHR)
14955 You lose.
14956 # endif
14957 #endif
14959 #if defined S_ISLNK && defined S_IFREG
14960 # if S_ISLNK (S_IFREG)
14961 You lose.
14962 # endif
14963 #endif
14965 #if defined S_ISSOCK && defined S_IFREG
14966 # if S_ISSOCK (S_IFREG)
14967 You lose.
14968 # endif
14969 #endif
14971 _ACEOF
14972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14973 $EGREP "You lose" >/dev/null 2>&1; then
14974 ac_cv_header_stat_broken=yes
14975 else
14976 ac_cv_header_stat_broken=no
14978 rm -f conftest*
14981 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14982 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14983 if test $ac_cv_header_stat_broken = yes; then
14985 cat >>confdefs.h <<\_ACEOF
14986 #define STAT_MACROS_BROKEN 1
14987 _ACEOF
14991 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14992 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14993 if test "${ac_cv_header_stdc+set}" = set; then
14994 echo $ECHO_N "(cached) $ECHO_C" >&6
14995 else
14996 cat >conftest.$ac_ext <<_ACEOF
14997 /* confdefs.h. */
14998 _ACEOF
14999 cat confdefs.h >>conftest.$ac_ext
15000 cat >>conftest.$ac_ext <<_ACEOF
15001 /* end confdefs.h. */
15002 #include <stdlib.h>
15003 #include <stdarg.h>
15004 #include <string.h>
15005 #include <float.h>
15008 main ()
15012 return 0;
15014 _ACEOF
15015 rm -f conftest.$ac_objext
15016 if { (ac_try="$ac_compile"
15017 case "(($ac_try" in
15018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15019 *) ac_try_echo=$ac_try;;
15020 esac
15021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15022 (eval "$ac_compile") 2>conftest.er1
15023 ac_status=$?
15024 grep -v '^ *+' conftest.er1 >conftest.err
15025 rm -f conftest.er1
15026 cat conftest.err >&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } &&
15029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15030 { (case "(($ac_try" in
15031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15032 *) ac_try_echo=$ac_try;;
15033 esac
15034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15035 (eval "$ac_try") 2>&5
15036 ac_status=$?
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); }; } &&
15039 { ac_try='test -s conftest.$ac_objext'
15040 { (case "(($ac_try" in
15041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15042 *) ac_try_echo=$ac_try;;
15043 esac
15044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15045 (eval "$ac_try") 2>&5
15046 ac_status=$?
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); }; }; then
15049 ac_cv_header_stdc=yes
15050 else
15051 echo "$as_me: failed program was:" >&5
15052 sed 's/^/| /' conftest.$ac_ext >&5
15054 ac_cv_header_stdc=no
15057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15059 if test $ac_cv_header_stdc = yes; then
15060 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15061 cat >conftest.$ac_ext <<_ACEOF
15062 /* confdefs.h. */
15063 _ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h. */
15067 #include <string.h>
15069 _ACEOF
15070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15071 $EGREP "memchr" >/dev/null 2>&1; then
15073 else
15074 ac_cv_header_stdc=no
15076 rm -f conftest*
15080 if test $ac_cv_header_stdc = yes; then
15081 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15082 cat >conftest.$ac_ext <<_ACEOF
15083 /* confdefs.h. */
15084 _ACEOF
15085 cat confdefs.h >>conftest.$ac_ext
15086 cat >>conftest.$ac_ext <<_ACEOF
15087 /* end confdefs.h. */
15088 #include <stdlib.h>
15090 _ACEOF
15091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15092 $EGREP "free" >/dev/null 2>&1; then
15094 else
15095 ac_cv_header_stdc=no
15097 rm -f conftest*
15101 if test $ac_cv_header_stdc = yes; then
15102 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15103 if test "$cross_compiling" = yes; then
15105 else
15106 cat >conftest.$ac_ext <<_ACEOF
15107 /* confdefs.h. */
15108 _ACEOF
15109 cat confdefs.h >>conftest.$ac_ext
15110 cat >>conftest.$ac_ext <<_ACEOF
15111 /* end confdefs.h. */
15112 #include <ctype.h>
15113 #include <stdlib.h>
15114 #if ((' ' & 0x0FF) == 0x020)
15115 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15116 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15117 #else
15118 # define ISLOWER(c) \
15119 (('a' <= (c) && (c) <= 'i') \
15120 || ('j' <= (c) && (c) <= 'r') \
15121 || ('s' <= (c) && (c) <= 'z'))
15122 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15123 #endif
15125 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15127 main ()
15129 int i;
15130 for (i = 0; i < 256; i++)
15131 if (XOR (islower (i), ISLOWER (i))
15132 || toupper (i) != TOUPPER (i))
15133 return 2;
15134 return 0;
15136 _ACEOF
15137 rm -f conftest$ac_exeext
15138 if { (ac_try="$ac_link"
15139 case "(($ac_try" in
15140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15142 esac
15143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144 (eval "$ac_link") 2>&5
15145 ac_status=$?
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15148 { (case "(($ac_try" in
15149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15150 *) ac_try_echo=$ac_try;;
15151 esac
15152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15153 (eval "$ac_try") 2>&5
15154 ac_status=$?
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); }; }; then
15158 else
15159 echo "$as_me: program exited with status $ac_status" >&5
15160 echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15163 ( exit $ac_status )
15164 ac_cv_header_stdc=no
15166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15172 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15173 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15174 if test $ac_cv_header_stdc = yes; then
15176 cat >>confdefs.h <<\_ACEOF
15177 #define STDC_HEADERS 1
15178 _ACEOF
15182 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15183 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15184 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
15186 else
15187 cat >conftest.$ac_ext <<_ACEOF
15188 /* confdefs.h. */
15189 _ACEOF
15190 cat confdefs.h >>conftest.$ac_ext
15191 cat >>conftest.$ac_ext <<_ACEOF
15192 /* end confdefs.h. */
15193 #include <sys/types.h>
15194 #include <sys/wait.h>
15195 #ifndef WEXITSTATUS
15196 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15197 #endif
15198 #ifndef WIFEXITED
15199 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15200 #endif
15203 main ()
15205 int s;
15206 wait (&s);
15207 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15209 return 0;
15211 _ACEOF
15212 rm -f conftest.$ac_objext
15213 if { (ac_try="$ac_compile"
15214 case "(($ac_try" in
15215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15216 *) ac_try_echo=$ac_try;;
15217 esac
15218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15219 (eval "$ac_compile") 2>conftest.er1
15220 ac_status=$?
15221 grep -v '^ *+' conftest.er1 >conftest.err
15222 rm -f conftest.er1
15223 cat conftest.err >&5
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); } &&
15226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15227 { (case "(($ac_try" in
15228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15229 *) ac_try_echo=$ac_try;;
15230 esac
15231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15232 (eval "$ac_try") 2>&5
15233 ac_status=$?
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); }; } &&
15236 { ac_try='test -s conftest.$ac_objext'
15237 { (case "(($ac_try" in
15238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15239 *) ac_try_echo=$ac_try;;
15240 esac
15241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15242 (eval "$ac_try") 2>&5
15243 ac_status=$?
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; }; then
15246 ac_cv_header_sys_wait_h=yes
15247 else
15248 echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.$ac_ext >&5
15251 ac_cv_header_sys_wait_h=no
15254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15256 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15257 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15258 if test $ac_cv_header_sys_wait_h = yes; then
15260 cat >>confdefs.h <<\_ACEOF
15261 #define HAVE_SYS_WAIT_H 1
15262 _ACEOF
15266 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15267 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15268 if test "${ac_cv_header_time+set}" = set; then
15269 echo $ECHO_N "(cached) $ECHO_C" >&6
15270 else
15271 cat >conftest.$ac_ext <<_ACEOF
15272 /* confdefs.h. */
15273 _ACEOF
15274 cat confdefs.h >>conftest.$ac_ext
15275 cat >>conftest.$ac_ext <<_ACEOF
15276 /* end confdefs.h. */
15277 #include <sys/types.h>
15278 #include <sys/time.h>
15279 #include <time.h>
15282 main ()
15284 if ((struct tm *) 0)
15285 return 0;
15287 return 0;
15289 _ACEOF
15290 rm -f conftest.$ac_objext
15291 if { (ac_try="$ac_compile"
15292 case "(($ac_try" in
15293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15294 *) ac_try_echo=$ac_try;;
15295 esac
15296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15297 (eval "$ac_compile") 2>conftest.er1
15298 ac_status=$?
15299 grep -v '^ *+' conftest.er1 >conftest.err
15300 rm -f conftest.er1
15301 cat conftest.err >&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); } &&
15304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15305 { (case "(($ac_try" in
15306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15307 *) ac_try_echo=$ac_try;;
15308 esac
15309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15310 (eval "$ac_try") 2>&5
15311 ac_status=$?
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; } &&
15314 { ac_try='test -s conftest.$ac_objext'
15315 { (case "(($ac_try" in
15316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15317 *) ac_try_echo=$ac_try;;
15318 esac
15319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15320 (eval "$ac_try") 2>&5
15321 ac_status=$?
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; }; then
15324 ac_cv_header_time=yes
15325 else
15326 echo "$as_me: failed program was:" >&5
15327 sed 's/^/| /' conftest.$ac_ext >&5
15329 ac_cv_header_time=no
15332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15334 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15335 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15336 if test $ac_cv_header_time = yes; then
15338 cat >>confdefs.h <<\_ACEOF
15339 #define TIME_WITH_SYS_TIME 1
15340 _ACEOF
15351 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15358 echo $ECHO_N "(cached) $ECHO_C" >&6
15360 ac_res=`eval echo '${'$as_ac_Header'}'`
15361 { echo "$as_me:$LINENO: result: $ac_res" >&5
15362 echo "${ECHO_T}$ac_res" >&6; }
15363 else
15364 # Is the header compilable?
15365 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15367 cat >conftest.$ac_ext <<_ACEOF
15368 /* confdefs.h. */
15369 _ACEOF
15370 cat confdefs.h >>conftest.$ac_ext
15371 cat >>conftest.$ac_ext <<_ACEOF
15372 /* end confdefs.h. */
15373 $ac_includes_default
15374 #include <$ac_header>
15375 _ACEOF
15376 rm -f conftest.$ac_objext
15377 if { (ac_try="$ac_compile"
15378 case "(($ac_try" in
15379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15380 *) ac_try_echo=$ac_try;;
15381 esac
15382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15383 (eval "$ac_compile") 2>conftest.er1
15384 ac_status=$?
15385 grep -v '^ *+' conftest.er1 >conftest.err
15386 rm -f conftest.er1
15387 cat conftest.err >&5
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); } &&
15390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15391 { (case "(($ac_try" in
15392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393 *) ac_try_echo=$ac_try;;
15394 esac
15395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15396 (eval "$ac_try") 2>&5
15397 ac_status=$?
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); }; } &&
15400 { ac_try='test -s conftest.$ac_objext'
15401 { (case "(($ac_try" in
15402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15403 *) ac_try_echo=$ac_try;;
15404 esac
15405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15406 (eval "$ac_try") 2>&5
15407 ac_status=$?
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); }; }; then
15410 ac_header_compiler=yes
15411 else
15412 echo "$as_me: failed program was:" >&5
15413 sed 's/^/| /' conftest.$ac_ext >&5
15415 ac_header_compiler=no
15418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15420 echo "${ECHO_T}$ac_header_compiler" >&6; }
15422 # Is the header present?
15423 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15425 cat >conftest.$ac_ext <<_ACEOF
15426 /* confdefs.h. */
15427 _ACEOF
15428 cat confdefs.h >>conftest.$ac_ext
15429 cat >>conftest.$ac_ext <<_ACEOF
15430 /* end confdefs.h. */
15431 #include <$ac_header>
15432 _ACEOF
15433 if { (ac_try="$ac_cpp conftest.$ac_ext"
15434 case "(($ac_try" in
15435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436 *) ac_try_echo=$ac_try;;
15437 esac
15438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15440 ac_status=$?
15441 grep -v '^ *+' conftest.er1 >conftest.err
15442 rm -f conftest.er1
15443 cat conftest.err >&5
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); } >/dev/null; then
15446 if test -s conftest.err; then
15447 ac_cpp_err=$ac_c_preproc_warn_flag
15448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15449 else
15450 ac_cpp_err=
15452 else
15453 ac_cpp_err=yes
15455 if test -z "$ac_cpp_err"; then
15456 ac_header_preproc=yes
15457 else
15458 echo "$as_me: failed program was:" >&5
15459 sed 's/^/| /' conftest.$ac_ext >&5
15461 ac_header_preproc=no
15464 rm -f conftest.err conftest.$ac_ext
15465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15466 echo "${ECHO_T}$ac_header_preproc" >&6; }
15468 # So? What about this header?
15469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15470 yes:no: )
15471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15475 ac_header_preproc=yes
15477 no:yes:* )
15478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15481 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15485 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15490 ( cat <<\_ASBOX
15491 ## ----------------------------------- ##
15492 ## Report this to llvmbugs@cs.uiuc.edu ##
15493 ## ----------------------------------- ##
15494 _ASBOX
15495 ) | sed "s/^/$as_me: WARNING: /" >&2
15497 esac
15498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15501 echo $ECHO_N "(cached) $ECHO_C" >&6
15502 else
15503 eval "$as_ac_Header=\$ac_header_preproc"
15505 ac_res=`eval echo '${'$as_ac_Header'}'`
15506 { echo "$as_me:$LINENO: result: $ac_res" >&5
15507 echo "${ECHO_T}$ac_res" >&6; }
15510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15511 cat >>confdefs.h <<_ACEOF
15512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15513 _ACEOF
15517 done
15525 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15529 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15532 echo $ECHO_N "(cached) $ECHO_C" >&6
15534 ac_res=`eval echo '${'$as_ac_Header'}'`
15535 { echo "$as_me:$LINENO: result: $ac_res" >&5
15536 echo "${ECHO_T}$ac_res" >&6; }
15537 else
15538 # Is the header compilable?
15539 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15540 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15541 cat >conftest.$ac_ext <<_ACEOF
15542 /* confdefs.h. */
15543 _ACEOF
15544 cat confdefs.h >>conftest.$ac_ext
15545 cat >>conftest.$ac_ext <<_ACEOF
15546 /* end confdefs.h. */
15547 $ac_includes_default
15548 #include <$ac_header>
15549 _ACEOF
15550 rm -f conftest.$ac_objext
15551 if { (ac_try="$ac_compile"
15552 case "(($ac_try" in
15553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15555 esac
15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557 (eval "$ac_compile") 2>conftest.er1
15558 ac_status=$?
15559 grep -v '^ *+' conftest.er1 >conftest.err
15560 rm -f conftest.er1
15561 cat conftest.err >&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } &&
15564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15565 { (case "(($ac_try" in
15566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15567 *) ac_try_echo=$ac_try;;
15568 esac
15569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15570 (eval "$ac_try") 2>&5
15571 ac_status=$?
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; } &&
15574 { ac_try='test -s conftest.$ac_objext'
15575 { (case "(($ac_try" in
15576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577 *) ac_try_echo=$ac_try;;
15578 esac
15579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580 (eval "$ac_try") 2>&5
15581 ac_status=$?
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; }; then
15584 ac_header_compiler=yes
15585 else
15586 echo "$as_me: failed program was:" >&5
15587 sed 's/^/| /' conftest.$ac_ext >&5
15589 ac_header_compiler=no
15592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15593 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15594 echo "${ECHO_T}$ac_header_compiler" >&6; }
15596 # Is the header present?
15597 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15598 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15599 cat >conftest.$ac_ext <<_ACEOF
15600 /* confdefs.h. */
15601 _ACEOF
15602 cat confdefs.h >>conftest.$ac_ext
15603 cat >>conftest.$ac_ext <<_ACEOF
15604 /* end confdefs.h. */
15605 #include <$ac_header>
15606 _ACEOF
15607 if { (ac_try="$ac_cpp conftest.$ac_ext"
15608 case "(($ac_try" in
15609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610 *) ac_try_echo=$ac_try;;
15611 esac
15612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15614 ac_status=$?
15615 grep -v '^ *+' conftest.er1 >conftest.err
15616 rm -f conftest.er1
15617 cat conftest.err >&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); } >/dev/null; then
15620 if test -s conftest.err; then
15621 ac_cpp_err=$ac_c_preproc_warn_flag
15622 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15623 else
15624 ac_cpp_err=
15626 else
15627 ac_cpp_err=yes
15629 if test -z "$ac_cpp_err"; then
15630 ac_header_preproc=yes
15631 else
15632 echo "$as_me: failed program was:" >&5
15633 sed 's/^/| /' conftest.$ac_ext >&5
15635 ac_header_preproc=no
15638 rm -f conftest.err conftest.$ac_ext
15639 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15640 echo "${ECHO_T}$ac_header_preproc" >&6; }
15642 # So? What about this header?
15643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15644 yes:no: )
15645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15649 ac_header_preproc=yes
15651 no:yes:* )
15652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15664 ( cat <<\_ASBOX
15665 ## ----------------------------------- ##
15666 ## Report this to llvmbugs@cs.uiuc.edu ##
15667 ## ----------------------------------- ##
15668 _ASBOX
15669 ) | sed "s/^/$as_me: WARNING: /" >&2
15671 esac
15672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15675 echo $ECHO_N "(cached) $ECHO_C" >&6
15676 else
15677 eval "$as_ac_Header=\$ac_header_preproc"
15679 ac_res=`eval echo '${'$as_ac_Header'}'`
15680 { echo "$as_me:$LINENO: result: $ac_res" >&5
15681 echo "${ECHO_T}$ac_res" >&6; }
15684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15685 cat >>confdefs.h <<_ACEOF
15686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15687 _ACEOF
15691 done
15695 for ac_header in utime.h windows.h
15697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15702 echo $ECHO_N "(cached) $ECHO_C" >&6
15704 ac_res=`eval echo '${'$as_ac_Header'}'`
15705 { echo "$as_me:$LINENO: result: $ac_res" >&5
15706 echo "${ECHO_T}$ac_res" >&6; }
15707 else
15708 # Is the header compilable?
15709 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15711 cat >conftest.$ac_ext <<_ACEOF
15712 /* confdefs.h. */
15713 _ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h. */
15717 $ac_includes_default
15718 #include <$ac_header>
15719 _ACEOF
15720 rm -f conftest.$ac_objext
15721 if { (ac_try="$ac_compile"
15722 case "(($ac_try" in
15723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15724 *) ac_try_echo=$ac_try;;
15725 esac
15726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15727 (eval "$ac_compile") 2>conftest.er1
15728 ac_status=$?
15729 grep -v '^ *+' conftest.er1 >conftest.err
15730 rm -f conftest.er1
15731 cat conftest.err >&5
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } &&
15734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15735 { (case "(($ac_try" in
15736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15737 *) ac_try_echo=$ac_try;;
15738 esac
15739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15740 (eval "$ac_try") 2>&5
15741 ac_status=$?
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; } &&
15744 { ac_try='test -s conftest.$ac_objext'
15745 { (case "(($ac_try" in
15746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747 *) ac_try_echo=$ac_try;;
15748 esac
15749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15750 (eval "$ac_try") 2>&5
15751 ac_status=$?
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; }; then
15754 ac_header_compiler=yes
15755 else
15756 echo "$as_me: failed program was:" >&5
15757 sed 's/^/| /' conftest.$ac_ext >&5
15759 ac_header_compiler=no
15762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15764 echo "${ECHO_T}$ac_header_compiler" >&6; }
15766 # Is the header present?
15767 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15769 cat >conftest.$ac_ext <<_ACEOF
15770 /* confdefs.h. */
15771 _ACEOF
15772 cat confdefs.h >>conftest.$ac_ext
15773 cat >>conftest.$ac_ext <<_ACEOF
15774 /* end confdefs.h. */
15775 #include <$ac_header>
15776 _ACEOF
15777 if { (ac_try="$ac_cpp conftest.$ac_ext"
15778 case "(($ac_try" in
15779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15780 *) ac_try_echo=$ac_try;;
15781 esac
15782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15784 ac_status=$?
15785 grep -v '^ *+' conftest.er1 >conftest.err
15786 rm -f conftest.er1
15787 cat conftest.err >&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } >/dev/null; then
15790 if test -s conftest.err; then
15791 ac_cpp_err=$ac_c_preproc_warn_flag
15792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15793 else
15794 ac_cpp_err=
15796 else
15797 ac_cpp_err=yes
15799 if test -z "$ac_cpp_err"; then
15800 ac_header_preproc=yes
15801 else
15802 echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15805 ac_header_preproc=no
15808 rm -f conftest.err conftest.$ac_ext
15809 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15810 echo "${ECHO_T}$ac_header_preproc" >&6; }
15812 # So? What about this header?
15813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15814 yes:no: )
15815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15819 ac_header_preproc=yes
15821 no:yes:* )
15822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15825 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15829 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15834 ( cat <<\_ASBOX
15835 ## ----------------------------------- ##
15836 ## Report this to llvmbugs@cs.uiuc.edu ##
15837 ## ----------------------------------- ##
15838 _ASBOX
15839 ) | sed "s/^/$as_me: WARNING: /" >&2
15841 esac
15842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15845 echo $ECHO_N "(cached) $ECHO_C" >&6
15846 else
15847 eval "$as_ac_Header=\$ac_header_preproc"
15849 ac_res=`eval echo '${'$as_ac_Header'}'`
15850 { echo "$as_me:$LINENO: result: $ac_res" >&5
15851 echo "${ECHO_T}$ac_res" >&6; }
15854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15855 cat >>confdefs.h <<_ACEOF
15856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15857 _ACEOF
15861 done
15867 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15869 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15874 echo $ECHO_N "(cached) $ECHO_C" >&6
15876 ac_res=`eval echo '${'$as_ac_Header'}'`
15877 { echo "$as_me:$LINENO: result: $ac_res" >&5
15878 echo "${ECHO_T}$ac_res" >&6; }
15879 else
15880 # Is the header compilable?
15881 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15883 cat >conftest.$ac_ext <<_ACEOF
15884 /* confdefs.h. */
15885 _ACEOF
15886 cat confdefs.h >>conftest.$ac_ext
15887 cat >>conftest.$ac_ext <<_ACEOF
15888 /* end confdefs.h. */
15889 $ac_includes_default
15890 #include <$ac_header>
15891 _ACEOF
15892 rm -f conftest.$ac_objext
15893 if { (ac_try="$ac_compile"
15894 case "(($ac_try" in
15895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15896 *) ac_try_echo=$ac_try;;
15897 esac
15898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15899 (eval "$ac_compile") 2>conftest.er1
15900 ac_status=$?
15901 grep -v '^ *+' conftest.er1 >conftest.err
15902 rm -f conftest.er1
15903 cat conftest.err >&5
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); } &&
15906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15907 { (case "(($ac_try" in
15908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15909 *) ac_try_echo=$ac_try;;
15910 esac
15911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15912 (eval "$ac_try") 2>&5
15913 ac_status=$?
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); }; } &&
15916 { ac_try='test -s conftest.$ac_objext'
15917 { (case "(($ac_try" in
15918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15919 *) ac_try_echo=$ac_try;;
15920 esac
15921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15922 (eval "$ac_try") 2>&5
15923 ac_status=$?
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); }; }; then
15926 ac_header_compiler=yes
15927 else
15928 echo "$as_me: failed program was:" >&5
15929 sed 's/^/| /' conftest.$ac_ext >&5
15931 ac_header_compiler=no
15934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15935 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15936 echo "${ECHO_T}$ac_header_compiler" >&6; }
15938 # Is the header present?
15939 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15941 cat >conftest.$ac_ext <<_ACEOF
15942 /* confdefs.h. */
15943 _ACEOF
15944 cat confdefs.h >>conftest.$ac_ext
15945 cat >>conftest.$ac_ext <<_ACEOF
15946 /* end confdefs.h. */
15947 #include <$ac_header>
15948 _ACEOF
15949 if { (ac_try="$ac_cpp conftest.$ac_ext"
15950 case "(($ac_try" in
15951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952 *) ac_try_echo=$ac_try;;
15953 esac
15954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15956 ac_status=$?
15957 grep -v '^ *+' conftest.er1 >conftest.err
15958 rm -f conftest.er1
15959 cat conftest.err >&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); } >/dev/null; then
15962 if test -s conftest.err; then
15963 ac_cpp_err=$ac_c_preproc_warn_flag
15964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15965 else
15966 ac_cpp_err=
15968 else
15969 ac_cpp_err=yes
15971 if test -z "$ac_cpp_err"; then
15972 ac_header_preproc=yes
15973 else
15974 echo "$as_me: failed program was:" >&5
15975 sed 's/^/| /' conftest.$ac_ext >&5
15977 ac_header_preproc=no
15980 rm -f conftest.err conftest.$ac_ext
15981 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15982 echo "${ECHO_T}$ac_header_preproc" >&6; }
15984 # So? What about this header?
15985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15986 yes:no: )
15987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15991 ac_header_preproc=yes
15993 no:yes:* )
15994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15997 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16001 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16006 ( cat <<\_ASBOX
16007 ## ----------------------------------- ##
16008 ## Report this to llvmbugs@cs.uiuc.edu ##
16009 ## ----------------------------------- ##
16010 _ASBOX
16011 ) | sed "s/^/$as_me: WARNING: /" >&2
16013 esac
16014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16017 echo $ECHO_N "(cached) $ECHO_C" >&6
16018 else
16019 eval "$as_ac_Header=\$ac_header_preproc"
16021 ac_res=`eval echo '${'$as_ac_Header'}'`
16022 { echo "$as_me:$LINENO: result: $ac_res" >&5
16023 echo "${ECHO_T}$ac_res" >&6; }
16026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16027 cat >>confdefs.h <<_ACEOF
16028 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16029 _ACEOF
16033 done
16039 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16043 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16046 echo $ECHO_N "(cached) $ECHO_C" >&6
16048 ac_res=`eval echo '${'$as_ac_Header'}'`
16049 { echo "$as_me:$LINENO: result: $ac_res" >&5
16050 echo "${ECHO_T}$ac_res" >&6; }
16051 else
16052 # Is the header compilable?
16053 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16054 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16055 cat >conftest.$ac_ext <<_ACEOF
16056 /* confdefs.h. */
16057 _ACEOF
16058 cat confdefs.h >>conftest.$ac_ext
16059 cat >>conftest.$ac_ext <<_ACEOF
16060 /* end confdefs.h. */
16061 $ac_includes_default
16062 #include <$ac_header>
16063 _ACEOF
16064 rm -f conftest.$ac_objext
16065 if { (ac_try="$ac_compile"
16066 case "(($ac_try" in
16067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16068 *) ac_try_echo=$ac_try;;
16069 esac
16070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16071 (eval "$ac_compile") 2>conftest.er1
16072 ac_status=$?
16073 grep -v '^ *+' conftest.er1 >conftest.err
16074 rm -f conftest.er1
16075 cat conftest.err >&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); } &&
16078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16079 { (case "(($ac_try" in
16080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16081 *) ac_try_echo=$ac_try;;
16082 esac
16083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16084 (eval "$ac_try") 2>&5
16085 ac_status=$?
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); }; } &&
16088 { ac_try='test -s conftest.$ac_objext'
16089 { (case "(($ac_try" in
16090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091 *) ac_try_echo=$ac_try;;
16092 esac
16093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094 (eval "$ac_try") 2>&5
16095 ac_status=$?
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; }; then
16098 ac_header_compiler=yes
16099 else
16100 echo "$as_me: failed program was:" >&5
16101 sed 's/^/| /' conftest.$ac_ext >&5
16103 ac_header_compiler=no
16106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16107 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16108 echo "${ECHO_T}$ac_header_compiler" >&6; }
16110 # Is the header present?
16111 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16113 cat >conftest.$ac_ext <<_ACEOF
16114 /* confdefs.h. */
16115 _ACEOF
16116 cat confdefs.h >>conftest.$ac_ext
16117 cat >>conftest.$ac_ext <<_ACEOF
16118 /* end confdefs.h. */
16119 #include <$ac_header>
16120 _ACEOF
16121 if { (ac_try="$ac_cpp conftest.$ac_ext"
16122 case "(($ac_try" in
16123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124 *) ac_try_echo=$ac_try;;
16125 esac
16126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16128 ac_status=$?
16129 grep -v '^ *+' conftest.er1 >conftest.err
16130 rm -f conftest.er1
16131 cat conftest.err >&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); } >/dev/null; then
16134 if test -s conftest.err; then
16135 ac_cpp_err=$ac_c_preproc_warn_flag
16136 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16137 else
16138 ac_cpp_err=
16140 else
16141 ac_cpp_err=yes
16143 if test -z "$ac_cpp_err"; then
16144 ac_header_preproc=yes
16145 else
16146 echo "$as_me: failed program was:" >&5
16147 sed 's/^/| /' conftest.$ac_ext >&5
16149 ac_header_preproc=no
16152 rm -f conftest.err conftest.$ac_ext
16153 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16154 echo "${ECHO_T}$ac_header_preproc" >&6; }
16156 # So? What about this header?
16157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16158 yes:no: )
16159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16162 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16163 ac_header_preproc=yes
16165 no:yes:* )
16166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16171 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16173 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16177 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16178 ( cat <<\_ASBOX
16179 ## ----------------------------------- ##
16180 ## Report this to llvmbugs@cs.uiuc.edu ##
16181 ## ----------------------------------- ##
16182 _ASBOX
16183 ) | sed "s/^/$as_me: WARNING: /" >&2
16185 esac
16186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16189 echo $ECHO_N "(cached) $ECHO_C" >&6
16190 else
16191 eval "$as_ac_Header=\$ac_header_preproc"
16193 ac_res=`eval echo '${'$as_ac_Header'}'`
16194 { echo "$as_me:$LINENO: result: $ac_res" >&5
16195 echo "${ECHO_T}$ac_res" >&6; }
16198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16199 cat >>confdefs.h <<_ACEOF
16200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16201 _ACEOF
16205 done
16208 for ac_header in valgrind/valgrind.h
16210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16215 echo $ECHO_N "(cached) $ECHO_C" >&6
16217 ac_res=`eval echo '${'$as_ac_Header'}'`
16218 { echo "$as_me:$LINENO: result: $ac_res" >&5
16219 echo "${ECHO_T}$ac_res" >&6; }
16220 else
16221 # Is the header compilable?
16222 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16224 cat >conftest.$ac_ext <<_ACEOF
16225 /* confdefs.h. */
16226 _ACEOF
16227 cat confdefs.h >>conftest.$ac_ext
16228 cat >>conftest.$ac_ext <<_ACEOF
16229 /* end confdefs.h. */
16230 $ac_includes_default
16231 #include <$ac_header>
16232 _ACEOF
16233 rm -f conftest.$ac_objext
16234 if { (ac_try="$ac_compile"
16235 case "(($ac_try" in
16236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16237 *) ac_try_echo=$ac_try;;
16238 esac
16239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16240 (eval "$ac_compile") 2>conftest.er1
16241 ac_status=$?
16242 grep -v '^ *+' conftest.er1 >conftest.err
16243 rm -f conftest.er1
16244 cat conftest.err >&5
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); } &&
16247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16248 { (case "(($ac_try" in
16249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16250 *) ac_try_echo=$ac_try;;
16251 esac
16252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16253 (eval "$ac_try") 2>&5
16254 ac_status=$?
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; } &&
16257 { ac_try='test -s conftest.$ac_objext'
16258 { (case "(($ac_try" in
16259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16260 *) ac_try_echo=$ac_try;;
16261 esac
16262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16263 (eval "$ac_try") 2>&5
16264 ac_status=$?
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); }; }; then
16267 ac_header_compiler=yes
16268 else
16269 echo "$as_me: failed program was:" >&5
16270 sed 's/^/| /' conftest.$ac_ext >&5
16272 ac_header_compiler=no
16275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16277 echo "${ECHO_T}$ac_header_compiler" >&6; }
16279 # Is the header present?
16280 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16282 cat >conftest.$ac_ext <<_ACEOF
16283 /* confdefs.h. */
16284 _ACEOF
16285 cat confdefs.h >>conftest.$ac_ext
16286 cat >>conftest.$ac_ext <<_ACEOF
16287 /* end confdefs.h. */
16288 #include <$ac_header>
16289 _ACEOF
16290 if { (ac_try="$ac_cpp conftest.$ac_ext"
16291 case "(($ac_try" in
16292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16293 *) ac_try_echo=$ac_try;;
16294 esac
16295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16297 ac_status=$?
16298 grep -v '^ *+' conftest.er1 >conftest.err
16299 rm -f conftest.er1
16300 cat conftest.err >&5
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); } >/dev/null; then
16303 if test -s conftest.err; then
16304 ac_cpp_err=$ac_c_preproc_warn_flag
16305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16306 else
16307 ac_cpp_err=
16309 else
16310 ac_cpp_err=yes
16312 if test -z "$ac_cpp_err"; then
16313 ac_header_preproc=yes
16314 else
16315 echo "$as_me: failed program was:" >&5
16316 sed 's/^/| /' conftest.$ac_ext >&5
16318 ac_header_preproc=no
16321 rm -f conftest.err conftest.$ac_ext
16322 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16323 echo "${ECHO_T}$ac_header_preproc" >&6; }
16325 # So? What about this header?
16326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16327 yes:no: )
16328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16331 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16332 ac_header_preproc=yes
16334 no:yes:* )
16335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16339 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16340 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16341 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16342 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16345 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16346 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16347 ( cat <<\_ASBOX
16348 ## ----------------------------------- ##
16349 ## Report this to llvmbugs@cs.uiuc.edu ##
16350 ## ----------------------------------- ##
16351 _ASBOX
16352 ) | sed "s/^/$as_me: WARNING: /" >&2
16354 esac
16355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16358 echo $ECHO_N "(cached) $ECHO_C" >&6
16359 else
16360 eval "$as_ac_Header=\$ac_header_preproc"
16362 ac_res=`eval echo '${'$as_ac_Header'}'`
16363 { echo "$as_me:$LINENO: result: $ac_res" >&5
16364 echo "${ECHO_T}$ac_res" >&6; }
16367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16368 cat >>confdefs.h <<_ACEOF
16369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16370 _ACEOF
16374 done
16376 if test "$ENABLE_THREADS" -eq 1 ; then
16378 for ac_header in pthread.h
16380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16385 echo $ECHO_N "(cached) $ECHO_C" >&6
16387 ac_res=`eval echo '${'$as_ac_Header'}'`
16388 { echo "$as_me:$LINENO: result: $ac_res" >&5
16389 echo "${ECHO_T}$ac_res" >&6; }
16390 else
16391 # Is the header compilable?
16392 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16394 cat >conftest.$ac_ext <<_ACEOF
16395 /* confdefs.h. */
16396 _ACEOF
16397 cat confdefs.h >>conftest.$ac_ext
16398 cat >>conftest.$ac_ext <<_ACEOF
16399 /* end confdefs.h. */
16400 $ac_includes_default
16401 #include <$ac_header>
16402 _ACEOF
16403 rm -f conftest.$ac_objext
16404 if { (ac_try="$ac_compile"
16405 case "(($ac_try" in
16406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16407 *) ac_try_echo=$ac_try;;
16408 esac
16409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16410 (eval "$ac_compile") 2>conftest.er1
16411 ac_status=$?
16412 grep -v '^ *+' conftest.er1 >conftest.err
16413 rm -f conftest.er1
16414 cat conftest.err >&5
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); } &&
16417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16418 { (case "(($ac_try" in
16419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16420 *) ac_try_echo=$ac_try;;
16421 esac
16422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16423 (eval "$ac_try") 2>&5
16424 ac_status=$?
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); }; } &&
16427 { ac_try='test -s conftest.$ac_objext'
16428 { (case "(($ac_try" in
16429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16430 *) ac_try_echo=$ac_try;;
16431 esac
16432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16433 (eval "$ac_try") 2>&5
16434 ac_status=$?
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); }; }; then
16437 ac_header_compiler=yes
16438 else
16439 echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.$ac_ext >&5
16442 ac_header_compiler=no
16445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16446 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16447 echo "${ECHO_T}$ac_header_compiler" >&6; }
16449 # Is the header present?
16450 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16452 cat >conftest.$ac_ext <<_ACEOF
16453 /* confdefs.h. */
16454 _ACEOF
16455 cat confdefs.h >>conftest.$ac_ext
16456 cat >>conftest.$ac_ext <<_ACEOF
16457 /* end confdefs.h. */
16458 #include <$ac_header>
16459 _ACEOF
16460 if { (ac_try="$ac_cpp conftest.$ac_ext"
16461 case "(($ac_try" in
16462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16463 *) ac_try_echo=$ac_try;;
16464 esac
16465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16467 ac_status=$?
16468 grep -v '^ *+' conftest.er1 >conftest.err
16469 rm -f conftest.er1
16470 cat conftest.err >&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); } >/dev/null; then
16473 if test -s conftest.err; then
16474 ac_cpp_err=$ac_c_preproc_warn_flag
16475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16476 else
16477 ac_cpp_err=
16479 else
16480 ac_cpp_err=yes
16482 if test -z "$ac_cpp_err"; then
16483 ac_header_preproc=yes
16484 else
16485 echo "$as_me: failed program was:" >&5
16486 sed 's/^/| /' conftest.$ac_ext >&5
16488 ac_header_preproc=no
16491 rm -f conftest.err conftest.$ac_ext
16492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16493 echo "${ECHO_T}$ac_header_preproc" >&6; }
16495 # So? What about this header?
16496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16497 yes:no: )
16498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16502 ac_header_preproc=yes
16504 no:yes:* )
16505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16512 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16517 ( cat <<\_ASBOX
16518 ## ----------------------------------- ##
16519 ## Report this to llvmbugs@cs.uiuc.edu ##
16520 ## ----------------------------------- ##
16521 _ASBOX
16522 ) | sed "s/^/$as_me: WARNING: /" >&2
16524 esac
16525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16528 echo $ECHO_N "(cached) $ECHO_C" >&6
16529 else
16530 eval "$as_ac_Header=\$ac_header_preproc"
16532 ac_res=`eval echo '${'$as_ac_Header'}'`
16533 { echo "$as_me:$LINENO: result: $ac_res" >&5
16534 echo "${ECHO_T}$ac_res" >&6; }
16537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16538 cat >>confdefs.h <<_ACEOF
16539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16540 _ACEOF
16541 HAVE_PTHREAD=1
16543 else
16544 HAVE_PTHREAD=0
16548 done
16550 else
16551 HAVE_PTHREAD=0
16555 if test "$llvm_cv_enable_libffi" = "yes" ; then
16558 for ac_header in ffi.h ffi/ffi.h
16560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16565 echo $ECHO_N "(cached) $ECHO_C" >&6
16567 ac_res=`eval echo '${'$as_ac_Header'}'`
16568 { echo "$as_me:$LINENO: result: $ac_res" >&5
16569 echo "${ECHO_T}$ac_res" >&6; }
16570 else
16571 # Is the header compilable?
16572 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16574 cat >conftest.$ac_ext <<_ACEOF
16575 /* confdefs.h. */
16576 _ACEOF
16577 cat confdefs.h >>conftest.$ac_ext
16578 cat >>conftest.$ac_ext <<_ACEOF
16579 /* end confdefs.h. */
16580 $ac_includes_default
16581 #include <$ac_header>
16582 _ACEOF
16583 rm -f conftest.$ac_objext
16584 if { (ac_try="$ac_compile"
16585 case "(($ac_try" in
16586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587 *) ac_try_echo=$ac_try;;
16588 esac
16589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16590 (eval "$ac_compile") 2>conftest.er1
16591 ac_status=$?
16592 grep -v '^ *+' conftest.er1 >conftest.err
16593 rm -f conftest.er1
16594 cat conftest.err >&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); } &&
16597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16598 { (case "(($ac_try" in
16599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600 *) ac_try_echo=$ac_try;;
16601 esac
16602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16603 (eval "$ac_try") 2>&5
16604 ac_status=$?
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; } &&
16607 { ac_try='test -s conftest.$ac_objext'
16608 { (case "(($ac_try" in
16609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610 *) ac_try_echo=$ac_try;;
16611 esac
16612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16613 (eval "$ac_try") 2>&5
16614 ac_status=$?
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; }; then
16617 ac_header_compiler=yes
16618 else
16619 echo "$as_me: failed program was:" >&5
16620 sed 's/^/| /' conftest.$ac_ext >&5
16622 ac_header_compiler=no
16625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16626 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16627 echo "${ECHO_T}$ac_header_compiler" >&6; }
16629 # Is the header present?
16630 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16632 cat >conftest.$ac_ext <<_ACEOF
16633 /* confdefs.h. */
16634 _ACEOF
16635 cat confdefs.h >>conftest.$ac_ext
16636 cat >>conftest.$ac_ext <<_ACEOF
16637 /* end confdefs.h. */
16638 #include <$ac_header>
16639 _ACEOF
16640 if { (ac_try="$ac_cpp conftest.$ac_ext"
16641 case "(($ac_try" in
16642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16643 *) ac_try_echo=$ac_try;;
16644 esac
16645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16647 ac_status=$?
16648 grep -v '^ *+' conftest.er1 >conftest.err
16649 rm -f conftest.er1
16650 cat conftest.err >&5
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); } >/dev/null; then
16653 if test -s conftest.err; then
16654 ac_cpp_err=$ac_c_preproc_warn_flag
16655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16656 else
16657 ac_cpp_err=
16659 else
16660 ac_cpp_err=yes
16662 if test -z "$ac_cpp_err"; then
16663 ac_header_preproc=yes
16664 else
16665 echo "$as_me: failed program was:" >&5
16666 sed 's/^/| /' conftest.$ac_ext >&5
16668 ac_header_preproc=no
16671 rm -f conftest.err conftest.$ac_ext
16672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16673 echo "${ECHO_T}$ac_header_preproc" >&6; }
16675 # So? What about this header?
16676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16677 yes:no: )
16678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16682 ac_header_preproc=yes
16684 no:yes:* )
16685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16692 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16697 ( cat <<\_ASBOX
16698 ## ----------------------------------- ##
16699 ## Report this to llvmbugs@cs.uiuc.edu ##
16700 ## ----------------------------------- ##
16701 _ASBOX
16702 ) | sed "s/^/$as_me: WARNING: /" >&2
16704 esac
16705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16708 echo $ECHO_N "(cached) $ECHO_C" >&6
16709 else
16710 eval "$as_ac_Header=\$ac_header_preproc"
16712 ac_res=`eval echo '${'$as_ac_Header'}'`
16713 { echo "$as_me:$LINENO: result: $ac_res" >&5
16714 echo "${ECHO_T}$ac_res" >&6; }
16717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16718 cat >>confdefs.h <<_ACEOF
16719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16720 _ACEOF
16724 done
16731 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16732 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16733 if test "${ac_cv_huge_val_sanity+set}" = set; then
16734 echo $ECHO_N "(cached) $ECHO_C" >&6
16735 else
16737 ac_ext=cpp
16738 ac_cpp='$CXXCPP $CPPFLAGS'
16739 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16740 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16741 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16743 ac_save_CXXFLAGS=$CXXFLAGS
16744 CXXFLAGS=-pedantic
16745 if test "$cross_compiling" = yes; then
16746 ac_cv_huge_val_sanity=yes
16747 else
16748 cat >conftest.$ac_ext <<_ACEOF
16749 /* confdefs.h. */
16750 _ACEOF
16751 cat confdefs.h >>conftest.$ac_ext
16752 cat >>conftest.$ac_ext <<_ACEOF
16753 /* end confdefs.h. */
16754 #include <math.h>
16756 main ()
16758 double x = HUGE_VAL; return x != x;
16760 return 0;
16762 _ACEOF
16763 rm -f conftest$ac_exeext
16764 if { (ac_try="$ac_link"
16765 case "(($ac_try" in
16766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767 *) ac_try_echo=$ac_try;;
16768 esac
16769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16770 (eval "$ac_link") 2>&5
16771 ac_status=$?
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16774 { (case "(($ac_try" in
16775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16776 *) ac_try_echo=$ac_try;;
16777 esac
16778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16779 (eval "$ac_try") 2>&5
16780 ac_status=$?
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; }; then
16783 ac_cv_huge_val_sanity=yes
16784 else
16785 echo "$as_me: program exited with status $ac_status" >&5
16786 echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16789 ( exit $ac_status )
16790 ac_cv_huge_val_sanity=no
16792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16796 CXXFLAGS=$ac_save_CXXFLAGS
16797 ac_ext=c
16798 ac_cpp='$CPP $CPPFLAGS'
16799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16805 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16806 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16807 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16810 { echo "$as_me:$LINENO: checking for pid_t" >&5
16811 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16812 if test "${ac_cv_type_pid_t+set}" = set; then
16813 echo $ECHO_N "(cached) $ECHO_C" >&6
16814 else
16815 cat >conftest.$ac_ext <<_ACEOF
16816 /* confdefs.h. */
16817 _ACEOF
16818 cat confdefs.h >>conftest.$ac_ext
16819 cat >>conftest.$ac_ext <<_ACEOF
16820 /* end confdefs.h. */
16821 $ac_includes_default
16822 typedef pid_t ac__type_new_;
16824 main ()
16826 if ((ac__type_new_ *) 0)
16827 return 0;
16828 if (sizeof (ac__type_new_))
16829 return 0;
16831 return 0;
16833 _ACEOF
16834 rm -f conftest.$ac_objext
16835 if { (ac_try="$ac_compile"
16836 case "(($ac_try" in
16837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838 *) ac_try_echo=$ac_try;;
16839 esac
16840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841 (eval "$ac_compile") 2>conftest.er1
16842 ac_status=$?
16843 grep -v '^ *+' conftest.er1 >conftest.err
16844 rm -f conftest.er1
16845 cat conftest.err >&5
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); } &&
16848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16849 { (case "(($ac_try" in
16850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16851 *) ac_try_echo=$ac_try;;
16852 esac
16853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16854 (eval "$ac_try") 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; } &&
16858 { ac_try='test -s conftest.$ac_objext'
16859 { (case "(($ac_try" in
16860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861 *) ac_try_echo=$ac_try;;
16862 esac
16863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16864 (eval "$ac_try") 2>&5
16865 ac_status=$?
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; }; then
16868 ac_cv_type_pid_t=yes
16869 else
16870 echo "$as_me: failed program was:" >&5
16871 sed 's/^/| /' conftest.$ac_ext >&5
16873 ac_cv_type_pid_t=no
16876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16878 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16879 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16880 if test $ac_cv_type_pid_t = yes; then
16882 else
16884 cat >>confdefs.h <<_ACEOF
16885 #define pid_t int
16886 _ACEOF
16890 { echo "$as_me:$LINENO: checking for size_t" >&5
16891 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16892 if test "${ac_cv_type_size_t+set}" = set; then
16893 echo $ECHO_N "(cached) $ECHO_C" >&6
16894 else
16895 cat >conftest.$ac_ext <<_ACEOF
16896 /* confdefs.h. */
16897 _ACEOF
16898 cat confdefs.h >>conftest.$ac_ext
16899 cat >>conftest.$ac_ext <<_ACEOF
16900 /* end confdefs.h. */
16901 $ac_includes_default
16902 typedef size_t ac__type_new_;
16904 main ()
16906 if ((ac__type_new_ *) 0)
16907 return 0;
16908 if (sizeof (ac__type_new_))
16909 return 0;
16911 return 0;
16913 _ACEOF
16914 rm -f conftest.$ac_objext
16915 if { (ac_try="$ac_compile"
16916 case "(($ac_try" in
16917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918 *) ac_try_echo=$ac_try;;
16919 esac
16920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16921 (eval "$ac_compile") 2>conftest.er1
16922 ac_status=$?
16923 grep -v '^ *+' conftest.er1 >conftest.err
16924 rm -f conftest.er1
16925 cat conftest.err >&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); } &&
16928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16929 { (case "(($ac_try" in
16930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931 *) ac_try_echo=$ac_try;;
16932 esac
16933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934 (eval "$ac_try") 2>&5
16935 ac_status=$?
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); }; } &&
16938 { ac_try='test -s conftest.$ac_objext'
16939 { (case "(($ac_try" in
16940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16941 *) ac_try_echo=$ac_try;;
16942 esac
16943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16944 (eval "$ac_try") 2>&5
16945 ac_status=$?
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; }; then
16948 ac_cv_type_size_t=yes
16949 else
16950 echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.$ac_ext >&5
16953 ac_cv_type_size_t=no
16956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16958 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16959 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16960 if test $ac_cv_type_size_t = yes; then
16962 else
16964 cat >>confdefs.h <<_ACEOF
16965 #define size_t unsigned int
16966 _ACEOF
16971 cat >>confdefs.h <<_ACEOF
16972 #define RETSIGTYPE void
16973 _ACEOF
16975 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16976 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16977 if test "${ac_cv_struct_tm+set}" = set; then
16978 echo $ECHO_N "(cached) $ECHO_C" >&6
16979 else
16980 cat >conftest.$ac_ext <<_ACEOF
16981 /* confdefs.h. */
16982 _ACEOF
16983 cat confdefs.h >>conftest.$ac_ext
16984 cat >>conftest.$ac_ext <<_ACEOF
16985 /* end confdefs.h. */
16986 #include <sys/types.h>
16987 #include <time.h>
16990 main ()
16992 struct tm *tp; tp->tm_sec;
16994 return 0;
16996 _ACEOF
16997 rm -f conftest.$ac_objext
16998 if { (ac_try="$ac_compile"
16999 case "(($ac_try" in
17000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17001 *) ac_try_echo=$ac_try;;
17002 esac
17003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17004 (eval "$ac_compile") 2>conftest.er1
17005 ac_status=$?
17006 grep -v '^ *+' conftest.er1 >conftest.err
17007 rm -f conftest.er1
17008 cat conftest.err >&5
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); } &&
17011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17012 { (case "(($ac_try" in
17013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014 *) ac_try_echo=$ac_try;;
17015 esac
17016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17017 (eval "$ac_try") 2>&5
17018 ac_status=$?
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; } &&
17021 { ac_try='test -s conftest.$ac_objext'
17022 { (case "(($ac_try" in
17023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17024 *) ac_try_echo=$ac_try;;
17025 esac
17026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17027 (eval "$ac_try") 2>&5
17028 ac_status=$?
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; }; then
17031 ac_cv_struct_tm=time.h
17032 else
17033 echo "$as_me: failed program was:" >&5
17034 sed 's/^/| /' conftest.$ac_ext >&5
17036 ac_cv_struct_tm=sys/time.h
17039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17041 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17042 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17043 if test $ac_cv_struct_tm = sys/time.h; then
17045 cat >>confdefs.h <<\_ACEOF
17046 #define TM_IN_SYS_TIME 1
17047 _ACEOF
17051 { echo "$as_me:$LINENO: checking for int64_t" >&5
17052 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17053 if test "${ac_cv_type_int64_t+set}" = set; then
17054 echo $ECHO_N "(cached) $ECHO_C" >&6
17055 else
17056 cat >conftest.$ac_ext <<_ACEOF
17057 /* confdefs.h. */
17058 _ACEOF
17059 cat confdefs.h >>conftest.$ac_ext
17060 cat >>conftest.$ac_ext <<_ACEOF
17061 /* end confdefs.h. */
17062 $ac_includes_default
17063 typedef int64_t ac__type_new_;
17065 main ()
17067 if ((ac__type_new_ *) 0)
17068 return 0;
17069 if (sizeof (ac__type_new_))
17070 return 0;
17072 return 0;
17074 _ACEOF
17075 rm -f conftest.$ac_objext
17076 if { (ac_try="$ac_compile"
17077 case "(($ac_try" in
17078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17079 *) ac_try_echo=$ac_try;;
17080 esac
17081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17082 (eval "$ac_compile") 2>conftest.er1
17083 ac_status=$?
17084 grep -v '^ *+' conftest.er1 >conftest.err
17085 rm -f conftest.er1
17086 cat conftest.err >&5
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); } &&
17089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17090 { (case "(($ac_try" in
17091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092 *) ac_try_echo=$ac_try;;
17093 esac
17094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17095 (eval "$ac_try") 2>&5
17096 ac_status=$?
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); }; } &&
17099 { ac_try='test -s conftest.$ac_objext'
17100 { (case "(($ac_try" in
17101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17102 *) ac_try_echo=$ac_try;;
17103 esac
17104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17105 (eval "$ac_try") 2>&5
17106 ac_status=$?
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); }; }; then
17109 ac_cv_type_int64_t=yes
17110 else
17111 echo "$as_me: failed program was:" >&5
17112 sed 's/^/| /' conftest.$ac_ext >&5
17114 ac_cv_type_int64_t=no
17117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17119 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17120 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17121 if test $ac_cv_type_int64_t = yes; then
17123 cat >>confdefs.h <<_ACEOF
17124 #define HAVE_INT64_T 1
17125 _ACEOF
17128 else
17129 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17130 echo "$as_me: error: Type int64_t required but not found" >&2;}
17131 { (exit 1); exit 1; }; }
17134 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17135 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17136 if test "${ac_cv_type_uint64_t+set}" = set; then
17137 echo $ECHO_N "(cached) $ECHO_C" >&6
17138 else
17139 cat >conftest.$ac_ext <<_ACEOF
17140 /* confdefs.h. */
17141 _ACEOF
17142 cat confdefs.h >>conftest.$ac_ext
17143 cat >>conftest.$ac_ext <<_ACEOF
17144 /* end confdefs.h. */
17145 $ac_includes_default
17146 typedef uint64_t ac__type_new_;
17148 main ()
17150 if ((ac__type_new_ *) 0)
17151 return 0;
17152 if (sizeof (ac__type_new_))
17153 return 0;
17155 return 0;
17157 _ACEOF
17158 rm -f conftest.$ac_objext
17159 if { (ac_try="$ac_compile"
17160 case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17163 esac
17164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_compile") 2>conftest.er1
17166 ac_status=$?
17167 grep -v '^ *+' conftest.er1 >conftest.err
17168 rm -f conftest.er1
17169 cat conftest.err >&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } &&
17172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17173 { (case "(($ac_try" in
17174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17175 *) ac_try_echo=$ac_try;;
17176 esac
17177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17178 (eval "$ac_try") 2>&5
17179 ac_status=$?
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); }; } &&
17182 { ac_try='test -s conftest.$ac_objext'
17183 { (case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17186 esac
17187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_try") 2>&5
17189 ac_status=$?
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; }; then
17192 ac_cv_type_uint64_t=yes
17193 else
17194 echo "$as_me: failed program was:" >&5
17195 sed 's/^/| /' conftest.$ac_ext >&5
17197 ac_cv_type_uint64_t=no
17200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17202 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17203 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17204 if test $ac_cv_type_uint64_t = yes; then
17206 cat >>confdefs.h <<_ACEOF
17207 #define HAVE_UINT64_T 1
17208 _ACEOF
17211 else
17212 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17213 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17214 if test "${ac_cv_type_u_int64_t+set}" = set; then
17215 echo $ECHO_N "(cached) $ECHO_C" >&6
17216 else
17217 cat >conftest.$ac_ext <<_ACEOF
17218 /* confdefs.h. */
17219 _ACEOF
17220 cat confdefs.h >>conftest.$ac_ext
17221 cat >>conftest.$ac_ext <<_ACEOF
17222 /* end confdefs.h. */
17223 $ac_includes_default
17224 typedef u_int64_t ac__type_new_;
17226 main ()
17228 if ((ac__type_new_ *) 0)
17229 return 0;
17230 if (sizeof (ac__type_new_))
17231 return 0;
17233 return 0;
17235 _ACEOF
17236 rm -f conftest.$ac_objext
17237 if { (ac_try="$ac_compile"
17238 case "(($ac_try" in
17239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17240 *) ac_try_echo=$ac_try;;
17241 esac
17242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17243 (eval "$ac_compile") 2>conftest.er1
17244 ac_status=$?
17245 grep -v '^ *+' conftest.er1 >conftest.err
17246 rm -f conftest.er1
17247 cat conftest.err >&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } &&
17250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17251 { (case "(($ac_try" in
17252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17253 *) ac_try_echo=$ac_try;;
17254 esac
17255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17256 (eval "$ac_try") 2>&5
17257 ac_status=$?
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; } &&
17260 { ac_try='test -s conftest.$ac_objext'
17261 { (case "(($ac_try" in
17262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263 *) ac_try_echo=$ac_try;;
17264 esac
17265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17266 (eval "$ac_try") 2>&5
17267 ac_status=$?
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }; }; then
17270 ac_cv_type_u_int64_t=yes
17271 else
17272 echo "$as_me: failed program was:" >&5
17273 sed 's/^/| /' conftest.$ac_ext >&5
17275 ac_cv_type_u_int64_t=no
17278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17280 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17281 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17282 if test $ac_cv_type_u_int64_t = yes; then
17284 cat >>confdefs.h <<_ACEOF
17285 #define HAVE_U_INT64_T 1
17286 _ACEOF
17289 else
17290 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17291 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17292 { (exit 1); exit 1; }; }
17306 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17309 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17312 echo $ECHO_N "(cached) $ECHO_C" >&6
17313 else
17314 cat >conftest.$ac_ext <<_ACEOF
17315 /* confdefs.h. */
17316 _ACEOF
17317 cat confdefs.h >>conftest.$ac_ext
17318 cat >>conftest.$ac_ext <<_ACEOF
17319 /* end confdefs.h. */
17320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17322 #define $ac_func innocuous_$ac_func
17324 /* System header to define __stub macros and hopefully few prototypes,
17325 which can conflict with char $ac_func (); below.
17326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17327 <limits.h> exists even on freestanding compilers. */
17329 #ifdef __STDC__
17330 # include <limits.h>
17331 #else
17332 # include <assert.h>
17333 #endif
17335 #undef $ac_func
17337 /* Override any GCC internal prototype to avoid an error.
17338 Use char because int might match the return type of a GCC
17339 builtin and then its argument prototype would still apply. */
17340 #ifdef __cplusplus
17341 extern "C"
17342 #endif
17343 char $ac_func ();
17344 /* The GNU C library defines this for functions which it implements
17345 to always fail with ENOSYS. Some functions are actually named
17346 something starting with __ and the normal name is an alias. */
17347 #if defined __stub_$ac_func || defined __stub___$ac_func
17348 choke me
17349 #endif
17352 main ()
17354 return $ac_func ();
17356 return 0;
17358 _ACEOF
17359 rm -f conftest.$ac_objext conftest$ac_exeext
17360 if { (ac_try="$ac_link"
17361 case "(($ac_try" in
17362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363 *) ac_try_echo=$ac_try;;
17364 esac
17365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366 (eval "$ac_link") 2>conftest.er1
17367 ac_status=$?
17368 grep -v '^ *+' conftest.er1 >conftest.err
17369 rm -f conftest.er1
17370 cat conftest.err >&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); } &&
17373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17374 { (case "(($ac_try" in
17375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376 *) ac_try_echo=$ac_try;;
17377 esac
17378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379 (eval "$ac_try") 2>&5
17380 ac_status=$?
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); }; } &&
17383 { ac_try='test -s conftest$ac_exeext'
17384 { (case "(($ac_try" in
17385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17386 *) ac_try_echo=$ac_try;;
17387 esac
17388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17389 (eval "$ac_try") 2>&5
17390 ac_status=$?
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); }; }; then
17393 eval "$as_ac_var=yes"
17394 else
17395 echo "$as_me: failed program was:" >&5
17396 sed 's/^/| /' conftest.$ac_ext >&5
17398 eval "$as_ac_var=no"
17401 rm -f core conftest.err conftest.$ac_objext \
17402 conftest$ac_exeext conftest.$ac_ext
17404 ac_res=`eval echo '${'$as_ac_var'}'`
17405 { echo "$as_me:$LINENO: result: $ac_res" >&5
17406 echo "${ECHO_T}$ac_res" >&6; }
17407 if test `eval echo '${'$as_ac_var'}'` = yes; then
17408 cat >>confdefs.h <<_ACEOF
17409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17410 _ACEOF
17413 done
17419 for ac_func in powf fmodf strtof round
17421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17422 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17424 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17425 echo $ECHO_N "(cached) $ECHO_C" >&6
17426 else
17427 cat >conftest.$ac_ext <<_ACEOF
17428 /* confdefs.h. */
17429 _ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h. */
17433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17435 #define $ac_func innocuous_$ac_func
17437 /* System header to define __stub macros and hopefully few prototypes,
17438 which can conflict with char $ac_func (); below.
17439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17440 <limits.h> exists even on freestanding compilers. */
17442 #ifdef __STDC__
17443 # include <limits.h>
17444 #else
17445 # include <assert.h>
17446 #endif
17448 #undef $ac_func
17450 /* Override any GCC internal prototype to avoid an error.
17451 Use char because int might match the return type of a GCC
17452 builtin and then its argument prototype would still apply. */
17453 #ifdef __cplusplus
17454 extern "C"
17455 #endif
17456 char $ac_func ();
17457 /* The GNU C library defines this for functions which it implements
17458 to always fail with ENOSYS. Some functions are actually named
17459 something starting with __ and the normal name is an alias. */
17460 #if defined __stub_$ac_func || defined __stub___$ac_func
17461 choke me
17462 #endif
17465 main ()
17467 return $ac_func ();
17469 return 0;
17471 _ACEOF
17472 rm -f conftest.$ac_objext conftest$ac_exeext
17473 if { (ac_try="$ac_link"
17474 case "(($ac_try" in
17475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17476 *) ac_try_echo=$ac_try;;
17477 esac
17478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17479 (eval "$ac_link") 2>conftest.er1
17480 ac_status=$?
17481 grep -v '^ *+' conftest.er1 >conftest.err
17482 rm -f conftest.er1
17483 cat conftest.err >&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); } &&
17486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17487 { (case "(($ac_try" in
17488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489 *) ac_try_echo=$ac_try;;
17490 esac
17491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492 (eval "$ac_try") 2>&5
17493 ac_status=$?
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); }; } &&
17496 { ac_try='test -s conftest$ac_exeext'
17497 { (case "(($ac_try" in
17498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17499 *) ac_try_echo=$ac_try;;
17500 esac
17501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17502 (eval "$ac_try") 2>&5
17503 ac_status=$?
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; }; then
17506 eval "$as_ac_var=yes"
17507 else
17508 echo "$as_me: failed program was:" >&5
17509 sed 's/^/| /' conftest.$ac_ext >&5
17511 eval "$as_ac_var=no"
17514 rm -f core conftest.err conftest.$ac_objext \
17515 conftest$ac_exeext conftest.$ac_ext
17517 ac_res=`eval echo '${'$as_ac_var'}'`
17518 { echo "$as_me:$LINENO: result: $ac_res" >&5
17519 echo "${ECHO_T}$ac_res" >&6; }
17520 if test `eval echo '${'$as_ac_var'}'` = yes; then
17521 cat >>confdefs.h <<_ACEOF
17522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17523 _ACEOF
17526 done
17533 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17536 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17538 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17539 echo $ECHO_N "(cached) $ECHO_C" >&6
17540 else
17541 cat >conftest.$ac_ext <<_ACEOF
17542 /* confdefs.h. */
17543 _ACEOF
17544 cat confdefs.h >>conftest.$ac_ext
17545 cat >>conftest.$ac_ext <<_ACEOF
17546 /* end confdefs.h. */
17547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17549 #define $ac_func innocuous_$ac_func
17551 /* System header to define __stub macros and hopefully few prototypes,
17552 which can conflict with char $ac_func (); below.
17553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17554 <limits.h> exists even on freestanding compilers. */
17556 #ifdef __STDC__
17557 # include <limits.h>
17558 #else
17559 # include <assert.h>
17560 #endif
17562 #undef $ac_func
17564 /* Override any GCC internal prototype to avoid an error.
17565 Use char because int might match the return type of a GCC
17566 builtin and then its argument prototype would still apply. */
17567 #ifdef __cplusplus
17568 extern "C"
17569 #endif
17570 char $ac_func ();
17571 /* The GNU C library defines this for functions which it implements
17572 to always fail with ENOSYS. Some functions are actually named
17573 something starting with __ and the normal name is an alias. */
17574 #if defined __stub_$ac_func || defined __stub___$ac_func
17575 choke me
17576 #endif
17579 main ()
17581 return $ac_func ();
17583 return 0;
17585 _ACEOF
17586 rm -f conftest.$ac_objext conftest$ac_exeext
17587 if { (ac_try="$ac_link"
17588 case "(($ac_try" in
17589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590 *) ac_try_echo=$ac_try;;
17591 esac
17592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17593 (eval "$ac_link") 2>conftest.er1
17594 ac_status=$?
17595 grep -v '^ *+' conftest.er1 >conftest.err
17596 rm -f conftest.er1
17597 cat conftest.err >&5
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); } &&
17600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17601 { (case "(($ac_try" in
17602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603 *) ac_try_echo=$ac_try;;
17604 esac
17605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17606 (eval "$ac_try") 2>&5
17607 ac_status=$?
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); }; } &&
17610 { ac_try='test -s conftest$ac_exeext'
17611 { (case "(($ac_try" in
17612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17613 *) ac_try_echo=$ac_try;;
17614 esac
17615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17616 (eval "$ac_try") 2>&5
17617 ac_status=$?
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); }; }; then
17620 eval "$as_ac_var=yes"
17621 else
17622 echo "$as_me: failed program was:" >&5
17623 sed 's/^/| /' conftest.$ac_ext >&5
17625 eval "$as_ac_var=no"
17628 rm -f core conftest.err conftest.$ac_objext \
17629 conftest$ac_exeext conftest.$ac_ext
17631 ac_res=`eval echo '${'$as_ac_var'}'`
17632 { echo "$as_me:$LINENO: result: $ac_res" >&5
17633 echo "${ECHO_T}$ac_res" >&6; }
17634 if test `eval echo '${'$as_ac_var'}'` = yes; then
17635 cat >>confdefs.h <<_ACEOF
17636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17637 _ACEOF
17640 done
17645 for ac_func in isatty mkdtemp mkstemp
17647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17648 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17651 echo $ECHO_N "(cached) $ECHO_C" >&6
17652 else
17653 cat >conftest.$ac_ext <<_ACEOF
17654 /* confdefs.h. */
17655 _ACEOF
17656 cat confdefs.h >>conftest.$ac_ext
17657 cat >>conftest.$ac_ext <<_ACEOF
17658 /* end confdefs.h. */
17659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17661 #define $ac_func innocuous_$ac_func
17663 /* System header to define __stub macros and hopefully few prototypes,
17664 which can conflict with char $ac_func (); below.
17665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17666 <limits.h> exists even on freestanding compilers. */
17668 #ifdef __STDC__
17669 # include <limits.h>
17670 #else
17671 # include <assert.h>
17672 #endif
17674 #undef $ac_func
17676 /* Override any GCC internal prototype to avoid an error.
17677 Use char because int might match the return type of a GCC
17678 builtin and then its argument prototype would still apply. */
17679 #ifdef __cplusplus
17680 extern "C"
17681 #endif
17682 char $ac_func ();
17683 /* The GNU C library defines this for functions which it implements
17684 to always fail with ENOSYS. Some functions are actually named
17685 something starting with __ and the normal name is an alias. */
17686 #if defined __stub_$ac_func || defined __stub___$ac_func
17687 choke me
17688 #endif
17691 main ()
17693 return $ac_func ();
17695 return 0;
17697 _ACEOF
17698 rm -f conftest.$ac_objext conftest$ac_exeext
17699 if { (ac_try="$ac_link"
17700 case "(($ac_try" in
17701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17702 *) ac_try_echo=$ac_try;;
17703 esac
17704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17705 (eval "$ac_link") 2>conftest.er1
17706 ac_status=$?
17707 grep -v '^ *+' conftest.er1 >conftest.err
17708 rm -f conftest.er1
17709 cat conftest.err >&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); } &&
17712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17713 { (case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17716 esac
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_try") 2>&5
17719 ac_status=$?
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; } &&
17722 { ac_try='test -s conftest$ac_exeext'
17723 { (case "(($ac_try" in
17724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17725 *) ac_try_echo=$ac_try;;
17726 esac
17727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17728 (eval "$ac_try") 2>&5
17729 ac_status=$?
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); }; }; then
17732 eval "$as_ac_var=yes"
17733 else
17734 echo "$as_me: failed program was:" >&5
17735 sed 's/^/| /' conftest.$ac_ext >&5
17737 eval "$as_ac_var=no"
17740 rm -f core conftest.err conftest.$ac_objext \
17741 conftest$ac_exeext conftest.$ac_ext
17743 ac_res=`eval echo '${'$as_ac_var'}'`
17744 { echo "$as_me:$LINENO: result: $ac_res" >&5
17745 echo "${ECHO_T}$ac_res" >&6; }
17746 if test `eval echo '${'$as_ac_var'}'` = yes; then
17747 cat >>confdefs.h <<_ACEOF
17748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17749 _ACEOF
17752 done
17759 for ac_func in mktemp realpath sbrk setrlimit strdup
17761 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17762 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17763 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17764 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17765 echo $ECHO_N "(cached) $ECHO_C" >&6
17766 else
17767 cat >conftest.$ac_ext <<_ACEOF
17768 /* confdefs.h. */
17769 _ACEOF
17770 cat confdefs.h >>conftest.$ac_ext
17771 cat >>conftest.$ac_ext <<_ACEOF
17772 /* end confdefs.h. */
17773 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17775 #define $ac_func innocuous_$ac_func
17777 /* System header to define __stub macros and hopefully few prototypes,
17778 which can conflict with char $ac_func (); below.
17779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17780 <limits.h> exists even on freestanding compilers. */
17782 #ifdef __STDC__
17783 # include <limits.h>
17784 #else
17785 # include <assert.h>
17786 #endif
17788 #undef $ac_func
17790 /* Override any GCC internal prototype to avoid an error.
17791 Use char because int might match the return type of a GCC
17792 builtin and then its argument prototype would still apply. */
17793 #ifdef __cplusplus
17794 extern "C"
17795 #endif
17796 char $ac_func ();
17797 /* The GNU C library defines this for functions which it implements
17798 to always fail with ENOSYS. Some functions are actually named
17799 something starting with __ and the normal name is an alias. */
17800 #if defined __stub_$ac_func || defined __stub___$ac_func
17801 choke me
17802 #endif
17805 main ()
17807 return $ac_func ();
17809 return 0;
17811 _ACEOF
17812 rm -f conftest.$ac_objext conftest$ac_exeext
17813 if { (ac_try="$ac_link"
17814 case "(($ac_try" in
17815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17816 *) ac_try_echo=$ac_try;;
17817 esac
17818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17819 (eval "$ac_link") 2>conftest.er1
17820 ac_status=$?
17821 grep -v '^ *+' conftest.er1 >conftest.err
17822 rm -f conftest.er1
17823 cat conftest.err >&5
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); } &&
17826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17827 { (case "(($ac_try" in
17828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17829 *) ac_try_echo=$ac_try;;
17830 esac
17831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17832 (eval "$ac_try") 2>&5
17833 ac_status=$?
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; } &&
17836 { ac_try='test -s conftest$ac_exeext'
17837 { (case "(($ac_try" in
17838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17839 *) ac_try_echo=$ac_try;;
17840 esac
17841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17842 (eval "$ac_try") 2>&5
17843 ac_status=$?
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); }; }; then
17846 eval "$as_ac_var=yes"
17847 else
17848 echo "$as_me: failed program was:" >&5
17849 sed 's/^/| /' conftest.$ac_ext >&5
17851 eval "$as_ac_var=no"
17854 rm -f core conftest.err conftest.$ac_objext \
17855 conftest$ac_exeext conftest.$ac_ext
17857 ac_res=`eval echo '${'$as_ac_var'}'`
17858 { echo "$as_me:$LINENO: result: $ac_res" >&5
17859 echo "${ECHO_T}$ac_res" >&6; }
17860 if test `eval echo '${'$as_ac_var'}'` = yes; then
17861 cat >>confdefs.h <<_ACEOF
17862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17863 _ACEOF
17866 done
17872 for ac_func in strerror strerror_r strerror_s setenv
17874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17875 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17877 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17878 echo $ECHO_N "(cached) $ECHO_C" >&6
17879 else
17880 cat >conftest.$ac_ext <<_ACEOF
17881 /* confdefs.h. */
17882 _ACEOF
17883 cat confdefs.h >>conftest.$ac_ext
17884 cat >>conftest.$ac_ext <<_ACEOF
17885 /* end confdefs.h. */
17886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17888 #define $ac_func innocuous_$ac_func
17890 /* System header to define __stub macros and hopefully few prototypes,
17891 which can conflict with char $ac_func (); below.
17892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17893 <limits.h> exists even on freestanding compilers. */
17895 #ifdef __STDC__
17896 # include <limits.h>
17897 #else
17898 # include <assert.h>
17899 #endif
17901 #undef $ac_func
17903 /* Override any GCC internal prototype to avoid an error.
17904 Use char because int might match the return type of a GCC
17905 builtin and then its argument prototype would still apply. */
17906 #ifdef __cplusplus
17907 extern "C"
17908 #endif
17909 char $ac_func ();
17910 /* The GNU C library defines this for functions which it implements
17911 to always fail with ENOSYS. Some functions are actually named
17912 something starting with __ and the normal name is an alias. */
17913 #if defined __stub_$ac_func || defined __stub___$ac_func
17914 choke me
17915 #endif
17918 main ()
17920 return $ac_func ();
17922 return 0;
17924 _ACEOF
17925 rm -f conftest.$ac_objext conftest$ac_exeext
17926 if { (ac_try="$ac_link"
17927 case "(($ac_try" in
17928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17929 *) ac_try_echo=$ac_try;;
17930 esac
17931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17932 (eval "$ac_link") 2>conftest.er1
17933 ac_status=$?
17934 grep -v '^ *+' conftest.er1 >conftest.err
17935 rm -f conftest.er1
17936 cat conftest.err >&5
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); } &&
17939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17940 { (case "(($ac_try" in
17941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17942 *) ac_try_echo=$ac_try;;
17943 esac
17944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17945 (eval "$ac_try") 2>&5
17946 ac_status=$?
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); }; } &&
17949 { ac_try='test -s conftest$ac_exeext'
17950 { (case "(($ac_try" in
17951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17952 *) ac_try_echo=$ac_try;;
17953 esac
17954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17955 (eval "$ac_try") 2>&5
17956 ac_status=$?
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; }; then
17959 eval "$as_ac_var=yes"
17960 else
17961 echo "$as_me: failed program was:" >&5
17962 sed 's/^/| /' conftest.$ac_ext >&5
17964 eval "$as_ac_var=no"
17967 rm -f core conftest.err conftest.$ac_objext \
17968 conftest$ac_exeext conftest.$ac_ext
17970 ac_res=`eval echo '${'$as_ac_var'}'`
17971 { echo "$as_me:$LINENO: result: $ac_res" >&5
17972 echo "${ECHO_T}$ac_res" >&6; }
17973 if test `eval echo '${'$as_ac_var'}'` = yes; then
17974 cat >>confdefs.h <<_ACEOF
17975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17976 _ACEOF
17979 done
17985 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17988 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17990 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17991 echo $ECHO_N "(cached) $ECHO_C" >&6
17992 else
17993 cat >conftest.$ac_ext <<_ACEOF
17994 /* confdefs.h. */
17995 _ACEOF
17996 cat confdefs.h >>conftest.$ac_ext
17997 cat >>conftest.$ac_ext <<_ACEOF
17998 /* end confdefs.h. */
17999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18001 #define $ac_func innocuous_$ac_func
18003 /* System header to define __stub macros and hopefully few prototypes,
18004 which can conflict with char $ac_func (); below.
18005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18006 <limits.h> exists even on freestanding compilers. */
18008 #ifdef __STDC__
18009 # include <limits.h>
18010 #else
18011 # include <assert.h>
18012 #endif
18014 #undef $ac_func
18016 /* Override any GCC internal prototype to avoid an error.
18017 Use char because int might match the return type of a GCC
18018 builtin and then its argument prototype would still apply. */
18019 #ifdef __cplusplus
18020 extern "C"
18021 #endif
18022 char $ac_func ();
18023 /* The GNU C library defines this for functions which it implements
18024 to always fail with ENOSYS. Some functions are actually named
18025 something starting with __ and the normal name is an alias. */
18026 #if defined __stub_$ac_func || defined __stub___$ac_func
18027 choke me
18028 #endif
18031 main ()
18033 return $ac_func ();
18035 return 0;
18037 _ACEOF
18038 rm -f conftest.$ac_objext conftest$ac_exeext
18039 if { (ac_try="$ac_link"
18040 case "(($ac_try" in
18041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18042 *) ac_try_echo=$ac_try;;
18043 esac
18044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18045 (eval "$ac_link") 2>conftest.er1
18046 ac_status=$?
18047 grep -v '^ *+' conftest.er1 >conftest.err
18048 rm -f conftest.er1
18049 cat conftest.err >&5
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); } &&
18052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18053 { (case "(($ac_try" in
18054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055 *) ac_try_echo=$ac_try;;
18056 esac
18057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18058 (eval "$ac_try") 2>&5
18059 ac_status=$?
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); }; } &&
18062 { ac_try='test -s conftest$ac_exeext'
18063 { (case "(($ac_try" in
18064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18065 *) ac_try_echo=$ac_try;;
18066 esac
18067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18068 (eval "$ac_try") 2>&5
18069 ac_status=$?
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); }; }; then
18072 eval "$as_ac_var=yes"
18073 else
18074 echo "$as_me: failed program was:" >&5
18075 sed 's/^/| /' conftest.$ac_ext >&5
18077 eval "$as_ac_var=no"
18080 rm -f core conftest.err conftest.$ac_objext \
18081 conftest$ac_exeext conftest.$ac_ext
18083 ac_res=`eval echo '${'$as_ac_var'}'`
18084 { echo "$as_me:$LINENO: result: $ac_res" >&5
18085 echo "${ECHO_T}$ac_res" >&6; }
18086 if test `eval echo '${'$as_ac_var'}'` = yes; then
18087 cat >>confdefs.h <<_ACEOF
18088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18089 _ACEOF
18092 done
18098 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18101 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18103 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18104 echo $ECHO_N "(cached) $ECHO_C" >&6
18105 else
18106 cat >conftest.$ac_ext <<_ACEOF
18107 /* confdefs.h. */
18108 _ACEOF
18109 cat confdefs.h >>conftest.$ac_ext
18110 cat >>conftest.$ac_ext <<_ACEOF
18111 /* end confdefs.h. */
18112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18114 #define $ac_func innocuous_$ac_func
18116 /* System header to define __stub macros and hopefully few prototypes,
18117 which can conflict with char $ac_func (); below.
18118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18119 <limits.h> exists even on freestanding compilers. */
18121 #ifdef __STDC__
18122 # include <limits.h>
18123 #else
18124 # include <assert.h>
18125 #endif
18127 #undef $ac_func
18129 /* Override any GCC internal prototype to avoid an error.
18130 Use char because int might match the return type of a GCC
18131 builtin and then its argument prototype would still apply. */
18132 #ifdef __cplusplus
18133 extern "C"
18134 #endif
18135 char $ac_func ();
18136 /* The GNU C library defines this for functions which it implements
18137 to always fail with ENOSYS. Some functions are actually named
18138 something starting with __ and the normal name is an alias. */
18139 #if defined __stub_$ac_func || defined __stub___$ac_func
18140 choke me
18141 #endif
18144 main ()
18146 return $ac_func ();
18148 return 0;
18150 _ACEOF
18151 rm -f conftest.$ac_objext conftest$ac_exeext
18152 if { (ac_try="$ac_link"
18153 case "(($ac_try" in
18154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18155 *) ac_try_echo=$ac_try;;
18156 esac
18157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18158 (eval "$ac_link") 2>conftest.er1
18159 ac_status=$?
18160 grep -v '^ *+' conftest.er1 >conftest.err
18161 rm -f conftest.er1
18162 cat conftest.err >&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); } &&
18165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18166 { (case "(($ac_try" in
18167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168 *) ac_try_echo=$ac_try;;
18169 esac
18170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171 (eval "$ac_try") 2>&5
18172 ac_status=$?
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; } &&
18175 { ac_try='test -s conftest$ac_exeext'
18176 { (case "(($ac_try" in
18177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178 *) ac_try_echo=$ac_try;;
18179 esac
18180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181 (eval "$ac_try") 2>&5
18182 ac_status=$?
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; }; then
18185 eval "$as_ac_var=yes"
18186 else
18187 echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18190 eval "$as_ac_var=no"
18193 rm -f core conftest.err conftest.$ac_objext \
18194 conftest$ac_exeext conftest.$ac_ext
18196 ac_res=`eval echo '${'$as_ac_var'}'`
18197 { echo "$as_me:$LINENO: result: $ac_res" >&5
18198 echo "${ECHO_T}$ac_res" >&6; }
18199 if test `eval echo '${'$as_ac_var'}'` = yes; then
18200 cat >>confdefs.h <<_ACEOF
18201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18202 _ACEOF
18205 done
18207 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18208 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18209 if test "${llvm_cv_c_printf_a+set}" = set; then
18210 echo $ECHO_N "(cached) $ECHO_C" >&6
18211 else
18212 ac_ext=c
18213 ac_cpp='$CPP $CPPFLAGS'
18214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18218 if test "$cross_compiling" = yes; then
18219 llvmac_cv_c_printf_a=no
18220 else
18221 cat >conftest.$ac_ext <<_ACEOF
18223 /* confdefs.h. */
18224 _ACEOF
18225 cat confdefs.h >>conftest.$ac_ext
18226 cat >>conftest.$ac_ext <<_ACEOF
18227 /* end confdefs.h. */
18229 #include <stdio.h>
18230 #include <stdlib.h>
18233 main ()
18236 volatile double A, B;
18237 char Buffer[100];
18238 A = 1;
18239 A /= 10.0;
18240 sprintf(Buffer, "%a", A);
18241 B = atof(Buffer);
18242 if (A != B)
18243 return (1);
18244 if (A != 0x1.999999999999ap-4)
18245 return (1);
18246 return (0);
18248 return 0;
18250 _ACEOF
18251 rm -f conftest$ac_exeext
18252 if { (ac_try="$ac_link"
18253 case "(($ac_try" in
18254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18255 *) ac_try_echo=$ac_try;;
18256 esac
18257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18258 (eval "$ac_link") 2>&5
18259 ac_status=$?
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18262 { (case "(($ac_try" in
18263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264 *) ac_try_echo=$ac_try;;
18265 esac
18266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267 (eval "$ac_try") 2>&5
18268 ac_status=$?
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); }; }; then
18271 llvm_cv_c_printf_a=yes
18272 else
18273 echo "$as_me: program exited with status $ac_status" >&5
18274 echo "$as_me: failed program was:" >&5
18275 sed 's/^/| /' conftest.$ac_ext >&5
18277 ( exit $ac_status )
18278 llvmac_cv_c_printf_a=no
18280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18284 ac_ext=c
18285 ac_cpp='$CPP $CPPFLAGS'
18286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18291 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18292 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18293 if test "$llvm_cv_c_printf_a" = "yes"; then
18295 cat >>confdefs.h <<\_ACEOF
18296 #define HAVE_PRINTF_A 1
18297 _ACEOF
18302 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18303 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18304 if test "${ac_cv_func_rand48+set}" = set; then
18305 echo $ECHO_N "(cached) $ECHO_C" >&6
18306 else
18307 ac_ext=cpp
18308 ac_cpp='$CXXCPP $CPPFLAGS'
18309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18313 cat >conftest.$ac_ext <<_ACEOF
18314 /* confdefs.h. */
18315 _ACEOF
18316 cat confdefs.h >>conftest.$ac_ext
18317 cat >>conftest.$ac_ext <<_ACEOF
18318 /* end confdefs.h. */
18319 #include <stdlib.h>
18321 main ()
18323 srand48(0);lrand48();drand48();
18325 return 0;
18327 _ACEOF
18328 rm -f conftest.$ac_objext
18329 if { (ac_try="$ac_compile"
18330 case "(($ac_try" in
18331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332 *) ac_try_echo=$ac_try;;
18333 esac
18334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335 (eval "$ac_compile") 2>conftest.er1
18336 ac_status=$?
18337 grep -v '^ *+' conftest.er1 >conftest.err
18338 rm -f conftest.er1
18339 cat conftest.err >&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); } &&
18342 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18343 { (case "(($ac_try" in
18344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18345 *) ac_try_echo=$ac_try;;
18346 esac
18347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18348 (eval "$ac_try") 2>&5
18349 ac_status=$?
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; } &&
18352 { ac_try='test -s conftest.$ac_objext'
18353 { (case "(($ac_try" in
18354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18355 *) ac_try_echo=$ac_try;;
18356 esac
18357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18358 (eval "$ac_try") 2>&5
18359 ac_status=$?
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); }; }; then
18362 ac_cv_func_rand48=yes
18363 else
18364 echo "$as_me: failed program was:" >&5
18365 sed 's/^/| /' conftest.$ac_ext >&5
18367 ac_cv_func_rand48=no
18370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18371 ac_ext=c
18372 ac_cpp='$CPP $CPPFLAGS'
18373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18378 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18379 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18381 if test "$ac_cv_func_rand48" = "yes" ; then
18383 cat >>confdefs.h <<\_ACEOF
18384 #define HAVE_RAND48 1
18385 _ACEOF
18391 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18392 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18393 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18394 echo $ECHO_N "(cached) $ECHO_C" >&6
18395 else
18396 ac_ext=cpp
18397 ac_cpp='$CXXCPP $CPPFLAGS'
18398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18402 cat >conftest.$ac_ext <<_ACEOF
18403 /* confdefs.h. */
18404 _ACEOF
18405 cat confdefs.h >>conftest.$ac_ext
18406 cat >>conftest.$ac_ext <<_ACEOF
18407 /* end confdefs.h. */
18408 #include <math.h>
18410 main ()
18412 float f; isnan(f);
18414 return 0;
18416 _ACEOF
18417 rm -f conftest.$ac_objext
18418 if { (ac_try="$ac_compile"
18419 case "(($ac_try" in
18420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18421 *) ac_try_echo=$ac_try;;
18422 esac
18423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18424 (eval "$ac_compile") 2>conftest.er1
18425 ac_status=$?
18426 grep -v '^ *+' conftest.er1 >conftest.err
18427 rm -f conftest.er1
18428 cat conftest.err >&5
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); } &&
18431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18432 { (case "(($ac_try" in
18433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18434 *) ac_try_echo=$ac_try;;
18435 esac
18436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18437 (eval "$ac_try") 2>&5
18438 ac_status=$?
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); }; } &&
18441 { ac_try='test -s conftest.$ac_objext'
18442 { (case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18445 esac
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_try") 2>&5
18448 ac_status=$?
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; }; then
18451 ac_cv_func_isnan_in_math_h=yes
18452 else
18453 echo "$as_me: failed program was:" >&5
18454 sed 's/^/| /' conftest.$ac_ext >&5
18456 ac_cv_func_isnan_in_math_h=no
18459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18460 ac_ext=c
18461 ac_cpp='$CPP $CPPFLAGS'
18462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18467 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18468 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18471 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18473 cat >>confdefs.h <<\_ACEOF
18474 #define HAVE_ISNAN_IN_MATH_H 1
18475 _ACEOF
18479 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18480 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18481 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18482 echo $ECHO_N "(cached) $ECHO_C" >&6
18483 else
18484 ac_ext=cpp
18485 ac_cpp='$CXXCPP $CPPFLAGS'
18486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18490 cat >conftest.$ac_ext <<_ACEOF
18491 /* confdefs.h. */
18492 _ACEOF
18493 cat confdefs.h >>conftest.$ac_ext
18494 cat >>conftest.$ac_ext <<_ACEOF
18495 /* end confdefs.h. */
18496 #include <cmath>
18498 main ()
18500 float f; isnan(f);
18502 return 0;
18504 _ACEOF
18505 rm -f conftest.$ac_objext
18506 if { (ac_try="$ac_compile"
18507 case "(($ac_try" in
18508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509 *) ac_try_echo=$ac_try;;
18510 esac
18511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512 (eval "$ac_compile") 2>conftest.er1
18513 ac_status=$?
18514 grep -v '^ *+' conftest.er1 >conftest.err
18515 rm -f conftest.er1
18516 cat conftest.err >&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); } &&
18519 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18520 { (case "(($ac_try" in
18521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18522 *) ac_try_echo=$ac_try;;
18523 esac
18524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18525 (eval "$ac_try") 2>&5
18526 ac_status=$?
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); }; } &&
18529 { ac_try='test -s conftest.$ac_objext'
18530 { (case "(($ac_try" in
18531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18532 *) ac_try_echo=$ac_try;;
18533 esac
18534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18535 (eval "$ac_try") 2>&5
18536 ac_status=$?
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); }; }; then
18539 ac_cv_func_isnan_in_cmath=yes
18540 else
18541 echo "$as_me: failed program was:" >&5
18542 sed 's/^/| /' conftest.$ac_ext >&5
18544 ac_cv_func_isnan_in_cmath=no
18547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18548 ac_ext=c
18549 ac_cpp='$CPP $CPPFLAGS'
18550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18555 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18556 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18558 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18560 cat >>confdefs.h <<\_ACEOF
18561 #define HAVE_ISNAN_IN_CMATH 1
18562 _ACEOF
18566 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18567 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18568 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18569 echo $ECHO_N "(cached) $ECHO_C" >&6
18570 else
18571 ac_ext=cpp
18572 ac_cpp='$CXXCPP $CPPFLAGS'
18573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18577 cat >conftest.$ac_ext <<_ACEOF
18578 /* confdefs.h. */
18579 _ACEOF
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h. */
18583 #include <cmath>
18585 main ()
18587 float f; std::isnan(f);
18589 return 0;
18591 _ACEOF
18592 rm -f conftest.$ac_objext
18593 if { (ac_try="$ac_compile"
18594 case "(($ac_try" in
18595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596 *) ac_try_echo=$ac_try;;
18597 esac
18598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599 (eval "$ac_compile") 2>conftest.er1
18600 ac_status=$?
18601 grep -v '^ *+' conftest.er1 >conftest.err
18602 rm -f conftest.er1
18603 cat conftest.err >&5
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); } &&
18606 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18607 { (case "(($ac_try" in
18608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18609 *) ac_try_echo=$ac_try;;
18610 esac
18611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18612 (eval "$ac_try") 2>&5
18613 ac_status=$?
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); }; } &&
18616 { ac_try='test -s conftest.$ac_objext'
18617 { (case "(($ac_try" in
18618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619 *) ac_try_echo=$ac_try;;
18620 esac
18621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18622 (eval "$ac_try") 2>&5
18623 ac_status=$?
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); }; }; then
18626 ac_cv_func_std_isnan_in_cmath=yes
18627 else
18628 echo "$as_me: failed program was:" >&5
18629 sed 's/^/| /' conftest.$ac_ext >&5
18631 ac_cv_func_std_isnan_in_cmath=no
18634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18635 ac_ext=c
18636 ac_cpp='$CPP $CPPFLAGS'
18637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18642 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18643 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18645 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18647 cat >>confdefs.h <<\_ACEOF
18648 #define HAVE_STD_ISNAN_IN_CMATH 1
18649 _ACEOF
18654 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18655 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18656 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18657 echo $ECHO_N "(cached) $ECHO_C" >&6
18658 else
18659 ac_ext=cpp
18660 ac_cpp='$CXXCPP $CPPFLAGS'
18661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18665 cat >conftest.$ac_ext <<_ACEOF
18666 /* confdefs.h. */
18667 _ACEOF
18668 cat confdefs.h >>conftest.$ac_ext
18669 cat >>conftest.$ac_ext <<_ACEOF
18670 /* end confdefs.h. */
18671 #include <math.h>
18673 main ()
18675 float f; isinf(f);
18677 return 0;
18679 _ACEOF
18680 rm -f conftest.$ac_objext
18681 if { (ac_try="$ac_compile"
18682 case "(($ac_try" in
18683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18684 *) ac_try_echo=$ac_try;;
18685 esac
18686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18687 (eval "$ac_compile") 2>conftest.er1
18688 ac_status=$?
18689 grep -v '^ *+' conftest.er1 >conftest.err
18690 rm -f conftest.er1
18691 cat conftest.err >&5
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); } &&
18694 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18695 { (case "(($ac_try" in
18696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697 *) ac_try_echo=$ac_try;;
18698 esac
18699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18700 (eval "$ac_try") 2>&5
18701 ac_status=$?
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; } &&
18704 { ac_try='test -s conftest.$ac_objext'
18705 { (case "(($ac_try" in
18706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18707 *) ac_try_echo=$ac_try;;
18708 esac
18709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18710 (eval "$ac_try") 2>&5
18711 ac_status=$?
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); }; }; then
18714 ac_cv_func_isinf_in_math_h=yes
18715 else
18716 echo "$as_me: failed program was:" >&5
18717 sed 's/^/| /' conftest.$ac_ext >&5
18719 ac_cv_func_isinf_in_math_h=no
18722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18723 ac_ext=c
18724 ac_cpp='$CPP $CPPFLAGS'
18725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18730 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18731 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18733 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18735 cat >>confdefs.h <<\_ACEOF
18736 #define HAVE_ISINF_IN_MATH_H 1
18737 _ACEOF
18741 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18742 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18743 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18744 echo $ECHO_N "(cached) $ECHO_C" >&6
18745 else
18746 ac_ext=cpp
18747 ac_cpp='$CXXCPP $CPPFLAGS'
18748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18752 cat >conftest.$ac_ext <<_ACEOF
18753 /* confdefs.h. */
18754 _ACEOF
18755 cat confdefs.h >>conftest.$ac_ext
18756 cat >>conftest.$ac_ext <<_ACEOF
18757 /* end confdefs.h. */
18758 #include <cmath>
18760 main ()
18762 float f; isinf(f);
18764 return 0;
18766 _ACEOF
18767 rm -f conftest.$ac_objext
18768 if { (ac_try="$ac_compile"
18769 case "(($ac_try" in
18770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18771 *) ac_try_echo=$ac_try;;
18772 esac
18773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18774 (eval "$ac_compile") 2>conftest.er1
18775 ac_status=$?
18776 grep -v '^ *+' conftest.er1 >conftest.err
18777 rm -f conftest.er1
18778 cat conftest.err >&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); } &&
18781 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18782 { (case "(($ac_try" in
18783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784 *) ac_try_echo=$ac_try;;
18785 esac
18786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18787 (eval "$ac_try") 2>&5
18788 ac_status=$?
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); }; } &&
18791 { ac_try='test -s conftest.$ac_objext'
18792 { (case "(($ac_try" in
18793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18794 *) ac_try_echo=$ac_try;;
18795 esac
18796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18797 (eval "$ac_try") 2>&5
18798 ac_status=$?
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); }; }; then
18801 ac_cv_func_isinf_in_cmath=yes
18802 else
18803 echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18806 ac_cv_func_isinf_in_cmath=no
18809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18810 ac_ext=c
18811 ac_cpp='$CPP $CPPFLAGS'
18812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18817 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18818 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18820 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18822 cat >>confdefs.h <<\_ACEOF
18823 #define HAVE_ISINF_IN_CMATH 1
18824 _ACEOF
18828 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18829 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18830 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18831 echo $ECHO_N "(cached) $ECHO_C" >&6
18832 else
18833 ac_ext=cpp
18834 ac_cpp='$CXXCPP $CPPFLAGS'
18835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18839 cat >conftest.$ac_ext <<_ACEOF
18840 /* confdefs.h. */
18841 _ACEOF
18842 cat confdefs.h >>conftest.$ac_ext
18843 cat >>conftest.$ac_ext <<_ACEOF
18844 /* end confdefs.h. */
18845 #include <cmath>
18847 main ()
18849 float f; std::isinf(f)}
18851 return 0;
18853 _ACEOF
18854 rm -f conftest.$ac_objext
18855 if { (ac_try="$ac_compile"
18856 case "(($ac_try" in
18857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18858 *) ac_try_echo=$ac_try;;
18859 esac
18860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18861 (eval "$ac_compile") 2>conftest.er1
18862 ac_status=$?
18863 grep -v '^ *+' conftest.er1 >conftest.err
18864 rm -f conftest.er1
18865 cat conftest.err >&5
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); } &&
18868 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18869 { (case "(($ac_try" in
18870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18871 *) ac_try_echo=$ac_try;;
18872 esac
18873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18874 (eval "$ac_try") 2>&5
18875 ac_status=$?
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); }; } &&
18878 { ac_try='test -s conftest.$ac_objext'
18879 { (case "(($ac_try" in
18880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881 *) ac_try_echo=$ac_try;;
18882 esac
18883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884 (eval "$ac_try") 2>&5
18885 ac_status=$?
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; }; then
18888 ac_cv_func_std_isinf_in_cmath=yes
18889 else
18890 echo "$as_me: failed program was:" >&5
18891 sed 's/^/| /' conftest.$ac_ext >&5
18893 ac_cv_func_std_isinf_in_cmath=no
18896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18897 ac_ext=c
18898 ac_cpp='$CPP $CPPFLAGS'
18899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18904 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18905 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18907 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18909 cat >>confdefs.h <<\_ACEOF
18910 #define HAVE_STD_ISINF_IN_CMATH 1
18911 _ACEOF
18915 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18916 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18917 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18918 echo $ECHO_N "(cached) $ECHO_C" >&6
18919 else
18920 ac_ext=cpp
18921 ac_cpp='$CXXCPP $CPPFLAGS'
18922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18926 cat >conftest.$ac_ext <<_ACEOF
18927 /* confdefs.h. */
18928 _ACEOF
18929 cat confdefs.h >>conftest.$ac_ext
18930 cat >>conftest.$ac_ext <<_ACEOF
18931 /* end confdefs.h. */
18932 #include <ieeefp.h>
18934 main ()
18936 float f; finite(f);
18938 return 0;
18940 _ACEOF
18941 rm -f conftest.$ac_objext
18942 if { (ac_try="$ac_compile"
18943 case "(($ac_try" in
18944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18945 *) ac_try_echo=$ac_try;;
18946 esac
18947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18948 (eval "$ac_compile") 2>conftest.er1
18949 ac_status=$?
18950 grep -v '^ *+' conftest.er1 >conftest.err
18951 rm -f conftest.er1
18952 cat conftest.err >&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); } &&
18955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18956 { (case "(($ac_try" in
18957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18958 *) ac_try_echo=$ac_try;;
18959 esac
18960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18961 (eval "$ac_try") 2>&5
18962 ac_status=$?
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); }; } &&
18965 { ac_try='test -s conftest.$ac_objext'
18966 { (case "(($ac_try" in
18967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18968 *) ac_try_echo=$ac_try;;
18969 esac
18970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18971 (eval "$ac_try") 2>&5
18972 ac_status=$?
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); }; }; then
18975 ac_cv_func_finite_in_ieeefp_h=yes
18976 else
18977 echo "$as_me: failed program was:" >&5
18978 sed 's/^/| /' conftest.$ac_ext >&5
18980 ac_cv_func_finite_in_ieeefp_h=no
18983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18984 ac_ext=c
18985 ac_cpp='$CPP $CPPFLAGS'
18986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18991 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18992 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18994 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18996 cat >>confdefs.h <<\_ACEOF
18997 #define HAVE_FINITE_IN_IEEEFP_H 1
18998 _ACEOF
19004 if test "$llvm_cv_platform_type" = "Unix" ; then
19007 for ac_header in stdlib.h unistd.h
19009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19014 echo $ECHO_N "(cached) $ECHO_C" >&6
19016 ac_res=`eval echo '${'$as_ac_Header'}'`
19017 { echo "$as_me:$LINENO: result: $ac_res" >&5
19018 echo "${ECHO_T}$ac_res" >&6; }
19019 else
19020 # Is the header compilable?
19021 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19023 cat >conftest.$ac_ext <<_ACEOF
19024 /* confdefs.h. */
19025 _ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19029 $ac_includes_default
19030 #include <$ac_header>
19031 _ACEOF
19032 rm -f conftest.$ac_objext
19033 if { (ac_try="$ac_compile"
19034 case "(($ac_try" in
19035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19036 *) ac_try_echo=$ac_try;;
19037 esac
19038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19039 (eval "$ac_compile") 2>conftest.er1
19040 ac_status=$?
19041 grep -v '^ *+' conftest.er1 >conftest.err
19042 rm -f conftest.er1
19043 cat conftest.err >&5
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); } &&
19046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19047 { (case "(($ac_try" in
19048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049 *) ac_try_echo=$ac_try;;
19050 esac
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052 (eval "$ac_try") 2>&5
19053 ac_status=$?
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); }; } &&
19056 { ac_try='test -s conftest.$ac_objext'
19057 { (case "(($ac_try" in
19058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059 *) ac_try_echo=$ac_try;;
19060 esac
19061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19062 (eval "$ac_try") 2>&5
19063 ac_status=$?
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); }; }; then
19066 ac_header_compiler=yes
19067 else
19068 echo "$as_me: failed program was:" >&5
19069 sed 's/^/| /' conftest.$ac_ext >&5
19071 ac_header_compiler=no
19074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19076 echo "${ECHO_T}$ac_header_compiler" >&6; }
19078 # Is the header present?
19079 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19081 cat >conftest.$ac_ext <<_ACEOF
19082 /* confdefs.h. */
19083 _ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h. */
19087 #include <$ac_header>
19088 _ACEOF
19089 if { (ac_try="$ac_cpp conftest.$ac_ext"
19090 case "(($ac_try" in
19091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092 *) ac_try_echo=$ac_try;;
19093 esac
19094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19096 ac_status=$?
19097 grep -v '^ *+' conftest.er1 >conftest.err
19098 rm -f conftest.er1
19099 cat conftest.err >&5
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); } >/dev/null; then
19102 if test -s conftest.err; then
19103 ac_cpp_err=$ac_c_preproc_warn_flag
19104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19105 else
19106 ac_cpp_err=
19108 else
19109 ac_cpp_err=yes
19111 if test -z "$ac_cpp_err"; then
19112 ac_header_preproc=yes
19113 else
19114 echo "$as_me: failed program was:" >&5
19115 sed 's/^/| /' conftest.$ac_ext >&5
19117 ac_header_preproc=no
19120 rm -f conftest.err conftest.$ac_ext
19121 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19122 echo "${ECHO_T}$ac_header_preproc" >&6; }
19124 # So? What about this header?
19125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19126 yes:no: )
19127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19131 ac_header_preproc=yes
19133 no:yes:* )
19134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19141 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19146 ( cat <<\_ASBOX
19147 ## ----------------------------------- ##
19148 ## Report this to llvmbugs@cs.uiuc.edu ##
19149 ## ----------------------------------- ##
19150 _ASBOX
19151 ) | sed "s/^/$as_me: WARNING: /" >&2
19153 esac
19154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19157 echo $ECHO_N "(cached) $ECHO_C" >&6
19158 else
19159 eval "$as_ac_Header=\$ac_header_preproc"
19161 ac_res=`eval echo '${'$as_ac_Header'}'`
19162 { echo "$as_me:$LINENO: result: $ac_res" >&5
19163 echo "${ECHO_T}$ac_res" >&6; }
19166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19167 cat >>confdefs.h <<_ACEOF
19168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19169 _ACEOF
19173 done
19176 for ac_func in getpagesize
19178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19182 echo $ECHO_N "(cached) $ECHO_C" >&6
19183 else
19184 cat >conftest.$ac_ext <<_ACEOF
19185 /* confdefs.h. */
19186 _ACEOF
19187 cat confdefs.h >>conftest.$ac_ext
19188 cat >>conftest.$ac_ext <<_ACEOF
19189 /* end confdefs.h. */
19190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19192 #define $ac_func innocuous_$ac_func
19194 /* System header to define __stub macros and hopefully few prototypes,
19195 which can conflict with char $ac_func (); below.
19196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19197 <limits.h> exists even on freestanding compilers. */
19199 #ifdef __STDC__
19200 # include <limits.h>
19201 #else
19202 # include <assert.h>
19203 #endif
19205 #undef $ac_func
19207 /* Override any GCC internal prototype to avoid an error.
19208 Use char because int might match the return type of a GCC
19209 builtin and then its argument prototype would still apply. */
19210 #ifdef __cplusplus
19211 extern "C"
19212 #endif
19213 char $ac_func ();
19214 /* The GNU C library defines this for functions which it implements
19215 to always fail with ENOSYS. Some functions are actually named
19216 something starting with __ and the normal name is an alias. */
19217 #if defined __stub_$ac_func || defined __stub___$ac_func
19218 choke me
19219 #endif
19222 main ()
19224 return $ac_func ();
19226 return 0;
19228 _ACEOF
19229 rm -f conftest.$ac_objext conftest$ac_exeext
19230 if { (ac_try="$ac_link"
19231 case "(($ac_try" in
19232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19233 *) ac_try_echo=$ac_try;;
19234 esac
19235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19236 (eval "$ac_link") 2>conftest.er1
19237 ac_status=$?
19238 grep -v '^ *+' conftest.er1 >conftest.err
19239 rm -f conftest.er1
19240 cat conftest.err >&5
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); } &&
19243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19244 { (case "(($ac_try" in
19245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19246 *) ac_try_echo=$ac_try;;
19247 esac
19248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19249 (eval "$ac_try") 2>&5
19250 ac_status=$?
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); }; } &&
19253 { ac_try='test -s conftest$ac_exeext'
19254 { (case "(($ac_try" in
19255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19256 *) ac_try_echo=$ac_try;;
19257 esac
19258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19259 (eval "$ac_try") 2>&5
19260 ac_status=$?
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); }; }; then
19263 eval "$as_ac_var=yes"
19264 else
19265 echo "$as_me: failed program was:" >&5
19266 sed 's/^/| /' conftest.$ac_ext >&5
19268 eval "$as_ac_var=no"
19271 rm -f core conftest.err conftest.$ac_objext \
19272 conftest$ac_exeext conftest.$ac_ext
19274 ac_res=`eval echo '${'$as_ac_var'}'`
19275 { echo "$as_me:$LINENO: result: $ac_res" >&5
19276 echo "${ECHO_T}$ac_res" >&6; }
19277 if test `eval echo '${'$as_ac_var'}'` = yes; then
19278 cat >>confdefs.h <<_ACEOF
19279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19280 _ACEOF
19283 done
19285 { echo "$as_me:$LINENO: checking for working mmap" >&5
19286 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19287 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19288 echo $ECHO_N "(cached) $ECHO_C" >&6
19289 else
19290 if test "$cross_compiling" = yes; then
19291 ac_cv_func_mmap_fixed_mapped=no
19292 else
19293 cat >conftest.$ac_ext <<_ACEOF
19294 /* confdefs.h. */
19295 _ACEOF
19296 cat confdefs.h >>conftest.$ac_ext
19297 cat >>conftest.$ac_ext <<_ACEOF
19298 /* end confdefs.h. */
19299 $ac_includes_default
19300 /* malloc might have been renamed as rpl_malloc. */
19301 #undef malloc
19303 /* Thanks to Mike Haertel and Jim Avera for this test.
19304 Here is a matrix of mmap possibilities:
19305 mmap private not fixed
19306 mmap private fixed at somewhere currently unmapped
19307 mmap private fixed at somewhere already mapped
19308 mmap shared not fixed
19309 mmap shared fixed at somewhere currently unmapped
19310 mmap shared fixed at somewhere already mapped
19311 For private mappings, we should verify that changes cannot be read()
19312 back from the file, nor mmap's back from the file at a different
19313 address. (There have been systems where private was not correctly
19314 implemented like the infamous i386 svr4.0, and systems where the
19315 VM page cache was not coherent with the file system buffer cache
19316 like early versions of FreeBSD and possibly contemporary NetBSD.)
19317 For shared mappings, we should conversely verify that changes get
19318 propagated back to all the places they're supposed to be.
19320 Grep wants private fixed already mapped.
19321 The main things grep needs to know about mmap are:
19322 * does it exist and is it safe to write into the mmap'd area
19323 * how to use it (BSD variants) */
19325 #include <fcntl.h>
19326 #include <sys/mman.h>
19328 #if !STDC_HEADERS && !HAVE_STDLIB_H
19329 char *malloc ();
19330 #endif
19332 /* This mess was copied from the GNU getpagesize.h. */
19333 #if !HAVE_GETPAGESIZE
19334 /* Assume that all systems that can run configure have sys/param.h. */
19335 # if !HAVE_SYS_PARAM_H
19336 # define HAVE_SYS_PARAM_H 1
19337 # endif
19339 # ifdef _SC_PAGESIZE
19340 # define getpagesize() sysconf(_SC_PAGESIZE)
19341 # else /* no _SC_PAGESIZE */
19342 # if HAVE_SYS_PARAM_H
19343 # include <sys/param.h>
19344 # ifdef EXEC_PAGESIZE
19345 # define getpagesize() EXEC_PAGESIZE
19346 # else /* no EXEC_PAGESIZE */
19347 # ifdef NBPG
19348 # define getpagesize() NBPG * CLSIZE
19349 # ifndef CLSIZE
19350 # define CLSIZE 1
19351 # endif /* no CLSIZE */
19352 # else /* no NBPG */
19353 # ifdef NBPC
19354 # define getpagesize() NBPC
19355 # else /* no NBPC */
19356 # ifdef PAGESIZE
19357 # define getpagesize() PAGESIZE
19358 # endif /* PAGESIZE */
19359 # endif /* no NBPC */
19360 # endif /* no NBPG */
19361 # endif /* no EXEC_PAGESIZE */
19362 # else /* no HAVE_SYS_PARAM_H */
19363 # define getpagesize() 8192 /* punt totally */
19364 # endif /* no HAVE_SYS_PARAM_H */
19365 # endif /* no _SC_PAGESIZE */
19367 #endif /* no HAVE_GETPAGESIZE */
19370 main ()
19372 char *data, *data2, *data3;
19373 int i, pagesize;
19374 int fd;
19376 pagesize = getpagesize ();
19378 /* First, make a file with some known garbage in it. */
19379 data = (char *) malloc (pagesize);
19380 if (!data)
19381 return 1;
19382 for (i = 0; i < pagesize; ++i)
19383 *(data + i) = rand ();
19384 umask (0);
19385 fd = creat ("conftest.mmap", 0600);
19386 if (fd < 0)
19387 return 1;
19388 if (write (fd, data, pagesize) != pagesize)
19389 return 1;
19390 close (fd);
19392 /* Next, try to mmap the file at a fixed address which already has
19393 something else allocated at it. If we can, also make sure that
19394 we see the same garbage. */
19395 fd = open ("conftest.mmap", O_RDWR);
19396 if (fd < 0)
19397 return 1;
19398 data2 = (char *) malloc (2 * pagesize);
19399 if (!data2)
19400 return 1;
19401 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19402 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19403 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19404 return 1;
19405 for (i = 0; i < pagesize; ++i)
19406 if (*(data + i) != *(data2 + i))
19407 return 1;
19409 /* Finally, make sure that changes to the mapped area do not
19410 percolate back to the file as seen by read(). (This is a bug on
19411 some variants of i386 svr4.0.) */
19412 for (i = 0; i < pagesize; ++i)
19413 *(data2 + i) = *(data2 + i) + 1;
19414 data3 = (char *) malloc (pagesize);
19415 if (!data3)
19416 return 1;
19417 if (read (fd, data3, pagesize) != pagesize)
19418 return 1;
19419 for (i = 0; i < pagesize; ++i)
19420 if (*(data + i) != *(data3 + i))
19421 return 1;
19422 close (fd);
19423 return 0;
19425 _ACEOF
19426 rm -f conftest$ac_exeext
19427 if { (ac_try="$ac_link"
19428 case "(($ac_try" in
19429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19430 *) ac_try_echo=$ac_try;;
19431 esac
19432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19433 (eval "$ac_link") 2>&5
19434 ac_status=$?
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19437 { (case "(($ac_try" in
19438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19439 *) ac_try_echo=$ac_try;;
19440 esac
19441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19442 (eval "$ac_try") 2>&5
19443 ac_status=$?
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }; }; then
19446 ac_cv_func_mmap_fixed_mapped=yes
19447 else
19448 echo "$as_me: program exited with status $ac_status" >&5
19449 echo "$as_me: failed program was:" >&5
19450 sed 's/^/| /' conftest.$ac_ext >&5
19452 ( exit $ac_status )
19453 ac_cv_func_mmap_fixed_mapped=no
19455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19460 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19461 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19462 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19464 cat >>confdefs.h <<\_ACEOF
19465 #define HAVE_MMAP 1
19466 _ACEOF
19469 rm -f conftest.mmap
19471 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19472 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19473 if test "${ac_cv_func_mmap_file+set}" = set; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19475 else
19476 ac_ext=c
19477 ac_cpp='$CPP $CPPFLAGS'
19478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19482 if test "$cross_compiling" = yes; then
19483 ac_cv_func_mmap_file=no
19484 else
19485 cat >conftest.$ac_ext <<_ACEOF
19487 /* confdefs.h. */
19488 _ACEOF
19489 cat confdefs.h >>conftest.$ac_ext
19490 cat >>conftest.$ac_ext <<_ACEOF
19491 /* end confdefs.h. */
19493 #include <sys/types.h>
19494 #include <sys/mman.h>
19495 #include <fcntl.h>
19498 main ()
19501 int fd;
19502 fd = creat ("foo",0777);
19503 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19504 unlink ("foo");
19505 return (fd != (int) MAP_FAILED);
19507 return 0;
19509 _ACEOF
19510 rm -f conftest$ac_exeext
19511 if { (ac_try="$ac_link"
19512 case "(($ac_try" in
19513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514 *) ac_try_echo=$ac_try;;
19515 esac
19516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517 (eval "$ac_link") 2>&5
19518 ac_status=$?
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19521 { (case "(($ac_try" in
19522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19523 *) ac_try_echo=$ac_try;;
19524 esac
19525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19526 (eval "$ac_try") 2>&5
19527 ac_status=$?
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); }; }; then
19530 ac_cv_func_mmap_file=yes
19531 else
19532 echo "$as_me: program exited with status $ac_status" >&5
19533 echo "$as_me: failed program was:" >&5
19534 sed 's/^/| /' conftest.$ac_ext >&5
19536 ( exit $ac_status )
19537 ac_cv_func_mmap_file=no
19539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19543 ac_ext=c
19544 ac_cpp='$CPP $CPPFLAGS'
19545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19551 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19552 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19553 if test "$ac_cv_func_mmap_file" = yes; then
19555 cat >>confdefs.h <<\_ACEOF
19556 #define HAVE_MMAP_FILE
19557 _ACEOF
19559 MMAP_FILE=yes
19563 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19564 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19565 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19566 echo $ECHO_N "(cached) $ECHO_C" >&6
19567 else
19568 if test "$llvm_cv_os_type" = "Interix" ; then
19569 ac_cv_need_dev_zero_for_mmap=yes
19570 else
19571 ac_cv_need_dev_zero_for_mmap=no
19575 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19576 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19577 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19579 cat >>confdefs.h <<\_ACEOF
19580 #define NEED_DEV_ZERO_FOR_MMAP 1
19581 _ACEOF
19585 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19586 then
19587 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19588 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19590 if test "$ac_cv_func_mmap_file" = "no"
19591 then
19592 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19593 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19597 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19598 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19599 cat >conftest.$ac_ext <<_ACEOF
19600 /* confdefs.h. */
19601 _ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h. */
19605 int main() {
19606 volatile unsigned long val = 1;
19607 __sync_synchronize();
19608 __sync_val_compare_and_swap(&val, 1, 0);
19609 __sync_add_and_fetch(&val, 1);
19610 __sync_sub_and_fetch(&val, 1);
19611 return 0;
19614 _ACEOF
19615 rm -f conftest.$ac_objext conftest$ac_exeext
19616 if { (ac_try="$ac_link"
19617 case "(($ac_try" in
19618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619 *) ac_try_echo=$ac_try;;
19620 esac
19621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622 (eval "$ac_link") 2>conftest.er1
19623 ac_status=$?
19624 grep -v '^ *+' conftest.er1 >conftest.err
19625 rm -f conftest.er1
19626 cat conftest.err >&5
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); } &&
19629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19630 { (case "(($ac_try" in
19631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632 *) ac_try_echo=$ac_try;;
19633 esac
19634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635 (eval "$ac_try") 2>&5
19636 ac_status=$?
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; } &&
19639 { ac_try='test -s conftest$ac_exeext'
19640 { (case "(($ac_try" in
19641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19642 *) ac_try_echo=$ac_try;;
19643 esac
19644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19645 (eval "$ac_try") 2>&5
19646 ac_status=$?
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); }; }; then
19649 { echo "$as_me:$LINENO: result: yes" >&5
19650 echo "${ECHO_T}yes" >&6; }
19652 cat >>confdefs.h <<\_ACEOF
19653 #define LLVM_MULTITHREADED 1
19654 _ACEOF
19656 else
19657 echo "$as_me: failed program was:" >&5
19658 sed 's/^/| /' conftest.$ac_ext >&5
19660 { echo "$as_me:$LINENO: result: no" >&5
19661 echo "${ECHO_T}no" >&6; }
19663 cat >>confdefs.h <<\_ACEOF
19664 #define LLVM_MULTITHREADED 0
19665 _ACEOF
19667 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19668 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19671 rm -f core conftest.err conftest.$ac_objext \
19672 conftest$ac_exeext conftest.$ac_ext
19676 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19677 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19678 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19679 if test "${llvm_cv_linux_mixed+set}" = set; then
19680 echo $ECHO_N "(cached) $ECHO_C" >&6
19681 else
19682 ac_ext=c
19683 ac_cpp='$CPP $CPPFLAGS'
19684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19688 cat >conftest.$ac_ext <<_ACEOF
19689 /* confdefs.h. */
19690 _ACEOF
19691 cat confdefs.h >>conftest.$ac_ext
19692 cat >>conftest.$ac_ext <<_ACEOF
19693 /* end confdefs.h. */
19694 #ifndef __x86_64__
19695 error: Not x86-64 even if uname says so!
19696 #endif
19699 main ()
19703 return 0;
19705 _ACEOF
19706 rm -f conftest.$ac_objext
19707 if { (ac_try="$ac_compile"
19708 case "(($ac_try" in
19709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19710 *) ac_try_echo=$ac_try;;
19711 esac
19712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19713 (eval "$ac_compile") 2>conftest.er1
19714 ac_status=$?
19715 grep -v '^ *+' conftest.er1 >conftest.err
19716 rm -f conftest.er1
19717 cat conftest.err >&5
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); } &&
19720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19721 { (case "(($ac_try" in
19722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19723 *) ac_try_echo=$ac_try;;
19724 esac
19725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19726 (eval "$ac_try") 2>&5
19727 ac_status=$?
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; } &&
19730 { ac_try='test -s conftest.$ac_objext'
19731 { (case "(($ac_try" in
19732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19733 *) ac_try_echo=$ac_try;;
19734 esac
19735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19736 (eval "$ac_try") 2>&5
19737 ac_status=$?
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); }; }; then
19740 llvm_cv_linux_mixed=no
19741 else
19742 echo "$as_me: failed program was:" >&5
19743 sed 's/^/| /' conftest.$ac_ext >&5
19745 llvm_cv_linux_mixed=yes
19748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19749 ac_ext=c
19750 ac_cpp='$CPP $CPPFLAGS'
19751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19757 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19758 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19760 if test "$llvm_cv_linux_mixed" = "yes"; then
19761 llvm_cv_target_arch="x86"
19762 ARCH="x86"
19767 for ac_func in __dso_handle
19769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19770 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19772 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19773 echo $ECHO_N "(cached) $ECHO_C" >&6
19774 else
19775 cat >conftest.$ac_ext <<_ACEOF
19776 /* confdefs.h. */
19777 _ACEOF
19778 cat confdefs.h >>conftest.$ac_ext
19779 cat >>conftest.$ac_ext <<_ACEOF
19780 /* end confdefs.h. */
19781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19783 #define $ac_func innocuous_$ac_func
19785 /* System header to define __stub macros and hopefully few prototypes,
19786 which can conflict with char $ac_func (); below.
19787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19788 <limits.h> exists even on freestanding compilers. */
19790 #ifdef __STDC__
19791 # include <limits.h>
19792 #else
19793 # include <assert.h>
19794 #endif
19796 #undef $ac_func
19798 /* Override any GCC internal prototype to avoid an error.
19799 Use char because int might match the return type of a GCC
19800 builtin and then its argument prototype would still apply. */
19801 #ifdef __cplusplus
19802 extern "C"
19803 #endif
19804 char $ac_func ();
19805 /* The GNU C library defines this for functions which it implements
19806 to always fail with ENOSYS. Some functions are actually named
19807 something starting with __ and the normal name is an alias. */
19808 #if defined __stub_$ac_func || defined __stub___$ac_func
19809 choke me
19810 #endif
19813 main ()
19815 return $ac_func ();
19817 return 0;
19819 _ACEOF
19820 rm -f conftest.$ac_objext conftest$ac_exeext
19821 if { (ac_try="$ac_link"
19822 case "(($ac_try" in
19823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19824 *) ac_try_echo=$ac_try;;
19825 esac
19826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19827 (eval "$ac_link") 2>conftest.er1
19828 ac_status=$?
19829 grep -v '^ *+' conftest.er1 >conftest.err
19830 rm -f conftest.er1
19831 cat conftest.err >&5
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); } &&
19834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19835 { (case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19838 esac
19839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840 (eval "$ac_try") 2>&5
19841 ac_status=$?
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); }; } &&
19844 { ac_try='test -s conftest$ac_exeext'
19845 { (case "(($ac_try" in
19846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19847 *) ac_try_echo=$ac_try;;
19848 esac
19849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19850 (eval "$ac_try") 2>&5
19851 ac_status=$?
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); }; }; then
19854 eval "$as_ac_var=yes"
19855 else
19856 echo "$as_me: failed program was:" >&5
19857 sed 's/^/| /' conftest.$ac_ext >&5
19859 eval "$as_ac_var=no"
19862 rm -f core conftest.err conftest.$ac_objext \
19863 conftest$ac_exeext conftest.$ac_ext
19865 ac_res=`eval echo '${'$as_ac_var'}'`
19866 { echo "$as_me:$LINENO: result: $ac_res" >&5
19867 echo "${ECHO_T}$ac_res" >&6; }
19868 if test `eval echo '${'$as_ac_var'}'` = yes; then
19869 cat >>confdefs.h <<_ACEOF
19870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19871 _ACEOF
19874 done
19877 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19878 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19879 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19880 echo $ECHO_N "(cached) $ECHO_C" >&6
19881 else
19882 llvm_cv_llvmgcc_sanity="no"
19883 if test -x "$LLVMGCC" ; then
19884 cp /dev/null conftest.c
19885 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19886 grep 'target datalayout =' > /dev/null 2>&1
19887 if test $? -eq 0 ; then
19888 llvm_cv_llvmgcc_sanity="yes"
19890 rm conftest.c
19893 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19894 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
19896 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
19897 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19898 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
19899 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19900 LLVMCC1=$llvmcc1path
19902 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19903 LLVMCC1PLUS=$llvmcc1pluspath
19905 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19906 LLVMGCCDIR=$llvmgccdir
19908 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
19909 LLVMGCC_LANGS=$llvmgcclangs
19911 { echo "$as_me:$LINENO: result: ok" >&5
19912 echo "${ECHO_T}ok" >&6; }
19915 SHLIBEXT=$libltdl_cv_shlibext
19918 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
19921 # Translate the various configuration directories and other basic
19922 # information into substitutions that will end up in Makefile.config.in
19923 # that these configured values can be used by the makefiles
19924 if test "${prefix}" = "NONE" ; then
19925 prefix="/usr/local"
19927 eval LLVM_PREFIX="${prefix}";
19928 eval LLVM_BINDIR="${prefix}/bin";
19929 eval LLVM_LIBDIR="${prefix}/lib";
19930 eval LLVM_DATADIR="${prefix}/share/llvm";
19931 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
19932 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19933 eval LLVM_INCLUDEDIR="${prefix}/include";
19934 eval LLVM_INFODIR="${prefix}/info";
19935 eval LLVM_MANDIR="${prefix}/man";
19936 LLVM_CONFIGTIME=`date`
19948 # Place the various directores into the config.h file as #defines so that we
19949 # can know about the installation paths within LLVM.
19951 cat >>confdefs.h <<_ACEOF
19952 #define LLVM_PREFIX "$LLVM_PREFIX"
19953 _ACEOF
19956 cat >>confdefs.h <<_ACEOF
19957 #define LLVM_BINDIR "$LLVM_BINDIR"
19958 _ACEOF
19961 cat >>confdefs.h <<_ACEOF
19962 #define LLVM_LIBDIR "$LLVM_LIBDIR"
19963 _ACEOF
19966 cat >>confdefs.h <<_ACEOF
19967 #define LLVM_DATADIR "$LLVM_DATADIR"
19968 _ACEOF
19971 cat >>confdefs.h <<_ACEOF
19972 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19973 _ACEOF
19976 cat >>confdefs.h <<_ACEOF
19977 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19978 _ACEOF
19981 cat >>confdefs.h <<_ACEOF
19982 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19983 _ACEOF
19986 cat >>confdefs.h <<_ACEOF
19987 #define LLVM_INFODIR "$LLVM_INFODIR"
19988 _ACEOF
19991 cat >>confdefs.h <<_ACEOF
19992 #define LLVM_MANDIR "$LLVM_MANDIR"
19993 _ACEOF
19996 cat >>confdefs.h <<_ACEOF
19997 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19998 _ACEOF
20001 cat >>confdefs.h <<_ACEOF
20002 #define LLVM_HOSTTRIPLE "$host"
20003 _ACEOF
20006 # Determine which bindings to build.
20007 if test "$BINDINGS_TO_BUILD" = auto ; then
20008 BINDINGS_TO_BUILD=""
20009 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20010 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20013 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20016 # This isn't really configurey, but it avoids having to repeat the list in
20017 # other files.
20018 ALL_BINDINGS=ocaml
20021 # Do any work necessary to ensure that bindings have what they need.
20022 binding_prereqs_failed=0
20023 for a_binding in $BINDINGS_TO_BUILD ; do
20024 case "$a_binding" in
20025 ocaml)
20026 if test "x$OCAMLC" = x ; then
20027 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20028 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20029 binding_prereqs_failed=1
20031 if test "x$OCAMLDEP" = x ; then
20032 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20033 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20034 binding_prereqs_failed=1
20036 if test "x$OCAMLOPT" = x ; then
20037 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20038 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20040 if test "x$with_ocaml_libdir" != xauto ; then
20041 OCAML_LIBDIR=$with_ocaml_libdir
20043 else
20044 ocaml_stdlib="`"$OCAMLC" -where`"
20045 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20046 then
20047 # ocaml stdlib is beneath our prefix; use stdlib
20048 OCAML_LIBDIR=$ocaml_stdlib
20050 else
20051 # ocaml stdlib is outside our prefix; use libdir/ocaml
20052 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20057 esac
20058 done
20059 if test "$binding_prereqs_failed" = 1 ; then
20060 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20061 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20062 { (exit 1); exit 1; }; }
20065 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20066 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20067 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20068 echo $ECHO_N "(cached) $ECHO_C" >&6
20069 else
20070 ac_ext=cpp
20071 ac_cpp='$CXXCPP $CPPFLAGS'
20072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20076 oldcxxflags="$CXXFLAGS"
20077 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20078 cat >conftest.$ac_ext <<_ACEOF
20079 /* confdefs.h. */
20080 _ACEOF
20081 cat confdefs.h >>conftest.$ac_ext
20082 cat >>conftest.$ac_ext <<_ACEOF
20083 /* end confdefs.h. */
20086 main ()
20090 return 0;
20092 _ACEOF
20093 rm -f conftest.$ac_objext
20094 if { (ac_try="$ac_compile"
20095 case "(($ac_try" in
20096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097 *) ac_try_echo=$ac_try;;
20098 esac
20099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20100 (eval "$ac_compile") 2>conftest.er1
20101 ac_status=$?
20102 grep -v '^ *+' conftest.er1 >conftest.err
20103 rm -f conftest.er1
20104 cat conftest.err >&5
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); } &&
20107 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20108 { (case "(($ac_try" in
20109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20110 *) ac_try_echo=$ac_try;;
20111 esac
20112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20113 (eval "$ac_try") 2>&5
20114 ac_status=$?
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); }; } &&
20117 { ac_try='test -s conftest.$ac_objext'
20118 { (case "(($ac_try" in
20119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20120 *) ac_try_echo=$ac_try;;
20121 esac
20122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20123 (eval "$ac_try") 2>&5
20124 ac_status=$?
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); }; }; then
20127 llvm_cv_cxx_visibility_inlines_hidden=yes
20128 else
20129 echo "$as_me: failed program was:" >&5
20130 sed 's/^/| /' conftest.$ac_ext >&5
20132 llvm_cv_cxx_visibility_inlines_hidden=no
20135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20136 CXXFLAGS="$oldcxxflags"
20137 ac_ext=c
20138 ac_cpp='$CPP $CPPFLAGS'
20139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20145 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20146 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20147 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20148 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20150 else
20151 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20156 if test "$llvm_cv_link_use_r" = "yes" ; then
20157 RPATH="-Wl,-R"
20158 else
20159 RPATH="-Wl,-rpath"
20163 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20164 RDYNAMIC="-Wl,-export-dynamic"
20165 else
20166 RDYNAMIC=""
20171 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
20173 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20175 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20177 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20179 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20181 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20184 ac_config_files="$ac_config_files Makefile.config"
20187 ac_config_files="$ac_config_files llvm.spec"
20190 ac_config_files="$ac_config_files docs/doxygen.cfg"
20193 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20196 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20199 ac_config_commands="$ac_config_commands setup"
20201 ac_config_commands="$ac_config_commands Makefile"
20204 ac_config_commands="$ac_config_commands Makefile.common"
20207 ac_config_commands="$ac_config_commands examples/Makefile"
20210 ac_config_commands="$ac_config_commands lib/Makefile"
20213 ac_config_commands="$ac_config_commands runtime/Makefile"
20216 ac_config_commands="$ac_config_commands test/Makefile"
20219 ac_config_commands="$ac_config_commands test/Makefile.tests"
20222 ac_config_commands="$ac_config_commands unittests/Makefile"
20225 ac_config_commands="$ac_config_commands tools/Makefile"
20228 ac_config_commands="$ac_config_commands utils/Makefile"
20231 ac_config_commands="$ac_config_commands projects/Makefile"
20234 ac_config_commands="$ac_config_commands bindings/Makefile"
20237 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20241 cat >confcache <<\_ACEOF
20242 # This file is a shell script that caches the results of configure
20243 # tests run on this system so they can be shared between configure
20244 # scripts and configure runs, see configure's option --config-cache.
20245 # It is not useful on other systems. If it contains results you don't
20246 # want to keep, you may remove or edit it.
20248 # config.status only pays attention to the cache file if you give it
20249 # the --recheck option to rerun configure.
20251 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20252 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20253 # following values.
20255 _ACEOF
20257 # The following way of writing the cache mishandles newlines in values,
20258 # but we know of no workaround that is simple, portable, and efficient.
20259 # So, we kill variables containing newlines.
20260 # Ultrix sh set writes to stderr and can't be redirected directly,
20261 # and sets the high bit in the cache file unless we assign to the vars.
20263 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20264 eval ac_val=\$$ac_var
20265 case $ac_val in #(
20266 *${as_nl}*)
20267 case $ac_var in #(
20268 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20269 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20270 esac
20271 case $ac_var in #(
20272 _ | IFS | as_nl) ;; #(
20273 *) $as_unset $ac_var ;;
20274 esac ;;
20275 esac
20276 done
20278 (set) 2>&1 |
20279 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20280 *${as_nl}ac_space=\ *)
20281 # `set' does not quote correctly, so add quotes (double-quote
20282 # substitution turns \\\\ into \\, and sed turns \\ into \).
20283 sed -n \
20284 "s/'/'\\\\''/g;
20285 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20286 ;; #(
20288 # `set' quotes correctly as required by POSIX, so do not add quotes.
20289 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20291 esac |
20292 sort
20294 sed '
20295 /^ac_cv_env_/b end
20296 t clear
20297 :clear
20298 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20299 t end
20300 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20301 :end' >>confcache
20302 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20303 if test -w "$cache_file"; then
20304 test "x$cache_file" != "x/dev/null" &&
20305 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20306 echo "$as_me: updating cache $cache_file" >&6;}
20307 cat confcache >$cache_file
20308 else
20309 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20310 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20313 rm -f confcache
20315 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20316 # Let make expand exec_prefix.
20317 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20319 DEFS=-DHAVE_CONFIG_H
20321 ac_libobjs=
20322 ac_ltlibobjs=
20323 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20324 # 1. Remove the extension, and $U if already installed.
20325 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20326 ac_i=`echo "$ac_i" | sed "$ac_script"`
20327 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20328 # will be set to the directory where LIBOBJS objects are built.
20329 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20330 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20331 done
20332 LIBOBJS=$ac_libobjs
20334 LTLIBOBJS=$ac_ltlibobjs
20337 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20338 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20339 Usually this means the macro was only invoked conditionally." >&5
20340 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20341 Usually this means the macro was only invoked conditionally." >&2;}
20342 { (exit 1); exit 1; }; }
20344 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20345 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20346 Usually this means the macro was only invoked conditionally." >&5
20347 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20348 Usually this means the macro was only invoked conditionally." >&2;}
20349 { (exit 1); exit 1; }; }
20352 : ${CONFIG_STATUS=./config.status}
20353 ac_clean_files_save=$ac_clean_files
20354 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20355 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20356 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20357 cat >$CONFIG_STATUS <<_ACEOF
20358 #! $SHELL
20359 # Generated by $as_me.
20360 # Run this file to recreate the current configuration.
20361 # Compiler output produced by configure, useful for debugging
20362 # configure, is in config.log if it exists.
20364 debug=false
20365 ac_cs_recheck=false
20366 ac_cs_silent=false
20367 SHELL=\${CONFIG_SHELL-$SHELL}
20368 _ACEOF
20370 cat >>$CONFIG_STATUS <<\_ACEOF
20371 ## --------------------- ##
20372 ## M4sh Initialization. ##
20373 ## --------------------- ##
20375 # Be Bourne compatible
20376 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20377 emulate sh
20378 NULLCMD=:
20379 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20380 # is contrary to our usage. Disable this feature.
20381 alias -g '${1+"$@"}'='"$@"'
20382 setopt NO_GLOB_SUBST
20383 else
20384 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20386 BIN_SH=xpg4; export BIN_SH # for Tru64
20387 DUALCASE=1; export DUALCASE # for MKS sh
20390 # PATH needs CR
20391 # Avoid depending upon Character Ranges.
20392 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20393 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20394 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20395 as_cr_digits='0123456789'
20396 as_cr_alnum=$as_cr_Letters$as_cr_digits
20398 # The user is always right.
20399 if test "${PATH_SEPARATOR+set}" != set; then
20400 echo "#! /bin/sh" >conf$$.sh
20401 echo "exit 0" >>conf$$.sh
20402 chmod +x conf$$.sh
20403 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20404 PATH_SEPARATOR=';'
20405 else
20406 PATH_SEPARATOR=:
20408 rm -f conf$$.sh
20411 # Support unset when possible.
20412 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20413 as_unset=unset
20414 else
20415 as_unset=false
20419 # IFS
20420 # We need space, tab and new line, in precisely that order. Quoting is
20421 # there to prevent editors from complaining about space-tab.
20422 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20423 # splitting by setting IFS to empty value.)
20424 as_nl='
20426 IFS=" "" $as_nl"
20428 # Find who we are. Look in the path if we contain no directory separator.
20429 case $0 in
20430 *[\\/]* ) as_myself=$0 ;;
20431 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20432 for as_dir in $PATH
20434 IFS=$as_save_IFS
20435 test -z "$as_dir" && as_dir=.
20436 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20437 done
20438 IFS=$as_save_IFS
20441 esac
20442 # We did not find ourselves, most probably we were run as `sh COMMAND'
20443 # in which case we are not to be found in the path.
20444 if test "x$as_myself" = x; then
20445 as_myself=$0
20447 if test ! -f "$as_myself"; then
20448 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20449 { (exit 1); exit 1; }
20452 # Work around bugs in pre-3.0 UWIN ksh.
20453 for as_var in ENV MAIL MAILPATH
20454 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20455 done
20456 PS1='$ '
20457 PS2='> '
20458 PS4='+ '
20460 # NLS nuisances.
20461 for as_var in \
20462 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20463 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20464 LC_TELEPHONE LC_TIME
20466 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20467 eval $as_var=C; export $as_var
20468 else
20469 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20471 done
20473 # Required to use basename.
20474 if expr a : '\(a\)' >/dev/null 2>&1 &&
20475 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20476 as_expr=expr
20477 else
20478 as_expr=false
20481 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20482 as_basename=basename
20483 else
20484 as_basename=false
20488 # Name of the executable.
20489 as_me=`$as_basename -- "$0" ||
20490 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20491 X"$0" : 'X\(//\)$' \| \
20492 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20493 echo X/"$0" |
20494 sed '/^.*\/\([^/][^/]*\)\/*$/{
20495 s//\1/
20498 /^X\/\(\/\/\)$/{
20499 s//\1/
20502 /^X\/\(\/\).*/{
20503 s//\1/
20506 s/.*/./; q'`
20508 # CDPATH.
20509 $as_unset CDPATH
20513 as_lineno_1=$LINENO
20514 as_lineno_2=$LINENO
20515 test "x$as_lineno_1" != "x$as_lineno_2" &&
20516 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20518 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20519 # uniformly replaced by the line number. The first 'sed' inserts a
20520 # line-number line after each line using $LINENO; the second 'sed'
20521 # does the real work. The second script uses 'N' to pair each
20522 # line-number line with the line containing $LINENO, and appends
20523 # trailing '-' during substitution so that $LINENO is not a special
20524 # case at line end.
20525 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20526 # scripts with optimization help from Paolo Bonzini. Blame Lee
20527 # E. McMahon (1931-1989) for sed's syntax. :-)
20528 sed -n '
20530 /[$]LINENO/=
20531 ' <$as_myself |
20532 sed '
20533 s/[$]LINENO.*/&-/
20534 t lineno
20536 :lineno
20538 :loop
20539 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20540 t loop
20541 s/-\n.*//
20542 ' >$as_me.lineno &&
20543 chmod +x "$as_me.lineno" ||
20544 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20545 { (exit 1); exit 1; }; }
20547 # Don't try to exec as it changes $[0], causing all sort of problems
20548 # (the dirname of $[0] is not the place where we might find the
20549 # original and so on. Autoconf is especially sensitive to this).
20550 . "./$as_me.lineno"
20551 # Exit status is that of the last command.
20552 exit
20556 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20557 as_dirname=dirname
20558 else
20559 as_dirname=false
20562 ECHO_C= ECHO_N= ECHO_T=
20563 case `echo -n x` in
20564 -n*)
20565 case `echo 'x\c'` in
20566 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20567 *) ECHO_C='\c';;
20568 esac;;
20570 ECHO_N='-n';;
20571 esac
20573 if expr a : '\(a\)' >/dev/null 2>&1 &&
20574 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20575 as_expr=expr
20576 else
20577 as_expr=false
20580 rm -f conf$$ conf$$.exe conf$$.file
20581 if test -d conf$$.dir; then
20582 rm -f conf$$.dir/conf$$.file
20583 else
20584 rm -f conf$$.dir
20585 mkdir conf$$.dir
20587 echo >conf$$.file
20588 if ln -s conf$$.file conf$$ 2>/dev/null; then
20589 as_ln_s='ln -s'
20590 # ... but there are two gotchas:
20591 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20592 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20593 # In both cases, we have to default to `cp -p'.
20594 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20595 as_ln_s='cp -p'
20596 elif ln conf$$.file conf$$ 2>/dev/null; then
20597 as_ln_s=ln
20598 else
20599 as_ln_s='cp -p'
20601 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20602 rmdir conf$$.dir 2>/dev/null
20604 if mkdir -p . 2>/dev/null; then
20605 as_mkdir_p=:
20606 else
20607 test -d ./-p && rmdir ./-p
20608 as_mkdir_p=false
20611 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
20612 # systems may use methods other than mode bits to determine executability.
20613 cat >conf$$.file <<_ASEOF
20614 #! /bin/sh
20615 exit 0
20616 _ASEOF
20617 chmod +x conf$$.file
20618 if test -x conf$$.file >/dev/null 2>&1; then
20619 as_executable_p="test -x"
20620 else
20621 as_executable_p=:
20623 rm -f conf$$.file
20625 # Sed expression to map a string onto a valid CPP name.
20626 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20628 # Sed expression to map a string onto a valid variable name.
20629 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20632 exec 6>&1
20634 # Save the log message, to keep $[0] and so on meaningful, and to
20635 # report actual input values of CONFIG_FILES etc. instead of their
20636 # values after options handling.
20637 ac_log="
20638 This file was extended by llvm $as_me 2.8svn, which was
20639 generated by GNU Autoconf 2.60. Invocation command line was
20641 CONFIG_FILES = $CONFIG_FILES
20642 CONFIG_HEADERS = $CONFIG_HEADERS
20643 CONFIG_LINKS = $CONFIG_LINKS
20644 CONFIG_COMMANDS = $CONFIG_COMMANDS
20645 $ $0 $@
20647 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20650 _ACEOF
20652 cat >>$CONFIG_STATUS <<_ACEOF
20653 # Files that config.status was made for.
20654 config_files="$ac_config_files"
20655 config_headers="$ac_config_headers"
20656 config_commands="$ac_config_commands"
20658 _ACEOF
20660 cat >>$CONFIG_STATUS <<\_ACEOF
20661 ac_cs_usage="\
20662 \`$as_me' instantiates files from templates according to the
20663 current configuration.
20665 Usage: $0 [OPTIONS] [FILE]...
20667 -h, --help print this help, then exit
20668 -V, --version print version number, then exit
20669 -q, --quiet do not print progress messages
20670 -d, --debug don't remove temporary files
20671 --recheck update $as_me by reconfiguring in the same conditions
20672 --file=FILE[:TEMPLATE]
20673 instantiate the configuration file FILE
20674 --header=FILE[:TEMPLATE]
20675 instantiate the configuration header FILE
20677 Configuration files:
20678 $config_files
20680 Configuration headers:
20681 $config_headers
20683 Configuration commands:
20684 $config_commands
20686 Report bugs to <bug-autoconf@gnu.org>."
20688 _ACEOF
20689 cat >>$CONFIG_STATUS <<_ACEOF
20690 ac_cs_version="\\
20691 llvm config.status 2.8svn
20692 configured by $0, generated by GNU Autoconf 2.60,
20693 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20695 Copyright (C) 2006 Free Software Foundation, Inc.
20696 This config.status script is free software; the Free Software Foundation
20697 gives unlimited permission to copy, distribute and modify it."
20699 ac_pwd='$ac_pwd'
20700 srcdir='$srcdir'
20701 INSTALL='$INSTALL'
20702 _ACEOF
20704 cat >>$CONFIG_STATUS <<\_ACEOF
20705 # If no file are specified by the user, then we need to provide default
20706 # value. By we need to know if files were specified by the user.
20707 ac_need_defaults=:
20708 while test $# != 0
20710 case $1 in
20711 --*=*)
20712 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20713 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20714 ac_shift=:
20717 ac_option=$1
20718 ac_optarg=$2
20719 ac_shift=shift
20721 esac
20723 case $ac_option in
20724 # Handling of the options.
20725 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20726 ac_cs_recheck=: ;;
20727 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20728 echo "$ac_cs_version"; exit ;;
20729 --debug | --debu | --deb | --de | --d | -d )
20730 debug=: ;;
20731 --file | --fil | --fi | --f )
20732 $ac_shift
20733 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20734 ac_need_defaults=false;;
20735 --header | --heade | --head | --hea )
20736 $ac_shift
20737 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20738 ac_need_defaults=false;;
20739 --he | --h)
20740 # Conflict between --help and --header
20741 { echo "$as_me: error: ambiguous option: $1
20742 Try \`$0 --help' for more information." >&2
20743 { (exit 1); exit 1; }; };;
20744 --help | --hel | -h )
20745 echo "$ac_cs_usage"; exit ;;
20746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20747 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20748 ac_cs_silent=: ;;
20750 # This is an error.
20751 -*) { echo "$as_me: error: unrecognized option: $1
20752 Try \`$0 --help' for more information." >&2
20753 { (exit 1); exit 1; }; } ;;
20755 *) ac_config_targets="$ac_config_targets $1"
20756 ac_need_defaults=false ;;
20758 esac
20759 shift
20760 done
20762 ac_configure_extra_args=
20764 if $ac_cs_silent; then
20765 exec 6>/dev/null
20766 ac_configure_extra_args="$ac_configure_extra_args --silent"
20769 _ACEOF
20770 cat >>$CONFIG_STATUS <<_ACEOF
20771 if \$ac_cs_recheck; then
20772 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20773 CONFIG_SHELL=$SHELL
20774 export CONFIG_SHELL
20775 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20778 _ACEOF
20779 cat >>$CONFIG_STATUS <<\_ACEOF
20780 exec 5>>config.log
20782 echo
20783 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20784 ## Running $as_me. ##
20785 _ASBOX
20786 echo "$ac_log"
20787 } >&5
20789 _ACEOF
20790 cat >>$CONFIG_STATUS <<_ACEOF
20792 # INIT-COMMANDS
20794 llvm_src="${srcdir}"
20796 _ACEOF
20798 cat >>$CONFIG_STATUS <<\_ACEOF
20800 # Handling of arguments.
20801 for ac_config_target in $ac_config_targets
20803 case $ac_config_target in
20804 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20805 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20806 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20807 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20808 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20809 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20810 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20811 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20812 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20813 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20814 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20815 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20816 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20817 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20818 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20819 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20820 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20821 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20822 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20823 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20824 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20825 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20826 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20827 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20828 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20830 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20831 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20832 { (exit 1); exit 1; }; };;
20833 esac
20834 done
20837 # If the user did not use the arguments to specify the items to instantiate,
20838 # then the envvar interface is used. Set only those that are not.
20839 # We use the long form for the default assignment because of an extremely
20840 # bizarre bug on SunOS 4.1.3.
20841 if $ac_need_defaults; then
20842 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20843 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20844 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20847 # Have a temporary directory for convenience. Make it in the build tree
20848 # simply because there is no reason against having it here, and in addition,
20849 # creating and moving files from /tmp can sometimes cause problems.
20850 # Hook for its removal unless debugging.
20851 # Note that there is a small window in which the directory will not be cleaned:
20852 # after its creation but before its name has been assigned to `$tmp'.
20853 $debug ||
20855 tmp=
20856 trap 'exit_status=$?
20857 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20859 trap '{ (exit 1); exit 1; }' 1 2 13 15
20861 # Create a (secure) tmp directory for tmp files.
20864 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20865 test -n "$tmp" && test -d "$tmp"
20866 } ||
20868 tmp=./conf$$-$RANDOM
20869 (umask 077 && mkdir "$tmp")
20870 } ||
20872 echo "$me: cannot create a temporary directory in ." >&2
20873 { (exit 1); exit 1; }
20877 # Set up the sed scripts for CONFIG_FILES section.
20880 # No need to generate the scripts if there are no CONFIG_FILES.
20881 # This happens for instance when ./config.status config.h
20882 if test -n "$CONFIG_FILES"; then
20884 _ACEOF
20888 ac_delim='%!_!# '
20889 for ac_last_try in false false false false false :; do
20890 cat >conf$$subs.sed <<_ACEOF
20891 SHELL!$SHELL$ac_delim
20892 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20893 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20894 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20895 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20896 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20897 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20898 exec_prefix!$exec_prefix$ac_delim
20899 prefix!$prefix$ac_delim
20900 program_transform_name!$program_transform_name$ac_delim
20901 bindir!$bindir$ac_delim
20902 sbindir!$sbindir$ac_delim
20903 libexecdir!$libexecdir$ac_delim
20904 datarootdir!$datarootdir$ac_delim
20905 datadir!$datadir$ac_delim
20906 sysconfdir!$sysconfdir$ac_delim
20907 sharedstatedir!$sharedstatedir$ac_delim
20908 localstatedir!$localstatedir$ac_delim
20909 includedir!$includedir$ac_delim
20910 oldincludedir!$oldincludedir$ac_delim
20911 docdir!$docdir$ac_delim
20912 infodir!$infodir$ac_delim
20913 htmldir!$htmldir$ac_delim
20914 dvidir!$dvidir$ac_delim
20915 pdfdir!$pdfdir$ac_delim
20916 psdir!$psdir$ac_delim
20917 libdir!$libdir$ac_delim
20918 localedir!$localedir$ac_delim
20919 mandir!$mandir$ac_delim
20920 DEFS!$DEFS$ac_delim
20921 ECHO_C!$ECHO_C$ac_delim
20922 ECHO_N!$ECHO_N$ac_delim
20923 ECHO_T!$ECHO_T$ac_delim
20924 LIBS!$LIBS$ac_delim
20925 build_alias!$build_alias$ac_delim
20926 host_alias!$host_alias$ac_delim
20927 target_alias!$target_alias$ac_delim
20928 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20929 subdirs!$subdirs$ac_delim
20930 build!$build$ac_delim
20931 build_cpu!$build_cpu$ac_delim
20932 build_vendor!$build_vendor$ac_delim
20933 build_os!$build_os$ac_delim
20934 host!$host$ac_delim
20935 host_cpu!$host_cpu$ac_delim
20936 host_vendor!$host_vendor$ac_delim
20937 host_os!$host_os$ac_delim
20938 target!$target$ac_delim
20939 target_cpu!$target_cpu$ac_delim
20940 target_vendor!$target_vendor$ac_delim
20941 target_os!$target_os$ac_delim
20942 OS!$OS$ac_delim
20943 HOST_OS!$HOST_OS$ac_delim
20944 TARGET_OS!$TARGET_OS$ac_delim
20945 LINKALL!$LINKALL$ac_delim
20946 NOLINKALL!$NOLINKALL$ac_delim
20947 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20948 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20949 ARCH!$ARCH$ac_delim
20950 ENDIAN!$ENDIAN$ac_delim
20951 CC!$CC$ac_delim
20952 CFLAGS!$CFLAGS$ac_delim
20953 LDFLAGS!$LDFLAGS$ac_delim
20954 CPPFLAGS!$CPPFLAGS$ac_delim
20955 ac_ct_CC!$ac_ct_CC$ac_delim
20956 EXEEXT!$EXEEXT$ac_delim
20957 OBJEXT!$OBJEXT$ac_delim
20958 CPP!$CPP$ac_delim
20959 GREP!$GREP$ac_delim
20960 EGREP!$EGREP$ac_delim
20961 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20962 BUILD_CC!$BUILD_CC$ac_delim
20963 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20964 BUILD_CXX!$BUILD_CXX$ac_delim
20965 CVSBUILD!$CVSBUILD$ac_delim
20966 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20967 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20968 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20969 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20970 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20971 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20972 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20973 JIT!$JIT$ac_delim
20974 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20975 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20976 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20977 ENABLE_PIC!$ENABLE_PIC$ac_delim
20978 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
20979 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20980 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20981 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20982 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20983 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20984 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20985 CLANGPATH!$CLANGPATH$ac_delim
20986 CLANGXXPATH!$CLANGXXPATH$ac_delim
20987 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
20988 _ACEOF
20990 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20991 break
20992 elif $ac_last_try; then
20993 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20994 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20995 { (exit 1); exit 1; }; }
20996 else
20997 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20999 done
21001 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21002 if test -n "$ac_eof"; then
21003 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21004 ac_eof=`expr $ac_eof + 1`
21007 cat >>$CONFIG_STATUS <<_ACEOF
21008 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21009 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21010 _ACEOF
21011 sed '
21012 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21013 s/^/s,@/; s/!/@,|#_!!_#|/
21016 s/'"$ac_delim"'$/,g/; t
21017 s/$/\\/; p
21018 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21019 ' >>$CONFIG_STATUS <conf$$subs.sed
21020 rm -f conf$$subs.sed
21021 cat >>$CONFIG_STATUS <<_ACEOF
21022 CEOF$ac_eof
21023 _ACEOF
21026 ac_delim='%!_!# '
21027 for ac_last_try in false false false false false :; do
21028 cat >conf$$subs.sed <<_ACEOF
21029 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21030 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21031 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21032 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
21033 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21034 CXX!$CXX$ac_delim
21035 CXXFLAGS!$CXXFLAGS$ac_delim
21036 ac_ct_CXX!$ac_ct_CXX$ac_delim
21037 NM!$NM$ac_delim
21038 ifGNUmake!$ifGNUmake$ac_delim
21039 LN_S!$LN_S$ac_delim
21040 CMP!$CMP$ac_delim
21041 CP!$CP$ac_delim
21042 DATE!$DATE$ac_delim
21043 FIND!$FIND$ac_delim
21044 MKDIR!$MKDIR$ac_delim
21045 MV!$MV$ac_delim
21046 RANLIB!$RANLIB$ac_delim
21047 AR!$AR$ac_delim
21048 RM!$RM$ac_delim
21049 SED!$SED$ac_delim
21050 TAR!$TAR$ac_delim
21051 BINPWD!$BINPWD$ac_delim
21052 GRAPHVIZ!$GRAPHVIZ$ac_delim
21053 DOT!$DOT$ac_delim
21054 FDP!$FDP$ac_delim
21055 NEATO!$NEATO$ac_delim
21056 TWOPI!$TWOPI$ac_delim
21057 CIRCO!$CIRCO$ac_delim
21058 GV!$GV$ac_delim
21059 DOTTY!$DOTTY$ac_delim
21060 PERL!$PERL$ac_delim
21061 HAVE_PERL!$HAVE_PERL$ac_delim
21062 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21063 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21064 INSTALL_DATA!$INSTALL_DATA$ac_delim
21065 BZIP2!$BZIP2$ac_delim
21066 DOXYGEN!$DOXYGEN$ac_delim
21067 GROFF!$GROFF$ac_delim
21068 GZIP!$GZIP$ac_delim
21069 POD2HTML!$POD2HTML$ac_delim
21070 POD2MAN!$POD2MAN$ac_delim
21071 RUNTEST!$RUNTEST$ac_delim
21072 TCLSH!$TCLSH$ac_delim
21073 ZIP!$ZIP$ac_delim
21074 OCAMLC!$OCAMLC$ac_delim
21075 OCAMLOPT!$OCAMLOPT$ac_delim
21076 OCAMLDEP!$OCAMLDEP$ac_delim
21077 OCAMLDOC!$OCAMLDOC$ac_delim
21078 GAS!$GAS$ac_delim
21079 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21080 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21081 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21082 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21083 LIBADD_DL!$LIBADD_DL$ac_delim
21084 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21085 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21086 LLVMGCC!$LLVMGCC$ac_delim
21087 LLVMGXX!$LLVMGXX$ac_delim
21088 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21089 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21090 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21091 USE_UDIS86!$USE_UDIS86$ac_delim
21092 USE_OPROFILE!$USE_OPROFILE$ac_delim
21093 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21094 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21095 MMAP_FILE!$MMAP_FILE$ac_delim
21096 LLVMCC1!$LLVMCC1$ac_delim
21097 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21098 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21099 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21100 SHLIBEXT!$SHLIBEXT$ac_delim
21101 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21102 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21103 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21104 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21105 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21106 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21107 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21108 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21109 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21110 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21111 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21112 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21113 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21114 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21115 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21116 RPATH!$RPATH$ac_delim
21117 RDYNAMIC!$RDYNAMIC$ac_delim
21118 LIBOBJS!$LIBOBJS$ac_delim
21119 LTLIBOBJS!$LTLIBOBJS$ac_delim
21120 _ACEOF
21122 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
21123 break
21124 elif $ac_last_try; then
21125 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21126 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21127 { (exit 1); exit 1; }; }
21128 else
21129 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21131 done
21133 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21134 if test -n "$ac_eof"; then
21135 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21136 ac_eof=`expr $ac_eof + 1`
21139 cat >>$CONFIG_STATUS <<_ACEOF
21140 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21141 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21142 _ACEOF
21143 sed '
21144 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21145 s/^/s,@/; s/!/@,|#_!!_#|/
21148 s/'"$ac_delim"'$/,g/; t
21149 s/$/\\/; p
21150 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21151 ' >>$CONFIG_STATUS <conf$$subs.sed
21152 rm -f conf$$subs.sed
21153 cat >>$CONFIG_STATUS <<_ACEOF
21154 :end
21155 s/|#_!!_#|//g
21156 CEOF$ac_eof
21157 _ACEOF
21160 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21161 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21162 # trailing colons and then remove the whole line if VPATH becomes empty
21163 # (actually we leave an empty line to preserve line numbers).
21164 if test "x$srcdir" = x.; then
21165 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21166 s/:*\$(srcdir):*/:/
21167 s/:*\${srcdir}:*/:/
21168 s/:*@srcdir@:*/:/
21169 s/^\([^=]*=[ ]*\):*/\1/
21170 s/:*$//
21171 s/^[^=]*=[ ]*$//
21175 cat >>$CONFIG_STATUS <<\_ACEOF
21176 fi # test -n "$CONFIG_FILES"
21179 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21181 case $ac_tag in
21182 :[FHLC]) ac_mode=$ac_tag; continue;;
21183 esac
21184 case $ac_mode$ac_tag in
21185 :[FHL]*:*);;
21186 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21187 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21188 { (exit 1); exit 1; }; };;
21189 :[FH]-) ac_tag=-:-;;
21190 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21191 esac
21192 ac_save_IFS=$IFS
21193 IFS=:
21194 set x $ac_tag
21195 IFS=$ac_save_IFS
21196 shift
21197 ac_file=$1
21198 shift
21200 case $ac_mode in
21201 :L) ac_source=$1;;
21202 :[FH])
21203 ac_file_inputs=
21204 for ac_f
21206 case $ac_f in
21207 -) ac_f="$tmp/stdin";;
21208 *) # Look for the file first in the build tree, then in the source tree
21209 # (if the path is not absolute). The absolute path cannot be DOS-style,
21210 # because $ac_f cannot contain `:'.
21211 test -f "$ac_f" ||
21212 case $ac_f in
21213 [\\/$]*) false;;
21214 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21215 esac ||
21216 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21217 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21218 { (exit 1); exit 1; }; };;
21219 esac
21220 ac_file_inputs="$ac_file_inputs $ac_f"
21221 done
21223 # Let's still pretend it is `configure' which instantiates (i.e., don't
21224 # use $as_me), people would be surprised to read:
21225 # /* config.h. Generated by config.status. */
21226 configure_input="Generated from "`IFS=:
21227 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21228 if test x"$ac_file" != x-; then
21229 configure_input="$ac_file. $configure_input"
21230 { echo "$as_me:$LINENO: creating $ac_file" >&5
21231 echo "$as_me: creating $ac_file" >&6;}
21234 case $ac_tag in
21235 *:-:* | *:-) cat >"$tmp/stdin";;
21236 esac
21238 esac
21240 ac_dir=`$as_dirname -- "$ac_file" ||
21241 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21242 X"$ac_file" : 'X\(//\)[^/]' \| \
21243 X"$ac_file" : 'X\(//\)$' \| \
21244 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21245 echo X"$ac_file" |
21246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21247 s//\1/
21250 /^X\(\/\/\)[^/].*/{
21251 s//\1/
21254 /^X\(\/\/\)$/{
21255 s//\1/
21258 /^X\(\/\).*/{
21259 s//\1/
21262 s/.*/./; q'`
21263 { as_dir="$ac_dir"
21264 case $as_dir in #(
21265 -*) as_dir=./$as_dir;;
21266 esac
21267 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21268 as_dirs=
21269 while :; do
21270 case $as_dir in #(
21271 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21272 *) as_qdir=$as_dir;;
21273 esac
21274 as_dirs="'$as_qdir' $as_dirs"
21275 as_dir=`$as_dirname -- "$as_dir" ||
21276 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21277 X"$as_dir" : 'X\(//\)[^/]' \| \
21278 X"$as_dir" : 'X\(//\)$' \| \
21279 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21280 echo X"$as_dir" |
21281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21282 s//\1/
21285 /^X\(\/\/\)[^/].*/{
21286 s//\1/
21289 /^X\(\/\/\)$/{
21290 s//\1/
21293 /^X\(\/\).*/{
21294 s//\1/
21297 s/.*/./; q'`
21298 test -d "$as_dir" && break
21299 done
21300 test -z "$as_dirs" || eval "mkdir $as_dirs"
21301 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21302 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21303 { (exit 1); exit 1; }; }; }
21304 ac_builddir=.
21306 case "$ac_dir" in
21307 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21309 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21310 # A ".." for each directory in $ac_dir_suffix.
21311 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21312 case $ac_top_builddir_sub in
21313 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21314 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21315 esac ;;
21316 esac
21317 ac_abs_top_builddir=$ac_pwd
21318 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21319 # for backward compatibility:
21320 ac_top_builddir=$ac_top_build_prefix
21322 case $srcdir in
21323 .) # We are building in place.
21324 ac_srcdir=.
21325 ac_top_srcdir=$ac_top_builddir_sub
21326 ac_abs_top_srcdir=$ac_pwd ;;
21327 [\\/]* | ?:[\\/]* ) # Absolute name.
21328 ac_srcdir=$srcdir$ac_dir_suffix;
21329 ac_top_srcdir=$srcdir
21330 ac_abs_top_srcdir=$srcdir ;;
21331 *) # Relative name.
21332 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21333 ac_top_srcdir=$ac_top_build_prefix$srcdir
21334 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21335 esac
21336 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21339 case $ac_mode in
21342 # CONFIG_FILE
21345 case $INSTALL in
21346 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21347 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21348 esac
21349 _ACEOF
21351 cat >>$CONFIG_STATUS <<\_ACEOF
21352 # If the template does not know about datarootdir, expand it.
21353 # FIXME: This hack should be removed a few years after 2.60.
21354 ac_datarootdir_hack=; ac_datarootdir_seen=
21356 case `sed -n '/datarootdir/ {
21360 /@datadir@/p
21361 /@docdir@/p
21362 /@infodir@/p
21363 /@localedir@/p
21364 /@mandir@/p
21365 ' $ac_file_inputs` in
21366 *datarootdir*) ac_datarootdir_seen=yes;;
21367 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21368 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21369 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21370 _ACEOF
21371 cat >>$CONFIG_STATUS <<_ACEOF
21372 ac_datarootdir_hack='
21373 s&@datadir@&$datadir&g
21374 s&@docdir@&$docdir&g
21375 s&@infodir@&$infodir&g
21376 s&@localedir@&$localedir&g
21377 s&@mandir@&$mandir&g
21378 s&\\\${datarootdir}&$datarootdir&g' ;;
21379 esac
21380 _ACEOF
21382 # Neutralize VPATH when `$srcdir' = `.'.
21383 # Shell code in configure.ac might set extrasub.
21384 # FIXME: do we really want to maintain this feature?
21385 cat >>$CONFIG_STATUS <<_ACEOF
21386 sed "$ac_vpsub
21387 $extrasub
21388 _ACEOF
21389 cat >>$CONFIG_STATUS <<\_ACEOF
21391 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21392 s&@configure_input@&$configure_input&;t t
21393 s&@top_builddir@&$ac_top_builddir_sub&;t t
21394 s&@srcdir@&$ac_srcdir&;t t
21395 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21396 s&@top_srcdir@&$ac_top_srcdir&;t t
21397 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21398 s&@builddir@&$ac_builddir&;t t
21399 s&@abs_builddir@&$ac_abs_builddir&;t t
21400 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21401 s&@INSTALL@&$ac_INSTALL&;t t
21402 $ac_datarootdir_hack
21403 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21405 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21406 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21407 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21408 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21409 which seems to be undefined. Please make sure it is defined." >&5
21410 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21411 which seems to be undefined. Please make sure it is defined." >&2;}
21413 rm -f "$tmp/stdin"
21414 case $ac_file in
21415 -) cat "$tmp/out"; rm -f "$tmp/out";;
21416 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21417 esac
21421 # CONFIG_HEADER
21423 _ACEOF
21425 # Transform confdefs.h into a sed script `conftest.defines', that
21426 # substitutes the proper values into config.h.in to produce config.h.
21427 rm -f conftest.defines conftest.tail
21428 # First, append a space to every undef/define line, to ease matching.
21429 echo 's/$/ /' >conftest.defines
21430 # Then, protect against being on the right side of a sed subst, or in
21431 # an unquoted here document, in config.status. If some macros were
21432 # called several times there might be several #defines for the same
21433 # symbol, which is useless. But do not sort them, since the last
21434 # AC_DEFINE must be honored.
21435 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21436 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21437 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21438 # PARAMS is the parameter list in the macro definition--in most cases, it's
21439 # just an empty string.
21440 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21441 ac_dB='\\)[ (].*,\\1define\\2'
21442 ac_dC=' '
21443 ac_dD=' ,'
21445 uniq confdefs.h |
21446 sed -n '
21447 t rset
21448 :rset
21449 s/^[ ]*#[ ]*define[ ][ ]*//
21450 t ok
21453 s/[\\&,]/\\&/g
21454 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21455 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21456 ' >>conftest.defines
21458 # Remove the space that was appended to ease matching.
21459 # Then replace #undef with comments. This is necessary, for
21460 # example, in the case of _POSIX_SOURCE, which is predefined and required
21461 # on some systems where configure will not decide to define it.
21462 # (The regexp can be short, since the line contains either #define or #undef.)
21463 echo 's/ $//
21464 s,^[ #]*u.*,/* & */,' >>conftest.defines
21466 # Break up conftest.defines:
21467 ac_max_sed_lines=50
21469 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21470 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21471 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21472 # et cetera.
21473 ac_in='$ac_file_inputs'
21474 ac_out='"$tmp/out1"'
21475 ac_nxt='"$tmp/out2"'
21477 while :
21479 # Write a here document:
21480 cat >>$CONFIG_STATUS <<_ACEOF
21481 # First, check the format of the line:
21482 cat >"\$tmp/defines.sed" <<\\CEOF
21483 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21484 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21486 :def
21487 _ACEOF
21488 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21489 echo 'CEOF
21490 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21491 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21492 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21493 grep . conftest.tail >/dev/null || break
21494 rm -f conftest.defines
21495 mv conftest.tail conftest.defines
21496 done
21497 rm -f conftest.defines conftest.tail
21499 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21500 cat >>$CONFIG_STATUS <<\_ACEOF
21501 if test x"$ac_file" != x-; then
21502 echo "/* $configure_input */" >"$tmp/config.h"
21503 cat "$ac_result" >>"$tmp/config.h"
21504 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21505 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21506 echo "$as_me: $ac_file is unchanged" >&6;}
21507 else
21508 rm -f $ac_file
21509 mv "$tmp/config.h" $ac_file
21511 else
21512 echo "/* $configure_input */"
21513 cat "$ac_result"
21515 rm -f "$tmp/out12"
21518 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21519 echo "$as_me: executing $ac_file commands" >&6;}
21521 esac
21524 case $ac_file$ac_mode in
21525 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21526 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21527 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21528 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21529 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21530 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21531 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21532 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21533 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21534 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21535 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21536 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21537 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21538 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21539 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21540 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21541 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21542 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21543 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21544 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21545 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21546 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21547 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21548 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21549 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21550 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21552 esac
21553 done # for ac_tag
21556 { (exit 0); exit 0; }
21557 _ACEOF
21558 chmod +x $CONFIG_STATUS
21559 ac_clean_files=$ac_clean_files_save
21562 # configure is writing to config.log, and then calls config.status.
21563 # config.status does its own redirection, appending to config.log.
21564 # Unfortunately, on DOS this fails, as config.log is still kept open
21565 # by configure, so config.status won't be able to write to it; its
21566 # output is simply discarded. So we exec the FD to /dev/null,
21567 # effectively closing config.log, so it can be properly (re)opened and
21568 # appended to by config.status. When coming back to configure, we
21569 # need to make the FD available again.
21570 if test "$no_create" != yes; then
21571 ac_cs_success=:
21572 ac_config_status_args=
21573 test "$silent" = yes &&
21574 ac_config_status_args="$ac_config_status_args --quiet"
21575 exec 5>/dev/null
21576 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21577 exec 5>>config.log
21578 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21579 # would make configure fail if this is the last instruction.
21580 $ac_cs_success || { (exit 1); exit 1; }
21584 # CONFIG_SUBDIRS section.
21586 if test "$no_recursion" != yes; then
21588 # Remove --cache-file and --srcdir arguments so they do not pile up.
21589 ac_sub_configure_args=
21590 ac_prev=
21591 eval "set x $ac_configure_args"
21592 shift
21593 for ac_arg
21595 if test -n "$ac_prev"; then
21596 ac_prev=
21597 continue
21599 case $ac_arg in
21600 -cache-file | --cache-file | --cache-fil | --cache-fi \
21601 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21602 ac_prev=cache_file ;;
21603 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21604 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21605 | --c=*)
21607 --config-cache | -C)
21609 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21610 ac_prev=srcdir ;;
21611 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21613 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21614 ac_prev=prefix ;;
21615 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21618 case $ac_arg in
21619 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21620 esac
21621 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21622 esac
21623 done
21625 # Always prepend --prefix to ensure using the same prefix
21626 # in subdir configurations.
21627 ac_arg="--prefix=$prefix"
21628 case $ac_arg in
21629 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21630 esac
21631 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21633 ac_popdir=`pwd`
21634 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21636 # Do not complain, so a configure script can configure whichever
21637 # parts of a large source tree are present.
21638 test -d "$srcdir/$ac_dir" || continue
21640 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21641 echo "$as_me:$LINENO: $ac_msg" >&5
21642 echo "$ac_msg" >&6
21643 { as_dir="$ac_dir"
21644 case $as_dir in #(
21645 -*) as_dir=./$as_dir;;
21646 esac
21647 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21648 as_dirs=
21649 while :; do
21650 case $as_dir in #(
21651 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21652 *) as_qdir=$as_dir;;
21653 esac
21654 as_dirs="'$as_qdir' $as_dirs"
21655 as_dir=`$as_dirname -- "$as_dir" ||
21656 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21657 X"$as_dir" : 'X\(//\)[^/]' \| \
21658 X"$as_dir" : 'X\(//\)$' \| \
21659 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21660 echo X"$as_dir" |
21661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21662 s//\1/
21665 /^X\(\/\/\)[^/].*/{
21666 s//\1/
21669 /^X\(\/\/\)$/{
21670 s//\1/
21673 /^X\(\/\).*/{
21674 s//\1/
21677 s/.*/./; q'`
21678 test -d "$as_dir" && break
21679 done
21680 test -z "$as_dirs" || eval "mkdir $as_dirs"
21681 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21682 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21683 { (exit 1); exit 1; }; }; }
21684 ac_builddir=.
21686 case "$ac_dir" in
21687 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21689 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21690 # A ".." for each directory in $ac_dir_suffix.
21691 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21692 case $ac_top_builddir_sub in
21693 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21694 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21695 esac ;;
21696 esac
21697 ac_abs_top_builddir=$ac_pwd
21698 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21699 # for backward compatibility:
21700 ac_top_builddir=$ac_top_build_prefix
21702 case $srcdir in
21703 .) # We are building in place.
21704 ac_srcdir=.
21705 ac_top_srcdir=$ac_top_builddir_sub
21706 ac_abs_top_srcdir=$ac_pwd ;;
21707 [\\/]* | ?:[\\/]* ) # Absolute name.
21708 ac_srcdir=$srcdir$ac_dir_suffix;
21709 ac_top_srcdir=$srcdir
21710 ac_abs_top_srcdir=$srcdir ;;
21711 *) # Relative name.
21712 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21713 ac_top_srcdir=$ac_top_build_prefix$srcdir
21714 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21715 esac
21716 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21719 cd "$ac_dir"
21721 # Check for guested configure; otherwise get Cygnus style configure.
21722 if test -f "$ac_srcdir/configure.gnu"; then
21723 ac_sub_configure=$ac_srcdir/configure.gnu
21724 elif test -f "$ac_srcdir/configure"; then
21725 ac_sub_configure=$ac_srcdir/configure
21726 elif test -f "$ac_srcdir/configure.in"; then
21727 # This should be Cygnus configure.
21728 ac_sub_configure=$ac_aux_dir/configure
21729 else
21730 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21731 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21732 ac_sub_configure=
21735 # The recursion is here.
21736 if test -n "$ac_sub_configure"; then
21737 # Make the cache file name correct relative to the subdirectory.
21738 case $cache_file in
21739 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21740 *) # Relative name.
21741 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21742 esac
21744 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21745 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21746 # The eval makes quoting arguments work.
21747 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21748 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21749 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21750 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21751 { (exit 1); exit 1; }; }
21754 cd "$ac_popdir"
21755 done