Clean up this file a little, no functionality change. This is a subset of my
[llvm.git] / configure
blob2836e9ea32b3101180c50aba82f9ae7b457b1cb7
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 *-*-freebsd*)
2170 llvm_cv_link_all_option="-Wl,--whole-archive"
2171 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2172 llvm_cv_os_type="FreeBSD"
2173 llvm_cv_platform_type="Unix" ;;
2174 *-*-openbsd*)
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="OpenBSD"
2178 llvm_cv_platform_type="Unix" ;;
2179 *-*-netbsd*)
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="NetBSD"
2183 llvm_cv_platform_type="Unix" ;;
2184 *-*-dragonfly*)
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="DragonFly"
2188 llvm_cv_platform_type="Unix" ;;
2189 *-*-hpux*)
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="HP-UX"
2193 llvm_cv_platform_type="Unix" ;;
2194 *-*-interix*)
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="Interix"
2198 llvm_cv_platform_type="Unix" ;;
2199 *-*-linux*)
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="Linux"
2203 llvm_cv_platform_type="Unix" ;;
2204 *-*-solaris*)
2205 llvm_cv_link_all_option="-Wl,-z,allextract"
2206 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2207 llvm_cv_os_type="SunOS"
2208 llvm_cv_platform_type="Unix" ;;
2209 *-*-auroraux*)
2210 llvm_cv_link_all_option="-Wl,-z,allextract"
2211 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2212 llvm_cv_os_type="AuroraUX"
2213 llvm_cv_platform_type="Unix" ;;
2214 *-*-win32*)
2215 llvm_cv_link_all_option="-Wl,--whole-archive"
2216 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2217 llvm_cv_os_type="Win32"
2218 llvm_cv_platform_type="Win32" ;;
2219 *-*-mingw*)
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="MingW"
2223 llvm_cv_platform_type="Win32" ;;
2224 *-*-haiku*)
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="Haiku"
2228 llvm_cv_platform_type="Unix" ;;
2229 *-unknown-eabi*)
2230 llvm_cv_link_all_option="-Wl,--whole-archive"
2231 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2232 llvm_cv_os_type="Freestanding"
2233 llvm_cv_platform_type="Unix" ;;
2234 *-unknown-elf*)
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" ;;
2240 llvm_cv_link_all_option=""
2241 llvm_cv_no_link_all_option=""
2242 llvm_cv_os_type="Unknown"
2243 llvm_cv_platform_type="Unknown" ;;
2244 esac
2246 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2247 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2249 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2250 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2251 if test "${llvm_cv_target_os_type+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254 case $target in
2255 *-*-aix*)
2256 llvm_cv_target_os_type="AIX" ;;
2257 *-*-irix*)
2258 llvm_cv_target_os_type="IRIX" ;;
2259 *-*-cygwin*)
2260 llvm_cv_target_os_type="Cygwin" ;;
2261 *-*-darwin*)
2262 llvm_cv_target_os_type="Darwin" ;;
2263 *-*-freebsd*)
2264 llvm_cv_target_os_type="FreeBSD" ;;
2265 *-*-openbsd*)
2266 llvm_cv_target_os_type="OpenBSD" ;;
2267 *-*-netbsd*)
2268 llvm_cv_target_os_type="NetBSD" ;;
2269 *-*-dragonfly*)
2270 llvm_cv_target_os_type="DragonFly" ;;
2271 *-*-hpux*)
2272 llvm_cv_target_os_type="HP-UX" ;;
2273 *-*-interix*)
2274 llvm_cv_target_os_type="Interix" ;;
2275 *-*-linux*)
2276 llvm_cv_target_os_type="Linux" ;;
2277 *-*-solaris*)
2278 llvm_cv_target_os_type="SunOS" ;;
2279 *-*-auroraux*)
2280 llvm_cv_target_os_type="AuroraUX" ;;
2281 *-*-win32*)
2282 llvm_cv_target_os_type="Win32" ;;
2283 *-*-mingw*)
2284 llvm_cv_target_os_type="MingW" ;;
2285 *-*-haiku*)
2286 llvm_cv_target_os_type="Haiku" ;;
2287 *-unknown-eabi*)
2288 llvm_cv_target_os_type="Freestanding" ;;
2290 llvm_cv_target_os_type="Unknown" ;;
2291 esac
2293 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2294 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2296 if test "$llvm_cv_os_type" = "Unknown" ; then
2297 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2298 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2299 { (exit 1); exit 1; }; }
2302 OS=$llvm_cv_os_type
2304 HOST_OS=$llvm_cv_os_type
2306 TARGET_OS=$llvm_cv_target_os_type
2309 LINKALL=$llvm_cv_link_all_option
2311 NOLINKALL=$llvm_cv_no_link_all_option
2314 case $llvm_cv_platform_type in
2315 Unix)
2317 cat >>confdefs.h <<\_ACEOF
2318 #define LLVM_ON_UNIX 1
2319 _ACEOF
2321 LLVM_ON_UNIX=1
2323 LLVM_ON_WIN32=0
2326 Win32)
2328 cat >>confdefs.h <<\_ACEOF
2329 #define LLVM_ON_WIN32 1
2330 _ACEOF
2332 LLVM_ON_UNIX=0
2334 LLVM_ON_WIN32=1
2337 esac
2339 { echo "$as_me:$LINENO: checking target architecture" >&5
2340 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2341 if test "${llvm_cv_target_arch+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 else
2344 case $target in
2345 i?86-*) llvm_cv_target_arch="x86" ;;
2346 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2347 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2348 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2349 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2350 arm*-*) llvm_cv_target_arch="ARM" ;;
2351 mips-*) llvm_cv_target_arch="Mips" ;;
2352 pic16-*) llvm_cv_target_arch="PIC16" ;;
2353 xcore-*) llvm_cv_target_arch="XCore" ;;
2354 msp430-*) llvm_cv_target_arch="MSP430" ;;
2355 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2356 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2357 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2358 *) llvm_cv_target_arch="Unknown" ;;
2359 esac
2361 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2362 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2364 if test "$llvm_cv_target_arch" = "Unknown" ; then
2365 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2366 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2369 # Determine the LLVM native architecture for the target
2370 case "$llvm_cv_target_arch" in
2371 x86) LLVM_NATIVE_ARCH="X86" ;;
2372 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2373 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2374 esac
2376 ARCH=$llvm_cv_target_arch
2379 ac_ext=c
2380 ac_cpp='$CPP $CPPFLAGS'
2381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2384 if test -n "$ac_tool_prefix"; then
2385 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2386 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2389 if test "${ac_cv_prog_CC+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2391 else
2392 if test -n "$CC"; then
2393 ac_cv_prog_CC="$CC" # Let the user override the test.
2394 else
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 for as_dir in $PATH
2398 IFS=$as_save_IFS
2399 test -z "$as_dir" && as_dir=.
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2402 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404 break 2
2406 done
2407 done
2408 IFS=$as_save_IFS
2412 CC=$ac_cv_prog_CC
2413 if test -n "$CC"; then
2414 { echo "$as_me:$LINENO: result: $CC" >&5
2415 echo "${ECHO_T}$CC" >&6; }
2416 else
2417 { echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6; }
2423 if test -z "$ac_cv_prog_CC"; then
2424 ac_ct_CC=$CC
2425 # Extract the first word of "gcc", so it can be a program name with args.
2426 set dummy gcc; ac_word=$2
2427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2429 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432 if test -n "$ac_ct_CC"; then
2433 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2434 else
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 for as_dir in $PATH
2438 IFS=$as_save_IFS
2439 test -z "$as_dir" && as_dir=.
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2442 ac_cv_prog_ac_ct_CC="gcc"
2443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2444 break 2
2446 done
2447 done
2448 IFS=$as_save_IFS
2452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2453 if test -n "$ac_ct_CC"; then
2454 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2455 echo "${ECHO_T}$ac_ct_CC" >&6; }
2456 else
2457 { echo "$as_me:$LINENO: result: no" >&5
2458 echo "${ECHO_T}no" >&6; }
2461 if test "x$ac_ct_CC" = x; then
2462 CC=""
2463 else
2464 case $cross_compiling:$ac_tool_warned in
2465 yes:)
2466 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2467 whose name does not start with the host triplet. If you think this
2468 configuration is useful to you, please write to autoconf@gnu.org." >&5
2469 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2470 whose name does not start with the host triplet. If you think this
2471 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2472 ac_tool_warned=yes ;;
2473 esac
2474 CC=$ac_ct_CC
2476 else
2477 CC="$ac_cv_prog_CC"
2480 if test -z "$CC"; then
2481 if test -n "$ac_tool_prefix"; then
2482 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2483 set dummy ${ac_tool_prefix}cc; ac_word=$2
2484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2486 if test "${ac_cv_prog_CC+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 else
2489 if test -n "$CC"; then
2490 ac_cv_prog_CC="$CC" # Let the user override the test.
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2499 ac_cv_prog_CC="${ac_tool_prefix}cc"
2500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 break 2
2503 done
2504 done
2505 IFS=$as_save_IFS
2509 CC=$ac_cv_prog_CC
2510 if test -n "$CC"; then
2511 { echo "$as_me:$LINENO: result: $CC" >&5
2512 echo "${ECHO_T}$CC" >&6; }
2513 else
2514 { echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6; }
2521 if test -z "$CC"; then
2522 # Extract the first word of "cc", so it can be a program name with args.
2523 set dummy cc; ac_word=$2
2524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2526 if test "${ac_cv_prog_CC+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2528 else
2529 if test -n "$CC"; then
2530 ac_cv_prog_CC="$CC" # Let the user override the test.
2531 else
2532 ac_prog_rejected=no
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 for as_dir in $PATH
2536 IFS=$as_save_IFS
2537 test -z "$as_dir" && as_dir=.
2538 for ac_exec_ext in '' $ac_executable_extensions; do
2539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2540 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2541 ac_prog_rejected=yes
2542 continue
2544 ac_cv_prog_CC="cc"
2545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 break 2
2548 done
2549 done
2550 IFS=$as_save_IFS
2552 if test $ac_prog_rejected = yes; then
2553 # We found a bogon in the path, so make sure we never use it.
2554 set dummy $ac_cv_prog_CC
2555 shift
2556 if test $# != 0; then
2557 # We chose a different compiler from the bogus one.
2558 # However, it has the same basename, so the bogon will be chosen
2559 # first if we set CC to just the basename; use the full file name.
2560 shift
2561 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2566 CC=$ac_cv_prog_CC
2567 if test -n "$CC"; then
2568 { echo "$as_me:$LINENO: result: $CC" >&5
2569 echo "${ECHO_T}$CC" >&6; }
2570 else
2571 { echo "$as_me:$LINENO: result: no" >&5
2572 echo "${ECHO_T}no" >&6; }
2577 if test -z "$CC"; then
2578 if test -n "$ac_tool_prefix"; then
2579 for ac_prog in cl.exe
2581 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2582 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2585 if test "${ac_cv_prog_CC+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
2587 else
2588 if test -n "$CC"; then
2589 ac_cv_prog_CC="$CC" # Let the user override the test.
2590 else
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 for as_dir in $PATH
2594 IFS=$as_save_IFS
2595 test -z "$as_dir" && as_dir=.
2596 for ac_exec_ext in '' $ac_executable_extensions; do
2597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2598 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 break 2
2602 done
2603 done
2604 IFS=$as_save_IFS
2608 CC=$ac_cv_prog_CC
2609 if test -n "$CC"; then
2610 { echo "$as_me:$LINENO: result: $CC" >&5
2611 echo "${ECHO_T}$CC" >&6; }
2612 else
2613 { echo "$as_me:$LINENO: result: no" >&5
2614 echo "${ECHO_T}no" >&6; }
2618 test -n "$CC" && break
2619 done
2621 if test -z "$CC"; then
2622 ac_ct_CC=$CC
2623 for ac_prog in cl.exe
2625 # Extract the first word of "$ac_prog", so it can be a program name with args.
2626 set dummy $ac_prog; ac_word=$2
2627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2629 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 else
2632 if test -n "$ac_ct_CC"; then
2633 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2634 else
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH
2638 IFS=$as_save_IFS
2639 test -z "$as_dir" && as_dir=.
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2642 ac_cv_prog_ac_ct_CC="$ac_prog"
2643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 break 2
2646 done
2647 done
2648 IFS=$as_save_IFS
2652 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2653 if test -n "$ac_ct_CC"; then
2654 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2655 echo "${ECHO_T}$ac_ct_CC" >&6; }
2656 else
2657 { echo "$as_me:$LINENO: result: no" >&5
2658 echo "${ECHO_T}no" >&6; }
2662 test -n "$ac_ct_CC" && break
2663 done
2665 if test "x$ac_ct_CC" = x; then
2666 CC=""
2667 else
2668 case $cross_compiling:$ac_tool_warned in
2669 yes:)
2670 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2671 whose name does not start with the host triplet. If you think this
2672 configuration is useful to you, please write to autoconf@gnu.org." >&5
2673 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2674 whose name does not start with the host triplet. If you think this
2675 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2676 ac_tool_warned=yes ;;
2677 esac
2678 CC=$ac_ct_CC
2685 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2686 See \`config.log' for more details." >&5
2687 echo "$as_me: error: no acceptable C compiler found in \$PATH
2688 See \`config.log' for more details." >&2;}
2689 { (exit 1); exit 1; }; }
2691 # Provide some information about the compiler.
2692 echo "$as_me:$LINENO: checking for C compiler version" >&5
2693 ac_compiler=`set X $ac_compile; echo $2`
2694 { (ac_try="$ac_compiler --version >&5"
2695 case "(($ac_try" in
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2698 esac
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_compiler --version >&5") 2>&5
2701 ac_status=$?
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }
2704 { (ac_try="$ac_compiler -v >&5"
2705 case "(($ac_try" in
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2708 esac
2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710 (eval "$ac_compiler -v >&5") 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }
2714 { (ac_try="$ac_compiler -V >&5"
2715 case "(($ac_try" in
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2718 esac
2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720 (eval "$ac_compiler -V >&5") 2>&5
2721 ac_status=$?
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }
2725 cat >conftest.$ac_ext <<_ACEOF
2726 /* confdefs.h. */
2727 _ACEOF
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h. */
2733 main ()
2737 return 0;
2739 _ACEOF
2740 ac_clean_files_save=$ac_clean_files
2741 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2742 # Try to create an executable without -o first, disregard a.out.
2743 # It will help us diagnose broken compilers, and finding out an intuition
2744 # of exeext.
2745 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2746 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2747 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2749 # List of possible output files, starting from the most likely.
2750 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2751 # only as a last resort. b.out is created by i960 compilers.
2752 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2754 # The IRIX 6 linker writes into existing files which may not be
2755 # executable, retaining their permissions. Remove them first so a
2756 # subsequent execution test works.
2757 ac_rmfiles=
2758 for ac_file in $ac_files
2760 case $ac_file in
2761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2762 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2763 esac
2764 done
2765 rm -f $ac_rmfiles
2767 if { (ac_try="$ac_link_default"
2768 case "(($ac_try" in
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2771 esac
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_link_default") 2>&5
2774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; then
2777 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2778 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2779 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2780 # so that the user can short-circuit this test for compilers unknown to
2781 # Autoconf.
2782 for ac_file in $ac_files
2784 test -f "$ac_file" || continue
2785 case $ac_file in
2786 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2788 [ab].out )
2789 # We found the default executable, but exeext='' is most
2790 # certainly right.
2791 break;;
2792 *.* )
2793 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2794 then :; else
2795 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2797 # We set ac_cv_exeext here because the later test for it is not
2798 # safe: cross compilers may not add the suffix if given an `-o'
2799 # argument, so we may need to know it at that point already.
2800 # Even if this section looks crufty: it has the advantage of
2801 # actually working.
2802 break;;
2804 break;;
2805 esac
2806 done
2807 test "$ac_cv_exeext" = no && ac_cv_exeext=
2809 else
2810 echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2813 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2814 See \`config.log' for more details." >&5
2815 echo "$as_me: error: C compiler cannot create executables
2816 See \`config.log' for more details." >&2;}
2817 { (exit 77); exit 77; }; }
2820 ac_exeext=$ac_cv_exeext
2821 { echo "$as_me:$LINENO: result: $ac_file" >&5
2822 echo "${ECHO_T}$ac_file" >&6; }
2824 # Check that the compiler produces executables we can run. If not, either
2825 # the compiler is broken, or we cross compile.
2826 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2827 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2828 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2829 # If not cross compiling, check that we can run a simple program.
2830 if test "$cross_compiling" != yes; then
2831 if { ac_try='./$ac_file'
2832 { (case "(($ac_try" in
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2835 esac
2836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837 (eval "$ac_try") 2>&5
2838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; }; then
2841 cross_compiling=no
2842 else
2843 if test "$cross_compiling" = maybe; then
2844 cross_compiling=yes
2845 else
2846 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2847 If you meant to cross compile, use \`--host'.
2848 See \`config.log' for more details." >&5
2849 echo "$as_me: error: cannot run C compiled programs.
2850 If you meant to cross compile, use \`--host'.
2851 See \`config.log' for more details." >&2;}
2852 { (exit 1); exit 1; }; }
2856 { echo "$as_me:$LINENO: result: yes" >&5
2857 echo "${ECHO_T}yes" >&6; }
2859 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2860 ac_clean_files=$ac_clean_files_save
2861 # Check that the compiler produces executables we can run. If not, either
2862 # the compiler is broken, or we cross compile.
2863 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2864 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2865 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2866 echo "${ECHO_T}$cross_compiling" >&6; }
2868 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2869 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2870 if { (ac_try="$ac_link"
2871 case "(($ac_try" in
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2874 esac
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876 (eval "$ac_link") 2>&5
2877 ac_status=$?
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; then
2880 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2881 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2882 # work properly (i.e., refer to `conftest.exe'), while it won't with
2883 # `rm'.
2884 for ac_file in conftest.exe conftest conftest.*; do
2885 test -f "$ac_file" || continue
2886 case $ac_file in
2887 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2888 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2889 break;;
2890 * ) break;;
2891 esac
2892 done
2893 else
2894 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2895 See \`config.log' for more details." >&5
2896 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2897 See \`config.log' for more details." >&2;}
2898 { (exit 1); exit 1; }; }
2901 rm -f conftest$ac_cv_exeext
2902 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2903 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2905 rm -f conftest.$ac_ext
2906 EXEEXT=$ac_cv_exeext
2907 ac_exeext=$EXEEXT
2908 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2909 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2910 if test "${ac_cv_objext+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 else
2913 cat >conftest.$ac_ext <<_ACEOF
2914 /* confdefs.h. */
2915 _ACEOF
2916 cat confdefs.h >>conftest.$ac_ext
2917 cat >>conftest.$ac_ext <<_ACEOF
2918 /* end confdefs.h. */
2921 main ()
2925 return 0;
2927 _ACEOF
2928 rm -f conftest.o conftest.obj
2929 if { (ac_try="$ac_compile"
2930 case "(($ac_try" in
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2933 esac
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_compile") 2>&5
2936 ac_status=$?
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; then
2939 for ac_file in conftest.o conftest.obj conftest.*; do
2940 test -f "$ac_file" || continue;
2941 case $ac_file in
2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2943 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2944 break;;
2945 esac
2946 done
2947 else
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2952 See \`config.log' for more details." >&5
2953 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2954 See \`config.log' for more details." >&2;}
2955 { (exit 1); exit 1; }; }
2958 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2960 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2961 echo "${ECHO_T}$ac_cv_objext" >&6; }
2962 OBJEXT=$ac_cv_objext
2963 ac_objext=$OBJEXT
2964 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2965 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2966 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 else
2969 cat >conftest.$ac_ext <<_ACEOF
2970 /* confdefs.h. */
2971 _ACEOF
2972 cat confdefs.h >>conftest.$ac_ext
2973 cat >>conftest.$ac_ext <<_ACEOF
2974 /* end confdefs.h. */
2977 main ()
2979 #ifndef __GNUC__
2980 choke me
2981 #endif
2984 return 0;
2986 _ACEOF
2987 rm -f conftest.$ac_objext
2988 if { (ac_try="$ac_compile"
2989 case "(($ac_try" in
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2992 esac
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_compile") 2>conftest.er1
2995 ac_status=$?
2996 grep -v '^ *+' conftest.er1 >conftest.err
2997 rm -f conftest.er1
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } &&
3001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3002 { (case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005 esac
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_try") 2>&5
3008 ac_status=$?
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; } &&
3011 { ac_try='test -s conftest.$ac_objext'
3012 { (case "(($ac_try" in
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3015 esac
3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017 (eval "$ac_try") 2>&5
3018 ac_status=$?
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); }; }; then
3021 ac_compiler_gnu=yes
3022 else
3023 echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3026 ac_compiler_gnu=no
3029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3030 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3033 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3034 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3035 GCC=`test $ac_compiler_gnu = yes && echo yes`
3036 ac_test_CFLAGS=${CFLAGS+set}
3037 ac_save_CFLAGS=$CFLAGS
3038 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3039 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3040 if test "${ac_cv_prog_cc_g+set}" = set; then
3041 echo $ECHO_N "(cached) $ECHO_C" >&6
3042 else
3043 ac_save_c_werror_flag=$ac_c_werror_flag
3044 ac_c_werror_flag=yes
3045 ac_cv_prog_cc_g=no
3046 CFLAGS="-g"
3047 cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h. */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3055 main ()
3059 return 0;
3061 _ACEOF
3062 rm -f conftest.$ac_objext
3063 if { (ac_try="$ac_compile"
3064 case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067 esac
3068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069 (eval "$ac_compile") 2>conftest.er1
3070 ac_status=$?
3071 grep -v '^ *+' conftest.er1 >conftest.err
3072 rm -f conftest.er1
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } &&
3076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3077 { (case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080 esac
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_try") 2>&5
3083 ac_status=$?
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; } &&
3086 { ac_try='test -s conftest.$ac_objext'
3087 { (case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090 esac
3091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_try") 2>&5
3093 ac_status=$?
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; }; then
3096 ac_cv_prog_cc_g=yes
3097 else
3098 echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3101 CFLAGS=""
3102 cat >conftest.$ac_ext <<_ACEOF
3103 /* confdefs.h. */
3104 _ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3110 main ()
3114 return 0;
3116 _ACEOF
3117 rm -f conftest.$ac_objext
3118 if { (ac_try="$ac_compile"
3119 case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122 esac
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_compile") 2>conftest.er1
3125 ac_status=$?
3126 grep -v '^ *+' conftest.er1 >conftest.err
3127 rm -f conftest.er1
3128 cat conftest.err >&5
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); } &&
3131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3132 { (case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135 esac
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_try") 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; } &&
3141 { ac_try='test -s conftest.$ac_objext'
3142 { (case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145 esac
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_try") 2>&5
3148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; }; then
3152 else
3153 echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3156 ac_c_werror_flag=$ac_save_c_werror_flag
3157 CFLAGS="-g"
3158 cat >conftest.$ac_ext <<_ACEOF
3159 /* confdefs.h. */
3160 _ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h. */
3166 main ()
3170 return 0;
3172 _ACEOF
3173 rm -f conftest.$ac_objext
3174 if { (ac_try="$ac_compile"
3175 case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178 esac
3179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180 (eval "$ac_compile") 2>conftest.er1
3181 ac_status=$?
3182 grep -v '^ *+' conftest.er1 >conftest.err
3183 rm -f conftest.er1
3184 cat conftest.err >&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } &&
3187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3188 { (case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191 esac
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_try") 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; } &&
3197 { ac_try='test -s conftest.$ac_objext'
3198 { (case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201 esac
3202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203 (eval "$ac_try") 2>&5
3204 ac_status=$?
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }; }; then
3207 ac_cv_prog_cc_g=yes
3208 else
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222 ac_c_werror_flag=$ac_save_c_werror_flag
3224 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3225 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3226 if test "$ac_test_CFLAGS" = set; then
3227 CFLAGS=$ac_save_CFLAGS
3228 elif test $ac_cv_prog_cc_g = yes; then
3229 if test "$GCC" = yes; then
3230 CFLAGS="-g -O2"
3231 else
3232 CFLAGS="-g"
3234 else
3235 if test "$GCC" = yes; then
3236 CFLAGS="-O2"
3237 else
3238 CFLAGS=
3241 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3242 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3243 if test "${ac_cv_prog_cc_c89+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246 ac_cv_prog_cc_c89=no
3247 ac_save_CC=$CC
3248 cat >conftest.$ac_ext <<_ACEOF
3249 /* confdefs.h. */
3250 _ACEOF
3251 cat confdefs.h >>conftest.$ac_ext
3252 cat >>conftest.$ac_ext <<_ACEOF
3253 /* end confdefs.h. */
3254 #include <stdarg.h>
3255 #include <stdio.h>
3256 #include <sys/types.h>
3257 #include <sys/stat.h>
3258 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3259 struct buf { int x; };
3260 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3261 static char *e (p, i)
3262 char **p;
3263 int i;
3265 return p[i];
3267 static char *f (char * (*g) (char **, int), char **p, ...)
3269 char *s;
3270 va_list v;
3271 va_start (v,p);
3272 s = g (p, va_arg (v,int));
3273 va_end (v);
3274 return s;
3277 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3278 function prototypes and stuff, but not '\xHH' hex character constants.
3279 These don't provoke an error unfortunately, instead are silently treated
3280 as 'x'. The following induces an error, until -std is added to get
3281 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3282 array size at least. It's necessary to write '\x00'==0 to get something
3283 that's true only with -std. */
3284 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3286 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3287 inside strings and character constants. */
3288 #define FOO(x) 'x'
3289 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3291 int test (int i, double x);
3292 struct s1 {int (*f) (int a);};
3293 struct s2 {int (*f) (double a);};
3294 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3295 int argc;
3296 char **argv;
3298 main ()
3300 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3302 return 0;
3304 _ACEOF
3305 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3306 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3308 CC="$ac_save_CC $ac_arg"
3309 rm -f conftest.$ac_objext
3310 if { (ac_try="$ac_compile"
3311 case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3314 esac
3315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316 (eval "$ac_compile") 2>conftest.er1
3317 ac_status=$?
3318 grep -v '^ *+' conftest.er1 >conftest.err
3319 rm -f conftest.er1
3320 cat conftest.err >&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); } &&
3323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3324 { (case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327 esac
3328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_try") 2>&5
3330 ac_status=$?
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; } &&
3333 { ac_try='test -s conftest.$ac_objext'
3334 { (case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3337 esac
3338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339 (eval "$ac_try") 2>&5
3340 ac_status=$?
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }; }; then
3343 ac_cv_prog_cc_c89=$ac_arg
3344 else
3345 echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3351 rm -f core conftest.err conftest.$ac_objext
3352 test "x$ac_cv_prog_cc_c89" != "xno" && break
3353 done
3354 rm -f conftest.$ac_ext
3355 CC=$ac_save_CC
3358 # AC_CACHE_VAL
3359 case "x$ac_cv_prog_cc_c89" in
3361 { echo "$as_me:$LINENO: result: none needed" >&5
3362 echo "${ECHO_T}none needed" >&6; } ;;
3363 xno)
3364 { echo "$as_me:$LINENO: result: unsupported" >&5
3365 echo "${ECHO_T}unsupported" >&6; } ;;
3367 CC="$CC $ac_cv_prog_cc_c89"
3368 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3369 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3370 esac
3373 ac_ext=c
3374 ac_cpp='$CPP $CPPFLAGS'
3375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
3385 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3386 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3387 # On Suns, sometimes $CPP names a directory.
3388 if test -n "$CPP" && test -d "$CPP"; then
3389 CPP=
3391 if test -z "$CPP"; then
3392 if test "${ac_cv_prog_CPP+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395 # Double quotes because CPP needs to be expanded
3396 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3398 ac_preproc_ok=false
3399 for ac_c_preproc_warn_flag in '' yes
3401 # Use a header file that comes with gcc, so configuring glibc
3402 # with a fresh cross-compiler works.
3403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3404 # <limits.h> exists even on freestanding compilers.
3405 # On the NeXT, cc -E runs the code through the compiler's parser,
3406 # not just through cpp. "Syntax error" is here to catch this case.
3407 cat >conftest.$ac_ext <<_ACEOF
3408 /* confdefs.h. */
3409 _ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h. */
3413 #ifdef __STDC__
3414 # include <limits.h>
3415 #else
3416 # include <assert.h>
3417 #endif
3418 Syntax error
3419 _ACEOF
3420 if { (ac_try="$ac_cpp conftest.$ac_ext"
3421 case "(($ac_try" in
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3424 esac
3425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } >/dev/null; then
3433 if test -s conftest.err; then
3434 ac_cpp_err=$ac_c_preproc_warn_flag
3435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3436 else
3437 ac_cpp_err=
3439 else
3440 ac_cpp_err=yes
3442 if test -z "$ac_cpp_err"; then
3444 else
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3448 # Broken: fails on valid input.
3449 continue
3452 rm -f conftest.err conftest.$ac_ext
3454 # OK, works on sane cases. Now check whether nonexistent headers
3455 # can be detected and how.
3456 cat >conftest.$ac_ext <<_ACEOF
3457 /* confdefs.h. */
3458 _ACEOF
3459 cat confdefs.h >>conftest.$ac_ext
3460 cat >>conftest.$ac_ext <<_ACEOF
3461 /* end confdefs.h. */
3462 #include <ac_nonexistent.h>
3463 _ACEOF
3464 if { (ac_try="$ac_cpp conftest.$ac_ext"
3465 case "(($ac_try" in
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3468 esac
3469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3471 ac_status=$?
3472 grep -v '^ *+' conftest.er1 >conftest.err
3473 rm -f conftest.er1
3474 cat conftest.err >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } >/dev/null; then
3477 if test -s conftest.err; then
3478 ac_cpp_err=$ac_c_preproc_warn_flag
3479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3480 else
3481 ac_cpp_err=
3483 else
3484 ac_cpp_err=yes
3486 if test -z "$ac_cpp_err"; then
3487 # Broken: success on invalid input.
3488 continue
3489 else
3490 echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3493 # Passes both tests.
3494 ac_preproc_ok=:
3495 break
3498 rm -f conftest.err conftest.$ac_ext
3500 done
3501 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3502 rm -f conftest.err conftest.$ac_ext
3503 if $ac_preproc_ok; then
3504 break
3507 done
3508 ac_cv_prog_CPP=$CPP
3511 CPP=$ac_cv_prog_CPP
3512 else
3513 ac_cv_prog_CPP=$CPP
3515 { echo "$as_me:$LINENO: result: $CPP" >&5
3516 echo "${ECHO_T}$CPP" >&6; }
3517 ac_preproc_ok=false
3518 for ac_c_preproc_warn_flag in '' yes
3520 # Use a header file that comes with gcc, so configuring glibc
3521 # with a fresh cross-compiler works.
3522 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3523 # <limits.h> exists even on freestanding compilers.
3524 # On the NeXT, cc -E runs the code through the compiler's parser,
3525 # not just through cpp. "Syntax error" is here to catch this case.
3526 cat >conftest.$ac_ext <<_ACEOF
3527 /* confdefs.h. */
3528 _ACEOF
3529 cat confdefs.h >>conftest.$ac_ext
3530 cat >>conftest.$ac_ext <<_ACEOF
3531 /* end confdefs.h. */
3532 #ifdef __STDC__
3533 # include <limits.h>
3534 #else
3535 # include <assert.h>
3536 #endif
3537 Syntax error
3538 _ACEOF
3539 if { (ac_try="$ac_cpp conftest.$ac_ext"
3540 case "(($ac_try" in
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3543 esac
3544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3546 ac_status=$?
3547 grep -v '^ *+' conftest.er1 >conftest.err
3548 rm -f conftest.er1
3549 cat conftest.err >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); } >/dev/null; then
3552 if test -s conftest.err; then
3553 ac_cpp_err=$ac_c_preproc_warn_flag
3554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3555 else
3556 ac_cpp_err=
3558 else
3559 ac_cpp_err=yes
3561 if test -z "$ac_cpp_err"; then
3563 else
3564 echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3567 # Broken: fails on valid input.
3568 continue
3571 rm -f conftest.err conftest.$ac_ext
3573 # OK, works on sane cases. Now check whether nonexistent headers
3574 # can be detected and how.
3575 cat >conftest.$ac_ext <<_ACEOF
3576 /* confdefs.h. */
3577 _ACEOF
3578 cat confdefs.h >>conftest.$ac_ext
3579 cat >>conftest.$ac_ext <<_ACEOF
3580 /* end confdefs.h. */
3581 #include <ac_nonexistent.h>
3582 _ACEOF
3583 if { (ac_try="$ac_cpp conftest.$ac_ext"
3584 case "(($ac_try" in
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3587 esac
3588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3590 ac_status=$?
3591 grep -v '^ *+' conftest.er1 >conftest.err
3592 rm -f conftest.er1
3593 cat conftest.err >&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); } >/dev/null; then
3596 if test -s conftest.err; then
3597 ac_cpp_err=$ac_c_preproc_warn_flag
3598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3599 else
3600 ac_cpp_err=
3602 else
3603 ac_cpp_err=yes
3605 if test -z "$ac_cpp_err"; then
3606 # Broken: success on invalid input.
3607 continue
3608 else
3609 echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.$ac_ext >&5
3612 # Passes both tests.
3613 ac_preproc_ok=:
3614 break
3617 rm -f conftest.err conftest.$ac_ext
3619 done
3620 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3621 rm -f conftest.err conftest.$ac_ext
3622 if $ac_preproc_ok; then
3624 else
3625 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3626 See \`config.log' for more details." >&5
3627 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3628 See \`config.log' for more details." >&2;}
3629 { (exit 1); exit 1; }; }
3632 ac_ext=c
3633 ac_cpp='$CPP $CPPFLAGS'
3634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3639 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3640 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3641 if test "${ac_cv_path_GREP+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 else
3644 # Extract the first word of "grep ggrep" to use in msg output
3645 if test -z "$GREP"; then
3646 set dummy grep ggrep; ac_prog_name=$2
3647 if test "${ac_cv_path_GREP+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3649 else
3650 ac_path_GREP_found=false
3651 # Loop through the user's path and test for each of PROGNAME-LIST
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3655 IFS=$as_save_IFS
3656 test -z "$as_dir" && as_dir=.
3657 for ac_prog in grep ggrep; do
3658 for ac_exec_ext in '' $ac_executable_extensions; do
3659 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3660 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3661 # Check for GNU ac_path_GREP and select it if it is found.
3662 # Check for GNU $ac_path_GREP
3663 case `"$ac_path_GREP" --version 2>&1` in
3664 *GNU*)
3665 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3667 ac_count=0
3668 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3669 while :
3671 cat "conftest.in" "conftest.in" >"conftest.tmp"
3672 mv "conftest.tmp" "conftest.in"
3673 cp "conftest.in" "conftest.nl"
3674 echo 'GREP' >> "conftest.nl"
3675 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3676 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3677 ac_count=`expr $ac_count + 1`
3678 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3679 # Best one so far, save it but keep looking for a better one
3680 ac_cv_path_GREP="$ac_path_GREP"
3681 ac_path_GREP_max=$ac_count
3683 # 10*(2^10) chars as input seems more than enough
3684 test $ac_count -gt 10 && break
3685 done
3686 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3687 esac
3690 $ac_path_GREP_found && break 3
3691 done
3692 done
3694 done
3695 IFS=$as_save_IFS
3700 GREP="$ac_cv_path_GREP"
3701 if test -z "$GREP"; then
3702 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3703 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3704 { (exit 1); exit 1; }; }
3707 else
3708 ac_cv_path_GREP=$GREP
3713 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3714 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3715 GREP="$ac_cv_path_GREP"
3718 { echo "$as_me:$LINENO: checking for egrep" >&5
3719 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3720 if test "${ac_cv_path_EGREP+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 else
3723 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3724 then ac_cv_path_EGREP="$GREP -E"
3725 else
3726 # Extract the first word of "egrep" to use in msg output
3727 if test -z "$EGREP"; then
3728 set dummy egrep; ac_prog_name=$2
3729 if test "${ac_cv_path_EGREP+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 else
3732 ac_path_EGREP_found=false
3733 # Loop through the user's path and test for each of PROGNAME-LIST
3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3737 IFS=$as_save_IFS
3738 test -z "$as_dir" && as_dir=.
3739 for ac_prog in egrep; do
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3742 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3743 # Check for GNU ac_path_EGREP and select it if it is found.
3744 # Check for GNU $ac_path_EGREP
3745 case `"$ac_path_EGREP" --version 2>&1` in
3746 *GNU*)
3747 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3749 ac_count=0
3750 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3751 while :
3753 cat "conftest.in" "conftest.in" >"conftest.tmp"
3754 mv "conftest.tmp" "conftest.in"
3755 cp "conftest.in" "conftest.nl"
3756 echo 'EGREP' >> "conftest.nl"
3757 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3758 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3759 ac_count=`expr $ac_count + 1`
3760 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3761 # Best one so far, save it but keep looking for a better one
3762 ac_cv_path_EGREP="$ac_path_EGREP"
3763 ac_path_EGREP_max=$ac_count
3765 # 10*(2^10) chars as input seems more than enough
3766 test $ac_count -gt 10 && break
3767 done
3768 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3769 esac
3772 $ac_path_EGREP_found && break 3
3773 done
3774 done
3776 done
3777 IFS=$as_save_IFS
3782 EGREP="$ac_cv_path_EGREP"
3783 if test -z "$EGREP"; then
3784 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3785 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3786 { (exit 1); exit 1; }; }
3789 else
3790 ac_cv_path_EGREP=$EGREP
3796 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3797 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3798 EGREP="$ac_cv_path_EGREP"
3801 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3802 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3803 if test "${ac_cv_header_stdc+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 else
3806 cat >conftest.$ac_ext <<_ACEOF
3807 /* confdefs.h. */
3808 _ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3812 #include <stdlib.h>
3813 #include <stdarg.h>
3814 #include <string.h>
3815 #include <float.h>
3818 main ()
3822 return 0;
3824 _ACEOF
3825 rm -f conftest.$ac_objext
3826 if { (ac_try="$ac_compile"
3827 case "(($ac_try" in
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3830 esac
3831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3832 (eval "$ac_compile") 2>conftest.er1
3833 ac_status=$?
3834 grep -v '^ *+' conftest.er1 >conftest.err
3835 rm -f conftest.er1
3836 cat conftest.err >&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } &&
3839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3840 { (case "(($ac_try" in
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3843 esac
3844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845 (eval "$ac_try") 2>&5
3846 ac_status=$?
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; } &&
3849 { ac_try='test -s conftest.$ac_objext'
3850 { (case "(($ac_try" in
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3853 esac
3854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3855 (eval "$ac_try") 2>&5
3856 ac_status=$?
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; }; then
3859 ac_cv_header_stdc=yes
3860 else
3861 echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3864 ac_cv_header_stdc=no
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869 if test $ac_cv_header_stdc = yes; then
3870 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3871 cat >conftest.$ac_ext <<_ACEOF
3872 /* confdefs.h. */
3873 _ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h. */
3877 #include <string.h>
3879 _ACEOF
3880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3881 $EGREP "memchr" >/dev/null 2>&1; then
3883 else
3884 ac_cv_header_stdc=no
3886 rm -f conftest*
3890 if test $ac_cv_header_stdc = yes; then
3891 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3892 cat >conftest.$ac_ext <<_ACEOF
3893 /* confdefs.h. */
3894 _ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3898 #include <stdlib.h>
3900 _ACEOF
3901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3902 $EGREP "free" >/dev/null 2>&1; then
3904 else
3905 ac_cv_header_stdc=no
3907 rm -f conftest*
3911 if test $ac_cv_header_stdc = yes; then
3912 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3913 if test "$cross_compiling" = yes; then
3915 else
3916 cat >conftest.$ac_ext <<_ACEOF
3917 /* confdefs.h. */
3918 _ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h. */
3922 #include <ctype.h>
3923 #include <stdlib.h>
3924 #if ((' ' & 0x0FF) == 0x020)
3925 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3926 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3927 #else
3928 # define ISLOWER(c) \
3929 (('a' <= (c) && (c) <= 'i') \
3930 || ('j' <= (c) && (c) <= 'r') \
3931 || ('s' <= (c) && (c) <= 'z'))
3932 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3933 #endif
3935 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3937 main ()
3939 int i;
3940 for (i = 0; i < 256; i++)
3941 if (XOR (islower (i), ISLOWER (i))
3942 || toupper (i) != TOUPPER (i))
3943 return 2;
3944 return 0;
3946 _ACEOF
3947 rm -f conftest$ac_exeext
3948 if { (ac_try="$ac_link"
3949 case "(($ac_try" in
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3952 esac
3953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3954 (eval "$ac_link") 2>&5
3955 ac_status=$?
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3958 { (case "(($ac_try" in
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3961 esac
3962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3963 (eval "$ac_try") 2>&5
3964 ac_status=$?
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }; }; then
3968 else
3969 echo "$as_me: program exited with status $ac_status" >&5
3970 echo "$as_me: failed program was:" >&5
3971 sed 's/^/| /' conftest.$ac_ext >&5
3973 ( exit $ac_status )
3974 ac_cv_header_stdc=no
3976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3982 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3983 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3984 if test $ac_cv_header_stdc = yes; then
3986 cat >>confdefs.h <<\_ACEOF
3987 #define STDC_HEADERS 1
3988 _ACEOF
3992 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4002 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4003 inttypes.h stdint.h unistd.h
4005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4006 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 else
4011 cat >conftest.$ac_ext <<_ACEOF
4012 /* confdefs.h. */
4013 _ACEOF
4014 cat confdefs.h >>conftest.$ac_ext
4015 cat >>conftest.$ac_ext <<_ACEOF
4016 /* end confdefs.h. */
4017 $ac_includes_default
4019 #include <$ac_header>
4020 _ACEOF
4021 rm -f conftest.$ac_objext
4022 if { (ac_try="$ac_compile"
4023 case "(($ac_try" in
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4026 esac
4027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4028 (eval "$ac_compile") 2>conftest.er1
4029 ac_status=$?
4030 grep -v '^ *+' conftest.er1 >conftest.err
4031 rm -f conftest.er1
4032 cat conftest.err >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } &&
4035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4036 { (case "(($ac_try" in
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4039 esac
4040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4041 (eval "$ac_try") 2>&5
4042 ac_status=$?
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; } &&
4045 { ac_try='test -s conftest.$ac_objext'
4046 { (case "(($ac_try" in
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4049 esac
4050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4051 (eval "$ac_try") 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; }; then
4055 eval "$as_ac_Header=yes"
4056 else
4057 echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4060 eval "$as_ac_Header=no"
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 ac_res=`eval echo '${'$as_ac_Header'}'`
4066 { echo "$as_me:$LINENO: result: $ac_res" >&5
4067 echo "${ECHO_T}$ac_res" >&6; }
4068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4069 cat >>confdefs.h <<_ACEOF
4070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4071 _ACEOF
4075 done
4078 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4079 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4080 if test "${ac_cv_c_bigendian+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 else
4083 # See if sys/param.h defines the BYTE_ORDER macro.
4084 cat >conftest.$ac_ext <<_ACEOF
4085 /* confdefs.h. */
4086 _ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h. */
4090 #include <sys/types.h>
4091 #include <sys/param.h>
4094 main ()
4096 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4097 bogus endian macros
4098 #endif
4101 return 0;
4103 _ACEOF
4104 rm -f conftest.$ac_objext
4105 if { (ac_try="$ac_compile"
4106 case "(($ac_try" in
4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108 *) ac_try_echo=$ac_try;;
4109 esac
4110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4111 (eval "$ac_compile") 2>conftest.er1
4112 ac_status=$?
4113 grep -v '^ *+' conftest.er1 >conftest.err
4114 rm -f conftest.er1
4115 cat conftest.err >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } &&
4118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4119 { (case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4122 esac
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_try") 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; } &&
4128 { ac_try='test -s conftest.$ac_objext'
4129 { (case "(($ac_try" in
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4132 esac
4133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134 (eval "$ac_try") 2>&5
4135 ac_status=$?
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; }; then
4138 # It does; now see whether it defined to BIG_ENDIAN or not.
4139 cat >conftest.$ac_ext <<_ACEOF
4140 /* confdefs.h. */
4141 _ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4145 #include <sys/types.h>
4146 #include <sys/param.h>
4149 main ()
4151 #if BYTE_ORDER != BIG_ENDIAN
4152 not big endian
4153 #endif
4156 return 0;
4158 _ACEOF
4159 rm -f conftest.$ac_objext
4160 if { (ac_try="$ac_compile"
4161 case "(($ac_try" in
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4164 esac
4165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166 (eval "$ac_compile") 2>conftest.er1
4167 ac_status=$?
4168 grep -v '^ *+' conftest.er1 >conftest.err
4169 rm -f conftest.er1
4170 cat conftest.err >&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } &&
4173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4174 { (case "(($ac_try" in
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4177 esac
4178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179 (eval "$ac_try") 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; } &&
4183 { ac_try='test -s conftest.$ac_objext'
4184 { (case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4187 esac
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_try") 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 ac_cv_c_bigendian=yes
4194 else
4195 echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4198 ac_cv_c_bigendian=no
4201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202 else
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4206 # It does not; compile a test program.
4207 if test "$cross_compiling" = yes; then
4208 # try to guess the endianness by grepping values into an object file
4209 ac_cv_c_bigendian=unknown
4210 cat >conftest.$ac_ext <<_ACEOF
4211 /* confdefs.h. */
4212 _ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4216 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4217 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4218 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4219 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4220 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4221 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4223 main ()
4225 _ascii (); _ebcdic ();
4227 return 0;
4229 _ACEOF
4230 rm -f conftest.$ac_objext
4231 if { (ac_try="$ac_compile"
4232 case "(($ac_try" in
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4235 esac
4236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237 (eval "$ac_compile") 2>conftest.er1
4238 ac_status=$?
4239 grep -v '^ *+' conftest.er1 >conftest.err
4240 rm -f conftest.er1
4241 cat conftest.err >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); } &&
4244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4245 { (case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4248 esac
4249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250 (eval "$ac_try") 2>&5
4251 ac_status=$?
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); }; } &&
4254 { ac_try='test -s conftest.$ac_objext'
4255 { (case "(($ac_try" in
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4258 esac
4259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4260 (eval "$ac_try") 2>&5
4261 ac_status=$?
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; }; then
4264 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4265 ac_cv_c_bigendian=yes
4267 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4268 if test "$ac_cv_c_bigendian" = unknown; then
4269 ac_cv_c_bigendian=no
4270 else
4271 # finding both strings is unlikely to happen, but who knows?
4272 ac_cv_c_bigendian=unknown
4275 else
4276 echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4283 else
4284 cat >conftest.$ac_ext <<_ACEOF
4285 /* confdefs.h. */
4286 _ACEOF
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h. */
4290 $ac_includes_default
4292 main ()
4295 /* Are we little or big endian? From Harbison&Steele. */
4296 union
4298 long int l;
4299 char c[sizeof (long int)];
4300 } u;
4301 u.l = 1;
4302 return u.c[sizeof (long int) - 1] == 1;
4305 return 0;
4307 _ACEOF
4308 rm -f conftest$ac_exeext
4309 if { (ac_try="$ac_link"
4310 case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313 esac
4314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315 (eval "$ac_link") 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4319 { (case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4322 esac
4323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324 (eval "$ac_try") 2>&5
4325 ac_status=$?
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); }; }; then
4328 ac_cv_c_bigendian=no
4329 else
4330 echo "$as_me: program exited with status $ac_status" >&5
4331 echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4334 ( exit $ac_status )
4335 ac_cv_c_bigendian=yes
4337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4345 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4346 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4347 case $ac_cv_c_bigendian in
4348 yes)
4349 ENDIAN=big
4352 ENDIAN=little
4355 { { echo "$as_me:$LINENO: error: unknown endianness
4356 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4357 echo "$as_me: error: unknown endianness
4358 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4359 { (exit 1); exit 1; }; } ;;
4360 esac
4363 if test "$cross_compiling" = yes; then
4364 LLVM_CROSS_COMPILING=1
4367 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4368 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4369 if test "${ac_cv_build_exeext+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 else
4372 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4373 ac_cv_build_exeext=.exe
4374 else
4375 ac_build_prefix=${build_alias}-
4377 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4378 set dummy ${ac_build_prefix}gcc; ac_word=$2
4379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4381 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384 if test -n "$BUILD_CC"; then
4385 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4386 else
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4394 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 break 2
4398 done
4399 done
4400 IFS=$as_save_IFS
4404 BUILD_CC=$ac_cv_prog_BUILD_CC
4405 if test -n "$BUILD_CC"; then
4406 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4407 echo "${ECHO_T}$BUILD_CC" >&6; }
4408 else
4409 { echo "$as_me:$LINENO: result: no" >&5
4410 echo "${ECHO_T}no" >&6; }
4414 if test -z "$BUILD_CC"; then
4415 # Extract the first word of "gcc", so it can be a program name with args.
4416 set dummy gcc; ac_word=$2
4417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4419 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 else
4422 if test -n "$BUILD_CC"; then
4423 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4424 else
4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426 for as_dir in $PATH
4428 IFS=$as_save_IFS
4429 test -z "$as_dir" && as_dir=.
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4432 ac_cv_prog_BUILD_CC="gcc"
4433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4434 break 2
4436 done
4437 done
4438 IFS=$as_save_IFS
4442 BUILD_CC=$ac_cv_prog_BUILD_CC
4443 if test -n "$BUILD_CC"; then
4444 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4445 echo "${ECHO_T}$BUILD_CC" >&6; }
4446 else
4447 { echo "$as_me:$LINENO: result: no" >&5
4448 echo "${ECHO_T}no" >&6; }
4452 if test -z "$BUILD_CC"; then
4453 # Extract the first word of "cc", so it can be a program name with args.
4454 set dummy cc; ac_word=$2
4455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4457 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4458 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 else
4460 if test -n "$BUILD_CC"; then
4461 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4462 else
4463 ac_prog_rejected=no
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH
4467 IFS=$as_save_IFS
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4471 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4472 ac_prog_rejected=yes
4473 continue
4475 ac_cv_prog_BUILD_CC="cc"
4476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 break 2
4479 done
4480 done
4481 IFS=$as_save_IFS
4483 if test $ac_prog_rejected = yes; then
4484 # We found a bogon in the path, so make sure we never use it.
4485 set dummy $ac_cv_prog_BUILD_CC
4486 shift
4487 if test $# != 0; then
4488 # We chose a different compiler from the bogus one.
4489 # However, it has the same basename, so the bogon will be chosen
4490 # first if we set BUILD_CC to just the basename; use the full file name.
4491 shift
4492 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4497 BUILD_CC=$ac_cv_prog_BUILD_CC
4498 if test -n "$BUILD_CC"; then
4499 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4500 echo "${ECHO_T}$BUILD_CC" >&6; }
4501 else
4502 { echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6; }
4509 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4510 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4511 { (exit 1); exit 1; }; }
4512 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4513 rm -f conftest*
4514 echo 'int main () { return 0; }' > conftest.$ac_ext
4515 ac_cv_build_exeext=
4516 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4517 (eval $ac_build_link) 2>&5
4518 ac_status=$?
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; then
4521 for file in conftest.*; do
4522 case $file in
4523 *.c | *.o | *.obj | *.dSYM) ;;
4524 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4525 esac
4526 done
4527 else
4528 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4529 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4530 { (exit 1); exit 1; }; }
4532 rm -f conftest*
4533 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4537 BUILD_EXEEXT=""
4538 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4539 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4540 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4541 ac_build_exeext=$BUILD_EXEEXT
4543 ac_build_prefix=${build_alias}-
4544 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4545 set dummy ${ac_build_prefix}g++; ac_word=$2
4546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4548 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551 if test -n "$BUILD_CXX"; then
4552 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4553 else
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4561 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 break 2
4565 done
4566 done
4567 IFS=$as_save_IFS
4571 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4572 if test -n "$BUILD_CXX"; then
4573 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4574 echo "${ECHO_T}$BUILD_CXX" >&6; }
4575 else
4576 { echo "$as_me:$LINENO: result: no" >&5
4577 echo "${ECHO_T}no" >&6; }
4581 if test -z "$BUILD_CXX"; then
4582 # Extract the first word of "g++", so it can be a program name with args.
4583 set dummy g++; ac_word=$2
4584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4586 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 else
4589 if test -n "$BUILD_CXX"; then
4590 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4591 else
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH
4595 IFS=$as_save_IFS
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4599 ac_cv_prog_BUILD_CXX="g++"
4600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 break 2
4603 done
4604 done
4605 IFS=$as_save_IFS
4609 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4610 if test -n "$BUILD_CXX"; then
4611 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4612 echo "${ECHO_T}$BUILD_CXX" >&6; }
4613 else
4614 { echo "$as_me:$LINENO: result: no" >&5
4615 echo "${ECHO_T}no" >&6; }
4619 if test -z "$BUILD_CXX"; then
4620 # Extract the first word of "c++", so it can be a program name with args.
4621 set dummy c++; ac_word=$2
4622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4624 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 else
4627 if test -n "$BUILD_CXX"; then
4628 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4629 else
4630 ac_prog_rejected=no
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $PATH
4634 IFS=$as_save_IFS
4635 test -z "$as_dir" && as_dir=.
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4638 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4639 ac_prog_rejected=yes
4640 continue
4642 ac_cv_prog_BUILD_CXX="c++"
4643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 break 2
4646 done
4647 done
4648 IFS=$as_save_IFS
4650 if test $ac_prog_rejected = yes; then
4651 # We found a bogon in the path, so make sure we never use it.
4652 set dummy $ac_cv_prog_BUILD_CXX
4653 shift
4654 if test $# != 0; then
4655 # We chose a different compiler from the bogus one.
4656 # However, it has the same basename, so the bogon will be chosen
4657 # first if we set BUILD_CXX to just the basename; use the full file name.
4658 shift
4659 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4664 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4665 if test -n "$BUILD_CXX"; then
4666 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4667 echo "${ECHO_T}$BUILD_CXX" >&6; }
4668 else
4669 { echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6; }
4676 else
4677 LLVM_CROSS_COMPILING=0
4681 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4682 cvsbuild="yes"
4683 optimize="no"
4684 CVSBUILD=CVSBUILD=1
4686 else
4687 cvsbuild="no"
4688 optimize="yes"
4692 # Check whether --enable-optimized was given.
4693 if test "${enable_optimized+set}" = set; then
4694 enableval=$enable_optimized;
4695 else
4696 enableval=$optimize
4699 if test ${enableval} = "no" ; then
4700 ENABLE_OPTIMIZED=
4702 else
4703 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4707 # Check whether --enable-profiling was given.
4708 if test "${enable_profiling+set}" = set; then
4709 enableval=$enable_profiling;
4710 else
4711 enableval="no"
4714 if test ${enableval} = "no" ; then
4715 ENABLE_PROFILING=
4717 else
4718 ENABLE_PROFILING=ENABLE_PROFILING=1
4722 # Check whether --enable-assertions was given.
4723 if test "${enable_assertions+set}" = set; then
4724 enableval=$enable_assertions;
4725 else
4726 enableval="yes"
4729 if test ${enableval} = "yes" ; then
4730 DISABLE_ASSERTIONS=
4732 else
4733 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4737 # Check whether --enable-expensive-checks was given.
4738 if test "${enable_expensive_checks+set}" = set; then
4739 enableval=$enable_expensive_checks;
4740 else
4741 enableval="no"
4744 if test ${enableval} = "yes" ; then
4745 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4747 EXPENSIVE_CHECKS=yes
4749 else
4750 ENABLE_EXPENSIVE_CHECKS=
4752 EXPENSIVE_CHECKS=no
4756 # Check whether --enable-debug-runtime was given.
4757 if test "${enable_debug_runtime+set}" = set; then
4758 enableval=$enable_debug_runtime;
4759 else
4760 enableval=no
4763 if test ${enableval} = "no" ; then
4764 DEBUG_RUNTIME=
4766 else
4767 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4771 # Check whether --enable-debug-symbols was given.
4772 if test "${enable_debug_symbols+set}" = set; then
4773 enableval=$enable_debug_symbols;
4774 else
4775 enableval=no
4778 if test ${enableval} = "no" ; then
4779 DEBUG_SYMBOLS=
4781 else
4782 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4786 # Check whether --enable-jit was given.
4787 if test "${enable_jit+set}" = set; then
4788 enableval=$enable_jit;
4789 else
4790 enableval=default
4793 if test ${enableval} = "no"
4794 then
4795 JIT=
4797 else
4798 case "$llvm_cv_target_arch" in
4799 x86) TARGET_HAS_JIT=1
4801 Sparc) TARGET_HAS_JIT=0
4803 PowerPC) TARGET_HAS_JIT=1
4805 x86_64) TARGET_HAS_JIT=1
4807 Alpha) TARGET_HAS_JIT=1
4809 ARM) TARGET_HAS_JIT=1
4811 Mips) TARGET_HAS_JIT=0
4813 PIC16) TARGET_HAS_JIT=0
4815 XCore) TARGET_HAS_JIT=0
4817 MSP430) TARGET_HAS_JIT=0
4819 SystemZ) TARGET_HAS_JIT=0
4821 Blackfin) TARGET_HAS_JIT=0
4823 MBlaze) TARGET_HAS_JIT=0
4825 *) TARGET_HAS_JIT=0
4827 esac
4830 # Check whether --enable-doxygen was given.
4831 if test "${enable_doxygen+set}" = set; then
4832 enableval=$enable_doxygen;
4833 else
4834 enableval=default
4837 case "$enableval" in
4838 yes) ENABLE_DOXYGEN=1
4840 no) ENABLE_DOXYGEN=0
4842 default) ENABLE_DOXYGEN=0
4844 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4845 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4846 { (exit 1); exit 1; }; } ;;
4847 esac
4849 # Check whether --enable-threads was given.
4850 if test "${enable_threads+set}" = set; then
4851 enableval=$enable_threads;
4852 else
4853 enableval=default
4856 case "$enableval" in
4857 yes) ENABLE_THREADS=1
4859 no) ENABLE_THREADS=0
4861 default) ENABLE_THREADS=1
4863 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4864 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4865 { (exit 1); exit 1; }; } ;;
4866 esac
4868 cat >>confdefs.h <<_ACEOF
4869 #define ENABLE_THREADS $ENABLE_THREADS
4870 _ACEOF
4873 # Check whether --enable-pic was given.
4874 if test "${enable_pic+set}" = set; then
4875 enableval=$enable_pic;
4876 else
4877 enableval=default
4880 case "$enableval" in
4881 yes) ENABLE_PIC=1
4883 no) ENABLE_PIC=0
4885 default) ENABLE_PIC=1
4887 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4888 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4889 { (exit 1); exit 1; }; } ;;
4890 esac
4892 cat >>confdefs.h <<_ACEOF
4893 #define ENABLE_PIC $ENABLE_PIC
4894 _ACEOF
4897 # Check whether --enable-shared was given.
4898 if test "${enable_shared+set}" = set; then
4899 enableval=$enable_shared;
4900 else
4901 enableval=default
4904 case "$enableval" in
4905 yes) ENABLE_SHARED=1
4907 no) ENABLE_SHARED=0
4909 default) ENABLE_SHARED=0
4911 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4912 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4913 { (exit 1); exit 1; }; } ;;
4914 esac
4916 TARGETS_TO_BUILD=""
4917 # Check whether --enable-targets was given.
4918 if test "${enable_targets+set}" = set; then
4919 enableval=$enable_targets;
4920 else
4921 enableval=all
4924 if test "$enableval" = host-only ; then
4925 enableval=host
4927 case "$enableval" in
4928 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
4929 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4930 case "$a_target" in
4931 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4932 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4933 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4934 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4935 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4936 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4937 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4938 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4939 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4940 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4941 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4942 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4943 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4944 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4945 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4946 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4947 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4948 host) case "$llvm_cv_target_arch" in
4949 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4950 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4951 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4952 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4953 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4954 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4955 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4956 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4957 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4958 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4959 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4960 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4961 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4962 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4963 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4964 echo "$as_me: error: Can not set target to build" >&2;}
4965 { (exit 1); exit 1; }; } ;;
4966 esac ;;
4967 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4968 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4969 { (exit 1); exit 1; }; } ;;
4970 esac
4971 done
4973 esac
4974 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4977 # Determine whether we are building LLVM support for the native architecture.
4978 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4979 for a_target in $TARGETS_TO_BUILD; do
4980 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4981 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4983 cat >>confdefs.h <<_ACEOF
4984 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4985 _ACEOF
4988 done
4990 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4991 # target feature def files.
4992 LLVM_ENUM_TARGETS=""
4993 LLVM_ENUM_ASM_PRINTERS=""
4994 LLVM_ENUM_ASM_PARSERS=""
4995 LLVM_ENUM_DISASSEMBLERS=""
4996 for target_to_build in $TARGETS_TO_BUILD; do
4997 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4998 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4999 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5001 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5002 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5004 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5005 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5007 done
5013 # Check whether --enable-cbe-printf-a was given.
5014 if test "${enable_cbe_printf_a+set}" = set; then
5015 enableval=$enable_cbe_printf_a;
5016 else
5017 enableval=default
5020 case "$enableval" in
5021 yes) ENABLE_CBE_PRINTF_A=1
5023 no) ENABLE_CBE_PRINTF_A=0
5025 default) ENABLE_CBE_PRINTF_A=1
5027 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5028 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5029 { (exit 1); exit 1; }; } ;;
5030 esac
5032 cat >>confdefs.h <<_ACEOF
5033 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5034 _ACEOF
5038 # Check whether --with-llvmgccdir was given.
5039 if test "${with_llvmgccdir+set}" = set; then
5040 withval=$with_llvmgccdir;
5041 else
5042 withval=default
5045 case "$withval" in
5046 default) WITH_LLVMGCCDIR=default ;;
5047 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5048 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5049 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5050 { (exit 1); exit 1; }; } ;;
5051 esac
5054 # Check whether --with-llvmgcc was given.
5055 if test "${with_llvmgcc+set}" = set; then
5056 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5057 WITH_LLVMGCCDIR=""
5062 # Check whether --with-llvmgxx was given.
5063 if test "${with_llvmgxx+set}" = set; then
5064 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5065 WITH_LLVMGCCDIR=""
5069 if test -n "$LLVMGCC"; then
5070 LLVMGCCCOMMAND="$LLVMGCC"
5073 if test -n "$LLVMGXX"; then
5074 LLVMGXXCOMMAND="$LLVMGXX"
5077 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5078 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5079 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5080 { (exit 1); exit 1; }; };
5083 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5084 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5085 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5086 { (exit 1); exit 1; }; };
5090 # Check whether --with-clang was given.
5091 if test "${with_clang+set}" = set; then
5092 withval=$with_clang;
5093 else
5094 with_clang=default
5099 # Check whether --with-built-clang was given.
5100 if test "${with_built_clang+set}" = set; then
5101 withval=$with_built_clang;
5102 else
5103 with_built_clang=check
5107 { echo "$as_me:$LINENO: checking clang compiler" >&5
5108 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5109 WITH_CLANGPATH=""
5110 WITH_BUILT_CLANG=0
5111 if test "$with_clang" != "default"; then
5112 WITH_CLANGPATH="$with_clang"
5113 if ! test -x "$WITH_CLANGPATH"; then
5114 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5115 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5116 { (exit 1); exit 1; }; }
5118 elif test "$with_built_clang" = "yes"; then
5119 WITH_BUILT_CLANG=1
5120 elif test "$with_built_clang" = "no"; then
5121 WITH_BUILT_CLANG=0
5122 else
5123 if test "$with_built_clang" != "check"; then
5124 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5125 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5126 { (exit 1); exit 1; }; }
5129 if test -f ${srcdir}/tools/clang/README.txt; then
5130 WITH_BUILT_CLANG=1
5134 if ! test -z "$WITH_CLANGPATH"; then
5135 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5136 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5137 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5138 elif test "$WITH_BUILT_CLANG" = "1"; then
5139 { echo "$as_me:$LINENO: result: built" >&5
5140 echo "${ECHO_T}built" >&6; }
5141 else
5142 { echo "$as_me:$LINENO: result: none" >&5
5143 echo "${ECHO_T}none" >&6; }
5145 CLANGPATH=$WITH_CLANGPATH
5147 CLANGXXPATH=$WITH_CLANGXXPATH
5149 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5153 # Check whether --with-optimize-option was given.
5154 if test "${with_optimize_option+set}" = set; then
5155 withval=$with_optimize_option;
5156 else
5157 withval=default
5160 { echo "$as_me:$LINENO: checking optimization flags" >&5
5161 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5162 case "$withval" in
5163 default)
5164 case "$llvm_cv_os_type" in
5165 MingW) optimize_option=-O3 ;;
5166 *) optimize_option=-O2 ;;
5167 esac ;;
5168 *) optimize_option="$withval" ;;
5169 esac
5170 OPTIMIZE_OPTION=$optimize_option
5172 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5173 echo "${ECHO_T}$optimize_option" >&6; }
5176 # Check whether --with-extra-options was given.
5177 if test "${with_extra_options+set}" = set; then
5178 withval=$with_extra_options;
5179 else
5180 withval=default
5183 case "$withval" in
5184 default) EXTRA_OPTIONS= ;;
5185 *) EXTRA_OPTIONS=$withval ;;
5186 esac
5187 EXTRA_OPTIONS=$EXTRA_OPTIONS
5190 # Check whether --enable-bindings was given.
5191 if test "${enable_bindings+set}" = set; then
5192 enableval=$enable_bindings;
5193 else
5194 enableval=default
5197 BINDINGS_TO_BUILD=""
5198 case "$enableval" in
5199 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5200 all ) BINDINGS_TO_BUILD="ocaml" ;;
5201 none | no) BINDINGS_TO_BUILD="" ;;
5202 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5203 case "$a_binding" in
5204 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5205 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5206 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5207 { (exit 1); exit 1; }; } ;;
5208 esac
5209 done
5211 esac
5214 # Check whether --with-ocaml-libdir was given.
5215 if test "${with_ocaml_libdir+set}" = set; then
5216 withval=$with_ocaml_libdir;
5217 else
5218 withval=auto
5221 case "$withval" in
5222 auto) with_ocaml_libdir="$withval" ;;
5223 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5224 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5225 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5226 { (exit 1); exit 1; }; } ;;
5227 esac
5230 # Check whether --with-c-include-dirs was given.
5231 if test "${with_c_include_dirs+set}" = set; then
5232 withval=$with_c_include_dirs;
5233 else
5234 withval=""
5238 cat >>confdefs.h <<_ACEOF
5239 #define C_INCLUDE_DIRS "$withval"
5240 _ACEOF
5244 # Check whether --with-cxx-include-root was given.
5245 if test "${with_cxx_include_root+set}" = set; then
5246 withval=$with_cxx_include_root;
5247 else
5248 withval=""
5252 cat >>confdefs.h <<_ACEOF
5253 #define CXX_INCLUDE_ROOT "$withval"
5254 _ACEOF
5258 # Check whether --with-cxx-include-arch was given.
5259 if test "${with_cxx_include_arch+set}" = set; then
5260 withval=$with_cxx_include_arch;
5261 else
5262 withval=""
5266 cat >>confdefs.h <<_ACEOF
5267 #define CXX_INCLUDE_ARCH "$withval"
5268 _ACEOF
5272 # Check whether --with-cxx-include-32bit-dir was given.
5273 if test "${with_cxx_include_32bit_dir+set}" = set; then
5274 withval=$with_cxx_include_32bit_dir;
5275 else
5276 withval=""
5280 cat >>confdefs.h <<_ACEOF
5281 #define CXX_INCLUDE_32BIT_DIR "$withval"
5282 _ACEOF
5286 # Check whether --with-cxx-include-64bit-dir was given.
5287 if test "${with_cxx_include_64bit_dir+set}" = set; then
5288 withval=$with_cxx_include_64bit_dir;
5289 else
5290 withval=""
5294 cat >>confdefs.h <<_ACEOF
5295 #define CXX_INCLUDE_64BIT_DIR "$withval"
5296 _ACEOF
5300 # Check whether --with-binutils-include was given.
5301 if test "${with_binutils_include+set}" = set; then
5302 withval=$with_binutils_include;
5303 else
5304 withval=default
5307 case "$withval" in
5308 default) WITH_BINUTILS_INCDIR=default ;;
5309 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5310 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5311 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5312 { (exit 1); exit 1; }; } ;;
5313 esac
5314 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5315 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5317 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5318 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5319 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5320 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5321 { (exit 1); exit 1; }; };
5325 # Check whether --enable-libffi was given.
5326 if test "${enable_libffi+set}" = set; then
5327 enableval=$enable_libffi; case "$enableval" in
5328 yes) llvm_cv_enable_libffi="yes" ;;
5329 no) llvm_cv_enable_libffi="no" ;;
5330 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5331 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5332 { (exit 1); exit 1; }; } ;;
5333 esac
5334 else
5335 llvm_cv_enable_libffi=no
5339 if test "$llvm_cv_os_type" = "Win32" ; then
5340 llvmc_dynamic="yes"
5341 else
5342 llvmc_dynamic="no"
5345 # Check whether --enable-llvmc-dynamic was given.
5346 if test "${enable_llvmc_dynamic+set}" = set; then
5347 enableval=$enable_llvmc_dynamic;
5348 else
5349 enableval=$llvmc_dynamic
5352 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5353 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5355 else
5356 ENABLE_LLVMC_DYNAMIC=
5360 # Check whether --enable-llvmc-dynamic-plugins was given.
5361 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5362 enableval=$enable_llvmc_dynamic_plugins;
5363 else
5364 enableval=yes
5367 if test ${enableval} = "yes" ; then
5368 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5370 else
5371 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5376 ac_ext=c
5377 ac_cpp='$CPP $CPPFLAGS'
5378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5381 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5382 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5383 # On Suns, sometimes $CPP names a directory.
5384 if test -n "$CPP" && test -d "$CPP"; then
5385 CPP=
5387 if test -z "$CPP"; then
5388 if test "${ac_cv_prog_CPP+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 else
5391 # Double quotes because CPP needs to be expanded
5392 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5394 ac_preproc_ok=false
5395 for ac_c_preproc_warn_flag in '' yes
5397 # Use a header file that comes with gcc, so configuring glibc
5398 # with a fresh cross-compiler works.
5399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5400 # <limits.h> exists even on freestanding compilers.
5401 # On the NeXT, cc -E runs the code through the compiler's parser,
5402 # not just through cpp. "Syntax error" is here to catch this case.
5403 cat >conftest.$ac_ext <<_ACEOF
5404 /* confdefs.h. */
5405 _ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5409 #ifdef __STDC__
5410 # include <limits.h>
5411 #else
5412 # include <assert.h>
5413 #endif
5414 Syntax error
5415 _ACEOF
5416 if { (ac_try="$ac_cpp conftest.$ac_ext"
5417 case "(($ac_try" in
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5420 esac
5421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5423 ac_status=$?
5424 grep -v '^ *+' conftest.er1 >conftest.err
5425 rm -f conftest.er1
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } >/dev/null; then
5429 if test -s conftest.err; then
5430 ac_cpp_err=$ac_c_preproc_warn_flag
5431 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5432 else
5433 ac_cpp_err=
5435 else
5436 ac_cpp_err=yes
5438 if test -z "$ac_cpp_err"; then
5440 else
5441 echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5444 # Broken: fails on valid input.
5445 continue
5448 rm -f conftest.err conftest.$ac_ext
5450 # OK, works on sane cases. Now check whether nonexistent headers
5451 # can be detected and how.
5452 cat >conftest.$ac_ext <<_ACEOF
5453 /* confdefs.h. */
5454 _ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 #include <ac_nonexistent.h>
5459 _ACEOF
5460 if { (ac_try="$ac_cpp conftest.$ac_ext"
5461 case "(($ac_try" in
5462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463 *) ac_try_echo=$ac_try;;
5464 esac
5465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5467 ac_status=$?
5468 grep -v '^ *+' conftest.er1 >conftest.err
5469 rm -f conftest.er1
5470 cat conftest.err >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } >/dev/null; then
5473 if test -s conftest.err; then
5474 ac_cpp_err=$ac_c_preproc_warn_flag
5475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5476 else
5477 ac_cpp_err=
5479 else
5480 ac_cpp_err=yes
5482 if test -z "$ac_cpp_err"; then
5483 # Broken: success on invalid input.
5484 continue
5485 else
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5489 # Passes both tests.
5490 ac_preproc_ok=:
5491 break
5494 rm -f conftest.err conftest.$ac_ext
5496 done
5497 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5498 rm -f conftest.err conftest.$ac_ext
5499 if $ac_preproc_ok; then
5500 break
5503 done
5504 ac_cv_prog_CPP=$CPP
5507 CPP=$ac_cv_prog_CPP
5508 else
5509 ac_cv_prog_CPP=$CPP
5511 { echo "$as_me:$LINENO: result: $CPP" >&5
5512 echo "${ECHO_T}$CPP" >&6; }
5513 ac_preproc_ok=false
5514 for ac_c_preproc_warn_flag in '' yes
5516 # Use a header file that comes with gcc, so configuring glibc
5517 # with a fresh cross-compiler works.
5518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5519 # <limits.h> exists even on freestanding compilers.
5520 # On the NeXT, cc -E runs the code through the compiler's parser,
5521 # not just through cpp. "Syntax error" is here to catch this case.
5522 cat >conftest.$ac_ext <<_ACEOF
5523 /* confdefs.h. */
5524 _ACEOF
5525 cat confdefs.h >>conftest.$ac_ext
5526 cat >>conftest.$ac_ext <<_ACEOF
5527 /* end confdefs.h. */
5528 #ifdef __STDC__
5529 # include <limits.h>
5530 #else
5531 # include <assert.h>
5532 #endif
5533 Syntax error
5534 _ACEOF
5535 if { (ac_try="$ac_cpp conftest.$ac_ext"
5536 case "(($ac_try" in
5537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538 *) ac_try_echo=$ac_try;;
5539 esac
5540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5542 ac_status=$?
5543 grep -v '^ *+' conftest.er1 >conftest.err
5544 rm -f conftest.er1
5545 cat conftest.err >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } >/dev/null; then
5548 if test -s conftest.err; then
5549 ac_cpp_err=$ac_c_preproc_warn_flag
5550 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5551 else
5552 ac_cpp_err=
5554 else
5555 ac_cpp_err=yes
5557 if test -z "$ac_cpp_err"; then
5559 else
5560 echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5563 # Broken: fails on valid input.
5564 continue
5567 rm -f conftest.err conftest.$ac_ext
5569 # OK, works on sane cases. Now check whether nonexistent headers
5570 # can be detected and how.
5571 cat >conftest.$ac_ext <<_ACEOF
5572 /* confdefs.h. */
5573 _ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h. */
5577 #include <ac_nonexistent.h>
5578 _ACEOF
5579 if { (ac_try="$ac_cpp conftest.$ac_ext"
5580 case "(($ac_try" in
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5583 esac
5584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5586 ac_status=$?
5587 grep -v '^ *+' conftest.er1 >conftest.err
5588 rm -f conftest.er1
5589 cat conftest.err >&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } >/dev/null; then
5592 if test -s conftest.err; then
5593 ac_cpp_err=$ac_c_preproc_warn_flag
5594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5595 else
5596 ac_cpp_err=
5598 else
5599 ac_cpp_err=yes
5601 if test -z "$ac_cpp_err"; then
5602 # Broken: success on invalid input.
5603 continue
5604 else
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5608 # Passes both tests.
5609 ac_preproc_ok=:
5610 break
5613 rm -f conftest.err conftest.$ac_ext
5615 done
5616 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5617 rm -f conftest.err conftest.$ac_ext
5618 if $ac_preproc_ok; then
5620 else
5621 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5622 See \`config.log' for more details." >&5
5623 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5624 See \`config.log' for more details." >&2;}
5625 { (exit 1); exit 1; }; }
5628 ac_ext=c
5629 ac_cpp='$CPP $CPPFLAGS'
5630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5634 ac_ext=c
5635 ac_cpp='$CPP $CPPFLAGS'
5636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5639 if test -n "$ac_tool_prefix"; then
5640 for ac_prog in gcc
5642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5643 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5646 if test "${ac_cv_prog_CC+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 else
5649 if test -n "$CC"; then
5650 ac_cv_prog_CC="$CC" # Let the user override the test.
5651 else
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 for as_dir in $PATH
5655 IFS=$as_save_IFS
5656 test -z "$as_dir" && as_dir=.
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5659 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5661 break 2
5663 done
5664 done
5665 IFS=$as_save_IFS
5669 CC=$ac_cv_prog_CC
5670 if test -n "$CC"; then
5671 { echo "$as_me:$LINENO: result: $CC" >&5
5672 echo "${ECHO_T}$CC" >&6; }
5673 else
5674 { echo "$as_me:$LINENO: result: no" >&5
5675 echo "${ECHO_T}no" >&6; }
5679 test -n "$CC" && break
5680 done
5682 if test -z "$CC"; then
5683 ac_ct_CC=$CC
5684 for ac_prog in gcc
5686 # Extract the first word of "$ac_prog", so it can be a program name with args.
5687 set dummy $ac_prog; ac_word=$2
5688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5690 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5692 else
5693 if test -n "$ac_ct_CC"; then
5694 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5695 else
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 for as_dir in $PATH
5699 IFS=$as_save_IFS
5700 test -z "$as_dir" && as_dir=.
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5703 ac_cv_prog_ac_ct_CC="$ac_prog"
5704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5705 break 2
5707 done
5708 done
5709 IFS=$as_save_IFS
5713 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5714 if test -n "$ac_ct_CC"; then
5715 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5716 echo "${ECHO_T}$ac_ct_CC" >&6; }
5717 else
5718 { echo "$as_me:$LINENO: result: no" >&5
5719 echo "${ECHO_T}no" >&6; }
5723 test -n "$ac_ct_CC" && break
5724 done
5726 if test "x$ac_ct_CC" = x; then
5727 CC=""
5728 else
5729 case $cross_compiling:$ac_tool_warned in
5730 yes:)
5731 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5732 whose name does not start with the host triplet. If you think this
5733 configuration is useful to you, please write to autoconf@gnu.org." >&5
5734 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5735 whose name does not start with the host triplet. If you think this
5736 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5737 ac_tool_warned=yes ;;
5738 esac
5739 CC=$ac_ct_CC
5744 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5745 See \`config.log' for more details." >&5
5746 echo "$as_me: error: no acceptable C compiler found in \$PATH
5747 See \`config.log' for more details." >&2;}
5748 { (exit 1); exit 1; }; }
5750 # Provide some information about the compiler.
5751 echo "$as_me:$LINENO: checking for C compiler version" >&5
5752 ac_compiler=`set X $ac_compile; echo $2`
5753 { (ac_try="$ac_compiler --version >&5"
5754 case "(($ac_try" in
5755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5756 *) ac_try_echo=$ac_try;;
5757 esac
5758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5759 (eval "$ac_compiler --version >&5") 2>&5
5760 ac_status=$?
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); }
5763 { (ac_try="$ac_compiler -v >&5"
5764 case "(($ac_try" in
5765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5766 *) ac_try_echo=$ac_try;;
5767 esac
5768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5769 (eval "$ac_compiler -v >&5") 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }
5773 { (ac_try="$ac_compiler -V >&5"
5774 case "(($ac_try" in
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5777 esac
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_compiler -V >&5") 2>&5
5780 ac_status=$?
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }
5784 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5785 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5786 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5788 else
5789 cat >conftest.$ac_ext <<_ACEOF
5790 /* confdefs.h. */
5791 _ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h. */
5797 main ()
5799 #ifndef __GNUC__
5800 choke me
5801 #endif
5804 return 0;
5806 _ACEOF
5807 rm -f conftest.$ac_objext
5808 if { (ac_try="$ac_compile"
5809 case "(($ac_try" in
5810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811 *) ac_try_echo=$ac_try;;
5812 esac
5813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814 (eval "$ac_compile") 2>conftest.er1
5815 ac_status=$?
5816 grep -v '^ *+' conftest.er1 >conftest.err
5817 rm -f conftest.er1
5818 cat conftest.err >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
5821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5822 { (case "(($ac_try" in
5823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5825 esac
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827 (eval "$ac_try") 2>&5
5828 ac_status=$?
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; } &&
5831 { ac_try='test -s conftest.$ac_objext'
5832 { (case "(($ac_try" in
5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5835 esac
5836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837 (eval "$ac_try") 2>&5
5838 ac_status=$?
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; }; then
5841 ac_compiler_gnu=yes
5842 else
5843 echo "$as_me: failed program was:" >&5
5844 sed 's/^/| /' conftest.$ac_ext >&5
5846 ac_compiler_gnu=no
5849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5853 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5854 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5855 GCC=`test $ac_compiler_gnu = yes && echo yes`
5856 ac_test_CFLAGS=${CFLAGS+set}
5857 ac_save_CFLAGS=$CFLAGS
5858 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5859 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5860 if test "${ac_cv_prog_cc_g+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5862 else
5863 ac_save_c_werror_flag=$ac_c_werror_flag
5864 ac_c_werror_flag=yes
5865 ac_cv_prog_cc_g=no
5866 CFLAGS="-g"
5867 cat >conftest.$ac_ext <<_ACEOF
5868 /* confdefs.h. */
5869 _ACEOF
5870 cat confdefs.h >>conftest.$ac_ext
5871 cat >>conftest.$ac_ext <<_ACEOF
5872 /* end confdefs.h. */
5875 main ()
5879 return 0;
5881 _ACEOF
5882 rm -f conftest.$ac_objext
5883 if { (ac_try="$ac_compile"
5884 case "(($ac_try" in
5885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886 *) ac_try_echo=$ac_try;;
5887 esac
5888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889 (eval "$ac_compile") 2>conftest.er1
5890 ac_status=$?
5891 grep -v '^ *+' conftest.er1 >conftest.err
5892 rm -f conftest.er1
5893 cat conftest.err >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } &&
5896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5897 { (case "(($ac_try" in
5898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899 *) ac_try_echo=$ac_try;;
5900 esac
5901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902 (eval "$ac_try") 2>&5
5903 ac_status=$?
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; } &&
5906 { ac_try='test -s conftest.$ac_objext'
5907 { (case "(($ac_try" in
5908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909 *) ac_try_echo=$ac_try;;
5910 esac
5911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912 (eval "$ac_try") 2>&5
5913 ac_status=$?
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; }; then
5916 ac_cv_prog_cc_g=yes
5917 else
5918 echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5921 CFLAGS=""
5922 cat >conftest.$ac_ext <<_ACEOF
5923 /* confdefs.h. */
5924 _ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h. */
5930 main ()
5934 return 0;
5936 _ACEOF
5937 rm -f conftest.$ac_objext
5938 if { (ac_try="$ac_compile"
5939 case "(($ac_try" in
5940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941 *) ac_try_echo=$ac_try;;
5942 esac
5943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5944 (eval "$ac_compile") 2>conftest.er1
5945 ac_status=$?
5946 grep -v '^ *+' conftest.er1 >conftest.err
5947 rm -f conftest.er1
5948 cat conftest.err >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } &&
5951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5952 { (case "(($ac_try" in
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5955 esac
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_try") 2>&5
5958 ac_status=$?
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; } &&
5961 { ac_try='test -s conftest.$ac_objext'
5962 { (case "(($ac_try" in
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5965 esac
5966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967 (eval "$ac_try") 2>&5
5968 ac_status=$?
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); }; }; then
5972 else
5973 echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.$ac_ext >&5
5976 ac_c_werror_flag=$ac_save_c_werror_flag
5977 CFLAGS="-g"
5978 cat >conftest.$ac_ext <<_ACEOF
5979 /* confdefs.h. */
5980 _ACEOF
5981 cat confdefs.h >>conftest.$ac_ext
5982 cat >>conftest.$ac_ext <<_ACEOF
5983 /* end confdefs.h. */
5986 main ()
5990 return 0;
5992 _ACEOF
5993 rm -f conftest.$ac_objext
5994 if { (ac_try="$ac_compile"
5995 case "(($ac_try" in
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5998 esac
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_compile") 2>conftest.er1
6001 ac_status=$?
6002 grep -v '^ *+' conftest.er1 >conftest.err
6003 rm -f conftest.er1
6004 cat conftest.err >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } &&
6007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6008 { (case "(($ac_try" in
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6011 esac
6012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013 (eval "$ac_try") 2>&5
6014 ac_status=$?
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); }; } &&
6017 { ac_try='test -s conftest.$ac_objext'
6018 { (case "(($ac_try" in
6019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6020 *) ac_try_echo=$ac_try;;
6021 esac
6022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6023 (eval "$ac_try") 2>&5
6024 ac_status=$?
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; }; then
6027 ac_cv_prog_cc_g=yes
6028 else
6029 echo "$as_me: failed program was:" >&5
6030 sed 's/^/| /' conftest.$ac_ext >&5
6035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6042 ac_c_werror_flag=$ac_save_c_werror_flag
6044 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6045 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6046 if test "$ac_test_CFLAGS" = set; then
6047 CFLAGS=$ac_save_CFLAGS
6048 elif test $ac_cv_prog_cc_g = yes; then
6049 if test "$GCC" = yes; then
6050 CFLAGS="-g -O2"
6051 else
6052 CFLAGS="-g"
6054 else
6055 if test "$GCC" = yes; then
6056 CFLAGS="-O2"
6057 else
6058 CFLAGS=
6061 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6062 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6063 if test "${ac_cv_prog_cc_c89+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 else
6066 ac_cv_prog_cc_c89=no
6067 ac_save_CC=$CC
6068 cat >conftest.$ac_ext <<_ACEOF
6069 /* confdefs.h. */
6070 _ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6074 #include <stdarg.h>
6075 #include <stdio.h>
6076 #include <sys/types.h>
6077 #include <sys/stat.h>
6078 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6079 struct buf { int x; };
6080 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6081 static char *e (p, i)
6082 char **p;
6083 int i;
6085 return p[i];
6087 static char *f (char * (*g) (char **, int), char **p, ...)
6089 char *s;
6090 va_list v;
6091 va_start (v,p);
6092 s = g (p, va_arg (v,int));
6093 va_end (v);
6094 return s;
6097 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6098 function prototypes and stuff, but not '\xHH' hex character constants.
6099 These don't provoke an error unfortunately, instead are silently treated
6100 as 'x'. The following induces an error, until -std is added to get
6101 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6102 array size at least. It's necessary to write '\x00'==0 to get something
6103 that's true only with -std. */
6104 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6106 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6107 inside strings and character constants. */
6108 #define FOO(x) 'x'
6109 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6111 int test (int i, double x);
6112 struct s1 {int (*f) (int a);};
6113 struct s2 {int (*f) (double a);};
6114 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6115 int argc;
6116 char **argv;
6118 main ()
6120 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6122 return 0;
6124 _ACEOF
6125 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6126 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6128 CC="$ac_save_CC $ac_arg"
6129 rm -f conftest.$ac_objext
6130 if { (ac_try="$ac_compile"
6131 case "(($ac_try" in
6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133 *) ac_try_echo=$ac_try;;
6134 esac
6135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136 (eval "$ac_compile") 2>conftest.er1
6137 ac_status=$?
6138 grep -v '^ *+' conftest.er1 >conftest.err
6139 rm -f conftest.er1
6140 cat conftest.err >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } &&
6143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6144 { (case "(($ac_try" in
6145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6146 *) ac_try_echo=$ac_try;;
6147 esac
6148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6149 (eval "$ac_try") 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; } &&
6153 { ac_try='test -s conftest.$ac_objext'
6154 { (case "(($ac_try" in
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6157 esac
6158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_try") 2>&5
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
6163 ac_cv_prog_cc_c89=$ac_arg
6164 else
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6171 rm -f core conftest.err conftest.$ac_objext
6172 test "x$ac_cv_prog_cc_c89" != "xno" && break
6173 done
6174 rm -f conftest.$ac_ext
6175 CC=$ac_save_CC
6178 # AC_CACHE_VAL
6179 case "x$ac_cv_prog_cc_c89" in
6181 { echo "$as_me:$LINENO: result: none needed" >&5
6182 echo "${ECHO_T}none needed" >&6; } ;;
6183 xno)
6184 { echo "$as_me:$LINENO: result: unsupported" >&5
6185 echo "${ECHO_T}unsupported" >&6; } ;;
6187 CC="$CC $ac_cv_prog_cc_c89"
6188 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6189 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6190 esac
6193 ac_ext=c
6194 ac_cpp='$CPP $CPPFLAGS'
6195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6199 ac_ext=cpp
6200 ac_cpp='$CXXCPP $CPPFLAGS'
6201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6204 if test -z "$CXX"; then
6205 if test -n "$CCC"; then
6206 CXX=$CCC
6207 else
6208 if test -n "$ac_tool_prefix"; then
6209 for ac_prog in g++
6211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6212 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6215 if test "${ac_cv_prog_CXX+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 else
6218 if test -n "$CXX"; then
6219 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6220 else
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 for as_dir in $PATH
6224 IFS=$as_save_IFS
6225 test -z "$as_dir" && as_dir=.
6226 for ac_exec_ext in '' $ac_executable_extensions; do
6227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6228 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6230 break 2
6232 done
6233 done
6234 IFS=$as_save_IFS
6238 CXX=$ac_cv_prog_CXX
6239 if test -n "$CXX"; then
6240 { echo "$as_me:$LINENO: result: $CXX" >&5
6241 echo "${ECHO_T}$CXX" >&6; }
6242 else
6243 { echo "$as_me:$LINENO: result: no" >&5
6244 echo "${ECHO_T}no" >&6; }
6248 test -n "$CXX" && break
6249 done
6251 if test -z "$CXX"; then
6252 ac_ct_CXX=$CXX
6253 for ac_prog in g++
6255 # Extract the first word of "$ac_prog", so it can be a program name with args.
6256 set dummy $ac_prog; ac_word=$2
6257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6259 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6261 else
6262 if test -n "$ac_ct_CXX"; then
6263 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6264 else
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 for as_dir in $PATH
6268 IFS=$as_save_IFS
6269 test -z "$as_dir" && as_dir=.
6270 for ac_exec_ext in '' $ac_executable_extensions; do
6271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6272 ac_cv_prog_ac_ct_CXX="$ac_prog"
6273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6274 break 2
6276 done
6277 done
6278 IFS=$as_save_IFS
6282 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6283 if test -n "$ac_ct_CXX"; then
6284 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6285 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6286 else
6287 { echo "$as_me:$LINENO: result: no" >&5
6288 echo "${ECHO_T}no" >&6; }
6292 test -n "$ac_ct_CXX" && break
6293 done
6295 if test "x$ac_ct_CXX" = x; then
6296 CXX="g++"
6297 else
6298 case $cross_compiling:$ac_tool_warned in
6299 yes:)
6300 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6301 whose name does not start with the host triplet. If you think this
6302 configuration is useful to you, please write to autoconf@gnu.org." >&5
6303 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6304 whose name does not start with the host triplet. If you think this
6305 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6306 ac_tool_warned=yes ;;
6307 esac
6308 CXX=$ac_ct_CXX
6314 # Provide some information about the compiler.
6315 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6316 ac_compiler=`set X $ac_compile; echo $2`
6317 { (ac_try="$ac_compiler --version >&5"
6318 case "(($ac_try" in
6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6321 esac
6322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323 (eval "$ac_compiler --version >&5") 2>&5
6324 ac_status=$?
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }
6327 { (ac_try="$ac_compiler -v >&5"
6328 case "(($ac_try" in
6329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330 *) ac_try_echo=$ac_try;;
6331 esac
6332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6333 (eval "$ac_compiler -v >&5") 2>&5
6334 ac_status=$?
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }
6337 { (ac_try="$ac_compiler -V >&5"
6338 case "(($ac_try" in
6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6341 esac
6342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343 (eval "$ac_compiler -V >&5") 2>&5
6344 ac_status=$?
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }
6348 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6349 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6350 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 else
6353 cat >conftest.$ac_ext <<_ACEOF
6354 /* confdefs.h. */
6355 _ACEOF
6356 cat confdefs.h >>conftest.$ac_ext
6357 cat >>conftest.$ac_ext <<_ACEOF
6358 /* end confdefs.h. */
6361 main ()
6363 #ifndef __GNUC__
6364 choke me
6365 #endif
6368 return 0;
6370 _ACEOF
6371 rm -f conftest.$ac_objext
6372 if { (ac_try="$ac_compile"
6373 case "(($ac_try" in
6374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6375 *) ac_try_echo=$ac_try;;
6376 esac
6377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6378 (eval "$ac_compile") 2>conftest.er1
6379 ac_status=$?
6380 grep -v '^ *+' conftest.er1 >conftest.err
6381 rm -f conftest.er1
6382 cat conftest.err >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } &&
6385 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6386 { (case "(($ac_try" in
6387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6388 *) ac_try_echo=$ac_try;;
6389 esac
6390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6391 (eval "$ac_try") 2>&5
6392 ac_status=$?
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); }; } &&
6395 { ac_try='test -s conftest.$ac_objext'
6396 { (case "(($ac_try" in
6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398 *) ac_try_echo=$ac_try;;
6399 esac
6400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401 (eval "$ac_try") 2>&5
6402 ac_status=$?
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; }; then
6405 ac_compiler_gnu=yes
6406 else
6407 echo "$as_me: failed program was:" >&5
6408 sed 's/^/| /' conftest.$ac_ext >&5
6410 ac_compiler_gnu=no
6413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6414 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6417 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6418 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6419 GXX=`test $ac_compiler_gnu = yes && echo yes`
6420 ac_test_CXXFLAGS=${CXXFLAGS+set}
6421 ac_save_CXXFLAGS=$CXXFLAGS
6422 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6423 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6424 if test "${ac_cv_prog_cxx_g+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6426 else
6427 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6428 ac_cxx_werror_flag=yes
6429 ac_cv_prog_cxx_g=no
6430 CXXFLAGS="-g"
6431 cat >conftest.$ac_ext <<_ACEOF
6432 /* confdefs.h. */
6433 _ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6439 main ()
6443 return 0;
6445 _ACEOF
6446 rm -f conftest.$ac_objext
6447 if { (ac_try="$ac_compile"
6448 case "(($ac_try" in
6449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450 *) ac_try_echo=$ac_try;;
6451 esac
6452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453 (eval "$ac_compile") 2>conftest.er1
6454 ac_status=$?
6455 grep -v '^ *+' conftest.er1 >conftest.err
6456 rm -f conftest.er1
6457 cat conftest.err >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } &&
6460 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6461 { (case "(($ac_try" in
6462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6463 *) ac_try_echo=$ac_try;;
6464 esac
6465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6466 (eval "$ac_try") 2>&5
6467 ac_status=$?
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; } &&
6470 { ac_try='test -s conftest.$ac_objext'
6471 { (case "(($ac_try" in
6472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473 *) ac_try_echo=$ac_try;;
6474 esac
6475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6476 (eval "$ac_try") 2>&5
6477 ac_status=$?
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }; }; then
6480 ac_cv_prog_cxx_g=yes
6481 else
6482 echo "$as_me: failed program was:" >&5
6483 sed 's/^/| /' conftest.$ac_ext >&5
6485 CXXFLAGS=""
6486 cat >conftest.$ac_ext <<_ACEOF
6487 /* confdefs.h. */
6488 _ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h. */
6494 main ()
6498 return 0;
6500 _ACEOF
6501 rm -f conftest.$ac_objext
6502 if { (ac_try="$ac_compile"
6503 case "(($ac_try" in
6504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505 *) ac_try_echo=$ac_try;;
6506 esac
6507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6508 (eval "$ac_compile") 2>conftest.er1
6509 ac_status=$?
6510 grep -v '^ *+' conftest.er1 >conftest.err
6511 rm -f conftest.er1
6512 cat conftest.err >&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } &&
6515 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6516 { (case "(($ac_try" in
6517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6518 *) ac_try_echo=$ac_try;;
6519 esac
6520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6521 (eval "$ac_try") 2>&5
6522 ac_status=$?
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; } &&
6525 { ac_try='test -s conftest.$ac_objext'
6526 { (case "(($ac_try" in
6527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6528 *) ac_try_echo=$ac_try;;
6529 esac
6530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6531 (eval "$ac_try") 2>&5
6532 ac_status=$?
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; }; then
6536 else
6537 echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.$ac_ext >&5
6540 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6541 CXXFLAGS="-g"
6542 cat >conftest.$ac_ext <<_ACEOF
6543 /* confdefs.h. */
6544 _ACEOF
6545 cat confdefs.h >>conftest.$ac_ext
6546 cat >>conftest.$ac_ext <<_ACEOF
6547 /* end confdefs.h. */
6550 main ()
6554 return 0;
6556 _ACEOF
6557 rm -f conftest.$ac_objext
6558 if { (ac_try="$ac_compile"
6559 case "(($ac_try" in
6560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6561 *) ac_try_echo=$ac_try;;
6562 esac
6563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564 (eval "$ac_compile") 2>conftest.er1
6565 ac_status=$?
6566 grep -v '^ *+' conftest.er1 >conftest.err
6567 rm -f conftest.er1
6568 cat conftest.err >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } &&
6571 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6572 { (case "(($ac_try" in
6573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6574 *) ac_try_echo=$ac_try;;
6575 esac
6576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6577 (eval "$ac_try") 2>&5
6578 ac_status=$?
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; } &&
6581 { ac_try='test -s conftest.$ac_objext'
6582 { (case "(($ac_try" in
6583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584 *) ac_try_echo=$ac_try;;
6585 esac
6586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587 (eval "$ac_try") 2>&5
6588 ac_status=$?
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; }; then
6591 ac_cv_prog_cxx_g=yes
6592 else
6593 echo "$as_me: failed program was:" >&5
6594 sed 's/^/| /' conftest.$ac_ext >&5
6599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6608 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6609 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6610 if test "$ac_test_CXXFLAGS" = set; then
6611 CXXFLAGS=$ac_save_CXXFLAGS
6612 elif test $ac_cv_prog_cxx_g = yes; then
6613 if test "$GXX" = yes; then
6614 CXXFLAGS="-g -O2"
6615 else
6616 CXXFLAGS="-g"
6618 else
6619 if test "$GXX" = yes; then
6620 CXXFLAGS="-O2"
6621 else
6622 CXXFLAGS=
6625 ac_ext=c
6626 ac_cpp='$CPP $CPPFLAGS'
6627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6632 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6633 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6634 if test "${lt_cv_path_NM+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
6636 else
6637 if test -n "$NM"; then
6638 # Let the user override the test.
6639 lt_cv_path_NM="$NM"
6640 else
6641 lt_nm_to_check="${ac_tool_prefix}nm"
6642 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6643 lt_nm_to_check="$lt_nm_to_check nm"
6645 for lt_tmp_nm in $lt_nm_to_check; do
6646 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6647 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6648 IFS="$lt_save_ifs"
6649 test -z "$ac_dir" && ac_dir=.
6650 tmp_nm="$ac_dir/$lt_tmp_nm"
6651 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6652 # Check to see if the nm accepts a BSD-compat flag.
6653 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6654 # nm: unknown option "B" ignored
6655 # Tru64's nm complains that /dev/null is an invalid object file
6656 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6657 */dev/null* | *'Invalid file or object type'*)
6658 lt_cv_path_NM="$tmp_nm -B"
6659 break
6662 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6663 */dev/null*)
6664 lt_cv_path_NM="$tmp_nm -p"
6665 break
6668 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6669 continue # so that we can try to find one that supports BSD flags
6671 esac
6673 esac
6675 done
6676 IFS="$lt_save_ifs"
6677 done
6678 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6681 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6682 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6683 NM="$lt_cv_path_NM"
6687 { echo "$as_me:$LINENO: checking for GNU make" >&5
6688 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6689 if test "${llvm_cv_gnu_make_command+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6691 else
6692 llvm_cv_gnu_make_command=''
6693 for a in "$MAKE" make gmake gnumake ; do
6694 if test -z "$a" ; then continue ; fi ;
6695 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6696 then
6697 llvm_cv_gnu_make_command=$a ;
6698 break;
6700 done
6702 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6703 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6704 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6705 ifGNUmake='' ;
6706 else
6707 ifGNUmake='#' ;
6708 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6709 echo "${ECHO_T}\"Not found\"" >&6; };
6713 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6714 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6715 LN_S=$as_ln_s
6716 if test "$LN_S" = "ln -s"; then
6717 { echo "$as_me:$LINENO: result: yes" >&5
6718 echo "${ECHO_T}yes" >&6; }
6719 else
6720 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6721 echo "${ECHO_T}no, using $LN_S" >&6; }
6724 # Extract the first word of "cmp", so it can be a program name with args.
6725 set dummy cmp; ac_word=$2
6726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6728 if test "${ac_cv_path_CMP+set}" = set; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
6730 else
6731 case $CMP in
6732 [\\/]* | ?:[\\/]*)
6733 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 for as_dir in $PATH
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6743 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 break 2
6747 done
6748 done
6749 IFS=$as_save_IFS
6751 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6753 esac
6755 CMP=$ac_cv_path_CMP
6756 if test -n "$CMP"; then
6757 { echo "$as_me:$LINENO: result: $CMP" >&5
6758 echo "${ECHO_T}$CMP" >&6; }
6759 else
6760 { echo "$as_me:$LINENO: result: no" >&5
6761 echo "${ECHO_T}no" >&6; }
6765 # Extract the first word of "cp", so it can be a program name with args.
6766 set dummy cp; ac_word=$2
6767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6769 if test "${ac_cv_path_CP+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 else
6772 case $CP in
6773 [\\/]* | ?:[\\/]*)
6774 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 for as_dir in $PATH
6780 IFS=$as_save_IFS
6781 test -z "$as_dir" && as_dir=.
6782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6784 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 break 2
6788 done
6789 done
6790 IFS=$as_save_IFS
6792 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6794 esac
6796 CP=$ac_cv_path_CP
6797 if test -n "$CP"; then
6798 { echo "$as_me:$LINENO: result: $CP" >&5
6799 echo "${ECHO_T}$CP" >&6; }
6800 else
6801 { echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6; }
6806 # Extract the first word of "date", so it can be a program name with args.
6807 set dummy date; ac_word=$2
6808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6810 if test "${ac_cv_path_DATE+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6812 else
6813 case $DATE in
6814 [\\/]* | ?:[\\/]*)
6815 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6821 IFS=$as_save_IFS
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6825 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6827 break 2
6829 done
6830 done
6831 IFS=$as_save_IFS
6833 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6835 esac
6837 DATE=$ac_cv_path_DATE
6838 if test -n "$DATE"; then
6839 { echo "$as_me:$LINENO: result: $DATE" >&5
6840 echo "${ECHO_T}$DATE" >&6; }
6841 else
6842 { echo "$as_me:$LINENO: result: no" >&5
6843 echo "${ECHO_T}no" >&6; }
6847 # Extract the first word of "find", so it can be a program name with args.
6848 set dummy find; ac_word=$2
6849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851 if test "${ac_cv_path_FIND+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6853 else
6854 case $FIND in
6855 [\\/]* | ?:[\\/]*)
6856 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6870 done
6871 done
6872 IFS=$as_save_IFS
6874 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6876 esac
6878 FIND=$ac_cv_path_FIND
6879 if test -n "$FIND"; then
6880 { echo "$as_me:$LINENO: result: $FIND" >&5
6881 echo "${ECHO_T}$FIND" >&6; }
6882 else
6883 { echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6; }
6888 # Extract the first word of "grep", so it can be a program name with args.
6889 set dummy grep; ac_word=$2
6890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6892 if test "${ac_cv_path_GREP+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6894 else
6895 case $GREP in
6896 [\\/]* | ?:[\\/]*)
6897 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 for as_dir in $PATH
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6907 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6909 break 2
6911 done
6912 done
6913 IFS=$as_save_IFS
6915 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6917 esac
6919 GREP=$ac_cv_path_GREP
6920 if test -n "$GREP"; then
6921 { echo "$as_me:$LINENO: result: $GREP" >&5
6922 echo "${ECHO_T}$GREP" >&6; }
6923 else
6924 { echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6; }
6929 # Extract the first word of "mkdir", so it can be a program name with args.
6930 set dummy mkdir; ac_word=$2
6931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6933 if test "${ac_cv_path_MKDIR+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6935 else
6936 case $MKDIR in
6937 [\\/]* | ?:[\\/]*)
6938 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6948 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 break 2
6952 done
6953 done
6954 IFS=$as_save_IFS
6956 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6958 esac
6960 MKDIR=$ac_cv_path_MKDIR
6961 if test -n "$MKDIR"; then
6962 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6963 echo "${ECHO_T}$MKDIR" >&6; }
6964 else
6965 { echo "$as_me:$LINENO: result: no" >&5
6966 echo "${ECHO_T}no" >&6; }
6970 # Extract the first word of "mv", so it can be a program name with args.
6971 set dummy mv; ac_word=$2
6972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6974 if test "${ac_cv_path_MV+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6976 else
6977 case $MV in
6978 [\\/]* | ?:[\\/]*)
6979 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 for as_dir in $PATH
6985 IFS=$as_save_IFS
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6989 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 break 2
6993 done
6994 done
6995 IFS=$as_save_IFS
6997 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6999 esac
7001 MV=$ac_cv_path_MV
7002 if test -n "$MV"; then
7003 { echo "$as_me:$LINENO: result: $MV" >&5
7004 echo "${ECHO_T}$MV" >&6; }
7005 else
7006 { echo "$as_me:$LINENO: result: no" >&5
7007 echo "${ECHO_T}no" >&6; }
7011 if test -n "$ac_tool_prefix"; then
7012 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7013 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7016 if test "${ac_cv_prog_RANLIB+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7018 else
7019 if test -n "$RANLIB"; then
7020 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7021 else
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 for as_dir in $PATH
7025 IFS=$as_save_IFS
7026 test -z "$as_dir" && as_dir=.
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7029 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7031 break 2
7033 done
7034 done
7035 IFS=$as_save_IFS
7039 RANLIB=$ac_cv_prog_RANLIB
7040 if test -n "$RANLIB"; then
7041 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7042 echo "${ECHO_T}$RANLIB" >&6; }
7043 else
7044 { echo "$as_me:$LINENO: result: no" >&5
7045 echo "${ECHO_T}no" >&6; }
7050 if test -z "$ac_cv_prog_RANLIB"; then
7051 ac_ct_RANLIB=$RANLIB
7052 # Extract the first word of "ranlib", so it can be a program name with args.
7053 set dummy ranlib; ac_word=$2
7054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7056 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059 if test -n "$ac_ct_RANLIB"; then
7060 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7061 else
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 for as_dir in $PATH
7065 IFS=$as_save_IFS
7066 test -z "$as_dir" && as_dir=.
7067 for ac_exec_ext in '' $ac_executable_extensions; do
7068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7069 ac_cv_prog_ac_ct_RANLIB="ranlib"
7070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7071 break 2
7073 done
7074 done
7075 IFS=$as_save_IFS
7079 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7080 if test -n "$ac_ct_RANLIB"; then
7081 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7082 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7083 else
7084 { echo "$as_me:$LINENO: result: no" >&5
7085 echo "${ECHO_T}no" >&6; }
7088 if test "x$ac_ct_RANLIB" = x; then
7089 RANLIB=":"
7090 else
7091 case $cross_compiling:$ac_tool_warned in
7092 yes:)
7093 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7094 whose name does not start with the host triplet. If you think this
7095 configuration is useful to you, please write to autoconf@gnu.org." >&5
7096 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7097 whose name does not start with the host triplet. If you think this
7098 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7099 ac_tool_warned=yes ;;
7100 esac
7101 RANLIB=$ac_ct_RANLIB
7103 else
7104 RANLIB="$ac_cv_prog_RANLIB"
7107 if test -n "$ac_tool_prefix"; then
7108 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7109 set dummy ${ac_tool_prefix}ar; ac_word=$2
7110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7112 if test "${ac_cv_prog_AR+set}" = set; then
7113 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 else
7115 if test -n "$AR"; then
7116 ac_cv_prog_AR="$AR" # Let the user override the test.
7117 else
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 for as_dir in $PATH
7121 IFS=$as_save_IFS
7122 test -z "$as_dir" && as_dir=.
7123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7125 ac_cv_prog_AR="${ac_tool_prefix}ar"
7126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 break 2
7129 done
7130 done
7131 IFS=$as_save_IFS
7135 AR=$ac_cv_prog_AR
7136 if test -n "$AR"; then
7137 { echo "$as_me:$LINENO: result: $AR" >&5
7138 echo "${ECHO_T}$AR" >&6; }
7139 else
7140 { echo "$as_me:$LINENO: result: no" >&5
7141 echo "${ECHO_T}no" >&6; }
7146 if test -z "$ac_cv_prog_AR"; then
7147 ac_ct_AR=$AR
7148 # Extract the first word of "ar", so it can be a program name with args.
7149 set dummy ar; ac_word=$2
7150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7152 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 else
7155 if test -n "$ac_ct_AR"; then
7156 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7157 else
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 for as_dir in $PATH
7161 IFS=$as_save_IFS
7162 test -z "$as_dir" && as_dir=.
7163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7165 ac_cv_prog_ac_ct_AR="ar"
7166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 break 2
7169 done
7170 done
7171 IFS=$as_save_IFS
7175 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7176 if test -n "$ac_ct_AR"; then
7177 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7178 echo "${ECHO_T}$ac_ct_AR" >&6; }
7179 else
7180 { echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6; }
7184 if test "x$ac_ct_AR" = x; then
7185 AR="false"
7186 else
7187 case $cross_compiling:$ac_tool_warned in
7188 yes:)
7189 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7190 whose name does not start with the host triplet. If you think this
7191 configuration is useful to you, please write to autoconf@gnu.org." >&5
7192 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7193 whose name does not start with the host triplet. If you think this
7194 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7195 ac_tool_warned=yes ;;
7196 esac
7197 AR=$ac_ct_AR
7199 else
7200 AR="$ac_cv_prog_AR"
7203 # Extract the first word of "rm", so it can be a program name with args.
7204 set dummy rm; ac_word=$2
7205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7207 if test "${ac_cv_path_RM+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7209 else
7210 case $RM in
7211 [\\/]* | ?:[\\/]*)
7212 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 for as_dir in $PATH
7218 IFS=$as_save_IFS
7219 test -z "$as_dir" && as_dir=.
7220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7222 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 break 2
7226 done
7227 done
7228 IFS=$as_save_IFS
7230 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7232 esac
7234 RM=$ac_cv_path_RM
7235 if test -n "$RM"; then
7236 { echo "$as_me:$LINENO: result: $RM" >&5
7237 echo "${ECHO_T}$RM" >&6; }
7238 else
7239 { echo "$as_me:$LINENO: result: no" >&5
7240 echo "${ECHO_T}no" >&6; }
7244 # Extract the first word of "sed", so it can be a program name with args.
7245 set dummy sed; ac_word=$2
7246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7248 if test "${ac_cv_path_SED+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 else
7251 case $SED in
7252 [\\/]* | ?:[\\/]*)
7253 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 for as_dir in $PATH
7259 IFS=$as_save_IFS
7260 test -z "$as_dir" && as_dir=.
7261 for ac_exec_ext in '' $ac_executable_extensions; do
7262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7263 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7265 break 2
7267 done
7268 done
7269 IFS=$as_save_IFS
7271 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7273 esac
7275 SED=$ac_cv_path_SED
7276 if test -n "$SED"; then
7277 { echo "$as_me:$LINENO: result: $SED" >&5
7278 echo "${ECHO_T}$SED" >&6; }
7279 else
7280 { echo "$as_me:$LINENO: result: no" >&5
7281 echo "${ECHO_T}no" >&6; }
7285 # Extract the first word of "tar", so it can be a program name with args.
7286 set dummy tar; ac_word=$2
7287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7289 if test "${ac_cv_path_TAR+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 else
7292 case $TAR in
7293 [\\/]* | ?:[\\/]*)
7294 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH
7300 IFS=$as_save_IFS
7301 test -z "$as_dir" && as_dir=.
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7304 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7306 break 2
7308 done
7309 done
7310 IFS=$as_save_IFS
7312 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7314 esac
7316 TAR=$ac_cv_path_TAR
7317 if test -n "$TAR"; then
7318 { echo "$as_me:$LINENO: result: $TAR" >&5
7319 echo "${ECHO_T}$TAR" >&6; }
7320 else
7321 { echo "$as_me:$LINENO: result: no" >&5
7322 echo "${ECHO_T}no" >&6; }
7326 # Extract the first word of "pwd", so it can be a program name with args.
7327 set dummy pwd; ac_word=$2
7328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7330 if test "${ac_cv_path_BINPWD+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333 case $BINPWD in
7334 [\\/]* | ?:[\\/]*)
7335 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 for as_dir in $PATH
7341 IFS=$as_save_IFS
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7345 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7347 break 2
7349 done
7350 done
7351 IFS=$as_save_IFS
7353 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7355 esac
7357 BINPWD=$ac_cv_path_BINPWD
7358 if test -n "$BINPWD"; then
7359 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7360 echo "${ECHO_T}$BINPWD" >&6; }
7361 else
7362 { echo "$as_me:$LINENO: result: no" >&5
7363 echo "${ECHO_T}no" >&6; }
7368 # Extract the first word of "Graphviz", so it can be a program name with args.
7369 set dummy Graphviz; ac_word=$2
7370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7372 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 else
7375 case $GRAPHVIZ in
7376 [\\/]* | ?:[\\/]*)
7377 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 for as_dir in $PATH
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7387 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 break 2
7391 done
7392 done
7393 IFS=$as_save_IFS
7395 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7397 esac
7399 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7400 if test -n "$GRAPHVIZ"; then
7401 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7402 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7403 else
7404 { echo "$as_me:$LINENO: result: no" >&5
7405 echo "${ECHO_T}no" >&6; }
7409 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7411 cat >>confdefs.h <<\_ACEOF
7412 #define HAVE_GRAPHVIZ 1
7413 _ACEOF
7415 if test "$llvm_cv_os_type" = "MingW" ; then
7416 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7419 cat >>confdefs.h <<_ACEOF
7420 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7421 _ACEOF
7424 # Extract the first word of "dot", so it can be a program name with args.
7425 set dummy dot; ac_word=$2
7426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7428 if test "${ac_cv_path_DOT+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 else
7431 case $DOT in
7432 [\\/]* | ?:[\\/]*)
7433 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7443 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 break 2
7447 done
7448 done
7449 IFS=$as_save_IFS
7451 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7453 esac
7455 DOT=$ac_cv_path_DOT
7456 if test -n "$DOT"; then
7457 { echo "$as_me:$LINENO: result: $DOT" >&5
7458 echo "${ECHO_T}$DOT" >&6; }
7459 else
7460 { echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6; }
7465 if test "$DOT" != "echo dot" ; then
7467 cat >>confdefs.h <<\_ACEOF
7468 #define HAVE_DOT 1
7469 _ACEOF
7471 if test "$llvm_cv_os_type" = "MingW" ; then
7472 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7475 cat >>confdefs.h <<_ACEOF
7476 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7477 _ACEOF
7480 # Extract the first word of "fdp", so it can be a program name with args.
7481 set dummy fdp; ac_word=$2
7482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7484 if test "${ac_cv_path_FDP+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7486 else
7487 case $FDP in
7488 [\\/]* | ?:[\\/]*)
7489 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493 for as_dir in $PATH
7495 IFS=$as_save_IFS
7496 test -z "$as_dir" && as_dir=.
7497 for ac_exec_ext in '' $ac_executable_extensions; do
7498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7499 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 break 2
7503 done
7504 done
7505 IFS=$as_save_IFS
7507 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7509 esac
7511 FDP=$ac_cv_path_FDP
7512 if test -n "$FDP"; then
7513 { echo "$as_me:$LINENO: result: $FDP" >&5
7514 echo "${ECHO_T}$FDP" >&6; }
7515 else
7516 { echo "$as_me:$LINENO: result: no" >&5
7517 echo "${ECHO_T}no" >&6; }
7521 if test "$FDP" != "echo fdp" ; then
7523 cat >>confdefs.h <<\_ACEOF
7524 #define HAVE_FDP 1
7525 _ACEOF
7527 if test "$llvm_cv_os_type" = "MingW" ; then
7528 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7531 cat >>confdefs.h <<_ACEOF
7532 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7533 _ACEOF
7536 # Extract the first word of "neato", so it can be a program name with args.
7537 set dummy neato; ac_word=$2
7538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7540 if test "${ac_cv_path_NEATO+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 else
7543 case $NEATO in
7544 [\\/]* | ?:[\\/]*)
7545 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 for as_dir in $PATH
7551 IFS=$as_save_IFS
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7555 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7557 break 2
7559 done
7560 done
7561 IFS=$as_save_IFS
7563 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7565 esac
7567 NEATO=$ac_cv_path_NEATO
7568 if test -n "$NEATO"; then
7569 { echo "$as_me:$LINENO: result: $NEATO" >&5
7570 echo "${ECHO_T}$NEATO" >&6; }
7571 else
7572 { echo "$as_me:$LINENO: result: no" >&5
7573 echo "${ECHO_T}no" >&6; }
7577 if test "$NEATO" != "echo neato" ; then
7579 cat >>confdefs.h <<\_ACEOF
7580 #define HAVE_NEATO 1
7581 _ACEOF
7583 if test "$llvm_cv_os_type" = "MingW" ; then
7584 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7587 cat >>confdefs.h <<_ACEOF
7588 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7589 _ACEOF
7592 # Extract the first word of "twopi", so it can be a program name with args.
7593 set dummy twopi; ac_word=$2
7594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7596 if test "${ac_cv_path_TWOPI+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7598 else
7599 case $TWOPI in
7600 [\\/]* | ?:[\\/]*)
7601 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 for as_dir in $PATH
7607 IFS=$as_save_IFS
7608 test -z "$as_dir" && as_dir=.
7609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7611 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 break 2
7615 done
7616 done
7617 IFS=$as_save_IFS
7619 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7621 esac
7623 TWOPI=$ac_cv_path_TWOPI
7624 if test -n "$TWOPI"; then
7625 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7626 echo "${ECHO_T}$TWOPI" >&6; }
7627 else
7628 { echo "$as_me:$LINENO: result: no" >&5
7629 echo "${ECHO_T}no" >&6; }
7633 if test "$TWOPI" != "echo twopi" ; then
7635 cat >>confdefs.h <<\_ACEOF
7636 #define HAVE_TWOPI 1
7637 _ACEOF
7639 if test "$llvm_cv_os_type" = "MingW" ; then
7640 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7643 cat >>confdefs.h <<_ACEOF
7644 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7645 _ACEOF
7648 # Extract the first word of "circo", so it can be a program name with args.
7649 set dummy circo; ac_word=$2
7650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7652 if test "${ac_cv_path_CIRCO+set}" = set; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7654 else
7655 case $CIRCO in
7656 [\\/]* | ?:[\\/]*)
7657 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661 for as_dir in $PATH
7663 IFS=$as_save_IFS
7664 test -z "$as_dir" && as_dir=.
7665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7667 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7669 break 2
7671 done
7672 done
7673 IFS=$as_save_IFS
7675 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7677 esac
7679 CIRCO=$ac_cv_path_CIRCO
7680 if test -n "$CIRCO"; then
7681 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7682 echo "${ECHO_T}$CIRCO" >&6; }
7683 else
7684 { echo "$as_me:$LINENO: result: no" >&5
7685 echo "${ECHO_T}no" >&6; }
7689 if test "$CIRCO" != "echo circo" ; then
7691 cat >>confdefs.h <<\_ACEOF
7692 #define HAVE_CIRCO 1
7693 _ACEOF
7695 if test "$llvm_cv_os_type" = "MingW" ; then
7696 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7699 cat >>confdefs.h <<_ACEOF
7700 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7701 _ACEOF
7704 for ac_prog in gv gsview32
7706 # Extract the first word of "$ac_prog", so it can be a program name with args.
7707 set dummy $ac_prog; ac_word=$2
7708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7710 if test "${ac_cv_path_GV+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7712 else
7713 case $GV in
7714 [\\/]* | ?:[\\/]*)
7715 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 for as_dir in $PATH
7721 IFS=$as_save_IFS
7722 test -z "$as_dir" && as_dir=.
7723 for ac_exec_ext in '' $ac_executable_extensions; do
7724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7725 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7727 break 2
7729 done
7730 done
7731 IFS=$as_save_IFS
7734 esac
7736 GV=$ac_cv_path_GV
7737 if test -n "$GV"; then
7738 { echo "$as_me:$LINENO: result: $GV" >&5
7739 echo "${ECHO_T}$GV" >&6; }
7740 else
7741 { echo "$as_me:$LINENO: result: no" >&5
7742 echo "${ECHO_T}no" >&6; }
7746 test -n "$GV" && break
7747 done
7748 test -n "$GV" || GV="echo gv"
7750 if test "$GV" != "echo gv" ; then
7752 cat >>confdefs.h <<\_ACEOF
7753 #define HAVE_GV 1
7754 _ACEOF
7756 if test "$llvm_cv_os_type" = "MingW" ; then
7757 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7760 cat >>confdefs.h <<_ACEOF
7761 #define LLVM_PATH_GV "$GV${EXEEXT}"
7762 _ACEOF
7765 # Extract the first word of "dotty", so it can be a program name with args.
7766 set dummy dotty; ac_word=$2
7767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7769 if test "${ac_cv_path_DOTTY+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7771 else
7772 case $DOTTY in
7773 [\\/]* | ?:[\\/]*)
7774 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778 for as_dir in $PATH
7780 IFS=$as_save_IFS
7781 test -z "$as_dir" && as_dir=.
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7784 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 break 2
7788 done
7789 done
7790 IFS=$as_save_IFS
7792 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7794 esac
7796 DOTTY=$ac_cv_path_DOTTY
7797 if test -n "$DOTTY"; then
7798 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7799 echo "${ECHO_T}$DOTTY" >&6; }
7800 else
7801 { echo "$as_me:$LINENO: result: no" >&5
7802 echo "${ECHO_T}no" >&6; }
7806 if test "$DOTTY" != "echo dotty" ; then
7808 cat >>confdefs.h <<\_ACEOF
7809 #define HAVE_DOTTY 1
7810 _ACEOF
7812 if test "$llvm_cv_os_type" = "MingW" ; then
7813 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7816 cat >>confdefs.h <<_ACEOF
7817 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7818 _ACEOF
7823 # Extract the first word of "perl", so it can be a program name with args.
7824 set dummy perl; ac_word=$2
7825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7827 if test "${ac_cv_path_PERL+set}" = set; then
7828 echo $ECHO_N "(cached) $ECHO_C" >&6
7829 else
7830 case $PERL in
7831 [\\/]* | ?:[\\/]*)
7832 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 for as_dir in $PATH
7838 IFS=$as_save_IFS
7839 test -z "$as_dir" && as_dir=.
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7842 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 break 2
7846 done
7847 done
7848 IFS=$as_save_IFS
7850 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7852 esac
7854 PERL=$ac_cv_path_PERL
7855 if test -n "$PERL"; then
7856 { echo "$as_me:$LINENO: result: $PERL" >&5
7857 echo "${ECHO_T}$PERL" >&6; }
7858 else
7859 { echo "$as_me:$LINENO: result: no" >&5
7860 echo "${ECHO_T}no" >&6; }
7864 if test "$PERL" != "none"; then
7865 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7866 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7867 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7868 { echo "$as_me:$LINENO: result: yes" >&5
7869 echo "${ECHO_T}yes" >&6; }
7870 else
7871 PERL=none
7872 { echo "$as_me:$LINENO: result: not found" >&5
7873 echo "${ECHO_T}not found" >&6; }
7878 if test x"$PERL" = xnone; then
7879 HAVE_PERL=0
7881 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7882 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7883 { (exit 1); exit 1; }; }
7884 else
7885 HAVE_PERL=1
7889 # Find a good install program. We prefer a C program (faster),
7890 # so one script is as good as another. But avoid the broken or
7891 # incompatible versions:
7892 # SysV /etc/install, /usr/sbin/install
7893 # SunOS /usr/etc/install
7894 # IRIX /sbin/install
7895 # AIX /bin/install
7896 # AmigaOS /C/install, which installs bootblocks on floppy discs
7897 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7898 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7899 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7900 # OS/2's system install, which has a completely different semantic
7901 # ./install, which can be erroneously created by make from ./install.sh.
7902 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7903 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7904 if test -z "$INSTALL"; then
7905 if test "${ac_cv_path_install+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
7907 else
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 for as_dir in $PATH
7911 IFS=$as_save_IFS
7912 test -z "$as_dir" && as_dir=.
7913 # Account for people who put trailing slashes in PATH elements.
7914 case $as_dir/ in
7915 ./ | .// | /cC/* | \
7916 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7917 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7918 /usr/ucb/* ) ;;
7920 # OSF1 and SCO ODT 3.0 have their own names for install.
7921 # Don't use installbsd from OSF since it installs stuff as root
7922 # by default.
7923 for ac_prog in ginstall scoinst install; do
7924 for ac_exec_ext in '' $ac_executable_extensions; do
7925 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7926 if test $ac_prog = install &&
7927 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7928 # AIX install. It has an incompatible calling convention.
7930 elif test $ac_prog = install &&
7931 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7932 # program-specific install script used by HP pwplus--don't use.
7934 else
7935 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7936 break 3
7939 done
7940 done
7942 esac
7943 done
7944 IFS=$as_save_IFS
7948 if test "${ac_cv_path_install+set}" = set; then
7949 INSTALL=$ac_cv_path_install
7950 else
7951 # As a last resort, use the slow shell script. Don't cache a
7952 # value for INSTALL within a source directory, because that will
7953 # break other packages using the cache if that directory is
7954 # removed, or if the value is a relative name.
7955 INSTALL=$ac_install_sh
7958 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7959 echo "${ECHO_T}$INSTALL" >&6; }
7961 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7962 # It thinks the first close brace ends the variable substitution.
7963 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7965 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7967 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7970 # Extract the first word of "bzip2", so it can be a program name with args.
7971 set dummy bzip2; ac_word=$2
7972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7974 if test "${ac_cv_path_BZIP2+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 else
7977 case $BZIP2 in
7978 [\\/]* | ?:[\\/]*)
7979 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 for as_dir in $PATH
7985 IFS=$as_save_IFS
7986 test -z "$as_dir" && as_dir=.
7987 for ac_exec_ext in '' $ac_executable_extensions; do
7988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7989 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7991 break 2
7993 done
7994 done
7995 IFS=$as_save_IFS
7998 esac
8000 BZIP2=$ac_cv_path_BZIP2
8001 if test -n "$BZIP2"; then
8002 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8003 echo "${ECHO_T}$BZIP2" >&6; }
8004 else
8005 { echo "$as_me:$LINENO: result: no" >&5
8006 echo "${ECHO_T}no" >&6; }
8010 # Extract the first word of "doxygen", so it can be a program name with args.
8011 set dummy doxygen; ac_word=$2
8012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8014 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 else
8017 case $DOXYGEN in
8018 [\\/]* | ?:[\\/]*)
8019 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023 for as_dir in $PATH
8025 IFS=$as_save_IFS
8026 test -z "$as_dir" && as_dir=.
8027 for ac_exec_ext in '' $ac_executable_extensions; do
8028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8029 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8031 break 2
8033 done
8034 done
8035 IFS=$as_save_IFS
8038 esac
8040 DOXYGEN=$ac_cv_path_DOXYGEN
8041 if test -n "$DOXYGEN"; then
8042 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8043 echo "${ECHO_T}$DOXYGEN" >&6; }
8044 else
8045 { echo "$as_me:$LINENO: result: no" >&5
8046 echo "${ECHO_T}no" >&6; }
8050 # Extract the first word of "groff", so it can be a program name with args.
8051 set dummy groff; ac_word=$2
8052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8054 if test "${ac_cv_path_GROFF+set}" = set; then
8055 echo $ECHO_N "(cached) $ECHO_C" >&6
8056 else
8057 case $GROFF in
8058 [\\/]* | ?:[\\/]*)
8059 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063 for as_dir in $PATH
8065 IFS=$as_save_IFS
8066 test -z "$as_dir" && as_dir=.
8067 for ac_exec_ext in '' $ac_executable_extensions; do
8068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8069 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8071 break 2
8073 done
8074 done
8075 IFS=$as_save_IFS
8078 esac
8080 GROFF=$ac_cv_path_GROFF
8081 if test -n "$GROFF"; then
8082 { echo "$as_me:$LINENO: result: $GROFF" >&5
8083 echo "${ECHO_T}$GROFF" >&6; }
8084 else
8085 { echo "$as_me:$LINENO: result: no" >&5
8086 echo "${ECHO_T}no" >&6; }
8090 # Extract the first word of "gzip", so it can be a program name with args.
8091 set dummy gzip; ac_word=$2
8092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8094 if test "${ac_cv_path_GZIP+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097 case $GZIP in
8098 [\\/]* | ?:[\\/]*)
8099 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103 for as_dir in $PATH
8105 IFS=$as_save_IFS
8106 test -z "$as_dir" && as_dir=.
8107 for ac_exec_ext in '' $ac_executable_extensions; do
8108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8109 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8111 break 2
8113 done
8114 done
8115 IFS=$as_save_IFS
8118 esac
8120 GZIP=$ac_cv_path_GZIP
8121 if test -n "$GZIP"; then
8122 { echo "$as_me:$LINENO: result: $GZIP" >&5
8123 echo "${ECHO_T}$GZIP" >&6; }
8124 else
8125 { echo "$as_me:$LINENO: result: no" >&5
8126 echo "${ECHO_T}no" >&6; }
8130 # Extract the first word of "pod2html", so it can be a program name with args.
8131 set dummy pod2html; ac_word=$2
8132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8134 if test "${ac_cv_path_POD2HTML+set}" = set; then
8135 echo $ECHO_N "(cached) $ECHO_C" >&6
8136 else
8137 case $POD2HTML in
8138 [\\/]* | ?:[\\/]*)
8139 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143 for as_dir in $PATH
8145 IFS=$as_save_IFS
8146 test -z "$as_dir" && as_dir=.
8147 for ac_exec_ext in '' $ac_executable_extensions; do
8148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8149 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8151 break 2
8153 done
8154 done
8155 IFS=$as_save_IFS
8158 esac
8160 POD2HTML=$ac_cv_path_POD2HTML
8161 if test -n "$POD2HTML"; then
8162 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8163 echo "${ECHO_T}$POD2HTML" >&6; }
8164 else
8165 { echo "$as_me:$LINENO: result: no" >&5
8166 echo "${ECHO_T}no" >&6; }
8170 # Extract the first word of "pod2man", so it can be a program name with args.
8171 set dummy pod2man; ac_word=$2
8172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8174 if test "${ac_cv_path_POD2MAN+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177 case $POD2MAN in
8178 [\\/]* | ?:[\\/]*)
8179 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183 for as_dir in $PATH
8185 IFS=$as_save_IFS
8186 test -z "$as_dir" && as_dir=.
8187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8189 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8191 break 2
8193 done
8194 done
8195 IFS=$as_save_IFS
8198 esac
8200 POD2MAN=$ac_cv_path_POD2MAN
8201 if test -n "$POD2MAN"; then
8202 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8203 echo "${ECHO_T}$POD2MAN" >&6; }
8204 else
8205 { echo "$as_me:$LINENO: result: no" >&5
8206 echo "${ECHO_T}no" >&6; }
8210 # Extract the first word of "runtest", so it can be a program name with args.
8211 set dummy runtest; ac_word=$2
8212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8214 if test "${ac_cv_path_RUNTEST+set}" = set; then
8215 echo $ECHO_N "(cached) $ECHO_C" >&6
8216 else
8217 case $RUNTEST in
8218 [\\/]* | ?:[\\/]*)
8219 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223 for as_dir in $PATH
8225 IFS=$as_save_IFS
8226 test -z "$as_dir" && as_dir=.
8227 for ac_exec_ext in '' $ac_executable_extensions; do
8228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8229 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8231 break 2
8233 done
8234 done
8235 IFS=$as_save_IFS
8238 esac
8240 RUNTEST=$ac_cv_path_RUNTEST
8241 if test -n "$RUNTEST"; then
8242 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8243 echo "${ECHO_T}$RUNTEST" >&6; }
8244 else
8245 { echo "$as_me:$LINENO: result: no" >&5
8246 echo "${ECHO_T}no" >&6; }
8251 no_itcl=true
8252 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8253 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8255 # Check whether --with-tclinclude was given.
8256 if test "${with_tclinclude+set}" = set; then
8257 withval=$with_tclinclude; with_tclinclude=${withval}
8258 else
8259 with_tclinclude=''
8262 if test "${ac_cv_path_tclsh+set}" = set; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
8264 else
8266 if test x"${with_tclinclude}" != x ; then
8267 if test -f ${with_tclinclude}/tclsh ; then
8268 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8269 elif test -f ${with_tclinclude}/src/tclsh ; then
8270 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8271 else
8272 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8273 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8274 { (exit 1); exit 1; }; }
8280 if test x"${ac_cv_path_tclsh}" = x ; then
8281 { echo "$as_me:$LINENO: result: none" >&5
8282 echo "${ECHO_T}none" >&6; }
8283 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
8285 # Extract the first word of "$ac_prog", so it can be a program name with args.
8286 set dummy $ac_prog; ac_word=$2
8287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8289 if test "${ac_cv_path_TCLSH+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8291 else
8292 case $TCLSH in
8293 [\\/]* | ?:[\\/]*)
8294 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8298 for as_dir in $PATH
8300 IFS=$as_save_IFS
8301 test -z "$as_dir" && as_dir=.
8302 for ac_exec_ext in '' $ac_executable_extensions; do
8303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8304 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8306 break 2
8308 done
8309 done
8310 IFS=$as_save_IFS
8313 esac
8315 TCLSH=$ac_cv_path_TCLSH
8316 if test -n "$TCLSH"; then
8317 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8318 echo "${ECHO_T}$TCLSH" >&6; }
8319 else
8320 { echo "$as_me:$LINENO: result: no" >&5
8321 echo "${ECHO_T}no" >&6; }
8325 test -n "$TCLSH" && break
8326 done
8328 if test x"${TCLSH}" = x ; then
8329 ac_cv_path_tclsh='';
8330 else
8331 ac_cv_path_tclsh="${TCLSH}";
8333 else
8334 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8335 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8336 TCLSH="${ac_cv_path_tclsh}"
8340 # Extract the first word of "zip", so it can be a program name with args.
8341 set dummy zip; ac_word=$2
8342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8344 if test "${ac_cv_path_ZIP+set}" = set; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 else
8347 case $ZIP in
8348 [\\/]* | ?:[\\/]*)
8349 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 for as_dir in $PATH
8355 IFS=$as_save_IFS
8356 test -z "$as_dir" && as_dir=.
8357 for ac_exec_ext in '' $ac_executable_extensions; do
8358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8359 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8361 break 2
8363 done
8364 done
8365 IFS=$as_save_IFS
8368 esac
8370 ZIP=$ac_cv_path_ZIP
8371 if test -n "$ZIP"; then
8372 { echo "$as_me:$LINENO: result: $ZIP" >&5
8373 echo "${ECHO_T}$ZIP" >&6; }
8374 else
8375 { echo "$as_me:$LINENO: result: no" >&5
8376 echo "${ECHO_T}no" >&6; }
8380 for ac_prog in ocamlc
8382 # Extract the first word of "$ac_prog", so it can be a program name with args.
8383 set dummy $ac_prog; ac_word=$2
8384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8386 if test "${ac_cv_path_OCAMLC+set}" = set; then
8387 echo $ECHO_N "(cached) $ECHO_C" >&6
8388 else
8389 case $OCAMLC in
8390 [\\/]* | ?:[\\/]*)
8391 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395 for as_dir in $PATH
8397 IFS=$as_save_IFS
8398 test -z "$as_dir" && as_dir=.
8399 for ac_exec_ext in '' $ac_executable_extensions; do
8400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8401 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8403 break 2
8405 done
8406 done
8407 IFS=$as_save_IFS
8410 esac
8412 OCAMLC=$ac_cv_path_OCAMLC
8413 if test -n "$OCAMLC"; then
8414 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8415 echo "${ECHO_T}$OCAMLC" >&6; }
8416 else
8417 { echo "$as_me:$LINENO: result: no" >&5
8418 echo "${ECHO_T}no" >&6; }
8422 test -n "$OCAMLC" && break
8423 done
8425 for ac_prog in ocamlopt
8427 # Extract the first word of "$ac_prog", so it can be a program name with args.
8428 set dummy $ac_prog; ac_word=$2
8429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8431 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
8433 else
8434 case $OCAMLOPT in
8435 [\\/]* | ?:[\\/]*)
8436 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8440 for as_dir in $PATH
8442 IFS=$as_save_IFS
8443 test -z "$as_dir" && as_dir=.
8444 for ac_exec_ext in '' $ac_executable_extensions; do
8445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8446 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8448 break 2
8450 done
8451 done
8452 IFS=$as_save_IFS
8455 esac
8457 OCAMLOPT=$ac_cv_path_OCAMLOPT
8458 if test -n "$OCAMLOPT"; then
8459 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8460 echo "${ECHO_T}$OCAMLOPT" >&6; }
8461 else
8462 { echo "$as_me:$LINENO: result: no" >&5
8463 echo "${ECHO_T}no" >&6; }
8467 test -n "$OCAMLOPT" && break
8468 done
8470 for ac_prog in ocamldep
8472 # Extract the first word of "$ac_prog", so it can be a program name with args.
8473 set dummy $ac_prog; ac_word=$2
8474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8476 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8478 else
8479 case $OCAMLDEP in
8480 [\\/]* | ?:[\\/]*)
8481 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485 for as_dir in $PATH
8487 IFS=$as_save_IFS
8488 test -z "$as_dir" && as_dir=.
8489 for ac_exec_ext in '' $ac_executable_extensions; do
8490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8491 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8493 break 2
8495 done
8496 done
8497 IFS=$as_save_IFS
8500 esac
8502 OCAMLDEP=$ac_cv_path_OCAMLDEP
8503 if test -n "$OCAMLDEP"; then
8504 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8505 echo "${ECHO_T}$OCAMLDEP" >&6; }
8506 else
8507 { echo "$as_me:$LINENO: result: no" >&5
8508 echo "${ECHO_T}no" >&6; }
8512 test -n "$OCAMLDEP" && break
8513 done
8515 for ac_prog in ocamldoc
8517 # Extract the first word of "$ac_prog", so it can be a program name with args.
8518 set dummy $ac_prog; ac_word=$2
8519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8521 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8523 else
8524 case $OCAMLDOC in
8525 [\\/]* | ?:[\\/]*)
8526 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8530 for as_dir in $PATH
8532 IFS=$as_save_IFS
8533 test -z "$as_dir" && as_dir=.
8534 for ac_exec_ext in '' $ac_executable_extensions; do
8535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8536 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8538 break 2
8540 done
8541 done
8542 IFS=$as_save_IFS
8545 esac
8547 OCAMLDOC=$ac_cv_path_OCAMLDOC
8548 if test -n "$OCAMLDOC"; then
8549 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8550 echo "${ECHO_T}$OCAMLDOC" >&6; }
8551 else
8552 { echo "$as_me:$LINENO: result: no" >&5
8553 echo "${ECHO_T}no" >&6; }
8557 test -n "$OCAMLDOC" && break
8558 done
8560 for ac_prog in gas as
8562 # Extract the first word of "$ac_prog", so it can be a program name with args.
8563 set dummy $ac_prog; ac_word=$2
8564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8566 if test "${ac_cv_path_GAS+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8568 else
8569 case $GAS in
8570 [\\/]* | ?:[\\/]*)
8571 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575 for as_dir in $PATH
8577 IFS=$as_save_IFS
8578 test -z "$as_dir" && as_dir=.
8579 for ac_exec_ext in '' $ac_executable_extensions; do
8580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8581 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8583 break 2
8585 done
8586 done
8587 IFS=$as_save_IFS
8590 esac
8592 GAS=$ac_cv_path_GAS
8593 if test -n "$GAS"; then
8594 { echo "$as_me:$LINENO: result: $GAS" >&5
8595 echo "${ECHO_T}$GAS" >&6; }
8596 else
8597 { echo "$as_me:$LINENO: result: no" >&5
8598 echo "${ECHO_T}no" >&6; }
8602 test -n "$GAS" && break
8603 done
8606 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8607 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8608 if test "${llvm_cv_link_use_r+set}" = set; then
8609 echo $ECHO_N "(cached) $ECHO_C" >&6
8610 else
8611 ac_ext=c
8612 ac_cpp='$CPP $CPPFLAGS'
8613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8617 oldcflags="$CFLAGS"
8618 CFLAGS="$CFLAGS -Wl,-R."
8619 cat >conftest.$ac_ext <<_ACEOF
8620 /* confdefs.h. */
8621 _ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h. */
8627 main ()
8629 int main() { return 0; }
8631 return 0;
8633 _ACEOF
8634 rm -f conftest.$ac_objext conftest$ac_exeext
8635 if { (ac_try="$ac_link"
8636 case "(($ac_try" in
8637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638 *) ac_try_echo=$ac_try;;
8639 esac
8640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8641 (eval "$ac_link") 2>conftest.er1
8642 ac_status=$?
8643 grep -v '^ *+' conftest.er1 >conftest.err
8644 rm -f conftest.er1
8645 cat conftest.err >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } &&
8648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8649 { (case "(($ac_try" in
8650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651 *) ac_try_echo=$ac_try;;
8652 esac
8653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8654 (eval "$ac_try") 2>&5
8655 ac_status=$?
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; } &&
8658 { ac_try='test -s conftest$ac_exeext'
8659 { (case "(($ac_try" in
8660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661 *) ac_try_echo=$ac_try;;
8662 esac
8663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8664 (eval "$ac_try") 2>&5
8665 ac_status=$?
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; }; then
8668 llvm_cv_link_use_r=yes
8669 else
8670 echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8673 llvm_cv_link_use_r=no
8676 rm -f core conftest.err conftest.$ac_objext \
8677 conftest$ac_exeext conftest.$ac_ext
8678 CFLAGS="$oldcflags"
8679 ac_ext=c
8680 ac_cpp='$CPP $CPPFLAGS'
8681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8687 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8688 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8689 if test "$llvm_cv_link_use_r" = yes ; then
8691 cat >>confdefs.h <<\_ACEOF
8692 #define HAVE_LINK_R 1
8693 _ACEOF
8698 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8699 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8700 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8701 echo $ECHO_N "(cached) $ECHO_C" >&6
8702 else
8703 ac_ext=c
8704 ac_cpp='$CPP $CPPFLAGS'
8705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8709 oldcflags="$CFLAGS"
8710 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8711 cat >conftest.$ac_ext <<_ACEOF
8712 /* confdefs.h. */
8713 _ACEOF
8714 cat confdefs.h >>conftest.$ac_ext
8715 cat >>conftest.$ac_ext <<_ACEOF
8716 /* end confdefs.h. */
8719 main ()
8721 int main() { return 0; }
8723 return 0;
8725 _ACEOF
8726 rm -f conftest.$ac_objext conftest$ac_exeext
8727 if { (ac_try="$ac_link"
8728 case "(($ac_try" in
8729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730 *) ac_try_echo=$ac_try;;
8731 esac
8732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8733 (eval "$ac_link") 2>conftest.er1
8734 ac_status=$?
8735 grep -v '^ *+' conftest.er1 >conftest.err
8736 rm -f conftest.er1
8737 cat conftest.err >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } &&
8740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8741 { (case "(($ac_try" in
8742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8743 *) ac_try_echo=$ac_try;;
8744 esac
8745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8746 (eval "$ac_try") 2>&5
8747 ac_status=$?
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); }; } &&
8750 { ac_try='test -s conftest$ac_exeext'
8751 { (case "(($ac_try" in
8752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8753 *) ac_try_echo=$ac_try;;
8754 esac
8755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8756 (eval "$ac_try") 2>&5
8757 ac_status=$?
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; }; then
8760 llvm_cv_link_use_export_dynamic=yes
8761 else
8762 echo "$as_me: failed program was:" >&5
8763 sed 's/^/| /' conftest.$ac_ext >&5
8765 llvm_cv_link_use_export_dynamic=no
8768 rm -f core conftest.err conftest.$ac_objext \
8769 conftest$ac_exeext conftest.$ac_ext
8770 CFLAGS="$oldcflags"
8771 ac_ext=c
8772 ac_cpp='$CPP $CPPFLAGS'
8773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8779 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8780 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8781 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8783 cat >>confdefs.h <<\_ACEOF
8784 #define HAVE_LINK_EXPORT_DYNAMIC 1
8785 _ACEOF
8792 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8793 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8794 if test "${ac_cv_c_const+set}" = set; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
8796 else
8797 cat >conftest.$ac_ext <<_ACEOF
8798 /* confdefs.h. */
8799 _ACEOF
8800 cat confdefs.h >>conftest.$ac_ext
8801 cat >>conftest.$ac_ext <<_ACEOF
8802 /* end confdefs.h. */
8805 main ()
8807 /* FIXME: Include the comments suggested by Paul. */
8808 #ifndef __cplusplus
8809 /* Ultrix mips cc rejects this. */
8810 typedef int charset[2];
8811 const charset x;
8812 /* SunOS 4.1.1 cc rejects this. */
8813 char const *const *ccp;
8814 char **p;
8815 /* NEC SVR4.0.2 mips cc rejects this. */
8816 struct point {int x, y;};
8817 static struct point const zero = {0,0};
8818 /* AIX XL C 1.02.0.0 rejects this.
8819 It does not let you subtract one const X* pointer from another in
8820 an arm of an if-expression whose if-part is not a constant
8821 expression */
8822 const char *g = "string";
8823 ccp = &g + (g ? g-g : 0);
8824 /* HPUX 7.0 cc rejects these. */
8825 ++ccp;
8826 p = (char**) ccp;
8827 ccp = (char const *const *) p;
8828 { /* SCO 3.2v4 cc rejects this. */
8829 char *t;
8830 char const *s = 0 ? (char *) 0 : (char const *) 0;
8832 *t++ = 0;
8833 if (s) return 0;
8835 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8836 int x[] = {25, 17};
8837 const int *foo = &x[0];
8838 ++foo;
8840 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8841 typedef const int *iptr;
8842 iptr p = 0;
8843 ++p;
8845 { /* AIX XL C 1.02.0.0 rejects this saying
8846 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8847 struct s { int j; const int *ap[3]; };
8848 struct s *b; b->j = 5;
8850 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8851 const int foo = 10;
8852 if (!foo) return 0;
8854 return !x[0] && !zero.x;
8855 #endif
8858 return 0;
8860 _ACEOF
8861 rm -f conftest.$ac_objext
8862 if { (ac_try="$ac_compile"
8863 case "(($ac_try" in
8864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8865 *) ac_try_echo=$ac_try;;
8866 esac
8867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8868 (eval "$ac_compile") 2>conftest.er1
8869 ac_status=$?
8870 grep -v '^ *+' conftest.er1 >conftest.err
8871 rm -f conftest.er1
8872 cat conftest.err >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } &&
8875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8876 { (case "(($ac_try" in
8877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8878 *) ac_try_echo=$ac_try;;
8879 esac
8880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8881 (eval "$ac_try") 2>&5
8882 ac_status=$?
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); }; } &&
8885 { ac_try='test -s conftest.$ac_objext'
8886 { (case "(($ac_try" in
8887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8888 *) ac_try_echo=$ac_try;;
8889 esac
8890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8891 (eval "$ac_try") 2>&5
8892 ac_status=$?
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); }; }; then
8895 ac_cv_c_const=yes
8896 else
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8900 ac_cv_c_const=no
8903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8905 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8906 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8907 if test $ac_cv_c_const = no; then
8909 cat >>confdefs.h <<\_ACEOF
8910 #define const
8911 _ACEOF
8920 ac_header_dirent=no
8921 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8922 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8923 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8924 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
8927 else
8928 cat >conftest.$ac_ext <<_ACEOF
8929 /* confdefs.h. */
8930 _ACEOF
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h. */
8934 #include <sys/types.h>
8935 #include <$ac_hdr>
8938 main ()
8940 if ((DIR *) 0)
8941 return 0;
8943 return 0;
8945 _ACEOF
8946 rm -f conftest.$ac_objext
8947 if { (ac_try="$ac_compile"
8948 case "(($ac_try" in
8949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8950 *) ac_try_echo=$ac_try;;
8951 esac
8952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8953 (eval "$ac_compile") 2>conftest.er1
8954 ac_status=$?
8955 grep -v '^ *+' conftest.er1 >conftest.err
8956 rm -f conftest.er1
8957 cat conftest.err >&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); } &&
8960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8961 { (case "(($ac_try" in
8962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963 *) ac_try_echo=$ac_try;;
8964 esac
8965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966 (eval "$ac_try") 2>&5
8967 ac_status=$?
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); }; } &&
8970 { ac_try='test -s conftest.$ac_objext'
8971 { (case "(($ac_try" in
8972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8973 *) ac_try_echo=$ac_try;;
8974 esac
8975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8976 (eval "$ac_try") 2>&5
8977 ac_status=$?
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; }; then
8980 eval "$as_ac_Header=yes"
8981 else
8982 echo "$as_me: failed program was:" >&5
8983 sed 's/^/| /' conftest.$ac_ext >&5
8985 eval "$as_ac_Header=no"
8988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8990 ac_res=`eval echo '${'$as_ac_Header'}'`
8991 { echo "$as_me:$LINENO: result: $ac_res" >&5
8992 echo "${ECHO_T}$ac_res" >&6; }
8993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8994 cat >>confdefs.h <<_ACEOF
8995 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8996 _ACEOF
8998 ac_header_dirent=$ac_hdr; break
9001 done
9002 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9003 if test $ac_header_dirent = dirent.h; then
9004 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9005 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9006 if test "${ac_cv_search_opendir+set}" = set; then
9007 echo $ECHO_N "(cached) $ECHO_C" >&6
9008 else
9009 ac_func_search_save_LIBS=$LIBS
9010 cat >conftest.$ac_ext <<_ACEOF
9011 /* confdefs.h. */
9012 _ACEOF
9013 cat confdefs.h >>conftest.$ac_ext
9014 cat >>conftest.$ac_ext <<_ACEOF
9015 /* end confdefs.h. */
9017 /* Override any GCC internal prototype to avoid an error.
9018 Use char because int might match the return type of a GCC
9019 builtin and then its argument prototype would still apply. */
9020 #ifdef __cplusplus
9021 extern "C"
9022 #endif
9023 char opendir ();
9025 main ()
9027 return opendir ();
9029 return 0;
9031 _ACEOF
9032 for ac_lib in '' dir; do
9033 if test -z "$ac_lib"; then
9034 ac_res="none required"
9035 else
9036 ac_res=-l$ac_lib
9037 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9039 rm -f conftest.$ac_objext conftest$ac_exeext
9040 if { (ac_try="$ac_link"
9041 case "(($ac_try" in
9042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9043 *) ac_try_echo=$ac_try;;
9044 esac
9045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9046 (eval "$ac_link") 2>conftest.er1
9047 ac_status=$?
9048 grep -v '^ *+' conftest.er1 >conftest.err
9049 rm -f conftest.er1
9050 cat conftest.err >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); } &&
9053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9054 { (case "(($ac_try" in
9055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9056 *) ac_try_echo=$ac_try;;
9057 esac
9058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9059 (eval "$ac_try") 2>&5
9060 ac_status=$?
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; } &&
9063 { ac_try='test -s conftest$ac_exeext'
9064 { (case "(($ac_try" in
9065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066 *) ac_try_echo=$ac_try;;
9067 esac
9068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069 (eval "$ac_try") 2>&5
9070 ac_status=$?
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }; }; then
9073 ac_cv_search_opendir=$ac_res
9074 else
9075 echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9081 rm -f core conftest.err conftest.$ac_objext \
9082 conftest$ac_exeext
9083 if test "${ac_cv_search_opendir+set}" = set; then
9084 break
9086 done
9087 if test "${ac_cv_search_opendir+set}" = set; then
9089 else
9090 ac_cv_search_opendir=no
9092 rm conftest.$ac_ext
9093 LIBS=$ac_func_search_save_LIBS
9095 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9096 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9097 ac_res=$ac_cv_search_opendir
9098 if test "$ac_res" != no; then
9099 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9103 else
9104 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9105 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9106 if test "${ac_cv_search_opendir+set}" = set; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9108 else
9109 ac_func_search_save_LIBS=$LIBS
9110 cat >conftest.$ac_ext <<_ACEOF
9111 /* confdefs.h. */
9112 _ACEOF
9113 cat confdefs.h >>conftest.$ac_ext
9114 cat >>conftest.$ac_ext <<_ACEOF
9115 /* end confdefs.h. */
9117 /* Override any GCC internal prototype to avoid an error.
9118 Use char because int might match the return type of a GCC
9119 builtin and then its argument prototype would still apply. */
9120 #ifdef __cplusplus
9121 extern "C"
9122 #endif
9123 char opendir ();
9125 main ()
9127 return opendir ();
9129 return 0;
9131 _ACEOF
9132 for ac_lib in '' x; do
9133 if test -z "$ac_lib"; then
9134 ac_res="none required"
9135 else
9136 ac_res=-l$ac_lib
9137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9139 rm -f conftest.$ac_objext conftest$ac_exeext
9140 if { (ac_try="$ac_link"
9141 case "(($ac_try" in
9142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9143 *) ac_try_echo=$ac_try;;
9144 esac
9145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9146 (eval "$ac_link") 2>conftest.er1
9147 ac_status=$?
9148 grep -v '^ *+' conftest.er1 >conftest.err
9149 rm -f conftest.er1
9150 cat conftest.err >&5
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); } &&
9153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9154 { (case "(($ac_try" in
9155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9156 *) ac_try_echo=$ac_try;;
9157 esac
9158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9159 (eval "$ac_try") 2>&5
9160 ac_status=$?
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); }; } &&
9163 { ac_try='test -s conftest$ac_exeext'
9164 { (case "(($ac_try" in
9165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9166 *) ac_try_echo=$ac_try;;
9167 esac
9168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9169 (eval "$ac_try") 2>&5
9170 ac_status=$?
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); }; }; then
9173 ac_cv_search_opendir=$ac_res
9174 else
9175 echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9181 rm -f core conftest.err conftest.$ac_objext \
9182 conftest$ac_exeext
9183 if test "${ac_cv_search_opendir+set}" = set; then
9184 break
9186 done
9187 if test "${ac_cv_search_opendir+set}" = set; then
9189 else
9190 ac_cv_search_opendir=no
9192 rm conftest.$ac_ext
9193 LIBS=$ac_func_search_save_LIBS
9195 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9196 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9197 ac_res=$ac_cv_search_opendir
9198 if test "$ac_res" != no; then
9199 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9206 for ac_header in dlfcn.h
9208 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 ac_res=`eval echo '${'$as_ac_Header'}'`
9216 { echo "$as_me:$LINENO: result: $ac_res" >&5
9217 echo "${ECHO_T}$ac_res" >&6; }
9218 else
9219 # Is the header compilable?
9220 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9222 cat >conftest.$ac_ext <<_ACEOF
9223 /* confdefs.h. */
9224 _ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h. */
9228 $ac_includes_default
9229 #include <$ac_header>
9230 _ACEOF
9231 rm -f conftest.$ac_objext
9232 if { (ac_try="$ac_compile"
9233 case "(($ac_try" in
9234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9235 *) ac_try_echo=$ac_try;;
9236 esac
9237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9238 (eval "$ac_compile") 2>conftest.er1
9239 ac_status=$?
9240 grep -v '^ *+' conftest.er1 >conftest.err
9241 rm -f conftest.er1
9242 cat conftest.err >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); } &&
9245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9246 { (case "(($ac_try" in
9247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9248 *) ac_try_echo=$ac_try;;
9249 esac
9250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9251 (eval "$ac_try") 2>&5
9252 ac_status=$?
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; } &&
9255 { ac_try='test -s conftest.$ac_objext'
9256 { (case "(($ac_try" in
9257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9258 *) ac_try_echo=$ac_try;;
9259 esac
9260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9261 (eval "$ac_try") 2>&5
9262 ac_status=$?
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; }; then
9265 ac_header_compiler=yes
9266 else
9267 echo "$as_me: failed program was:" >&5
9268 sed 's/^/| /' conftest.$ac_ext >&5
9270 ac_header_compiler=no
9273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9274 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9275 echo "${ECHO_T}$ac_header_compiler" >&6; }
9277 # Is the header present?
9278 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9280 cat >conftest.$ac_ext <<_ACEOF
9281 /* confdefs.h. */
9282 _ACEOF
9283 cat confdefs.h >>conftest.$ac_ext
9284 cat >>conftest.$ac_ext <<_ACEOF
9285 /* end confdefs.h. */
9286 #include <$ac_header>
9287 _ACEOF
9288 if { (ac_try="$ac_cpp conftest.$ac_ext"
9289 case "(($ac_try" in
9290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9291 *) ac_try_echo=$ac_try;;
9292 esac
9293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9295 ac_status=$?
9296 grep -v '^ *+' conftest.er1 >conftest.err
9297 rm -f conftest.er1
9298 cat conftest.err >&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); } >/dev/null; then
9301 if test -s conftest.err; then
9302 ac_cpp_err=$ac_c_preproc_warn_flag
9303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9304 else
9305 ac_cpp_err=
9307 else
9308 ac_cpp_err=yes
9310 if test -z "$ac_cpp_err"; then
9311 ac_header_preproc=yes
9312 else
9313 echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9316 ac_header_preproc=no
9319 rm -f conftest.err conftest.$ac_ext
9320 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9321 echo "${ECHO_T}$ac_header_preproc" >&6; }
9323 # So? What about this header?
9324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9325 yes:no: )
9326 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9330 ac_header_preproc=yes
9332 no:yes:* )
9333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9336 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9337 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9338 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9339 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9340 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9343 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9344 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9345 ( cat <<\_ASBOX
9346 ## ----------------------------------- ##
9347 ## Report this to llvmbugs@cs.uiuc.edu ##
9348 ## ----------------------------------- ##
9349 _ASBOX
9350 ) | sed "s/^/$as_me: WARNING: /" >&2
9352 esac
9353 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9357 else
9358 eval "$as_ac_Header=\$ac_header_preproc"
9360 ac_res=`eval echo '${'$as_ac_Header'}'`
9361 { echo "$as_me:$LINENO: result: $ac_res" >&5
9362 echo "${ECHO_T}$ac_res" >&6; }
9365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9366 cat >>confdefs.h <<_ACEOF
9367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9368 _ACEOF
9372 done
9374 # Check whether --enable-ltdl-install was given.
9375 if test "${enable_ltdl_install+set}" = set; then
9376 enableval=$enable_ltdl_install;
9382 if test x"${enable_ltdl_install-no}" != xno; then
9383 INSTALL_LTDL_TRUE=
9384 INSTALL_LTDL_FALSE='#'
9385 else
9386 INSTALL_LTDL_TRUE='#'
9387 INSTALL_LTDL_FALSE=
9392 if test x"${enable_ltdl_convenience-no}" != xno; then
9393 CONVENIENCE_LTDL_TRUE=
9394 CONVENIENCE_LTDL_FALSE='#'
9395 else
9396 CONVENIENCE_LTDL_TRUE='#'
9397 CONVENIENCE_LTDL_FALSE=
9401 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9402 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9403 library_names_spec=
9404 libname_spec='lib$name'
9405 soname_spec=
9406 shrext_cmds=".so"
9407 postinstall_cmds=
9408 postuninstall_cmds=
9409 finish_cmds=
9410 finish_eval=
9411 shlibpath_var=
9412 shlibpath_overrides_runpath=unknown
9413 version_type=none
9414 dynamic_linker="$host_os ld.so"
9415 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9416 if test "$GCC" = yes; then
9417 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9418 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9419 # if the path contains ";" then we assume it to be the separator
9420 # otherwise default to the standard path separator (i.e. ":") - it is
9421 # assumed that no part of a normal pathname contains ";" but that should
9422 # okay in the real world where ";" in dirpaths is itself problematic.
9423 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9424 else
9425 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9427 else
9428 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9430 need_lib_prefix=unknown
9431 hardcode_into_libs=no
9433 # when you set need_version to no, make sure it does not cause -set_version
9434 # flags to be left without arguments
9435 need_version=unknown
9437 case $host_os in
9438 aix3*)
9439 version_type=linux
9440 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9441 shlibpath_var=LIBPATH
9443 # AIX 3 has no versioning support, so we append a major version to the name.
9444 soname_spec='${libname}${release}${shared_ext}$major'
9447 aix4* | aix5*)
9448 version_type=linux
9449 need_lib_prefix=no
9450 need_version=no
9451 hardcode_into_libs=yes
9452 if test "$host_cpu" = ia64; then
9453 # AIX 5 supports IA64
9454 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9455 shlibpath_var=LD_LIBRARY_PATH
9456 else
9457 # With GCC up to 2.95.x, collect2 would create an import file
9458 # for dependence libraries. The import file would start with
9459 # the line `#! .'. This would cause the generated library to
9460 # depend on `.', always an invalid library. This was fixed in
9461 # development snapshots of GCC prior to 3.0.
9462 case $host_os in
9463 aix4 | aix4.[01] | aix4.[01].*)
9464 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9465 echo ' yes '
9466 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9468 else
9469 can_build_shared=no
9472 esac
9473 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9474 # soname into executable. Probably we can add versioning support to
9475 # collect2, so additional links can be useful in future.
9476 if test "$aix_use_runtimelinking" = yes; then
9477 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9478 # instead of lib<name>.a to let people know that these are not
9479 # typical AIX shared libraries.
9480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9481 else
9482 # We preserve .a as extension for shared libraries through AIX4.2
9483 # and later when we are not doing run time linking.
9484 library_names_spec='${libname}${release}.a $libname.a'
9485 soname_spec='${libname}${release}${shared_ext}$major'
9487 shlibpath_var=LIBPATH
9491 amigaos*)
9492 library_names_spec='$libname.ixlibrary $libname.a'
9493 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9494 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'
9497 beos*)
9498 library_names_spec='${libname}${shared_ext}'
9499 dynamic_linker="$host_os ld.so"
9500 shlibpath_var=LIBRARY_PATH
9503 bsdi[45]*)
9504 version_type=linux
9505 need_version=no
9506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9507 soname_spec='${libname}${release}${shared_ext}$major'
9508 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9509 shlibpath_var=LD_LIBRARY_PATH
9510 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9511 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9512 # the default ld.so.conf also contains /usr/contrib/lib and
9513 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9514 # libtool to hard-code these into programs
9517 cygwin* | mingw* | pw32*)
9518 version_type=windows
9519 shrext_cmds=".dll"
9520 need_version=no
9521 need_lib_prefix=no
9523 case $GCC,$host_os in
9524 yes,cygwin* | yes,mingw* | yes,pw32*)
9525 library_names_spec='$libname.dll.a'
9526 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9527 postinstall_cmds='base_file=`basename \${file}`~
9528 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9529 dldir=$destdir/`dirname \$dlpath`~
9530 test -d \$dldir || mkdir -p \$dldir~
9531 $install_prog $dir/$dlname \$dldir/$dlname~
9532 chmod a+x \$dldir/$dlname'
9533 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9534 dlpath=$dir/\$dldll~
9535 $rm \$dlpath'
9536 shlibpath_overrides_runpath=yes
9538 case $host_os in
9539 cygwin*)
9540 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9541 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9542 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9544 mingw*)
9545 # MinGW DLLs use traditional 'lib' prefix
9546 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9547 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9548 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9549 # It is most probably a Windows format PATH printed by
9550 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9551 # path with ; separators, and with drive letters. We can handle the
9552 # drive letters (cygwin fileutils understands them), so leave them,
9553 # especially as we might pass files found there to a mingw objdump,
9554 # which wouldn't understand a cygwinified path. Ahh.
9555 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9556 else
9557 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9560 pw32*)
9561 # pw32 DLLs use 'pw' prefix rather than 'lib'
9562 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9564 esac
9568 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9570 esac
9571 dynamic_linker='Win32 ld.exe'
9572 # FIXME: first we should search . and the directory the executable is in
9573 shlibpath_var=PATH
9576 darwin* | rhapsody*)
9577 dynamic_linker="$host_os dyld"
9578 version_type=darwin
9579 need_lib_prefix=no
9580 need_version=no
9581 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9582 soname_spec='${libname}${release}${major}$shared_ext'
9583 shlibpath_overrides_runpath=yes
9584 shlibpath_var=DYLD_LIBRARY_PATH
9585 shrext_cmds='.dylib'
9586 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9587 if test "$GCC" = yes; then
9588 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"`
9589 else
9590 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9592 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9595 dgux*)
9596 version_type=linux
9597 need_lib_prefix=no
9598 need_version=no
9599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9600 soname_spec='${libname}${release}${shared_ext}$major'
9601 shlibpath_var=LD_LIBRARY_PATH
9604 freebsd1*)
9605 dynamic_linker=no
9608 kfreebsd*-gnu)
9609 version_type=linux
9610 need_lib_prefix=no
9611 need_version=no
9612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9613 soname_spec='${libname}${release}${shared_ext}$major'
9614 shlibpath_var=LD_LIBRARY_PATH
9615 shlibpath_overrides_runpath=no
9616 hardcode_into_libs=yes
9617 dynamic_linker='GNU ld.so'
9620 freebsd* | dragonfly*)
9621 # DragonFly does not have aout. When/if they implement a new
9622 # versioning mechanism, adjust this.
9623 if test -x /usr/bin/objformat; then
9624 objformat=`/usr/bin/objformat`
9625 else
9626 case $host_os in
9627 freebsd[123]*) objformat=aout ;;
9628 *) objformat=elf ;;
9629 esac
9631 version_type=freebsd-$objformat
9632 case $version_type in
9633 freebsd-elf*)
9634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9635 need_version=no
9636 need_lib_prefix=no
9638 freebsd-*)
9639 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9640 need_version=yes
9642 esac
9643 shlibpath_var=LD_LIBRARY_PATH
9644 case $host_os in
9645 freebsd2*)
9646 shlibpath_overrides_runpath=yes
9648 freebsd3.[01]* | freebsdelf3.[01]*)
9649 shlibpath_overrides_runpath=yes
9650 hardcode_into_libs=yes
9652 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9653 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9654 shlibpath_overrides_runpath=no
9655 hardcode_into_libs=yes
9657 freebsd*) # from 4.6 on
9658 shlibpath_overrides_runpath=yes
9659 hardcode_into_libs=yes
9661 esac
9664 gnu*)
9665 version_type=linux
9666 need_lib_prefix=no
9667 need_version=no
9668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9669 soname_spec='${libname}${release}${shared_ext}$major'
9670 shlibpath_var=LD_LIBRARY_PATH
9671 hardcode_into_libs=yes
9674 hpux9* | hpux10* | hpux11*)
9675 # Give a soname corresponding to the major version so that dld.sl refuses to
9676 # link against other versions.
9677 version_type=sunos
9678 need_lib_prefix=no
9679 need_version=no
9680 case $host_cpu in
9681 ia64*)
9682 shrext_cmds='.so'
9683 hardcode_into_libs=yes
9684 dynamic_linker="$host_os dld.so"
9685 shlibpath_var=LD_LIBRARY_PATH
9686 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9688 soname_spec='${libname}${release}${shared_ext}$major'
9689 if test "X$HPUX_IA64_MODE" = X32; then
9690 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9691 else
9692 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9694 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9696 hppa*64*)
9697 shrext_cmds='.sl'
9698 hardcode_into_libs=yes
9699 dynamic_linker="$host_os dld.sl"
9700 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9701 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9703 soname_spec='${libname}${release}${shared_ext}$major'
9704 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9705 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9708 shrext_cmds='.sl'
9709 dynamic_linker="$host_os dld.sl"
9710 shlibpath_var=SHLIB_PATH
9711 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9713 soname_spec='${libname}${release}${shared_ext}$major'
9715 esac
9716 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9717 postinstall_cmds='chmod 555 $lib'
9720 interix3*)
9721 version_type=linux
9722 need_lib_prefix=no
9723 need_version=no
9724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9725 soname_spec='${libname}${release}${shared_ext}$major'
9726 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9727 shlibpath_var=LD_LIBRARY_PATH
9728 shlibpath_overrides_runpath=no
9729 hardcode_into_libs=yes
9732 irix5* | irix6* | nonstopux*)
9733 case $host_os in
9734 nonstopux*) version_type=nonstopux ;;
9736 if test "$lt_cv_prog_gnu_ld" = yes; then
9737 version_type=linux
9738 else
9739 version_type=irix
9740 fi ;;
9741 esac
9742 need_lib_prefix=no
9743 need_version=no
9744 soname_spec='${libname}${release}${shared_ext}$major'
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9746 case $host_os in
9747 irix5* | nonstopux*)
9748 libsuff= shlibsuff=
9751 case $LD in # libtool.m4 will add one of these switches to LD
9752 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9753 libsuff= shlibsuff= libmagic=32-bit;;
9754 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9755 libsuff=32 shlibsuff=N32 libmagic=N32;;
9756 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9757 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9758 *) libsuff= shlibsuff= libmagic=never-match;;
9759 esac
9761 esac
9762 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9763 shlibpath_overrides_runpath=no
9764 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9765 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9766 hardcode_into_libs=yes
9769 # No shared lib support for Linux oldld, aout, or coff.
9770 linux*oldld* | linux*aout* | linux*coff*)
9771 dynamic_linker=no
9774 # This must be Linux ELF.
9775 linux*)
9776 version_type=linux
9777 need_lib_prefix=no
9778 need_version=no
9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9780 soname_spec='${libname}${release}${shared_ext}$major'
9781 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9782 shlibpath_var=LD_LIBRARY_PATH
9783 shlibpath_overrides_runpath=no
9784 # This implies no fast_install, which is unacceptable.
9785 # Some rework will be needed to allow for fast_install
9786 # before this can be enabled.
9787 hardcode_into_libs=yes
9789 # Append ld.so.conf contents to the search path
9790 if test -f /etc/ld.so.conf; then
9791 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' ' '`
9792 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9795 # We used to test for /lib/ld.so.1 and disable shared libraries on
9796 # powerpc, because MkLinux only supported shared libraries with the
9797 # GNU dynamic linker. Since this was broken with cross compilers,
9798 # most powerpc-linux boxes support dynamic linking these days and
9799 # people can always --disable-shared, the test was removed, and we
9800 # assume the GNU/Linux dynamic linker is in use.
9801 dynamic_linker='GNU/Linux ld.so'
9804 knetbsd*-gnu)
9805 version_type=linux
9806 need_lib_prefix=no
9807 need_version=no
9808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9809 soname_spec='${libname}${release}${shared_ext}$major'
9810 shlibpath_var=LD_LIBRARY_PATH
9811 shlibpath_overrides_runpath=no
9812 hardcode_into_libs=yes
9813 dynamic_linker='GNU ld.so'
9816 netbsd*)
9817 version_type=sunos
9818 need_lib_prefix=no
9819 need_version=no
9820 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9822 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9823 dynamic_linker='NetBSD (a.out) ld.so'
9824 else
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9826 soname_spec='${libname}${release}${shared_ext}$major'
9827 dynamic_linker='NetBSD ld.elf_so'
9829 shlibpath_var=LD_LIBRARY_PATH
9830 shlibpath_overrides_runpath=yes
9831 hardcode_into_libs=yes
9834 newsos6)
9835 version_type=linux
9836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9837 shlibpath_var=LD_LIBRARY_PATH
9838 shlibpath_overrides_runpath=yes
9841 nto-qnx*)
9842 version_type=linux
9843 need_lib_prefix=no
9844 need_version=no
9845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9846 soname_spec='${libname}${release}${shared_ext}$major'
9847 shlibpath_var=LD_LIBRARY_PATH
9848 shlibpath_overrides_runpath=yes
9851 openbsd*)
9852 version_type=sunos
9853 sys_lib_dlsearch_path_spec="/usr/lib"
9854 need_lib_prefix=no
9855 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9856 case $host_os in
9857 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9858 *) need_version=no ;;
9859 esac
9860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9861 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9862 shlibpath_var=LD_LIBRARY_PATH
9863 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9864 case $host_os in
9865 openbsd2.[89] | openbsd2.[89].*)
9866 shlibpath_overrides_runpath=no
9869 shlibpath_overrides_runpath=yes
9871 esac
9872 else
9873 shlibpath_overrides_runpath=yes
9877 os2*)
9878 libname_spec='$name'
9879 shrext_cmds=".dll"
9880 need_lib_prefix=no
9881 library_names_spec='$libname${shared_ext} $libname.a'
9882 dynamic_linker='OS/2 ld.exe'
9883 shlibpath_var=LIBPATH
9886 osf3* | osf4* | osf5*)
9887 version_type=osf
9888 need_lib_prefix=no
9889 need_version=no
9890 soname_spec='${libname}${release}${shared_ext}$major'
9891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9892 shlibpath_var=LD_LIBRARY_PATH
9893 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9894 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9897 solaris*)
9898 version_type=linux
9899 need_lib_prefix=no
9900 need_version=no
9901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9902 soname_spec='${libname}${release}${shared_ext}$major'
9903 shlibpath_var=LD_LIBRARY_PATH
9904 shlibpath_overrides_runpath=yes
9905 hardcode_into_libs=yes
9906 # ldd complains unless libraries are executable
9907 postinstall_cmds='chmod +x $lib'
9910 sunos4*)
9911 version_type=sunos
9912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9913 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9914 shlibpath_var=LD_LIBRARY_PATH
9915 shlibpath_overrides_runpath=yes
9916 if test "$with_gnu_ld" = yes; then
9917 need_lib_prefix=no
9919 need_version=yes
9922 sysv4 | sysv4.3*)
9923 version_type=linux
9924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9925 soname_spec='${libname}${release}${shared_ext}$major'
9926 shlibpath_var=LD_LIBRARY_PATH
9927 case $host_vendor in
9928 sni)
9929 shlibpath_overrides_runpath=no
9930 need_lib_prefix=no
9931 export_dynamic_flag_spec='${wl}-Blargedynsym'
9932 runpath_var=LD_RUN_PATH
9934 siemens)
9935 need_lib_prefix=no
9937 motorola)
9938 need_lib_prefix=no
9939 need_version=no
9940 shlibpath_overrides_runpath=no
9941 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9943 esac
9946 sysv4*MP*)
9947 if test -d /usr/nec ;then
9948 version_type=linux
9949 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9950 soname_spec='$libname${shared_ext}.$major'
9951 shlibpath_var=LD_LIBRARY_PATH
9955 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9956 version_type=freebsd-elf
9957 need_lib_prefix=no
9958 need_version=no
9959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9960 soname_spec='${libname}${release}${shared_ext}$major'
9961 shlibpath_var=LD_LIBRARY_PATH
9962 hardcode_into_libs=yes
9963 if test "$with_gnu_ld" = yes; then
9964 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9965 shlibpath_overrides_runpath=no
9966 else
9967 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9968 shlibpath_overrides_runpath=yes
9969 case $host_os in
9970 sco3.2v5*)
9971 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9973 esac
9975 sys_lib_dlsearch_path_spec='/usr/lib'
9978 uts4*)
9979 version_type=linux
9980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981 soname_spec='${libname}${release}${shared_ext}$major'
9982 shlibpath_var=LD_LIBRARY_PATH
9986 dynamic_linker=no
9988 esac
9989 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9990 echo "${ECHO_T}$dynamic_linker" >&6; }
9991 test "$dynamic_linker" = no && can_build_shared=no
9993 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9994 if test "$GCC" = yes; then
9995 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9999 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10000 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10001 if test "${libltdl_cv_shlibext+set}" = set; then
10002 echo $ECHO_N "(cached) $ECHO_C" >&6
10003 else
10005 module=yes
10006 eval libltdl_cv_shlibext=$shrext_cmds
10009 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10010 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10011 if test -n "$libltdl_cv_shlibext"; then
10013 cat >>confdefs.h <<_ACEOF
10014 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10015 _ACEOF
10020 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10021 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10022 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10023 echo $ECHO_N "(cached) $ECHO_C" >&6
10024 else
10025 libltdl_cv_shlibpath_var="$shlibpath_var"
10027 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10028 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10029 if test -n "$libltdl_cv_shlibpath_var"; then
10031 cat >>confdefs.h <<_ACEOF
10032 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10033 _ACEOF
10038 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10039 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10040 if test "${libltdl_cv_sys_search_path+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
10042 else
10043 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10045 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10046 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10047 if test -n "$libltdl_cv_sys_search_path"; then
10048 sys_search_path=
10049 for dir in $libltdl_cv_sys_search_path; do
10050 if test -z "$sys_search_path"; then
10051 sys_search_path="$dir"
10052 else
10053 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10055 done
10057 cat >>confdefs.h <<_ACEOF
10058 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10059 _ACEOF
10063 { echo "$as_me:$LINENO: checking for objdir" >&5
10064 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10065 if test "${libltdl_cv_objdir+set}" = set; then
10066 echo $ECHO_N "(cached) $ECHO_C" >&6
10067 else
10068 libltdl_cv_objdir="$objdir"
10069 if test -n "$objdir"; then
10071 else
10072 rm -f .libs 2>/dev/null
10073 mkdir .libs 2>/dev/null
10074 if test -d .libs; then
10075 libltdl_cv_objdir=.libs
10076 else
10077 # MS-DOS does not allow filenames that begin with a dot.
10078 libltdl_cv_objdir=_libs
10080 rmdir .libs 2>/dev/null
10084 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10085 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10087 cat >>confdefs.h <<_ACEOF
10088 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10089 _ACEOF
10096 # Check for command to grab the raw symbol name followed by C symbol from nm.
10097 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10098 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10099 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10101 else
10103 # These are sane defaults that work on at least a few old systems.
10104 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10106 # Character class describing NM global symbol codes.
10107 symcode='[BCDEGRST]'
10109 # Regexp to match symbols that can be accessed directly from C.
10110 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10112 # Transform an extracted symbol line into a proper C declaration
10113 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10115 # Transform an extracted symbol line into symbol name and symbol address
10116 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'"
10118 # Define system-specific variables.
10119 case $host_os in
10120 aix*)
10121 symcode='[BCDT]'
10123 cygwin* | mingw* | pw32*)
10124 symcode='[ABCDGISTW]'
10126 hpux*) # Its linker distinguishes data from code symbols
10127 if test "$host_cpu" = ia64; then
10128 symcode='[ABCDEGRST]'
10130 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10131 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'"
10133 linux*)
10134 if test "$host_cpu" = ia64; then
10135 symcode='[ABCDGIRSTW]'
10136 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10137 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 irix* | nonstopux*)
10141 symcode='[BCDEGRST]'
10143 osf*)
10144 symcode='[BCDEGQRST]'
10146 solaris*)
10147 symcode='[BDRT]'
10149 sco3.2v5*)
10150 symcode='[DT]'
10152 sysv4.2uw2*)
10153 symcode='[DT]'
10155 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10156 symcode='[ABDT]'
10158 sysv4)
10159 symcode='[DFNSTU]'
10161 esac
10163 # Handle CRLF in mingw tool chain
10164 opt_cr=
10165 case $build_os in
10166 mingw*)
10167 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10169 esac
10171 # If we're using GNU nm, then use its standard symbol codes.
10172 case `$NM -V 2>&1` in
10173 *GNU* | *'with BFD'*)
10174 symcode='[ABCDGIRSTW]' ;;
10175 esac
10177 # Try without a prefix undercore, then with it.
10178 for ac_symprfx in "" "_"; do
10180 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10181 symxfrm="\\1 $ac_symprfx\\2 \\2"
10183 # Write the raw and C identifiers.
10184 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10186 # Check to see that the pipe works correctly.
10187 pipe_works=no
10189 rm -f conftest*
10190 cat > conftest.$ac_ext <<EOF
10191 #ifdef __cplusplus
10192 extern "C" {
10193 #endif
10194 char nm_test_var;
10195 void nm_test_func(){}
10196 #ifdef __cplusplus
10198 #endif
10199 int main(){nm_test_var='a';nm_test_func();return(0);}
10202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10203 (eval $ac_compile) 2>&5
10204 ac_status=$?
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; then
10207 # Now try to grab the symbols.
10208 nlist=conftest.nm
10209 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10210 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10211 ac_status=$?
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } && test -s "$nlist"; then
10214 # Try sorting and uniquifying the output.
10215 if sort "$nlist" | uniq > "$nlist"T; then
10216 mv -f "$nlist"T "$nlist"
10217 else
10218 rm -f "$nlist"T
10221 # Make sure that we snagged all the symbols we need.
10222 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10223 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10224 cat <<EOF > conftest.$ac_ext
10225 #ifdef __cplusplus
10226 extern "C" {
10227 #endif
10230 # Now generate the symbol file.
10231 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10233 cat <<EOF >> conftest.$ac_ext
10234 #if defined (__STDC__) && __STDC__
10235 # define lt_ptr_t void *
10236 #else
10237 # define lt_ptr_t char *
10238 # define const
10239 #endif
10241 /* The mapping between symbol names and symbols. */
10242 const struct {
10243 const char *name;
10244 lt_ptr_t address;
10246 lt_preloaded_symbols[] =
10249 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10250 cat <<\EOF >> conftest.$ac_ext
10251 {0, (lt_ptr_t) 0}
10254 #ifdef __cplusplus
10256 #endif
10258 # Now try linking the two files.
10259 mv conftest.$ac_objext conftstm.$ac_objext
10260 lt_save_LIBS="$LIBS"
10261 lt_save_CFLAGS="$CFLAGS"
10262 LIBS="conftstm.$ac_objext"
10263 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10265 (eval $ac_link) 2>&5
10266 ac_status=$?
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10269 pipe_works=yes
10271 LIBS="$lt_save_LIBS"
10272 CFLAGS="$lt_save_CFLAGS"
10273 else
10274 echo "cannot find nm_test_func in $nlist" >&5
10276 else
10277 echo "cannot find nm_test_var in $nlist" >&5
10279 else
10280 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10282 else
10283 echo "$progname: failed program was:" >&5
10284 cat conftest.$ac_ext >&5
10286 rm -f conftest* conftst*
10288 # Do not use the global_symbol_pipe unless it works.
10289 if test "$pipe_works" = yes; then
10290 break
10291 else
10292 lt_cv_sys_global_symbol_pipe=
10294 done
10298 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10299 lt_cv_sys_global_symbol_to_cdecl=
10301 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10302 { echo "$as_me:$LINENO: result: failed" >&5
10303 echo "${ECHO_T}failed" >&6; }
10304 else
10305 { echo "$as_me:$LINENO: result: ok" >&5
10306 echo "${ECHO_T}ok" >&6; }
10310 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10311 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10312 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
10314 else
10315 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10316 libltdl_cv_preloaded_symbols=yes
10317 else
10318 libltdl_cv_preloaded_symbols=no
10322 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10323 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10324 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10326 cat >>confdefs.h <<\_ACEOF
10327 #define HAVE_PRELOADED_SYMBOLS 1
10328 _ACEOF
10332 LIBADD_DL=
10334 ac_ext=c
10335 ac_cpp='$CPP $CPPFLAGS'
10336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10341 { echo "$as_me:$LINENO: checking for shl_load" >&5
10342 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10343 if test "${ac_cv_func_shl_load+set}" = set; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10345 else
10346 cat >conftest.$ac_ext <<_ACEOF
10347 /* confdefs.h. */
10348 _ACEOF
10349 cat confdefs.h >>conftest.$ac_ext
10350 cat >>conftest.$ac_ext <<_ACEOF
10351 /* end confdefs.h. */
10352 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10354 #define shl_load innocuous_shl_load
10356 /* System header to define __stub macros and hopefully few prototypes,
10357 which can conflict with char shl_load (); below.
10358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10359 <limits.h> exists even on freestanding compilers. */
10361 #ifdef __STDC__
10362 # include <limits.h>
10363 #else
10364 # include <assert.h>
10365 #endif
10367 #undef shl_load
10369 /* Override any GCC internal prototype to avoid an error.
10370 Use char because int might match the return type of a GCC
10371 builtin and then its argument prototype would still apply. */
10372 #ifdef __cplusplus
10373 extern "C"
10374 #endif
10375 char shl_load ();
10376 /* The GNU C library defines this for functions which it implements
10377 to always fail with ENOSYS. Some functions are actually named
10378 something starting with __ and the normal name is an alias. */
10379 #if defined __stub_shl_load || defined __stub___shl_load
10380 choke me
10381 #endif
10384 main ()
10386 return shl_load ();
10388 return 0;
10390 _ACEOF
10391 rm -f conftest.$ac_objext conftest$ac_exeext
10392 if { (ac_try="$ac_link"
10393 case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10396 esac
10397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398 (eval "$ac_link") 2>conftest.er1
10399 ac_status=$?
10400 grep -v '^ *+' conftest.er1 >conftest.err
10401 rm -f conftest.er1
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } &&
10405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10406 { (case "(($ac_try" in
10407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10408 *) ac_try_echo=$ac_try;;
10409 esac
10410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10411 (eval "$ac_try") 2>&5
10412 ac_status=$?
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); }; } &&
10415 { ac_try='test -s conftest$ac_exeext'
10416 { (case "(($ac_try" in
10417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418 *) ac_try_echo=$ac_try;;
10419 esac
10420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10421 (eval "$ac_try") 2>&5
10422 ac_status=$?
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); }; }; then
10425 ac_cv_func_shl_load=yes
10426 else
10427 echo "$as_me: failed program was:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10430 ac_cv_func_shl_load=no
10433 rm -f core conftest.err conftest.$ac_objext \
10434 conftest$ac_exeext conftest.$ac_ext
10436 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10437 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10438 if test $ac_cv_func_shl_load = yes; then
10440 cat >>confdefs.h <<\_ACEOF
10441 #define HAVE_SHL_LOAD 1
10442 _ACEOF
10444 else
10445 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10446 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10447 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10448 echo $ECHO_N "(cached) $ECHO_C" >&6
10449 else
10450 ac_check_lib_save_LIBS=$LIBS
10451 LIBS="-ldld $LIBS"
10452 cat >conftest.$ac_ext <<_ACEOF
10453 /* confdefs.h. */
10454 _ACEOF
10455 cat confdefs.h >>conftest.$ac_ext
10456 cat >>conftest.$ac_ext <<_ACEOF
10457 /* end confdefs.h. */
10459 /* Override any GCC internal prototype to avoid an error.
10460 Use char because int might match the return type of a GCC
10461 builtin and then its argument prototype would still apply. */
10462 #ifdef __cplusplus
10463 extern "C"
10464 #endif
10465 char shl_load ();
10467 main ()
10469 return shl_load ();
10471 return 0;
10473 _ACEOF
10474 rm -f conftest.$ac_objext conftest$ac_exeext
10475 if { (ac_try="$ac_link"
10476 case "(($ac_try" in
10477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478 *) ac_try_echo=$ac_try;;
10479 esac
10480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10481 (eval "$ac_link") 2>conftest.er1
10482 ac_status=$?
10483 grep -v '^ *+' conftest.er1 >conftest.err
10484 rm -f conftest.er1
10485 cat conftest.err >&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); } &&
10488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10489 { (case "(($ac_try" in
10490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491 *) ac_try_echo=$ac_try;;
10492 esac
10493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494 (eval "$ac_try") 2>&5
10495 ac_status=$?
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); }; } &&
10498 { ac_try='test -s conftest$ac_exeext'
10499 { (case "(($ac_try" in
10500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501 *) ac_try_echo=$ac_try;;
10502 esac
10503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504 (eval "$ac_try") 2>&5
10505 ac_status=$?
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); }; }; then
10508 ac_cv_lib_dld_shl_load=yes
10509 else
10510 echo "$as_me: failed program was:" >&5
10511 sed 's/^/| /' conftest.$ac_ext >&5
10513 ac_cv_lib_dld_shl_load=no
10516 rm -f core conftest.err conftest.$ac_objext \
10517 conftest$ac_exeext conftest.$ac_ext
10518 LIBS=$ac_check_lib_save_LIBS
10520 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10521 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10522 if test $ac_cv_lib_dld_shl_load = yes; then
10524 cat >>confdefs.h <<\_ACEOF
10525 #define HAVE_SHL_LOAD 1
10526 _ACEOF
10528 LIBADD_DL="$LIBADD_DL -ldld"
10529 else
10530 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10531 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10532 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10533 echo $ECHO_N "(cached) $ECHO_C" >&6
10534 else
10535 ac_check_lib_save_LIBS=$LIBS
10536 LIBS="-ldl $LIBS"
10537 cat >conftest.$ac_ext <<_ACEOF
10538 /* confdefs.h. */
10539 _ACEOF
10540 cat confdefs.h >>conftest.$ac_ext
10541 cat >>conftest.$ac_ext <<_ACEOF
10542 /* end confdefs.h. */
10544 /* Override any GCC internal prototype to avoid an error.
10545 Use char because int might match the return type of a GCC
10546 builtin and then its argument prototype would still apply. */
10547 #ifdef __cplusplus
10548 extern "C"
10549 #endif
10550 char dlopen ();
10552 main ()
10554 return dlopen ();
10556 return 0;
10558 _ACEOF
10559 rm -f conftest.$ac_objext conftest$ac_exeext
10560 if { (ac_try="$ac_link"
10561 case "(($ac_try" in
10562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563 *) ac_try_echo=$ac_try;;
10564 esac
10565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10566 (eval "$ac_link") 2>conftest.er1
10567 ac_status=$?
10568 grep -v '^ *+' conftest.er1 >conftest.err
10569 rm -f conftest.er1
10570 cat conftest.err >&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } &&
10573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10574 { (case "(($ac_try" in
10575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10576 *) ac_try_echo=$ac_try;;
10577 esac
10578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10579 (eval "$ac_try") 2>&5
10580 ac_status=$?
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); }; } &&
10583 { ac_try='test -s conftest$ac_exeext'
10584 { (case "(($ac_try" in
10585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10586 *) ac_try_echo=$ac_try;;
10587 esac
10588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10589 (eval "$ac_try") 2>&5
10590 ac_status=$?
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }; }; then
10593 ac_cv_lib_dl_dlopen=yes
10594 else
10595 echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10598 ac_cv_lib_dl_dlopen=no
10601 rm -f core conftest.err conftest.$ac_objext \
10602 conftest$ac_exeext conftest.$ac_ext
10603 LIBS=$ac_check_lib_save_LIBS
10605 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10606 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10607 if test $ac_cv_lib_dl_dlopen = yes; then
10609 cat >>confdefs.h <<\_ACEOF
10610 #define HAVE_LIBDL 1
10611 _ACEOF
10613 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10614 else
10615 cat >conftest.$ac_ext <<_ACEOF
10616 /* confdefs.h. */
10617 _ACEOF
10618 cat confdefs.h >>conftest.$ac_ext
10619 cat >>conftest.$ac_ext <<_ACEOF
10620 /* end confdefs.h. */
10621 #if HAVE_DLFCN_H
10622 # include <dlfcn.h>
10623 #endif
10626 main ()
10628 dlopen(0, 0);
10630 return 0;
10632 _ACEOF
10633 rm -f conftest.$ac_objext conftest$ac_exeext
10634 if { (ac_try="$ac_link"
10635 case "(($ac_try" in
10636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637 *) ac_try_echo=$ac_try;;
10638 esac
10639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10640 (eval "$ac_link") 2>conftest.er1
10641 ac_status=$?
10642 grep -v '^ *+' conftest.er1 >conftest.err
10643 rm -f conftest.er1
10644 cat conftest.err >&5
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); } &&
10647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10648 { (case "(($ac_try" in
10649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10650 *) ac_try_echo=$ac_try;;
10651 esac
10652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10653 (eval "$ac_try") 2>&5
10654 ac_status=$?
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); }; } &&
10657 { ac_try='test -s conftest$ac_exeext'
10658 { (case "(($ac_try" in
10659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10660 *) ac_try_echo=$ac_try;;
10661 esac
10662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10663 (eval "$ac_try") 2>&5
10664 ac_status=$?
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); }; }; then
10668 cat >>confdefs.h <<\_ACEOF
10669 #define HAVE_LIBDL 1
10670 _ACEOF
10671 libltdl_cv_func_dlopen="yes"
10672 else
10673 echo "$as_me: failed program was:" >&5
10674 sed 's/^/| /' conftest.$ac_ext >&5
10676 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10677 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10678 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10680 else
10681 ac_check_lib_save_LIBS=$LIBS
10682 LIBS="-lsvld $LIBS"
10683 cat >conftest.$ac_ext <<_ACEOF
10684 /* confdefs.h. */
10685 _ACEOF
10686 cat confdefs.h >>conftest.$ac_ext
10687 cat >>conftest.$ac_ext <<_ACEOF
10688 /* end confdefs.h. */
10690 /* Override any GCC internal prototype to avoid an error.
10691 Use char because int might match the return type of a GCC
10692 builtin and then its argument prototype would still apply. */
10693 #ifdef __cplusplus
10694 extern "C"
10695 #endif
10696 char dlopen ();
10698 main ()
10700 return dlopen ();
10702 return 0;
10704 _ACEOF
10705 rm -f conftest.$ac_objext conftest$ac_exeext
10706 if { (ac_try="$ac_link"
10707 case "(($ac_try" in
10708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709 *) ac_try_echo=$ac_try;;
10710 esac
10711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10712 (eval "$ac_link") 2>conftest.er1
10713 ac_status=$?
10714 grep -v '^ *+' conftest.er1 >conftest.err
10715 rm -f conftest.er1
10716 cat conftest.err >&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } &&
10719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10720 { (case "(($ac_try" in
10721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722 *) ac_try_echo=$ac_try;;
10723 esac
10724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10725 (eval "$ac_try") 2>&5
10726 ac_status=$?
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; } &&
10729 { ac_try='test -s conftest$ac_exeext'
10730 { (case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10733 esac
10734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_try") 2>&5
10736 ac_status=$?
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); }; }; then
10739 ac_cv_lib_svld_dlopen=yes
10740 else
10741 echo "$as_me: failed program was:" >&5
10742 sed 's/^/| /' conftest.$ac_ext >&5
10744 ac_cv_lib_svld_dlopen=no
10747 rm -f core conftest.err conftest.$ac_objext \
10748 conftest$ac_exeext conftest.$ac_ext
10749 LIBS=$ac_check_lib_save_LIBS
10751 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10752 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10753 if test $ac_cv_lib_svld_dlopen = yes; then
10755 cat >>confdefs.h <<\_ACEOF
10756 #define HAVE_LIBDL 1
10757 _ACEOF
10759 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10760 else
10761 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10762 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10763 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
10765 else
10766 ac_check_lib_save_LIBS=$LIBS
10767 LIBS="-ldld $LIBS"
10768 cat >conftest.$ac_ext <<_ACEOF
10769 /* confdefs.h. */
10770 _ACEOF
10771 cat confdefs.h >>conftest.$ac_ext
10772 cat >>conftest.$ac_ext <<_ACEOF
10773 /* end confdefs.h. */
10775 /* Override any GCC internal prototype to avoid an error.
10776 Use char because int might match the return type of a GCC
10777 builtin and then its argument prototype would still apply. */
10778 #ifdef __cplusplus
10779 extern "C"
10780 #endif
10781 char dld_link ();
10783 main ()
10785 return dld_link ();
10787 return 0;
10789 _ACEOF
10790 rm -f conftest.$ac_objext conftest$ac_exeext
10791 if { (ac_try="$ac_link"
10792 case "(($ac_try" in
10793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10794 *) ac_try_echo=$ac_try;;
10795 esac
10796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10797 (eval "$ac_link") 2>conftest.er1
10798 ac_status=$?
10799 grep -v '^ *+' conftest.er1 >conftest.err
10800 rm -f conftest.er1
10801 cat conftest.err >&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } &&
10804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10805 { (case "(($ac_try" in
10806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10807 *) ac_try_echo=$ac_try;;
10808 esac
10809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10810 (eval "$ac_try") 2>&5
10811 ac_status=$?
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; } &&
10814 { ac_try='test -s conftest$ac_exeext'
10815 { (case "(($ac_try" in
10816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10817 *) ac_try_echo=$ac_try;;
10818 esac
10819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10820 (eval "$ac_try") 2>&5
10821 ac_status=$?
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); }; }; then
10824 ac_cv_lib_dld_dld_link=yes
10825 else
10826 echo "$as_me: failed program was:" >&5
10827 sed 's/^/| /' conftest.$ac_ext >&5
10829 ac_cv_lib_dld_dld_link=no
10832 rm -f core conftest.err conftest.$ac_objext \
10833 conftest$ac_exeext conftest.$ac_ext
10834 LIBS=$ac_check_lib_save_LIBS
10836 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10837 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10838 if test $ac_cv_lib_dld_dld_link = yes; then
10840 cat >>confdefs.h <<\_ACEOF
10841 #define HAVE_DLD 1
10842 _ACEOF
10844 LIBADD_DL="$LIBADD_DL -ldld"
10845 else
10846 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10847 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10848 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10850 else
10851 cat >conftest.$ac_ext <<_ACEOF
10852 /* confdefs.h. */
10853 _ACEOF
10854 cat confdefs.h >>conftest.$ac_ext
10855 cat >>conftest.$ac_ext <<_ACEOF
10856 /* end confdefs.h. */
10857 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10859 #define _dyld_func_lookup innocuous__dyld_func_lookup
10861 /* System header to define __stub macros and hopefully few prototypes,
10862 which can conflict with char _dyld_func_lookup (); below.
10863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10864 <limits.h> exists even on freestanding compilers. */
10866 #ifdef __STDC__
10867 # include <limits.h>
10868 #else
10869 # include <assert.h>
10870 #endif
10872 #undef _dyld_func_lookup
10874 /* Override any GCC internal prototype to avoid an error.
10875 Use char because int might match the return type of a GCC
10876 builtin and then its argument prototype would still apply. */
10877 #ifdef __cplusplus
10878 extern "C"
10879 #endif
10880 char _dyld_func_lookup ();
10881 /* The GNU C library defines this for functions which it implements
10882 to always fail with ENOSYS. Some functions are actually named
10883 something starting with __ and the normal name is an alias. */
10884 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10885 choke me
10886 #endif
10889 main ()
10891 return _dyld_func_lookup ();
10893 return 0;
10895 _ACEOF
10896 rm -f conftest.$ac_objext conftest$ac_exeext
10897 if { (ac_try="$ac_link"
10898 case "(($ac_try" in
10899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10900 *) ac_try_echo=$ac_try;;
10901 esac
10902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10903 (eval "$ac_link") 2>conftest.er1
10904 ac_status=$?
10905 grep -v '^ *+' conftest.er1 >conftest.err
10906 rm -f conftest.er1
10907 cat conftest.err >&5
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); } &&
10910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10911 { (case "(($ac_try" in
10912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913 *) ac_try_echo=$ac_try;;
10914 esac
10915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10916 (eval "$ac_try") 2>&5
10917 ac_status=$?
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); }; } &&
10920 { ac_try='test -s conftest$ac_exeext'
10921 { (case "(($ac_try" in
10922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10924 esac
10925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926 (eval "$ac_try") 2>&5
10927 ac_status=$?
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); }; }; then
10930 ac_cv_func__dyld_func_lookup=yes
10931 else
10932 echo "$as_me: failed program was:" >&5
10933 sed 's/^/| /' conftest.$ac_ext >&5
10935 ac_cv_func__dyld_func_lookup=no
10938 rm -f core conftest.err conftest.$ac_objext \
10939 conftest$ac_exeext conftest.$ac_ext
10941 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10942 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10943 if test $ac_cv_func__dyld_func_lookup = yes; then
10945 cat >>confdefs.h <<\_ACEOF
10946 #define HAVE_DYLD 1
10947 _ACEOF
10960 rm -f core conftest.err conftest.$ac_objext \
10961 conftest$ac_exeext conftest.$ac_ext
10972 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10973 then
10974 lt_save_LIBS="$LIBS"
10975 LIBS="$LIBS $LIBADD_DL"
10977 for ac_func in dlerror
10979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10980 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10983 echo $ECHO_N "(cached) $ECHO_C" >&6
10984 else
10985 cat >conftest.$ac_ext <<_ACEOF
10986 /* confdefs.h. */
10987 _ACEOF
10988 cat confdefs.h >>conftest.$ac_ext
10989 cat >>conftest.$ac_ext <<_ACEOF
10990 /* end confdefs.h. */
10991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10993 #define $ac_func innocuous_$ac_func
10995 /* System header to define __stub macros and hopefully few prototypes,
10996 which can conflict with char $ac_func (); below.
10997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10998 <limits.h> exists even on freestanding compilers. */
11000 #ifdef __STDC__
11001 # include <limits.h>
11002 #else
11003 # include <assert.h>
11004 #endif
11006 #undef $ac_func
11008 /* Override any GCC internal prototype to avoid an error.
11009 Use char because int might match the return type of a GCC
11010 builtin and then its argument prototype would still apply. */
11011 #ifdef __cplusplus
11012 extern "C"
11013 #endif
11014 char $ac_func ();
11015 /* The GNU C library defines this for functions which it implements
11016 to always fail with ENOSYS. Some functions are actually named
11017 something starting with __ and the normal name is an alias. */
11018 #if defined __stub_$ac_func || defined __stub___$ac_func
11019 choke me
11020 #endif
11023 main ()
11025 return $ac_func ();
11027 return 0;
11029 _ACEOF
11030 rm -f conftest.$ac_objext conftest$ac_exeext
11031 if { (ac_try="$ac_link"
11032 case "(($ac_try" in
11033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034 *) ac_try_echo=$ac_try;;
11035 esac
11036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11037 (eval "$ac_link") 2>conftest.er1
11038 ac_status=$?
11039 grep -v '^ *+' conftest.er1 >conftest.err
11040 rm -f conftest.er1
11041 cat conftest.err >&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); } &&
11044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11045 { (case "(($ac_try" in
11046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11047 *) ac_try_echo=$ac_try;;
11048 esac
11049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11050 (eval "$ac_try") 2>&5
11051 ac_status=$?
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); }; } &&
11054 { ac_try='test -s conftest$ac_exeext'
11055 { (case "(($ac_try" in
11056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11057 *) ac_try_echo=$ac_try;;
11058 esac
11059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11060 (eval "$ac_try") 2>&5
11061 ac_status=$?
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; }; then
11064 eval "$as_ac_var=yes"
11065 else
11066 echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.$ac_ext >&5
11069 eval "$as_ac_var=no"
11072 rm -f core conftest.err conftest.$ac_objext \
11073 conftest$ac_exeext conftest.$ac_ext
11075 ac_res=`eval echo '${'$as_ac_var'}'`
11076 { echo "$as_me:$LINENO: result: $ac_res" >&5
11077 echo "${ECHO_T}$ac_res" >&6; }
11078 if test `eval echo '${'$as_ac_var'}'` = yes; then
11079 cat >>confdefs.h <<_ACEOF
11080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11081 _ACEOF
11084 done
11086 LIBS="$lt_save_LIBS"
11088 ac_ext=c
11089 ac_cpp='$CPP $CPPFLAGS'
11090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11096 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11097 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11098 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11100 else
11101 ac_cv_sys_symbol_underscore=no
11102 cat > conftest.$ac_ext <<EOF
11103 void nm_test_func(){}
11104 int main(){nm_test_func;return 0;}
11106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11107 (eval $ac_compile) 2>&5
11108 ac_status=$?
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }; then
11111 # Now try to grab the symbols.
11112 ac_nlist=conftest.nm
11113 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11114 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11115 ac_status=$?
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } && test -s "$ac_nlist"; then
11118 # See whether the symbols have a leading underscore.
11119 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11120 ac_cv_sys_symbol_underscore=yes
11121 else
11122 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11124 else
11125 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11128 else
11129 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11131 else
11132 echo "configure: failed program was:" >&5
11133 cat conftest.c >&5
11135 rm -rf conftest*
11138 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11139 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11142 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11143 if test x"$libltdl_cv_func_dlopen" = xyes ||
11144 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11145 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11146 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11147 if test "${libltdl_cv_need_uscore+set}" = set; then
11148 echo $ECHO_N "(cached) $ECHO_C" >&6
11149 else
11150 libltdl_cv_need_uscore=unknown
11151 save_LIBS="$LIBS"
11152 LIBS="$LIBS $LIBADD_DL"
11153 if test "$cross_compiling" = yes; then :
11154 libltdl_cv_need_uscore=cross
11155 else
11156 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11157 lt_status=$lt_dlunknown
11158 cat > conftest.$ac_ext <<EOF
11159 #line 11159 "configure"
11160 #include "confdefs.h"
11162 #if HAVE_DLFCN_H
11163 #include <dlfcn.h>
11164 #endif
11166 #include <stdio.h>
11168 #ifdef RTLD_GLOBAL
11169 # define LT_DLGLOBAL RTLD_GLOBAL
11170 #else
11171 # ifdef DL_GLOBAL
11172 # define LT_DLGLOBAL DL_GLOBAL
11173 # else
11174 # define LT_DLGLOBAL 0
11175 # endif
11176 #endif
11178 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11179 find out it does not work in some platform. */
11180 #ifndef LT_DLLAZY_OR_NOW
11181 # ifdef RTLD_LAZY
11182 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11183 # else
11184 # ifdef DL_LAZY
11185 # define LT_DLLAZY_OR_NOW DL_LAZY
11186 # else
11187 # ifdef RTLD_NOW
11188 # define LT_DLLAZY_OR_NOW RTLD_NOW
11189 # else
11190 # ifdef DL_NOW
11191 # define LT_DLLAZY_OR_NOW DL_NOW
11192 # else
11193 # define LT_DLLAZY_OR_NOW 0
11194 # endif
11195 # endif
11196 # endif
11197 # endif
11198 #endif
11200 #ifdef __cplusplus
11201 extern "C" void exit (int);
11202 #endif
11204 void fnord() { int i=42;}
11205 int main ()
11207 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11208 int status = $lt_dlunknown;
11210 if (self)
11212 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11213 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11214 /* dlclose (self); */
11216 else
11217 puts (dlerror ());
11219 exit (status);
11222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11223 (eval $ac_link) 2>&5
11224 ac_status=$?
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11227 (./conftest; exit; ) >&5 2>/dev/null
11228 lt_status=$?
11229 case x$lt_status in
11230 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11231 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11232 x$lt_dlunknown|x*) ;;
11233 esac
11234 else :
11235 # compilation failed
11239 rm -fr conftest*
11241 LIBS="$save_LIBS"
11244 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11245 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11249 if test x"$libltdl_cv_need_uscore" = xyes; then
11251 cat >>confdefs.h <<\_ACEOF
11252 #define NEED_USCORE 1
11253 _ACEOF
11258 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11259 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11260 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
11262 else
11263 # PORTME does your system automatically load deplibs for dlopen?
11264 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11265 # For now, we just catch OSes we know something about -- in the
11266 # future, we'll try test this programmatically.
11267 libltdl_cv_sys_dlopen_deplibs=unknown
11268 case "$host_os" in
11269 aix3*|aix4.1.*|aix4.2.*)
11270 # Unknown whether this is true for these versions of AIX, but
11271 # we want this `case' here to explicitly catch those versions.
11272 libltdl_cv_sys_dlopen_deplibs=unknown
11274 aix[45]*)
11275 libltdl_cv_sys_dlopen_deplibs=yes
11277 darwin*)
11278 # Assuming the user has installed a libdl from somewhere, this is true
11279 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11280 libltdl_cv_sys_dlopen_deplibs=yes
11282 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11283 # GNU and its variants, using gnu ld.so (Glibc)
11284 libltdl_cv_sys_dlopen_deplibs=yes
11286 hpux10*|hpux11*)
11287 libltdl_cv_sys_dlopen_deplibs=yes
11289 interix*)
11290 libltdl_cv_sys_dlopen_deplibs=yes
11292 irix[12345]*|irix6.[01]*)
11293 # Catch all versions of IRIX before 6.2, and indicate that we don't
11294 # know how it worked for any of those versions.
11295 libltdl_cv_sys_dlopen_deplibs=unknown
11297 irix*)
11298 # The case above catches anything before 6.2, and it's known that
11299 # at 6.2 and later dlopen does load deplibs.
11300 libltdl_cv_sys_dlopen_deplibs=yes
11302 netbsd*)
11303 libltdl_cv_sys_dlopen_deplibs=yes
11305 openbsd*)
11306 libltdl_cv_sys_dlopen_deplibs=yes
11308 osf[1234]*)
11309 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11310 # it did *not* use an RPATH in a shared library to find objects the
11311 # library depends on, so we explictly say `no'.
11312 libltdl_cv_sys_dlopen_deplibs=no
11314 osf5.0|osf5.0a|osf5.1)
11315 # dlopen *does* load deplibs and with the right loader patch applied
11316 # it even uses RPATH in a shared library to search for shared objects
11317 # that the library depends on, but there's no easy way to know if that
11318 # patch is installed. Since this is the case, all we can really
11319 # say is unknown -- it depends on the patch being installed. If
11320 # it is, this changes to `yes'. Without it, it would be `no'.
11321 libltdl_cv_sys_dlopen_deplibs=unknown
11323 osf*)
11324 # the two cases above should catch all versions of osf <= 5.1. Read
11325 # the comments above for what we know about them.
11326 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11327 # is used to find them so we can finally say `yes'.
11328 libltdl_cv_sys_dlopen_deplibs=yes
11330 solaris*)
11331 libltdl_cv_sys_dlopen_deplibs=yes
11333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11334 libltdl_cv_sys_dlopen_deplibs=yes
11336 esac
11339 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11340 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11341 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11343 cat >>confdefs.h <<\_ACEOF
11344 #define LTDL_DLOPEN_DEPLIBS 1
11345 _ACEOF
11350 for ac_header in argz.h
11352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11357 echo $ECHO_N "(cached) $ECHO_C" >&6
11359 ac_res=`eval echo '${'$as_ac_Header'}'`
11360 { echo "$as_me:$LINENO: result: $ac_res" >&5
11361 echo "${ECHO_T}$ac_res" >&6; }
11362 else
11363 # Is the header compilable?
11364 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11366 cat >conftest.$ac_ext <<_ACEOF
11367 /* confdefs.h. */
11368 _ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h. */
11372 $ac_includes_default
11373 #include <$ac_header>
11374 _ACEOF
11375 rm -f conftest.$ac_objext
11376 if { (ac_try="$ac_compile"
11377 case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11380 esac
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382 (eval "$ac_compile") 2>conftest.er1
11383 ac_status=$?
11384 grep -v '^ *+' conftest.er1 >conftest.err
11385 rm -f conftest.er1
11386 cat conftest.err >&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } &&
11389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11390 { (case "(($ac_try" in
11391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392 *) ac_try_echo=$ac_try;;
11393 esac
11394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11395 (eval "$ac_try") 2>&5
11396 ac_status=$?
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }; } &&
11399 { ac_try='test -s conftest.$ac_objext'
11400 { (case "(($ac_try" in
11401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11402 *) ac_try_echo=$ac_try;;
11403 esac
11404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11405 (eval "$ac_try") 2>&5
11406 ac_status=$?
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); }; }; then
11409 ac_header_compiler=yes
11410 else
11411 echo "$as_me: failed program was:" >&5
11412 sed 's/^/| /' conftest.$ac_ext >&5
11414 ac_header_compiler=no
11417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11419 echo "${ECHO_T}$ac_header_compiler" >&6; }
11421 # Is the header present?
11422 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11424 cat >conftest.$ac_ext <<_ACEOF
11425 /* confdefs.h. */
11426 _ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430 #include <$ac_header>
11431 _ACEOF
11432 if { (ac_try="$ac_cpp conftest.$ac_ext"
11433 case "(($ac_try" in
11434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435 *) ac_try_echo=$ac_try;;
11436 esac
11437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11439 ac_status=$?
11440 grep -v '^ *+' conftest.er1 >conftest.err
11441 rm -f conftest.er1
11442 cat conftest.err >&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); } >/dev/null; then
11445 if test -s conftest.err; then
11446 ac_cpp_err=$ac_c_preproc_warn_flag
11447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11448 else
11449 ac_cpp_err=
11451 else
11452 ac_cpp_err=yes
11454 if test -z "$ac_cpp_err"; then
11455 ac_header_preproc=yes
11456 else
11457 echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11460 ac_header_preproc=no
11463 rm -f conftest.err conftest.$ac_ext
11464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11465 echo "${ECHO_T}$ac_header_preproc" >&6; }
11467 # So? What about this header?
11468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11469 yes:no: )
11470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11474 ac_header_preproc=yes
11476 no:yes:* )
11477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11489 ( cat <<\_ASBOX
11490 ## ----------------------------------- ##
11491 ## Report this to llvmbugs@cs.uiuc.edu ##
11492 ## ----------------------------------- ##
11493 _ASBOX
11494 ) | sed "s/^/$as_me: WARNING: /" >&2
11496 esac
11497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11500 echo $ECHO_N "(cached) $ECHO_C" >&6
11501 else
11502 eval "$as_ac_Header=\$ac_header_preproc"
11504 ac_res=`eval echo '${'$as_ac_Header'}'`
11505 { echo "$as_me:$LINENO: result: $ac_res" >&5
11506 echo "${ECHO_T}$ac_res" >&6; }
11509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11510 cat >>confdefs.h <<_ACEOF
11511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11512 _ACEOF
11516 done
11519 { echo "$as_me:$LINENO: checking for error_t" >&5
11520 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11521 if test "${ac_cv_type_error_t+set}" = set; then
11522 echo $ECHO_N "(cached) $ECHO_C" >&6
11523 else
11524 cat >conftest.$ac_ext <<_ACEOF
11525 /* confdefs.h. */
11526 _ACEOF
11527 cat confdefs.h >>conftest.$ac_ext
11528 cat >>conftest.$ac_ext <<_ACEOF
11529 /* end confdefs.h. */
11530 #if HAVE_ARGZ_H
11531 # include <argz.h>
11532 #endif
11534 typedef error_t ac__type_new_;
11536 main ()
11538 if ((ac__type_new_ *) 0)
11539 return 0;
11540 if (sizeof (ac__type_new_))
11541 return 0;
11543 return 0;
11545 _ACEOF
11546 rm -f conftest.$ac_objext
11547 if { (ac_try="$ac_compile"
11548 case "(($ac_try" in
11549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11550 *) ac_try_echo=$ac_try;;
11551 esac
11552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11553 (eval "$ac_compile") 2>conftest.er1
11554 ac_status=$?
11555 grep -v '^ *+' conftest.er1 >conftest.err
11556 rm -f conftest.er1
11557 cat conftest.err >&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); } &&
11560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11561 { (case "(($ac_try" in
11562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11563 *) ac_try_echo=$ac_try;;
11564 esac
11565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11566 (eval "$ac_try") 2>&5
11567 ac_status=$?
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; } &&
11570 { ac_try='test -s conftest.$ac_objext'
11571 { (case "(($ac_try" in
11572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11573 *) ac_try_echo=$ac_try;;
11574 esac
11575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11576 (eval "$ac_try") 2>&5
11577 ac_status=$?
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; }; then
11580 ac_cv_type_error_t=yes
11581 else
11582 echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.$ac_ext >&5
11585 ac_cv_type_error_t=no
11588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11590 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11591 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11592 if test $ac_cv_type_error_t = yes; then
11594 cat >>confdefs.h <<_ACEOF
11595 #define HAVE_ERROR_T 1
11596 _ACEOF
11599 else
11601 cat >>confdefs.h <<\_ACEOF
11602 #define error_t int
11603 _ACEOF
11613 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11616 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11618 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11620 else
11621 cat >conftest.$ac_ext <<_ACEOF
11622 /* confdefs.h. */
11623 _ACEOF
11624 cat confdefs.h >>conftest.$ac_ext
11625 cat >>conftest.$ac_ext <<_ACEOF
11626 /* end confdefs.h. */
11627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11629 #define $ac_func innocuous_$ac_func
11631 /* System header to define __stub macros and hopefully few prototypes,
11632 which can conflict with char $ac_func (); below.
11633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11634 <limits.h> exists even on freestanding compilers. */
11636 #ifdef __STDC__
11637 # include <limits.h>
11638 #else
11639 # include <assert.h>
11640 #endif
11642 #undef $ac_func
11644 /* Override any GCC internal prototype to avoid an error.
11645 Use char because int might match the return type of a GCC
11646 builtin and then its argument prototype would still apply. */
11647 #ifdef __cplusplus
11648 extern "C"
11649 #endif
11650 char $ac_func ();
11651 /* The GNU C library defines this for functions which it implements
11652 to always fail with ENOSYS. Some functions are actually named
11653 something starting with __ and the normal name is an alias. */
11654 #if defined __stub_$ac_func || defined __stub___$ac_func
11655 choke me
11656 #endif
11659 main ()
11661 return $ac_func ();
11663 return 0;
11665 _ACEOF
11666 rm -f conftest.$ac_objext conftest$ac_exeext
11667 if { (ac_try="$ac_link"
11668 case "(($ac_try" in
11669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670 *) ac_try_echo=$ac_try;;
11671 esac
11672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673 (eval "$ac_link") 2>conftest.er1
11674 ac_status=$?
11675 grep -v '^ *+' conftest.er1 >conftest.err
11676 rm -f conftest.er1
11677 cat conftest.err >&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); } &&
11680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11681 { (case "(($ac_try" in
11682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11683 *) ac_try_echo=$ac_try;;
11684 esac
11685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11686 (eval "$ac_try") 2>&5
11687 ac_status=$?
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); }; } &&
11690 { ac_try='test -s conftest$ac_exeext'
11691 { (case "(($ac_try" in
11692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693 *) ac_try_echo=$ac_try;;
11694 esac
11695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11696 (eval "$ac_try") 2>&5
11697 ac_status=$?
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; }; then
11700 eval "$as_ac_var=yes"
11701 else
11702 echo "$as_me: failed program was:" >&5
11703 sed 's/^/| /' conftest.$ac_ext >&5
11705 eval "$as_ac_var=no"
11708 rm -f core conftest.err conftest.$ac_objext \
11709 conftest$ac_exeext conftest.$ac_ext
11711 ac_res=`eval echo '${'$as_ac_var'}'`
11712 { echo "$as_me:$LINENO: result: $ac_res" >&5
11713 echo "${ECHO_T}$ac_res" >&6; }
11714 if test `eval echo '${'$as_ac_var'}'` = yes; then
11715 cat >>confdefs.h <<_ACEOF
11716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11717 _ACEOF
11720 done
11749 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11750 stdio.h unistd.h
11752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11757 echo $ECHO_N "(cached) $ECHO_C" >&6
11759 ac_res=`eval echo '${'$as_ac_Header'}'`
11760 { echo "$as_me:$LINENO: result: $ac_res" >&5
11761 echo "${ECHO_T}$ac_res" >&6; }
11762 else
11763 # Is the header compilable?
11764 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11766 cat >conftest.$ac_ext <<_ACEOF
11767 /* confdefs.h. */
11768 _ACEOF
11769 cat confdefs.h >>conftest.$ac_ext
11770 cat >>conftest.$ac_ext <<_ACEOF
11771 /* end confdefs.h. */
11772 $ac_includes_default
11773 #include <$ac_header>
11774 _ACEOF
11775 rm -f conftest.$ac_objext
11776 if { (ac_try="$ac_compile"
11777 case "(($ac_try" in
11778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779 *) ac_try_echo=$ac_try;;
11780 esac
11781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782 (eval "$ac_compile") 2>conftest.er1
11783 ac_status=$?
11784 grep -v '^ *+' conftest.er1 >conftest.err
11785 rm -f conftest.er1
11786 cat conftest.err >&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); } &&
11789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11790 { (case "(($ac_try" in
11791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792 *) ac_try_echo=$ac_try;;
11793 esac
11794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795 (eval "$ac_try") 2>&5
11796 ac_status=$?
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; } &&
11799 { ac_try='test -s conftest.$ac_objext'
11800 { (case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11803 esac
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_try") 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; }; then
11809 ac_header_compiler=yes
11810 else
11811 echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11814 ac_header_compiler=no
11817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11819 echo "${ECHO_T}$ac_header_compiler" >&6; }
11821 # Is the header present?
11822 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11823 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11824 cat >conftest.$ac_ext <<_ACEOF
11825 /* confdefs.h. */
11826 _ACEOF
11827 cat confdefs.h >>conftest.$ac_ext
11828 cat >>conftest.$ac_ext <<_ACEOF
11829 /* end confdefs.h. */
11830 #include <$ac_header>
11831 _ACEOF
11832 if { (ac_try="$ac_cpp conftest.$ac_ext"
11833 case "(($ac_try" in
11834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11835 *) ac_try_echo=$ac_try;;
11836 esac
11837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11839 ac_status=$?
11840 grep -v '^ *+' conftest.er1 >conftest.err
11841 rm -f conftest.er1
11842 cat conftest.err >&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); } >/dev/null; then
11845 if test -s conftest.err; then
11846 ac_cpp_err=$ac_c_preproc_warn_flag
11847 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11848 else
11849 ac_cpp_err=
11851 else
11852 ac_cpp_err=yes
11854 if test -z "$ac_cpp_err"; then
11855 ac_header_preproc=yes
11856 else
11857 echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11860 ac_header_preproc=no
11863 rm -f conftest.err conftest.$ac_ext
11864 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11865 echo "${ECHO_T}$ac_header_preproc" >&6; }
11867 # So? What about this header?
11868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11869 yes:no: )
11870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11871 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11873 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11874 ac_header_preproc=yes
11876 no:yes:* )
11877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11878 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11880 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11881 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11882 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11883 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11884 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11887 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11888 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11889 ( cat <<\_ASBOX
11890 ## ----------------------------------- ##
11891 ## Report this to llvmbugs@cs.uiuc.edu ##
11892 ## ----------------------------------- ##
11893 _ASBOX
11894 ) | sed "s/^/$as_me: WARNING: /" >&2
11896 esac
11897 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11900 echo $ECHO_N "(cached) $ECHO_C" >&6
11901 else
11902 eval "$as_ac_Header=\$ac_header_preproc"
11904 ac_res=`eval echo '${'$as_ac_Header'}'`
11905 { echo "$as_me:$LINENO: result: $ac_res" >&5
11906 echo "${ECHO_T}$ac_res" >&6; }
11909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11910 cat >>confdefs.h <<_ACEOF
11911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11912 _ACEOF
11916 done
11922 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11924 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11929 echo $ECHO_N "(cached) $ECHO_C" >&6
11931 ac_res=`eval echo '${'$as_ac_Header'}'`
11932 { echo "$as_me:$LINENO: result: $ac_res" >&5
11933 echo "${ECHO_T}$ac_res" >&6; }
11934 else
11935 # Is the header compilable?
11936 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11937 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11938 cat >conftest.$ac_ext <<_ACEOF
11939 /* confdefs.h. */
11940 _ACEOF
11941 cat confdefs.h >>conftest.$ac_ext
11942 cat >>conftest.$ac_ext <<_ACEOF
11943 /* end confdefs.h. */
11944 $ac_includes_default
11945 #include <$ac_header>
11946 _ACEOF
11947 rm -f conftest.$ac_objext
11948 if { (ac_try="$ac_compile"
11949 case "(($ac_try" in
11950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11951 *) ac_try_echo=$ac_try;;
11952 esac
11953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11954 (eval "$ac_compile") 2>conftest.er1
11955 ac_status=$?
11956 grep -v '^ *+' conftest.er1 >conftest.err
11957 rm -f conftest.er1
11958 cat conftest.err >&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } &&
11961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11962 { (case "(($ac_try" in
11963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964 *) ac_try_echo=$ac_try;;
11965 esac
11966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967 (eval "$ac_try") 2>&5
11968 ac_status=$?
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; } &&
11971 { ac_try='test -s conftest.$ac_objext'
11972 { (case "(($ac_try" in
11973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974 *) ac_try_echo=$ac_try;;
11975 esac
11976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977 (eval "$ac_try") 2>&5
11978 ac_status=$?
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; }; then
11981 ac_header_compiler=yes
11982 else
11983 echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11986 ac_header_compiler=no
11989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11991 echo "${ECHO_T}$ac_header_compiler" >&6; }
11993 # Is the header present?
11994 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11996 cat >conftest.$ac_ext <<_ACEOF
11997 /* confdefs.h. */
11998 _ACEOF
11999 cat confdefs.h >>conftest.$ac_ext
12000 cat >>conftest.$ac_ext <<_ACEOF
12001 /* end confdefs.h. */
12002 #include <$ac_header>
12003 _ACEOF
12004 if { (ac_try="$ac_cpp conftest.$ac_ext"
12005 case "(($ac_try" in
12006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12007 *) ac_try_echo=$ac_try;;
12008 esac
12009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12011 ac_status=$?
12012 grep -v '^ *+' conftest.er1 >conftest.err
12013 rm -f conftest.er1
12014 cat conftest.err >&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } >/dev/null; then
12017 if test -s conftest.err; then
12018 ac_cpp_err=$ac_c_preproc_warn_flag
12019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12020 else
12021 ac_cpp_err=
12023 else
12024 ac_cpp_err=yes
12026 if test -z "$ac_cpp_err"; then
12027 ac_header_preproc=yes
12028 else
12029 echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.$ac_ext >&5
12032 ac_header_preproc=no
12035 rm -f conftest.err conftest.$ac_ext
12036 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12037 echo "${ECHO_T}$ac_header_preproc" >&6; }
12039 # So? What about this header?
12040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12041 yes:no: )
12042 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12043 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12045 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12046 ac_header_preproc=yes
12048 no:yes:* )
12049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12052 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12053 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12054 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12055 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12056 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12059 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12060 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12061 ( cat <<\_ASBOX
12062 ## ----------------------------------- ##
12063 ## Report this to llvmbugs@cs.uiuc.edu ##
12064 ## ----------------------------------- ##
12065 _ASBOX
12066 ) | sed "s/^/$as_me: WARNING: /" >&2
12068 esac
12069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12072 echo $ECHO_N "(cached) $ECHO_C" >&6
12073 else
12074 eval "$as_ac_Header=\$ac_header_preproc"
12076 ac_res=`eval echo '${'$as_ac_Header'}'`
12077 { echo "$as_me:$LINENO: result: $ac_res" >&5
12078 echo "${ECHO_T}$ac_res" >&6; }
12081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12082 cat >>confdefs.h <<_ACEOF
12083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12084 _ACEOF
12088 done
12092 for ac_header in string.h strings.h
12094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12101 ac_res=`eval echo '${'$as_ac_Header'}'`
12102 { echo "$as_me:$LINENO: result: $ac_res" >&5
12103 echo "${ECHO_T}$ac_res" >&6; }
12104 else
12105 # Is the header compilable?
12106 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12108 cat >conftest.$ac_ext <<_ACEOF
12109 /* confdefs.h. */
12110 _ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12114 $ac_includes_default
12115 #include <$ac_header>
12116 _ACEOF
12117 rm -f conftest.$ac_objext
12118 if { (ac_try="$ac_compile"
12119 case "(($ac_try" in
12120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121 *) ac_try_echo=$ac_try;;
12122 esac
12123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124 (eval "$ac_compile") 2>conftest.er1
12125 ac_status=$?
12126 grep -v '^ *+' conftest.er1 >conftest.err
12127 rm -f conftest.er1
12128 cat conftest.err >&5
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); } &&
12131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12132 { (case "(($ac_try" in
12133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12134 *) ac_try_echo=$ac_try;;
12135 esac
12136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12137 (eval "$ac_try") 2>&5
12138 ac_status=$?
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); }; } &&
12141 { ac_try='test -s conftest.$ac_objext'
12142 { (case "(($ac_try" in
12143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12144 *) ac_try_echo=$ac_try;;
12145 esac
12146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12147 (eval "$ac_try") 2>&5
12148 ac_status=$?
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); }; }; then
12151 ac_header_compiler=yes
12152 else
12153 echo "$as_me: failed program was:" >&5
12154 sed 's/^/| /' conftest.$ac_ext >&5
12156 ac_header_compiler=no
12159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12161 echo "${ECHO_T}$ac_header_compiler" >&6; }
12163 # Is the header present?
12164 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12166 cat >conftest.$ac_ext <<_ACEOF
12167 /* confdefs.h. */
12168 _ACEOF
12169 cat confdefs.h >>conftest.$ac_ext
12170 cat >>conftest.$ac_ext <<_ACEOF
12171 /* end confdefs.h. */
12172 #include <$ac_header>
12173 _ACEOF
12174 if { (ac_try="$ac_cpp conftest.$ac_ext"
12175 case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12178 esac
12179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12181 ac_status=$?
12182 grep -v '^ *+' conftest.er1 >conftest.err
12183 rm -f conftest.er1
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } >/dev/null; then
12187 if test -s conftest.err; then
12188 ac_cpp_err=$ac_c_preproc_warn_flag
12189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12190 else
12191 ac_cpp_err=
12193 else
12194 ac_cpp_err=yes
12196 if test -z "$ac_cpp_err"; then
12197 ac_header_preproc=yes
12198 else
12199 echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12202 ac_header_preproc=no
12205 rm -f conftest.err conftest.$ac_ext
12206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12207 echo "${ECHO_T}$ac_header_preproc" >&6; }
12209 # So? What about this header?
12210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12211 yes:no: )
12212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12216 ac_header_preproc=yes
12218 no:yes:* )
12219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12222 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12226 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12231 ( cat <<\_ASBOX
12232 ## ----------------------------------- ##
12233 ## Report this to llvmbugs@cs.uiuc.edu ##
12234 ## ----------------------------------- ##
12235 _ASBOX
12236 ) | sed "s/^/$as_me: WARNING: /" >&2
12238 esac
12239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12243 else
12244 eval "$as_ac_Header=\$ac_header_preproc"
12246 ac_res=`eval echo '${'$as_ac_Header'}'`
12247 { echo "$as_me:$LINENO: result: $ac_res" >&5
12248 echo "${ECHO_T}$ac_res" >&6; }
12251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12252 cat >>confdefs.h <<_ACEOF
12253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12254 _ACEOF
12255 break
12258 done
12263 for ac_func in strchr index
12265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12266 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12268 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
12270 else
12271 cat >conftest.$ac_ext <<_ACEOF
12272 /* confdefs.h. */
12273 _ACEOF
12274 cat confdefs.h >>conftest.$ac_ext
12275 cat >>conftest.$ac_ext <<_ACEOF
12276 /* end confdefs.h. */
12277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12279 #define $ac_func innocuous_$ac_func
12281 /* System header to define __stub macros and hopefully few prototypes,
12282 which can conflict with char $ac_func (); below.
12283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12284 <limits.h> exists even on freestanding compilers. */
12286 #ifdef __STDC__
12287 # include <limits.h>
12288 #else
12289 # include <assert.h>
12290 #endif
12292 #undef $ac_func
12294 /* Override any GCC internal prototype to avoid an error.
12295 Use char because int might match the return type of a GCC
12296 builtin and then its argument prototype would still apply. */
12297 #ifdef __cplusplus
12298 extern "C"
12299 #endif
12300 char $ac_func ();
12301 /* The GNU C library defines this for functions which it implements
12302 to always fail with ENOSYS. Some functions are actually named
12303 something starting with __ and the normal name is an alias. */
12304 #if defined __stub_$ac_func || defined __stub___$ac_func
12305 choke me
12306 #endif
12309 main ()
12311 return $ac_func ();
12313 return 0;
12315 _ACEOF
12316 rm -f conftest.$ac_objext conftest$ac_exeext
12317 if { (ac_try="$ac_link"
12318 case "(($ac_try" in
12319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12320 *) ac_try_echo=$ac_try;;
12321 esac
12322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12323 (eval "$ac_link") 2>conftest.er1
12324 ac_status=$?
12325 grep -v '^ *+' conftest.er1 >conftest.err
12326 rm -f conftest.er1
12327 cat conftest.err >&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); } &&
12330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12331 { (case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12334 esac
12335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336 (eval "$ac_try") 2>&5
12337 ac_status=$?
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; } &&
12340 { ac_try='test -s conftest$ac_exeext'
12341 { (case "(($ac_try" in
12342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12343 *) ac_try_echo=$ac_try;;
12344 esac
12345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12346 (eval "$ac_try") 2>&5
12347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; }; then
12350 eval "$as_ac_var=yes"
12351 else
12352 echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12355 eval "$as_ac_var=no"
12358 rm -f core conftest.err conftest.$ac_objext \
12359 conftest$ac_exeext conftest.$ac_ext
12361 ac_res=`eval echo '${'$as_ac_var'}'`
12362 { echo "$as_me:$LINENO: result: $ac_res" >&5
12363 echo "${ECHO_T}$ac_res" >&6; }
12364 if test `eval echo '${'$as_ac_var'}'` = yes; then
12365 cat >>confdefs.h <<_ACEOF
12366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12367 _ACEOF
12368 break
12370 done
12374 for ac_func in strrchr rindex
12376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12377 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12379 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12380 echo $ECHO_N "(cached) $ECHO_C" >&6
12381 else
12382 cat >conftest.$ac_ext <<_ACEOF
12383 /* confdefs.h. */
12384 _ACEOF
12385 cat confdefs.h >>conftest.$ac_ext
12386 cat >>conftest.$ac_ext <<_ACEOF
12387 /* end confdefs.h. */
12388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12390 #define $ac_func innocuous_$ac_func
12392 /* System header to define __stub macros and hopefully few prototypes,
12393 which can conflict with char $ac_func (); below.
12394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12395 <limits.h> exists even on freestanding compilers. */
12397 #ifdef __STDC__
12398 # include <limits.h>
12399 #else
12400 # include <assert.h>
12401 #endif
12403 #undef $ac_func
12405 /* Override any GCC internal prototype to avoid an error.
12406 Use char because int might match the return type of a GCC
12407 builtin and then its argument prototype would still apply. */
12408 #ifdef __cplusplus
12409 extern "C"
12410 #endif
12411 char $ac_func ();
12412 /* The GNU C library defines this for functions which it implements
12413 to always fail with ENOSYS. Some functions are actually named
12414 something starting with __ and the normal name is an alias. */
12415 #if defined __stub_$ac_func || defined __stub___$ac_func
12416 choke me
12417 #endif
12420 main ()
12422 return $ac_func ();
12424 return 0;
12426 _ACEOF
12427 rm -f conftest.$ac_objext conftest$ac_exeext
12428 if { (ac_try="$ac_link"
12429 case "(($ac_try" in
12430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431 *) ac_try_echo=$ac_try;;
12432 esac
12433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434 (eval "$ac_link") 2>conftest.er1
12435 ac_status=$?
12436 grep -v '^ *+' conftest.er1 >conftest.err
12437 rm -f conftest.er1
12438 cat conftest.err >&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); } &&
12441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12442 { (case "(($ac_try" in
12443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12444 *) ac_try_echo=$ac_try;;
12445 esac
12446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12447 (eval "$ac_try") 2>&5
12448 ac_status=$?
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; } &&
12451 { ac_try='test -s conftest$ac_exeext'
12452 { (case "(($ac_try" in
12453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12454 *) ac_try_echo=$ac_try;;
12455 esac
12456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12457 (eval "$ac_try") 2>&5
12458 ac_status=$?
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; }; then
12461 eval "$as_ac_var=yes"
12462 else
12463 echo "$as_me: failed program was:" >&5
12464 sed 's/^/| /' conftest.$ac_ext >&5
12466 eval "$as_ac_var=no"
12469 rm -f core conftest.err conftest.$ac_objext \
12470 conftest$ac_exeext conftest.$ac_ext
12472 ac_res=`eval echo '${'$as_ac_var'}'`
12473 { echo "$as_me:$LINENO: result: $ac_res" >&5
12474 echo "${ECHO_T}$ac_res" >&6; }
12475 if test `eval echo '${'$as_ac_var'}'` = yes; then
12476 cat >>confdefs.h <<_ACEOF
12477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12478 _ACEOF
12479 break
12481 done
12485 for ac_func in memcpy bcopy
12487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12488 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12490 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12491 echo $ECHO_N "(cached) $ECHO_C" >&6
12492 else
12493 cat >conftest.$ac_ext <<_ACEOF
12494 /* confdefs.h. */
12495 _ACEOF
12496 cat confdefs.h >>conftest.$ac_ext
12497 cat >>conftest.$ac_ext <<_ACEOF
12498 /* end confdefs.h. */
12499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12501 #define $ac_func innocuous_$ac_func
12503 /* System header to define __stub macros and hopefully few prototypes,
12504 which can conflict with char $ac_func (); below.
12505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12506 <limits.h> exists even on freestanding compilers. */
12508 #ifdef __STDC__
12509 # include <limits.h>
12510 #else
12511 # include <assert.h>
12512 #endif
12514 #undef $ac_func
12516 /* Override any GCC internal prototype to avoid an error.
12517 Use char because int might match the return type of a GCC
12518 builtin and then its argument prototype would still apply. */
12519 #ifdef __cplusplus
12520 extern "C"
12521 #endif
12522 char $ac_func ();
12523 /* The GNU C library defines this for functions which it implements
12524 to always fail with ENOSYS. Some functions are actually named
12525 something starting with __ and the normal name is an alias. */
12526 #if defined __stub_$ac_func || defined __stub___$ac_func
12527 choke me
12528 #endif
12531 main ()
12533 return $ac_func ();
12535 return 0;
12537 _ACEOF
12538 rm -f conftest.$ac_objext conftest$ac_exeext
12539 if { (ac_try="$ac_link"
12540 case "(($ac_try" in
12541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12542 *) ac_try_echo=$ac_try;;
12543 esac
12544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12545 (eval "$ac_link") 2>conftest.er1
12546 ac_status=$?
12547 grep -v '^ *+' conftest.er1 >conftest.err
12548 rm -f conftest.er1
12549 cat conftest.err >&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } &&
12552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12553 { (case "(($ac_try" in
12554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555 *) ac_try_echo=$ac_try;;
12556 esac
12557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12558 (eval "$ac_try") 2>&5
12559 ac_status=$?
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; } &&
12562 { ac_try='test -s conftest$ac_exeext'
12563 { (case "(($ac_try" in
12564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12565 *) ac_try_echo=$ac_try;;
12566 esac
12567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12568 (eval "$ac_try") 2>&5
12569 ac_status=$?
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); }; }; then
12572 eval "$as_ac_var=yes"
12573 else
12574 echo "$as_me: failed program was:" >&5
12575 sed 's/^/| /' conftest.$ac_ext >&5
12577 eval "$as_ac_var=no"
12580 rm -f core conftest.err conftest.$ac_objext \
12581 conftest$ac_exeext conftest.$ac_ext
12583 ac_res=`eval echo '${'$as_ac_var'}'`
12584 { echo "$as_me:$LINENO: result: $ac_res" >&5
12585 echo "${ECHO_T}$ac_res" >&6; }
12586 if test `eval echo '${'$as_ac_var'}'` = yes; then
12587 cat >>confdefs.h <<_ACEOF
12588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12589 _ACEOF
12590 break
12592 done
12596 for ac_func in memmove strcmp
12598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12599 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12602 echo $ECHO_N "(cached) $ECHO_C" >&6
12603 else
12604 cat >conftest.$ac_ext <<_ACEOF
12605 /* confdefs.h. */
12606 _ACEOF
12607 cat confdefs.h >>conftest.$ac_ext
12608 cat >>conftest.$ac_ext <<_ACEOF
12609 /* end confdefs.h. */
12610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12612 #define $ac_func innocuous_$ac_func
12614 /* System header to define __stub macros and hopefully few prototypes,
12615 which can conflict with char $ac_func (); below.
12616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12617 <limits.h> exists even on freestanding compilers. */
12619 #ifdef __STDC__
12620 # include <limits.h>
12621 #else
12622 # include <assert.h>
12623 #endif
12625 #undef $ac_func
12627 /* Override any GCC internal prototype to avoid an error.
12628 Use char because int might match the return type of a GCC
12629 builtin and then its argument prototype would still apply. */
12630 #ifdef __cplusplus
12631 extern "C"
12632 #endif
12633 char $ac_func ();
12634 /* The GNU C library defines this for functions which it implements
12635 to always fail with ENOSYS. Some functions are actually named
12636 something starting with __ and the normal name is an alias. */
12637 #if defined __stub_$ac_func || defined __stub___$ac_func
12638 choke me
12639 #endif
12642 main ()
12644 return $ac_func ();
12646 return 0;
12648 _ACEOF
12649 rm -f conftest.$ac_objext conftest$ac_exeext
12650 if { (ac_try="$ac_link"
12651 case "(($ac_try" in
12652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12653 *) ac_try_echo=$ac_try;;
12654 esac
12655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12656 (eval "$ac_link") 2>conftest.er1
12657 ac_status=$?
12658 grep -v '^ *+' conftest.er1 >conftest.err
12659 rm -f conftest.er1
12660 cat conftest.err >&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); } &&
12663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12664 { (case "(($ac_try" in
12665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666 *) ac_try_echo=$ac_try;;
12667 esac
12668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12669 (eval "$ac_try") 2>&5
12670 ac_status=$?
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; } &&
12673 { ac_try='test -s conftest$ac_exeext'
12674 { (case "(($ac_try" in
12675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676 *) ac_try_echo=$ac_try;;
12677 esac
12678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12679 (eval "$ac_try") 2>&5
12680 ac_status=$?
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; }; then
12683 eval "$as_ac_var=yes"
12684 else
12685 echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.$ac_ext >&5
12688 eval "$as_ac_var=no"
12691 rm -f core conftest.err conftest.$ac_objext \
12692 conftest$ac_exeext conftest.$ac_ext
12694 ac_res=`eval echo '${'$as_ac_var'}'`
12695 { echo "$as_me:$LINENO: result: $ac_res" >&5
12696 echo "${ECHO_T}$ac_res" >&6; }
12697 if test `eval echo '${'$as_ac_var'}'` = yes; then
12698 cat >>confdefs.h <<_ACEOF
12699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12700 _ACEOF
12703 done
12708 for ac_func in closedir opendir readdir
12710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12711 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12713 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
12715 else
12716 cat >conftest.$ac_ext <<_ACEOF
12717 /* confdefs.h. */
12718 _ACEOF
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h. */
12722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12724 #define $ac_func innocuous_$ac_func
12726 /* System header to define __stub macros and hopefully few prototypes,
12727 which can conflict with char $ac_func (); below.
12728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12729 <limits.h> exists even on freestanding compilers. */
12731 #ifdef __STDC__
12732 # include <limits.h>
12733 #else
12734 # include <assert.h>
12735 #endif
12737 #undef $ac_func
12739 /* Override any GCC internal prototype to avoid an error.
12740 Use char because int might match the return type of a GCC
12741 builtin and then its argument prototype would still apply. */
12742 #ifdef __cplusplus
12743 extern "C"
12744 #endif
12745 char $ac_func ();
12746 /* The GNU C library defines this for functions which it implements
12747 to always fail with ENOSYS. Some functions are actually named
12748 something starting with __ and the normal name is an alias. */
12749 #if defined __stub_$ac_func || defined __stub___$ac_func
12750 choke me
12751 #endif
12754 main ()
12756 return $ac_func ();
12758 return 0;
12760 _ACEOF
12761 rm -f conftest.$ac_objext conftest$ac_exeext
12762 if { (ac_try="$ac_link"
12763 case "(($ac_try" in
12764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765 *) ac_try_echo=$ac_try;;
12766 esac
12767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12768 (eval "$ac_link") 2>conftest.er1
12769 ac_status=$?
12770 grep -v '^ *+' conftest.er1 >conftest.err
12771 rm -f conftest.er1
12772 cat conftest.err >&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); } &&
12775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12776 { (case "(($ac_try" in
12777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12778 *) ac_try_echo=$ac_try;;
12779 esac
12780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12781 (eval "$ac_try") 2>&5
12782 ac_status=$?
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); }; } &&
12785 { ac_try='test -s conftest$ac_exeext'
12786 { (case "(($ac_try" in
12787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788 *) ac_try_echo=$ac_try;;
12789 esac
12790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12791 (eval "$ac_try") 2>&5
12792 ac_status=$?
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); }; }; then
12795 eval "$as_ac_var=yes"
12796 else
12797 echo "$as_me: failed program was:" >&5
12798 sed 's/^/| /' conftest.$ac_ext >&5
12800 eval "$as_ac_var=no"
12803 rm -f core conftest.err conftest.$ac_objext \
12804 conftest$ac_exeext conftest.$ac_ext
12806 ac_res=`eval echo '${'$as_ac_var'}'`
12807 { echo "$as_me:$LINENO: result: $ac_res" >&5
12808 echo "${ECHO_T}$ac_res" >&6; }
12809 if test `eval echo '${'$as_ac_var'}'` = yes; then
12810 cat >>confdefs.h <<_ACEOF
12811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12812 _ACEOF
12815 done
12819 if test "$WITH_LLVMGCCDIR" = "default" ; then
12820 LLVMGCC="llvm-gcc${EXEEXT}"
12821 LLVMGXX="llvm-g++${EXEEXT}"
12822 LLVMGCCCOMMAND="$LLVMGCC"
12823 LLVMGXXCOMMAND="$LLVMGXX"
12824 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12826 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12828 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12829 set dummy $LLVMGCC; ac_word=$2
12830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12832 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12833 echo $ECHO_N "(cached) $ECHO_C" >&6
12834 else
12835 case $LLVMGCC in
12836 [\\/]* | ?:[\\/]*)
12837 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12841 for as_dir in $PATH
12843 IFS=$as_save_IFS
12844 test -z "$as_dir" && as_dir=.
12845 for ac_exec_ext in '' $ac_executable_extensions; do
12846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12847 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12849 break 2
12851 done
12852 done
12853 IFS=$as_save_IFS
12856 esac
12858 LLVMGCC=$ac_cv_path_LLVMGCC
12859 if test -n "$LLVMGCC"; then
12860 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12861 echo "${ECHO_T}$LLVMGCC" >&6; }
12862 else
12863 { echo "$as_me:$LINENO: result: no" >&5
12864 echo "${ECHO_T}no" >&6; }
12868 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12869 set dummy $LLVMGXX; ac_word=$2
12870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12872 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12873 echo $ECHO_N "(cached) $ECHO_C" >&6
12874 else
12875 case $LLVMGXX in
12876 [\\/]* | ?:[\\/]*)
12877 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881 for as_dir in $PATH
12883 IFS=$as_save_IFS
12884 test -z "$as_dir" && as_dir=.
12885 for ac_exec_ext in '' $ac_executable_extensions; do
12886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12887 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
12888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12889 break 2
12891 done
12892 done
12893 IFS=$as_save_IFS
12896 esac
12898 LLVMGXX=$ac_cv_path_LLVMGXX
12899 if test -n "$LLVMGXX"; then
12900 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12901 echo "${ECHO_T}$LLVMGXX" >&6; }
12902 else
12903 { echo "$as_me:$LINENO: result: no" >&5
12904 echo "${ECHO_T}no" >&6; }
12908 else
12909 if test -z "$LLVMGCC"; then
12910 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
12911 LLVMGCCCOMMAND="$LLVMGCC"
12913 if test -z "$LLVMGXX"; then
12914 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
12915 LLVMGXXCOMMAND="$LLVMGXX"
12918 LLVMGCC=$LLVMGCC
12920 LLVMGXX=$LLVMGXX
12922 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12924 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12929 # Check whether --with-llvmcc was given.
12930 if test "${with_llvmcc+set}" = set; then
12931 withval=$with_llvmcc;
12932 else
12933 with_llvmcc=check
12936 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12937 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12938 if test "$with_llvmcc" != "check"; then
12939 if (test "$with_llvmcc" != "llvm-gcc" &&
12940 test "$with_llvmcc" != "clang" &&
12941 test "$with_llvmcc" != "none"); then
12942 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12943 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12944 { (exit 1); exit 1; }; }
12946 WITH_LLVMCC="$with_llvmcc"
12947 elif test -n "$LLVMGCC"; then
12948 WITH_LLVMCC=llvm-gcc
12949 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12950 WITH_LLVMCC=clang
12951 else
12952 WITH_LLVMCC=none
12954 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12955 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12956 LLVMCC_OPTION=$WITH_LLVMCC
12959 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12960 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12962 ICC=no
12963 IXX=no
12964 case $CC in
12965 icc*|icpc*)
12966 ICC=yes
12967 IXX=yes
12971 esac
12973 if test "$GCC" != "yes" && test "$ICC" != "yes"
12974 then
12975 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12976 echo "$as_me: error: gcc|icc required but not found" >&2;}
12977 { (exit 1); exit 1; }; }
12980 if test "$GXX" != "yes" && test "$IXX" != "yes"
12981 then
12982 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12983 echo "$as_me: error: g++|icc required but not found" >&2;}
12984 { (exit 1); exit 1; }; }
12987 if test "$GCC" = "yes"
12988 then
12989 cat >conftest.$ac_ext <<_ACEOF
12990 #if !defined(__GNUC__) || __GNUC__ < 3
12991 #error Unsupported GCC version
12992 #endif
12994 _ACEOF
12995 rm -f conftest.$ac_objext
12996 if { (ac_try="$ac_compile"
12997 case "(($ac_try" in
12998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12999 *) ac_try_echo=$ac_try;;
13000 esac
13001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13002 (eval "$ac_compile") 2>conftest.er1
13003 ac_status=$?
13004 grep -v '^ *+' conftest.er1 >conftest.err
13005 rm -f conftest.er1
13006 cat conftest.err >&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); } &&
13009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13010 { (case "(($ac_try" in
13011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13012 *) ac_try_echo=$ac_try;;
13013 esac
13014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13015 (eval "$ac_try") 2>&5
13016 ac_status=$?
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; } &&
13019 { ac_try='test -s conftest.$ac_objext'
13020 { (case "(($ac_try" in
13021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022 *) ac_try_echo=$ac_try;;
13023 esac
13024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025 (eval "$ac_try") 2>&5
13026 ac_status=$?
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; }; then
13030 else
13031 echo "$as_me: failed program was:" >&5
13032 sed 's/^/| /' conftest.$ac_ext >&5
13034 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13035 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13036 { (exit 1); exit 1; }; }
13039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13042 if test -z "$llvm_cv_gnu_make_command"
13043 then
13044 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13045 echo "$as_me: error: GNU Make required but not found" >&2;}
13046 { (exit 1); exit 1; }; }
13049 { echo "$as_me:$LINENO: result: ok" >&5
13050 echo "${ECHO_T}ok" >&6; }
13052 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13053 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13054 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13056 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13058 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13059 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13063 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13064 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13065 if test "${ac_cv_lib_m_sin+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13067 else
13068 ac_check_lib_save_LIBS=$LIBS
13069 LIBS="-lm $LIBS"
13070 cat >conftest.$ac_ext <<_ACEOF
13071 /* confdefs.h. */
13072 _ACEOF
13073 cat confdefs.h >>conftest.$ac_ext
13074 cat >>conftest.$ac_ext <<_ACEOF
13075 /* end confdefs.h. */
13077 /* Override any GCC internal prototype to avoid an error.
13078 Use char because int might match the return type of a GCC
13079 builtin and then its argument prototype would still apply. */
13080 #ifdef __cplusplus
13081 extern "C"
13082 #endif
13083 char sin ();
13085 main ()
13087 return sin ();
13089 return 0;
13091 _ACEOF
13092 rm -f conftest.$ac_objext conftest$ac_exeext
13093 if { (ac_try="$ac_link"
13094 case "(($ac_try" in
13095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13097 esac
13098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13099 (eval "$ac_link") 2>conftest.er1
13100 ac_status=$?
13101 grep -v '^ *+' conftest.er1 >conftest.err
13102 rm -f conftest.er1
13103 cat conftest.err >&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } &&
13106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13107 { (case "(($ac_try" in
13108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109 *) ac_try_echo=$ac_try;;
13110 esac
13111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112 (eval "$ac_try") 2>&5
13113 ac_status=$?
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); }; } &&
13116 { ac_try='test -s conftest$ac_exeext'
13117 { (case "(($ac_try" in
13118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119 *) ac_try_echo=$ac_try;;
13120 esac
13121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122 (eval "$ac_try") 2>&5
13123 ac_status=$?
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); }; }; then
13126 ac_cv_lib_m_sin=yes
13127 else
13128 echo "$as_me: failed program was:" >&5
13129 sed 's/^/| /' conftest.$ac_ext >&5
13131 ac_cv_lib_m_sin=no
13134 rm -f core conftest.err conftest.$ac_objext \
13135 conftest$ac_exeext conftest.$ac_ext
13136 LIBS=$ac_check_lib_save_LIBS
13138 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13139 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13140 if test $ac_cv_lib_m_sin = yes; then
13141 cat >>confdefs.h <<_ACEOF
13142 #define HAVE_LIBM 1
13143 _ACEOF
13145 LIBS="-lm $LIBS"
13149 if test "$llvm_cv_os_type" = "MingW" ; then
13151 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13152 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13153 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13154 echo $ECHO_N "(cached) $ECHO_C" >&6
13155 else
13156 ac_check_lib_save_LIBS=$LIBS
13157 LIBS="-limagehlp $LIBS"
13158 cat >conftest.$ac_ext <<_ACEOF
13159 /* confdefs.h. */
13160 _ACEOF
13161 cat confdefs.h >>conftest.$ac_ext
13162 cat >>conftest.$ac_ext <<_ACEOF
13163 /* end confdefs.h. */
13167 main ()
13169 return main ();
13171 return 0;
13173 _ACEOF
13174 rm -f conftest.$ac_objext conftest$ac_exeext
13175 if { (ac_try="$ac_link"
13176 case "(($ac_try" in
13177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178 *) ac_try_echo=$ac_try;;
13179 esac
13180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13181 (eval "$ac_link") 2>conftest.er1
13182 ac_status=$?
13183 grep -v '^ *+' conftest.er1 >conftest.err
13184 rm -f conftest.er1
13185 cat conftest.err >&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); } &&
13188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13189 { (case "(($ac_try" in
13190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191 *) ac_try_echo=$ac_try;;
13192 esac
13193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13194 (eval "$ac_try") 2>&5
13195 ac_status=$?
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; } &&
13198 { ac_try='test -s conftest$ac_exeext'
13199 { (case "(($ac_try" in
13200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201 *) ac_try_echo=$ac_try;;
13202 esac
13203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13204 (eval "$ac_try") 2>&5
13205 ac_status=$?
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }; }; then
13208 ac_cv_lib_imagehlp_main=yes
13209 else
13210 echo "$as_me: failed program was:" >&5
13211 sed 's/^/| /' conftest.$ac_ext >&5
13213 ac_cv_lib_imagehlp_main=no
13216 rm -f core conftest.err conftest.$ac_objext \
13217 conftest$ac_exeext conftest.$ac_ext
13218 LIBS=$ac_check_lib_save_LIBS
13220 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13221 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13222 if test $ac_cv_lib_imagehlp_main = yes; then
13223 cat >>confdefs.h <<_ACEOF
13224 #define HAVE_LIBIMAGEHLP 1
13225 _ACEOF
13227 LIBS="-limagehlp $LIBS"
13232 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13233 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13234 if test "${ac_cv_lib_psapi_main+set}" = set; then
13235 echo $ECHO_N "(cached) $ECHO_C" >&6
13236 else
13237 ac_check_lib_save_LIBS=$LIBS
13238 LIBS="-lpsapi $LIBS"
13239 cat >conftest.$ac_ext <<_ACEOF
13240 /* confdefs.h. */
13241 _ACEOF
13242 cat confdefs.h >>conftest.$ac_ext
13243 cat >>conftest.$ac_ext <<_ACEOF
13244 /* end confdefs.h. */
13248 main ()
13250 return main ();
13252 return 0;
13254 _ACEOF
13255 rm -f conftest.$ac_objext conftest$ac_exeext
13256 if { (ac_try="$ac_link"
13257 case "(($ac_try" in
13258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259 *) ac_try_echo=$ac_try;;
13260 esac
13261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262 (eval "$ac_link") 2>conftest.er1
13263 ac_status=$?
13264 grep -v '^ *+' conftest.er1 >conftest.err
13265 rm -f conftest.er1
13266 cat conftest.err >&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); } &&
13269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13270 { (case "(($ac_try" in
13271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272 *) ac_try_echo=$ac_try;;
13273 esac
13274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13275 (eval "$ac_try") 2>&5
13276 ac_status=$?
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; } &&
13279 { ac_try='test -s conftest$ac_exeext'
13280 { (case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13283 esac
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_try") 2>&5
13286 ac_status=$?
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; }; then
13289 ac_cv_lib_psapi_main=yes
13290 else
13291 echo "$as_me: failed program was:" >&5
13292 sed 's/^/| /' conftest.$ac_ext >&5
13294 ac_cv_lib_psapi_main=no
13297 rm -f core conftest.err conftest.$ac_objext \
13298 conftest$ac_exeext conftest.$ac_ext
13299 LIBS=$ac_check_lib_save_LIBS
13301 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13302 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13303 if test $ac_cv_lib_psapi_main = yes; then
13304 cat >>confdefs.h <<_ACEOF
13305 #define HAVE_LIBPSAPI 1
13306 _ACEOF
13308 LIBS="-lpsapi $LIBS"
13314 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13315 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13316 if test "${ac_cv_search_dlopen+set}" = set; then
13317 echo $ECHO_N "(cached) $ECHO_C" >&6
13318 else
13319 ac_func_search_save_LIBS=$LIBS
13320 cat >conftest.$ac_ext <<_ACEOF
13321 /* confdefs.h. */
13322 _ACEOF
13323 cat confdefs.h >>conftest.$ac_ext
13324 cat >>conftest.$ac_ext <<_ACEOF
13325 /* end confdefs.h. */
13327 /* Override any GCC internal prototype to avoid an error.
13328 Use char because int might match the return type of a GCC
13329 builtin and then its argument prototype would still apply. */
13330 #ifdef __cplusplus
13331 extern "C"
13332 #endif
13333 char dlopen ();
13335 main ()
13337 return dlopen ();
13339 return 0;
13341 _ACEOF
13342 for ac_lib in '' dl; do
13343 if test -z "$ac_lib"; then
13344 ac_res="none required"
13345 else
13346 ac_res=-l$ac_lib
13347 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13349 rm -f conftest.$ac_objext conftest$ac_exeext
13350 if { (ac_try="$ac_link"
13351 case "(($ac_try" in
13352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13353 *) ac_try_echo=$ac_try;;
13354 esac
13355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13356 (eval "$ac_link") 2>conftest.er1
13357 ac_status=$?
13358 grep -v '^ *+' conftest.er1 >conftest.err
13359 rm -f conftest.er1
13360 cat conftest.err >&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); } &&
13363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13364 { (case "(($ac_try" in
13365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366 *) ac_try_echo=$ac_try;;
13367 esac
13368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369 (eval "$ac_try") 2>&5
13370 ac_status=$?
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); }; } &&
13373 { ac_try='test -s conftest$ac_exeext'
13374 { (case "(($ac_try" in
13375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376 *) ac_try_echo=$ac_try;;
13377 esac
13378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379 (eval "$ac_try") 2>&5
13380 ac_status=$?
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }; }; then
13383 ac_cv_search_dlopen=$ac_res
13384 else
13385 echo "$as_me: failed program was:" >&5
13386 sed 's/^/| /' conftest.$ac_ext >&5
13391 rm -f core conftest.err conftest.$ac_objext \
13392 conftest$ac_exeext
13393 if test "${ac_cv_search_dlopen+set}" = set; then
13394 break
13396 done
13397 if test "${ac_cv_search_dlopen+set}" = set; then
13399 else
13400 ac_cv_search_dlopen=no
13402 rm conftest.$ac_ext
13403 LIBS=$ac_func_search_save_LIBS
13405 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13406 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13407 ac_res=$ac_cv_search_dlopen
13408 if test "$ac_res" != no; then
13409 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13411 cat >>confdefs.h <<\_ACEOF
13412 #define HAVE_DLOPEN 1
13413 _ACEOF
13415 else
13416 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13417 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13421 if test "$llvm_cv_enable_libffi" = "yes" ; then
13422 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13423 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13424 if test "${ac_cv_search_ffi_call+set}" = set; then
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
13426 else
13427 ac_func_search_save_LIBS=$LIBS
13428 cat >conftest.$ac_ext <<_ACEOF
13429 /* confdefs.h. */
13430 _ACEOF
13431 cat confdefs.h >>conftest.$ac_ext
13432 cat >>conftest.$ac_ext <<_ACEOF
13433 /* end confdefs.h. */
13435 /* Override any GCC internal prototype to avoid an error.
13436 Use char because int might match the return type of a GCC
13437 builtin and then its argument prototype would still apply. */
13438 #ifdef __cplusplus
13439 extern "C"
13440 #endif
13441 char ffi_call ();
13443 main ()
13445 return ffi_call ();
13447 return 0;
13449 _ACEOF
13450 for ac_lib in '' ffi; do
13451 if test -z "$ac_lib"; then
13452 ac_res="none required"
13453 else
13454 ac_res=-l$ac_lib
13455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13457 rm -f conftest.$ac_objext conftest$ac_exeext
13458 if { (ac_try="$ac_link"
13459 case "(($ac_try" in
13460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461 *) ac_try_echo=$ac_try;;
13462 esac
13463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464 (eval "$ac_link") 2>conftest.er1
13465 ac_status=$?
13466 grep -v '^ *+' conftest.er1 >conftest.err
13467 rm -f conftest.er1
13468 cat conftest.err >&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); } &&
13471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13472 { (case "(($ac_try" in
13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474 *) ac_try_echo=$ac_try;;
13475 esac
13476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13477 (eval "$ac_try") 2>&5
13478 ac_status=$?
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); }; } &&
13481 { ac_try='test -s conftest$ac_exeext'
13482 { (case "(($ac_try" in
13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484 *) ac_try_echo=$ac_try;;
13485 esac
13486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487 (eval "$ac_try") 2>&5
13488 ac_status=$?
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; }; then
13491 ac_cv_search_ffi_call=$ac_res
13492 else
13493 echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13499 rm -f core conftest.err conftest.$ac_objext \
13500 conftest$ac_exeext
13501 if test "${ac_cv_search_ffi_call+set}" = set; then
13502 break
13504 done
13505 if test "${ac_cv_search_ffi_call+set}" = set; then
13507 else
13508 ac_cv_search_ffi_call=no
13510 rm conftest.$ac_ext
13511 LIBS=$ac_func_search_save_LIBS
13513 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13514 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13515 ac_res=$ac_cv_search_ffi_call
13516 if test "$ac_res" != no; then
13517 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13519 cat >>confdefs.h <<\_ACEOF
13520 #define HAVE_FFI_CALL 1
13521 _ACEOF
13523 else
13524 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13525 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13526 { (exit 1); exit 1; }; }
13531 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13532 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13533 if test "${ac_cv_search_mallinfo+set}" = set; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13535 else
13536 ac_func_search_save_LIBS=$LIBS
13537 cat >conftest.$ac_ext <<_ACEOF
13538 /* confdefs.h. */
13539 _ACEOF
13540 cat confdefs.h >>conftest.$ac_ext
13541 cat >>conftest.$ac_ext <<_ACEOF
13542 /* end confdefs.h. */
13544 /* Override any GCC internal prototype to avoid an error.
13545 Use char because int might match the return type of a GCC
13546 builtin and then its argument prototype would still apply. */
13547 #ifdef __cplusplus
13548 extern "C"
13549 #endif
13550 char mallinfo ();
13552 main ()
13554 return mallinfo ();
13556 return 0;
13558 _ACEOF
13559 for ac_lib in '' malloc; do
13560 if test -z "$ac_lib"; then
13561 ac_res="none required"
13562 else
13563 ac_res=-l$ac_lib
13564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13566 rm -f conftest.$ac_objext conftest$ac_exeext
13567 if { (ac_try="$ac_link"
13568 case "(($ac_try" in
13569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570 *) ac_try_echo=$ac_try;;
13571 esac
13572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13573 (eval "$ac_link") 2>conftest.er1
13574 ac_status=$?
13575 grep -v '^ *+' conftest.er1 >conftest.err
13576 rm -f conftest.er1
13577 cat conftest.err >&5
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); } &&
13580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13581 { (case "(($ac_try" in
13582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13583 *) ac_try_echo=$ac_try;;
13584 esac
13585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13586 (eval "$ac_try") 2>&5
13587 ac_status=$?
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; } &&
13590 { ac_try='test -s conftest$ac_exeext'
13591 { (case "(($ac_try" in
13592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13593 *) ac_try_echo=$ac_try;;
13594 esac
13595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13596 (eval "$ac_try") 2>&5
13597 ac_status=$?
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); }; }; then
13600 ac_cv_search_mallinfo=$ac_res
13601 else
13602 echo "$as_me: failed program was:" >&5
13603 sed 's/^/| /' conftest.$ac_ext >&5
13608 rm -f core conftest.err conftest.$ac_objext \
13609 conftest$ac_exeext
13610 if test "${ac_cv_search_mallinfo+set}" = set; then
13611 break
13613 done
13614 if test "${ac_cv_search_mallinfo+set}" = set; then
13616 else
13617 ac_cv_search_mallinfo=no
13619 rm conftest.$ac_ext
13620 LIBS=$ac_func_search_save_LIBS
13622 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13623 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13624 ac_res=$ac_cv_search_mallinfo
13625 if test "$ac_res" != no; then
13626 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13628 cat >>confdefs.h <<\_ACEOF
13629 #define HAVE_MALLINFO 1
13630 _ACEOF
13635 if test "$ENABLE_THREADS" -eq 1 ; then
13637 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13638 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13639 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
13641 else
13642 ac_check_lib_save_LIBS=$LIBS
13643 LIBS="-lpthread $LIBS"
13644 cat >conftest.$ac_ext <<_ACEOF
13645 /* confdefs.h. */
13646 _ACEOF
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h. */
13651 /* Override any GCC internal prototype to avoid an error.
13652 Use char because int might match the return type of a GCC
13653 builtin and then its argument prototype would still apply. */
13654 #ifdef __cplusplus
13655 extern "C"
13656 #endif
13657 char pthread_mutex_init ();
13659 main ()
13661 return pthread_mutex_init ();
13663 return 0;
13665 _ACEOF
13666 rm -f conftest.$ac_objext conftest$ac_exeext
13667 if { (ac_try="$ac_link"
13668 case "(($ac_try" in
13669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13670 *) ac_try_echo=$ac_try;;
13671 esac
13672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13673 (eval "$ac_link") 2>conftest.er1
13674 ac_status=$?
13675 grep -v '^ *+' conftest.er1 >conftest.err
13676 rm -f conftest.er1
13677 cat conftest.err >&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); } &&
13680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13681 { (case "(($ac_try" in
13682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683 *) ac_try_echo=$ac_try;;
13684 esac
13685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686 (eval "$ac_try") 2>&5
13687 ac_status=$?
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); }; } &&
13690 { ac_try='test -s conftest$ac_exeext'
13691 { (case "(($ac_try" in
13692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13693 *) ac_try_echo=$ac_try;;
13694 esac
13695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13696 (eval "$ac_try") 2>&5
13697 ac_status=$?
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); }; }; then
13700 ac_cv_lib_pthread_pthread_mutex_init=yes
13701 else
13702 echo "$as_me: failed program was:" >&5
13703 sed 's/^/| /' conftest.$ac_ext >&5
13705 ac_cv_lib_pthread_pthread_mutex_init=no
13708 rm -f core conftest.err conftest.$ac_objext \
13709 conftest$ac_exeext conftest.$ac_ext
13710 LIBS=$ac_check_lib_save_LIBS
13712 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13713 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13714 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13715 cat >>confdefs.h <<_ACEOF
13716 #define HAVE_LIBPTHREAD 1
13717 _ACEOF
13719 LIBS="-lpthread $LIBS"
13723 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13724 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13725 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13726 echo $ECHO_N "(cached) $ECHO_C" >&6
13727 else
13728 ac_func_search_save_LIBS=$LIBS
13729 cat >conftest.$ac_ext <<_ACEOF
13730 /* confdefs.h. */
13731 _ACEOF
13732 cat confdefs.h >>conftest.$ac_ext
13733 cat >>conftest.$ac_ext <<_ACEOF
13734 /* end confdefs.h. */
13736 /* Override any GCC internal prototype to avoid an error.
13737 Use char because int might match the return type of a GCC
13738 builtin and then its argument prototype would still apply. */
13739 #ifdef __cplusplus
13740 extern "C"
13741 #endif
13742 char pthread_mutex_lock ();
13744 main ()
13746 return pthread_mutex_lock ();
13748 return 0;
13750 _ACEOF
13751 for ac_lib in '' pthread; do
13752 if test -z "$ac_lib"; then
13753 ac_res="none required"
13754 else
13755 ac_res=-l$ac_lib
13756 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13758 rm -f conftest.$ac_objext conftest$ac_exeext
13759 if { (ac_try="$ac_link"
13760 case "(($ac_try" in
13761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762 *) ac_try_echo=$ac_try;;
13763 esac
13764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765 (eval "$ac_link") 2>conftest.er1
13766 ac_status=$?
13767 grep -v '^ *+' conftest.er1 >conftest.err
13768 rm -f conftest.er1
13769 cat conftest.err >&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); } &&
13772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13773 { (case "(($ac_try" in
13774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13775 *) ac_try_echo=$ac_try;;
13776 esac
13777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13778 (eval "$ac_try") 2>&5
13779 ac_status=$?
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; } &&
13782 { ac_try='test -s conftest$ac_exeext'
13783 { (case "(($ac_try" in
13784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13785 *) ac_try_echo=$ac_try;;
13786 esac
13787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13788 (eval "$ac_try") 2>&5
13789 ac_status=$?
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; }; then
13792 ac_cv_search_pthread_mutex_lock=$ac_res
13793 else
13794 echo "$as_me: failed program was:" >&5
13795 sed 's/^/| /' conftest.$ac_ext >&5
13800 rm -f core conftest.err conftest.$ac_objext \
13801 conftest$ac_exeext
13802 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13803 break
13805 done
13806 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13808 else
13809 ac_cv_search_pthread_mutex_lock=no
13811 rm conftest.$ac_ext
13812 LIBS=$ac_func_search_save_LIBS
13814 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13815 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13816 ac_res=$ac_cv_search_pthread_mutex_lock
13817 if test "$ac_res" != no; then
13818 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13820 cat >>confdefs.h <<\_ACEOF
13821 #define HAVE_PTHREAD_MUTEX_LOCK 1
13822 _ACEOF
13826 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13827 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13828 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
13830 else
13831 ac_func_search_save_LIBS=$LIBS
13832 cat >conftest.$ac_ext <<_ACEOF
13833 /* confdefs.h. */
13834 _ACEOF
13835 cat confdefs.h >>conftest.$ac_ext
13836 cat >>conftest.$ac_ext <<_ACEOF
13837 /* end confdefs.h. */
13839 /* Override any GCC internal prototype to avoid an error.
13840 Use char because int might match the return type of a GCC
13841 builtin and then its argument prototype would still apply. */
13842 #ifdef __cplusplus
13843 extern "C"
13844 #endif
13845 char pthread_rwlock_init ();
13847 main ()
13849 return pthread_rwlock_init ();
13851 return 0;
13853 _ACEOF
13854 for ac_lib in '' pthread; do
13855 if test -z "$ac_lib"; then
13856 ac_res="none required"
13857 else
13858 ac_res=-l$ac_lib
13859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13861 rm -f conftest.$ac_objext conftest$ac_exeext
13862 if { (ac_try="$ac_link"
13863 case "(($ac_try" in
13864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865 *) ac_try_echo=$ac_try;;
13866 esac
13867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868 (eval "$ac_link") 2>conftest.er1
13869 ac_status=$?
13870 grep -v '^ *+' conftest.er1 >conftest.err
13871 rm -f conftest.er1
13872 cat conftest.err >&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } &&
13875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13876 { (case "(($ac_try" in
13877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13878 *) ac_try_echo=$ac_try;;
13879 esac
13880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13881 (eval "$ac_try") 2>&5
13882 ac_status=$?
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); }; } &&
13885 { ac_try='test -s conftest$ac_exeext'
13886 { (case "(($ac_try" in
13887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888 *) ac_try_echo=$ac_try;;
13889 esac
13890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891 (eval "$ac_try") 2>&5
13892 ac_status=$?
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); }; }; then
13895 ac_cv_search_pthread_rwlock_init=$ac_res
13896 else
13897 echo "$as_me: failed program was:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13903 rm -f core conftest.err conftest.$ac_objext \
13904 conftest$ac_exeext
13905 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13906 break
13908 done
13909 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13911 else
13912 ac_cv_search_pthread_rwlock_init=no
13914 rm conftest.$ac_ext
13915 LIBS=$ac_func_search_save_LIBS
13917 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13918 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13919 ac_res=$ac_cv_search_pthread_rwlock_init
13920 if test "$ac_res" != no; then
13921 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13923 cat >>confdefs.h <<\_ACEOF
13924 #define HAVE_PTHREAD_RWLOCK_INIT 1
13925 _ACEOF
13929 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13930 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13931 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13932 echo $ECHO_N "(cached) $ECHO_C" >&6
13933 else
13934 ac_func_search_save_LIBS=$LIBS
13935 cat >conftest.$ac_ext <<_ACEOF
13936 /* confdefs.h. */
13937 _ACEOF
13938 cat confdefs.h >>conftest.$ac_ext
13939 cat >>conftest.$ac_ext <<_ACEOF
13940 /* end confdefs.h. */
13942 /* Override any GCC internal prototype to avoid an error.
13943 Use char because int might match the return type of a GCC
13944 builtin and then its argument prototype would still apply. */
13945 #ifdef __cplusplus
13946 extern "C"
13947 #endif
13948 char pthread_getspecific ();
13950 main ()
13952 return pthread_getspecific ();
13954 return 0;
13956 _ACEOF
13957 for ac_lib in '' pthread; do
13958 if test -z "$ac_lib"; then
13959 ac_res="none required"
13960 else
13961 ac_res=-l$ac_lib
13962 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13964 rm -f conftest.$ac_objext conftest$ac_exeext
13965 if { (ac_try="$ac_link"
13966 case "(($ac_try" in
13967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968 *) ac_try_echo=$ac_try;;
13969 esac
13970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971 (eval "$ac_link") 2>conftest.er1
13972 ac_status=$?
13973 grep -v '^ *+' conftest.er1 >conftest.err
13974 rm -f conftest.er1
13975 cat conftest.err >&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } &&
13978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13979 { (case "(($ac_try" in
13980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981 *) ac_try_echo=$ac_try;;
13982 esac
13983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984 (eval "$ac_try") 2>&5
13985 ac_status=$?
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); }; } &&
13988 { ac_try='test -s conftest$ac_exeext'
13989 { (case "(($ac_try" in
13990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13991 *) ac_try_echo=$ac_try;;
13992 esac
13993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13994 (eval "$ac_try") 2>&5
13995 ac_status=$?
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; }; then
13998 ac_cv_search_pthread_getspecific=$ac_res
13999 else
14000 echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14006 rm -f core conftest.err conftest.$ac_objext \
14007 conftest$ac_exeext
14008 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14009 break
14011 done
14012 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14014 else
14015 ac_cv_search_pthread_getspecific=no
14017 rm conftest.$ac_ext
14018 LIBS=$ac_func_search_save_LIBS
14020 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14021 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14022 ac_res=$ac_cv_search_pthread_getspecific
14023 if test "$ac_res" != no; then
14024 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14026 cat >>confdefs.h <<\_ACEOF
14027 #define HAVE_PTHREAD_GETSPECIFIC 1
14028 _ACEOF
14035 # Check whether --with-udis86 was given.
14036 if test "${with_udis86+set}" = set; then
14037 withval=$with_udis86;
14038 USE_UDIS86=1
14040 case "$withval" in
14041 /usr/lib|yes) ;;
14042 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14043 esac
14045 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14046 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14047 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
14049 else
14050 ac_check_lib_save_LIBS=$LIBS
14051 LIBS="-ludis86 $LIBS"
14052 cat >conftest.$ac_ext <<_ACEOF
14053 /* confdefs.h. */
14054 _ACEOF
14055 cat confdefs.h >>conftest.$ac_ext
14056 cat >>conftest.$ac_ext <<_ACEOF
14057 /* end confdefs.h. */
14059 /* Override any GCC internal prototype to avoid an error.
14060 Use char because int might match the return type of a GCC
14061 builtin and then its argument prototype would still apply. */
14062 #ifdef __cplusplus
14063 extern "C"
14064 #endif
14065 char ud_init ();
14067 main ()
14069 return ud_init ();
14071 return 0;
14073 _ACEOF
14074 rm -f conftest.$ac_objext conftest$ac_exeext
14075 if { (ac_try="$ac_link"
14076 case "(($ac_try" in
14077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14078 *) ac_try_echo=$ac_try;;
14079 esac
14080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14081 (eval "$ac_link") 2>conftest.er1
14082 ac_status=$?
14083 grep -v '^ *+' conftest.er1 >conftest.err
14084 rm -f conftest.er1
14085 cat conftest.err >&5
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); } &&
14088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14089 { (case "(($ac_try" in
14090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14091 *) ac_try_echo=$ac_try;;
14092 esac
14093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14094 (eval "$ac_try") 2>&5
14095 ac_status=$?
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); }; } &&
14098 { ac_try='test -s conftest$ac_exeext'
14099 { (case "(($ac_try" in
14100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14101 *) ac_try_echo=$ac_try;;
14102 esac
14103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14104 (eval "$ac_try") 2>&5
14105 ac_status=$?
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; }; then
14108 ac_cv_lib_udis86_ud_init=yes
14109 else
14110 echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14113 ac_cv_lib_udis86_ud_init=no
14116 rm -f core conftest.err conftest.$ac_objext \
14117 conftest$ac_exeext conftest.$ac_ext
14118 LIBS=$ac_check_lib_save_LIBS
14120 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14121 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14122 if test $ac_cv_lib_udis86_ud_init = yes; then
14123 cat >>confdefs.h <<_ACEOF
14124 #define HAVE_LIBUDIS86 1
14125 _ACEOF
14127 LIBS="-ludis86 $LIBS"
14129 else
14131 echo "Error! You need to have libudis86 around."
14132 exit -1
14137 else
14138 USE_UDIS86=0
14143 cat >>confdefs.h <<_ACEOF
14144 #define USE_UDIS86 $USE_UDIS86
14145 _ACEOF
14149 # Check whether --with-oprofile was given.
14150 if test "${with_oprofile+set}" = set; then
14151 withval=$with_oprofile;
14152 USE_OPROFILE=1
14154 case "$withval" in
14155 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14156 no) llvm_cv_oppath=
14157 USE_OPROFILE=0
14159 *) llvm_cv_oppath="${withval}/lib/oprofile"
14160 CPPFLAGS="-I${withval}/include";;
14161 esac
14162 if test -n "$llvm_cv_oppath" ; then
14163 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14164 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14165 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14166 if test "${ac_cv_search_bfd_init+set}" = set; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14168 else
14169 ac_func_search_save_LIBS=$LIBS
14170 cat >conftest.$ac_ext <<_ACEOF
14171 /* confdefs.h. */
14172 _ACEOF
14173 cat confdefs.h >>conftest.$ac_ext
14174 cat >>conftest.$ac_ext <<_ACEOF
14175 /* end confdefs.h. */
14177 /* Override any GCC internal prototype to avoid an error.
14178 Use char because int might match the return type of a GCC
14179 builtin and then its argument prototype would still apply. */
14180 #ifdef __cplusplus
14181 extern "C"
14182 #endif
14183 char bfd_init ();
14185 main ()
14187 return bfd_init ();
14189 return 0;
14191 _ACEOF
14192 for ac_lib in '' bfd; do
14193 if test -z "$ac_lib"; then
14194 ac_res="none required"
14195 else
14196 ac_res=-l$ac_lib
14197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14199 rm -f conftest.$ac_objext conftest$ac_exeext
14200 if { (ac_try="$ac_link"
14201 case "(($ac_try" in
14202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14203 *) ac_try_echo=$ac_try;;
14204 esac
14205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14206 (eval "$ac_link") 2>conftest.er1
14207 ac_status=$?
14208 grep -v '^ *+' conftest.er1 >conftest.err
14209 rm -f conftest.er1
14210 cat conftest.err >&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); } &&
14213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14214 { (case "(($ac_try" in
14215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14216 *) ac_try_echo=$ac_try;;
14217 esac
14218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14219 (eval "$ac_try") 2>&5
14220 ac_status=$?
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; } &&
14223 { ac_try='test -s conftest$ac_exeext'
14224 { (case "(($ac_try" in
14225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14226 *) ac_try_echo=$ac_try;;
14227 esac
14228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14229 (eval "$ac_try") 2>&5
14230 ac_status=$?
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); }; }; then
14233 ac_cv_search_bfd_init=$ac_res
14234 else
14235 echo "$as_me: failed program was:" >&5
14236 sed 's/^/| /' conftest.$ac_ext >&5
14241 rm -f core conftest.err conftest.$ac_objext \
14242 conftest$ac_exeext
14243 if test "${ac_cv_search_bfd_init+set}" = set; then
14244 break
14246 done
14247 if test "${ac_cv_search_bfd_init+set}" = set; then
14249 else
14250 ac_cv_search_bfd_init=no
14252 rm conftest.$ac_ext
14253 LIBS=$ac_func_search_save_LIBS
14255 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14256 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14257 ac_res=$ac_cv_search_bfd_init
14258 if test "$ac_res" != no; then
14259 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14263 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14264 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14265 if test "${ac_cv_search_op_open_agent+set}" = set; then
14266 echo $ECHO_N "(cached) $ECHO_C" >&6
14267 else
14268 ac_func_search_save_LIBS=$LIBS
14269 cat >conftest.$ac_ext <<_ACEOF
14270 /* confdefs.h. */
14271 _ACEOF
14272 cat confdefs.h >>conftest.$ac_ext
14273 cat >>conftest.$ac_ext <<_ACEOF
14274 /* end confdefs.h. */
14276 /* Override any GCC internal prototype to avoid an error.
14277 Use char because int might match the return type of a GCC
14278 builtin and then its argument prototype would still apply. */
14279 #ifdef __cplusplus
14280 extern "C"
14281 #endif
14282 char op_open_agent ();
14284 main ()
14286 return op_open_agent ();
14288 return 0;
14290 _ACEOF
14291 for ac_lib in '' opagent; do
14292 if test -z "$ac_lib"; then
14293 ac_res="none required"
14294 else
14295 ac_res=-l$ac_lib
14296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14298 rm -f conftest.$ac_objext conftest$ac_exeext
14299 if { (ac_try="$ac_link"
14300 case "(($ac_try" in
14301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302 *) ac_try_echo=$ac_try;;
14303 esac
14304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305 (eval "$ac_link") 2>conftest.er1
14306 ac_status=$?
14307 grep -v '^ *+' conftest.er1 >conftest.err
14308 rm -f conftest.er1
14309 cat conftest.err >&5
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); } &&
14312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14313 { (case "(($ac_try" in
14314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14315 *) ac_try_echo=$ac_try;;
14316 esac
14317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14318 (eval "$ac_try") 2>&5
14319 ac_status=$?
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); }; } &&
14322 { ac_try='test -s conftest$ac_exeext'
14323 { (case "(($ac_try" in
14324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14325 *) ac_try_echo=$ac_try;;
14326 esac
14327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14328 (eval "$ac_try") 2>&5
14329 ac_status=$?
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); }; }; then
14332 ac_cv_search_op_open_agent=$ac_res
14333 else
14334 echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14340 rm -f core conftest.err conftest.$ac_objext \
14341 conftest$ac_exeext
14342 if test "${ac_cv_search_op_open_agent+set}" = set; then
14343 break
14345 done
14346 if test "${ac_cv_search_op_open_agent+set}" = set; then
14348 else
14349 ac_cv_search_op_open_agent=no
14351 rm conftest.$ac_ext
14352 LIBS=$ac_func_search_save_LIBS
14354 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14355 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14356 ac_res=$ac_cv_search_op_open_agent
14357 if test "$ac_res" != no; then
14358 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14360 else
14362 echo "Error! You need to have libopagent around."
14363 exit -1
14367 if test "${ac_cv_header_opagent_h+set}" = set; then
14368 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14369 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14370 if test "${ac_cv_header_opagent_h+set}" = set; then
14371 echo $ECHO_N "(cached) $ECHO_C" >&6
14373 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14374 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14375 else
14376 # Is the header compilable?
14377 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14378 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14379 cat >conftest.$ac_ext <<_ACEOF
14380 /* confdefs.h. */
14381 _ACEOF
14382 cat confdefs.h >>conftest.$ac_ext
14383 cat >>conftest.$ac_ext <<_ACEOF
14384 /* end confdefs.h. */
14385 $ac_includes_default
14386 #include <opagent.h>
14387 _ACEOF
14388 rm -f conftest.$ac_objext
14389 if { (ac_try="$ac_compile"
14390 case "(($ac_try" in
14391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392 *) ac_try_echo=$ac_try;;
14393 esac
14394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14395 (eval "$ac_compile") 2>conftest.er1
14396 ac_status=$?
14397 grep -v '^ *+' conftest.er1 >conftest.err
14398 rm -f conftest.er1
14399 cat conftest.err >&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); } &&
14402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14403 { (case "(($ac_try" in
14404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14405 *) ac_try_echo=$ac_try;;
14406 esac
14407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14408 (eval "$ac_try") 2>&5
14409 ac_status=$?
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; } &&
14412 { ac_try='test -s conftest.$ac_objext'
14413 { (case "(($ac_try" in
14414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14415 *) ac_try_echo=$ac_try;;
14416 esac
14417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14418 (eval "$ac_try") 2>&5
14419 ac_status=$?
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; }; then
14422 ac_header_compiler=yes
14423 else
14424 echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14427 ac_header_compiler=no
14430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14432 echo "${ECHO_T}$ac_header_compiler" >&6; }
14434 # Is the header present?
14435 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14436 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14437 cat >conftest.$ac_ext <<_ACEOF
14438 /* confdefs.h. */
14439 _ACEOF
14440 cat confdefs.h >>conftest.$ac_ext
14441 cat >>conftest.$ac_ext <<_ACEOF
14442 /* end confdefs.h. */
14443 #include <opagent.h>
14444 _ACEOF
14445 if { (ac_try="$ac_cpp conftest.$ac_ext"
14446 case "(($ac_try" in
14447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448 *) ac_try_echo=$ac_try;;
14449 esac
14450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14452 ac_status=$?
14453 grep -v '^ *+' conftest.er1 >conftest.err
14454 rm -f conftest.er1
14455 cat conftest.err >&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } >/dev/null; then
14458 if test -s conftest.err; then
14459 ac_cpp_err=$ac_c_preproc_warn_flag
14460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14461 else
14462 ac_cpp_err=
14464 else
14465 ac_cpp_err=yes
14467 if test -z "$ac_cpp_err"; then
14468 ac_header_preproc=yes
14469 else
14470 echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14473 ac_header_preproc=no
14476 rm -f conftest.err conftest.$ac_ext
14477 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14478 echo "${ECHO_T}$ac_header_preproc" >&6; }
14480 # So? What about this header?
14481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14482 yes:no: )
14483 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14484 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14485 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14486 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14487 ac_header_preproc=yes
14489 no:yes:* )
14490 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14491 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14492 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14493 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14494 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14495 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14496 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14497 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14498 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14499 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14500 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14501 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14502 ( cat <<\_ASBOX
14503 ## ----------------------------------- ##
14504 ## Report this to llvmbugs@cs.uiuc.edu ##
14505 ## ----------------------------------- ##
14506 _ASBOX
14507 ) | sed "s/^/$as_me: WARNING: /" >&2
14509 esac
14510 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14511 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14512 if test "${ac_cv_header_opagent_h+set}" = set; then
14513 echo $ECHO_N "(cached) $ECHO_C" >&6
14514 else
14515 ac_cv_header_opagent_h=$ac_header_preproc
14517 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14518 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14521 if test $ac_cv_header_opagent_h = yes; then
14523 else
14525 echo "Error! You need to have opagent.h around."
14526 exit -1
14533 else
14535 USE_OPROFILE=0
14541 cat >>confdefs.h <<_ACEOF
14542 #define USE_OPROFILE $USE_OPROFILE
14543 _ACEOF
14552 ac_header_dirent=no
14553 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14554 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14555 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14556 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14558 echo $ECHO_N "(cached) $ECHO_C" >&6
14559 else
14560 cat >conftest.$ac_ext <<_ACEOF
14561 /* confdefs.h. */
14562 _ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h. */
14566 #include <sys/types.h>
14567 #include <$ac_hdr>
14570 main ()
14572 if ((DIR *) 0)
14573 return 0;
14575 return 0;
14577 _ACEOF
14578 rm -f conftest.$ac_objext
14579 if { (ac_try="$ac_compile"
14580 case "(($ac_try" in
14581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582 *) ac_try_echo=$ac_try;;
14583 esac
14584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585 (eval "$ac_compile") 2>conftest.er1
14586 ac_status=$?
14587 grep -v '^ *+' conftest.er1 >conftest.err
14588 rm -f conftest.er1
14589 cat conftest.err >&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); } &&
14592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14593 { (case "(($ac_try" in
14594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14595 *) ac_try_echo=$ac_try;;
14596 esac
14597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14598 (eval "$ac_try") 2>&5
14599 ac_status=$?
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); }; } &&
14602 { ac_try='test -s conftest.$ac_objext'
14603 { (case "(($ac_try" in
14604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14605 *) ac_try_echo=$ac_try;;
14606 esac
14607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14608 (eval "$ac_try") 2>&5
14609 ac_status=$?
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; }; then
14612 eval "$as_ac_Header=yes"
14613 else
14614 echo "$as_me: failed program was:" >&5
14615 sed 's/^/| /' conftest.$ac_ext >&5
14617 eval "$as_ac_Header=no"
14620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14622 ac_res=`eval echo '${'$as_ac_Header'}'`
14623 { echo "$as_me:$LINENO: result: $ac_res" >&5
14624 echo "${ECHO_T}$ac_res" >&6; }
14625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14626 cat >>confdefs.h <<_ACEOF
14627 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14628 _ACEOF
14630 ac_header_dirent=$ac_hdr; break
14633 done
14634 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14635 if test $ac_header_dirent = dirent.h; then
14636 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14637 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14638 if test "${ac_cv_search_opendir+set}" = set; then
14639 echo $ECHO_N "(cached) $ECHO_C" >&6
14640 else
14641 ac_func_search_save_LIBS=$LIBS
14642 cat >conftest.$ac_ext <<_ACEOF
14643 /* confdefs.h. */
14644 _ACEOF
14645 cat confdefs.h >>conftest.$ac_ext
14646 cat >>conftest.$ac_ext <<_ACEOF
14647 /* end confdefs.h. */
14649 /* Override any GCC internal prototype to avoid an error.
14650 Use char because int might match the return type of a GCC
14651 builtin and then its argument prototype would still apply. */
14652 #ifdef __cplusplus
14653 extern "C"
14654 #endif
14655 char opendir ();
14657 main ()
14659 return opendir ();
14661 return 0;
14663 _ACEOF
14664 for ac_lib in '' dir; do
14665 if test -z "$ac_lib"; then
14666 ac_res="none required"
14667 else
14668 ac_res=-l$ac_lib
14669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14671 rm -f conftest.$ac_objext conftest$ac_exeext
14672 if { (ac_try="$ac_link"
14673 case "(($ac_try" in
14674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14675 *) ac_try_echo=$ac_try;;
14676 esac
14677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14678 (eval "$ac_link") 2>conftest.er1
14679 ac_status=$?
14680 grep -v '^ *+' conftest.er1 >conftest.err
14681 rm -f conftest.er1
14682 cat conftest.err >&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); } &&
14685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14686 { (case "(($ac_try" in
14687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14688 *) ac_try_echo=$ac_try;;
14689 esac
14690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14691 (eval "$ac_try") 2>&5
14692 ac_status=$?
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); }; } &&
14695 { ac_try='test -s conftest$ac_exeext'
14696 { (case "(($ac_try" in
14697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698 *) ac_try_echo=$ac_try;;
14699 esac
14700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14701 (eval "$ac_try") 2>&5
14702 ac_status=$?
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; }; then
14705 ac_cv_search_opendir=$ac_res
14706 else
14707 echo "$as_me: failed program was:" >&5
14708 sed 's/^/| /' conftest.$ac_ext >&5
14713 rm -f core conftest.err conftest.$ac_objext \
14714 conftest$ac_exeext
14715 if test "${ac_cv_search_opendir+set}" = set; then
14716 break
14718 done
14719 if test "${ac_cv_search_opendir+set}" = set; then
14721 else
14722 ac_cv_search_opendir=no
14724 rm conftest.$ac_ext
14725 LIBS=$ac_func_search_save_LIBS
14727 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14728 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14729 ac_res=$ac_cv_search_opendir
14730 if test "$ac_res" != no; then
14731 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14735 else
14736 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14737 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14738 if test "${ac_cv_search_opendir+set}" = set; then
14739 echo $ECHO_N "(cached) $ECHO_C" >&6
14740 else
14741 ac_func_search_save_LIBS=$LIBS
14742 cat >conftest.$ac_ext <<_ACEOF
14743 /* confdefs.h. */
14744 _ACEOF
14745 cat confdefs.h >>conftest.$ac_ext
14746 cat >>conftest.$ac_ext <<_ACEOF
14747 /* end confdefs.h. */
14749 /* Override any GCC internal prototype to avoid an error.
14750 Use char because int might match the return type of a GCC
14751 builtin and then its argument prototype would still apply. */
14752 #ifdef __cplusplus
14753 extern "C"
14754 #endif
14755 char opendir ();
14757 main ()
14759 return opendir ();
14761 return 0;
14763 _ACEOF
14764 for ac_lib in '' x; do
14765 if test -z "$ac_lib"; then
14766 ac_res="none required"
14767 else
14768 ac_res=-l$ac_lib
14769 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14771 rm -f conftest.$ac_objext conftest$ac_exeext
14772 if { (ac_try="$ac_link"
14773 case "(($ac_try" in
14774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14775 *) ac_try_echo=$ac_try;;
14776 esac
14777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14778 (eval "$ac_link") 2>conftest.er1
14779 ac_status=$?
14780 grep -v '^ *+' conftest.er1 >conftest.err
14781 rm -f conftest.er1
14782 cat conftest.err >&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } &&
14785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14786 { (case "(($ac_try" in
14787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14788 *) ac_try_echo=$ac_try;;
14789 esac
14790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14791 (eval "$ac_try") 2>&5
14792 ac_status=$?
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; } &&
14795 { ac_try='test -s conftest$ac_exeext'
14796 { (case "(($ac_try" in
14797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798 *) ac_try_echo=$ac_try;;
14799 esac
14800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801 (eval "$ac_try") 2>&5
14802 ac_status=$?
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); }; }; then
14805 ac_cv_search_opendir=$ac_res
14806 else
14807 echo "$as_me: failed program was:" >&5
14808 sed 's/^/| /' conftest.$ac_ext >&5
14813 rm -f core conftest.err conftest.$ac_objext \
14814 conftest$ac_exeext
14815 if test "${ac_cv_search_opendir+set}" = set; then
14816 break
14818 done
14819 if test "${ac_cv_search_opendir+set}" = set; then
14821 else
14822 ac_cv_search_opendir=no
14824 rm conftest.$ac_ext
14825 LIBS=$ac_func_search_save_LIBS
14827 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14828 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14829 ac_res=$ac_cv_search_opendir
14830 if test "$ac_res" != no; then
14831 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14837 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14838 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14839 if test "${ac_cv_header_mmap_anon+set}" = set; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14841 else
14842 ac_ext=c
14843 ac_cpp='$CPP $CPPFLAGS'
14844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14848 cat >conftest.$ac_ext <<_ACEOF
14849 /* confdefs.h. */
14850 _ACEOF
14851 cat confdefs.h >>conftest.$ac_ext
14852 cat >>conftest.$ac_ext <<_ACEOF
14853 /* end confdefs.h. */
14854 #include <sys/mman.h>
14855 #include <unistd.h>
14856 #include <fcntl.h>
14858 main ()
14860 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14862 return 0;
14864 _ACEOF
14865 rm -f conftest.$ac_objext
14866 if { (ac_try="$ac_compile"
14867 case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14870 esac
14871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872 (eval "$ac_compile") 2>conftest.er1
14873 ac_status=$?
14874 grep -v '^ *+' conftest.er1 >conftest.err
14875 rm -f conftest.er1
14876 cat conftest.err >&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } &&
14879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14880 { (case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14883 esac
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_try") 2>&5
14886 ac_status=$?
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); }; } &&
14889 { ac_try='test -s conftest.$ac_objext'
14890 { (case "(($ac_try" in
14891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14892 *) ac_try_echo=$ac_try;;
14893 esac
14894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14895 (eval "$ac_try") 2>&5
14896 ac_status=$?
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); }; }; then
14899 ac_cv_header_mmap_anon=yes
14900 else
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14904 ac_cv_header_mmap_anon=no
14907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14908 ac_ext=c
14909 ac_cpp='$CPP $CPPFLAGS'
14910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14916 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14917 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14918 if test "$ac_cv_header_mmap_anon" = yes; then
14920 cat >>confdefs.h <<\_ACEOF
14921 #define HAVE_MMAP_ANONYMOUS 1
14922 _ACEOF
14926 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14927 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14928 if test "${ac_cv_header_stat_broken+set}" = set; then
14929 echo $ECHO_N "(cached) $ECHO_C" >&6
14930 else
14931 cat >conftest.$ac_ext <<_ACEOF
14932 /* confdefs.h. */
14933 _ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h. */
14937 #include <sys/types.h>
14938 #include <sys/stat.h>
14940 #if defined S_ISBLK && defined S_IFDIR
14941 # if S_ISBLK (S_IFDIR)
14942 You lose.
14943 # endif
14944 #endif
14946 #if defined S_ISBLK && defined S_IFCHR
14947 # if S_ISBLK (S_IFCHR)
14948 You lose.
14949 # endif
14950 #endif
14952 #if defined S_ISLNK && defined S_IFREG
14953 # if S_ISLNK (S_IFREG)
14954 You lose.
14955 # endif
14956 #endif
14958 #if defined S_ISSOCK && defined S_IFREG
14959 # if S_ISSOCK (S_IFREG)
14960 You lose.
14961 # endif
14962 #endif
14964 _ACEOF
14965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14966 $EGREP "You lose" >/dev/null 2>&1; then
14967 ac_cv_header_stat_broken=yes
14968 else
14969 ac_cv_header_stat_broken=no
14971 rm -f conftest*
14974 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14975 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14976 if test $ac_cv_header_stat_broken = yes; then
14978 cat >>confdefs.h <<\_ACEOF
14979 #define STAT_MACROS_BROKEN 1
14980 _ACEOF
14984 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14985 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14986 if test "${ac_cv_header_stdc+set}" = set; then
14987 echo $ECHO_N "(cached) $ECHO_C" >&6
14988 else
14989 cat >conftest.$ac_ext <<_ACEOF
14990 /* confdefs.h. */
14991 _ACEOF
14992 cat confdefs.h >>conftest.$ac_ext
14993 cat >>conftest.$ac_ext <<_ACEOF
14994 /* end confdefs.h. */
14995 #include <stdlib.h>
14996 #include <stdarg.h>
14997 #include <string.h>
14998 #include <float.h>
15001 main ()
15005 return 0;
15007 _ACEOF
15008 rm -f conftest.$ac_objext
15009 if { (ac_try="$ac_compile"
15010 case "(($ac_try" in
15011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012 *) ac_try_echo=$ac_try;;
15013 esac
15014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015 (eval "$ac_compile") 2>conftest.er1
15016 ac_status=$?
15017 grep -v '^ *+' conftest.er1 >conftest.err
15018 rm -f conftest.er1
15019 cat conftest.err >&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); } &&
15022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15023 { (case "(($ac_try" in
15024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15025 *) ac_try_echo=$ac_try;;
15026 esac
15027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15028 (eval "$ac_try") 2>&5
15029 ac_status=$?
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; } &&
15032 { ac_try='test -s conftest.$ac_objext'
15033 { (case "(($ac_try" in
15034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15035 *) ac_try_echo=$ac_try;;
15036 esac
15037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15038 (eval "$ac_try") 2>&5
15039 ac_status=$?
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; }; then
15042 ac_cv_header_stdc=yes
15043 else
15044 echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.$ac_ext >&5
15047 ac_cv_header_stdc=no
15050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15052 if test $ac_cv_header_stdc = yes; then
15053 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15054 cat >conftest.$ac_ext <<_ACEOF
15055 /* confdefs.h. */
15056 _ACEOF
15057 cat confdefs.h >>conftest.$ac_ext
15058 cat >>conftest.$ac_ext <<_ACEOF
15059 /* end confdefs.h. */
15060 #include <string.h>
15062 _ACEOF
15063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15064 $EGREP "memchr" >/dev/null 2>&1; then
15066 else
15067 ac_cv_header_stdc=no
15069 rm -f conftest*
15073 if test $ac_cv_header_stdc = yes; then
15074 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15075 cat >conftest.$ac_ext <<_ACEOF
15076 /* confdefs.h. */
15077 _ACEOF
15078 cat confdefs.h >>conftest.$ac_ext
15079 cat >>conftest.$ac_ext <<_ACEOF
15080 /* end confdefs.h. */
15081 #include <stdlib.h>
15083 _ACEOF
15084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15085 $EGREP "free" >/dev/null 2>&1; then
15087 else
15088 ac_cv_header_stdc=no
15090 rm -f conftest*
15094 if test $ac_cv_header_stdc = yes; then
15095 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15096 if test "$cross_compiling" = yes; then
15098 else
15099 cat >conftest.$ac_ext <<_ACEOF
15100 /* confdefs.h. */
15101 _ACEOF
15102 cat confdefs.h >>conftest.$ac_ext
15103 cat >>conftest.$ac_ext <<_ACEOF
15104 /* end confdefs.h. */
15105 #include <ctype.h>
15106 #include <stdlib.h>
15107 #if ((' ' & 0x0FF) == 0x020)
15108 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15109 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15110 #else
15111 # define ISLOWER(c) \
15112 (('a' <= (c) && (c) <= 'i') \
15113 || ('j' <= (c) && (c) <= 'r') \
15114 || ('s' <= (c) && (c) <= 'z'))
15115 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15116 #endif
15118 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15120 main ()
15122 int i;
15123 for (i = 0; i < 256; i++)
15124 if (XOR (islower (i), ISLOWER (i))
15125 || toupper (i) != TOUPPER (i))
15126 return 2;
15127 return 0;
15129 _ACEOF
15130 rm -f conftest$ac_exeext
15131 if { (ac_try="$ac_link"
15132 case "(($ac_try" in
15133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134 *) ac_try_echo=$ac_try;;
15135 esac
15136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15137 (eval "$ac_link") 2>&5
15138 ac_status=$?
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15141 { (case "(($ac_try" in
15142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15143 *) ac_try_echo=$ac_try;;
15144 esac
15145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15146 (eval "$ac_try") 2>&5
15147 ac_status=$?
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; }; then
15151 else
15152 echo "$as_me: program exited with status $ac_status" >&5
15153 echo "$as_me: failed program was:" >&5
15154 sed 's/^/| /' conftest.$ac_ext >&5
15156 ( exit $ac_status )
15157 ac_cv_header_stdc=no
15159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15165 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15166 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15167 if test $ac_cv_header_stdc = yes; then
15169 cat >>confdefs.h <<\_ACEOF
15170 #define STDC_HEADERS 1
15171 _ACEOF
15175 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15176 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15177 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15178 echo $ECHO_N "(cached) $ECHO_C" >&6
15179 else
15180 cat >conftest.$ac_ext <<_ACEOF
15181 /* confdefs.h. */
15182 _ACEOF
15183 cat confdefs.h >>conftest.$ac_ext
15184 cat >>conftest.$ac_ext <<_ACEOF
15185 /* end confdefs.h. */
15186 #include <sys/types.h>
15187 #include <sys/wait.h>
15188 #ifndef WEXITSTATUS
15189 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15190 #endif
15191 #ifndef WIFEXITED
15192 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15193 #endif
15196 main ()
15198 int s;
15199 wait (&s);
15200 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15202 return 0;
15204 _ACEOF
15205 rm -f conftest.$ac_objext
15206 if { (ac_try="$ac_compile"
15207 case "(($ac_try" in
15208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209 *) ac_try_echo=$ac_try;;
15210 esac
15211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212 (eval "$ac_compile") 2>conftest.er1
15213 ac_status=$?
15214 grep -v '^ *+' conftest.er1 >conftest.err
15215 rm -f conftest.er1
15216 cat conftest.err >&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } &&
15219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15220 { (case "(($ac_try" in
15221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15222 *) ac_try_echo=$ac_try;;
15223 esac
15224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15225 (eval "$ac_try") 2>&5
15226 ac_status=$?
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); }; } &&
15229 { ac_try='test -s conftest.$ac_objext'
15230 { (case "(($ac_try" in
15231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232 *) ac_try_echo=$ac_try;;
15233 esac
15234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235 (eval "$ac_try") 2>&5
15236 ac_status=$?
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); }; }; then
15239 ac_cv_header_sys_wait_h=yes
15240 else
15241 echo "$as_me: failed program was:" >&5
15242 sed 's/^/| /' conftest.$ac_ext >&5
15244 ac_cv_header_sys_wait_h=no
15247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15249 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15250 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15251 if test $ac_cv_header_sys_wait_h = yes; then
15253 cat >>confdefs.h <<\_ACEOF
15254 #define HAVE_SYS_WAIT_H 1
15255 _ACEOF
15259 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15260 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15261 if test "${ac_cv_header_time+set}" = set; then
15262 echo $ECHO_N "(cached) $ECHO_C" >&6
15263 else
15264 cat >conftest.$ac_ext <<_ACEOF
15265 /* confdefs.h. */
15266 _ACEOF
15267 cat confdefs.h >>conftest.$ac_ext
15268 cat >>conftest.$ac_ext <<_ACEOF
15269 /* end confdefs.h. */
15270 #include <sys/types.h>
15271 #include <sys/time.h>
15272 #include <time.h>
15275 main ()
15277 if ((struct tm *) 0)
15278 return 0;
15280 return 0;
15282 _ACEOF
15283 rm -f conftest.$ac_objext
15284 if { (ac_try="$ac_compile"
15285 case "(($ac_try" in
15286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15287 *) ac_try_echo=$ac_try;;
15288 esac
15289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15290 (eval "$ac_compile") 2>conftest.er1
15291 ac_status=$?
15292 grep -v '^ *+' conftest.er1 >conftest.err
15293 rm -f conftest.er1
15294 cat conftest.err >&5
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); } &&
15297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15298 { (case "(($ac_try" in
15299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300 *) ac_try_echo=$ac_try;;
15301 esac
15302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15303 (eval "$ac_try") 2>&5
15304 ac_status=$?
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); }; } &&
15307 { ac_try='test -s conftest.$ac_objext'
15308 { (case "(($ac_try" in
15309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15310 *) ac_try_echo=$ac_try;;
15311 esac
15312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15313 (eval "$ac_try") 2>&5
15314 ac_status=$?
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); }; }; then
15317 ac_cv_header_time=yes
15318 else
15319 echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15322 ac_cv_header_time=no
15325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15327 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15328 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15329 if test $ac_cv_header_time = yes; then
15331 cat >>confdefs.h <<\_ACEOF
15332 #define TIME_WITH_SYS_TIME 1
15333 _ACEOF
15344 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15348 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15351 echo $ECHO_N "(cached) $ECHO_C" >&6
15353 ac_res=`eval echo '${'$as_ac_Header'}'`
15354 { echo "$as_me:$LINENO: result: $ac_res" >&5
15355 echo "${ECHO_T}$ac_res" >&6; }
15356 else
15357 # Is the header compilable?
15358 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15360 cat >conftest.$ac_ext <<_ACEOF
15361 /* confdefs.h. */
15362 _ACEOF
15363 cat confdefs.h >>conftest.$ac_ext
15364 cat >>conftest.$ac_ext <<_ACEOF
15365 /* end confdefs.h. */
15366 $ac_includes_default
15367 #include <$ac_header>
15368 _ACEOF
15369 rm -f conftest.$ac_objext
15370 if { (ac_try="$ac_compile"
15371 case "(($ac_try" in
15372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373 *) ac_try_echo=$ac_try;;
15374 esac
15375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15376 (eval "$ac_compile") 2>conftest.er1
15377 ac_status=$?
15378 grep -v '^ *+' conftest.er1 >conftest.err
15379 rm -f conftest.er1
15380 cat conftest.err >&5
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); } &&
15383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15384 { (case "(($ac_try" in
15385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15386 *) ac_try_echo=$ac_try;;
15387 esac
15388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15389 (eval "$ac_try") 2>&5
15390 ac_status=$?
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); }; } &&
15393 { ac_try='test -s conftest.$ac_objext'
15394 { (case "(($ac_try" in
15395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15396 *) ac_try_echo=$ac_try;;
15397 esac
15398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15399 (eval "$ac_try") 2>&5
15400 ac_status=$?
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); }; }; then
15403 ac_header_compiler=yes
15404 else
15405 echo "$as_me: failed program was:" >&5
15406 sed 's/^/| /' conftest.$ac_ext >&5
15408 ac_header_compiler=no
15411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15412 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15413 echo "${ECHO_T}$ac_header_compiler" >&6; }
15415 # Is the header present?
15416 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15418 cat >conftest.$ac_ext <<_ACEOF
15419 /* confdefs.h. */
15420 _ACEOF
15421 cat confdefs.h >>conftest.$ac_ext
15422 cat >>conftest.$ac_ext <<_ACEOF
15423 /* end confdefs.h. */
15424 #include <$ac_header>
15425 _ACEOF
15426 if { (ac_try="$ac_cpp conftest.$ac_ext"
15427 case "(($ac_try" in
15428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429 *) ac_try_echo=$ac_try;;
15430 esac
15431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15433 ac_status=$?
15434 grep -v '^ *+' conftest.er1 >conftest.err
15435 rm -f conftest.er1
15436 cat conftest.err >&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); } >/dev/null; then
15439 if test -s conftest.err; then
15440 ac_cpp_err=$ac_c_preproc_warn_flag
15441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15442 else
15443 ac_cpp_err=
15445 else
15446 ac_cpp_err=yes
15448 if test -z "$ac_cpp_err"; then
15449 ac_header_preproc=yes
15450 else
15451 echo "$as_me: failed program was:" >&5
15452 sed 's/^/| /' conftest.$ac_ext >&5
15454 ac_header_preproc=no
15457 rm -f conftest.err conftest.$ac_ext
15458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15459 echo "${ECHO_T}$ac_header_preproc" >&6; }
15461 # So? What about this header?
15462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15463 yes:no: )
15464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15468 ac_header_preproc=yes
15470 no:yes:* )
15471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15478 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15483 ( cat <<\_ASBOX
15484 ## ----------------------------------- ##
15485 ## Report this to llvmbugs@cs.uiuc.edu ##
15486 ## ----------------------------------- ##
15487 _ASBOX
15488 ) | sed "s/^/$as_me: WARNING: /" >&2
15490 esac
15491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15494 echo $ECHO_N "(cached) $ECHO_C" >&6
15495 else
15496 eval "$as_ac_Header=\$ac_header_preproc"
15498 ac_res=`eval echo '${'$as_ac_Header'}'`
15499 { echo "$as_me:$LINENO: result: $ac_res" >&5
15500 echo "${ECHO_T}$ac_res" >&6; }
15503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15504 cat >>confdefs.h <<_ACEOF
15505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15506 _ACEOF
15510 done
15518 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15525 echo $ECHO_N "(cached) $ECHO_C" >&6
15527 ac_res=`eval echo '${'$as_ac_Header'}'`
15528 { echo "$as_me:$LINENO: result: $ac_res" >&5
15529 echo "${ECHO_T}$ac_res" >&6; }
15530 else
15531 # Is the header compilable?
15532 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15534 cat >conftest.$ac_ext <<_ACEOF
15535 /* confdefs.h. */
15536 _ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h. */
15540 $ac_includes_default
15541 #include <$ac_header>
15542 _ACEOF
15543 rm -f conftest.$ac_objext
15544 if { (ac_try="$ac_compile"
15545 case "(($ac_try" in
15546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547 *) ac_try_echo=$ac_try;;
15548 esac
15549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15550 (eval "$ac_compile") 2>conftest.er1
15551 ac_status=$?
15552 grep -v '^ *+' conftest.er1 >conftest.err
15553 rm -f conftest.er1
15554 cat conftest.err >&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } &&
15557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15558 { (case "(($ac_try" in
15559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15560 *) ac_try_echo=$ac_try;;
15561 esac
15562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15563 (eval "$ac_try") 2>&5
15564 ac_status=$?
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); }; } &&
15567 { ac_try='test -s conftest.$ac_objext'
15568 { (case "(($ac_try" in
15569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15570 *) ac_try_echo=$ac_try;;
15571 esac
15572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15573 (eval "$ac_try") 2>&5
15574 ac_status=$?
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); }; }; then
15577 ac_header_compiler=yes
15578 else
15579 echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15582 ac_header_compiler=no
15585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15587 echo "${ECHO_T}$ac_header_compiler" >&6; }
15589 # Is the header present?
15590 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15592 cat >conftest.$ac_ext <<_ACEOF
15593 /* confdefs.h. */
15594 _ACEOF
15595 cat confdefs.h >>conftest.$ac_ext
15596 cat >>conftest.$ac_ext <<_ACEOF
15597 /* end confdefs.h. */
15598 #include <$ac_header>
15599 _ACEOF
15600 if { (ac_try="$ac_cpp conftest.$ac_ext"
15601 case "(($ac_try" in
15602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603 *) ac_try_echo=$ac_try;;
15604 esac
15605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15607 ac_status=$?
15608 grep -v '^ *+' conftest.er1 >conftest.err
15609 rm -f conftest.er1
15610 cat conftest.err >&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); } >/dev/null; then
15613 if test -s conftest.err; then
15614 ac_cpp_err=$ac_c_preproc_warn_flag
15615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15616 else
15617 ac_cpp_err=
15619 else
15620 ac_cpp_err=yes
15622 if test -z "$ac_cpp_err"; then
15623 ac_header_preproc=yes
15624 else
15625 echo "$as_me: failed program was:" >&5
15626 sed 's/^/| /' conftest.$ac_ext >&5
15628 ac_header_preproc=no
15631 rm -f conftest.err conftest.$ac_ext
15632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15633 echo "${ECHO_T}$ac_header_preproc" >&6; }
15635 # So? What about this header?
15636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15637 yes:no: )
15638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15642 ac_header_preproc=yes
15644 no:yes:* )
15645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15648 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15649 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15651 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15652 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15655 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15657 ( cat <<\_ASBOX
15658 ## ----------------------------------- ##
15659 ## Report this to llvmbugs@cs.uiuc.edu ##
15660 ## ----------------------------------- ##
15661 _ASBOX
15662 ) | sed "s/^/$as_me: WARNING: /" >&2
15664 esac
15665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15668 echo $ECHO_N "(cached) $ECHO_C" >&6
15669 else
15670 eval "$as_ac_Header=\$ac_header_preproc"
15672 ac_res=`eval echo '${'$as_ac_Header'}'`
15673 { echo "$as_me:$LINENO: result: $ac_res" >&5
15674 echo "${ECHO_T}$ac_res" >&6; }
15677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15678 cat >>confdefs.h <<_ACEOF
15679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15680 _ACEOF
15684 done
15688 for ac_header in utime.h windows.h
15690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15695 echo $ECHO_N "(cached) $ECHO_C" >&6
15697 ac_res=`eval echo '${'$as_ac_Header'}'`
15698 { echo "$as_me:$LINENO: result: $ac_res" >&5
15699 echo "${ECHO_T}$ac_res" >&6; }
15700 else
15701 # Is the header compilable?
15702 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15704 cat >conftest.$ac_ext <<_ACEOF
15705 /* confdefs.h. */
15706 _ACEOF
15707 cat confdefs.h >>conftest.$ac_ext
15708 cat >>conftest.$ac_ext <<_ACEOF
15709 /* end confdefs.h. */
15710 $ac_includes_default
15711 #include <$ac_header>
15712 _ACEOF
15713 rm -f conftest.$ac_objext
15714 if { (ac_try="$ac_compile"
15715 case "(($ac_try" in
15716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15717 *) ac_try_echo=$ac_try;;
15718 esac
15719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15720 (eval "$ac_compile") 2>conftest.er1
15721 ac_status=$?
15722 grep -v '^ *+' conftest.er1 >conftest.err
15723 rm -f conftest.er1
15724 cat conftest.err >&5
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); } &&
15727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15728 { (case "(($ac_try" in
15729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15730 *) ac_try_echo=$ac_try;;
15731 esac
15732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15733 (eval "$ac_try") 2>&5
15734 ac_status=$?
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); }; } &&
15737 { ac_try='test -s conftest.$ac_objext'
15738 { (case "(($ac_try" in
15739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15740 *) ac_try_echo=$ac_try;;
15741 esac
15742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15743 (eval "$ac_try") 2>&5
15744 ac_status=$?
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); }; }; then
15747 ac_header_compiler=yes
15748 else
15749 echo "$as_me: failed program was:" >&5
15750 sed 's/^/| /' conftest.$ac_ext >&5
15752 ac_header_compiler=no
15755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15756 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15757 echo "${ECHO_T}$ac_header_compiler" >&6; }
15759 # Is the header present?
15760 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15762 cat >conftest.$ac_ext <<_ACEOF
15763 /* confdefs.h. */
15764 _ACEOF
15765 cat confdefs.h >>conftest.$ac_ext
15766 cat >>conftest.$ac_ext <<_ACEOF
15767 /* end confdefs.h. */
15768 #include <$ac_header>
15769 _ACEOF
15770 if { (ac_try="$ac_cpp conftest.$ac_ext"
15771 case "(($ac_try" in
15772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15773 *) ac_try_echo=$ac_try;;
15774 esac
15775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15777 ac_status=$?
15778 grep -v '^ *+' conftest.er1 >conftest.err
15779 rm -f conftest.er1
15780 cat conftest.err >&5
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); } >/dev/null; then
15783 if test -s conftest.err; then
15784 ac_cpp_err=$ac_c_preproc_warn_flag
15785 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15786 else
15787 ac_cpp_err=
15789 else
15790 ac_cpp_err=yes
15792 if test -z "$ac_cpp_err"; then
15793 ac_header_preproc=yes
15794 else
15795 echo "$as_me: failed program was:" >&5
15796 sed 's/^/| /' conftest.$ac_ext >&5
15798 ac_header_preproc=no
15801 rm -f conftest.err conftest.$ac_ext
15802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15803 echo "${ECHO_T}$ac_header_preproc" >&6; }
15805 # So? What about this header?
15806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15807 yes:no: )
15808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15812 ac_header_preproc=yes
15814 no:yes:* )
15815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15818 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15822 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15827 ( cat <<\_ASBOX
15828 ## ----------------------------------- ##
15829 ## Report this to llvmbugs@cs.uiuc.edu ##
15830 ## ----------------------------------- ##
15831 _ASBOX
15832 ) | sed "s/^/$as_me: WARNING: /" >&2
15834 esac
15835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15838 echo $ECHO_N "(cached) $ECHO_C" >&6
15839 else
15840 eval "$as_ac_Header=\$ac_header_preproc"
15842 ac_res=`eval echo '${'$as_ac_Header'}'`
15843 { echo "$as_me:$LINENO: result: $ac_res" >&5
15844 echo "${ECHO_T}$ac_res" >&6; }
15847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15848 cat >>confdefs.h <<_ACEOF
15849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15850 _ACEOF
15854 done
15860 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15864 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15867 echo $ECHO_N "(cached) $ECHO_C" >&6
15869 ac_res=`eval echo '${'$as_ac_Header'}'`
15870 { echo "$as_me:$LINENO: result: $ac_res" >&5
15871 echo "${ECHO_T}$ac_res" >&6; }
15872 else
15873 # Is the header compilable?
15874 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15876 cat >conftest.$ac_ext <<_ACEOF
15877 /* confdefs.h. */
15878 _ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h. */
15882 $ac_includes_default
15883 #include <$ac_header>
15884 _ACEOF
15885 rm -f conftest.$ac_objext
15886 if { (ac_try="$ac_compile"
15887 case "(($ac_try" in
15888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15889 *) ac_try_echo=$ac_try;;
15890 esac
15891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15892 (eval "$ac_compile") 2>conftest.er1
15893 ac_status=$?
15894 grep -v '^ *+' conftest.er1 >conftest.err
15895 rm -f conftest.er1
15896 cat conftest.err >&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } &&
15899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15900 { (case "(($ac_try" in
15901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902 *) ac_try_echo=$ac_try;;
15903 esac
15904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15905 (eval "$ac_try") 2>&5
15906 ac_status=$?
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); }; } &&
15909 { ac_try='test -s conftest.$ac_objext'
15910 { (case "(($ac_try" in
15911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15912 *) ac_try_echo=$ac_try;;
15913 esac
15914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15915 (eval "$ac_try") 2>&5
15916 ac_status=$?
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; }; then
15919 ac_header_compiler=yes
15920 else
15921 echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15924 ac_header_compiler=no
15927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15928 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15929 echo "${ECHO_T}$ac_header_compiler" >&6; }
15931 # Is the header present?
15932 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15933 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15934 cat >conftest.$ac_ext <<_ACEOF
15935 /* confdefs.h. */
15936 _ACEOF
15937 cat confdefs.h >>conftest.$ac_ext
15938 cat >>conftest.$ac_ext <<_ACEOF
15939 /* end confdefs.h. */
15940 #include <$ac_header>
15941 _ACEOF
15942 if { (ac_try="$ac_cpp conftest.$ac_ext"
15943 case "(($ac_try" in
15944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945 *) ac_try_echo=$ac_try;;
15946 esac
15947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15949 ac_status=$?
15950 grep -v '^ *+' conftest.er1 >conftest.err
15951 rm -f conftest.er1
15952 cat conftest.err >&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } >/dev/null; then
15955 if test -s conftest.err; then
15956 ac_cpp_err=$ac_c_preproc_warn_flag
15957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15958 else
15959 ac_cpp_err=
15961 else
15962 ac_cpp_err=yes
15964 if test -z "$ac_cpp_err"; then
15965 ac_header_preproc=yes
15966 else
15967 echo "$as_me: failed program was:" >&5
15968 sed 's/^/| /' conftest.$ac_ext >&5
15970 ac_header_preproc=no
15973 rm -f conftest.err conftest.$ac_ext
15974 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15975 echo "${ECHO_T}$ac_header_preproc" >&6; }
15977 # So? What about this header?
15978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15979 yes:no: )
15980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15984 ac_header_preproc=yes
15986 no:yes:* )
15987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15990 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15992 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15994 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15998 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15999 ( cat <<\_ASBOX
16000 ## ----------------------------------- ##
16001 ## Report this to llvmbugs@cs.uiuc.edu ##
16002 ## ----------------------------------- ##
16003 _ASBOX
16004 ) | sed "s/^/$as_me: WARNING: /" >&2
16006 esac
16007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16010 echo $ECHO_N "(cached) $ECHO_C" >&6
16011 else
16012 eval "$as_ac_Header=\$ac_header_preproc"
16014 ac_res=`eval echo '${'$as_ac_Header'}'`
16015 { echo "$as_me:$LINENO: result: $ac_res" >&5
16016 echo "${ECHO_T}$ac_res" >&6; }
16019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16020 cat >>confdefs.h <<_ACEOF
16021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16022 _ACEOF
16026 done
16032 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16039 echo $ECHO_N "(cached) $ECHO_C" >&6
16041 ac_res=`eval echo '${'$as_ac_Header'}'`
16042 { echo "$as_me:$LINENO: result: $ac_res" >&5
16043 echo "${ECHO_T}$ac_res" >&6; }
16044 else
16045 # Is the header compilable?
16046 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16047 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16048 cat >conftest.$ac_ext <<_ACEOF
16049 /* confdefs.h. */
16050 _ACEOF
16051 cat confdefs.h >>conftest.$ac_ext
16052 cat >>conftest.$ac_ext <<_ACEOF
16053 /* end confdefs.h. */
16054 $ac_includes_default
16055 #include <$ac_header>
16056 _ACEOF
16057 rm -f conftest.$ac_objext
16058 if { (ac_try="$ac_compile"
16059 case "(($ac_try" in
16060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061 *) ac_try_echo=$ac_try;;
16062 esac
16063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064 (eval "$ac_compile") 2>conftest.er1
16065 ac_status=$?
16066 grep -v '^ *+' conftest.er1 >conftest.err
16067 rm -f conftest.er1
16068 cat conftest.err >&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } &&
16071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16072 { (case "(($ac_try" in
16073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16074 *) ac_try_echo=$ac_try;;
16075 esac
16076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16077 (eval "$ac_try") 2>&5
16078 ac_status=$?
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); }; } &&
16081 { ac_try='test -s conftest.$ac_objext'
16082 { (case "(($ac_try" in
16083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16084 *) ac_try_echo=$ac_try;;
16085 esac
16086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16087 (eval "$ac_try") 2>&5
16088 ac_status=$?
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); }; }; then
16091 ac_header_compiler=yes
16092 else
16093 echo "$as_me: failed program was:" >&5
16094 sed 's/^/| /' conftest.$ac_ext >&5
16096 ac_header_compiler=no
16099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16100 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16101 echo "${ECHO_T}$ac_header_compiler" >&6; }
16103 # Is the header present?
16104 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16105 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16106 cat >conftest.$ac_ext <<_ACEOF
16107 /* confdefs.h. */
16108 _ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h. */
16112 #include <$ac_header>
16113 _ACEOF
16114 if { (ac_try="$ac_cpp conftest.$ac_ext"
16115 case "(($ac_try" in
16116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16117 *) ac_try_echo=$ac_try;;
16118 esac
16119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16121 ac_status=$?
16122 grep -v '^ *+' conftest.er1 >conftest.err
16123 rm -f conftest.er1
16124 cat conftest.err >&5
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); } >/dev/null; then
16127 if test -s conftest.err; then
16128 ac_cpp_err=$ac_c_preproc_warn_flag
16129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16130 else
16131 ac_cpp_err=
16133 else
16134 ac_cpp_err=yes
16136 if test -z "$ac_cpp_err"; then
16137 ac_header_preproc=yes
16138 else
16139 echo "$as_me: failed program was:" >&5
16140 sed 's/^/| /' conftest.$ac_ext >&5
16142 ac_header_preproc=no
16145 rm -f conftest.err conftest.$ac_ext
16146 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16147 echo "${ECHO_T}$ac_header_preproc" >&6; }
16149 # So? What about this header?
16150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16151 yes:no: )
16152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16153 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16155 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16156 ac_header_preproc=yes
16158 no:yes:* )
16159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16160 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16162 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16163 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16164 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16165 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16166 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16169 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16170 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16171 ( cat <<\_ASBOX
16172 ## ----------------------------------- ##
16173 ## Report this to llvmbugs@cs.uiuc.edu ##
16174 ## ----------------------------------- ##
16175 _ASBOX
16176 ) | sed "s/^/$as_me: WARNING: /" >&2
16178 esac
16179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16182 echo $ECHO_N "(cached) $ECHO_C" >&6
16183 else
16184 eval "$as_ac_Header=\$ac_header_preproc"
16186 ac_res=`eval echo '${'$as_ac_Header'}'`
16187 { echo "$as_me:$LINENO: result: $ac_res" >&5
16188 echo "${ECHO_T}$ac_res" >&6; }
16191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16192 cat >>confdefs.h <<_ACEOF
16193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16194 _ACEOF
16198 done
16201 for ac_header in valgrind/valgrind.h
16203 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16208 echo $ECHO_N "(cached) $ECHO_C" >&6
16210 ac_res=`eval echo '${'$as_ac_Header'}'`
16211 { echo "$as_me:$LINENO: result: $ac_res" >&5
16212 echo "${ECHO_T}$ac_res" >&6; }
16213 else
16214 # Is the header compilable?
16215 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16216 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16217 cat >conftest.$ac_ext <<_ACEOF
16218 /* confdefs.h. */
16219 _ACEOF
16220 cat confdefs.h >>conftest.$ac_ext
16221 cat >>conftest.$ac_ext <<_ACEOF
16222 /* end confdefs.h. */
16223 $ac_includes_default
16224 #include <$ac_header>
16225 _ACEOF
16226 rm -f conftest.$ac_objext
16227 if { (ac_try="$ac_compile"
16228 case "(($ac_try" in
16229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230 *) ac_try_echo=$ac_try;;
16231 esac
16232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16233 (eval "$ac_compile") 2>conftest.er1
16234 ac_status=$?
16235 grep -v '^ *+' conftest.er1 >conftest.err
16236 rm -f conftest.er1
16237 cat conftest.err >&5
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); } &&
16240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16241 { (case "(($ac_try" in
16242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16243 *) ac_try_echo=$ac_try;;
16244 esac
16245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16246 (eval "$ac_try") 2>&5
16247 ac_status=$?
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); }; } &&
16250 { ac_try='test -s conftest.$ac_objext'
16251 { (case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16254 esac
16255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256 (eval "$ac_try") 2>&5
16257 ac_status=$?
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; }; then
16260 ac_header_compiler=yes
16261 else
16262 echo "$as_me: failed program was:" >&5
16263 sed 's/^/| /' conftest.$ac_ext >&5
16265 ac_header_compiler=no
16268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16269 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16270 echo "${ECHO_T}$ac_header_compiler" >&6; }
16272 # Is the header present?
16273 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16275 cat >conftest.$ac_ext <<_ACEOF
16276 /* confdefs.h. */
16277 _ACEOF
16278 cat confdefs.h >>conftest.$ac_ext
16279 cat >>conftest.$ac_ext <<_ACEOF
16280 /* end confdefs.h. */
16281 #include <$ac_header>
16282 _ACEOF
16283 if { (ac_try="$ac_cpp conftest.$ac_ext"
16284 case "(($ac_try" in
16285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16286 *) ac_try_echo=$ac_try;;
16287 esac
16288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16290 ac_status=$?
16291 grep -v '^ *+' conftest.er1 >conftest.err
16292 rm -f conftest.er1
16293 cat conftest.err >&5
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); } >/dev/null; then
16296 if test -s conftest.err; then
16297 ac_cpp_err=$ac_c_preproc_warn_flag
16298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16299 else
16300 ac_cpp_err=
16302 else
16303 ac_cpp_err=yes
16305 if test -z "$ac_cpp_err"; then
16306 ac_header_preproc=yes
16307 else
16308 echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.$ac_ext >&5
16311 ac_header_preproc=no
16314 rm -f conftest.err conftest.$ac_ext
16315 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16316 echo "${ECHO_T}$ac_header_preproc" >&6; }
16318 # So? What about this header?
16319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16320 yes:no: )
16321 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16322 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16324 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16325 ac_header_preproc=yes
16327 no:yes:* )
16328 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16329 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16330 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16331 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16332 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16333 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16334 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16335 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16338 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16339 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16340 ( cat <<\_ASBOX
16341 ## ----------------------------------- ##
16342 ## Report this to llvmbugs@cs.uiuc.edu ##
16343 ## ----------------------------------- ##
16344 _ASBOX
16345 ) | sed "s/^/$as_me: WARNING: /" >&2
16347 esac
16348 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16351 echo $ECHO_N "(cached) $ECHO_C" >&6
16352 else
16353 eval "$as_ac_Header=\$ac_header_preproc"
16355 ac_res=`eval echo '${'$as_ac_Header'}'`
16356 { echo "$as_me:$LINENO: result: $ac_res" >&5
16357 echo "${ECHO_T}$ac_res" >&6; }
16360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16361 cat >>confdefs.h <<_ACEOF
16362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16363 _ACEOF
16367 done
16369 if test "$ENABLE_THREADS" -eq 1 ; then
16371 for ac_header in pthread.h
16373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16378 echo $ECHO_N "(cached) $ECHO_C" >&6
16380 ac_res=`eval echo '${'$as_ac_Header'}'`
16381 { echo "$as_me:$LINENO: result: $ac_res" >&5
16382 echo "${ECHO_T}$ac_res" >&6; }
16383 else
16384 # Is the header compilable?
16385 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16387 cat >conftest.$ac_ext <<_ACEOF
16388 /* confdefs.h. */
16389 _ACEOF
16390 cat confdefs.h >>conftest.$ac_ext
16391 cat >>conftest.$ac_ext <<_ACEOF
16392 /* end confdefs.h. */
16393 $ac_includes_default
16394 #include <$ac_header>
16395 _ACEOF
16396 rm -f conftest.$ac_objext
16397 if { (ac_try="$ac_compile"
16398 case "(($ac_try" in
16399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16400 *) ac_try_echo=$ac_try;;
16401 esac
16402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16403 (eval "$ac_compile") 2>conftest.er1
16404 ac_status=$?
16405 grep -v '^ *+' conftest.er1 >conftest.err
16406 rm -f conftest.er1
16407 cat conftest.err >&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } &&
16410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16411 { (case "(($ac_try" in
16412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16413 *) ac_try_echo=$ac_try;;
16414 esac
16415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16416 (eval "$ac_try") 2>&5
16417 ac_status=$?
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); }; } &&
16420 { ac_try='test -s conftest.$ac_objext'
16421 { (case "(($ac_try" in
16422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16423 *) ac_try_echo=$ac_try;;
16424 esac
16425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16426 (eval "$ac_try") 2>&5
16427 ac_status=$?
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; }; then
16430 ac_header_compiler=yes
16431 else
16432 echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.$ac_ext >&5
16435 ac_header_compiler=no
16438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16440 echo "${ECHO_T}$ac_header_compiler" >&6; }
16442 # Is the header present?
16443 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16445 cat >conftest.$ac_ext <<_ACEOF
16446 /* confdefs.h. */
16447 _ACEOF
16448 cat confdefs.h >>conftest.$ac_ext
16449 cat >>conftest.$ac_ext <<_ACEOF
16450 /* end confdefs.h. */
16451 #include <$ac_header>
16452 _ACEOF
16453 if { (ac_try="$ac_cpp conftest.$ac_ext"
16454 case "(($ac_try" in
16455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16456 *) ac_try_echo=$ac_try;;
16457 esac
16458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16460 ac_status=$?
16461 grep -v '^ *+' conftest.er1 >conftest.err
16462 rm -f conftest.er1
16463 cat conftest.err >&5
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); } >/dev/null; then
16466 if test -s conftest.err; then
16467 ac_cpp_err=$ac_c_preproc_warn_flag
16468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16469 else
16470 ac_cpp_err=
16472 else
16473 ac_cpp_err=yes
16475 if test -z "$ac_cpp_err"; then
16476 ac_header_preproc=yes
16477 else
16478 echo "$as_me: failed program was:" >&5
16479 sed 's/^/| /' conftest.$ac_ext >&5
16481 ac_header_preproc=no
16484 rm -f conftest.err conftest.$ac_ext
16485 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16486 echo "${ECHO_T}$ac_header_preproc" >&6; }
16488 # So? What about this header?
16489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16490 yes:no: )
16491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16495 ac_header_preproc=yes
16497 no:yes:* )
16498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16501 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16505 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16510 ( cat <<\_ASBOX
16511 ## ----------------------------------- ##
16512 ## Report this to llvmbugs@cs.uiuc.edu ##
16513 ## ----------------------------------- ##
16514 _ASBOX
16515 ) | sed "s/^/$as_me: WARNING: /" >&2
16517 esac
16518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16521 echo $ECHO_N "(cached) $ECHO_C" >&6
16522 else
16523 eval "$as_ac_Header=\$ac_header_preproc"
16525 ac_res=`eval echo '${'$as_ac_Header'}'`
16526 { echo "$as_me:$LINENO: result: $ac_res" >&5
16527 echo "${ECHO_T}$ac_res" >&6; }
16530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16531 cat >>confdefs.h <<_ACEOF
16532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16533 _ACEOF
16534 HAVE_PTHREAD=1
16536 else
16537 HAVE_PTHREAD=0
16541 done
16543 else
16544 HAVE_PTHREAD=0
16548 if test "$llvm_cv_enable_libffi" = "yes" ; then
16551 for ac_header in ffi.h ffi/ffi.h
16553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16558 echo $ECHO_N "(cached) $ECHO_C" >&6
16560 ac_res=`eval echo '${'$as_ac_Header'}'`
16561 { echo "$as_me:$LINENO: result: $ac_res" >&5
16562 echo "${ECHO_T}$ac_res" >&6; }
16563 else
16564 # Is the header compilable?
16565 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16567 cat >conftest.$ac_ext <<_ACEOF
16568 /* confdefs.h. */
16569 _ACEOF
16570 cat confdefs.h >>conftest.$ac_ext
16571 cat >>conftest.$ac_ext <<_ACEOF
16572 /* end confdefs.h. */
16573 $ac_includes_default
16574 #include <$ac_header>
16575 _ACEOF
16576 rm -f conftest.$ac_objext
16577 if { (ac_try="$ac_compile"
16578 case "(($ac_try" in
16579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16580 *) ac_try_echo=$ac_try;;
16581 esac
16582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16583 (eval "$ac_compile") 2>conftest.er1
16584 ac_status=$?
16585 grep -v '^ *+' conftest.er1 >conftest.err
16586 rm -f conftest.er1
16587 cat conftest.err >&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); } &&
16590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16591 { (case "(($ac_try" in
16592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16593 *) ac_try_echo=$ac_try;;
16594 esac
16595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16596 (eval "$ac_try") 2>&5
16597 ac_status=$?
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); }; } &&
16600 { ac_try='test -s conftest.$ac_objext'
16601 { (case "(($ac_try" in
16602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16603 *) ac_try_echo=$ac_try;;
16604 esac
16605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16606 (eval "$ac_try") 2>&5
16607 ac_status=$?
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; }; then
16610 ac_header_compiler=yes
16611 else
16612 echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16615 ac_header_compiler=no
16618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16619 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16620 echo "${ECHO_T}$ac_header_compiler" >&6; }
16622 # Is the header present?
16623 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16625 cat >conftest.$ac_ext <<_ACEOF
16626 /* confdefs.h. */
16627 _ACEOF
16628 cat confdefs.h >>conftest.$ac_ext
16629 cat >>conftest.$ac_ext <<_ACEOF
16630 /* end confdefs.h. */
16631 #include <$ac_header>
16632 _ACEOF
16633 if { (ac_try="$ac_cpp conftest.$ac_ext"
16634 case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16637 esac
16638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16640 ac_status=$?
16641 grep -v '^ *+' conftest.er1 >conftest.err
16642 rm -f conftest.er1
16643 cat conftest.err >&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); } >/dev/null; then
16646 if test -s conftest.err; then
16647 ac_cpp_err=$ac_c_preproc_warn_flag
16648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16649 else
16650 ac_cpp_err=
16652 else
16653 ac_cpp_err=yes
16655 if test -z "$ac_cpp_err"; then
16656 ac_header_preproc=yes
16657 else
16658 echo "$as_me: failed program was:" >&5
16659 sed 's/^/| /' conftest.$ac_ext >&5
16661 ac_header_preproc=no
16664 rm -f conftest.err conftest.$ac_ext
16665 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16666 echo "${ECHO_T}$ac_header_preproc" >&6; }
16668 # So? What about this header?
16669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16670 yes:no: )
16671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16674 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16675 ac_header_preproc=yes
16677 no:yes:* )
16678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16679 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16681 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16683 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16685 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16689 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16690 ( cat <<\_ASBOX
16691 ## ----------------------------------- ##
16692 ## Report this to llvmbugs@cs.uiuc.edu ##
16693 ## ----------------------------------- ##
16694 _ASBOX
16695 ) | sed "s/^/$as_me: WARNING: /" >&2
16697 esac
16698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16701 echo $ECHO_N "(cached) $ECHO_C" >&6
16702 else
16703 eval "$as_ac_Header=\$ac_header_preproc"
16705 ac_res=`eval echo '${'$as_ac_Header'}'`
16706 { echo "$as_me:$LINENO: result: $ac_res" >&5
16707 echo "${ECHO_T}$ac_res" >&6; }
16710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16711 cat >>confdefs.h <<_ACEOF
16712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16713 _ACEOF
16717 done
16724 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16725 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16726 if test "${ac_cv_huge_val_sanity+set}" = set; then
16727 echo $ECHO_N "(cached) $ECHO_C" >&6
16728 else
16730 ac_ext=cpp
16731 ac_cpp='$CXXCPP $CPPFLAGS'
16732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16736 ac_save_CXXFLAGS=$CXXFLAGS
16737 CXXFLAGS=-pedantic
16738 if test "$cross_compiling" = yes; then
16739 ac_cv_huge_val_sanity=yes
16740 else
16741 cat >conftest.$ac_ext <<_ACEOF
16742 /* confdefs.h. */
16743 _ACEOF
16744 cat confdefs.h >>conftest.$ac_ext
16745 cat >>conftest.$ac_ext <<_ACEOF
16746 /* end confdefs.h. */
16747 #include <math.h>
16749 main ()
16751 double x = HUGE_VAL; return x != x;
16753 return 0;
16755 _ACEOF
16756 rm -f conftest$ac_exeext
16757 if { (ac_try="$ac_link"
16758 case "(($ac_try" in
16759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16760 *) ac_try_echo=$ac_try;;
16761 esac
16762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16763 (eval "$ac_link") 2>&5
16764 ac_status=$?
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16767 { (case "(($ac_try" in
16768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769 *) ac_try_echo=$ac_try;;
16770 esac
16771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16772 (eval "$ac_try") 2>&5
16773 ac_status=$?
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); }; }; then
16776 ac_cv_huge_val_sanity=yes
16777 else
16778 echo "$as_me: program exited with status $ac_status" >&5
16779 echo "$as_me: failed program was:" >&5
16780 sed 's/^/| /' conftest.$ac_ext >&5
16782 ( exit $ac_status )
16783 ac_cv_huge_val_sanity=no
16785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16789 CXXFLAGS=$ac_save_CXXFLAGS
16790 ac_ext=c
16791 ac_cpp='$CPP $CPPFLAGS'
16792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16798 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16799 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16800 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16803 { echo "$as_me:$LINENO: checking for pid_t" >&5
16804 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16805 if test "${ac_cv_type_pid_t+set}" = set; then
16806 echo $ECHO_N "(cached) $ECHO_C" >&6
16807 else
16808 cat >conftest.$ac_ext <<_ACEOF
16809 /* confdefs.h. */
16810 _ACEOF
16811 cat confdefs.h >>conftest.$ac_ext
16812 cat >>conftest.$ac_ext <<_ACEOF
16813 /* end confdefs.h. */
16814 $ac_includes_default
16815 typedef pid_t ac__type_new_;
16817 main ()
16819 if ((ac__type_new_ *) 0)
16820 return 0;
16821 if (sizeof (ac__type_new_))
16822 return 0;
16824 return 0;
16826 _ACEOF
16827 rm -f conftest.$ac_objext
16828 if { (ac_try="$ac_compile"
16829 case "(($ac_try" in
16830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16831 *) ac_try_echo=$ac_try;;
16832 esac
16833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16834 (eval "$ac_compile") 2>conftest.er1
16835 ac_status=$?
16836 grep -v '^ *+' conftest.er1 >conftest.err
16837 rm -f conftest.er1
16838 cat conftest.err >&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); } &&
16841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16842 { (case "(($ac_try" in
16843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16844 *) ac_try_echo=$ac_try;;
16845 esac
16846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16847 (eval "$ac_try") 2>&5
16848 ac_status=$?
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; } &&
16851 { ac_try='test -s conftest.$ac_objext'
16852 { (case "(($ac_try" in
16853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854 *) ac_try_echo=$ac_try;;
16855 esac
16856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857 (eval "$ac_try") 2>&5
16858 ac_status=$?
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); }; }; then
16861 ac_cv_type_pid_t=yes
16862 else
16863 echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.$ac_ext >&5
16866 ac_cv_type_pid_t=no
16869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16871 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16872 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16873 if test $ac_cv_type_pid_t = yes; then
16875 else
16877 cat >>confdefs.h <<_ACEOF
16878 #define pid_t int
16879 _ACEOF
16883 { echo "$as_me:$LINENO: checking for size_t" >&5
16884 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16885 if test "${ac_cv_type_size_t+set}" = set; then
16886 echo $ECHO_N "(cached) $ECHO_C" >&6
16887 else
16888 cat >conftest.$ac_ext <<_ACEOF
16889 /* confdefs.h. */
16890 _ACEOF
16891 cat confdefs.h >>conftest.$ac_ext
16892 cat >>conftest.$ac_ext <<_ACEOF
16893 /* end confdefs.h. */
16894 $ac_includes_default
16895 typedef size_t ac__type_new_;
16897 main ()
16899 if ((ac__type_new_ *) 0)
16900 return 0;
16901 if (sizeof (ac__type_new_))
16902 return 0;
16904 return 0;
16906 _ACEOF
16907 rm -f conftest.$ac_objext
16908 if { (ac_try="$ac_compile"
16909 case "(($ac_try" in
16910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911 *) ac_try_echo=$ac_try;;
16912 esac
16913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914 (eval "$ac_compile") 2>conftest.er1
16915 ac_status=$?
16916 grep -v '^ *+' conftest.er1 >conftest.err
16917 rm -f conftest.er1
16918 cat conftest.err >&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); } &&
16921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16922 { (case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16925 esac
16926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_try") 2>&5
16928 ac_status=$?
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; } &&
16931 { ac_try='test -s conftest.$ac_objext'
16932 { (case "(($ac_try" in
16933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934 *) ac_try_echo=$ac_try;;
16935 esac
16936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16937 (eval "$ac_try") 2>&5
16938 ac_status=$?
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); }; }; then
16941 ac_cv_type_size_t=yes
16942 else
16943 echo "$as_me: failed program was:" >&5
16944 sed 's/^/| /' conftest.$ac_ext >&5
16946 ac_cv_type_size_t=no
16949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16951 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16952 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16953 if test $ac_cv_type_size_t = yes; then
16955 else
16957 cat >>confdefs.h <<_ACEOF
16958 #define size_t unsigned int
16959 _ACEOF
16964 cat >>confdefs.h <<_ACEOF
16965 #define RETSIGTYPE void
16966 _ACEOF
16968 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16969 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16970 if test "${ac_cv_struct_tm+set}" = set; then
16971 echo $ECHO_N "(cached) $ECHO_C" >&6
16972 else
16973 cat >conftest.$ac_ext <<_ACEOF
16974 /* confdefs.h. */
16975 _ACEOF
16976 cat confdefs.h >>conftest.$ac_ext
16977 cat >>conftest.$ac_ext <<_ACEOF
16978 /* end confdefs.h. */
16979 #include <sys/types.h>
16980 #include <time.h>
16983 main ()
16985 struct tm *tp; tp->tm_sec;
16987 return 0;
16989 _ACEOF
16990 rm -f conftest.$ac_objext
16991 if { (ac_try="$ac_compile"
16992 case "(($ac_try" in
16993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16994 *) ac_try_echo=$ac_try;;
16995 esac
16996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16997 (eval "$ac_compile") 2>conftest.er1
16998 ac_status=$?
16999 grep -v '^ *+' conftest.er1 >conftest.err
17000 rm -f conftest.er1
17001 cat conftest.err >&5
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); } &&
17004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17005 { (case "(($ac_try" in
17006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007 *) ac_try_echo=$ac_try;;
17008 esac
17009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010 (eval "$ac_try") 2>&5
17011 ac_status=$?
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); }; } &&
17014 { ac_try='test -s conftest.$ac_objext'
17015 { (case "(($ac_try" in
17016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17017 *) ac_try_echo=$ac_try;;
17018 esac
17019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17020 (eval "$ac_try") 2>&5
17021 ac_status=$?
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); }; }; then
17024 ac_cv_struct_tm=time.h
17025 else
17026 echo "$as_me: failed program was:" >&5
17027 sed 's/^/| /' conftest.$ac_ext >&5
17029 ac_cv_struct_tm=sys/time.h
17032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17034 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17035 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17036 if test $ac_cv_struct_tm = sys/time.h; then
17038 cat >>confdefs.h <<\_ACEOF
17039 #define TM_IN_SYS_TIME 1
17040 _ACEOF
17044 { echo "$as_me:$LINENO: checking for int64_t" >&5
17045 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17046 if test "${ac_cv_type_int64_t+set}" = set; then
17047 echo $ECHO_N "(cached) $ECHO_C" >&6
17048 else
17049 cat >conftest.$ac_ext <<_ACEOF
17050 /* confdefs.h. */
17051 _ACEOF
17052 cat confdefs.h >>conftest.$ac_ext
17053 cat >>conftest.$ac_ext <<_ACEOF
17054 /* end confdefs.h. */
17055 $ac_includes_default
17056 typedef int64_t ac__type_new_;
17058 main ()
17060 if ((ac__type_new_ *) 0)
17061 return 0;
17062 if (sizeof (ac__type_new_))
17063 return 0;
17065 return 0;
17067 _ACEOF
17068 rm -f conftest.$ac_objext
17069 if { (ac_try="$ac_compile"
17070 case "(($ac_try" in
17071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072 *) ac_try_echo=$ac_try;;
17073 esac
17074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075 (eval "$ac_compile") 2>conftest.er1
17076 ac_status=$?
17077 grep -v '^ *+' conftest.er1 >conftest.err
17078 rm -f conftest.er1
17079 cat conftest.err >&5
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); } &&
17082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17083 { (case "(($ac_try" in
17084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17085 *) ac_try_echo=$ac_try;;
17086 esac
17087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17088 (eval "$ac_try") 2>&5
17089 ac_status=$?
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); }; } &&
17092 { ac_try='test -s conftest.$ac_objext'
17093 { (case "(($ac_try" in
17094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095 *) ac_try_echo=$ac_try;;
17096 esac
17097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098 (eval "$ac_try") 2>&5
17099 ac_status=$?
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); }; }; then
17102 ac_cv_type_int64_t=yes
17103 else
17104 echo "$as_me: failed program was:" >&5
17105 sed 's/^/| /' conftest.$ac_ext >&5
17107 ac_cv_type_int64_t=no
17110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17112 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17113 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17114 if test $ac_cv_type_int64_t = yes; then
17116 cat >>confdefs.h <<_ACEOF
17117 #define HAVE_INT64_T 1
17118 _ACEOF
17121 else
17122 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17123 echo "$as_me: error: Type int64_t required but not found" >&2;}
17124 { (exit 1); exit 1; }; }
17127 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17128 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17129 if test "${ac_cv_type_uint64_t+set}" = set; then
17130 echo $ECHO_N "(cached) $ECHO_C" >&6
17131 else
17132 cat >conftest.$ac_ext <<_ACEOF
17133 /* confdefs.h. */
17134 _ACEOF
17135 cat confdefs.h >>conftest.$ac_ext
17136 cat >>conftest.$ac_ext <<_ACEOF
17137 /* end confdefs.h. */
17138 $ac_includes_default
17139 typedef uint64_t ac__type_new_;
17141 main ()
17143 if ((ac__type_new_ *) 0)
17144 return 0;
17145 if (sizeof (ac__type_new_))
17146 return 0;
17148 return 0;
17150 _ACEOF
17151 rm -f conftest.$ac_objext
17152 if { (ac_try="$ac_compile"
17153 case "(($ac_try" in
17154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17155 *) ac_try_echo=$ac_try;;
17156 esac
17157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17158 (eval "$ac_compile") 2>conftest.er1
17159 ac_status=$?
17160 grep -v '^ *+' conftest.er1 >conftest.err
17161 rm -f conftest.er1
17162 cat conftest.err >&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); } &&
17165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17166 { (case "(($ac_try" in
17167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168 *) ac_try_echo=$ac_try;;
17169 esac
17170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17171 (eval "$ac_try") 2>&5
17172 ac_status=$?
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; } &&
17175 { ac_try='test -s conftest.$ac_objext'
17176 { (case "(($ac_try" in
17177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17178 *) ac_try_echo=$ac_try;;
17179 esac
17180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17181 (eval "$ac_try") 2>&5
17182 ac_status=$?
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; }; then
17185 ac_cv_type_uint64_t=yes
17186 else
17187 echo "$as_me: failed program was:" >&5
17188 sed 's/^/| /' conftest.$ac_ext >&5
17190 ac_cv_type_uint64_t=no
17193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17195 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17196 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17197 if test $ac_cv_type_uint64_t = yes; then
17199 cat >>confdefs.h <<_ACEOF
17200 #define HAVE_UINT64_T 1
17201 _ACEOF
17204 else
17205 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17206 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17207 if test "${ac_cv_type_u_int64_t+set}" = set; then
17208 echo $ECHO_N "(cached) $ECHO_C" >&6
17209 else
17210 cat >conftest.$ac_ext <<_ACEOF
17211 /* confdefs.h. */
17212 _ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h. */
17216 $ac_includes_default
17217 typedef u_int64_t ac__type_new_;
17219 main ()
17221 if ((ac__type_new_ *) 0)
17222 return 0;
17223 if (sizeof (ac__type_new_))
17224 return 0;
17226 return 0;
17228 _ACEOF
17229 rm -f conftest.$ac_objext
17230 if { (ac_try="$ac_compile"
17231 case "(($ac_try" in
17232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233 *) ac_try_echo=$ac_try;;
17234 esac
17235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17236 (eval "$ac_compile") 2>conftest.er1
17237 ac_status=$?
17238 grep -v '^ *+' conftest.er1 >conftest.err
17239 rm -f conftest.er1
17240 cat conftest.err >&5
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); } &&
17243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17244 { (case "(($ac_try" in
17245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246 *) ac_try_echo=$ac_try;;
17247 esac
17248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17249 (eval "$ac_try") 2>&5
17250 ac_status=$?
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); }; } &&
17253 { ac_try='test -s conftest.$ac_objext'
17254 { (case "(($ac_try" in
17255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256 *) ac_try_echo=$ac_try;;
17257 esac
17258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259 (eval "$ac_try") 2>&5
17260 ac_status=$?
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; }; then
17263 ac_cv_type_u_int64_t=yes
17264 else
17265 echo "$as_me: failed program was:" >&5
17266 sed 's/^/| /' conftest.$ac_ext >&5
17268 ac_cv_type_u_int64_t=no
17271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17273 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17274 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17275 if test $ac_cv_type_u_int64_t = yes; then
17277 cat >>confdefs.h <<_ACEOF
17278 #define HAVE_U_INT64_T 1
17279 _ACEOF
17282 else
17283 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17284 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17285 { (exit 1); exit 1; }; }
17299 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17302 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17304 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17305 echo $ECHO_N "(cached) $ECHO_C" >&6
17306 else
17307 cat >conftest.$ac_ext <<_ACEOF
17308 /* confdefs.h. */
17309 _ACEOF
17310 cat confdefs.h >>conftest.$ac_ext
17311 cat >>conftest.$ac_ext <<_ACEOF
17312 /* end confdefs.h. */
17313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17315 #define $ac_func innocuous_$ac_func
17317 /* System header to define __stub macros and hopefully few prototypes,
17318 which can conflict with char $ac_func (); below.
17319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17320 <limits.h> exists even on freestanding compilers. */
17322 #ifdef __STDC__
17323 # include <limits.h>
17324 #else
17325 # include <assert.h>
17326 #endif
17328 #undef $ac_func
17330 /* Override any GCC internal prototype to avoid an error.
17331 Use char because int might match the return type of a GCC
17332 builtin and then its argument prototype would still apply. */
17333 #ifdef __cplusplus
17334 extern "C"
17335 #endif
17336 char $ac_func ();
17337 /* The GNU C library defines this for functions which it implements
17338 to always fail with ENOSYS. Some functions are actually named
17339 something starting with __ and the normal name is an alias. */
17340 #if defined __stub_$ac_func || defined __stub___$ac_func
17341 choke me
17342 #endif
17345 main ()
17347 return $ac_func ();
17349 return 0;
17351 _ACEOF
17352 rm -f conftest.$ac_objext conftest$ac_exeext
17353 if { (ac_try="$ac_link"
17354 case "(($ac_try" in
17355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356 *) ac_try_echo=$ac_try;;
17357 esac
17358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359 (eval "$ac_link") 2>conftest.er1
17360 ac_status=$?
17361 grep -v '^ *+' conftest.er1 >conftest.err
17362 rm -f conftest.er1
17363 cat conftest.err >&5
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } &&
17366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17367 { (case "(($ac_try" in
17368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17369 *) ac_try_echo=$ac_try;;
17370 esac
17371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17372 (eval "$ac_try") 2>&5
17373 ac_status=$?
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); }; } &&
17376 { ac_try='test -s conftest$ac_exeext'
17377 { (case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17380 esac
17381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382 (eval "$ac_try") 2>&5
17383 ac_status=$?
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); }; }; then
17386 eval "$as_ac_var=yes"
17387 else
17388 echo "$as_me: failed program was:" >&5
17389 sed 's/^/| /' conftest.$ac_ext >&5
17391 eval "$as_ac_var=no"
17394 rm -f core conftest.err conftest.$ac_objext \
17395 conftest$ac_exeext conftest.$ac_ext
17397 ac_res=`eval echo '${'$as_ac_var'}'`
17398 { echo "$as_me:$LINENO: result: $ac_res" >&5
17399 echo "${ECHO_T}$ac_res" >&6; }
17400 if test `eval echo '${'$as_ac_var'}'` = yes; then
17401 cat >>confdefs.h <<_ACEOF
17402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17403 _ACEOF
17406 done
17412 for ac_func in powf fmodf strtof round
17414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17415 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17417 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17418 echo $ECHO_N "(cached) $ECHO_C" >&6
17419 else
17420 cat >conftest.$ac_ext <<_ACEOF
17421 /* confdefs.h. */
17422 _ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h. */
17426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17428 #define $ac_func innocuous_$ac_func
17430 /* System header to define __stub macros and hopefully few prototypes,
17431 which can conflict with char $ac_func (); below.
17432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17433 <limits.h> exists even on freestanding compilers. */
17435 #ifdef __STDC__
17436 # include <limits.h>
17437 #else
17438 # include <assert.h>
17439 #endif
17441 #undef $ac_func
17443 /* Override any GCC internal prototype to avoid an error.
17444 Use char because int might match the return type of a GCC
17445 builtin and then its argument prototype would still apply. */
17446 #ifdef __cplusplus
17447 extern "C"
17448 #endif
17449 char $ac_func ();
17450 /* The GNU C library defines this for functions which it implements
17451 to always fail with ENOSYS. Some functions are actually named
17452 something starting with __ and the normal name is an alias. */
17453 #if defined __stub_$ac_func || defined __stub___$ac_func
17454 choke me
17455 #endif
17458 main ()
17460 return $ac_func ();
17462 return 0;
17464 _ACEOF
17465 rm -f conftest.$ac_objext conftest$ac_exeext
17466 if { (ac_try="$ac_link"
17467 case "(($ac_try" in
17468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17469 *) ac_try_echo=$ac_try;;
17470 esac
17471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17472 (eval "$ac_link") 2>conftest.er1
17473 ac_status=$?
17474 grep -v '^ *+' conftest.er1 >conftest.err
17475 rm -f conftest.er1
17476 cat conftest.err >&5
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); } &&
17479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17480 { (case "(($ac_try" in
17481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17482 *) ac_try_echo=$ac_try;;
17483 esac
17484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17485 (eval "$ac_try") 2>&5
17486 ac_status=$?
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); }; } &&
17489 { ac_try='test -s conftest$ac_exeext'
17490 { (case "(($ac_try" in
17491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492 *) ac_try_echo=$ac_try;;
17493 esac
17494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17495 (eval "$ac_try") 2>&5
17496 ac_status=$?
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); }; }; then
17499 eval "$as_ac_var=yes"
17500 else
17501 echo "$as_me: failed program was:" >&5
17502 sed 's/^/| /' conftest.$ac_ext >&5
17504 eval "$as_ac_var=no"
17507 rm -f core conftest.err conftest.$ac_objext \
17508 conftest$ac_exeext conftest.$ac_ext
17510 ac_res=`eval echo '${'$as_ac_var'}'`
17511 { echo "$as_me:$LINENO: result: $ac_res" >&5
17512 echo "${ECHO_T}$ac_res" >&6; }
17513 if test `eval echo '${'$as_ac_var'}'` = yes; then
17514 cat >>confdefs.h <<_ACEOF
17515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17516 _ACEOF
17519 done
17526 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17529 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17531 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17532 echo $ECHO_N "(cached) $ECHO_C" >&6
17533 else
17534 cat >conftest.$ac_ext <<_ACEOF
17535 /* confdefs.h. */
17536 _ACEOF
17537 cat confdefs.h >>conftest.$ac_ext
17538 cat >>conftest.$ac_ext <<_ACEOF
17539 /* end confdefs.h. */
17540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17542 #define $ac_func innocuous_$ac_func
17544 /* System header to define __stub macros and hopefully few prototypes,
17545 which can conflict with char $ac_func (); below.
17546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17547 <limits.h> exists even on freestanding compilers. */
17549 #ifdef __STDC__
17550 # include <limits.h>
17551 #else
17552 # include <assert.h>
17553 #endif
17555 #undef $ac_func
17557 /* Override any GCC internal prototype to avoid an error.
17558 Use char because int might match the return type of a GCC
17559 builtin and then its argument prototype would still apply. */
17560 #ifdef __cplusplus
17561 extern "C"
17562 #endif
17563 char $ac_func ();
17564 /* The GNU C library defines this for functions which it implements
17565 to always fail with ENOSYS. Some functions are actually named
17566 something starting with __ and the normal name is an alias. */
17567 #if defined __stub_$ac_func || defined __stub___$ac_func
17568 choke me
17569 #endif
17572 main ()
17574 return $ac_func ();
17576 return 0;
17578 _ACEOF
17579 rm -f conftest.$ac_objext conftest$ac_exeext
17580 if { (ac_try="$ac_link"
17581 case "(($ac_try" in
17582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583 *) ac_try_echo=$ac_try;;
17584 esac
17585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586 (eval "$ac_link") 2>conftest.er1
17587 ac_status=$?
17588 grep -v '^ *+' conftest.er1 >conftest.err
17589 rm -f conftest.er1
17590 cat conftest.err >&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); } &&
17593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17594 { (case "(($ac_try" in
17595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596 *) ac_try_echo=$ac_try;;
17597 esac
17598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599 (eval "$ac_try") 2>&5
17600 ac_status=$?
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; } &&
17603 { ac_try='test -s conftest$ac_exeext'
17604 { (case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17607 esac
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_try") 2>&5
17610 ac_status=$?
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; }; then
17613 eval "$as_ac_var=yes"
17614 else
17615 echo "$as_me: failed program was:" >&5
17616 sed 's/^/| /' conftest.$ac_ext >&5
17618 eval "$as_ac_var=no"
17621 rm -f core conftest.err conftest.$ac_objext \
17622 conftest$ac_exeext conftest.$ac_ext
17624 ac_res=`eval echo '${'$as_ac_var'}'`
17625 { echo "$as_me:$LINENO: result: $ac_res" >&5
17626 echo "${ECHO_T}$ac_res" >&6; }
17627 if test `eval echo '${'$as_ac_var'}'` = yes; then
17628 cat >>confdefs.h <<_ACEOF
17629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17630 _ACEOF
17633 done
17638 for ac_func in isatty mkdtemp mkstemp
17640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17641 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17643 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17644 echo $ECHO_N "(cached) $ECHO_C" >&6
17645 else
17646 cat >conftest.$ac_ext <<_ACEOF
17647 /* confdefs.h. */
17648 _ACEOF
17649 cat confdefs.h >>conftest.$ac_ext
17650 cat >>conftest.$ac_ext <<_ACEOF
17651 /* end confdefs.h. */
17652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17654 #define $ac_func innocuous_$ac_func
17656 /* System header to define __stub macros and hopefully few prototypes,
17657 which can conflict with char $ac_func (); below.
17658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17659 <limits.h> exists even on freestanding compilers. */
17661 #ifdef __STDC__
17662 # include <limits.h>
17663 #else
17664 # include <assert.h>
17665 #endif
17667 #undef $ac_func
17669 /* Override any GCC internal prototype to avoid an error.
17670 Use char because int might match the return type of a GCC
17671 builtin and then its argument prototype would still apply. */
17672 #ifdef __cplusplus
17673 extern "C"
17674 #endif
17675 char $ac_func ();
17676 /* The GNU C library defines this for functions which it implements
17677 to always fail with ENOSYS. Some functions are actually named
17678 something starting with __ and the normal name is an alias. */
17679 #if defined __stub_$ac_func || defined __stub___$ac_func
17680 choke me
17681 #endif
17684 main ()
17686 return $ac_func ();
17688 return 0;
17690 _ACEOF
17691 rm -f conftest.$ac_objext conftest$ac_exeext
17692 if { (ac_try="$ac_link"
17693 case "(($ac_try" in
17694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17695 *) ac_try_echo=$ac_try;;
17696 esac
17697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17698 (eval "$ac_link") 2>conftest.er1
17699 ac_status=$?
17700 grep -v '^ *+' conftest.er1 >conftest.err
17701 rm -f conftest.er1
17702 cat conftest.err >&5
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); } &&
17705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17706 { (case "(($ac_try" in
17707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17708 *) ac_try_echo=$ac_try;;
17709 esac
17710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17711 (eval "$ac_try") 2>&5
17712 ac_status=$?
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; } &&
17715 { ac_try='test -s conftest$ac_exeext'
17716 { (case "(($ac_try" in
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17719 esac
17720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721 (eval "$ac_try") 2>&5
17722 ac_status=$?
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; }; then
17725 eval "$as_ac_var=yes"
17726 else
17727 echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17730 eval "$as_ac_var=no"
17733 rm -f core conftest.err conftest.$ac_objext \
17734 conftest$ac_exeext conftest.$ac_ext
17736 ac_res=`eval echo '${'$as_ac_var'}'`
17737 { echo "$as_me:$LINENO: result: $ac_res" >&5
17738 echo "${ECHO_T}$ac_res" >&6; }
17739 if test `eval echo '${'$as_ac_var'}'` = yes; then
17740 cat >>confdefs.h <<_ACEOF
17741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17742 _ACEOF
17745 done
17752 for ac_func in mktemp realpath sbrk setrlimit strdup
17754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17758 echo $ECHO_N "(cached) $ECHO_C" >&6
17759 else
17760 cat >conftest.$ac_ext <<_ACEOF
17761 /* confdefs.h. */
17762 _ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h. */
17766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17768 #define $ac_func innocuous_$ac_func
17770 /* System header to define __stub macros and hopefully few prototypes,
17771 which can conflict with char $ac_func (); below.
17772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17773 <limits.h> exists even on freestanding compilers. */
17775 #ifdef __STDC__
17776 # include <limits.h>
17777 #else
17778 # include <assert.h>
17779 #endif
17781 #undef $ac_func
17783 /* Override any GCC internal prototype to avoid an error.
17784 Use char because int might match the return type of a GCC
17785 builtin and then its argument prototype would still apply. */
17786 #ifdef __cplusplus
17787 extern "C"
17788 #endif
17789 char $ac_func ();
17790 /* The GNU C library defines this for functions which it implements
17791 to always fail with ENOSYS. Some functions are actually named
17792 something starting with __ and the normal name is an alias. */
17793 #if defined __stub_$ac_func || defined __stub___$ac_func
17794 choke me
17795 #endif
17798 main ()
17800 return $ac_func ();
17802 return 0;
17804 _ACEOF
17805 rm -f conftest.$ac_objext conftest$ac_exeext
17806 if { (ac_try="$ac_link"
17807 case "(($ac_try" in
17808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17809 *) ac_try_echo=$ac_try;;
17810 esac
17811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17812 (eval "$ac_link") 2>conftest.er1
17813 ac_status=$?
17814 grep -v '^ *+' conftest.er1 >conftest.err
17815 rm -f conftest.er1
17816 cat conftest.err >&5
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); } &&
17819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17820 { (case "(($ac_try" in
17821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17822 *) ac_try_echo=$ac_try;;
17823 esac
17824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17825 (eval "$ac_try") 2>&5
17826 ac_status=$?
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); }; } &&
17829 { ac_try='test -s conftest$ac_exeext'
17830 { (case "(($ac_try" in
17831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17832 *) ac_try_echo=$ac_try;;
17833 esac
17834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17835 (eval "$ac_try") 2>&5
17836 ac_status=$?
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); }; }; then
17839 eval "$as_ac_var=yes"
17840 else
17841 echo "$as_me: failed program was:" >&5
17842 sed 's/^/| /' conftest.$ac_ext >&5
17844 eval "$as_ac_var=no"
17847 rm -f core conftest.err conftest.$ac_objext \
17848 conftest$ac_exeext conftest.$ac_ext
17850 ac_res=`eval echo '${'$as_ac_var'}'`
17851 { echo "$as_me:$LINENO: result: $ac_res" >&5
17852 echo "${ECHO_T}$ac_res" >&6; }
17853 if test `eval echo '${'$as_ac_var'}'` = yes; then
17854 cat >>confdefs.h <<_ACEOF
17855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17856 _ACEOF
17859 done
17865 for ac_func in strerror strerror_r strerror_s setenv
17867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17868 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17870 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17871 echo $ECHO_N "(cached) $ECHO_C" >&6
17872 else
17873 cat >conftest.$ac_ext <<_ACEOF
17874 /* confdefs.h. */
17875 _ACEOF
17876 cat confdefs.h >>conftest.$ac_ext
17877 cat >>conftest.$ac_ext <<_ACEOF
17878 /* end confdefs.h. */
17879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17881 #define $ac_func innocuous_$ac_func
17883 /* System header to define __stub macros and hopefully few prototypes,
17884 which can conflict with char $ac_func (); below.
17885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17886 <limits.h> exists even on freestanding compilers. */
17888 #ifdef __STDC__
17889 # include <limits.h>
17890 #else
17891 # include <assert.h>
17892 #endif
17894 #undef $ac_func
17896 /* Override any GCC internal prototype to avoid an error.
17897 Use char because int might match the return type of a GCC
17898 builtin and then its argument prototype would still apply. */
17899 #ifdef __cplusplus
17900 extern "C"
17901 #endif
17902 char $ac_func ();
17903 /* The GNU C library defines this for functions which it implements
17904 to always fail with ENOSYS. Some functions are actually named
17905 something starting with __ and the normal name is an alias. */
17906 #if defined __stub_$ac_func || defined __stub___$ac_func
17907 choke me
17908 #endif
17911 main ()
17913 return $ac_func ();
17915 return 0;
17917 _ACEOF
17918 rm -f conftest.$ac_objext conftest$ac_exeext
17919 if { (ac_try="$ac_link"
17920 case "(($ac_try" in
17921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17922 *) ac_try_echo=$ac_try;;
17923 esac
17924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17925 (eval "$ac_link") 2>conftest.er1
17926 ac_status=$?
17927 grep -v '^ *+' conftest.er1 >conftest.err
17928 rm -f conftest.er1
17929 cat conftest.err >&5
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); } &&
17932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17933 { (case "(($ac_try" in
17934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17935 *) ac_try_echo=$ac_try;;
17936 esac
17937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17938 (eval "$ac_try") 2>&5
17939 ac_status=$?
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); }; } &&
17942 { ac_try='test -s conftest$ac_exeext'
17943 { (case "(($ac_try" in
17944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17945 *) ac_try_echo=$ac_try;;
17946 esac
17947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17948 (eval "$ac_try") 2>&5
17949 ac_status=$?
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); }; }; then
17952 eval "$as_ac_var=yes"
17953 else
17954 echo "$as_me: failed program was:" >&5
17955 sed 's/^/| /' conftest.$ac_ext >&5
17957 eval "$as_ac_var=no"
17960 rm -f core conftest.err conftest.$ac_objext \
17961 conftest$ac_exeext conftest.$ac_ext
17963 ac_res=`eval echo '${'$as_ac_var'}'`
17964 { echo "$as_me:$LINENO: result: $ac_res" >&5
17965 echo "${ECHO_T}$ac_res" >&6; }
17966 if test `eval echo '${'$as_ac_var'}'` = yes; then
17967 cat >>confdefs.h <<_ACEOF
17968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17969 _ACEOF
17972 done
17978 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17981 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17983 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17984 echo $ECHO_N "(cached) $ECHO_C" >&6
17985 else
17986 cat >conftest.$ac_ext <<_ACEOF
17987 /* confdefs.h. */
17988 _ACEOF
17989 cat confdefs.h >>conftest.$ac_ext
17990 cat >>conftest.$ac_ext <<_ACEOF
17991 /* end confdefs.h. */
17992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17994 #define $ac_func innocuous_$ac_func
17996 /* System header to define __stub macros and hopefully few prototypes,
17997 which can conflict with char $ac_func (); below.
17998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17999 <limits.h> exists even on freestanding compilers. */
18001 #ifdef __STDC__
18002 # include <limits.h>
18003 #else
18004 # include <assert.h>
18005 #endif
18007 #undef $ac_func
18009 /* Override any GCC internal prototype to avoid an error.
18010 Use char because int might match the return type of a GCC
18011 builtin and then its argument prototype would still apply. */
18012 #ifdef __cplusplus
18013 extern "C"
18014 #endif
18015 char $ac_func ();
18016 /* The GNU C library defines this for functions which it implements
18017 to always fail with ENOSYS. Some functions are actually named
18018 something starting with __ and the normal name is an alias. */
18019 #if defined __stub_$ac_func || defined __stub___$ac_func
18020 choke me
18021 #endif
18024 main ()
18026 return $ac_func ();
18028 return 0;
18030 _ACEOF
18031 rm -f conftest.$ac_objext conftest$ac_exeext
18032 if { (ac_try="$ac_link"
18033 case "(($ac_try" in
18034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035 *) ac_try_echo=$ac_try;;
18036 esac
18037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18038 (eval "$ac_link") 2>conftest.er1
18039 ac_status=$?
18040 grep -v '^ *+' conftest.er1 >conftest.err
18041 rm -f conftest.er1
18042 cat conftest.err >&5
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); } &&
18045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18046 { (case "(($ac_try" in
18047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048 *) ac_try_echo=$ac_try;;
18049 esac
18050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18051 (eval "$ac_try") 2>&5
18052 ac_status=$?
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; } &&
18055 { ac_try='test -s conftest$ac_exeext'
18056 { (case "(($ac_try" in
18057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18058 *) ac_try_echo=$ac_try;;
18059 esac
18060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18061 (eval "$ac_try") 2>&5
18062 ac_status=$?
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); }; }; then
18065 eval "$as_ac_var=yes"
18066 else
18067 echo "$as_me: failed program was:" >&5
18068 sed 's/^/| /' conftest.$ac_ext >&5
18070 eval "$as_ac_var=no"
18073 rm -f core conftest.err conftest.$ac_objext \
18074 conftest$ac_exeext conftest.$ac_ext
18076 ac_res=`eval echo '${'$as_ac_var'}'`
18077 { echo "$as_me:$LINENO: result: $ac_res" >&5
18078 echo "${ECHO_T}$ac_res" >&6; }
18079 if test `eval echo '${'$as_ac_var'}'` = yes; then
18080 cat >>confdefs.h <<_ACEOF
18081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18082 _ACEOF
18085 done
18091 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18094 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18096 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18097 echo $ECHO_N "(cached) $ECHO_C" >&6
18098 else
18099 cat >conftest.$ac_ext <<_ACEOF
18100 /* confdefs.h. */
18101 _ACEOF
18102 cat confdefs.h >>conftest.$ac_ext
18103 cat >>conftest.$ac_ext <<_ACEOF
18104 /* end confdefs.h. */
18105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18107 #define $ac_func innocuous_$ac_func
18109 /* System header to define __stub macros and hopefully few prototypes,
18110 which can conflict with char $ac_func (); below.
18111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18112 <limits.h> exists even on freestanding compilers. */
18114 #ifdef __STDC__
18115 # include <limits.h>
18116 #else
18117 # include <assert.h>
18118 #endif
18120 #undef $ac_func
18122 /* Override any GCC internal prototype to avoid an error.
18123 Use char because int might match the return type of a GCC
18124 builtin and then its argument prototype would still apply. */
18125 #ifdef __cplusplus
18126 extern "C"
18127 #endif
18128 char $ac_func ();
18129 /* The GNU C library defines this for functions which it implements
18130 to always fail with ENOSYS. Some functions are actually named
18131 something starting with __ and the normal name is an alias. */
18132 #if defined __stub_$ac_func || defined __stub___$ac_func
18133 choke me
18134 #endif
18137 main ()
18139 return $ac_func ();
18141 return 0;
18143 _ACEOF
18144 rm -f conftest.$ac_objext conftest$ac_exeext
18145 if { (ac_try="$ac_link"
18146 case "(($ac_try" in
18147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18148 *) ac_try_echo=$ac_try;;
18149 esac
18150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18151 (eval "$ac_link") 2>conftest.er1
18152 ac_status=$?
18153 grep -v '^ *+' conftest.er1 >conftest.err
18154 rm -f conftest.er1
18155 cat conftest.err >&5
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); } &&
18158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18159 { (case "(($ac_try" in
18160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18161 *) ac_try_echo=$ac_try;;
18162 esac
18163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18164 (eval "$ac_try") 2>&5
18165 ac_status=$?
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; } &&
18168 { ac_try='test -s conftest$ac_exeext'
18169 { (case "(($ac_try" in
18170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171 *) ac_try_echo=$ac_try;;
18172 esac
18173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18174 (eval "$ac_try") 2>&5
18175 ac_status=$?
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); }; }; then
18178 eval "$as_ac_var=yes"
18179 else
18180 echo "$as_me: failed program was:" >&5
18181 sed 's/^/| /' conftest.$ac_ext >&5
18183 eval "$as_ac_var=no"
18186 rm -f core conftest.err conftest.$ac_objext \
18187 conftest$ac_exeext conftest.$ac_ext
18189 ac_res=`eval echo '${'$as_ac_var'}'`
18190 { echo "$as_me:$LINENO: result: $ac_res" >&5
18191 echo "${ECHO_T}$ac_res" >&6; }
18192 if test `eval echo '${'$as_ac_var'}'` = yes; then
18193 cat >>confdefs.h <<_ACEOF
18194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18195 _ACEOF
18198 done
18200 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18201 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18202 if test "${llvm_cv_c_printf_a+set}" = set; then
18203 echo $ECHO_N "(cached) $ECHO_C" >&6
18204 else
18205 ac_ext=c
18206 ac_cpp='$CPP $CPPFLAGS'
18207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18211 if test "$cross_compiling" = yes; then
18212 llvmac_cv_c_printf_a=no
18213 else
18214 cat >conftest.$ac_ext <<_ACEOF
18216 /* confdefs.h. */
18217 _ACEOF
18218 cat confdefs.h >>conftest.$ac_ext
18219 cat >>conftest.$ac_ext <<_ACEOF
18220 /* end confdefs.h. */
18222 #include <stdio.h>
18223 #include <stdlib.h>
18226 main ()
18229 volatile double A, B;
18230 char Buffer[100];
18231 A = 1;
18232 A /= 10.0;
18233 sprintf(Buffer, "%a", A);
18234 B = atof(Buffer);
18235 if (A != B)
18236 return (1);
18237 if (A != 0x1.999999999999ap-4)
18238 return (1);
18239 return (0);
18241 return 0;
18243 _ACEOF
18244 rm -f conftest$ac_exeext
18245 if { (ac_try="$ac_link"
18246 case "(($ac_try" in
18247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248 *) ac_try_echo=$ac_try;;
18249 esac
18250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18251 (eval "$ac_link") 2>&5
18252 ac_status=$?
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18255 { (case "(($ac_try" in
18256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18257 *) ac_try_echo=$ac_try;;
18258 esac
18259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18260 (eval "$ac_try") 2>&5
18261 ac_status=$?
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); }; }; then
18264 llvm_cv_c_printf_a=yes
18265 else
18266 echo "$as_me: program exited with status $ac_status" >&5
18267 echo "$as_me: failed program was:" >&5
18268 sed 's/^/| /' conftest.$ac_ext >&5
18270 ( exit $ac_status )
18271 llvmac_cv_c_printf_a=no
18273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18277 ac_ext=c
18278 ac_cpp='$CPP $CPPFLAGS'
18279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18284 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18285 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18286 if test "$llvm_cv_c_printf_a" = "yes"; then
18288 cat >>confdefs.h <<\_ACEOF
18289 #define HAVE_PRINTF_A 1
18290 _ACEOF
18295 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18296 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18297 if test "${ac_cv_func_rand48+set}" = set; then
18298 echo $ECHO_N "(cached) $ECHO_C" >&6
18299 else
18300 ac_ext=cpp
18301 ac_cpp='$CXXCPP $CPPFLAGS'
18302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18306 cat >conftest.$ac_ext <<_ACEOF
18307 /* confdefs.h. */
18308 _ACEOF
18309 cat confdefs.h >>conftest.$ac_ext
18310 cat >>conftest.$ac_ext <<_ACEOF
18311 /* end confdefs.h. */
18312 #include <stdlib.h>
18314 main ()
18316 srand48(0);lrand48();drand48();
18318 return 0;
18320 _ACEOF
18321 rm -f conftest.$ac_objext
18322 if { (ac_try="$ac_compile"
18323 case "(($ac_try" in
18324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18325 *) ac_try_echo=$ac_try;;
18326 esac
18327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18328 (eval "$ac_compile") 2>conftest.er1
18329 ac_status=$?
18330 grep -v '^ *+' conftest.er1 >conftest.err
18331 rm -f conftest.er1
18332 cat conftest.err >&5
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); } &&
18335 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18336 { (case "(($ac_try" in
18337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338 *) ac_try_echo=$ac_try;;
18339 esac
18340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341 (eval "$ac_try") 2>&5
18342 ac_status=$?
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; } &&
18345 { ac_try='test -s conftest.$ac_objext'
18346 { (case "(($ac_try" in
18347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18348 *) ac_try_echo=$ac_try;;
18349 esac
18350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18351 (eval "$ac_try") 2>&5
18352 ac_status=$?
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; }; then
18355 ac_cv_func_rand48=yes
18356 else
18357 echo "$as_me: failed program was:" >&5
18358 sed 's/^/| /' conftest.$ac_ext >&5
18360 ac_cv_func_rand48=no
18363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18364 ac_ext=c
18365 ac_cpp='$CPP $CPPFLAGS'
18366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18371 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18372 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18374 if test "$ac_cv_func_rand48" = "yes" ; then
18376 cat >>confdefs.h <<\_ACEOF
18377 #define HAVE_RAND48 1
18378 _ACEOF
18384 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18385 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18386 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18387 echo $ECHO_N "(cached) $ECHO_C" >&6
18388 else
18389 ac_ext=cpp
18390 ac_cpp='$CXXCPP $CPPFLAGS'
18391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18395 cat >conftest.$ac_ext <<_ACEOF
18396 /* confdefs.h. */
18397 _ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h. */
18401 #include <math.h>
18403 main ()
18405 float f; isnan(f);
18407 return 0;
18409 _ACEOF
18410 rm -f conftest.$ac_objext
18411 if { (ac_try="$ac_compile"
18412 case "(($ac_try" in
18413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18414 *) ac_try_echo=$ac_try;;
18415 esac
18416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18417 (eval "$ac_compile") 2>conftest.er1
18418 ac_status=$?
18419 grep -v '^ *+' conftest.er1 >conftest.err
18420 rm -f conftest.er1
18421 cat conftest.err >&5
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); } &&
18424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18425 { (case "(($ac_try" in
18426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18427 *) ac_try_echo=$ac_try;;
18428 esac
18429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18430 (eval "$ac_try") 2>&5
18431 ac_status=$?
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); }; } &&
18434 { ac_try='test -s conftest.$ac_objext'
18435 { (case "(($ac_try" in
18436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437 *) ac_try_echo=$ac_try;;
18438 esac
18439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18440 (eval "$ac_try") 2>&5
18441 ac_status=$?
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); }; }; then
18444 ac_cv_func_isnan_in_math_h=yes
18445 else
18446 echo "$as_me: failed program was:" >&5
18447 sed 's/^/| /' conftest.$ac_ext >&5
18449 ac_cv_func_isnan_in_math_h=no
18452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18453 ac_ext=c
18454 ac_cpp='$CPP $CPPFLAGS'
18455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18460 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18461 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18464 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18466 cat >>confdefs.h <<\_ACEOF
18467 #define HAVE_ISNAN_IN_MATH_H 1
18468 _ACEOF
18472 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18473 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18474 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18475 echo $ECHO_N "(cached) $ECHO_C" >&6
18476 else
18477 ac_ext=cpp
18478 ac_cpp='$CXXCPP $CPPFLAGS'
18479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18483 cat >conftest.$ac_ext <<_ACEOF
18484 /* confdefs.h. */
18485 _ACEOF
18486 cat confdefs.h >>conftest.$ac_ext
18487 cat >>conftest.$ac_ext <<_ACEOF
18488 /* end confdefs.h. */
18489 #include <cmath>
18491 main ()
18493 float f; isnan(f);
18495 return 0;
18497 _ACEOF
18498 rm -f conftest.$ac_objext
18499 if { (ac_try="$ac_compile"
18500 case "(($ac_try" in
18501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18502 *) ac_try_echo=$ac_try;;
18503 esac
18504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18505 (eval "$ac_compile") 2>conftest.er1
18506 ac_status=$?
18507 grep -v '^ *+' conftest.er1 >conftest.err
18508 rm -f conftest.er1
18509 cat conftest.err >&5
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); } &&
18512 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18513 { (case "(($ac_try" in
18514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515 *) ac_try_echo=$ac_try;;
18516 esac
18517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518 (eval "$ac_try") 2>&5
18519 ac_status=$?
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); }; } &&
18522 { ac_try='test -s conftest.$ac_objext'
18523 { (case "(($ac_try" in
18524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18525 *) ac_try_echo=$ac_try;;
18526 esac
18527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18528 (eval "$ac_try") 2>&5
18529 ac_status=$?
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; }; then
18532 ac_cv_func_isnan_in_cmath=yes
18533 else
18534 echo "$as_me: failed program was:" >&5
18535 sed 's/^/| /' conftest.$ac_ext >&5
18537 ac_cv_func_isnan_in_cmath=no
18540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18541 ac_ext=c
18542 ac_cpp='$CPP $CPPFLAGS'
18543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18548 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18549 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18551 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18553 cat >>confdefs.h <<\_ACEOF
18554 #define HAVE_ISNAN_IN_CMATH 1
18555 _ACEOF
18559 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18560 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18561 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18562 echo $ECHO_N "(cached) $ECHO_C" >&6
18563 else
18564 ac_ext=cpp
18565 ac_cpp='$CXXCPP $CPPFLAGS'
18566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18570 cat >conftest.$ac_ext <<_ACEOF
18571 /* confdefs.h. */
18572 _ACEOF
18573 cat confdefs.h >>conftest.$ac_ext
18574 cat >>conftest.$ac_ext <<_ACEOF
18575 /* end confdefs.h. */
18576 #include <cmath>
18578 main ()
18580 float f; std::isnan(f);
18582 return 0;
18584 _ACEOF
18585 rm -f conftest.$ac_objext
18586 if { (ac_try="$ac_compile"
18587 case "(($ac_try" in
18588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18589 *) ac_try_echo=$ac_try;;
18590 esac
18591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18592 (eval "$ac_compile") 2>conftest.er1
18593 ac_status=$?
18594 grep -v '^ *+' conftest.er1 >conftest.err
18595 rm -f conftest.er1
18596 cat conftest.err >&5
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); } &&
18599 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18600 { (case "(($ac_try" in
18601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18602 *) ac_try_echo=$ac_try;;
18603 esac
18604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18605 (eval "$ac_try") 2>&5
18606 ac_status=$?
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; } &&
18609 { ac_try='test -s conftest.$ac_objext'
18610 { (case "(($ac_try" in
18611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612 *) ac_try_echo=$ac_try;;
18613 esac
18614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18615 (eval "$ac_try") 2>&5
18616 ac_status=$?
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); }; }; then
18619 ac_cv_func_std_isnan_in_cmath=yes
18620 else
18621 echo "$as_me: failed program was:" >&5
18622 sed 's/^/| /' conftest.$ac_ext >&5
18624 ac_cv_func_std_isnan_in_cmath=no
18627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18628 ac_ext=c
18629 ac_cpp='$CPP $CPPFLAGS'
18630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18635 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18636 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18638 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18640 cat >>confdefs.h <<\_ACEOF
18641 #define HAVE_STD_ISNAN_IN_CMATH 1
18642 _ACEOF
18647 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18648 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18649 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18650 echo $ECHO_N "(cached) $ECHO_C" >&6
18651 else
18652 ac_ext=cpp
18653 ac_cpp='$CXXCPP $CPPFLAGS'
18654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18658 cat >conftest.$ac_ext <<_ACEOF
18659 /* confdefs.h. */
18660 _ACEOF
18661 cat confdefs.h >>conftest.$ac_ext
18662 cat >>conftest.$ac_ext <<_ACEOF
18663 /* end confdefs.h. */
18664 #include <math.h>
18666 main ()
18668 float f; isinf(f);
18670 return 0;
18672 _ACEOF
18673 rm -f conftest.$ac_objext
18674 if { (ac_try="$ac_compile"
18675 case "(($ac_try" in
18676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18677 *) ac_try_echo=$ac_try;;
18678 esac
18679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18680 (eval "$ac_compile") 2>conftest.er1
18681 ac_status=$?
18682 grep -v '^ *+' conftest.er1 >conftest.err
18683 rm -f conftest.er1
18684 cat conftest.err >&5
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); } &&
18687 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18688 { (case "(($ac_try" in
18689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18690 *) ac_try_echo=$ac_try;;
18691 esac
18692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18693 (eval "$ac_try") 2>&5
18694 ac_status=$?
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); }; } &&
18697 { ac_try='test -s conftest.$ac_objext'
18698 { (case "(($ac_try" in
18699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700 *) ac_try_echo=$ac_try;;
18701 esac
18702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18703 (eval "$ac_try") 2>&5
18704 ac_status=$?
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; }; then
18707 ac_cv_func_isinf_in_math_h=yes
18708 else
18709 echo "$as_me: failed program was:" >&5
18710 sed 's/^/| /' conftest.$ac_ext >&5
18712 ac_cv_func_isinf_in_math_h=no
18715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18716 ac_ext=c
18717 ac_cpp='$CPP $CPPFLAGS'
18718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18723 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18724 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18726 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18728 cat >>confdefs.h <<\_ACEOF
18729 #define HAVE_ISINF_IN_MATH_H 1
18730 _ACEOF
18734 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18735 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18736 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18737 echo $ECHO_N "(cached) $ECHO_C" >&6
18738 else
18739 ac_ext=cpp
18740 ac_cpp='$CXXCPP $CPPFLAGS'
18741 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18742 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18743 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18745 cat >conftest.$ac_ext <<_ACEOF
18746 /* confdefs.h. */
18747 _ACEOF
18748 cat confdefs.h >>conftest.$ac_ext
18749 cat >>conftest.$ac_ext <<_ACEOF
18750 /* end confdefs.h. */
18751 #include <cmath>
18753 main ()
18755 float f; isinf(f);
18757 return 0;
18759 _ACEOF
18760 rm -f conftest.$ac_objext
18761 if { (ac_try="$ac_compile"
18762 case "(($ac_try" in
18763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18764 *) ac_try_echo=$ac_try;;
18765 esac
18766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18767 (eval "$ac_compile") 2>conftest.er1
18768 ac_status=$?
18769 grep -v '^ *+' conftest.er1 >conftest.err
18770 rm -f conftest.er1
18771 cat conftest.err >&5
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); } &&
18774 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18775 { (case "(($ac_try" in
18776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18777 *) ac_try_echo=$ac_try;;
18778 esac
18779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18780 (eval "$ac_try") 2>&5
18781 ac_status=$?
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); }; } &&
18784 { ac_try='test -s conftest.$ac_objext'
18785 { (case "(($ac_try" in
18786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787 *) ac_try_echo=$ac_try;;
18788 esac
18789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18790 (eval "$ac_try") 2>&5
18791 ac_status=$?
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); }; }; then
18794 ac_cv_func_isinf_in_cmath=yes
18795 else
18796 echo "$as_me: failed program was:" >&5
18797 sed 's/^/| /' conftest.$ac_ext >&5
18799 ac_cv_func_isinf_in_cmath=no
18802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18803 ac_ext=c
18804 ac_cpp='$CPP $CPPFLAGS'
18805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18810 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18811 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18813 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18815 cat >>confdefs.h <<\_ACEOF
18816 #define HAVE_ISINF_IN_CMATH 1
18817 _ACEOF
18821 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18822 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18823 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18824 echo $ECHO_N "(cached) $ECHO_C" >&6
18825 else
18826 ac_ext=cpp
18827 ac_cpp='$CXXCPP $CPPFLAGS'
18828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18832 cat >conftest.$ac_ext <<_ACEOF
18833 /* confdefs.h. */
18834 _ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h. */
18838 #include <cmath>
18840 main ()
18842 float f; std::isinf(f)}
18844 return 0;
18846 _ACEOF
18847 rm -f conftest.$ac_objext
18848 if { (ac_try="$ac_compile"
18849 case "(($ac_try" in
18850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851 *) ac_try_echo=$ac_try;;
18852 esac
18853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854 (eval "$ac_compile") 2>conftest.er1
18855 ac_status=$?
18856 grep -v '^ *+' conftest.er1 >conftest.err
18857 rm -f conftest.er1
18858 cat conftest.err >&5
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); } &&
18861 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18862 { (case "(($ac_try" in
18863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18864 *) ac_try_echo=$ac_try;;
18865 esac
18866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18867 (eval "$ac_try") 2>&5
18868 ac_status=$?
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; } &&
18871 { ac_try='test -s conftest.$ac_objext'
18872 { (case "(($ac_try" in
18873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874 *) ac_try_echo=$ac_try;;
18875 esac
18876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877 (eval "$ac_try") 2>&5
18878 ac_status=$?
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; }; then
18881 ac_cv_func_std_isinf_in_cmath=yes
18882 else
18883 echo "$as_me: failed program was:" >&5
18884 sed 's/^/| /' conftest.$ac_ext >&5
18886 ac_cv_func_std_isinf_in_cmath=no
18889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18890 ac_ext=c
18891 ac_cpp='$CPP $CPPFLAGS'
18892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18897 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18898 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18900 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18902 cat >>confdefs.h <<\_ACEOF
18903 #define HAVE_STD_ISINF_IN_CMATH 1
18904 _ACEOF
18908 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18909 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18910 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18911 echo $ECHO_N "(cached) $ECHO_C" >&6
18912 else
18913 ac_ext=cpp
18914 ac_cpp='$CXXCPP $CPPFLAGS'
18915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18919 cat >conftest.$ac_ext <<_ACEOF
18920 /* confdefs.h. */
18921 _ACEOF
18922 cat confdefs.h >>conftest.$ac_ext
18923 cat >>conftest.$ac_ext <<_ACEOF
18924 /* end confdefs.h. */
18925 #include <ieeefp.h>
18927 main ()
18929 float f; finite(f);
18931 return 0;
18933 _ACEOF
18934 rm -f conftest.$ac_objext
18935 if { (ac_try="$ac_compile"
18936 case "(($ac_try" in
18937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18938 *) ac_try_echo=$ac_try;;
18939 esac
18940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18941 (eval "$ac_compile") 2>conftest.er1
18942 ac_status=$?
18943 grep -v '^ *+' conftest.er1 >conftest.err
18944 rm -f conftest.er1
18945 cat conftest.err >&5
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); } &&
18948 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18949 { (case "(($ac_try" in
18950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951 *) ac_try_echo=$ac_try;;
18952 esac
18953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954 (eval "$ac_try") 2>&5
18955 ac_status=$?
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); }; } &&
18958 { ac_try='test -s conftest.$ac_objext'
18959 { (case "(($ac_try" in
18960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18961 *) ac_try_echo=$ac_try;;
18962 esac
18963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18964 (eval "$ac_try") 2>&5
18965 ac_status=$?
18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); }; }; then
18968 ac_cv_func_finite_in_ieeefp_h=yes
18969 else
18970 echo "$as_me: failed program was:" >&5
18971 sed 's/^/| /' conftest.$ac_ext >&5
18973 ac_cv_func_finite_in_ieeefp_h=no
18976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18977 ac_ext=c
18978 ac_cpp='$CPP $CPPFLAGS'
18979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18984 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18985 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18987 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18989 cat >>confdefs.h <<\_ACEOF
18990 #define HAVE_FINITE_IN_IEEEFP_H 1
18991 _ACEOF
18997 if test "$llvm_cv_platform_type" = "Unix" ; then
19000 for ac_header in stdlib.h unistd.h
19002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19007 echo $ECHO_N "(cached) $ECHO_C" >&6
19009 ac_res=`eval echo '${'$as_ac_Header'}'`
19010 { echo "$as_me:$LINENO: result: $ac_res" >&5
19011 echo "${ECHO_T}$ac_res" >&6; }
19012 else
19013 # Is the header compilable?
19014 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19015 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19016 cat >conftest.$ac_ext <<_ACEOF
19017 /* confdefs.h. */
19018 _ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h. */
19022 $ac_includes_default
19023 #include <$ac_header>
19024 _ACEOF
19025 rm -f conftest.$ac_objext
19026 if { (ac_try="$ac_compile"
19027 case "(($ac_try" in
19028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19029 *) ac_try_echo=$ac_try;;
19030 esac
19031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19032 (eval "$ac_compile") 2>conftest.er1
19033 ac_status=$?
19034 grep -v '^ *+' conftest.er1 >conftest.err
19035 rm -f conftest.er1
19036 cat conftest.err >&5
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); } &&
19039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19040 { (case "(($ac_try" in
19041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042 *) ac_try_echo=$ac_try;;
19043 esac
19044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19045 (eval "$ac_try") 2>&5
19046 ac_status=$?
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); }; } &&
19049 { ac_try='test -s conftest.$ac_objext'
19050 { (case "(($ac_try" in
19051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19052 *) ac_try_echo=$ac_try;;
19053 esac
19054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19055 (eval "$ac_try") 2>&5
19056 ac_status=$?
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); }; }; then
19059 ac_header_compiler=yes
19060 else
19061 echo "$as_me: failed program was:" >&5
19062 sed 's/^/| /' conftest.$ac_ext >&5
19064 ac_header_compiler=no
19067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19069 echo "${ECHO_T}$ac_header_compiler" >&6; }
19071 # Is the header present?
19072 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19074 cat >conftest.$ac_ext <<_ACEOF
19075 /* confdefs.h. */
19076 _ACEOF
19077 cat confdefs.h >>conftest.$ac_ext
19078 cat >>conftest.$ac_ext <<_ACEOF
19079 /* end confdefs.h. */
19080 #include <$ac_header>
19081 _ACEOF
19082 if { (ac_try="$ac_cpp conftest.$ac_ext"
19083 case "(($ac_try" in
19084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085 *) ac_try_echo=$ac_try;;
19086 esac
19087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19089 ac_status=$?
19090 grep -v '^ *+' conftest.er1 >conftest.err
19091 rm -f conftest.er1
19092 cat conftest.err >&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); } >/dev/null; then
19095 if test -s conftest.err; then
19096 ac_cpp_err=$ac_c_preproc_warn_flag
19097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19098 else
19099 ac_cpp_err=
19101 else
19102 ac_cpp_err=yes
19104 if test -z "$ac_cpp_err"; then
19105 ac_header_preproc=yes
19106 else
19107 echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.$ac_ext >&5
19110 ac_header_preproc=no
19113 rm -f conftest.err conftest.$ac_ext
19114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19115 echo "${ECHO_T}$ac_header_preproc" >&6; }
19117 # So? What about this header?
19118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19119 yes:no: )
19120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19124 ac_header_preproc=yes
19126 no:yes:* )
19127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19134 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19139 ( cat <<\_ASBOX
19140 ## ----------------------------------- ##
19141 ## Report this to llvmbugs@cs.uiuc.edu ##
19142 ## ----------------------------------- ##
19143 _ASBOX
19144 ) | sed "s/^/$as_me: WARNING: /" >&2
19146 esac
19147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19150 echo $ECHO_N "(cached) $ECHO_C" >&6
19151 else
19152 eval "$as_ac_Header=\$ac_header_preproc"
19154 ac_res=`eval echo '${'$as_ac_Header'}'`
19155 { echo "$as_me:$LINENO: result: $ac_res" >&5
19156 echo "${ECHO_T}$ac_res" >&6; }
19159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19160 cat >>confdefs.h <<_ACEOF
19161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19162 _ACEOF
19166 done
19169 for ac_func in getpagesize
19171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19172 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19175 echo $ECHO_N "(cached) $ECHO_C" >&6
19176 else
19177 cat >conftest.$ac_ext <<_ACEOF
19178 /* confdefs.h. */
19179 _ACEOF
19180 cat confdefs.h >>conftest.$ac_ext
19181 cat >>conftest.$ac_ext <<_ACEOF
19182 /* end confdefs.h. */
19183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19185 #define $ac_func innocuous_$ac_func
19187 /* System header to define __stub macros and hopefully few prototypes,
19188 which can conflict with char $ac_func (); below.
19189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19190 <limits.h> exists even on freestanding compilers. */
19192 #ifdef __STDC__
19193 # include <limits.h>
19194 #else
19195 # include <assert.h>
19196 #endif
19198 #undef $ac_func
19200 /* Override any GCC internal prototype to avoid an error.
19201 Use char because int might match the return type of a GCC
19202 builtin and then its argument prototype would still apply. */
19203 #ifdef __cplusplus
19204 extern "C"
19205 #endif
19206 char $ac_func ();
19207 /* The GNU C library defines this for functions which it implements
19208 to always fail with ENOSYS. Some functions are actually named
19209 something starting with __ and the normal name is an alias. */
19210 #if defined __stub_$ac_func || defined __stub___$ac_func
19211 choke me
19212 #endif
19215 main ()
19217 return $ac_func ();
19219 return 0;
19221 _ACEOF
19222 rm -f conftest.$ac_objext conftest$ac_exeext
19223 if { (ac_try="$ac_link"
19224 case "(($ac_try" in
19225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19226 *) ac_try_echo=$ac_try;;
19227 esac
19228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19229 (eval "$ac_link") 2>conftest.er1
19230 ac_status=$?
19231 grep -v '^ *+' conftest.er1 >conftest.err
19232 rm -f conftest.er1
19233 cat conftest.err >&5
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); } &&
19236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19237 { (case "(($ac_try" in
19238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19239 *) ac_try_echo=$ac_try;;
19240 esac
19241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19242 (eval "$ac_try") 2>&5
19243 ac_status=$?
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); }; } &&
19246 { ac_try='test -s conftest$ac_exeext'
19247 { (case "(($ac_try" in
19248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19249 *) ac_try_echo=$ac_try;;
19250 esac
19251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19252 (eval "$ac_try") 2>&5
19253 ac_status=$?
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); }; }; then
19256 eval "$as_ac_var=yes"
19257 else
19258 echo "$as_me: failed program was:" >&5
19259 sed 's/^/| /' conftest.$ac_ext >&5
19261 eval "$as_ac_var=no"
19264 rm -f core conftest.err conftest.$ac_objext \
19265 conftest$ac_exeext conftest.$ac_ext
19267 ac_res=`eval echo '${'$as_ac_var'}'`
19268 { echo "$as_me:$LINENO: result: $ac_res" >&5
19269 echo "${ECHO_T}$ac_res" >&6; }
19270 if test `eval echo '${'$as_ac_var'}'` = yes; then
19271 cat >>confdefs.h <<_ACEOF
19272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19273 _ACEOF
19276 done
19278 { echo "$as_me:$LINENO: checking for working mmap" >&5
19279 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19280 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19281 echo $ECHO_N "(cached) $ECHO_C" >&6
19282 else
19283 if test "$cross_compiling" = yes; then
19284 ac_cv_func_mmap_fixed_mapped=no
19285 else
19286 cat >conftest.$ac_ext <<_ACEOF
19287 /* confdefs.h. */
19288 _ACEOF
19289 cat confdefs.h >>conftest.$ac_ext
19290 cat >>conftest.$ac_ext <<_ACEOF
19291 /* end confdefs.h. */
19292 $ac_includes_default
19293 /* malloc might have been renamed as rpl_malloc. */
19294 #undef malloc
19296 /* Thanks to Mike Haertel and Jim Avera for this test.
19297 Here is a matrix of mmap possibilities:
19298 mmap private not fixed
19299 mmap private fixed at somewhere currently unmapped
19300 mmap private fixed at somewhere already mapped
19301 mmap shared not fixed
19302 mmap shared fixed at somewhere currently unmapped
19303 mmap shared fixed at somewhere already mapped
19304 For private mappings, we should verify that changes cannot be read()
19305 back from the file, nor mmap's back from the file at a different
19306 address. (There have been systems where private was not correctly
19307 implemented like the infamous i386 svr4.0, and systems where the
19308 VM page cache was not coherent with the file system buffer cache
19309 like early versions of FreeBSD and possibly contemporary NetBSD.)
19310 For shared mappings, we should conversely verify that changes get
19311 propagated back to all the places they're supposed to be.
19313 Grep wants private fixed already mapped.
19314 The main things grep needs to know about mmap are:
19315 * does it exist and is it safe to write into the mmap'd area
19316 * how to use it (BSD variants) */
19318 #include <fcntl.h>
19319 #include <sys/mman.h>
19321 #if !STDC_HEADERS && !HAVE_STDLIB_H
19322 char *malloc ();
19323 #endif
19325 /* This mess was copied from the GNU getpagesize.h. */
19326 #if !HAVE_GETPAGESIZE
19327 /* Assume that all systems that can run configure have sys/param.h. */
19328 # if !HAVE_SYS_PARAM_H
19329 # define HAVE_SYS_PARAM_H 1
19330 # endif
19332 # ifdef _SC_PAGESIZE
19333 # define getpagesize() sysconf(_SC_PAGESIZE)
19334 # else /* no _SC_PAGESIZE */
19335 # if HAVE_SYS_PARAM_H
19336 # include <sys/param.h>
19337 # ifdef EXEC_PAGESIZE
19338 # define getpagesize() EXEC_PAGESIZE
19339 # else /* no EXEC_PAGESIZE */
19340 # ifdef NBPG
19341 # define getpagesize() NBPG * CLSIZE
19342 # ifndef CLSIZE
19343 # define CLSIZE 1
19344 # endif /* no CLSIZE */
19345 # else /* no NBPG */
19346 # ifdef NBPC
19347 # define getpagesize() NBPC
19348 # else /* no NBPC */
19349 # ifdef PAGESIZE
19350 # define getpagesize() PAGESIZE
19351 # endif /* PAGESIZE */
19352 # endif /* no NBPC */
19353 # endif /* no NBPG */
19354 # endif /* no EXEC_PAGESIZE */
19355 # else /* no HAVE_SYS_PARAM_H */
19356 # define getpagesize() 8192 /* punt totally */
19357 # endif /* no HAVE_SYS_PARAM_H */
19358 # endif /* no _SC_PAGESIZE */
19360 #endif /* no HAVE_GETPAGESIZE */
19363 main ()
19365 char *data, *data2, *data3;
19366 int i, pagesize;
19367 int fd;
19369 pagesize = getpagesize ();
19371 /* First, make a file with some known garbage in it. */
19372 data = (char *) malloc (pagesize);
19373 if (!data)
19374 return 1;
19375 for (i = 0; i < pagesize; ++i)
19376 *(data + i) = rand ();
19377 umask (0);
19378 fd = creat ("conftest.mmap", 0600);
19379 if (fd < 0)
19380 return 1;
19381 if (write (fd, data, pagesize) != pagesize)
19382 return 1;
19383 close (fd);
19385 /* Next, try to mmap the file at a fixed address which already has
19386 something else allocated at it. If we can, also make sure that
19387 we see the same garbage. */
19388 fd = open ("conftest.mmap", O_RDWR);
19389 if (fd < 0)
19390 return 1;
19391 data2 = (char *) malloc (2 * pagesize);
19392 if (!data2)
19393 return 1;
19394 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19395 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19396 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19397 return 1;
19398 for (i = 0; i < pagesize; ++i)
19399 if (*(data + i) != *(data2 + i))
19400 return 1;
19402 /* Finally, make sure that changes to the mapped area do not
19403 percolate back to the file as seen by read(). (This is a bug on
19404 some variants of i386 svr4.0.) */
19405 for (i = 0; i < pagesize; ++i)
19406 *(data2 + i) = *(data2 + i) + 1;
19407 data3 = (char *) malloc (pagesize);
19408 if (!data3)
19409 return 1;
19410 if (read (fd, data3, pagesize) != pagesize)
19411 return 1;
19412 for (i = 0; i < pagesize; ++i)
19413 if (*(data + i) != *(data3 + i))
19414 return 1;
19415 close (fd);
19416 return 0;
19418 _ACEOF
19419 rm -f conftest$ac_exeext
19420 if { (ac_try="$ac_link"
19421 case "(($ac_try" in
19422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423 *) ac_try_echo=$ac_try;;
19424 esac
19425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19426 (eval "$ac_link") 2>&5
19427 ac_status=$?
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19430 { (case "(($ac_try" in
19431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432 *) ac_try_echo=$ac_try;;
19433 esac
19434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19435 (eval "$ac_try") 2>&5
19436 ac_status=$?
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); }; }; then
19439 ac_cv_func_mmap_fixed_mapped=yes
19440 else
19441 echo "$as_me: program exited with status $ac_status" >&5
19442 echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19445 ( exit $ac_status )
19446 ac_cv_func_mmap_fixed_mapped=no
19448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19453 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19454 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19455 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19457 cat >>confdefs.h <<\_ACEOF
19458 #define HAVE_MMAP 1
19459 _ACEOF
19462 rm -f conftest.mmap
19464 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19465 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19466 if test "${ac_cv_func_mmap_file+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19468 else
19469 ac_ext=c
19470 ac_cpp='$CPP $CPPFLAGS'
19471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19475 if test "$cross_compiling" = yes; then
19476 ac_cv_func_mmap_file=no
19477 else
19478 cat >conftest.$ac_ext <<_ACEOF
19480 /* confdefs.h. */
19481 _ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h. */
19486 #include <sys/types.h>
19487 #include <sys/mman.h>
19488 #include <fcntl.h>
19491 main ()
19494 int fd;
19495 fd = creat ("foo",0777);
19496 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19497 unlink ("foo");
19498 return (fd != (int) MAP_FAILED);
19500 return 0;
19502 _ACEOF
19503 rm -f conftest$ac_exeext
19504 if { (ac_try="$ac_link"
19505 case "(($ac_try" in
19506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19507 *) ac_try_echo=$ac_try;;
19508 esac
19509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19510 (eval "$ac_link") 2>&5
19511 ac_status=$?
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19514 { (case "(($ac_try" in
19515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516 *) ac_try_echo=$ac_try;;
19517 esac
19518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19519 (eval "$ac_try") 2>&5
19520 ac_status=$?
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; }; then
19523 ac_cv_func_mmap_file=yes
19524 else
19525 echo "$as_me: program exited with status $ac_status" >&5
19526 echo "$as_me: failed program was:" >&5
19527 sed 's/^/| /' conftest.$ac_ext >&5
19529 ( exit $ac_status )
19530 ac_cv_func_mmap_file=no
19532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19536 ac_ext=c
19537 ac_cpp='$CPP $CPPFLAGS'
19538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19544 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19545 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19546 if test "$ac_cv_func_mmap_file" = yes; then
19548 cat >>confdefs.h <<\_ACEOF
19549 #define HAVE_MMAP_FILE
19550 _ACEOF
19552 MMAP_FILE=yes
19556 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19557 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19558 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19559 echo $ECHO_N "(cached) $ECHO_C" >&6
19560 else
19561 if test "$llvm_cv_os_type" = "Interix" ; then
19562 ac_cv_need_dev_zero_for_mmap=yes
19563 else
19564 ac_cv_need_dev_zero_for_mmap=no
19568 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19569 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19570 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19572 cat >>confdefs.h <<\_ACEOF
19573 #define NEED_DEV_ZERO_FOR_MMAP 1
19574 _ACEOF
19578 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19579 then
19580 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19581 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19583 if test "$ac_cv_func_mmap_file" = "no"
19584 then
19585 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19586 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19590 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19591 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19592 cat >conftest.$ac_ext <<_ACEOF
19593 /* confdefs.h. */
19594 _ACEOF
19595 cat confdefs.h >>conftest.$ac_ext
19596 cat >>conftest.$ac_ext <<_ACEOF
19597 /* end confdefs.h. */
19598 int main() {
19599 volatile unsigned long val = 1;
19600 __sync_synchronize();
19601 __sync_val_compare_and_swap(&val, 1, 0);
19602 __sync_add_and_fetch(&val, 1);
19603 __sync_sub_and_fetch(&val, 1);
19604 return 0;
19607 _ACEOF
19608 rm -f conftest.$ac_objext conftest$ac_exeext
19609 if { (ac_try="$ac_link"
19610 case "(($ac_try" in
19611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19612 *) ac_try_echo=$ac_try;;
19613 esac
19614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19615 (eval "$ac_link") 2>conftest.er1
19616 ac_status=$?
19617 grep -v '^ *+' conftest.er1 >conftest.err
19618 rm -f conftest.er1
19619 cat conftest.err >&5
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); } &&
19622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19623 { (case "(($ac_try" in
19624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625 *) ac_try_echo=$ac_try;;
19626 esac
19627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19628 (eval "$ac_try") 2>&5
19629 ac_status=$?
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); }; } &&
19632 { ac_try='test -s conftest$ac_exeext'
19633 { (case "(($ac_try" in
19634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635 *) ac_try_echo=$ac_try;;
19636 esac
19637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19638 (eval "$ac_try") 2>&5
19639 ac_status=$?
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; }; then
19642 { echo "$as_me:$LINENO: result: yes" >&5
19643 echo "${ECHO_T}yes" >&6; }
19645 cat >>confdefs.h <<\_ACEOF
19646 #define LLVM_MULTITHREADED 1
19647 _ACEOF
19649 else
19650 echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19653 { echo "$as_me:$LINENO: result: no" >&5
19654 echo "${ECHO_T}no" >&6; }
19656 cat >>confdefs.h <<\_ACEOF
19657 #define LLVM_MULTITHREADED 0
19658 _ACEOF
19660 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19661 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19664 rm -f core conftest.err conftest.$ac_objext \
19665 conftest$ac_exeext conftest.$ac_ext
19669 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19670 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19671 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19672 if test "${llvm_cv_linux_mixed+set}" = set; then
19673 echo $ECHO_N "(cached) $ECHO_C" >&6
19674 else
19675 ac_ext=c
19676 ac_cpp='$CPP $CPPFLAGS'
19677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19681 cat >conftest.$ac_ext <<_ACEOF
19682 /* confdefs.h. */
19683 _ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h. */
19687 #ifndef __x86_64__
19688 error: Not x86-64 even if uname says so!
19689 #endif
19692 main ()
19696 return 0;
19698 _ACEOF
19699 rm -f conftest.$ac_objext
19700 if { (ac_try="$ac_compile"
19701 case "(($ac_try" in
19702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19703 *) ac_try_echo=$ac_try;;
19704 esac
19705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19706 (eval "$ac_compile") 2>conftest.er1
19707 ac_status=$?
19708 grep -v '^ *+' conftest.er1 >conftest.err
19709 rm -f conftest.er1
19710 cat conftest.err >&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } &&
19713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19714 { (case "(($ac_try" in
19715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716 *) ac_try_echo=$ac_try;;
19717 esac
19718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19719 (eval "$ac_try") 2>&5
19720 ac_status=$?
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); }; } &&
19723 { ac_try='test -s conftest.$ac_objext'
19724 { (case "(($ac_try" in
19725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19726 *) ac_try_echo=$ac_try;;
19727 esac
19728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19729 (eval "$ac_try") 2>&5
19730 ac_status=$?
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); }; }; then
19733 llvm_cv_linux_mixed=no
19734 else
19735 echo "$as_me: failed program was:" >&5
19736 sed 's/^/| /' conftest.$ac_ext >&5
19738 llvm_cv_linux_mixed=yes
19741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19742 ac_ext=c
19743 ac_cpp='$CPP $CPPFLAGS'
19744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19750 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19751 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19753 if test "$llvm_cv_linux_mixed" = "yes"; then
19754 llvm_cv_target_arch="x86"
19755 ARCH="x86"
19760 for ac_func in __dso_handle
19762 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19763 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19765 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19766 echo $ECHO_N "(cached) $ECHO_C" >&6
19767 else
19768 cat >conftest.$ac_ext <<_ACEOF
19769 /* confdefs.h. */
19770 _ACEOF
19771 cat confdefs.h >>conftest.$ac_ext
19772 cat >>conftest.$ac_ext <<_ACEOF
19773 /* end confdefs.h. */
19774 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19776 #define $ac_func innocuous_$ac_func
19778 /* System header to define __stub macros and hopefully few prototypes,
19779 which can conflict with char $ac_func (); below.
19780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19781 <limits.h> exists even on freestanding compilers. */
19783 #ifdef __STDC__
19784 # include <limits.h>
19785 #else
19786 # include <assert.h>
19787 #endif
19789 #undef $ac_func
19791 /* Override any GCC internal prototype to avoid an error.
19792 Use char because int might match the return type of a GCC
19793 builtin and then its argument prototype would still apply. */
19794 #ifdef __cplusplus
19795 extern "C"
19796 #endif
19797 char $ac_func ();
19798 /* The GNU C library defines this for functions which it implements
19799 to always fail with ENOSYS. Some functions are actually named
19800 something starting with __ and the normal name is an alias. */
19801 #if defined __stub_$ac_func || defined __stub___$ac_func
19802 choke me
19803 #endif
19806 main ()
19808 return $ac_func ();
19810 return 0;
19812 _ACEOF
19813 rm -f conftest.$ac_objext conftest$ac_exeext
19814 if { (ac_try="$ac_link"
19815 case "(($ac_try" in
19816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19817 *) ac_try_echo=$ac_try;;
19818 esac
19819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19820 (eval "$ac_link") 2>conftest.er1
19821 ac_status=$?
19822 grep -v '^ *+' conftest.er1 >conftest.err
19823 rm -f conftest.er1
19824 cat conftest.err >&5
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); } &&
19827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19828 { (case "(($ac_try" in
19829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19830 *) ac_try_echo=$ac_try;;
19831 esac
19832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19833 (eval "$ac_try") 2>&5
19834 ac_status=$?
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); }; } &&
19837 { ac_try='test -s conftest$ac_exeext'
19838 { (case "(($ac_try" in
19839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19840 *) ac_try_echo=$ac_try;;
19841 esac
19842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19843 (eval "$ac_try") 2>&5
19844 ac_status=$?
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); }; }; then
19847 eval "$as_ac_var=yes"
19848 else
19849 echo "$as_me: failed program was:" >&5
19850 sed 's/^/| /' conftest.$ac_ext >&5
19852 eval "$as_ac_var=no"
19855 rm -f core conftest.err conftest.$ac_objext \
19856 conftest$ac_exeext conftest.$ac_ext
19858 ac_res=`eval echo '${'$as_ac_var'}'`
19859 { echo "$as_me:$LINENO: result: $ac_res" >&5
19860 echo "${ECHO_T}$ac_res" >&6; }
19861 if test `eval echo '${'$as_ac_var'}'` = yes; then
19862 cat >>confdefs.h <<_ACEOF
19863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19864 _ACEOF
19867 done
19870 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19871 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19872 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19873 echo $ECHO_N "(cached) $ECHO_C" >&6
19874 else
19875 llvm_cv_llvmgcc_sanity="no"
19876 if test -x "$LLVMGCC" ; then
19877 cp /dev/null conftest.c
19878 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19879 grep 'target datalayout =' > /dev/null 2>&1
19880 if test $? -eq 0 ; then
19881 llvm_cv_llvmgcc_sanity="yes"
19883 rm conftest.c
19886 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19887 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
19889 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
19890 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19891 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
19892 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19893 LLVMCC1=$llvmcc1path
19895 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19896 LLVMCC1PLUS=$llvmcc1pluspath
19898 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19899 LLVMGCCDIR=$llvmgccdir
19901 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
19902 LLVMGCC_LANGS=$llvmgcclangs
19904 { echo "$as_me:$LINENO: result: ok" >&5
19905 echo "${ECHO_T}ok" >&6; }
19908 SHLIBEXT=$libltdl_cv_shlibext
19911 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
19914 # Translate the various configuration directories and other basic
19915 # information into substitutions that will end up in Makefile.config.in
19916 # that these configured values can be used by the makefiles
19917 if test "${prefix}" = "NONE" ; then
19918 prefix="/usr/local"
19920 eval LLVM_PREFIX="${prefix}";
19921 eval LLVM_BINDIR="${prefix}/bin";
19922 eval LLVM_LIBDIR="${prefix}/lib";
19923 eval LLVM_DATADIR="${prefix}/share/llvm";
19924 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
19925 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19926 eval LLVM_INCLUDEDIR="${prefix}/include";
19927 eval LLVM_INFODIR="${prefix}/info";
19928 eval LLVM_MANDIR="${prefix}/man";
19929 LLVM_CONFIGTIME=`date`
19941 # Place the various directores into the config.h file as #defines so that we
19942 # can know about the installation paths within LLVM.
19944 cat >>confdefs.h <<_ACEOF
19945 #define LLVM_PREFIX "$LLVM_PREFIX"
19946 _ACEOF
19949 cat >>confdefs.h <<_ACEOF
19950 #define LLVM_BINDIR "$LLVM_BINDIR"
19951 _ACEOF
19954 cat >>confdefs.h <<_ACEOF
19955 #define LLVM_LIBDIR "$LLVM_LIBDIR"
19956 _ACEOF
19959 cat >>confdefs.h <<_ACEOF
19960 #define LLVM_DATADIR "$LLVM_DATADIR"
19961 _ACEOF
19964 cat >>confdefs.h <<_ACEOF
19965 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19966 _ACEOF
19969 cat >>confdefs.h <<_ACEOF
19970 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19971 _ACEOF
19974 cat >>confdefs.h <<_ACEOF
19975 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19976 _ACEOF
19979 cat >>confdefs.h <<_ACEOF
19980 #define LLVM_INFODIR "$LLVM_INFODIR"
19981 _ACEOF
19984 cat >>confdefs.h <<_ACEOF
19985 #define LLVM_MANDIR "$LLVM_MANDIR"
19986 _ACEOF
19989 cat >>confdefs.h <<_ACEOF
19990 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19991 _ACEOF
19994 cat >>confdefs.h <<_ACEOF
19995 #define LLVM_HOSTTRIPLE "$host"
19996 _ACEOF
19999 # Determine which bindings to build.
20000 if test "$BINDINGS_TO_BUILD" = auto ; then
20001 BINDINGS_TO_BUILD=""
20002 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20003 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20006 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20009 # This isn't really configurey, but it avoids having to repeat the list in
20010 # other files.
20011 ALL_BINDINGS=ocaml
20014 # Do any work necessary to ensure that bindings have what they need.
20015 binding_prereqs_failed=0
20016 for a_binding in $BINDINGS_TO_BUILD ; do
20017 case "$a_binding" in
20018 ocaml)
20019 if test "x$OCAMLC" = x ; then
20020 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20021 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20022 binding_prereqs_failed=1
20024 if test "x$OCAMLDEP" = x ; then
20025 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20026 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20027 binding_prereqs_failed=1
20029 if test "x$OCAMLOPT" = x ; then
20030 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20031 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20033 if test "x$with_ocaml_libdir" != xauto ; then
20034 OCAML_LIBDIR=$with_ocaml_libdir
20036 else
20037 ocaml_stdlib="`"$OCAMLC" -where`"
20038 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20039 then
20040 # ocaml stdlib is beneath our prefix; use stdlib
20041 OCAML_LIBDIR=$ocaml_stdlib
20043 else
20044 # ocaml stdlib is outside our prefix; use libdir/ocaml
20045 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20050 esac
20051 done
20052 if test "$binding_prereqs_failed" = 1 ; then
20053 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20054 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20055 { (exit 1); exit 1; }; }
20058 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20059 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20060 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20061 echo $ECHO_N "(cached) $ECHO_C" >&6
20062 else
20063 ac_ext=cpp
20064 ac_cpp='$CXXCPP $CPPFLAGS'
20065 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20066 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20067 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20069 oldcxxflags="$CXXFLAGS"
20070 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20071 cat >conftest.$ac_ext <<_ACEOF
20072 /* confdefs.h. */
20073 _ACEOF
20074 cat confdefs.h >>conftest.$ac_ext
20075 cat >>conftest.$ac_ext <<_ACEOF
20076 /* end confdefs.h. */
20079 main ()
20083 return 0;
20085 _ACEOF
20086 rm -f conftest.$ac_objext
20087 if { (ac_try="$ac_compile"
20088 case "(($ac_try" in
20089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20090 *) ac_try_echo=$ac_try;;
20091 esac
20092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20093 (eval "$ac_compile") 2>conftest.er1
20094 ac_status=$?
20095 grep -v '^ *+' conftest.er1 >conftest.err
20096 rm -f conftest.er1
20097 cat conftest.err >&5
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); } &&
20100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20101 { (case "(($ac_try" in
20102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20103 *) ac_try_echo=$ac_try;;
20104 esac
20105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20106 (eval "$ac_try") 2>&5
20107 ac_status=$?
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); }; } &&
20110 { ac_try='test -s conftest.$ac_objext'
20111 { (case "(($ac_try" in
20112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20113 *) ac_try_echo=$ac_try;;
20114 esac
20115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20116 (eval "$ac_try") 2>&5
20117 ac_status=$?
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); }; }; then
20120 llvm_cv_cxx_visibility_inlines_hidden=yes
20121 else
20122 echo "$as_me: failed program was:" >&5
20123 sed 's/^/| /' conftest.$ac_ext >&5
20125 llvm_cv_cxx_visibility_inlines_hidden=no
20128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20129 CXXFLAGS="$oldcxxflags"
20130 ac_ext=c
20131 ac_cpp='$CPP $CPPFLAGS'
20132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20138 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20139 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20140 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20141 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20143 else
20144 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20149 if test "$llvm_cv_link_use_r" = "yes" ; then
20150 RPATH="-Wl,-R"
20151 else
20152 RPATH="-Wl,-rpath"
20156 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20157 RDYNAMIC="-Wl,-export-dynamic"
20158 else
20159 RDYNAMIC=""
20164 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
20166 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20168 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20170 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20172 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20174 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20177 ac_config_files="$ac_config_files Makefile.config"
20180 ac_config_files="$ac_config_files llvm.spec"
20183 ac_config_files="$ac_config_files docs/doxygen.cfg"
20186 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20189 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20192 ac_config_commands="$ac_config_commands setup"
20194 ac_config_commands="$ac_config_commands Makefile"
20197 ac_config_commands="$ac_config_commands Makefile.common"
20200 ac_config_commands="$ac_config_commands examples/Makefile"
20203 ac_config_commands="$ac_config_commands lib/Makefile"
20206 ac_config_commands="$ac_config_commands runtime/Makefile"
20209 ac_config_commands="$ac_config_commands test/Makefile"
20212 ac_config_commands="$ac_config_commands test/Makefile.tests"
20215 ac_config_commands="$ac_config_commands unittests/Makefile"
20218 ac_config_commands="$ac_config_commands tools/Makefile"
20221 ac_config_commands="$ac_config_commands utils/Makefile"
20224 ac_config_commands="$ac_config_commands projects/Makefile"
20227 ac_config_commands="$ac_config_commands bindings/Makefile"
20230 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20234 cat >confcache <<\_ACEOF
20235 # This file is a shell script that caches the results of configure
20236 # tests run on this system so they can be shared between configure
20237 # scripts and configure runs, see configure's option --config-cache.
20238 # It is not useful on other systems. If it contains results you don't
20239 # want to keep, you may remove or edit it.
20241 # config.status only pays attention to the cache file if you give it
20242 # the --recheck option to rerun configure.
20244 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20245 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20246 # following values.
20248 _ACEOF
20250 # The following way of writing the cache mishandles newlines in values,
20251 # but we know of no workaround that is simple, portable, and efficient.
20252 # So, we kill variables containing newlines.
20253 # Ultrix sh set writes to stderr and can't be redirected directly,
20254 # and sets the high bit in the cache file unless we assign to the vars.
20256 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20257 eval ac_val=\$$ac_var
20258 case $ac_val in #(
20259 *${as_nl}*)
20260 case $ac_var in #(
20261 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20262 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20263 esac
20264 case $ac_var in #(
20265 _ | IFS | as_nl) ;; #(
20266 *) $as_unset $ac_var ;;
20267 esac ;;
20268 esac
20269 done
20271 (set) 2>&1 |
20272 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20273 *${as_nl}ac_space=\ *)
20274 # `set' does not quote correctly, so add quotes (double-quote
20275 # substitution turns \\\\ into \\, and sed turns \\ into \).
20276 sed -n \
20277 "s/'/'\\\\''/g;
20278 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20279 ;; #(
20281 # `set' quotes correctly as required by POSIX, so do not add quotes.
20282 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20284 esac |
20285 sort
20287 sed '
20288 /^ac_cv_env_/b end
20289 t clear
20290 :clear
20291 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20292 t end
20293 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20294 :end' >>confcache
20295 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20296 if test -w "$cache_file"; then
20297 test "x$cache_file" != "x/dev/null" &&
20298 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20299 echo "$as_me: updating cache $cache_file" >&6;}
20300 cat confcache >$cache_file
20301 else
20302 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20303 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20306 rm -f confcache
20308 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20309 # Let make expand exec_prefix.
20310 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20312 DEFS=-DHAVE_CONFIG_H
20314 ac_libobjs=
20315 ac_ltlibobjs=
20316 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20317 # 1. Remove the extension, and $U if already installed.
20318 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20319 ac_i=`echo "$ac_i" | sed "$ac_script"`
20320 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20321 # will be set to the directory where LIBOBJS objects are built.
20322 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20323 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20324 done
20325 LIBOBJS=$ac_libobjs
20327 LTLIBOBJS=$ac_ltlibobjs
20330 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20331 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20332 Usually this means the macro was only invoked conditionally." >&5
20333 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20334 Usually this means the macro was only invoked conditionally." >&2;}
20335 { (exit 1); exit 1; }; }
20337 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20338 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20339 Usually this means the macro was only invoked conditionally." >&5
20340 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20341 Usually this means the macro was only invoked conditionally." >&2;}
20342 { (exit 1); exit 1; }; }
20345 : ${CONFIG_STATUS=./config.status}
20346 ac_clean_files_save=$ac_clean_files
20347 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20348 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20349 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20350 cat >$CONFIG_STATUS <<_ACEOF
20351 #! $SHELL
20352 # Generated by $as_me.
20353 # Run this file to recreate the current configuration.
20354 # Compiler output produced by configure, useful for debugging
20355 # configure, is in config.log if it exists.
20357 debug=false
20358 ac_cs_recheck=false
20359 ac_cs_silent=false
20360 SHELL=\${CONFIG_SHELL-$SHELL}
20361 _ACEOF
20363 cat >>$CONFIG_STATUS <<\_ACEOF
20364 ## --------------------- ##
20365 ## M4sh Initialization. ##
20366 ## --------------------- ##
20368 # Be Bourne compatible
20369 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20370 emulate sh
20371 NULLCMD=:
20372 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20373 # is contrary to our usage. Disable this feature.
20374 alias -g '${1+"$@"}'='"$@"'
20375 setopt NO_GLOB_SUBST
20376 else
20377 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20379 BIN_SH=xpg4; export BIN_SH # for Tru64
20380 DUALCASE=1; export DUALCASE # for MKS sh
20383 # PATH needs CR
20384 # Avoid depending upon Character Ranges.
20385 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20386 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20387 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20388 as_cr_digits='0123456789'
20389 as_cr_alnum=$as_cr_Letters$as_cr_digits
20391 # The user is always right.
20392 if test "${PATH_SEPARATOR+set}" != set; then
20393 echo "#! /bin/sh" >conf$$.sh
20394 echo "exit 0" >>conf$$.sh
20395 chmod +x conf$$.sh
20396 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20397 PATH_SEPARATOR=';'
20398 else
20399 PATH_SEPARATOR=:
20401 rm -f conf$$.sh
20404 # Support unset when possible.
20405 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20406 as_unset=unset
20407 else
20408 as_unset=false
20412 # IFS
20413 # We need space, tab and new line, in precisely that order. Quoting is
20414 # there to prevent editors from complaining about space-tab.
20415 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20416 # splitting by setting IFS to empty value.)
20417 as_nl='
20419 IFS=" "" $as_nl"
20421 # Find who we are. Look in the path if we contain no directory separator.
20422 case $0 in
20423 *[\\/]* ) as_myself=$0 ;;
20424 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20425 for as_dir in $PATH
20427 IFS=$as_save_IFS
20428 test -z "$as_dir" && as_dir=.
20429 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20430 done
20431 IFS=$as_save_IFS
20434 esac
20435 # We did not find ourselves, most probably we were run as `sh COMMAND'
20436 # in which case we are not to be found in the path.
20437 if test "x$as_myself" = x; then
20438 as_myself=$0
20440 if test ! -f "$as_myself"; then
20441 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20442 { (exit 1); exit 1; }
20445 # Work around bugs in pre-3.0 UWIN ksh.
20446 for as_var in ENV MAIL MAILPATH
20447 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20448 done
20449 PS1='$ '
20450 PS2='> '
20451 PS4='+ '
20453 # NLS nuisances.
20454 for as_var in \
20455 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20456 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20457 LC_TELEPHONE LC_TIME
20459 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20460 eval $as_var=C; export $as_var
20461 else
20462 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20464 done
20466 # Required to use basename.
20467 if expr a : '\(a\)' >/dev/null 2>&1 &&
20468 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20469 as_expr=expr
20470 else
20471 as_expr=false
20474 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20475 as_basename=basename
20476 else
20477 as_basename=false
20481 # Name of the executable.
20482 as_me=`$as_basename -- "$0" ||
20483 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20484 X"$0" : 'X\(//\)$' \| \
20485 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20486 echo X/"$0" |
20487 sed '/^.*\/\([^/][^/]*\)\/*$/{
20488 s//\1/
20491 /^X\/\(\/\/\)$/{
20492 s//\1/
20495 /^X\/\(\/\).*/{
20496 s//\1/
20499 s/.*/./; q'`
20501 # CDPATH.
20502 $as_unset CDPATH
20506 as_lineno_1=$LINENO
20507 as_lineno_2=$LINENO
20508 test "x$as_lineno_1" != "x$as_lineno_2" &&
20509 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20511 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20512 # uniformly replaced by the line number. The first 'sed' inserts a
20513 # line-number line after each line using $LINENO; the second 'sed'
20514 # does the real work. The second script uses 'N' to pair each
20515 # line-number line with the line containing $LINENO, and appends
20516 # trailing '-' during substitution so that $LINENO is not a special
20517 # case at line end.
20518 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20519 # scripts with optimization help from Paolo Bonzini. Blame Lee
20520 # E. McMahon (1931-1989) for sed's syntax. :-)
20521 sed -n '
20523 /[$]LINENO/=
20524 ' <$as_myself |
20525 sed '
20526 s/[$]LINENO.*/&-/
20527 t lineno
20529 :lineno
20531 :loop
20532 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20533 t loop
20534 s/-\n.*//
20535 ' >$as_me.lineno &&
20536 chmod +x "$as_me.lineno" ||
20537 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20538 { (exit 1); exit 1; }; }
20540 # Don't try to exec as it changes $[0], causing all sort of problems
20541 # (the dirname of $[0] is not the place where we might find the
20542 # original and so on. Autoconf is especially sensitive to this).
20543 . "./$as_me.lineno"
20544 # Exit status is that of the last command.
20545 exit
20549 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20550 as_dirname=dirname
20551 else
20552 as_dirname=false
20555 ECHO_C= ECHO_N= ECHO_T=
20556 case `echo -n x` in
20557 -n*)
20558 case `echo 'x\c'` in
20559 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20560 *) ECHO_C='\c';;
20561 esac;;
20563 ECHO_N='-n';;
20564 esac
20566 if expr a : '\(a\)' >/dev/null 2>&1 &&
20567 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20568 as_expr=expr
20569 else
20570 as_expr=false
20573 rm -f conf$$ conf$$.exe conf$$.file
20574 if test -d conf$$.dir; then
20575 rm -f conf$$.dir/conf$$.file
20576 else
20577 rm -f conf$$.dir
20578 mkdir conf$$.dir
20580 echo >conf$$.file
20581 if ln -s conf$$.file conf$$ 2>/dev/null; then
20582 as_ln_s='ln -s'
20583 # ... but there are two gotchas:
20584 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20585 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20586 # In both cases, we have to default to `cp -p'.
20587 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20588 as_ln_s='cp -p'
20589 elif ln conf$$.file conf$$ 2>/dev/null; then
20590 as_ln_s=ln
20591 else
20592 as_ln_s='cp -p'
20594 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20595 rmdir conf$$.dir 2>/dev/null
20597 if mkdir -p . 2>/dev/null; then
20598 as_mkdir_p=:
20599 else
20600 test -d ./-p && rmdir ./-p
20601 as_mkdir_p=false
20604 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
20605 # systems may use methods other than mode bits to determine executability.
20606 cat >conf$$.file <<_ASEOF
20607 #! /bin/sh
20608 exit 0
20609 _ASEOF
20610 chmod +x conf$$.file
20611 if test -x conf$$.file >/dev/null 2>&1; then
20612 as_executable_p="test -x"
20613 else
20614 as_executable_p=:
20616 rm -f conf$$.file
20618 # Sed expression to map a string onto a valid CPP name.
20619 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20621 # Sed expression to map a string onto a valid variable name.
20622 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20625 exec 6>&1
20627 # Save the log message, to keep $[0] and so on meaningful, and to
20628 # report actual input values of CONFIG_FILES etc. instead of their
20629 # values after options handling.
20630 ac_log="
20631 This file was extended by llvm $as_me 2.8svn, which was
20632 generated by GNU Autoconf 2.60. Invocation command line was
20634 CONFIG_FILES = $CONFIG_FILES
20635 CONFIG_HEADERS = $CONFIG_HEADERS
20636 CONFIG_LINKS = $CONFIG_LINKS
20637 CONFIG_COMMANDS = $CONFIG_COMMANDS
20638 $ $0 $@
20640 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20643 _ACEOF
20645 cat >>$CONFIG_STATUS <<_ACEOF
20646 # Files that config.status was made for.
20647 config_files="$ac_config_files"
20648 config_headers="$ac_config_headers"
20649 config_commands="$ac_config_commands"
20651 _ACEOF
20653 cat >>$CONFIG_STATUS <<\_ACEOF
20654 ac_cs_usage="\
20655 \`$as_me' instantiates files from templates according to the
20656 current configuration.
20658 Usage: $0 [OPTIONS] [FILE]...
20660 -h, --help print this help, then exit
20661 -V, --version print version number, then exit
20662 -q, --quiet do not print progress messages
20663 -d, --debug don't remove temporary files
20664 --recheck update $as_me by reconfiguring in the same conditions
20665 --file=FILE[:TEMPLATE]
20666 instantiate the configuration file FILE
20667 --header=FILE[:TEMPLATE]
20668 instantiate the configuration header FILE
20670 Configuration files:
20671 $config_files
20673 Configuration headers:
20674 $config_headers
20676 Configuration commands:
20677 $config_commands
20679 Report bugs to <bug-autoconf@gnu.org>."
20681 _ACEOF
20682 cat >>$CONFIG_STATUS <<_ACEOF
20683 ac_cs_version="\\
20684 llvm config.status 2.8svn
20685 configured by $0, generated by GNU Autoconf 2.60,
20686 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20688 Copyright (C) 2006 Free Software Foundation, Inc.
20689 This config.status script is free software; the Free Software Foundation
20690 gives unlimited permission to copy, distribute and modify it."
20692 ac_pwd='$ac_pwd'
20693 srcdir='$srcdir'
20694 INSTALL='$INSTALL'
20695 _ACEOF
20697 cat >>$CONFIG_STATUS <<\_ACEOF
20698 # If no file are specified by the user, then we need to provide default
20699 # value. By we need to know if files were specified by the user.
20700 ac_need_defaults=:
20701 while test $# != 0
20703 case $1 in
20704 --*=*)
20705 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20706 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20707 ac_shift=:
20710 ac_option=$1
20711 ac_optarg=$2
20712 ac_shift=shift
20714 esac
20716 case $ac_option in
20717 # Handling of the options.
20718 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20719 ac_cs_recheck=: ;;
20720 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20721 echo "$ac_cs_version"; exit ;;
20722 --debug | --debu | --deb | --de | --d | -d )
20723 debug=: ;;
20724 --file | --fil | --fi | --f )
20725 $ac_shift
20726 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20727 ac_need_defaults=false;;
20728 --header | --heade | --head | --hea )
20729 $ac_shift
20730 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20731 ac_need_defaults=false;;
20732 --he | --h)
20733 # Conflict between --help and --header
20734 { echo "$as_me: error: ambiguous option: $1
20735 Try \`$0 --help' for more information." >&2
20736 { (exit 1); exit 1; }; };;
20737 --help | --hel | -h )
20738 echo "$ac_cs_usage"; exit ;;
20739 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20740 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20741 ac_cs_silent=: ;;
20743 # This is an error.
20744 -*) { echo "$as_me: error: unrecognized option: $1
20745 Try \`$0 --help' for more information." >&2
20746 { (exit 1); exit 1; }; } ;;
20748 *) ac_config_targets="$ac_config_targets $1"
20749 ac_need_defaults=false ;;
20751 esac
20752 shift
20753 done
20755 ac_configure_extra_args=
20757 if $ac_cs_silent; then
20758 exec 6>/dev/null
20759 ac_configure_extra_args="$ac_configure_extra_args --silent"
20762 _ACEOF
20763 cat >>$CONFIG_STATUS <<_ACEOF
20764 if \$ac_cs_recheck; then
20765 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20766 CONFIG_SHELL=$SHELL
20767 export CONFIG_SHELL
20768 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20771 _ACEOF
20772 cat >>$CONFIG_STATUS <<\_ACEOF
20773 exec 5>>config.log
20775 echo
20776 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20777 ## Running $as_me. ##
20778 _ASBOX
20779 echo "$ac_log"
20780 } >&5
20782 _ACEOF
20783 cat >>$CONFIG_STATUS <<_ACEOF
20785 # INIT-COMMANDS
20787 llvm_src="${srcdir}"
20789 _ACEOF
20791 cat >>$CONFIG_STATUS <<\_ACEOF
20793 # Handling of arguments.
20794 for ac_config_target in $ac_config_targets
20796 case $ac_config_target in
20797 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20798 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20799 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20800 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20801 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20802 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20803 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20804 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20805 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20806 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20807 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20808 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20809 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20810 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20811 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20812 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20813 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20814 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20815 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20816 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20817 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20818 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20819 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20820 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20821 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20823 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20824 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20825 { (exit 1); exit 1; }; };;
20826 esac
20827 done
20830 # If the user did not use the arguments to specify the items to instantiate,
20831 # then the envvar interface is used. Set only those that are not.
20832 # We use the long form for the default assignment because of an extremely
20833 # bizarre bug on SunOS 4.1.3.
20834 if $ac_need_defaults; then
20835 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20836 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20837 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20840 # Have a temporary directory for convenience. Make it in the build tree
20841 # simply because there is no reason against having it here, and in addition,
20842 # creating and moving files from /tmp can sometimes cause problems.
20843 # Hook for its removal unless debugging.
20844 # Note that there is a small window in which the directory will not be cleaned:
20845 # after its creation but before its name has been assigned to `$tmp'.
20846 $debug ||
20848 tmp=
20849 trap 'exit_status=$?
20850 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20852 trap '{ (exit 1); exit 1; }' 1 2 13 15
20854 # Create a (secure) tmp directory for tmp files.
20857 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20858 test -n "$tmp" && test -d "$tmp"
20859 } ||
20861 tmp=./conf$$-$RANDOM
20862 (umask 077 && mkdir "$tmp")
20863 } ||
20865 echo "$me: cannot create a temporary directory in ." >&2
20866 { (exit 1); exit 1; }
20870 # Set up the sed scripts for CONFIG_FILES section.
20873 # No need to generate the scripts if there are no CONFIG_FILES.
20874 # This happens for instance when ./config.status config.h
20875 if test -n "$CONFIG_FILES"; then
20877 _ACEOF
20881 ac_delim='%!_!# '
20882 for ac_last_try in false false false false false :; do
20883 cat >conf$$subs.sed <<_ACEOF
20884 SHELL!$SHELL$ac_delim
20885 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20886 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20887 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20888 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20889 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20890 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20891 exec_prefix!$exec_prefix$ac_delim
20892 prefix!$prefix$ac_delim
20893 program_transform_name!$program_transform_name$ac_delim
20894 bindir!$bindir$ac_delim
20895 sbindir!$sbindir$ac_delim
20896 libexecdir!$libexecdir$ac_delim
20897 datarootdir!$datarootdir$ac_delim
20898 datadir!$datadir$ac_delim
20899 sysconfdir!$sysconfdir$ac_delim
20900 sharedstatedir!$sharedstatedir$ac_delim
20901 localstatedir!$localstatedir$ac_delim
20902 includedir!$includedir$ac_delim
20903 oldincludedir!$oldincludedir$ac_delim
20904 docdir!$docdir$ac_delim
20905 infodir!$infodir$ac_delim
20906 htmldir!$htmldir$ac_delim
20907 dvidir!$dvidir$ac_delim
20908 pdfdir!$pdfdir$ac_delim
20909 psdir!$psdir$ac_delim
20910 libdir!$libdir$ac_delim
20911 localedir!$localedir$ac_delim
20912 mandir!$mandir$ac_delim
20913 DEFS!$DEFS$ac_delim
20914 ECHO_C!$ECHO_C$ac_delim
20915 ECHO_N!$ECHO_N$ac_delim
20916 ECHO_T!$ECHO_T$ac_delim
20917 LIBS!$LIBS$ac_delim
20918 build_alias!$build_alias$ac_delim
20919 host_alias!$host_alias$ac_delim
20920 target_alias!$target_alias$ac_delim
20921 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20922 subdirs!$subdirs$ac_delim
20923 build!$build$ac_delim
20924 build_cpu!$build_cpu$ac_delim
20925 build_vendor!$build_vendor$ac_delim
20926 build_os!$build_os$ac_delim
20927 host!$host$ac_delim
20928 host_cpu!$host_cpu$ac_delim
20929 host_vendor!$host_vendor$ac_delim
20930 host_os!$host_os$ac_delim
20931 target!$target$ac_delim
20932 target_cpu!$target_cpu$ac_delim
20933 target_vendor!$target_vendor$ac_delim
20934 target_os!$target_os$ac_delim
20935 OS!$OS$ac_delim
20936 HOST_OS!$HOST_OS$ac_delim
20937 TARGET_OS!$TARGET_OS$ac_delim
20938 LINKALL!$LINKALL$ac_delim
20939 NOLINKALL!$NOLINKALL$ac_delim
20940 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20941 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20942 ARCH!$ARCH$ac_delim
20943 ENDIAN!$ENDIAN$ac_delim
20944 CC!$CC$ac_delim
20945 CFLAGS!$CFLAGS$ac_delim
20946 LDFLAGS!$LDFLAGS$ac_delim
20947 CPPFLAGS!$CPPFLAGS$ac_delim
20948 ac_ct_CC!$ac_ct_CC$ac_delim
20949 EXEEXT!$EXEEXT$ac_delim
20950 OBJEXT!$OBJEXT$ac_delim
20951 CPP!$CPP$ac_delim
20952 GREP!$GREP$ac_delim
20953 EGREP!$EGREP$ac_delim
20954 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20955 BUILD_CC!$BUILD_CC$ac_delim
20956 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20957 BUILD_CXX!$BUILD_CXX$ac_delim
20958 CVSBUILD!$CVSBUILD$ac_delim
20959 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20960 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20961 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20962 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20963 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20964 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20965 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20966 JIT!$JIT$ac_delim
20967 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20968 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20969 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20970 ENABLE_PIC!$ENABLE_PIC$ac_delim
20971 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
20972 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20973 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20974 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20975 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20976 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20977 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20978 CLANGPATH!$CLANGPATH$ac_delim
20979 CLANGXXPATH!$CLANGXXPATH$ac_delim
20980 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
20981 _ACEOF
20983 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20984 break
20985 elif $ac_last_try; then
20986 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20987 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20988 { (exit 1); exit 1; }; }
20989 else
20990 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20992 done
20994 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20995 if test -n "$ac_eof"; then
20996 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20997 ac_eof=`expr $ac_eof + 1`
21000 cat >>$CONFIG_STATUS <<_ACEOF
21001 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21002 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21003 _ACEOF
21004 sed '
21005 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21006 s/^/s,@/; s/!/@,|#_!!_#|/
21009 s/'"$ac_delim"'$/,g/; t
21010 s/$/\\/; p
21011 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21012 ' >>$CONFIG_STATUS <conf$$subs.sed
21013 rm -f conf$$subs.sed
21014 cat >>$CONFIG_STATUS <<_ACEOF
21015 CEOF$ac_eof
21016 _ACEOF
21019 ac_delim='%!_!# '
21020 for ac_last_try in false false false false false :; do
21021 cat >conf$$subs.sed <<_ACEOF
21022 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21023 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21024 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21025 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
21026 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21027 CXX!$CXX$ac_delim
21028 CXXFLAGS!$CXXFLAGS$ac_delim
21029 ac_ct_CXX!$ac_ct_CXX$ac_delim
21030 NM!$NM$ac_delim
21031 ifGNUmake!$ifGNUmake$ac_delim
21032 LN_S!$LN_S$ac_delim
21033 CMP!$CMP$ac_delim
21034 CP!$CP$ac_delim
21035 DATE!$DATE$ac_delim
21036 FIND!$FIND$ac_delim
21037 MKDIR!$MKDIR$ac_delim
21038 MV!$MV$ac_delim
21039 RANLIB!$RANLIB$ac_delim
21040 AR!$AR$ac_delim
21041 RM!$RM$ac_delim
21042 SED!$SED$ac_delim
21043 TAR!$TAR$ac_delim
21044 BINPWD!$BINPWD$ac_delim
21045 GRAPHVIZ!$GRAPHVIZ$ac_delim
21046 DOT!$DOT$ac_delim
21047 FDP!$FDP$ac_delim
21048 NEATO!$NEATO$ac_delim
21049 TWOPI!$TWOPI$ac_delim
21050 CIRCO!$CIRCO$ac_delim
21051 GV!$GV$ac_delim
21052 DOTTY!$DOTTY$ac_delim
21053 PERL!$PERL$ac_delim
21054 HAVE_PERL!$HAVE_PERL$ac_delim
21055 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21056 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21057 INSTALL_DATA!$INSTALL_DATA$ac_delim
21058 BZIP2!$BZIP2$ac_delim
21059 DOXYGEN!$DOXYGEN$ac_delim
21060 GROFF!$GROFF$ac_delim
21061 GZIP!$GZIP$ac_delim
21062 POD2HTML!$POD2HTML$ac_delim
21063 POD2MAN!$POD2MAN$ac_delim
21064 RUNTEST!$RUNTEST$ac_delim
21065 TCLSH!$TCLSH$ac_delim
21066 ZIP!$ZIP$ac_delim
21067 OCAMLC!$OCAMLC$ac_delim
21068 OCAMLOPT!$OCAMLOPT$ac_delim
21069 OCAMLDEP!$OCAMLDEP$ac_delim
21070 OCAMLDOC!$OCAMLDOC$ac_delim
21071 GAS!$GAS$ac_delim
21072 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21073 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21074 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21075 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21076 LIBADD_DL!$LIBADD_DL$ac_delim
21077 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21078 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21079 LLVMGCC!$LLVMGCC$ac_delim
21080 LLVMGXX!$LLVMGXX$ac_delim
21081 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21082 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21083 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21084 USE_UDIS86!$USE_UDIS86$ac_delim
21085 USE_OPROFILE!$USE_OPROFILE$ac_delim
21086 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21087 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21088 MMAP_FILE!$MMAP_FILE$ac_delim
21089 LLVMCC1!$LLVMCC1$ac_delim
21090 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21091 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21092 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21093 SHLIBEXT!$SHLIBEXT$ac_delim
21094 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21095 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21096 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21097 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21098 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21099 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21100 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21101 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21102 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21103 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21104 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21105 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21106 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21107 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21108 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21109 RPATH!$RPATH$ac_delim
21110 RDYNAMIC!$RDYNAMIC$ac_delim
21111 LIBOBJS!$LIBOBJS$ac_delim
21112 LTLIBOBJS!$LTLIBOBJS$ac_delim
21113 _ACEOF
21115 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
21116 break
21117 elif $ac_last_try; then
21118 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21119 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21120 { (exit 1); exit 1; }; }
21121 else
21122 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21124 done
21126 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21127 if test -n "$ac_eof"; then
21128 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21129 ac_eof=`expr $ac_eof + 1`
21132 cat >>$CONFIG_STATUS <<_ACEOF
21133 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21134 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21135 _ACEOF
21136 sed '
21137 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21138 s/^/s,@/; s/!/@,|#_!!_#|/
21141 s/'"$ac_delim"'$/,g/; t
21142 s/$/\\/; p
21143 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21144 ' >>$CONFIG_STATUS <conf$$subs.sed
21145 rm -f conf$$subs.sed
21146 cat >>$CONFIG_STATUS <<_ACEOF
21147 :end
21148 s/|#_!!_#|//g
21149 CEOF$ac_eof
21150 _ACEOF
21153 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21154 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21155 # trailing colons and then remove the whole line if VPATH becomes empty
21156 # (actually we leave an empty line to preserve line numbers).
21157 if test "x$srcdir" = x.; then
21158 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21159 s/:*\$(srcdir):*/:/
21160 s/:*\${srcdir}:*/:/
21161 s/:*@srcdir@:*/:/
21162 s/^\([^=]*=[ ]*\):*/\1/
21163 s/:*$//
21164 s/^[^=]*=[ ]*$//
21168 cat >>$CONFIG_STATUS <<\_ACEOF
21169 fi # test -n "$CONFIG_FILES"
21172 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21174 case $ac_tag in
21175 :[FHLC]) ac_mode=$ac_tag; continue;;
21176 esac
21177 case $ac_mode$ac_tag in
21178 :[FHL]*:*);;
21179 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21180 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21181 { (exit 1); exit 1; }; };;
21182 :[FH]-) ac_tag=-:-;;
21183 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21184 esac
21185 ac_save_IFS=$IFS
21186 IFS=:
21187 set x $ac_tag
21188 IFS=$ac_save_IFS
21189 shift
21190 ac_file=$1
21191 shift
21193 case $ac_mode in
21194 :L) ac_source=$1;;
21195 :[FH])
21196 ac_file_inputs=
21197 for ac_f
21199 case $ac_f in
21200 -) ac_f="$tmp/stdin";;
21201 *) # Look for the file first in the build tree, then in the source tree
21202 # (if the path is not absolute). The absolute path cannot be DOS-style,
21203 # because $ac_f cannot contain `:'.
21204 test -f "$ac_f" ||
21205 case $ac_f in
21206 [\\/$]*) false;;
21207 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21208 esac ||
21209 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21210 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21211 { (exit 1); exit 1; }; };;
21212 esac
21213 ac_file_inputs="$ac_file_inputs $ac_f"
21214 done
21216 # Let's still pretend it is `configure' which instantiates (i.e., don't
21217 # use $as_me), people would be surprised to read:
21218 # /* config.h. Generated by config.status. */
21219 configure_input="Generated from "`IFS=:
21220 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21221 if test x"$ac_file" != x-; then
21222 configure_input="$ac_file. $configure_input"
21223 { echo "$as_me:$LINENO: creating $ac_file" >&5
21224 echo "$as_me: creating $ac_file" >&6;}
21227 case $ac_tag in
21228 *:-:* | *:-) cat >"$tmp/stdin";;
21229 esac
21231 esac
21233 ac_dir=`$as_dirname -- "$ac_file" ||
21234 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21235 X"$ac_file" : 'X\(//\)[^/]' \| \
21236 X"$ac_file" : 'X\(//\)$' \| \
21237 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21238 echo X"$ac_file" |
21239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21240 s//\1/
21243 /^X\(\/\/\)[^/].*/{
21244 s//\1/
21247 /^X\(\/\/\)$/{
21248 s//\1/
21251 /^X\(\/\).*/{
21252 s//\1/
21255 s/.*/./; q'`
21256 { as_dir="$ac_dir"
21257 case $as_dir in #(
21258 -*) as_dir=./$as_dir;;
21259 esac
21260 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21261 as_dirs=
21262 while :; do
21263 case $as_dir in #(
21264 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21265 *) as_qdir=$as_dir;;
21266 esac
21267 as_dirs="'$as_qdir' $as_dirs"
21268 as_dir=`$as_dirname -- "$as_dir" ||
21269 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21270 X"$as_dir" : 'X\(//\)[^/]' \| \
21271 X"$as_dir" : 'X\(//\)$' \| \
21272 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21273 echo X"$as_dir" |
21274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21275 s//\1/
21278 /^X\(\/\/\)[^/].*/{
21279 s//\1/
21282 /^X\(\/\/\)$/{
21283 s//\1/
21286 /^X\(\/\).*/{
21287 s//\1/
21290 s/.*/./; q'`
21291 test -d "$as_dir" && break
21292 done
21293 test -z "$as_dirs" || eval "mkdir $as_dirs"
21294 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21295 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21296 { (exit 1); exit 1; }; }; }
21297 ac_builddir=.
21299 case "$ac_dir" in
21300 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21302 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21303 # A ".." for each directory in $ac_dir_suffix.
21304 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21305 case $ac_top_builddir_sub in
21306 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21307 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21308 esac ;;
21309 esac
21310 ac_abs_top_builddir=$ac_pwd
21311 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21312 # for backward compatibility:
21313 ac_top_builddir=$ac_top_build_prefix
21315 case $srcdir in
21316 .) # We are building in place.
21317 ac_srcdir=.
21318 ac_top_srcdir=$ac_top_builddir_sub
21319 ac_abs_top_srcdir=$ac_pwd ;;
21320 [\\/]* | ?:[\\/]* ) # Absolute name.
21321 ac_srcdir=$srcdir$ac_dir_suffix;
21322 ac_top_srcdir=$srcdir
21323 ac_abs_top_srcdir=$srcdir ;;
21324 *) # Relative name.
21325 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21326 ac_top_srcdir=$ac_top_build_prefix$srcdir
21327 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21328 esac
21329 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21332 case $ac_mode in
21335 # CONFIG_FILE
21338 case $INSTALL in
21339 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21340 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21341 esac
21342 _ACEOF
21344 cat >>$CONFIG_STATUS <<\_ACEOF
21345 # If the template does not know about datarootdir, expand it.
21346 # FIXME: This hack should be removed a few years after 2.60.
21347 ac_datarootdir_hack=; ac_datarootdir_seen=
21349 case `sed -n '/datarootdir/ {
21353 /@datadir@/p
21354 /@docdir@/p
21355 /@infodir@/p
21356 /@localedir@/p
21357 /@mandir@/p
21358 ' $ac_file_inputs` in
21359 *datarootdir*) ac_datarootdir_seen=yes;;
21360 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21361 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21362 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21363 _ACEOF
21364 cat >>$CONFIG_STATUS <<_ACEOF
21365 ac_datarootdir_hack='
21366 s&@datadir@&$datadir&g
21367 s&@docdir@&$docdir&g
21368 s&@infodir@&$infodir&g
21369 s&@localedir@&$localedir&g
21370 s&@mandir@&$mandir&g
21371 s&\\\${datarootdir}&$datarootdir&g' ;;
21372 esac
21373 _ACEOF
21375 # Neutralize VPATH when `$srcdir' = `.'.
21376 # Shell code in configure.ac might set extrasub.
21377 # FIXME: do we really want to maintain this feature?
21378 cat >>$CONFIG_STATUS <<_ACEOF
21379 sed "$ac_vpsub
21380 $extrasub
21381 _ACEOF
21382 cat >>$CONFIG_STATUS <<\_ACEOF
21384 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21385 s&@configure_input@&$configure_input&;t t
21386 s&@top_builddir@&$ac_top_builddir_sub&;t t
21387 s&@srcdir@&$ac_srcdir&;t t
21388 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21389 s&@top_srcdir@&$ac_top_srcdir&;t t
21390 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21391 s&@builddir@&$ac_builddir&;t t
21392 s&@abs_builddir@&$ac_abs_builddir&;t t
21393 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21394 s&@INSTALL@&$ac_INSTALL&;t t
21395 $ac_datarootdir_hack
21396 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21398 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21399 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21400 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21401 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21402 which seems to be undefined. Please make sure it is defined." >&5
21403 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21404 which seems to be undefined. Please make sure it is defined." >&2;}
21406 rm -f "$tmp/stdin"
21407 case $ac_file in
21408 -) cat "$tmp/out"; rm -f "$tmp/out";;
21409 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21410 esac
21414 # CONFIG_HEADER
21416 _ACEOF
21418 # Transform confdefs.h into a sed script `conftest.defines', that
21419 # substitutes the proper values into config.h.in to produce config.h.
21420 rm -f conftest.defines conftest.tail
21421 # First, append a space to every undef/define line, to ease matching.
21422 echo 's/$/ /' >conftest.defines
21423 # Then, protect against being on the right side of a sed subst, or in
21424 # an unquoted here document, in config.status. If some macros were
21425 # called several times there might be several #defines for the same
21426 # symbol, which is useless. But do not sort them, since the last
21427 # AC_DEFINE must be honored.
21428 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21429 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21430 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21431 # PARAMS is the parameter list in the macro definition--in most cases, it's
21432 # just an empty string.
21433 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21434 ac_dB='\\)[ (].*,\\1define\\2'
21435 ac_dC=' '
21436 ac_dD=' ,'
21438 uniq confdefs.h |
21439 sed -n '
21440 t rset
21441 :rset
21442 s/^[ ]*#[ ]*define[ ][ ]*//
21443 t ok
21446 s/[\\&,]/\\&/g
21447 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21448 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21449 ' >>conftest.defines
21451 # Remove the space that was appended to ease matching.
21452 # Then replace #undef with comments. This is necessary, for
21453 # example, in the case of _POSIX_SOURCE, which is predefined and required
21454 # on some systems where configure will not decide to define it.
21455 # (The regexp can be short, since the line contains either #define or #undef.)
21456 echo 's/ $//
21457 s,^[ #]*u.*,/* & */,' >>conftest.defines
21459 # Break up conftest.defines:
21460 ac_max_sed_lines=50
21462 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21463 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21464 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21465 # et cetera.
21466 ac_in='$ac_file_inputs'
21467 ac_out='"$tmp/out1"'
21468 ac_nxt='"$tmp/out2"'
21470 while :
21472 # Write a here document:
21473 cat >>$CONFIG_STATUS <<_ACEOF
21474 # First, check the format of the line:
21475 cat >"\$tmp/defines.sed" <<\\CEOF
21476 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21477 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21479 :def
21480 _ACEOF
21481 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21482 echo 'CEOF
21483 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21484 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21485 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21486 grep . conftest.tail >/dev/null || break
21487 rm -f conftest.defines
21488 mv conftest.tail conftest.defines
21489 done
21490 rm -f conftest.defines conftest.tail
21492 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21493 cat >>$CONFIG_STATUS <<\_ACEOF
21494 if test x"$ac_file" != x-; then
21495 echo "/* $configure_input */" >"$tmp/config.h"
21496 cat "$ac_result" >>"$tmp/config.h"
21497 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21498 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21499 echo "$as_me: $ac_file is unchanged" >&6;}
21500 else
21501 rm -f $ac_file
21502 mv "$tmp/config.h" $ac_file
21504 else
21505 echo "/* $configure_input */"
21506 cat "$ac_result"
21508 rm -f "$tmp/out12"
21511 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21512 echo "$as_me: executing $ac_file commands" >&6;}
21514 esac
21517 case $ac_file$ac_mode in
21518 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21519 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21520 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21521 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21522 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21523 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21524 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21525 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21526 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21527 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21528 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21529 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21530 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21531 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21532 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21533 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21534 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21535 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21536 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21537 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21538 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21539 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21540 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21541 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21542 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21543 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21545 esac
21546 done # for ac_tag
21549 { (exit 0); exit 0; }
21550 _ACEOF
21551 chmod +x $CONFIG_STATUS
21552 ac_clean_files=$ac_clean_files_save
21555 # configure is writing to config.log, and then calls config.status.
21556 # config.status does its own redirection, appending to config.log.
21557 # Unfortunately, on DOS this fails, as config.log is still kept open
21558 # by configure, so config.status won't be able to write to it; its
21559 # output is simply discarded. So we exec the FD to /dev/null,
21560 # effectively closing config.log, so it can be properly (re)opened and
21561 # appended to by config.status. When coming back to configure, we
21562 # need to make the FD available again.
21563 if test "$no_create" != yes; then
21564 ac_cs_success=:
21565 ac_config_status_args=
21566 test "$silent" = yes &&
21567 ac_config_status_args="$ac_config_status_args --quiet"
21568 exec 5>/dev/null
21569 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21570 exec 5>>config.log
21571 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21572 # would make configure fail if this is the last instruction.
21573 $ac_cs_success || { (exit 1); exit 1; }
21577 # CONFIG_SUBDIRS section.
21579 if test "$no_recursion" != yes; then
21581 # Remove --cache-file and --srcdir arguments so they do not pile up.
21582 ac_sub_configure_args=
21583 ac_prev=
21584 eval "set x $ac_configure_args"
21585 shift
21586 for ac_arg
21588 if test -n "$ac_prev"; then
21589 ac_prev=
21590 continue
21592 case $ac_arg in
21593 -cache-file | --cache-file | --cache-fil | --cache-fi \
21594 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21595 ac_prev=cache_file ;;
21596 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21597 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21598 | --c=*)
21600 --config-cache | -C)
21602 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21603 ac_prev=srcdir ;;
21604 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21606 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21607 ac_prev=prefix ;;
21608 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21611 case $ac_arg in
21612 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21613 esac
21614 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21615 esac
21616 done
21618 # Always prepend --prefix to ensure using the same prefix
21619 # in subdir configurations.
21620 ac_arg="--prefix=$prefix"
21621 case $ac_arg in
21622 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21623 esac
21624 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21626 ac_popdir=`pwd`
21627 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21629 # Do not complain, so a configure script can configure whichever
21630 # parts of a large source tree are present.
21631 test -d "$srcdir/$ac_dir" || continue
21633 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21634 echo "$as_me:$LINENO: $ac_msg" >&5
21635 echo "$ac_msg" >&6
21636 { as_dir="$ac_dir"
21637 case $as_dir in #(
21638 -*) as_dir=./$as_dir;;
21639 esac
21640 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21641 as_dirs=
21642 while :; do
21643 case $as_dir in #(
21644 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21645 *) as_qdir=$as_dir;;
21646 esac
21647 as_dirs="'$as_qdir' $as_dirs"
21648 as_dir=`$as_dirname -- "$as_dir" ||
21649 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21650 X"$as_dir" : 'X\(//\)[^/]' \| \
21651 X"$as_dir" : 'X\(//\)$' \| \
21652 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21653 echo X"$as_dir" |
21654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21655 s//\1/
21658 /^X\(\/\/\)[^/].*/{
21659 s//\1/
21662 /^X\(\/\/\)$/{
21663 s//\1/
21666 /^X\(\/\).*/{
21667 s//\1/
21670 s/.*/./; q'`
21671 test -d "$as_dir" && break
21672 done
21673 test -z "$as_dirs" || eval "mkdir $as_dirs"
21674 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21675 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21676 { (exit 1); exit 1; }; }; }
21677 ac_builddir=.
21679 case "$ac_dir" in
21680 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21682 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21683 # A ".." for each directory in $ac_dir_suffix.
21684 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21685 case $ac_top_builddir_sub in
21686 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21687 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21688 esac ;;
21689 esac
21690 ac_abs_top_builddir=$ac_pwd
21691 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21692 # for backward compatibility:
21693 ac_top_builddir=$ac_top_build_prefix
21695 case $srcdir in
21696 .) # We are building in place.
21697 ac_srcdir=.
21698 ac_top_srcdir=$ac_top_builddir_sub
21699 ac_abs_top_srcdir=$ac_pwd ;;
21700 [\\/]* | ?:[\\/]* ) # Absolute name.
21701 ac_srcdir=$srcdir$ac_dir_suffix;
21702 ac_top_srcdir=$srcdir
21703 ac_abs_top_srcdir=$srcdir ;;
21704 *) # Relative name.
21705 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21706 ac_top_srcdir=$ac_top_build_prefix$srcdir
21707 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21708 esac
21709 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21712 cd "$ac_dir"
21714 # Check for guested configure; otherwise get Cygnus style configure.
21715 if test -f "$ac_srcdir/configure.gnu"; then
21716 ac_sub_configure=$ac_srcdir/configure.gnu
21717 elif test -f "$ac_srcdir/configure"; then
21718 ac_sub_configure=$ac_srcdir/configure
21719 elif test -f "$ac_srcdir/configure.in"; then
21720 # This should be Cygnus configure.
21721 ac_sub_configure=$ac_aux_dir/configure
21722 else
21723 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21724 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21725 ac_sub_configure=
21728 # The recursion is here.
21729 if test -n "$ac_sub_configure"; then
21730 # Make the cache file name correct relative to the subdirectory.
21731 case $cache_file in
21732 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21733 *) # Relative name.
21734 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21735 esac
21737 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21738 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21739 # The eval makes quoting arguments work.
21740 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21741 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21742 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21743 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21744 { (exit 1); exit 1; }; }
21747 cd "$ac_popdir"
21748 done