1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.4svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
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.
11 #
12 # Copyright (c) 2003-2013 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
27 fi
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=:
49 fi
50 rm -f conf$$.sh
51 fi
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
58 fi
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='
67 '
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
75 do
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
82 ;;
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
88 fi
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; }
92 fi
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
107 do
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
112 fi
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
121 fi
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
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/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
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
159 fi
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
210 test \$exitcode = 0) || { (exit 1); exit 1; }
212 (
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
218 :
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
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
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
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
254 :
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
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
274 :
275 (as_func_return () {
276 (exit $1)
277 }
278 as_func_success () {
279 as_func_return 0
280 }
281 as_func_failure () {
282 as_func_return 1
283 }
284 as_func_ret_success () {
285 return 0
286 }
287 as_func_ret_failure () {
288 return 1
289 }
291 exitcode=0
292 if as_func_success; then
293 :
294 else
295 exitcode=1
296 echo as_func_success failed.
297 fi
299 if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302 fi
304 if as_func_ret_success; then
305 :
306 else
307 exitcode=1
308 echo as_func_ret_success failed.
309 fi
311 if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314 fi
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318 else
319 exitcode=1
320 echo positional parameters were not saved.
321 fi
323 test $exitcode = 0) || { (exit 1); exit 1; }
325 (
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
334 fi
336 fi
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+"$@"}
346 fi
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; }
355 fi
358 fi
360 fi
364 (eval "as_func_return () {
365 (exit \$1)
366 }
367 as_func_success () {
368 as_func_return 0
369 }
370 as_func_failure () {
371 as_func_return 1
372 }
373 as_func_ret_success () {
374 return 0
375 }
376 as_func_ret_failure () {
377 return 1
378 }
380 exitcode=0
381 if as_func_success; then
382 :
383 else
384 exitcode=1
385 echo as_func_success failed.
386 fi
388 if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391 fi
393 if as_func_ret_success; then
394 :
395 else
396 exitcode=1
397 echo as_func_ret_success failed.
398 fi
400 if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403 fi
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407 else
408 exitcode=1
409 echo positional parameters were not saved.
410 fi
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
417 }
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 '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
445 N
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
461 }
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
468 fi
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;;
477 *)
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
486 fi
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
494 fi
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'
508 fi
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
517 fi
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=:
530 fi
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`
548 #
549 # Initializations.
550 #
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='3.4svn'
565 PACKAGE_STRING='LLVM 3.4svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/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 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 HOST_ARCH
678 ENDIAN
679 GREP
680 EGREP
681 LLVM_CROSS_COMPILING
682 BUILD_CC
683 BUILD_EXEEXT
684 BUILD_CXX
685 CVSBUILD
686 ENABLE_LIBCPP
687 ENABLE_CXX11
688 ENABLE_SPLIT_DWARF
689 ENABLE_CLANG_ARCMT
690 ENABLE_CLANG_STATIC_ANALYZER
691 ENABLE_CLANG_REWRITER
692 ENABLE_OPTIMIZED
693 ENABLE_PROFILING
694 DISABLE_ASSERTIONS
695 ENABLE_WERROR
696 ENABLE_EXPENSIVE_CHECKS
697 EXPENSIVE_CHECKS
698 DEBUG_RUNTIME
699 DEBUG_SYMBOLS
700 KEEP_SYMBOLS
701 JIT
702 TARGET_HAS_JIT
703 ENABLE_DOCS
704 ENABLE_DOXYGEN
705 LLVM_ENABLE_THREADS
706 ENABLE_PTHREADS
707 LLVM_ENABLE_ZLIB
708 ENABLE_PIC
709 ENABLE_SHARED
710 ENABLE_EMBED_STDCXX
711 ENABLE_TIMESTAMPS
712 ENABLE_BACKTRACES
713 TARGETS_TO_BUILD
714 LLVM_ENUM_TARGETS
715 LLVM_ENUM_ASM_PRINTERS
716 LLVM_ENUM_ASM_PARSERS
717 LLVM_ENUM_DISASSEMBLERS
718 OPTIMIZE_OPTION
719 EXTRA_OPTIONS
720 EXTRA_LD_OPTIONS
721 CLANG_SRC_ROOT
722 BINUTILS_INCDIR
723 INTERNAL_PREFIX
724 NM
725 ifGNUmake
726 LN_S
727 CMP
728 CP
729 DATE
730 FIND
731 MKDIR
732 MV
733 RANLIB
734 AR
735 RM
736 SED
737 TAR
738 BINPWD
739 GRAPHVIZ
740 DOT
741 FDP
742 NEATO
743 TWOPI
744 CIRCO
745 GV
746 DOTTY
747 XDOT
748 INSTALL_PROGRAM
749 INSTALL_SCRIPT
750 INSTALL_DATA
751 BZIP2
752 CAT
753 DOXYGEN
754 GROFF
755 GZIPBIN
756 PDFROFF
757 ZIP
758 OCAMLC
759 OCAMLOPT
760 OCAMLDEP
761 OCAMLDOC
762 GAS
763 HAVE_LINK_VERSION_SCRIPT
764 INSTALL_LTDL_TRUE
765 INSTALL_LTDL_FALSE
766 CONVENIENCE_LTDL_TRUE
767 CONVENIENCE_LTDL_FALSE
768 LIBADD_DL
769 NO_VARIADIC_MACROS
770 NO_MISSING_FIELD_INITIALIZERS
771 COVERED_SWITCH_DEFAULT
772 NO_MAYBE_UNINITIALIZED
773 NO_UNINITIALIZED
774 PYTHON
775 USE_UDIS86
776 USE_OPROFILE
777 USE_INTEL_JITEVENTS
778 XML2CONFIG
779 LIBXML2_LIBS
780 LIBXML2_INC
781 CXXCPP
782 HAVE_PTHREAD
783 HAVE_LIBZ
784 HUGE_VAL_SANITY
785 MMAP_FILE
786 SHLIBEXT
787 SHLIBPATH_VAR
788 LLVM_PREFIX
789 LLVM_BINDIR
790 LLVM_DATADIR
791 LLVM_DOCSDIR
792 LLVM_ETCDIR
793 LLVM_INCLUDEDIR
794 LLVM_INFODIR
795 LLVM_MANDIR
796 LLVM_CONFIGTIME
797 BINDINGS_TO_BUILD
798 ALL_BINDINGS
799 OCAML_LIBDIR
800 ENABLE_VISIBILITY_INLINES_HIDDEN
801 RPATH
802 RDYNAMIC
803 program_prefix
804 LIBOBJS
805 LTLIBOBJS'
806 ac_subst_files=''
807 ac_precious_vars='build_alias
808 host_alias
809 target_alias
810 CC
811 CFLAGS
812 LDFLAGS
813 CPPFLAGS
814 CXX
815 CXXFLAGS
816 CCC
817 CPP
818 CXXCPP'
819 ac_subdirs_all='projects/llvm-gcc
820 projects/test-suite
821 projects/llvm-test
822 projects/poolalloc
823 projects/llvm-poolalloc
824 projects/sample
825 projects/privbracket
826 projects/llvm-stacker
827 projects/llvm-reopt
828 projects/llvm-java
829 projects/llvm-tv
830 projects/safecode
831 projects/llvm-kernel
832 tools/polly'
834 # Initialize some variables set by options.
835 ac_init_help=
836 ac_init_version=false
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
839 cache_file=/dev/null
840 exec_prefix=NONE
841 no_create=
842 no_recursion=
843 prefix=NONE
844 program_prefix=NONE
845 program_suffix=NONE
846 program_transform_name=s,x,x,
847 silent=
848 site=
849 srcdir=
850 verbose=
851 x_includes=NONE
852 x_libraries=NONE
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
872 htmldir='${docdir}'
873 dvidir='${docdir}'
874 pdfdir='${docdir}'
875 psdir='${docdir}'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
880 ac_prev=
881 ac_dashdash=
882 for ac_option
883 do
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
886 eval $ac_prev=\$ac_option
887 ac_prev=
888 continue
889 fi
891 case $ac_option in
892 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 *) ac_optarg=yes ;;
894 esac
896 # Accept the important Cygnus configure options, so we can diagnose typos.
898 case $ac_dashdash$ac_option in
899 --)
900 ac_dashdash=yes ;;
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 ac_prev=bindir ;;
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 bindir=$ac_optarg ;;
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
919 --config-cache | -C)
920 cache_file=config.cache ;;
922 -datadir | --datadir | --datadi | --datad)
923 ac_prev=datadir ;;
924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
925 datadir=$ac_optarg ;;
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
934 -disable-* | --disable-*)
935 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
938 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
939 { (exit 1); exit 1; }; }
940 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
941 eval enable_$ac_feature=no ;;
943 -docdir | --docdir | --docdi | --doc | --do)
944 ac_prev=docdir ;;
945 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 docdir=$ac_optarg ;;
948 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949 ac_prev=dvidir ;;
950 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 dvidir=$ac_optarg ;;
953 -enable-* | --enable-*)
954 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
957 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
958 { (exit 1); exit 1; }; }
959 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
960 eval enable_$ac_feature=\$ac_optarg ;;
962 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964 | --exec | --exe | --ex)
965 ac_prev=exec_prefix ;;
966 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968 | --exec=* | --exe=* | --ex=*)
969 exec_prefix=$ac_optarg ;;
971 -gas | --gas | --ga | --g)
972 # Obsolete; use --with-gas.
973 with_gas=yes ;;
975 -help | --help | --hel | --he | -h)
976 ac_init_help=long ;;
977 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978 ac_init_help=recursive ;;
979 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980 ac_init_help=short ;;
982 -host | --host | --hos | --ho)
983 ac_prev=host_alias ;;
984 -host=* | --host=* | --hos=* | --ho=*)
985 host_alias=$ac_optarg ;;
987 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
988 ac_prev=htmldir ;;
989 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
990 | --ht=*)
991 htmldir=$ac_optarg ;;
993 -includedir | --includedir | --includedi | --included | --include \
994 | --includ | --inclu | --incl | --inc)
995 ac_prev=includedir ;;
996 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997 | --includ=* | --inclu=* | --incl=* | --inc=*)
998 includedir=$ac_optarg ;;
1000 -infodir | --infodir | --infodi | --infod | --info | --inf)
1001 ac_prev=infodir ;;
1002 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1003 infodir=$ac_optarg ;;
1005 -libdir | --libdir | --libdi | --libd)
1006 ac_prev=libdir ;;
1007 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1008 libdir=$ac_optarg ;;
1010 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011 | --libexe | --libex | --libe)
1012 ac_prev=libexecdir ;;
1013 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014 | --libexe=* | --libex=* | --libe=*)
1015 libexecdir=$ac_optarg ;;
1017 -localedir | --localedir | --localedi | --localed | --locale)
1018 ac_prev=localedir ;;
1019 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020 localedir=$ac_optarg ;;
1022 -localstatedir | --localstatedir | --localstatedi | --localstated \
1023 | --localstate | --localstat | --localsta | --localst | --locals)
1024 ac_prev=localstatedir ;;
1025 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1026 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1027 localstatedir=$ac_optarg ;;
1029 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1030 ac_prev=mandir ;;
1031 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1032 mandir=$ac_optarg ;;
1034 -nfp | --nfp | --nf)
1035 # Obsolete; use --without-fp.
1036 with_fp=no ;;
1038 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039 | --no-cr | --no-c | -n)
1040 no_create=yes ;;
1042 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044 no_recursion=yes ;;
1046 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048 | --oldin | --oldi | --old | --ol | --o)
1049 ac_prev=oldincludedir ;;
1050 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1053 oldincludedir=$ac_optarg ;;
1055 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1056 ac_prev=prefix ;;
1057 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1058 prefix=$ac_optarg ;;
1060 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061 | --program-pre | --program-pr | --program-p)
1062 ac_prev=program_prefix ;;
1063 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1065 program_prefix=$ac_optarg ;;
1067 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068 | --program-suf | --program-su | --program-s)
1069 ac_prev=program_suffix ;;
1070 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1072 program_suffix=$ac_optarg ;;
1074 -program-transform-name | --program-transform-name \
1075 | --program-transform-nam | --program-transform-na \
1076 | --program-transform-n | --program-transform- \
1077 | --program-transform | --program-transfor \
1078 | --program-transfo | --program-transf \
1079 | --program-trans | --program-tran \
1080 | --progr-tra | --program-tr | --program-t)
1081 ac_prev=program_transform_name ;;
1082 -program-transform-name=* | --program-transform-name=* \
1083 | --program-transform-nam=* | --program-transform-na=* \
1084 | --program-transform-n=* | --program-transform-=* \
1085 | --program-transform=* | --program-transfor=* \
1086 | --program-transfo=* | --program-transf=* \
1087 | --program-trans=* | --program-tran=* \
1088 | --progr-tra=* | --program-tr=* | --program-t=*)
1089 program_transform_name=$ac_optarg ;;
1091 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1092 ac_prev=pdfdir ;;
1093 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094 pdfdir=$ac_optarg ;;
1096 -psdir | --psdir | --psdi | --psd | --ps)
1097 ac_prev=psdir ;;
1098 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099 psdir=$ac_optarg ;;
1101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102 | -silent | --silent | --silen | --sile | --sil)
1103 silent=yes ;;
1105 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106 ac_prev=sbindir ;;
1107 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108 | --sbi=* | --sb=*)
1109 sbindir=$ac_optarg ;;
1111 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113 | --sharedst | --shareds | --shared | --share | --shar \
1114 | --sha | --sh)
1115 ac_prev=sharedstatedir ;;
1116 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119 | --sha=* | --sh=*)
1120 sharedstatedir=$ac_optarg ;;
1122 -site | --site | --sit)
1123 ac_prev=site ;;
1124 -site=* | --site=* | --sit=*)
1125 site=$ac_optarg ;;
1127 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128 ac_prev=srcdir ;;
1129 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130 srcdir=$ac_optarg ;;
1132 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133 | --syscon | --sysco | --sysc | --sys | --sy)
1134 ac_prev=sysconfdir ;;
1135 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137 sysconfdir=$ac_optarg ;;
1139 -target | --target | --targe | --targ | --tar | --ta | --t)
1140 ac_prev=target_alias ;;
1141 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142 target_alias=$ac_optarg ;;
1144 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145 verbose=yes ;;
1147 -version | --version | --versio | --versi | --vers | -V)
1148 ac_init_version=: ;;
1150 -with-* | --with-*)
1151 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1154 { echo "$as_me: error: invalid package name: $ac_package" >&2
1155 { (exit 1); exit 1; }; }
1156 ac_package=`echo $ac_package| sed 's/-/_/g'`
1157 eval with_$ac_package=\$ac_optarg ;;
1159 -without-* | --without-*)
1160 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1163 { echo "$as_me: error: invalid package name: $ac_package" >&2
1164 { (exit 1); exit 1; }; }
1165 ac_package=`echo $ac_package | sed 's/-/_/g'`
1166 eval with_$ac_package=no ;;
1168 --x)
1169 # Obsolete; use --with-x.
1170 with_x=yes ;;
1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173 | --x-incl | --x-inc | --x-in | --x-i)
1174 ac_prev=x_includes ;;
1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177 x_includes=$ac_optarg ;;
1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181 ac_prev=x_libraries ;;
1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184 x_libraries=$ac_optarg ;;
1186 -*) { echo "$as_me: error: unrecognized option: $ac_option
1187 Try \`$0 --help' for more information." >&2
1188 { (exit 1); exit 1; }; }
1189 ;;
1191 *=*)
1192 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1195 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1196 { (exit 1); exit 1; }; }
1197 eval $ac_envvar=\$ac_optarg
1198 export $ac_envvar ;;
1200 *)
1201 # FIXME: should be removed in autoconf 3.0.
1202 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1206 ;;
1208 esac
1209 done
1211 if test -n "$ac_prev"; then
1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213 { echo "$as_me: error: missing argument to $ac_option" >&2
1214 { (exit 1); exit 1; }; }
1215 fi
1217 # Be sure to have absolute directory names.
1218 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219 datadir sysconfdir sharedstatedir localstatedir includedir \
1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221 libdir localedir mandir
1222 do
1223 eval ac_val=\$$ac_var
1224 case $ac_val in
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227 esac
1228 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1229 { (exit 1); exit 1; }; }
1230 done
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1235 build=$build_alias
1236 host=$host_alias
1237 target=$target_alias
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241 if test "x$build_alias" = x; then
1242 cross_compiling=maybe
1243 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1244 If a cross compiler is detected then cross compile mode will be used." >&2
1245 elif test "x$build_alias" != "x$host_alias"; then
1246 cross_compiling=yes
1247 fi
1248 fi
1250 ac_tool_prefix=
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253 test "$silent" = yes && exec 6>/dev/null
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 { echo "$as_me: error: Working directory cannot be determined" >&2
1260 { (exit 1); exit 1; }; }
1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262 { echo "$as_me: error: pwd does not report name of working directory" >&2
1263 { (exit 1); exit 1; }; }
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268 ac_srcdir_defaulted=yes
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir=`$as_dirname -- "$0" ||
1271 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$0" : 'X\(//\)[^/]' \| \
1273 X"$0" : 'X\(//\)$' \| \
1274 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1275 echo X"$0" |
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)[^/].*/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\/\)$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\).*/{
1289 s//\1/
1290 q
1291 }
1292 s/.*/./; q'`
1293 srcdir=$ac_confdir
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 srcdir=..
1296 fi
1297 else
1298 ac_srcdir_defaulted=no
1299 fi
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1303 { (exit 1); exit 1; }; }
1304 fi
1305 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 ac_abs_confdir=`(
1307 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1308 { (exit 1); exit 1; }; }
1309 pwd)`
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 srcdir=.
1313 fi
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1317 case $srcdir in
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319 esac
1320 for ac_var in $ac_precious_vars; do
1321 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_env_${ac_var}_value=\$${ac_var}
1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325 done
1327 #
1328 # Report the --help message.
1329 #
1330 if test "$ac_init_help" = "long"; then
1331 # Omit some internal or obsolete options to make the list less imposing.
1332 # This message is too long to be a string in the A/UX 3.1 sh.
1333 cat <<_ACEOF
1334 \`configure' configures LLVM 3.4svn to adapt to many kinds of systems.
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE. See below for descriptions of some of the useful variables.
1341 Defaults for the options are specified in brackets.
1343 Configuration:
1344 -h, --help display this help and exit
1345 --help=short display options specific to this package
1346 --help=recursive display the short help of all the included packages
1347 -V, --version display version information and exit
1348 -q, --quiet, --silent do not print \`checking...' messages
1349 --cache-file=FILE cache test results in FILE [disabled]
1350 -C, --config-cache alias for \`--cache-file=config.cache'
1351 -n, --no-create do not create output files
1352 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1354 Installation directories:
1355 --prefix=PREFIX install architecture-independent files in PREFIX
1356 [$ac_default_prefix]
1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358 [PREFIX]
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1365 For better control, use the options below.
1367 Fine tuning of the installation directories:
1368 --bindir=DIR user executables [EPREFIX/bin]
1369 --sbindir=DIR system admin executables [EPREFIX/sbin]
1370 --libexecdir=DIR program executables [EPREFIX/libexec]
1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1374 --libdir=DIR object code libraries [EPREFIX/lib]
1375 --includedir=DIR C header files [PREFIX/include]
1376 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1377 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1378 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1379 --infodir=DIR info documentation [DATAROOTDIR/info]
1380 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1381 --mandir=DIR man documentation [DATAROOTDIR/man]
1382 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1383 --htmldir=DIR html documentation [DOCDIR]
1384 --dvidir=DIR dvi documentation [DOCDIR]
1385 --pdfdir=DIR pdf documentation [DOCDIR]
1386 --psdir=DIR ps documentation [DOCDIR]
1387 _ACEOF
1389 cat <<\_ACEOF
1391 System types:
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 --target=TARGET configure for building compilers for TARGET [HOST]
1395 _ACEOF
1396 fi
1398 if test -n "$ac_init_help"; then
1399 case $ac_init_help in
1400 short | recursive ) echo "Configuration of LLVM 3.4svn:";;
1401 esac
1402 cat <<\_ACEOF
1404 Optional Features:
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1407 --enable-polly Use polly if available (default is YES)
1408 --enable-libcpp Use libc++ if available (default is NO)
1409 --enable-cxx11 Use c++11 if available (default is NO)
1410 --enable-split-dwarf Use split-dwarf if available (default is NO)
1411 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1412 --enable-clang-static-analyzer
1413 Enable building of clang Static Analyzer (default is
1414 YES)
1415 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1416 --enable-optimized Compile with optimizations enabled (default is NO)
1417 --enable-profiling Compile with profiling enabled (default is NO)
1418 --enable-assertions Compile with assertion checks enabled (default is
1419 YES)
1420 --enable-werror Compile with -Werror enabled (default is NO)
1421 --enable-expensive-checks
1422 Compile with expensive debug checks enabled (default
1423 is NO)
1424 --enable-debug-runtime Build runtime libs with debug symbols (default is
1425 NO)
1426 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1427 optimization is on and YES if it's off)
1428 --enable-keep-symbols Do not strip installed executables)
1429 --enable-jit Enable Just In Time Compiling (default is YES)
1430 --enable-docs Build documents (default is YES)
1431 --enable-doxygen Build doxygen documentation (default is NO)
1432 --enable-threads Use threads if available (default is YES)
1433 --enable-pthreads Use pthreads if available (default is YES)
1434 --enable-zlib Use zlib for compression/decompression if available
1435 (default is YES)
1436 --enable-pic Build LLVM with Position Independent Code (default
1437 is YES)
1438 --enable-shared Build a shared library and link tools against it
1439 (default is NO)
1440 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1441 Win32 DLL (default is NO)
1442 --enable-timestamps Enable embedding timestamp information in build
1443 (default is YES)
1444 --enable-backtraces Enable embedding backtraces on crash (default is
1445 YES)
1446 --enable-targets Build specific host targets: all or
1447 target1,target2,... Valid targets are: host, x86,
1448 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1449 xcore, msp430, nvptx, systemz, r600, and cpp
1450 (default=all)
1451 --enable-experimental-targets
1452 Build experimental host targets: disable or
1453 target1,target2,... (default=disable)
1454 --enable-bindings Build specific language bindings:
1455 all,auto,none,{binding-name} (default=auto)
1456 --enable-libffi Check for the presence of libffi (default is NO)
1457 --enable-ltdl-install install libltdl
1459 Optional Packages:
1460 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1461 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1462 --with-optimize-option Select the compiler options to use for optimized
1463 builds
1464 --with-extra-options Specify additional options to compile LLVM with
1465 --with-extra-ld-options Specify additional options to link LLVM with
1466 --with-ocaml-libdir Specify install location for ocaml bindings (default
1467 is stdlib)
1468 --with-clang-srcdir Directory to the out-of-tree Clang source
1469 --with-clang-resource-dir
1470 Relative directory from the Clang binary for
1471 resource files
1472 --with-c-include-dirs Colon separated list of directories clang will
1473 search for headers
1474 --with-gcc-toolchain Directory where gcc is installed.
1475 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1476 --with-binutils-include Specify path to binutils/include/ containing
1477 plugin-api.h file for gold plugin.
1478 --with-bug-report-url Specify the URL where bug reports should be
1479 submitted (default=http://llvm.org/bugs/)
1480 --with-internal-prefix Installation directory for internal files
1481 --with-python path to python
1482 --with-udis86=<path> Use udis86 external x86 disassembler library
1483 --with-oprofile=<prefix>
1484 Tell OProfile >= 0.9.4 how to symbolize JIT output
1485 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1488 Some influential environment variables:
1489 CC C compiler command
1490 CFLAGS C compiler flags
1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492 nonstandard directory <lib dir>
1493 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1494 you have headers in a nonstandard directory <include dir>
1495 CXX C++ compiler command
1496 CXXFLAGS C++ compiler flags
1497 CPP C preprocessor
1498 CXXCPP C++ preprocessor
1500 Use these variables to override the choices made by `configure' or to help
1501 it to find libraries and programs with nonstandard names/locations.
1503 Report bugs to <http://llvm.org/bugs/>.
1504 _ACEOF
1505 ac_status=$?
1506 fi
1508 if test "$ac_init_help" = "recursive"; then
1509 # If there are subdirs, report their specific --help.
1510 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511 test -d "$ac_dir" || continue
1512 ac_builddir=.
1514 case "$ac_dir" in
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *)
1517 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1518 # A ".." for each directory in $ac_dir_suffix.
1519 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1520 case $ac_top_builddir_sub in
1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523 esac ;;
1524 esac
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1530 case $srcdir in
1531 .) # We are building in place.
1532 ac_srcdir=.
1533 ac_top_srcdir=$ac_top_builddir_sub
1534 ac_abs_top_srcdir=$ac_pwd ;;
1535 [\\/]* | ?:[\\/]* ) # Absolute name.
1536 ac_srcdir=$srcdir$ac_dir_suffix;
1537 ac_top_srcdir=$srcdir
1538 ac_abs_top_srcdir=$srcdir ;;
1539 *) # Relative name.
1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541 ac_top_srcdir=$ac_top_build_prefix$srcdir
1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543 esac
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546 cd "$ac_dir" || { ac_status=$?; continue; }
1547 # Check for guested configure.
1548 if test -f "$ac_srcdir/configure.gnu"; then
1549 echo &&
1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551 elif test -f "$ac_srcdir/configure"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure" --help=recursive
1554 else
1555 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556 fi || ac_status=$?
1557 cd "$ac_pwd" || { ac_status=$?; break; }
1558 done
1559 fi
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1563 cat <<\_ACEOF
1564 LLVM configure 3.4svn
1565 generated by GNU Autoconf 2.60
1567 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1568 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1572 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1573 _ACEOF
1574 exit
1575 fi
1576 cat >config.log <<_ACEOF
1577 This file contains any messages produced by compilers while
1578 running configure, to aid debugging if configure makes a mistake.
1580 It was created by LLVM $as_me 3.4svn, which was
1581 generated by GNU Autoconf 2.60. Invocation command line was
1583 $ $0 $@
1585 _ACEOF
1586 exec 5>>config.log
1587 {
1588 cat <<_ASUNAME
1589 ## --------- ##
1590 ## Platform. ##
1591 ## --------- ##
1593 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1594 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1595 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1596 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1597 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1599 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1600 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1602 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1603 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1604 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1605 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1606 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1607 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1608 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1610 _ASUNAME
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 for as_dir in $PATH
1614 do
1615 IFS=$as_save_IFS
1616 test -z "$as_dir" && as_dir=.
1617 echo "PATH: $as_dir"
1618 done
1619 IFS=$as_save_IFS
1621 } >&5
1623 cat >&5 <<_ACEOF
1626 ## ----------- ##
1627 ## Core tests. ##
1628 ## ----------- ##
1630 _ACEOF
1633 # Keep a trace of the command line.
1634 # Strip out --no-create and --no-recursion so they do not pile up.
1635 # Strip out --silent because we don't want to record it for future runs.
1636 # Also quote any args containing shell meta-characters.
1637 # Make two passes to allow for proper duplicate-argument suppression.
1638 ac_configure_args=
1639 ac_configure_args0=
1640 ac_configure_args1=
1641 ac_must_keep_next=false
1642 for ac_pass in 1 2
1643 do
1644 for ac_arg
1645 do
1646 case $ac_arg in
1647 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1648 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1649 | -silent | --silent | --silen | --sile | --sil)
1650 continue ;;
1651 *\'*)
1652 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1653 esac
1654 case $ac_pass in
1655 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1656 2)
1657 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1658 if test $ac_must_keep_next = true; then
1659 ac_must_keep_next=false # Got value, back to normal.
1660 else
1661 case $ac_arg in
1662 *=* | --config-cache | -C | -disable-* | --disable-* \
1663 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1664 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1665 | -with-* | --with-* | -without-* | --without-* | --x)
1666 case "$ac_configure_args0 " in
1667 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1668 esac
1669 ;;
1670 -* ) ac_must_keep_next=true ;;
1671 esac
1672 fi
1673 ac_configure_args="$ac_configure_args '$ac_arg'"
1674 ;;
1675 esac
1676 done
1677 done
1678 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1679 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1681 # When interrupted or exit'd, cleanup temporary files, and complete
1682 # config.log. We remove comments because anyway the quotes in there
1683 # would cause problems or look ugly.
1684 # WARNING: Use '\'' to represent an apostrophe within the trap.
1685 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1686 trap 'exit_status=$?
1687 # Save into config.log some information that might help in debugging.
1688 {
1689 echo
1691 cat <<\_ASBOX
1692 ## ---------------- ##
1693 ## Cache variables. ##
1694 ## ---------------- ##
1695 _ASBOX
1696 echo
1697 # The following way of writing the cache mishandles newlines in values,
1698 (
1699 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1700 eval ac_val=\$$ac_var
1701 case $ac_val in #(
1702 *${as_nl}*)
1703 case $ac_var in #(
1704 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1705 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1706 esac
1707 case $ac_var in #(
1708 _ | IFS | as_nl) ;; #(
1709 *) $as_unset $ac_var ;;
1710 esac ;;
1711 esac
1712 done
1713 (set) 2>&1 |
1714 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1715 *${as_nl}ac_space=\ *)
1716 sed -n \
1717 "s/'\''/'\''\\\\'\'''\''/g;
1718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1719 ;; #(
1720 *)
1721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1722 ;;
1723 esac |
1724 sort
1725 )
1726 echo
1728 cat <<\_ASBOX
1729 ## ----------------- ##
1730 ## Output variables. ##
1731 ## ----------------- ##
1732 _ASBOX
1733 echo
1734 for ac_var in $ac_subst_vars
1735 do
1736 eval ac_val=\$$ac_var
1737 case $ac_val in
1738 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1739 esac
1740 echo "$ac_var='\''$ac_val'\''"
1741 done | sort
1742 echo
1744 if test -n "$ac_subst_files"; then
1745 cat <<\_ASBOX
1746 ## ------------------- ##
1747 ## File substitutions. ##
1748 ## ------------------- ##
1749 _ASBOX
1750 echo
1751 for ac_var in $ac_subst_files
1752 do
1753 eval ac_val=\$$ac_var
1754 case $ac_val in
1755 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756 esac
1757 echo "$ac_var='\''$ac_val'\''"
1758 done | sort
1759 echo
1760 fi
1762 if test -s confdefs.h; then
1763 cat <<\_ASBOX
1764 ## ----------- ##
1765 ## confdefs.h. ##
1766 ## ----------- ##
1767 _ASBOX
1768 echo
1769 cat confdefs.h
1770 echo
1771 fi
1772 test "$ac_signal" != 0 &&
1773 echo "$as_me: caught signal $ac_signal"
1774 echo "$as_me: exit $exit_status"
1775 } >&5
1776 rm -f core *.core core.conftest.* &&
1777 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1778 exit $exit_status
1779 ' 0
1780 for ac_signal in 1 2 13 15; do
1781 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1782 done
1783 ac_signal=0
1785 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1786 rm -f -r conftest* confdefs.h
1788 # Predefined preprocessor variables.
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_NAME "$PACKAGE_NAME"
1792 _ACEOF
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1797 _ACEOF
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1802 _ACEOF
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_STRING "$PACKAGE_STRING"
1807 _ACEOF
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1812 _ACEOF
1815 # Let the site file select an alternate cache file if it wants to.
1816 # Prefer explicitly selected file to automatically selected ones.
1817 if test -n "$CONFIG_SITE"; then
1818 set x "$CONFIG_SITE"
1819 elif test "x$prefix" != xNONE; then
1820 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1821 else
1822 set x "$ac_default_prefix/share/config.site" \
1823 "$ac_default_prefix/etc/config.site"
1824 fi
1825 shift
1826 for ac_site_file
1827 do
1828 if test -r "$ac_site_file"; then
1829 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1830 echo "$as_me: loading site script $ac_site_file" >&6;}
1831 sed 's/^/| /' "$ac_site_file" >&5
1832 . "$ac_site_file"
1833 fi
1834 done
1836 if test -r "$cache_file"; then
1837 # Some versions of bash will fail to source /dev/null (special
1838 # files actually), so we avoid doing that.
1839 if test -f "$cache_file"; then
1840 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1841 echo "$as_me: loading cache $cache_file" >&6;}
1842 case $cache_file in
1843 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1844 *) . "./$cache_file";;
1845 esac
1846 fi
1847 else
1848 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1849 echo "$as_me: creating cache $cache_file" >&6;}
1850 >$cache_file
1851 fi
1853 # Check that the precious variables saved in the cache have kept the same
1854 # value.
1855 ac_cache_corrupted=false
1856 for ac_var in $ac_precious_vars; do
1857 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1858 eval ac_new_set=\$ac_env_${ac_var}_set
1859 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1860 eval ac_new_val=\$ac_env_${ac_var}_value
1861 case $ac_old_set,$ac_new_set in
1862 set,)
1863 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1864 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1865 ac_cache_corrupted=: ;;
1866 ,set)
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1870 ,);;
1871 *)
1872 if test "x$ac_old_val" != "x$ac_new_val"; then
1873 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1874 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1875 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1876 echo "$as_me: former value: $ac_old_val" >&2;}
1877 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1878 echo "$as_me: current value: $ac_new_val" >&2;}
1879 ac_cache_corrupted=:
1880 fi;;
1881 esac
1882 # Pass precious variables to config.status.
1883 if test "$ac_new_set" = set; then
1884 case $ac_new_val in
1885 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1886 *) ac_arg=$ac_var=$ac_new_val ;;
1887 esac
1888 case " $ac_configure_args " in
1889 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1890 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1891 esac
1892 fi
1893 done
1894 if $ac_cache_corrupted; then
1895 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1896 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1897 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1898 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1899 { (exit 1); exit 1; }; }
1900 fi
1926 ac_ext=c
1927 ac_cpp='$CPP $CPPFLAGS'
1928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934 cat >>confdefs.h <<\_ACEOF
1935 #define LLVM_VERSION_MAJOR 3
1936 _ACEOF
1939 cat >>confdefs.h <<\_ACEOF
1940 #define LLVM_VERSION_MINOR 4
1941 _ACEOF
1944 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1952 ac_aux_dir=
1953 for ac_dir in autoconf "$srcdir"/autoconf; do
1954 if test -f "$ac_dir/install-sh"; then
1955 ac_aux_dir=$ac_dir
1956 ac_install_sh="$ac_aux_dir/install-sh -c"
1957 break
1958 elif test -f "$ac_dir/install.sh"; then
1959 ac_aux_dir=$ac_dir
1960 ac_install_sh="$ac_aux_dir/install.sh -c"
1961 break
1962 elif test -f "$ac_dir/shtool"; then
1963 ac_aux_dir=$ac_dir
1964 ac_install_sh="$ac_aux_dir/shtool install -c"
1965 break
1966 fi
1967 done
1968 if test -z "$ac_aux_dir"; then
1969 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1970 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1971 { (exit 1); exit 1; }; }
1972 fi
1974 # These three variables are undocumented and unsupported,
1975 # and are intended to be withdrawn in a future Autoconf release.
1976 # They can cause serious problems if a builder's source tree is in a directory
1977 # whose full name contains unusual characters.
1978 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1979 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1980 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1984 if test ${srcdir} != "." ; then
1985 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1986 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1987 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1988 { (exit 1); exit 1; }; }
1989 fi
1990 fi
1992 ${CFLAGS=}
1993 ${CXXFLAGS=}
1995 ac_ext=c
1996 ac_cpp='$CPP $CPPFLAGS'
1997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2000 if test -n "$ac_tool_prefix"; then
2001 for ac_prog in clang llvm-gcc gcc
2002 do
2003 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2004 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2007 if test "${ac_cv_prog_CC+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010 if test -n "$CC"; then
2011 ac_cv_prog_CC="$CC" # Let the user override the test.
2012 else
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2015 do
2016 IFS=$as_save_IFS
2017 test -z "$as_dir" && as_dir=.
2018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2020 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022 break 2
2023 fi
2024 done
2025 done
2026 IFS=$as_save_IFS
2028 fi
2029 fi
2030 CC=$ac_cv_prog_CC
2031 if test -n "$CC"; then
2032 { echo "$as_me:$LINENO: result: $CC" >&5
2033 echo "${ECHO_T}$CC" >&6; }
2034 else
2035 { echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6; }
2037 fi
2040 test -n "$CC" && break
2041 done
2042 fi
2043 if test -z "$CC"; then
2044 ac_ct_CC=$CC
2045 for ac_prog in clang llvm-gcc gcc
2046 do
2047 # Extract the first word of "$ac_prog", so it can be a program name with args.
2048 set dummy $ac_prog; ac_word=$2
2049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054 if test -n "$ac_ct_CC"; then
2055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2056 else
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 for as_dir in $PATH
2059 do
2060 IFS=$as_save_IFS
2061 test -z "$as_dir" && as_dir=.
2062 for ac_exec_ext in '' $ac_executable_extensions; do
2063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2064 ac_cv_prog_ac_ct_CC="$ac_prog"
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 break 2
2067 fi
2068 done
2069 done
2070 IFS=$as_save_IFS
2072 fi
2073 fi
2074 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2075 if test -n "$ac_ct_CC"; then
2076 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2077 echo "${ECHO_T}$ac_ct_CC" >&6; }
2078 else
2079 { echo "$as_me:$LINENO: result: no" >&5
2080 echo "${ECHO_T}no" >&6; }
2081 fi
2084 test -n "$ac_ct_CC" && break
2085 done
2087 if test "x$ac_ct_CC" = x; then
2088 CC=""
2089 else
2090 case $cross_compiling:$ac_tool_warned in
2091 yes:)
2092 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2093 whose name does not start with the host triplet. If you think this
2094 configuration is useful to you, please write to autoconf@gnu.org." >&5
2095 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2096 whose name does not start with the host triplet. If you think this
2097 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2098 ac_tool_warned=yes ;;
2099 esac
2100 CC=$ac_ct_CC
2101 fi
2102 fi
2105 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2106 See \`config.log' for more details." >&5
2107 echo "$as_me: error: no acceptable C compiler found in \$PATH
2108 See \`config.log' for more details." >&2;}
2109 { (exit 1); exit 1; }; }
2111 # Provide some information about the compiler.
2112 echo "$as_me:$LINENO: checking for C compiler version" >&5
2113 ac_compiler=`set X $ac_compile; echo $2`
2114 { (ac_try="$ac_compiler --version >&5"
2115 case "(($ac_try" in
2116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117 *) ac_try_echo=$ac_try;;
2118 esac
2119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2120 (eval "$ac_compiler --version >&5") 2>&5
2121 ac_status=$?
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }
2124 { (ac_try="$ac_compiler -v >&5"
2125 case "(($ac_try" in
2126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127 *) ac_try_echo=$ac_try;;
2128 esac
2129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2130 (eval "$ac_compiler -v >&5") 2>&5
2131 ac_status=$?
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }
2134 { (ac_try="$ac_compiler -V >&5"
2135 case "(($ac_try" in
2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137 *) ac_try_echo=$ac_try;;
2138 esac
2139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2140 (eval "$ac_compiler -V >&5") 2>&5
2141 ac_status=$?
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }
2145 cat >conftest.$ac_ext <<_ACEOF
2146 /* confdefs.h. */
2147 _ACEOF
2148 cat confdefs.h >>conftest.$ac_ext
2149 cat >>conftest.$ac_ext <<_ACEOF
2150 /* end confdefs.h. */
2152 int
2153 main ()
2154 {
2156 ;
2157 return 0;
2158 }
2159 _ACEOF
2160 ac_clean_files_save=$ac_clean_files
2161 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2162 # Try to create an executable without -o first, disregard a.out.
2163 # It will help us diagnose broken compilers, and finding out an intuition
2164 # of exeext.
2165 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2166 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2167 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2168 #
2169 # List of possible output files, starting from the most likely.
2170 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2171 # only as a last resort. b.out is created by i960 compilers.
2172 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2173 #
2174 # The IRIX 6 linker writes into existing files which may not be
2175 # executable, retaining their permissions. Remove them first so a
2176 # subsequent execution test works.
2177 ac_rmfiles=
2178 for ac_file in $ac_files
2179 do
2180 case $ac_file in
2181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2182 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2183 esac
2184 done
2185 rm -f $ac_rmfiles
2187 if { (ac_try="$ac_link_default"
2188 case "(($ac_try" in
2189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2190 *) ac_try_echo=$ac_try;;
2191 esac
2192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2193 (eval "$ac_link_default") 2>&5
2194 ac_status=$?
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }; then
2197 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2198 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2199 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2200 # so that the user can short-circuit this test for compilers unknown to
2201 # Autoconf.
2202 for ac_file in $ac_files
2203 do
2204 test -f "$ac_file" || continue
2205 case $ac_file in
2206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2207 ;;
2208 [ab].out )
2209 # We found the default executable, but exeext='' is most
2210 # certainly right.
2211 break;;
2212 *.* )
2213 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2214 then :; else
2215 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2216 fi
2217 # We set ac_cv_exeext here because the later test for it is not
2218 # safe: cross compilers may not add the suffix if given an `-o'
2219 # argument, so we may need to know it at that point already.
2220 # Even if this section looks crufty: it has the advantage of
2221 # actually working.
2222 break;;
2223 * )
2224 break;;
2225 esac
2226 done
2227 test "$ac_cv_exeext" = no && ac_cv_exeext=
2229 else
2230 echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2233 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: C compiler cannot create executables
2236 See \`config.log' for more details." >&2;}
2237 { (exit 77); exit 77; }; }
2238 fi
2240 ac_exeext=$ac_cv_exeext
2241 { echo "$as_me:$LINENO: result: $ac_file" >&5
2242 echo "${ECHO_T}$ac_file" >&6; }
2244 # Check that the compiler produces executables we can run. If not, either
2245 # the compiler is broken, or we cross compile.
2246 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2247 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2248 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2249 # If not cross compiling, check that we can run a simple program.
2250 if test "$cross_compiling" != yes; then
2251 if { ac_try='./$ac_file'
2252 { (case "(($ac_try" in
2253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254 *) ac_try_echo=$ac_try;;
2255 esac
2256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2257 (eval "$ac_try") 2>&5
2258 ac_status=$?
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; }; then
2261 cross_compiling=no
2262 else
2263 if test "$cross_compiling" = maybe; then
2264 cross_compiling=yes
2265 else
2266 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2267 If you meant to cross compile, use \`--host'.
2268 See \`config.log' for more details." >&5
2269 echo "$as_me: error: cannot run C compiled programs.
2270 If you meant to cross compile, use \`--host'.
2271 See \`config.log' for more details." >&2;}
2272 { (exit 1); exit 1; }; }
2273 fi
2274 fi
2275 fi
2276 { echo "$as_me:$LINENO: result: yes" >&5
2277 echo "${ECHO_T}yes" >&6; }
2279 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2280 ac_clean_files=$ac_clean_files_save
2281 # Check that the compiler produces executables we can run. If not, either
2282 # the compiler is broken, or we cross compile.
2283 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2284 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2285 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2286 echo "${ECHO_T}$cross_compiling" >&6; }
2288 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2289 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2290 if { (ac_try="$ac_link"
2291 case "(($ac_try" in
2292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293 *) ac_try_echo=$ac_try;;
2294 esac
2295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2296 (eval "$ac_link") 2>&5
2297 ac_status=$?
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }; then
2300 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2301 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2302 # work properly (i.e., refer to `conftest.exe'), while it won't with
2303 # `rm'.
2304 for ac_file in conftest.exe conftest conftest.*; do
2305 test -f "$ac_file" || continue
2306 case $ac_file in
2307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2308 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2309 break;;
2310 * ) break;;
2311 esac
2312 done
2313 else
2314 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2315 See \`config.log' for more details." >&5
2316 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2317 See \`config.log' for more details." >&2;}
2318 { (exit 1); exit 1; }; }
2319 fi
2321 rm -f conftest$ac_cv_exeext
2322 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2323 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2325 rm -f conftest.$ac_ext
2326 EXEEXT=$ac_cv_exeext
2327 ac_exeext=$EXEEXT
2328 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2329 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2330 if test "${ac_cv_objext+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333 cat >conftest.$ac_ext <<_ACEOF
2334 /* confdefs.h. */
2335 _ACEOF
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h. */
2340 int
2341 main ()
2342 {
2344 ;
2345 return 0;
2346 }
2347 _ACEOF
2348 rm -f conftest.o conftest.obj
2349 if { (ac_try="$ac_compile"
2350 case "(($ac_try" in
2351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352 *) ac_try_echo=$ac_try;;
2353 esac
2354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2355 (eval "$ac_compile") 2>&5
2356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; then
2359 for ac_file in conftest.o conftest.obj conftest.*; do
2360 test -f "$ac_file" || continue;
2361 case $ac_file in
2362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2363 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2364 break;;
2365 esac
2366 done
2367 else
2368 echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.$ac_ext >&5
2371 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2372 See \`config.log' for more details." >&5
2373 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2374 See \`config.log' for more details." >&2;}
2375 { (exit 1); exit 1; }; }
2376 fi
2378 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2379 fi
2380 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2381 echo "${ECHO_T}$ac_cv_objext" >&6; }
2382 OBJEXT=$ac_cv_objext
2383 ac_objext=$OBJEXT
2384 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2385 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2386 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2387 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 else
2389 cat >conftest.$ac_ext <<_ACEOF
2390 /* confdefs.h. */
2391 _ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h. */
2396 int
2397 main ()
2398 {
2399 #ifndef __GNUC__
2400 choke me
2401 #endif
2403 ;
2404 return 0;
2405 }
2406 _ACEOF
2407 rm -f conftest.$ac_objext
2408 if { (ac_try="$ac_compile"
2409 case "(($ac_try" in
2410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411 *) ac_try_echo=$ac_try;;
2412 esac
2413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2414 (eval "$ac_compile") 2>conftest.er1
2415 ac_status=$?
2416 grep -v '^ *+' conftest.er1 >conftest.err
2417 rm -f conftest.er1
2418 cat conftest.err >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); } &&
2421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2422 { (case "(($ac_try" in
2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424 *) ac_try_echo=$ac_try;;
2425 esac
2426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2427 (eval "$ac_try") 2>&5
2428 ac_status=$?
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; } &&
2431 { ac_try='test -s conftest.$ac_objext'
2432 { (case "(($ac_try" in
2433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434 *) ac_try_echo=$ac_try;;
2435 esac
2436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2437 (eval "$ac_try") 2>&5
2438 ac_status=$?
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2441 ac_compiler_gnu=yes
2442 else
2443 echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2446 ac_compiler_gnu=no
2447 fi
2449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2452 fi
2453 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2454 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2455 GCC=`test $ac_compiler_gnu = yes && echo yes`
2456 ac_test_CFLAGS=${CFLAGS+set}
2457 ac_save_CFLAGS=$CFLAGS
2458 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2459 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2460 if test "${ac_cv_prog_cc_g+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 else
2463 ac_save_c_werror_flag=$ac_c_werror_flag
2464 ac_c_werror_flag=yes
2465 ac_cv_prog_cc_g=no
2466 CFLAGS="-g"
2467 cat >conftest.$ac_ext <<_ACEOF
2468 /* confdefs.h. */
2469 _ACEOF
2470 cat confdefs.h >>conftest.$ac_ext
2471 cat >>conftest.$ac_ext <<_ACEOF
2472 /* end confdefs.h. */
2474 int
2475 main ()
2476 {
2478 ;
2479 return 0;
2480 }
2481 _ACEOF
2482 rm -f conftest.$ac_objext
2483 if { (ac_try="$ac_compile"
2484 case "(($ac_try" in
2485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486 *) ac_try_echo=$ac_try;;
2487 esac
2488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2489 (eval "$ac_compile") 2>conftest.er1
2490 ac_status=$?
2491 grep -v '^ *+' conftest.er1 >conftest.err
2492 rm -f conftest.er1
2493 cat conftest.err >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); } &&
2496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2497 { (case "(($ac_try" in
2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499 *) ac_try_echo=$ac_try;;
2500 esac
2501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2502 (eval "$ac_try") 2>&5
2503 ac_status=$?
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; } &&
2506 { ac_try='test -s conftest.$ac_objext'
2507 { (case "(($ac_try" in
2508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509 *) ac_try_echo=$ac_try;;
2510 esac
2511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512 (eval "$ac_try") 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; }; then
2516 ac_cv_prog_cc_g=yes
2517 else
2518 echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2521 CFLAGS=""
2522 cat >conftest.$ac_ext <<_ACEOF
2523 /* confdefs.h. */
2524 _ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h. */
2529 int
2530 main ()
2531 {
2533 ;
2534 return 0;
2535 }
2536 _ACEOF
2537 rm -f conftest.$ac_objext
2538 if { (ac_try="$ac_compile"
2539 case "(($ac_try" in
2540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541 *) ac_try_echo=$ac_try;;
2542 esac
2543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2544 (eval "$ac_compile") 2>conftest.er1
2545 ac_status=$?
2546 grep -v '^ *+' conftest.er1 >conftest.err
2547 rm -f conftest.er1
2548 cat conftest.err >&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } &&
2551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2552 { (case "(($ac_try" in
2553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554 *) ac_try_echo=$ac_try;;
2555 esac
2556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2557 (eval "$ac_try") 2>&5
2558 ac_status=$?
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; } &&
2561 { ac_try='test -s conftest.$ac_objext'
2562 { (case "(($ac_try" in
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2565 esac
2566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567 (eval "$ac_try") 2>&5
2568 ac_status=$?
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2571 :
2572 else
2573 echo "$as_me: failed program was:" >&5
2574 sed 's/^/| /' conftest.$ac_ext >&5
2576 ac_c_werror_flag=$ac_save_c_werror_flag
2577 CFLAGS="-g"
2578 cat >conftest.$ac_ext <<_ACEOF
2579 /* confdefs.h. */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h. */
2585 int
2586 main ()
2587 {
2589 ;
2590 return 0;
2591 }
2592 _ACEOF
2593 rm -f conftest.$ac_objext
2594 if { (ac_try="$ac_compile"
2595 case "(($ac_try" in
2596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597 *) ac_try_echo=$ac_try;;
2598 esac
2599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2600 (eval "$ac_compile") 2>conftest.er1
2601 ac_status=$?
2602 grep -v '^ *+' conftest.er1 >conftest.err
2603 rm -f conftest.er1
2604 cat conftest.err >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
2607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2608 { (case "(($ac_try" in
2609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2610 *) ac_try_echo=$ac_try;;
2611 esac
2612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2613 (eval "$ac_try") 2>&5
2614 ac_status=$?
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; } &&
2617 { ac_try='test -s conftest.$ac_objext'
2618 { (case "(($ac_try" in
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2621 esac
2622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2623 (eval "$ac_try") 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; }; then
2627 ac_cv_prog_cc_g=yes
2628 else
2629 echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2633 fi
2635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636 fi
2638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639 fi
2641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642 ac_c_werror_flag=$ac_save_c_werror_flag
2643 fi
2644 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2645 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2646 if test "$ac_test_CFLAGS" = set; then
2647 CFLAGS=$ac_save_CFLAGS
2648 elif test $ac_cv_prog_cc_g = yes; then
2649 if test "$GCC" = yes; then
2650 CFLAGS="-g -O2"
2651 else
2652 CFLAGS="-g"
2653 fi
2654 else
2655 if test "$GCC" = yes; then
2656 CFLAGS="-O2"
2657 else
2658 CFLAGS=
2659 fi
2660 fi
2661 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2662 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2663 if test "${ac_cv_prog_cc_c89+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 else
2666 ac_cv_prog_cc_c89=no
2667 ac_save_CC=$CC
2668 cat >conftest.$ac_ext <<_ACEOF
2669 /* confdefs.h. */
2670 _ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h. */
2674 #include <stdarg.h>
2675 #include <stdio.h>
2676 #include <sys/types.h>
2677 #include <sys/stat.h>
2678 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2679 struct buf { int x; };
2680 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2681 static char *e (p, i)
2682 char **p;
2683 int i;
2684 {
2685 return p[i];
2686 }
2687 static char *f (char * (*g) (char **, int), char **p, ...)
2688 {
2689 char *s;
2690 va_list v;
2691 va_start (v,p);
2692 s = g (p, va_arg (v,int));
2693 va_end (v);
2694 return s;
2695 }
2697 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2698 function prototypes and stuff, but not '\xHH' hex character constants.
2699 These don't provoke an error unfortunately, instead are silently treated
2700 as 'x'. The following induces an error, until -std is added to get
2701 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2702 array size at least. It's necessary to write '\x00'==0 to get something
2703 that's true only with -std. */
2704 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2706 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2707 inside strings and character constants. */
2708 #define FOO(x) 'x'
2709 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2711 int test (int i, double x);
2712 struct s1 {int (*f) (int a);};
2713 struct s2 {int (*f) (double a);};
2714 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2715 int argc;
2716 char **argv;
2717 int
2718 main ()
2719 {
2720 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2721 ;
2722 return 0;
2723 }
2724 _ACEOF
2725 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2726 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2727 do
2728 CC="$ac_save_CC $ac_arg"
2729 rm -f conftest.$ac_objext
2730 if { (ac_try="$ac_compile"
2731 case "(($ac_try" in
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2734 esac
2735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736 (eval "$ac_compile") 2>conftest.er1
2737 ac_status=$?
2738 grep -v '^ *+' conftest.er1 >conftest.err
2739 rm -f conftest.er1
2740 cat conftest.err >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); } &&
2743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2744 { (case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2747 esac
2748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749 (eval "$ac_try") 2>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; } &&
2753 { ac_try='test -s conftest.$ac_objext'
2754 { (case "(($ac_try" in
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2757 esac
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_try") 2>&5
2760 ac_status=$?
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; }; then
2763 ac_cv_prog_cc_c89=$ac_arg
2764 else
2765 echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2769 fi
2771 rm -f core conftest.err conftest.$ac_objext
2772 test "x$ac_cv_prog_cc_c89" != "xno" && break
2773 done
2774 rm -f conftest.$ac_ext
2775 CC=$ac_save_CC
2777 fi
2778 # AC_CACHE_VAL
2779 case "x$ac_cv_prog_cc_c89" in
2780 x)
2781 { echo "$as_me:$LINENO: result: none needed" >&5
2782 echo "${ECHO_T}none needed" >&6; } ;;
2783 xno)
2784 { echo "$as_me:$LINENO: result: unsupported" >&5
2785 echo "${ECHO_T}unsupported" >&6; } ;;
2786 *)
2787 CC="$CC $ac_cv_prog_cc_c89"
2788 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2789 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2790 esac
2793 ac_ext=c
2794 ac_cpp='$CPP $CPPFLAGS'
2795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2799 ac_ext=cpp
2800 ac_cpp='$CXXCPP $CPPFLAGS'
2801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2804 if test -z "$CXX"; then
2805 if test -n "$CCC"; then
2806 CXX=$CCC
2807 else
2808 if test -n "$ac_tool_prefix"; then
2809 for ac_prog in clang++ llvm-g++ g++
2810 do
2811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2812 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2815 if test "${ac_cv_prog_CXX+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818 if test -n "$CXX"; then
2819 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2828 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2831 fi
2832 done
2833 done
2834 IFS=$as_save_IFS
2836 fi
2837 fi
2838 CXX=$ac_cv_prog_CXX
2839 if test -n "$CXX"; then
2840 { echo "$as_me:$LINENO: result: $CXX" >&5
2841 echo "${ECHO_T}$CXX" >&6; }
2842 else
2843 { echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6; }
2845 fi
2848 test -n "$CXX" && break
2849 done
2850 fi
2851 if test -z "$CXX"; then
2852 ac_ct_CXX=$CXX
2853 for ac_prog in clang++ llvm-g++ g++
2854 do
2855 # Extract the first word of "$ac_prog", so it can be a program name with args.
2856 set dummy $ac_prog; ac_word=$2
2857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2859 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862 if test -n "$ac_ct_CXX"; then
2863 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2872 ac_cv_prog_ac_ct_CXX="$ac_prog"
2873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 break 2
2875 fi
2876 done
2877 done
2878 IFS=$as_save_IFS
2880 fi
2881 fi
2882 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2883 if test -n "$ac_ct_CXX"; then
2884 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2885 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2886 else
2887 { echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6; }
2889 fi
2892 test -n "$ac_ct_CXX" && break
2893 done
2895 if test "x$ac_ct_CXX" = x; then
2896 CXX="g++"
2897 else
2898 case $cross_compiling:$ac_tool_warned in
2899 yes:)
2900 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2901 whose name does not start with the host triplet. If you think this
2902 configuration is useful to you, please write to autoconf@gnu.org." >&5
2903 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2904 whose name does not start with the host triplet. If you think this
2905 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2906 ac_tool_warned=yes ;;
2907 esac
2908 CXX=$ac_ct_CXX
2909 fi
2910 fi
2912 fi
2913 fi
2914 # Provide some information about the compiler.
2915 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2916 ac_compiler=`set X $ac_compile; echo $2`
2917 { (ac_try="$ac_compiler --version >&5"
2918 case "(($ac_try" in
2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920 *) ac_try_echo=$ac_try;;
2921 esac
2922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923 (eval "$ac_compiler --version >&5") 2>&5
2924 ac_status=$?
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }
2927 { (ac_try="$ac_compiler -v >&5"
2928 case "(($ac_try" in
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2931 esac
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_compiler -v >&5") 2>&5
2934 ac_status=$?
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }
2937 { (ac_try="$ac_compiler -V >&5"
2938 case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941 esac
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compiler -V >&5") 2>&5
2944 ac_status=$?
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }
2948 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2949 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2950 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2952 else
2953 cat >conftest.$ac_ext <<_ACEOF
2954 /* confdefs.h. */
2955 _ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2960 int
2961 main ()
2962 {
2963 #ifndef __GNUC__
2964 choke me
2965 #endif
2967 ;
2968 return 0;
2969 }
2970 _ACEOF
2971 rm -f conftest.$ac_objext
2972 if { (ac_try="$ac_compile"
2973 case "(($ac_try" in
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2976 esac
2977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978 (eval "$ac_compile") 2>conftest.er1
2979 ac_status=$?
2980 grep -v '^ *+' conftest.er1 >conftest.err
2981 rm -f conftest.er1
2982 cat conftest.err >&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } &&
2985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2986 { (case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2989 esac
2990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991 (eval "$ac_try") 2>&5
2992 ac_status=$?
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; } &&
2995 { ac_try='test -s conftest.$ac_objext'
2996 { (case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
2999 esac
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_try") 2>&5
3002 ac_status=$?
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; }; then
3005 ac_compiler_gnu=yes
3006 else
3007 echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3010 ac_compiler_gnu=no
3011 fi
3013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3014 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3016 fi
3017 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3018 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3019 GXX=`test $ac_compiler_gnu = yes && echo yes`
3020 ac_test_CXXFLAGS=${CXXFLAGS+set}
3021 ac_save_CXXFLAGS=$CXXFLAGS
3022 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3023 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3024 if test "${ac_cv_prog_cxx_g+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 else
3027 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3028 ac_cxx_werror_flag=yes
3029 ac_cv_prog_cxx_g=no
3030 CXXFLAGS="-g"
3031 cat >conftest.$ac_ext <<_ACEOF
3032 /* confdefs.h. */
3033 _ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h. */
3038 int
3039 main ()
3040 {
3042 ;
3043 return 0;
3044 }
3045 _ACEOF
3046 rm -f conftest.$ac_objext
3047 if { (ac_try="$ac_compile"
3048 case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3051 esac
3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053 (eval "$ac_compile") 2>conftest.er1
3054 ac_status=$?
3055 grep -v '^ *+' conftest.er1 >conftest.err
3056 rm -f conftest.er1
3057 cat conftest.err >&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); } &&
3060 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3061 { (case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3064 esac
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066 (eval "$ac_try") 2>&5
3067 ac_status=$?
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; } &&
3070 { ac_try='test -s conftest.$ac_objext'
3071 { (case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074 esac
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_try") 2>&5
3077 ac_status=$?
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; }; then
3080 ac_cv_prog_cxx_g=yes
3081 else
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3085 CXXFLAGS=""
3086 cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h. */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3093 int
3094 main ()
3095 {
3097 ;
3098 return 0;
3099 }
3100 _ACEOF
3101 rm -f conftest.$ac_objext
3102 if { (ac_try="$ac_compile"
3103 case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3106 esac
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 (eval "$ac_compile") 2>conftest.er1
3109 ac_status=$?
3110 grep -v '^ *+' conftest.er1 >conftest.err
3111 rm -f conftest.er1
3112 cat conftest.err >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); } &&
3115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3116 { (case "(($ac_try" in
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3119 esac
3120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3121 (eval "$ac_try") 2>&5
3122 ac_status=$?
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; } &&
3125 { ac_try='test -s conftest.$ac_objext'
3126 { (case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129 esac
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_try") 2>&5
3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; }; then
3135 :
3136 else
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3140 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3141 CXXFLAGS="-g"
3142 cat >conftest.$ac_ext <<_ACEOF
3143 /* confdefs.h. */
3144 _ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3149 int
3150 main ()
3151 {
3153 ;
3154 return 0;
3155 }
3156 _ACEOF
3157 rm -f conftest.$ac_objext
3158 if { (ac_try="$ac_compile"
3159 case "(($ac_try" in
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3162 esac
3163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164 (eval "$ac_compile") 2>conftest.er1
3165 ac_status=$?
3166 grep -v '^ *+' conftest.er1 >conftest.err
3167 rm -f conftest.er1
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } &&
3171 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3172 { (case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175 esac
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_try") 2>&5
3178 ac_status=$?
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; } &&
3181 { ac_try='test -s conftest.$ac_objext'
3182 { (case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_try") 2>&5
3188 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; }; then
3191 ac_cv_prog_cxx_g=yes
3192 else
3193 echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3197 fi
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 fi
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 fi
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3207 fi
3208 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3209 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3210 if test "$ac_test_CXXFLAGS" = set; then
3211 CXXFLAGS=$ac_save_CXXFLAGS
3212 elif test $ac_cv_prog_cxx_g = yes; then
3213 if test "$GXX" = yes; then
3214 CXXFLAGS="-g -O2"
3215 else
3216 CXXFLAGS="-g"
3217 fi
3218 else
3219 if test "$GXX" = yes; then
3220 CXXFLAGS="-O2"
3221 else
3222 CXXFLAGS=
3223 fi
3224 fi
3225 ac_ext=c
3226 ac_cpp='$CPP $CPPFLAGS'
3227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231 ac_ext=c
3232 ac_cpp='$CPP $CPPFLAGS'
3233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3237 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3238 # On Suns, sometimes $CPP names a directory.
3239 if test -n "$CPP" && test -d "$CPP"; then
3240 CPP=
3241 fi
3242 if test -z "$CPP"; then
3243 if test "${ac_cv_prog_CPP+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246 # Double quotes because CPP needs to be expanded
3247 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3248 do
3249 ac_preproc_ok=false
3250 for ac_c_preproc_warn_flag in '' yes
3251 do
3252 # Use a header file that comes with gcc, so configuring glibc
3253 # with a fresh cross-compiler works.
3254 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3255 # <limits.h> exists even on freestanding compilers.
3256 # On the NeXT, cc -E runs the code through the compiler's parser,
3257 # not just through cpp. "Syntax error" is here to catch this case.
3258 cat >conftest.$ac_ext <<_ACEOF
3259 /* confdefs.h. */
3260 _ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h. */
3264 #ifdef __STDC__
3265 # include <limits.h>
3266 #else
3267 # include <assert.h>
3268 #endif
3269 Syntax error
3270 _ACEOF
3271 if { (ac_try="$ac_cpp conftest.$ac_ext"
3272 case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275 esac
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3278 ac_status=$?
3279 grep -v '^ *+' conftest.er1 >conftest.err
3280 rm -f conftest.er1
3281 cat conftest.err >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); } >/dev/null; then
3284 if test -s conftest.err; then
3285 ac_cpp_err=$ac_c_preproc_warn_flag
3286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3287 else
3288 ac_cpp_err=
3289 fi
3290 else
3291 ac_cpp_err=yes
3292 fi
3293 if test -z "$ac_cpp_err"; then
3294 :
3295 else
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3299 # Broken: fails on valid input.
3300 continue
3301 fi
3303 rm -f conftest.err conftest.$ac_ext
3305 # OK, works on sane cases. Now check whether nonexistent headers
3306 # can be detected and how.
3307 cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h. */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3313 #include <ac_nonexistent.h>
3314 _ACEOF
3315 if { (ac_try="$ac_cpp conftest.$ac_ext"
3316 case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319 esac
3320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3322 ac_status=$?
3323 grep -v '^ *+' conftest.er1 >conftest.err
3324 rm -f conftest.er1
3325 cat conftest.err >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } >/dev/null; then
3328 if test -s conftest.err; then
3329 ac_cpp_err=$ac_c_preproc_warn_flag
3330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3331 else
3332 ac_cpp_err=
3333 fi
3334 else
3335 ac_cpp_err=yes
3336 fi
3337 if test -z "$ac_cpp_err"; then
3338 # Broken: success on invalid input.
3339 continue
3340 else
3341 echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3344 # Passes both tests.
3345 ac_preproc_ok=:
3346 break
3347 fi
3349 rm -f conftest.err conftest.$ac_ext
3351 done
3352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3353 rm -f conftest.err conftest.$ac_ext
3354 if $ac_preproc_ok; then
3355 break
3356 fi
3358 done
3359 ac_cv_prog_CPP=$CPP
3361 fi
3362 CPP=$ac_cv_prog_CPP
3363 else
3364 ac_cv_prog_CPP=$CPP
3365 fi
3366 { echo "$as_me:$LINENO: result: $CPP" >&5
3367 echo "${ECHO_T}$CPP" >&6; }
3368 ac_preproc_ok=false
3369 for ac_c_preproc_warn_flag in '' yes
3370 do
3371 # Use a header file that comes with gcc, so configuring glibc
3372 # with a fresh cross-compiler works.
3373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3374 # <limits.h> exists even on freestanding compilers.
3375 # On the NeXT, cc -E runs the code through the compiler's parser,
3376 # not just through cpp. "Syntax error" is here to catch this case.
3377 cat >conftest.$ac_ext <<_ACEOF
3378 /* confdefs.h. */
3379 _ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3383 #ifdef __STDC__
3384 # include <limits.h>
3385 #else
3386 # include <assert.h>
3387 #endif
3388 Syntax error
3389 _ACEOF
3390 if { (ac_try="$ac_cpp conftest.$ac_ext"
3391 case "(($ac_try" in
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3394 esac
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3397 ac_status=$?
3398 grep -v '^ *+' conftest.er1 >conftest.err
3399 rm -f conftest.er1
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } >/dev/null; then
3403 if test -s conftest.err; then
3404 ac_cpp_err=$ac_c_preproc_warn_flag
3405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3406 else
3407 ac_cpp_err=
3408 fi
3409 else
3410 ac_cpp_err=yes
3411 fi
3412 if test -z "$ac_cpp_err"; then
3413 :
3414 else
3415 echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3418 # Broken: fails on valid input.
3419 continue
3420 fi
3422 rm -f conftest.err conftest.$ac_ext
3424 # OK, works on sane cases. Now check whether nonexistent headers
3425 # can be detected and how.
3426 cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h. */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3432 #include <ac_nonexistent.h>
3433 _ACEOF
3434 if { (ac_try="$ac_cpp conftest.$ac_ext"
3435 case "(($ac_try" in
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3438 esac
3439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3441 ac_status=$?
3442 grep -v '^ *+' conftest.er1 >conftest.err
3443 rm -f conftest.er1
3444 cat conftest.err >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } >/dev/null; then
3447 if test -s conftest.err; then
3448 ac_cpp_err=$ac_c_preproc_warn_flag
3449 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3450 else
3451 ac_cpp_err=
3452 fi
3453 else
3454 ac_cpp_err=yes
3455 fi
3456 if test -z "$ac_cpp_err"; then
3457 # Broken: success on invalid input.
3458 continue
3459 else
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3463 # Passes both tests.
3464 ac_preproc_ok=:
3465 break
3466 fi
3468 rm -f conftest.err conftest.$ac_ext
3470 done
3471 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3472 rm -f conftest.err conftest.$ac_ext
3473 if $ac_preproc_ok; then
3474 :
3475 else
3476 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3477 See \`config.log' for more details." >&5
3478 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3479 See \`config.log' for more details." >&2;}
3480 { (exit 1); exit 1; }; }
3481 fi
3483 ac_ext=c
3484 ac_cpp='$CPP $CPPFLAGS'
3485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490 if test "$CXX" = "clang++" ; then
3491 { echo "$as_me:$LINENO: checking whether clang works" >&5
3492 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3493 ac_ext=cpp
3494 ac_cpp='$CXXCPP $CPPFLAGS'
3495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h. */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3506 #include <limits>
3507 #if __has_include (<cxxabi.h>)
3508 #include <cxxabi.h>
3509 #endif
3510 #if __has_include (<unwind.h>)
3511 #include <unwind.h>
3512 #endif
3514 int
3515 main ()
3516 {
3518 ;
3519 return 0;
3520 }
3521 _ACEOF
3522 rm -f conftest.$ac_objext
3523 if { (ac_try="$ac_compile"
3524 case "(($ac_try" in
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3527 esac
3528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3529 (eval "$ac_compile") 2>conftest.er1
3530 ac_status=$?
3531 grep -v '^ *+' conftest.er1 >conftest.err
3532 rm -f conftest.er1
3533 cat conftest.err >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } &&
3536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3537 { (case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3540 esac
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542 (eval "$ac_try") 2>&5
3543 ac_status=$?
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; } &&
3546 { ac_try='test -s conftest.$ac_objext'
3547 { (case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3550 esac
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_try") 2>&5
3553 ac_status=$?
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; }; then
3557 { echo "$as_me:$LINENO: result: yes" >&5
3558 echo "${ECHO_T}yes" >&6; }
3560 else
3561 echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3565 { echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6; }
3567 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3568 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3569 { (exit 1); exit 1; }; }
3571 fi
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 ac_ext=c
3575 ac_cpp='$CPP $CPPFLAGS'
3576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3580 fi
3584 if test -d ${srcdir}/projects/llvm-gcc ; then
3585 subdirs="$subdirs projects/llvm-gcc"
3587 fi
3589 if test -d ${srcdir}/projects/test-suite ; then
3590 subdirs="$subdirs projects/test-suite"
3592 fi
3594 if test -d ${srcdir}/projects/llvm-test ; then
3595 subdirs="$subdirs projects/llvm-test"
3597 fi
3599 if test -d ${srcdir}/projects/poolalloc ; then
3600 subdirs="$subdirs projects/poolalloc"
3602 fi
3604 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3605 subdirs="$subdirs projects/llvm-poolalloc"
3607 fi
3609 for i in `ls ${srcdir}/projects`
3610 do
3611 if test -d ${srcdir}/projects/${i} ; then
3612 case ${i} in
3613 sample) subdirs="$subdirs projects/sample"
3614 ;;
3615 privbracket) subdirs="$subdirs projects/privbracket"
3616 ;;
3617 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3618 ;;
3619 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3620 ;;
3621 llvm-java) subdirs="$subdirs projects/llvm-java"
3622 ;;
3623 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3624 ;;
3625 safecode) subdirs="$subdirs projects/safecode"
3626 ;;
3627 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3628 ;;
3629 compiler-rt) ;;
3630 llvm-gcc) ;;
3631 test-suite) ;;
3632 llvm-test) ;;
3633 poolalloc) ;;
3634 llvm-poolalloc) ;;
3635 *)
3636 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3637 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3638 ;;
3639 esac
3640 fi
3641 done
3643 # Check whether --enable-polly was given.
3644 if test "${enable_polly+set}" = set; then
3645 enableval=$enable_polly;
3646 else
3647 enableval=default
3648 fi
3650 case "$enableval" in
3651 yes) ENABLE_POLLY=1
3652 ;;
3653 no) ENABLE_POLLY=0
3654 ;;
3655 default) ENABLE_POLLY=1
3656 ;;
3657 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3658 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3659 { (exit 1); exit 1; }; } ;;
3660 esac
3663 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3664 LLVM_HAS_POLLY=1
3666 subdirs="$subdirs tools/polly"
3668 fi
3671 # Make sure we can run config.sub.
3672 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3673 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3674 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3675 { (exit 1); exit 1; }; }
3677 { echo "$as_me:$LINENO: checking build system type" >&5
3678 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3679 if test "${ac_cv_build+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 else
3682 ac_build_alias=$build_alias
3683 test "x$ac_build_alias" = x &&
3684 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3685 test "x$ac_build_alias" = x &&
3686 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3687 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3688 { (exit 1); exit 1; }; }
3689 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3690 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3691 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3692 { (exit 1); exit 1; }; }
3694 fi
3695 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3696 echo "${ECHO_T}$ac_cv_build" >&6; }
3697 case $ac_cv_build in
3698 *-*-*) ;;
3699 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3700 echo "$as_me: error: invalid value of canonical build" >&2;}
3701 { (exit 1); exit 1; }; };;
3702 esac
3703 build=$ac_cv_build
3704 ac_save_IFS=$IFS; IFS='-'
3705 set x $ac_cv_build
3706 shift
3707 build_cpu=$1
3708 build_vendor=$2
3709 shift; shift
3710 # Remember, the first character of IFS is used to create $*,
3711 # except with old shells:
3712 build_os=$*
3713 IFS=$ac_save_IFS
3714 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3717 { echo "$as_me:$LINENO: checking host system type" >&5
3718 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3719 if test "${ac_cv_host+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722 if test "x$host_alias" = x; then
3723 ac_cv_host=$ac_cv_build
3724 else
3725 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3726 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3727 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3728 { (exit 1); exit 1; }; }
3729 fi
3731 fi
3732 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3733 echo "${ECHO_T}$ac_cv_host" >&6; }
3734 case $ac_cv_host in
3735 *-*-*) ;;
3736 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3737 echo "$as_me: error: invalid value of canonical host" >&2;}
3738 { (exit 1); exit 1; }; };;
3739 esac
3740 host=$ac_cv_host
3741 ac_save_IFS=$IFS; IFS='-'
3742 set x $ac_cv_host
3743 shift
3744 host_cpu=$1
3745 host_vendor=$2
3746 shift; shift
3747 # Remember, the first character of IFS is used to create $*,
3748 # except with old shells:
3749 host_os=$*
3750 IFS=$ac_save_IFS
3751 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3754 { echo "$as_me:$LINENO: checking target system type" >&5
3755 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3756 if test "${ac_cv_target+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759 if test "x$target_alias" = x; then
3760 ac_cv_target=$ac_cv_host
3761 else
3762 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3763 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3764 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3765 { (exit 1); exit 1; }; }
3766 fi
3768 fi
3769 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3770 echo "${ECHO_T}$ac_cv_target" >&6; }
3771 case $ac_cv_target in
3772 *-*-*) ;;
3773 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3774 echo "$as_me: error: invalid value of canonical target" >&2;}
3775 { (exit 1); exit 1; }; };;
3776 esac
3777 target=$ac_cv_target
3778 ac_save_IFS=$IFS; IFS='-'
3779 set x $ac_cv_target
3780 shift
3781 target_cpu=$1
3782 target_vendor=$2
3783 shift; shift
3784 # Remember, the first character of IFS is used to create $*,
3785 # except with old shells:
3786 target_os=$*
3787 IFS=$ac_save_IFS
3788 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3791 # The aliases save the names the user supplied, while $host etc.
3792 # will get canonicalized.
3793 test -n "$target_alias" &&
3794 test "$program_prefix$program_suffix$program_transform_name" = \
3795 NONENONEs,x,x, &&
3796 program_prefix=${target_alias}-
3798 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3799 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3800 if test "${llvm_cv_os_type+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 else
3803 case $host in
3804 *-*-aix*)
3805 llvm_cv_link_all_option="-Wl,--whole-archive"
3806 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3807 llvm_cv_os_type="AIX"
3808 llvm_cv_platform_type="Unix" ;;
3809 *-*-irix*)
3810 llvm_cv_link_all_option="-Wl,--whole-archive"
3811 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3812 llvm_cv_os_type="IRIX"
3813 llvm_cv_platform_type="Unix" ;;
3814 *-*-cygwin*)
3815 llvm_cv_link_all_option="-Wl,--whole-archive"
3816 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3817 llvm_cv_os_type="Cygwin"
3818 llvm_cv_platform_type="Unix" ;;
3819 *-*-darwin*)
3820 llvm_cv_link_all_option="-Wl,-all_load"
3821 llvm_cv_no_link_all_option="-Wl,-noall_load"
3822 llvm_cv_os_type="Darwin"
3823 llvm_cv_platform_type="Unix" ;;
3824 *-*-minix*)
3825 llvm_cv_link_all_option="-Wl,-all_load"
3826 llvm_cv_no_link_all_option="-Wl,-noall_load"
3827 llvm_cv_os_type="Minix"
3828 llvm_cv_platform_type="Unix" ;;
3829 *-*-freebsd*)
3830 llvm_cv_link_all_option="-Wl,--whole-archive"
3831 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3832 llvm_cv_os_type="FreeBSD"
3833 llvm_cv_platform_type="Unix" ;;
3834 *-*-kfreebsd-gnu)
3835 llvm_cv_link_all_option="-Wl,--whole-archive"
3836 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3837 llvm_cv_os_type="GNU/kFreeBSD"
3838 llvm_cv_platform_type="Unix" ;;
3839 *-*-openbsd*)
3840 llvm_cv_link_all_option="-Wl,--whole-archive"
3841 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3842 llvm_cv_os_type="OpenBSD"
3843 llvm_cv_platform_type="Unix" ;;
3844 *-*-netbsd*)
3845 llvm_cv_link_all_option="-Wl,--whole-archive"
3846 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3847 llvm_cv_os_type="NetBSD"
3848 llvm_cv_platform_type="Unix" ;;
3849 *-*-dragonfly*)
3850 llvm_cv_link_all_option="-Wl,--whole-archive"
3851 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3852 llvm_cv_os_type="DragonFly"
3853 llvm_cv_platform_type="Unix" ;;
3854 *-*-hpux*)
3855 llvm_cv_link_all_option="-Wl,--whole-archive"
3856 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3857 llvm_cv_os_type="HP-UX"
3858 llvm_cv_platform_type="Unix" ;;
3859 *-*-interix*)
3860 llvm_cv_link_all_option="-Wl,--whole-archive"
3861 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3862 llvm_cv_os_type="Interix"
3863 llvm_cv_platform_type="Unix" ;;
3864 *-*-linux*)
3865 llvm_cv_link_all_option="-Wl,--whole-archive"
3866 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3867 llvm_cv_os_type="Linux"
3868 llvm_cv_platform_type="Unix" ;;
3869 *-*-gnu*)
3870 llvm_cv_link_all_option="-Wl,--whole-archive"
3871 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3872 llvm_cv_os_type="GNU"
3873 llvm_cv_platform_type="Unix" ;;
3874 *-*-solaris*)
3875 llvm_cv_link_all_option="-Wl,-z,allextract"
3876 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3877 llvm_cv_os_type="SunOS"
3878 llvm_cv_platform_type="Unix" ;;
3879 *-*-auroraux*)
3880 llvm_cv_link_all_option="-Wl,-z,allextract"
3881 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3882 llvm_cv_os_type="AuroraUX"
3883 llvm_cv_platform_type="Unix" ;;
3884 *-*-win32*)
3885 llvm_cv_link_all_option="-Wl,--whole-archive"
3886 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3887 llvm_cv_os_type="Win32"
3888 llvm_cv_platform_type="Win32" ;;
3889 *-*-mingw*)
3890 llvm_cv_link_all_option="-Wl,--whole-archive"
3891 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3892 llvm_cv_os_type="MingW"
3893 llvm_cv_platform_type="Win32" ;;
3894 *-*-haiku*)
3895 llvm_cv_link_all_option="-Wl,--whole-archive"
3896 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3897 llvm_cv_os_type="Haiku"
3898 llvm_cv_platform_type="Unix" ;;
3899 *-unknown-eabi*)
3900 llvm_cv_link_all_option="-Wl,--whole-archive"
3901 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3902 llvm_cv_os_type="Freestanding"
3903 llvm_cv_platform_type="Unix" ;;
3904 *-unknown-elf*)
3905 llvm_cv_link_all_option="-Wl,--whole-archive"
3906 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3907 llvm_cv_os_type="Freestanding"
3908 llvm_cv_platform_type="Unix" ;;
3909 *)
3910 llvm_cv_link_all_option=""
3911 llvm_cv_no_link_all_option=""
3912 llvm_cv_os_type="Unknown"
3913 llvm_cv_platform_type="Unknown" ;;
3914 esac
3915 fi
3916 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3917 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3919 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3920 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3921 if test "${llvm_cv_target_os_type+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924 case $target in
3925 *-*-aix*)
3926 llvm_cv_target_os_type="AIX" ;;
3927 *-*-irix*)
3928 llvm_cv_target_os_type="IRIX" ;;
3929 *-*-cygwin*)
3930 llvm_cv_target_os_type="Cygwin" ;;
3931 *-*-darwin*)
3932 llvm_cv_target_os_type="Darwin" ;;
3933 *-*-minix*)
3934 llvm_cv_target_os_type="Minix" ;;
3935 *-*-freebsd*)
3936 llvm_cv_target_os_type="FreeBSD" ;;
3937 *-*-kfreebsd-gnu)
3938 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
3939 *-*-openbsd*)
3940 llvm_cv_target_os_type="OpenBSD" ;;
3941 *-*-netbsd*)
3942 llvm_cv_target_os_type="NetBSD" ;;
3943 *-*-dragonfly*)
3944 llvm_cv_target_os_type="DragonFly" ;;
3945 *-*-hpux*)
3946 llvm_cv_target_os_type="HP-UX" ;;
3947 *-*-interix*)
3948 llvm_cv_target_os_type="Interix" ;;
3949 *-*-linux*)
3950 llvm_cv_target_os_type="Linux" ;;
3951 *-*-gnu*)
3952 llvm_cv_target_os_type="GNU" ;;
3953 *-*-solaris*)
3954 llvm_cv_target_os_type="SunOS" ;;
3955 *-*-auroraux*)
3956 llvm_cv_target_os_type="AuroraUX" ;;
3957 *-*-win32*)
3958 llvm_cv_target_os_type="Win32" ;;
3959 *-*-mingw*)
3960 llvm_cv_target_os_type="MingW" ;;
3961 *-*-haiku*)
3962 llvm_cv_target_os_type="Haiku" ;;
3963 *-*-rtems*)
3964 llvm_cv_target_os_type="RTEMS" ;;
3965 *-*-nacl*)
3966 llvm_cv_target_os_type="NativeClient" ;;
3967 *-unknown-eabi*)
3968 llvm_cv_target_os_type="Freestanding" ;;
3969 *)
3970 llvm_cv_target_os_type="Unknown" ;;
3971 esac
3972 fi
3973 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3974 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3976 if test "$llvm_cv_os_type" = "Unknown" ; then
3977 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3978 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3979 { (exit 1); exit 1; }; }
3980 fi
3982 OS=$llvm_cv_os_type
3984 HOST_OS=$llvm_cv_os_type
3986 TARGET_OS=$llvm_cv_target_os_type
3989 LINKALL=$llvm_cv_link_all_option
3991 NOLINKALL=$llvm_cv_no_link_all_option
3994 case $llvm_cv_platform_type in
3995 Unix)
3997 cat >>confdefs.h <<\_ACEOF
3998 #define LLVM_ON_UNIX 1
3999 _ACEOF
4001 LLVM_ON_UNIX=1
4003 LLVM_ON_WIN32=0
4005 ;;
4006 Win32)
4008 cat >>confdefs.h <<\_ACEOF
4009 #define LLVM_ON_WIN32 1
4010 _ACEOF
4012 LLVM_ON_UNIX=0
4014 LLVM_ON_WIN32=1
4016 ;;
4017 esac
4019 { echo "$as_me:$LINENO: checking target architecture" >&5
4020 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4021 if test "${llvm_cv_target_arch+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024 case $target in
4025 i?86-*) llvm_cv_target_arch="x86" ;;
4026 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4027 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4028 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4029 arm*-*) llvm_cv_target_arch="ARM" ;;
4030 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4031 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4032 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4033 xcore-*) llvm_cv_target_arch="XCore" ;;
4034 msp430-*) llvm_cv_target_arch="MSP430" ;;
4035 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4036 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4037 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4038 *) llvm_cv_target_arch="Unknown" ;;
4039 esac
4040 fi
4041 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4042 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4044 if test "$llvm_cv_target_arch" = "Unknown" ; then
4045 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4046 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4047 fi
4049 case "$llvm_cv_target_arch" in
4050 x86) LLVM_NATIVE_ARCH="X86" ;;
4051 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4052 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4053 esac
4055 ARCH=$llvm_cv_target_arch
4058 case $host in
4059 i?86-*) host_arch="x86" ;;
4060 amd64-* | x86_64-*) host_arch="x86_64" ;;
4061 sparc*-*) host_arch="Sparc" ;;
4062 powerpc*-*) host_arch="PowerPC" ;;
4063 arm*-*) host_arch="ARM" ;;
4064 aarch64*-*) host_arch="AArch64" ;;
4065 mips-* | mips64-*) host_arch="Mips" ;;
4066 mipsel-* | mips64el-*) host_arch="Mips" ;;
4067 xcore-*) host_arch="XCore" ;;
4068 msp430-*) host_arch="MSP430" ;;
4069 hexagon-*) host_arch="Hexagon" ;;
4070 s390x-*) host_arch="SystemZ" ;;
4071 *) host_arch="Unknown" ;;
4072 esac
4074 if test "$host_arch" = "Unknown" ; then
4075 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4076 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4077 fi
4079 HOST_ARCH=$host_arch
4084 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4085 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4086 if test "${ac_cv_path_GREP+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089 # Extract the first word of "grep ggrep" to use in msg output
4090 if test -z "$GREP"; then
4091 set dummy grep ggrep; ac_prog_name=$2
4092 if test "${ac_cv_path_GREP+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 else
4095 ac_path_GREP_found=false
4096 # Loop through the user's path and test for each of PROGNAME-LIST
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4099 do
4100 IFS=$as_save_IFS
4101 test -z "$as_dir" && as_dir=.
4102 for ac_prog in grep ggrep; do
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4105 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4106 # Check for GNU ac_path_GREP and select it if it is found.
4107 # Check for GNU $ac_path_GREP
4108 case `"$ac_path_GREP" --version 2>&1` in
4109 *GNU*)
4110 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4111 *)
4112 ac_count=0
4113 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4114 while :
4115 do
4116 cat "conftest.in" "conftest.in" >"conftest.tmp"
4117 mv "conftest.tmp" "conftest.in"
4118 cp "conftest.in" "conftest.nl"
4119 echo 'GREP' >> "conftest.nl"
4120 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4121 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4122 ac_count=`expr $ac_count + 1`
4123 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4124 # Best one so far, save it but keep looking for a better one
4125 ac_cv_path_GREP="$ac_path_GREP"
4126 ac_path_GREP_max=$ac_count
4127 fi
4128 # 10*(2^10) chars as input seems more than enough
4129 test $ac_count -gt 10 && break
4130 done
4131 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4132 esac
4135 $ac_path_GREP_found && break 3
4136 done
4137 done
4139 done
4140 IFS=$as_save_IFS
4143 fi
4145 GREP="$ac_cv_path_GREP"
4146 if test -z "$GREP"; then
4147 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4148 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4149 { (exit 1); exit 1; }; }
4150 fi
4152 else
4153 ac_cv_path_GREP=$GREP
4154 fi
4157 fi
4158 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4159 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4160 GREP="$ac_cv_path_GREP"
4163 { echo "$as_me:$LINENO: checking for egrep" >&5
4164 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4165 if test "${ac_cv_path_EGREP+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4167 else
4168 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4169 then ac_cv_path_EGREP="$GREP -E"
4170 else
4171 # Extract the first word of "egrep" to use in msg output
4172 if test -z "$EGREP"; then
4173 set dummy egrep; ac_prog_name=$2
4174 if test "${ac_cv_path_EGREP+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 else
4177 ac_path_EGREP_found=false
4178 # Loop through the user's path and test for each of PROGNAME-LIST
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4181 do
4182 IFS=$as_save_IFS
4183 test -z "$as_dir" && as_dir=.
4184 for ac_prog in egrep; do
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4187 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4188 # Check for GNU ac_path_EGREP and select it if it is found.
4189 # Check for GNU $ac_path_EGREP
4190 case `"$ac_path_EGREP" --version 2>&1` in
4191 *GNU*)
4192 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4193 *)
4194 ac_count=0
4195 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4196 while :
4197 do
4198 cat "conftest.in" "conftest.in" >"conftest.tmp"
4199 mv "conftest.tmp" "conftest.in"
4200 cp "conftest.in" "conftest.nl"
4201 echo 'EGREP' >> "conftest.nl"
4202 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4203 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4204 ac_count=`expr $ac_count + 1`
4205 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4206 # Best one so far, save it but keep looking for a better one
4207 ac_cv_path_EGREP="$ac_path_EGREP"
4208 ac_path_EGREP_max=$ac_count
4209 fi
4210 # 10*(2^10) chars as input seems more than enough
4211 test $ac_count -gt 10 && break
4212 done
4213 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4214 esac
4217 $ac_path_EGREP_found && break 3
4218 done
4219 done
4221 done
4222 IFS=$as_save_IFS
4225 fi
4227 EGREP="$ac_cv_path_EGREP"
4228 if test -z "$EGREP"; then
4229 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4230 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4231 { (exit 1); exit 1; }; }
4232 fi
4234 else
4235 ac_cv_path_EGREP=$EGREP
4236 fi
4239 fi
4240 fi
4241 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4242 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4243 EGREP="$ac_cv_path_EGREP"
4246 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4247 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4248 if test "${ac_cv_header_stdc+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251 cat >conftest.$ac_ext <<_ACEOF
4252 /* confdefs.h. */
4253 _ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4257 #include <stdlib.h>
4258 #include <stdarg.h>
4259 #include <string.h>
4260 #include <float.h>
4262 int
4263 main ()
4264 {
4266 ;
4267 return 0;
4268 }
4269 _ACEOF
4270 rm -f conftest.$ac_objext
4271 if { (ac_try="$ac_compile"
4272 case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4275 esac
4276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_compile") 2>conftest.er1
4278 ac_status=$?
4279 grep -v '^ *+' conftest.er1 >conftest.err
4280 rm -f conftest.er1
4281 cat conftest.err >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); } &&
4284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4285 { (case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4288 esac
4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290 (eval "$ac_try") 2>&5
4291 ac_status=$?
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; } &&
4294 { ac_try='test -s conftest.$ac_objext'
4295 { (case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4298 esac
4299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300 (eval "$ac_try") 2>&5
4301 ac_status=$?
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
4304 ac_cv_header_stdc=yes
4305 else
4306 echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4309 ac_cv_header_stdc=no
4310 fi
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 if test $ac_cv_header_stdc = yes; then
4315 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4316 cat >conftest.$ac_ext <<_ACEOF
4317 /* confdefs.h. */
4318 _ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4322 #include <string.h>
4324 _ACEOF
4325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4326 $EGREP "memchr" >/dev/null 2>&1; then
4327 :
4328 else
4329 ac_cv_header_stdc=no
4330 fi
4331 rm -f conftest*
4333 fi
4335 if test $ac_cv_header_stdc = yes; then
4336 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4337 cat >conftest.$ac_ext <<_ACEOF
4338 /* confdefs.h. */
4339 _ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h. */
4343 #include <stdlib.h>
4345 _ACEOF
4346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4347 $EGREP "free" >/dev/null 2>&1; then
4348 :
4349 else
4350 ac_cv_header_stdc=no
4351 fi
4352 rm -f conftest*
4354 fi
4356 if test $ac_cv_header_stdc = yes; then
4357 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4358 if test "$cross_compiling" = yes; then
4359 :
4360 else
4361 cat >conftest.$ac_ext <<_ACEOF
4362 /* confdefs.h. */
4363 _ACEOF
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h. */
4367 #include <ctype.h>
4368 #include <stdlib.h>
4369 #if ((' ' & 0x0FF) == 0x020)
4370 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4371 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4372 #else
4373 # define ISLOWER(c) \
4374 (('a' <= (c) && (c) <= 'i') \
4375 || ('j' <= (c) && (c) <= 'r') \
4376 || ('s' <= (c) && (c) <= 'z'))
4377 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4378 #endif
4380 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4381 int
4382 main ()
4383 {
4384 int i;
4385 for (i = 0; i < 256; i++)
4386 if (XOR (islower (i), ISLOWER (i))
4387 || toupper (i) != TOUPPER (i))
4388 return 2;
4389 return 0;
4390 }
4391 _ACEOF
4392 rm -f conftest$ac_exeext
4393 if { (ac_try="$ac_link"
4394 case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397 esac
4398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399 (eval "$ac_link") 2>&5
4400 ac_status=$?
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4403 { (case "(($ac_try" in
4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4406 esac
4407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4408 (eval "$ac_try") 2>&5
4409 ac_status=$?
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; }; then
4412 :
4413 else
4414 echo "$as_me: program exited with status $ac_status" >&5
4415 echo "$as_me: failed program was:" >&5
4416 sed 's/^/| /' conftest.$ac_ext >&5
4418 ( exit $ac_status )
4419 ac_cv_header_stdc=no
4420 fi
4421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4422 fi
4425 fi
4426 fi
4427 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4428 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4429 if test $ac_cv_header_stdc = yes; then
4431 cat >>confdefs.h <<\_ACEOF
4432 #define STDC_HEADERS 1
4433 _ACEOF
4435 fi
4437 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4447 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4448 inttypes.h stdint.h unistd.h
4449 do
4450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4451 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 else
4456 cat >conftest.$ac_ext <<_ACEOF
4457 /* confdefs.h. */
4458 _ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4462 $ac_includes_default
4464 #include <$ac_header>
4465 _ACEOF
4466 rm -f conftest.$ac_objext
4467 if { (ac_try="$ac_compile"
4468 case "(($ac_try" in
4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4471 esac
4472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473 (eval "$ac_compile") 2>conftest.er1
4474 ac_status=$?
4475 grep -v '^ *+' conftest.er1 >conftest.err
4476 rm -f conftest.er1
4477 cat conftest.err >&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } &&
4480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4481 { (case "(($ac_try" in
4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483 *) ac_try_echo=$ac_try;;
4484 esac
4485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4486 (eval "$ac_try") 2>&5
4487 ac_status=$?
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; } &&
4490 { ac_try='test -s conftest.$ac_objext'
4491 { (case "(($ac_try" in
4492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4493 *) ac_try_echo=$ac_try;;
4494 esac
4495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4496 (eval "$ac_try") 2>&5
4497 ac_status=$?
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); }; }; then
4500 eval "$as_ac_Header=yes"
4501 else
4502 echo "$as_me: failed program was:" >&5
4503 sed 's/^/| /' conftest.$ac_ext >&5
4505 eval "$as_ac_Header=no"
4506 fi
4508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4509 fi
4510 ac_res=`eval echo '${'$as_ac_Header'}'`
4511 { echo "$as_me:$LINENO: result: $ac_res" >&5
4512 echo "${ECHO_T}$ac_res" >&6; }
4513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4514 cat >>confdefs.h <<_ACEOF
4515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4516 _ACEOF
4518 fi
4520 done
4523 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4524 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4525 if test "${ac_cv_c_bigendian+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528 # See if sys/param.h defines the BYTE_ORDER macro.
4529 cat >conftest.$ac_ext <<_ACEOF
4530 /* confdefs.h. */
4531 _ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4535 #include <sys/types.h>
4536 #include <sys/param.h>
4538 int
4539 main ()
4540 {
4541 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4542 bogus endian macros
4543 #endif
4545 ;
4546 return 0;
4547 }
4548 _ACEOF
4549 rm -f conftest.$ac_objext
4550 if { (ac_try="$ac_compile"
4551 case "(($ac_try" in
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4554 esac
4555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4556 (eval "$ac_compile") 2>conftest.er1
4557 ac_status=$?
4558 grep -v '^ *+' conftest.er1 >conftest.err
4559 rm -f conftest.er1
4560 cat conftest.err >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } &&
4563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4564 { (case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4567 esac
4568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4569 (eval "$ac_try") 2>&5
4570 ac_status=$?
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; } &&
4573 { ac_try='test -s conftest.$ac_objext'
4574 { (case "(($ac_try" in
4575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576 *) ac_try_echo=$ac_try;;
4577 esac
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579 (eval "$ac_try") 2>&5
4580 ac_status=$?
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; }; then
4583 # It does; now see whether it defined to BIG_ENDIAN or not.
4584 cat >conftest.$ac_ext <<_ACEOF
4585 /* confdefs.h. */
4586 _ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h. */
4590 #include <sys/types.h>
4591 #include <sys/param.h>
4593 int
4594 main ()
4595 {
4596 #if BYTE_ORDER != BIG_ENDIAN
4597 not big endian
4598 #endif
4600 ;
4601 return 0;
4602 }
4603 _ACEOF
4604 rm -f conftest.$ac_objext
4605 if { (ac_try="$ac_compile"
4606 case "(($ac_try" in
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4609 esac
4610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611 (eval "$ac_compile") 2>conftest.er1
4612 ac_status=$?
4613 grep -v '^ *+' conftest.er1 >conftest.err
4614 rm -f conftest.er1
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } &&
4618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4619 { (case "(($ac_try" in
4620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621 *) ac_try_echo=$ac_try;;
4622 esac
4623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4624 (eval "$ac_try") 2>&5
4625 ac_status=$?
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }; } &&
4628 { ac_try='test -s conftest.$ac_objext'
4629 { (case "(($ac_try" in
4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4632 esac
4633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4634 (eval "$ac_try") 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 ac_cv_c_bigendian=yes
4639 else
4640 echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4643 ac_cv_c_bigendian=no
4644 fi
4646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4647 else
4648 echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.$ac_ext >&5
4651 # It does not; compile a test program.
4652 if test "$cross_compiling" = yes; then
4653 # try to guess the endianness by grepping values into an object file
4654 ac_cv_c_bigendian=unknown
4655 cat >conftest.$ac_ext <<_ACEOF
4656 /* confdefs.h. */
4657 _ACEOF
4658 cat confdefs.h >>conftest.$ac_ext
4659 cat >>conftest.$ac_ext <<_ACEOF
4660 /* end confdefs.h. */
4661 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4662 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4663 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4664 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4665 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4666 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4667 int
4668 main ()
4669 {
4670 _ascii (); _ebcdic ();
4671 ;
4672 return 0;
4673 }
4674 _ACEOF
4675 rm -f conftest.$ac_objext
4676 if { (ac_try="$ac_compile"
4677 case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4680 esac
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682 (eval "$ac_compile") 2>conftest.er1
4683 ac_status=$?
4684 grep -v '^ *+' conftest.er1 >conftest.err
4685 rm -f conftest.er1
4686 cat conftest.err >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } &&
4689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4690 { (case "(($ac_try" in
4691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4692 *) ac_try_echo=$ac_try;;
4693 esac
4694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4695 (eval "$ac_try") 2>&5
4696 ac_status=$?
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; } &&
4699 { ac_try='test -s conftest.$ac_objext'
4700 { (case "(($ac_try" in
4701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4702 *) ac_try_echo=$ac_try;;
4703 esac
4704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4705 (eval "$ac_try") 2>&5
4706 ac_status=$?
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4709 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4710 ac_cv_c_bigendian=yes
4711 fi
4712 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4713 if test "$ac_cv_c_bigendian" = unknown; then
4714 ac_cv_c_bigendian=no
4715 else
4716 # finding both strings is unlikely to happen, but who knows?
4717 ac_cv_c_bigendian=unknown
4718 fi
4719 fi
4720 else
4721 echo "$as_me: failed program was:" >&5
4722 sed 's/^/| /' conftest.$ac_ext >&5
4725 fi
4727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4728 else
4729 cat >conftest.$ac_ext <<_ACEOF
4730 /* confdefs.h. */
4731 _ACEOF
4732 cat confdefs.h >>conftest.$ac_ext
4733 cat >>conftest.$ac_ext <<_ACEOF
4734 /* end confdefs.h. */
4735 $ac_includes_default
4736 int
4737 main ()
4738 {
4740 /* Are we little or big endian? From Harbison&Steele. */
4741 union
4742 {
4743 long int l;
4744 char c[sizeof (long int)];
4745 } u;
4746 u.l = 1;
4747 return u.c[sizeof (long int) - 1] == 1;
4749 ;
4750 return 0;
4751 }
4752 _ACEOF
4753 rm -f conftest$ac_exeext
4754 if { (ac_try="$ac_link"
4755 case "(($ac_try" in
4756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757 *) ac_try_echo=$ac_try;;
4758 esac
4759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4760 (eval "$ac_link") 2>&5
4761 ac_status=$?
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4764 { (case "(($ac_try" in
4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766 *) ac_try_echo=$ac_try;;
4767 esac
4768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769 (eval "$ac_try") 2>&5
4770 ac_status=$?
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); }; }; then
4773 ac_cv_c_bigendian=no
4774 else
4775 echo "$as_me: program exited with status $ac_status" >&5
4776 echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4779 ( exit $ac_status )
4780 ac_cv_c_bigendian=yes
4781 fi
4782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4783 fi
4786 fi
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789 fi
4790 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4791 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4792 case $ac_cv_c_bigendian in
4793 yes)
4794 ENDIAN=big
4795 ;;
4796 no)
4797 ENDIAN=little
4798 ;;
4799 *)
4800 { { echo "$as_me:$LINENO: error: unknown endianness
4801 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4802 echo "$as_me: error: unknown endianness
4803 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4804 { (exit 1); exit 1; }; } ;;
4805 esac
4808 if test "$cross_compiling" = yes; then
4809 LLVM_CROSS_COMPILING=1
4812 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4813 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4814 if test "${ac_cv_build_exeext+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4818 ac_cv_build_exeext=.exe
4819 else
4820 ac_build_prefix=${build_alias}-
4822 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4823 set dummy ${ac_build_prefix}gcc; ac_word=$2
4824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4826 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829 if test -n "$BUILD_CC"; then
4830 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4831 else
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH
4834 do
4835 IFS=$as_save_IFS
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 break 2
4842 fi
4843 done
4844 done
4845 IFS=$as_save_IFS
4847 fi
4848 fi
4849 BUILD_CC=$ac_cv_prog_BUILD_CC
4850 if test -n "$BUILD_CC"; then
4851 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4852 echo "${ECHO_T}$BUILD_CC" >&6; }
4853 else
4854 { echo "$as_me:$LINENO: result: no" >&5
4855 echo "${ECHO_T}no" >&6; }
4856 fi
4859 if test -z "$BUILD_CC"; then
4860 # Extract the first word of "gcc", so it can be a program name with args.
4861 set dummy gcc; ac_word=$2
4862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867 if test -n "$BUILD_CC"; then
4868 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4869 else
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 ac_cv_prog_BUILD_CC="gcc"
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4880 fi
4881 done
4882 done
4883 IFS=$as_save_IFS
4885 fi
4886 fi
4887 BUILD_CC=$ac_cv_prog_BUILD_CC
4888 if test -n "$BUILD_CC"; then
4889 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4890 echo "${ECHO_T}$BUILD_CC" >&6; }
4891 else
4892 { echo "$as_me:$LINENO: result: no" >&5
4893 echo "${ECHO_T}no" >&6; }
4894 fi
4897 if test -z "$BUILD_CC"; then
4898 # Extract the first word of "cc", so it can be a program name with args.
4899 set dummy cc; ac_word=$2
4900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4902 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4904 else
4905 if test -n "$BUILD_CC"; then
4906 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4907 else
4908 ac_prog_rejected=no
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4911 do
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4916 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4917 ac_prog_rejected=yes
4918 continue
4919 fi
4920 ac_cv_prog_BUILD_CC="cc"
4921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 break 2
4923 fi
4924 done
4925 done
4926 IFS=$as_save_IFS
4928 if test $ac_prog_rejected = yes; then
4929 # We found a bogon in the path, so make sure we never use it.
4930 set dummy $ac_cv_prog_BUILD_CC
4931 shift
4932 if test $# != 0; then
4933 # We chose a different compiler from the bogus one.
4934 # However, it has the same basename, so the bogon will be chosen
4935 # first if we set BUILD_CC to just the basename; use the full file name.
4936 shift
4937 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4938 fi
4939 fi
4940 fi
4941 fi
4942 BUILD_CC=$ac_cv_prog_BUILD_CC
4943 if test -n "$BUILD_CC"; then
4944 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4945 echo "${ECHO_T}$BUILD_CC" >&6; }
4946 else
4947 { echo "$as_me:$LINENO: result: no" >&5
4948 echo "${ECHO_T}no" >&6; }
4949 fi
4952 fi
4953 fi
4954 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4955 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4956 { (exit 1); exit 1; }; }
4957 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4958 rm -f conftest*
4959 echo 'int main () { return 0; }' > conftest.$ac_ext
4960 ac_cv_build_exeext=
4961 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4962 (eval $ac_build_link) 2>&5
4963 ac_status=$?
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; then
4966 for file in conftest.*; do
4967 case $file in
4968 *.c | *.o | *.obj | *.dSYM) ;;
4969 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4970 esac
4971 done
4972 else
4973 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4974 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4975 { (exit 1); exit 1; }; }
4976 fi
4977 rm -f conftest*
4978 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4979 fi
4980 fi
4982 BUILD_EXEEXT=""
4983 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4984 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4985 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4986 ac_build_exeext=$BUILD_EXEEXT
4988 ac_build_prefix=${build_alias}-
4989 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4990 set dummy ${ac_build_prefix}g++; ac_word=$2
4991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4993 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
4995 else
4996 if test -n "$BUILD_CXX"; then
4997 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4998 else
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 for as_dir in $PATH
5001 do
5002 IFS=$as_save_IFS
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5006 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
5007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5008 break 2
5009 fi
5010 done
5011 done
5012 IFS=$as_save_IFS
5014 fi
5015 fi
5016 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5017 if test -n "$BUILD_CXX"; then
5018 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5019 echo "${ECHO_T}$BUILD_CXX" >&6; }
5020 else
5021 { echo "$as_me:$LINENO: result: no" >&5
5022 echo "${ECHO_T}no" >&6; }
5023 fi
5026 if test -z "$BUILD_CXX"; then
5027 # Extract the first word of "g++", so it can be a program name with args.
5028 set dummy g++; ac_word=$2
5029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5031 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034 if test -n "$BUILD_CXX"; then
5035 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5036 else
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 for as_dir in $PATH
5039 do
5040 IFS=$as_save_IFS
5041 test -z "$as_dir" && as_dir=.
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5044 ac_cv_prog_BUILD_CXX="g++"
5045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 break 2
5047 fi
5048 done
5049 done
5050 IFS=$as_save_IFS
5052 fi
5053 fi
5054 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5055 if test -n "$BUILD_CXX"; then
5056 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5057 echo "${ECHO_T}$BUILD_CXX" >&6; }
5058 else
5059 { echo "$as_me:$LINENO: result: no" >&5
5060 echo "${ECHO_T}no" >&6; }
5061 fi
5064 if test -z "$BUILD_CXX"; then
5065 # Extract the first word of "c++", so it can be a program name with args.
5066 set dummy c++; ac_word=$2
5067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5069 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072 if test -n "$BUILD_CXX"; then
5073 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5074 else
5075 ac_prog_rejected=no
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH
5078 do
5079 IFS=$as_save_IFS
5080 test -z "$as_dir" && as_dir=.
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5083 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5084 ac_prog_rejected=yes
5085 continue
5086 fi
5087 ac_cv_prog_BUILD_CXX="c++"
5088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 break 2
5090 fi
5091 done
5092 done
5093 IFS=$as_save_IFS
5095 if test $ac_prog_rejected = yes; then
5096 # We found a bogon in the path, so make sure we never use it.
5097 set dummy $ac_cv_prog_BUILD_CXX
5098 shift
5099 if test $# != 0; then
5100 # We chose a different compiler from the bogus one.
5101 # However, it has the same basename, so the bogon will be chosen
5102 # first if we set BUILD_CXX to just the basename; use the full file name.
5103 shift
5104 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5105 fi
5106 fi
5107 fi
5108 fi
5109 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5110 if test -n "$BUILD_CXX"; then
5111 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5112 echo "${ECHO_T}$BUILD_CXX" >&6; }
5113 else
5114 { echo "$as_me:$LINENO: result: no" >&5
5115 echo "${ECHO_T}no" >&6; }
5116 fi
5119 fi
5120 fi
5121 else
5122 LLVM_CROSS_COMPILING=0
5124 fi
5126 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5127 cvsbuild="yes"
5128 optimize="no"
5129 CVSBUILD=CVSBUILD=1
5131 else
5132 cvsbuild="no"
5133 optimize="yes"
5134 fi
5137 # Check whether --enable-libcpp was given.
5138 if test "${enable_libcpp+set}" = set; then
5139 enableval=$enable_libcpp;
5140 else
5141 enableval=default
5142 fi
5144 case "$enableval" in
5145 yes) ENABLE_LIBCPP=1
5146 ;;
5147 no) ENABLE_LIBCPP=0
5148 ;;
5149 default) ENABLE_LIBCPP=0
5150 ;;
5151 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5152 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5153 { (exit 1); exit 1; }; } ;;
5154 esac
5156 # Check whether --enable-cxx11 was given.
5157 if test "${enable_cxx11+set}" = set; then
5158 enableval=$enable_cxx11;
5159 else
5160 enableval=default
5161 fi
5163 case "$enableval" in
5164 yes) ENABLE_CXX11=1
5165 ;;
5166 no) ENABLE_CXX11=0
5167 ;;
5168 default) ENABLE_CXX11=0
5169 ;;
5170 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5171 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5172 { (exit 1); exit 1; }; } ;;
5173 esac
5175 # Check whether --enable-split-dwarf was given.
5176 if test "${enable_split_dwarf+set}" = set; then
5177 enableval=$enable_split_dwarf;
5178 else
5179 enableval=default
5180 fi
5182 case "$enableval" in
5183 yes) ENABLE_SPLIT_DWARF=1
5184 ;;
5185 no) ENABLE_SPLIT_DWARF=0
5186 ;;
5187 default) ENABLE_SPLIT_DWARF=0
5188 ;;
5189 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
5190 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
5191 { (exit 1); exit 1; }; } ;;
5192 esac
5194 clang_arcmt="yes"
5195 # Check whether --enable-clang-arcmt was given.
5196 if test "${enable_clang_arcmt+set}" = set; then
5197 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5198 else
5199 enableval="yes"
5200 fi
5202 case "$enableval" in
5203 yes) ENABLE_CLANG_ARCMT=1
5204 ;;
5205 no) ENABLE_CLANG_ARCMT=0
5206 ;;
5207 default) ENABLE_CLANG_ARCMT=1
5208 ;;
5209 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5210 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5211 { (exit 1); exit 1; }; } ;;
5212 esac
5214 clang_static_analyzer="yes"
5215 # Check whether --enable-clang-static-analyzer was given.
5216 if test "${enable_clang_static_analyzer+set}" = set; then
5217 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5218 else
5219 enableval="yes"
5220 fi
5222 case "$enableval" in
5223 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5224 ;;
5225 no) ENABLE_CLANG_STATIC_ANALYZER=0
5226 ;;
5227 default) ENABLE_CLANG_STATIC_ANALYZER=1
5228 ;;
5229 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5230 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5231 { (exit 1); exit 1; }; } ;;
5232 esac
5234 # Check whether --enable-clang-rewriter was given.
5235 if test "${enable_clang_rewriter+set}" = set; then
5236 enableval=$enable_clang_rewriter;
5237 else
5238 enableval="yes"
5239 fi
5241 case "$enableval" in
5242 yes) ENABLE_CLANG_REWRITER=1
5243 ;;
5244 no)
5245 if test ${clang_arcmt} != "no" ; then
5246 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5247 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5248 { (exit 1); exit 1; }; }
5249 fi
5250 if test ${clang_static_analyzer} != "no" ; then
5251 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5252 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5253 { (exit 1); exit 1; }; }
5254 fi
5255 ENABLE_CLANG_REWRITER=0
5257 ;;
5258 default) ENABLE_CLANG_REWRITER=1
5259 ;;
5260 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5261 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5262 { (exit 1); exit 1; }; } ;;
5263 esac
5265 # Check whether --enable-optimized was given.
5266 if test "${enable_optimized+set}" = set; then
5267 enableval=$enable_optimized;
5268 else
5269 enableval=$optimize
5270 fi
5272 if test ${enableval} = "no" ; then
5273 ENABLE_OPTIMIZED=
5275 else
5276 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5278 fi
5280 # Check whether --enable-profiling was given.
5281 if test "${enable_profiling+set}" = set; then
5282 enableval=$enable_profiling;
5283 else
5284 enableval="no"
5285 fi
5287 if test ${enableval} = "no" ; then
5288 ENABLE_PROFILING=
5290 else
5291 ENABLE_PROFILING=ENABLE_PROFILING=1
5293 fi
5295 # Check whether --enable-assertions was given.
5296 if test "${enable_assertions+set}" = set; then
5297 enableval=$enable_assertions;
5298 else
5299 enableval="yes"
5300 fi
5302 if test ${enableval} = "yes" ; then
5303 DISABLE_ASSERTIONS=
5305 else
5306 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5308 fi
5310 # Check whether --enable-werror was given.
5311 if test "${enable_werror+set}" = set; then
5312 enableval=$enable_werror;
5313 else
5314 enableval="no"
5315 fi
5317 case "$enableval" in
5318 yes) ENABLE_WERROR=1
5319 ;;
5320 no) ENABLE_WERROR=0
5321 ;;
5322 default) ENABLE_WERROR=0
5323 ;;
5324 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5325 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5326 { (exit 1); exit 1; }; } ;;
5327 esac
5329 # Check whether --enable-expensive-checks was given.
5330 if test "${enable_expensive_checks+set}" = set; then
5331 enableval=$enable_expensive_checks;
5332 else
5333 enableval="no"
5334 fi
5336 if test ${enableval} = "yes" ; then
5337 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5339 EXPENSIVE_CHECKS=yes
5341 else
5342 ENABLE_EXPENSIVE_CHECKS=
5344 EXPENSIVE_CHECKS=no
5346 fi
5348 # Check whether --enable-debug-runtime was given.
5349 if test "${enable_debug_runtime+set}" = set; then
5350 enableval=$enable_debug_runtime;
5351 else
5352 enableval=no
5353 fi
5355 if test ${enableval} = "no" ; then
5356 DEBUG_RUNTIME=
5358 else
5359 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5361 fi
5363 # Check whether --enable-debug-symbols was given.
5364 if test "${enable_debug_symbols+set}" = set; then
5365 enableval=$enable_debug_symbols;
5366 else
5367 enableval=no
5368 fi
5370 if test ${enableval} = "no" ; then
5371 DEBUG_SYMBOLS=
5373 else
5374 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5376 fi
5378 # Check whether --enable-keep-symbols was given.
5379 if test "${enable_keep_symbols+set}" = set; then
5380 enableval=$enable_keep_symbols;
5381 else
5382 enableval=no
5383 fi
5385 if test ${enableval} = "no" ; then
5386 KEEP_SYMBOLS=
5388 else
5389 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5391 fi
5393 # Check whether --enable-jit was given.
5394 if test "${enable_jit+set}" = set; then
5395 enableval=$enable_jit;
5396 else
5397 enableval=default
5398 fi
5400 if test ${enableval} = "no"
5401 then
5402 JIT=
5404 else
5405 case "$llvm_cv_target_arch" in
5406 x86) TARGET_HAS_JIT=1
5407 ;;
5408 Sparc) TARGET_HAS_JIT=0
5409 ;;
5410 PowerPC) TARGET_HAS_JIT=1
5411 ;;
5412 x86_64) TARGET_HAS_JIT=1
5413 ;;
5414 ARM) TARGET_HAS_JIT=1
5415 ;;
5416 AArch64) TARGET_HAS_JIT=0
5417 ;;
5418 Mips) TARGET_HAS_JIT=1
5419 ;;
5420 XCore) TARGET_HAS_JIT=0
5421 ;;
5422 MSP430) TARGET_HAS_JIT=0
5423 ;;
5424 Hexagon) TARGET_HAS_JIT=0
5425 ;;
5426 NVPTX) TARGET_HAS_JIT=0
5427 ;;
5428 SystemZ) TARGET_HAS_JIT=1
5429 ;;
5430 *) TARGET_HAS_JIT=0
5431 ;;
5432 esac
5433 fi
5435 # Check whether --enable-docs was given.
5436 if test "${enable_docs+set}" = set; then
5437 enableval=$enable_docs;
5438 else
5439 enableval=default
5440 fi
5442 case "$enableval" in
5443 yes) ENABLE_DOCS=1
5444 ;;
5445 no) ENABLE_DOCS=0
5446 ;;
5447 default) ENABLE_DOCS=1
5448 ;;
5449 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5450 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5451 { (exit 1); exit 1; }; } ;;
5452 esac
5454 # Check whether --enable-doxygen was given.
5455 if test "${enable_doxygen+set}" = set; then
5456 enableval=$enable_doxygen;
5457 else
5458 enableval=default
5459 fi
5461 case "$enableval" in
5462 yes) ENABLE_DOXYGEN=1
5463 ;;
5464 no) ENABLE_DOXYGEN=0
5465 ;;
5466 default) ENABLE_DOXYGEN=0
5467 ;;
5468 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5469 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5470 { (exit 1); exit 1; }; } ;;
5471 esac
5473 # Check whether --enable-threads was given.
5474 if test "${enable_threads+set}" = set; then
5475 enableval=$enable_threads;
5476 else
5477 enableval=default
5478 fi
5480 case "$enableval" in
5481 yes) LLVM_ENABLE_THREADS=1
5482 ;;
5483 no) LLVM_ENABLE_THREADS=0
5484 ;;
5485 default) LLVM_ENABLE_THREADS=1
5486 ;;
5487 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5488 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5489 { (exit 1); exit 1; }; } ;;
5490 esac
5492 cat >>confdefs.h <<_ACEOF
5493 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5494 _ACEOF
5497 # Check whether --enable-pthreads was given.
5498 if test "${enable_pthreads+set}" = set; then
5499 enableval=$enable_pthreads;
5500 else
5501 enableval=default
5502 fi
5504 case "$enableval" in
5505 yes) ENABLE_PTHREADS=1
5506 ;;
5507 no) ENABLE_PTHREADS=0
5508 ;;
5509 default) ENABLE_PTHREADS=1
5510 ;;
5511 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5512 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5513 { (exit 1); exit 1; }; } ;;
5514 esac
5516 # Check whether --enable-zlib was given.
5517 if test "${enable_zlib+set}" = set; then
5518 enableval=$enable_zlib;
5519 else
5520 enableval=default
5521 fi
5523 case "$enableval" in
5524 yes) LLVM_ENABLE_ZLIB=1
5525 ;;
5526 no) LLVM_ENABLE_ZLIB=0
5527 ;;
5528 default) LLVM_ENABLE_ZLIB=1
5529 ;;
5530 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5531 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5532 { (exit 1); exit 1; }; } ;;
5533 esac
5535 cat >>confdefs.h <<_ACEOF
5536 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5537 _ACEOF
5540 # Check whether --enable-pic was given.
5541 if test "${enable_pic+set}" = set; then
5542 enableval=$enable_pic;
5543 else
5544 enableval=default
5545 fi
5547 case "$enableval" in
5548 yes) ENABLE_PIC=1
5549 ;;
5550 no) ENABLE_PIC=0
5551 ;;
5552 default) ENABLE_PIC=1
5553 ;;
5554 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5555 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5556 { (exit 1); exit 1; }; } ;;
5557 esac
5559 cat >>confdefs.h <<_ACEOF
5560 #define ENABLE_PIC $ENABLE_PIC
5561 _ACEOF
5564 # Check whether --enable-shared was given.
5565 if test "${enable_shared+set}" = set; then
5566 enableval=$enable_shared;
5567 else
5568 enableval=default
5569 fi
5571 case "$enableval" in
5572 yes) ENABLE_SHARED=1
5573 ;;
5574 no) ENABLE_SHARED=0
5575 ;;
5576 default) ENABLE_SHARED=0
5577 ;;
5578 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5579 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5580 { (exit 1); exit 1; }; } ;;
5581 esac
5583 # Check whether --enable-embed-stdcxx was given.
5584 if test "${enable_embed_stdcxx+set}" = set; then
5585 enableval=$enable_embed_stdcxx;
5586 else
5587 enableval=default
5588 fi
5590 case "$enableval" in
5591 yes) ENABLE_EMBED_STDCXX=1
5592 ;;
5593 no) ENABLE_EMBED_STDCXX=0
5594 ;;
5595 default) ENABLE_EMBED_STDCXX=0
5596 ;;
5597 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5598 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5599 { (exit 1); exit 1; }; } ;;
5600 esac
5602 # Check whether --enable-timestamps was given.
5603 if test "${enable_timestamps+set}" = set; then
5604 enableval=$enable_timestamps;
5605 else
5606 enableval=default
5607 fi
5609 case "$enableval" in
5610 yes) ENABLE_TIMESTAMPS=1
5611 ;;
5612 no) ENABLE_TIMESTAMPS=0
5613 ;;
5614 default) ENABLE_TIMESTAMPS=1
5615 ;;
5616 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5617 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5618 { (exit 1); exit 1; }; } ;;
5619 esac
5621 cat >>confdefs.h <<_ACEOF
5622 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5623 _ACEOF
5627 # Check whether --enable-backtraces was given.
5628 if test "${enable_backtraces+set}" = set; then
5629 enableval=$enable_backtraces;
5630 else
5631 enableval=default
5632 fi
5634 case "$enableval" in
5635 yes) ENABLE_BACKTRACES=1
5636 ;;
5637 no) ENABLE_BACKTRACES=0
5638 ;;
5639 default) ENABLE_BACKTRACES=1
5640 ;;
5641 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5642 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5643 { (exit 1); exit 1; }; } ;;
5644 esac
5646 cat >>confdefs.h <<_ACEOF
5647 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5648 _ACEOF
5651 TARGETS_TO_BUILD=""
5652 # Check whether --enable-targets was given.
5653 if test "${enable_targets+set}" = set; then
5654 enableval=$enable_targets;
5655 else
5656 enableval=all
5657 fi
5659 if test "$enableval" = host-only ; then
5660 enableval=host
5661 fi
5662 case "$enableval" in
5663 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5664 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5665 case "$a_target" in
5666 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5667 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5668 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5669 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5670 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5671 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5672 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5673 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5674 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5675 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5676 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5677 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5678 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5679 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5680 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5681 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5682 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5683 host) case "$llvm_cv_target_arch" in
5684 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5685 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5686 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5687 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5688 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5689 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5690 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5691 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5692 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5693 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5694 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5695 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5696 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5697 echo "$as_me: error: Can not set target to build" >&2;}
5698 { (exit 1); exit 1; }; } ;;
5699 esac ;;
5700 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5701 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5702 { (exit 1); exit 1; }; } ;;
5703 esac
5704 done
5705 ;;
5706 esac
5708 # Check whether --enable-experimental-targets was given.
5709 if test "${enable_experimental_targets+set}" = set; then
5710 enableval=$enable_experimental_targets;
5711 else
5712 enableval=disable
5713 fi
5716 if test ${enableval} != "disable"
5717 then
5718 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5719 fi
5721 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5724 for a_target in $TARGETS_TO_BUILD; do
5725 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5727 cat >>confdefs.h <<_ACEOF
5728 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5729 _ACEOF
5731 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5732 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5733 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5734 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5735 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5736 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5737 fi
5738 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5739 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5740 fi
5742 cat >>confdefs.h <<_ACEOF
5743 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5744 _ACEOF
5747 cat >>confdefs.h <<_ACEOF
5748 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5749 _ACEOF
5752 cat >>confdefs.h <<_ACEOF
5753 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5754 _ACEOF
5757 cat >>confdefs.h <<_ACEOF
5758 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5759 _ACEOF
5761 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5763 cat >>confdefs.h <<_ACEOF
5764 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5765 _ACEOF
5767 fi
5768 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5770 cat >>confdefs.h <<_ACEOF
5771 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5772 _ACEOF
5774 fi
5775 fi
5776 done
5778 LLVM_ENUM_TARGETS=""
5779 LLVM_ENUM_ASM_PRINTERS=""
5780 LLVM_ENUM_ASM_PARSERS=""
5781 LLVM_ENUM_DISASSEMBLERS=""
5782 for target_to_build in $TARGETS_TO_BUILD; do
5783 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5784 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5785 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5786 fi
5787 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5788 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5789 fi
5790 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5791 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5792 fi
5793 done
5800 # Check whether --with-optimize-option was given.
5801 if test "${with_optimize_option+set}" = set; then
5802 withval=$with_optimize_option;
5803 else
5804 withval=default
5805 fi
5807 { echo "$as_me:$LINENO: checking optimization flags" >&5
5808 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5809 case "$withval" in
5810 default)
5811 case "$llvm_cv_os_type" in
5812 FreeBSD) optimize_option=-O2 ;;
5813 MingW) optimize_option=-O2 ;;
5814 *) optimize_option=-O3 ;;
5815 esac ;;
5816 *) optimize_option="$withval" ;;
5817 esac
5818 OPTIMIZE_OPTION=$optimize_option
5820 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5821 echo "${ECHO_T}$optimize_option" >&6; }
5824 # Check whether --with-extra-options was given.
5825 if test "${with_extra_options+set}" = set; then
5826 withval=$with_extra_options;
5827 else
5828 withval=default
5829 fi
5831 case "$withval" in
5832 default) EXTRA_OPTIONS= ;;
5833 *) EXTRA_OPTIONS=$withval ;;
5834 esac
5835 EXTRA_OPTIONS=$EXTRA_OPTIONS
5839 # Check whether --with-extra-ld-options was given.
5840 if test "${with_extra_ld_options+set}" = set; then
5841 withval=$with_extra_ld_options;
5842 else
5843 withval=default
5844 fi
5846 case "$withval" in
5847 default) EXTRA_LD_OPTIONS= ;;
5848 *) EXTRA_LD_OPTIONS=$withval ;;
5849 esac
5850 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5853 # Check whether --enable-bindings was given.
5854 if test "${enable_bindings+set}" = set; then
5855 enableval=$enable_bindings;
5856 else
5857 enableval=default
5858 fi
5860 BINDINGS_TO_BUILD=""
5861 case "$enableval" in
5862 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5863 all ) BINDINGS_TO_BUILD="ocaml" ;;
5864 none | no) BINDINGS_TO_BUILD="" ;;
5865 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5866 case "$a_binding" in
5867 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5868 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5869 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5870 { (exit 1); exit 1; }; } ;;
5871 esac
5872 done
5873 ;;
5874 esac
5877 # Check whether --with-ocaml-libdir was given.
5878 if test "${with_ocaml_libdir+set}" = set; then
5879 withval=$with_ocaml_libdir;
5880 else
5881 withval=auto
5882 fi
5884 case "$withval" in
5885 auto) with_ocaml_libdir="$withval" ;;
5886 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5887 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5888 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5889 { (exit 1); exit 1; }; } ;;
5890 esac
5893 # Check whether --with-clang-srcdir was given.
5894 if test "${with_clang_srcdir+set}" = set; then
5895 withval=$with_clang_srcdir;
5896 else
5897 withval="-"
5898 fi
5900 case "$withval" in
5901 -) clang_src_root="" ;;
5902 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5903 *) clang_src_root="$ac_pwd/$withval" ;;
5904 esac
5905 CLANG_SRC_ROOT=$clang_src_root
5909 # Check whether --with-clang-resource-dir was given.
5910 if test "${with_clang_resource_dir+set}" = set; then
5911 withval=$with_clang_resource_dir;
5912 else
5913 withval=""
5914 fi
5917 cat >>confdefs.h <<_ACEOF
5918 #define CLANG_RESOURCE_DIR "$withval"
5919 _ACEOF
5923 # Check whether --with-c-include-dirs was given.
5924 if test "${with_c_include_dirs+set}" = set; then
5925 withval=$with_c_include_dirs;
5926 else
5927 withval=""
5928 fi
5931 cat >>confdefs.h <<_ACEOF
5932 #define C_INCLUDE_DIRS "$withval"
5933 _ACEOF
5936 # Clang normally uses the system c++ headers and libraries. With this option,
5937 # clang will use the ones provided by a gcc installation instead. This option should
5938 # be passed the same value that was used with --prefix when configuring gcc.
5940 # Check whether --with-gcc-toolchain was given.
5941 if test "${with_gcc_toolchain+set}" = set; then
5942 withval=$with_gcc_toolchain;
5943 else
5944 withval=""
5945 fi
5948 cat >>confdefs.h <<_ACEOF
5949 #define GCC_INSTALL_PREFIX "$withval"
5950 _ACEOF
5954 # Check whether --with-default-sysroot was given.
5955 if test "${with_default_sysroot+set}" = set; then
5956 withval=$with_default_sysroot;
5957 else
5958 withval=""
5959 fi
5962 cat >>confdefs.h <<_ACEOF
5963 #define DEFAULT_SYSROOT "$withval"
5964 _ACEOF
5968 # Check whether --with-binutils-include was given.
5969 if test "${with_binutils_include+set}" = set; then
5970 withval=$with_binutils_include;
5971 else
5972 withval=default
5973 fi
5975 case "$withval" in
5976 default) WITH_BINUTILS_INCDIR=default ;;
5977 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5978 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5979 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5980 { (exit 1); exit 1; }; } ;;
5981 esac
5982 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5983 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5985 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5986 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5987 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5988 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5989 { (exit 1); exit 1; }; };
5990 fi
5991 fi
5994 # Check whether --with-bug-report-url was given.
5995 if test "${with_bug_report_url+set}" = set; then
5996 withval=$with_bug_report_url;
5997 else
5998 withval="http://llvm.org/bugs/"
5999 fi
6002 cat >>confdefs.h <<_ACEOF
6003 #define BUG_REPORT_URL "$withval"
6004 _ACEOF
6007 # Check whether --enable-libffi was given.
6008 if test "${enable_libffi+set}" = set; then
6009 enableval=$enable_libffi; case "$enableval" in
6010 yes) llvm_cv_enable_libffi="yes" ;;
6011 no) llvm_cv_enable_libffi="no" ;;
6012 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6013 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6014 { (exit 1); exit 1; }; } ;;
6015 esac
6016 else
6017 llvm_cv_enable_libffi=no
6018 fi
6022 # Check whether --with-internal-prefix was given.
6023 if test "${with_internal_prefix+set}" = set; then
6024 withval=$with_internal_prefix;
6025 else
6026 withval=""
6027 fi
6029 INTERNAL_PREFIX=$withval
6033 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6034 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6035 if test "${lt_cv_path_NM+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 else
6038 if test -n "$NM"; then
6039 # Let the user override the test.
6040 lt_cv_path_NM="$NM"
6041 else
6042 lt_nm_to_check="${ac_tool_prefix}nm"
6043 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6044 lt_nm_to_check="$lt_nm_to_check nm"
6045 fi
6046 for lt_tmp_nm in $lt_nm_to_check; do
6047 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6048 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6049 IFS="$lt_save_ifs"
6050 test -z "$ac_dir" && ac_dir=.
6051 tmp_nm="$ac_dir/$lt_tmp_nm"
6052 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6053 # Check to see if the nm accepts a BSD-compat flag.
6054 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6055 # nm: unknown option "B" ignored
6056 # Tru64's nm complains that /dev/null is an invalid object file
6057 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6058 */dev/null* | *'Invalid file or object type'*)
6059 lt_cv_path_NM="$tmp_nm -B"
6060 break
6061 ;;
6062 *)
6063 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6064 */dev/null*)
6065 lt_cv_path_NM="$tmp_nm -p"
6066 break
6067 ;;
6068 *)
6069 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6070 continue # so that we can try to find one that supports BSD flags
6071 ;;
6072 esac
6073 ;;
6074 esac
6075 fi
6076 done
6077 IFS="$lt_save_ifs"
6078 done
6079 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6080 fi
6081 fi
6082 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6083 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6084 NM="$lt_cv_path_NM"
6088 { echo "$as_me:$LINENO: checking for GNU make" >&5
6089 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6090 if test "${llvm_cv_gnu_make_command+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 else
6093 llvm_cv_gnu_make_command=''
6094 for a in "$MAKE" make gmake gnumake ; do
6095 if test -z "$a" ; then continue ; fi ;
6096 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6097 then
6098 llvm_cv_gnu_make_command=$a ;
6099 break;
6100 fi
6101 done
6102 fi
6103 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6104 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6105 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6106 ifGNUmake='' ;
6107 else
6108 ifGNUmake='#' ;
6109 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6110 echo "${ECHO_T}\"Not found\"" >&6; };
6111 fi
6114 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6115 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6116 LN_S=$as_ln_s
6117 if test "$LN_S" = "ln -s"; then
6118 { echo "$as_me:$LINENO: result: yes" >&5
6119 echo "${ECHO_T}yes" >&6; }
6120 else
6121 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6122 echo "${ECHO_T}no, using $LN_S" >&6; }
6123 fi
6125 # Extract the first word of "cmp", so it can be a program name with args.
6126 set dummy cmp; ac_word=$2
6127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6129 if test "${ac_cv_path_CMP+set}" = set; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 else
6132 case $CMP in
6133 [\\/]* | ?:[\\/]*)
6134 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6135 ;;
6136 *)
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6139 do
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6144 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 break 2
6147 fi
6148 done
6149 done
6150 IFS=$as_save_IFS
6152 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6153 ;;
6154 esac
6155 fi
6156 CMP=$ac_cv_path_CMP
6157 if test -n "$CMP"; then
6158 { echo "$as_me:$LINENO: result: $CMP" >&5
6159 echo "${ECHO_T}$CMP" >&6; }
6160 else
6161 { echo "$as_me:$LINENO: result: no" >&5
6162 echo "${ECHO_T}no" >&6; }
6163 fi
6166 # Extract the first word of "cp", so it can be a program name with args.
6167 set dummy cp; ac_word=$2
6168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6170 if test "${ac_cv_path_CP+set}" = set; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6172 else
6173 case $CP in
6174 [\\/]* | ?:[\\/]*)
6175 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6176 ;;
6177 *)
6178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179 for as_dir in $PATH
6180 do
6181 IFS=$as_save_IFS
6182 test -z "$as_dir" && as_dir=.
6183 for ac_exec_ext in '' $ac_executable_extensions; do
6184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6185 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 break 2
6188 fi
6189 done
6190 done
6191 IFS=$as_save_IFS
6193 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6194 ;;
6195 esac
6196 fi
6197 CP=$ac_cv_path_CP
6198 if test -n "$CP"; then
6199 { echo "$as_me:$LINENO: result: $CP" >&5
6200 echo "${ECHO_T}$CP" >&6; }
6201 else
6202 { echo "$as_me:$LINENO: result: no" >&5
6203 echo "${ECHO_T}no" >&6; }
6204 fi
6207 # Extract the first word of "date", so it can be a program name with args.
6208 set dummy date; ac_word=$2
6209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6211 if test "${ac_cv_path_DATE+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6213 else
6214 case $DATE in
6215 [\\/]* | ?:[\\/]*)
6216 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6217 ;;
6218 *)
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6221 do
6222 IFS=$as_save_IFS
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6226 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 break 2
6229 fi
6230 done
6231 done
6232 IFS=$as_save_IFS
6234 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6235 ;;
6236 esac
6237 fi
6238 DATE=$ac_cv_path_DATE
6239 if test -n "$DATE"; then
6240 { echo "$as_me:$LINENO: result: $DATE" >&5
6241 echo "${ECHO_T}$DATE" >&6; }
6242 else
6243 { echo "$as_me:$LINENO: result: no" >&5
6244 echo "${ECHO_T}no" >&6; }
6245 fi
6248 # Extract the first word of "find", so it can be a program name with args.
6249 set dummy find; ac_word=$2
6250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6252 if test "${ac_cv_path_FIND+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6254 else
6255 case $FIND in
6256 [\\/]* | ?:[\\/]*)
6257 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6258 ;;
6259 *)
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6262 do
6263 IFS=$as_save_IFS
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6267 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6269 break 2
6270 fi
6271 done
6272 done
6273 IFS=$as_save_IFS
6275 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6276 ;;
6277 esac
6278 fi
6279 FIND=$ac_cv_path_FIND
6280 if test -n "$FIND"; then
6281 { echo "$as_me:$LINENO: result: $FIND" >&5
6282 echo "${ECHO_T}$FIND" >&6; }
6283 else
6284 { echo "$as_me:$LINENO: result: no" >&5
6285 echo "${ECHO_T}no" >&6; }
6286 fi
6289 # Extract the first word of "grep", so it can be a program name with args.
6290 set dummy grep; ac_word=$2
6291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6293 if test "${ac_cv_path_GREP+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296 case $GREP in
6297 [\\/]* | ?:[\\/]*)
6298 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6299 ;;
6300 *)
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6303 do
6304 IFS=$as_save_IFS
6305 test -z "$as_dir" && as_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6308 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6310 break 2
6311 fi
6312 done
6313 done
6314 IFS=$as_save_IFS
6316 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6317 ;;
6318 esac
6319 fi
6320 GREP=$ac_cv_path_GREP
6321 if test -n "$GREP"; then
6322 { echo "$as_me:$LINENO: result: $GREP" >&5
6323 echo "${ECHO_T}$GREP" >&6; }
6324 else
6325 { echo "$as_me:$LINENO: result: no" >&5
6326 echo "${ECHO_T}no" >&6; }
6327 fi
6330 # Extract the first word of "mkdir", so it can be a program name with args.
6331 set dummy mkdir; ac_word=$2
6332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6334 if test "${ac_cv_path_MKDIR+set}" = set; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
6336 else
6337 case $MKDIR in
6338 [\\/]* | ?:[\\/]*)
6339 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6340 ;;
6341 *)
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH
6344 do
6345 IFS=$as_save_IFS
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6349 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 break 2
6352 fi
6353 done
6354 done
6355 IFS=$as_save_IFS
6357 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6358 ;;
6359 esac
6360 fi
6361 MKDIR=$ac_cv_path_MKDIR
6362 if test -n "$MKDIR"; then
6363 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6364 echo "${ECHO_T}$MKDIR" >&6; }
6365 else
6366 { echo "$as_me:$LINENO: result: no" >&5
6367 echo "${ECHO_T}no" >&6; }
6368 fi
6371 # Extract the first word of "mv", so it can be a program name with args.
6372 set dummy mv; ac_word=$2
6373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6375 if test "${ac_cv_path_MV+set}" = set; then
6376 echo $ECHO_N "(cached) $ECHO_C" >&6
6377 else
6378 case $MV in
6379 [\\/]* | ?:[\\/]*)
6380 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6381 ;;
6382 *)
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384 for as_dir in $PATH
6385 do
6386 IFS=$as_save_IFS
6387 test -z "$as_dir" && as_dir=.
6388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6390 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6392 break 2
6393 fi
6394 done
6395 done
6396 IFS=$as_save_IFS
6398 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6399 ;;
6400 esac
6401 fi
6402 MV=$ac_cv_path_MV
6403 if test -n "$MV"; then
6404 { echo "$as_me:$LINENO: result: $MV" >&5
6405 echo "${ECHO_T}$MV" >&6; }
6406 else
6407 { echo "$as_me:$LINENO: result: no" >&5
6408 echo "${ECHO_T}no" >&6; }
6409 fi
6412 if test -n "$ac_tool_prefix"; then
6413 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6414 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6417 if test "${ac_cv_prog_RANLIB+set}" = set; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
6419 else
6420 if test -n "$RANLIB"; then
6421 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6422 else
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 for as_dir in $PATH
6425 do
6426 IFS=$as_save_IFS
6427 test -z "$as_dir" && as_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6430 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6432 break 2
6433 fi
6434 done
6435 done
6436 IFS=$as_save_IFS
6438 fi
6439 fi
6440 RANLIB=$ac_cv_prog_RANLIB
6441 if test -n "$RANLIB"; then
6442 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6443 echo "${ECHO_T}$RANLIB" >&6; }
6444 else
6445 { echo "$as_me:$LINENO: result: no" >&5
6446 echo "${ECHO_T}no" >&6; }
6447 fi
6450 fi
6451 if test -z "$ac_cv_prog_RANLIB"; then
6452 ac_ct_RANLIB=$RANLIB
6453 # Extract the first word of "ranlib", so it can be a program name with args.
6454 set dummy ranlib; ac_word=$2
6455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6457 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460 if test -n "$ac_ct_RANLIB"; then
6461 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6462 else
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 for as_dir in $PATH
6465 do
6466 IFS=$as_save_IFS
6467 test -z "$as_dir" && as_dir=.
6468 for ac_exec_ext in '' $ac_executable_extensions; do
6469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6470 ac_cv_prog_ac_ct_RANLIB="ranlib"
6471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6472 break 2
6473 fi
6474 done
6475 done
6476 IFS=$as_save_IFS
6478 fi
6479 fi
6480 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6481 if test -n "$ac_ct_RANLIB"; then
6482 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6483 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6484 else
6485 { echo "$as_me:$LINENO: result: no" >&5
6486 echo "${ECHO_T}no" >&6; }
6487 fi
6489 if test "x$ac_ct_RANLIB" = x; then
6490 RANLIB=":"
6491 else
6492 case $cross_compiling:$ac_tool_warned in
6493 yes:)
6494 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6495 whose name does not start with the host triplet. If you think this
6496 configuration is useful to you, please write to autoconf@gnu.org." >&5
6497 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6498 whose name does not start with the host triplet. If you think this
6499 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6500 ac_tool_warned=yes ;;
6501 esac
6502 RANLIB=$ac_ct_RANLIB
6503 fi
6504 else
6505 RANLIB="$ac_cv_prog_RANLIB"
6506 fi
6508 if test -n "$ac_tool_prefix"; then
6509 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6510 set dummy ${ac_tool_prefix}ar; ac_word=$2
6511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6513 if test "${ac_cv_prog_AR+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 else
6516 if test -n "$AR"; then
6517 ac_cv_prog_AR="$AR" # Let the user override the test.
6518 else
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520 for as_dir in $PATH
6521 do
6522 IFS=$as_save_IFS
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6526 ac_cv_prog_AR="${ac_tool_prefix}ar"
6527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 break 2
6529 fi
6530 done
6531 done
6532 IFS=$as_save_IFS
6534 fi
6535 fi
6536 AR=$ac_cv_prog_AR
6537 if test -n "$AR"; then
6538 { echo "$as_me:$LINENO: result: $AR" >&5
6539 echo "${ECHO_T}$AR" >&6; }
6540 else
6541 { echo "$as_me:$LINENO: result: no" >&5
6542 echo "${ECHO_T}no" >&6; }
6543 fi
6546 fi
6547 if test -z "$ac_cv_prog_AR"; then
6548 ac_ct_AR=$AR
6549 # Extract the first word of "ar", so it can be a program name with args.
6550 set dummy ar; ac_word=$2
6551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6553 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6555 else
6556 if test -n "$ac_ct_AR"; then
6557 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6558 else
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 for as_dir in $PATH
6561 do
6562 IFS=$as_save_IFS
6563 test -z "$as_dir" && as_dir=.
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6566 ac_cv_prog_ac_ct_AR="ar"
6567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6568 break 2
6569 fi
6570 done
6571 done
6572 IFS=$as_save_IFS
6574 fi
6575 fi
6576 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6577 if test -n "$ac_ct_AR"; then
6578 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6579 echo "${ECHO_T}$ac_ct_AR" >&6; }
6580 else
6581 { echo "$as_me:$LINENO: result: no" >&5
6582 echo "${ECHO_T}no" >&6; }
6583 fi
6585 if test "x$ac_ct_AR" = x; then
6586 AR="false"
6587 else
6588 case $cross_compiling:$ac_tool_warned in
6589 yes:)
6590 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6591 whose name does not start with the host triplet. If you think this
6592 configuration is useful to you, please write to autoconf@gnu.org." >&5
6593 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6594 whose name does not start with the host triplet. If you think this
6595 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6596 ac_tool_warned=yes ;;
6597 esac
6598 AR=$ac_ct_AR
6599 fi
6600 else
6601 AR="$ac_cv_prog_AR"
6602 fi
6604 # Extract the first word of "rm", so it can be a program name with args.
6605 set dummy rm; ac_word=$2
6606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608 if test "${ac_cv_path_RM+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611 case $RM in
6612 [\\/]* | ?:[\\/]*)
6613 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6614 ;;
6615 *)
6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617 for as_dir in $PATH
6618 do
6619 IFS=$as_save_IFS
6620 test -z "$as_dir" && as_dir=.
6621 for ac_exec_ext in '' $ac_executable_extensions; do
6622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6623 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625 break 2
6626 fi
6627 done
6628 done
6629 IFS=$as_save_IFS
6631 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6632 ;;
6633 esac
6634 fi
6635 RM=$ac_cv_path_RM
6636 if test -n "$RM"; then
6637 { echo "$as_me:$LINENO: result: $RM" >&5
6638 echo "${ECHO_T}$RM" >&6; }
6639 else
6640 { echo "$as_me:$LINENO: result: no" >&5
6641 echo "${ECHO_T}no" >&6; }
6642 fi
6645 # Extract the first word of "sed", so it can be a program name with args.
6646 set dummy sed; ac_word=$2
6647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6649 if test "${ac_cv_path_SED+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6651 else
6652 case $SED in
6653 [\\/]* | ?:[\\/]*)
6654 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6655 ;;
6656 *)
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 for as_dir in $PATH
6659 do
6660 IFS=$as_save_IFS
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6664 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 break 2
6667 fi
6668 done
6669 done
6670 IFS=$as_save_IFS
6672 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6673 ;;
6674 esac
6675 fi
6676 SED=$ac_cv_path_SED
6677 if test -n "$SED"; then
6678 { echo "$as_me:$LINENO: result: $SED" >&5
6679 echo "${ECHO_T}$SED" >&6; }
6680 else
6681 { echo "$as_me:$LINENO: result: no" >&5
6682 echo "${ECHO_T}no" >&6; }
6683 fi
6686 # Extract the first word of "tar", so it can be a program name with args.
6687 set dummy tar; ac_word=$2
6688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6690 if test "${ac_cv_path_TAR+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6692 else
6693 case $TAR in
6694 [\\/]* | ?:[\\/]*)
6695 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6696 ;;
6697 *)
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 for as_dir in $PATH
6700 do
6701 IFS=$as_save_IFS
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
6704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6705 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 break 2
6708 fi
6709 done
6710 done
6711 IFS=$as_save_IFS
6713 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6714 ;;
6715 esac
6716 fi
6717 TAR=$ac_cv_path_TAR
6718 if test -n "$TAR"; then
6719 { echo "$as_me:$LINENO: result: $TAR" >&5
6720 echo "${ECHO_T}$TAR" >&6; }
6721 else
6722 { echo "$as_me:$LINENO: result: no" >&5
6723 echo "${ECHO_T}no" >&6; }
6724 fi
6727 # Extract the first word of "pwd", so it can be a program name with args.
6728 set dummy pwd; ac_word=$2
6729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731 if test "${ac_cv_path_BINPWD+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734 case $BINPWD in
6735 [\\/]* | ?:[\\/]*)
6736 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6737 ;;
6738 *)
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6741 do
6742 IFS=$as_save_IFS
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6746 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 break 2
6749 fi
6750 done
6751 done
6752 IFS=$as_save_IFS
6754 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6755 ;;
6756 esac
6757 fi
6758 BINPWD=$ac_cv_path_BINPWD
6759 if test -n "$BINPWD"; then
6760 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6761 echo "${ECHO_T}$BINPWD" >&6; }
6762 else
6763 { echo "$as_me:$LINENO: result: no" >&5
6764 echo "${ECHO_T}no" >&6; }
6765 fi
6769 # Extract the first word of "Graphviz", so it can be a program name with args.
6770 set dummy Graphviz; ac_word=$2
6771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6773 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776 case $GRAPHVIZ in
6777 [\\/]* | ?:[\\/]*)
6778 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6779 ;;
6780 *)
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 for as_dir in $PATH
6783 do
6784 IFS=$as_save_IFS
6785 test -z "$as_dir" && as_dir=.
6786 for ac_exec_ext in '' $ac_executable_extensions; do
6787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6788 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6790 break 2
6791 fi
6792 done
6793 done
6794 IFS=$as_save_IFS
6796 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6797 ;;
6798 esac
6799 fi
6800 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6801 if test -n "$GRAPHVIZ"; then
6802 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6803 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6804 else
6805 { echo "$as_me:$LINENO: result: no" >&5
6806 echo "${ECHO_T}no" >&6; }
6807 fi
6810 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6812 cat >>confdefs.h <<\_ACEOF
6813 #define HAVE_GRAPHVIZ 1
6814 _ACEOF
6816 if test "$llvm_cv_os_type" = "MingW" ; then
6817 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6818 fi
6820 cat >>confdefs.h <<_ACEOF
6821 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6822 _ACEOF
6824 fi
6825 # Extract the first word of "dot", so it can be a program name with args.
6826 set dummy dot; ac_word=$2
6827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6829 if test "${ac_cv_path_DOT+set}" = set; then
6830 echo $ECHO_N "(cached) $ECHO_C" >&6
6831 else
6832 case $DOT in
6833 [\\/]* | ?:[\\/]*)
6834 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6835 ;;
6836 *)
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 for as_dir in $PATH
6839 do
6840 IFS=$as_save_IFS
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6844 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 break 2
6847 fi
6848 done
6849 done
6850 IFS=$as_save_IFS
6852 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6853 ;;
6854 esac
6855 fi
6856 DOT=$ac_cv_path_DOT
6857 if test -n "$DOT"; then
6858 { echo "$as_me:$LINENO: result: $DOT" >&5
6859 echo "${ECHO_T}$DOT" >&6; }
6860 else
6861 { echo "$as_me:$LINENO: result: no" >&5
6862 echo "${ECHO_T}no" >&6; }
6863 fi
6866 if test "$DOT" != "echo dot" ; then
6868 cat >>confdefs.h <<\_ACEOF
6869 #define HAVE_DOT 1
6870 _ACEOF
6872 if test "$llvm_cv_os_type" = "MingW" ; then
6873 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6874 fi
6876 cat >>confdefs.h <<_ACEOF
6877 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6878 _ACEOF
6880 fi
6881 # Extract the first word of "fdp", so it can be a program name with args.
6882 set dummy fdp; ac_word=$2
6883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6885 if test "${ac_cv_path_FDP+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 else
6888 case $FDP in
6889 [\\/]* | ?:[\\/]*)
6890 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6891 ;;
6892 *)
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 for as_dir in $PATH
6895 do
6896 IFS=$as_save_IFS
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6900 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6902 break 2
6903 fi
6904 done
6905 done
6906 IFS=$as_save_IFS
6908 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6909 ;;
6910 esac
6911 fi
6912 FDP=$ac_cv_path_FDP
6913 if test -n "$FDP"; then
6914 { echo "$as_me:$LINENO: result: $FDP" >&5
6915 echo "${ECHO_T}$FDP" >&6; }
6916 else
6917 { echo "$as_me:$LINENO: result: no" >&5
6918 echo "${ECHO_T}no" >&6; }
6919 fi
6922 if test "$FDP" != "echo fdp" ; then
6924 cat >>confdefs.h <<\_ACEOF
6925 #define HAVE_FDP 1
6926 _ACEOF
6928 if test "$llvm_cv_os_type" = "MingW" ; then
6929 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6930 fi
6932 cat >>confdefs.h <<_ACEOF
6933 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6934 _ACEOF
6936 fi
6937 # Extract the first word of "neato", so it can be a program name with args.
6938 set dummy neato; ac_word=$2
6939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6941 if test "${ac_cv_path_NEATO+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6943 else
6944 case $NEATO in
6945 [\\/]* | ?:[\\/]*)
6946 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6947 ;;
6948 *)
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6951 do
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6956 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6959 fi
6960 done
6961 done
6962 IFS=$as_save_IFS
6964 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6965 ;;
6966 esac
6967 fi
6968 NEATO=$ac_cv_path_NEATO
6969 if test -n "$NEATO"; then
6970 { echo "$as_me:$LINENO: result: $NEATO" >&5
6971 echo "${ECHO_T}$NEATO" >&6; }
6972 else
6973 { echo "$as_me:$LINENO: result: no" >&5
6974 echo "${ECHO_T}no" >&6; }
6975 fi
6978 if test "$NEATO" != "echo neato" ; then
6980 cat >>confdefs.h <<\_ACEOF
6981 #define HAVE_NEATO 1
6982 _ACEOF
6984 if test "$llvm_cv_os_type" = "MingW" ; then
6985 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6986 fi
6988 cat >>confdefs.h <<_ACEOF
6989 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6990 _ACEOF
6992 fi
6993 # Extract the first word of "twopi", so it can be a program name with args.
6994 set dummy twopi; ac_word=$2
6995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6997 if test "${ac_cv_path_TWOPI+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 else
7000 case $TWOPI in
7001 [\\/]* | ?:[\\/]*)
7002 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7003 ;;
7004 *)
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 for as_dir in $PATH
7007 do
7008 IFS=$as_save_IFS
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7012 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 break 2
7015 fi
7016 done
7017 done
7018 IFS=$as_save_IFS
7020 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7021 ;;
7022 esac
7023 fi
7024 TWOPI=$ac_cv_path_TWOPI
7025 if test -n "$TWOPI"; then
7026 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7027 echo "${ECHO_T}$TWOPI" >&6; }
7028 else
7029 { echo "$as_me:$LINENO: result: no" >&5
7030 echo "${ECHO_T}no" >&6; }
7031 fi
7034 if test "$TWOPI" != "echo twopi" ; then
7036 cat >>confdefs.h <<\_ACEOF
7037 #define HAVE_TWOPI 1
7038 _ACEOF
7040 if test "$llvm_cv_os_type" = "MingW" ; then
7041 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7042 fi
7044 cat >>confdefs.h <<_ACEOF
7045 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7046 _ACEOF
7048 fi
7049 # Extract the first word of "circo", so it can be a program name with args.
7050 set dummy circo; ac_word=$2
7051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7053 if test "${ac_cv_path_CIRCO+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 else
7056 case $CIRCO in
7057 [\\/]* | ?:[\\/]*)
7058 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7059 ;;
7060 *)
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062 for as_dir in $PATH
7063 do
7064 IFS=$as_save_IFS
7065 test -z "$as_dir" && as_dir=.
7066 for ac_exec_ext in '' $ac_executable_extensions; do
7067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7068 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7070 break 2
7071 fi
7072 done
7073 done
7074 IFS=$as_save_IFS
7076 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7077 ;;
7078 esac
7079 fi
7080 CIRCO=$ac_cv_path_CIRCO
7081 if test -n "$CIRCO"; then
7082 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7083 echo "${ECHO_T}$CIRCO" >&6; }
7084 else
7085 { echo "$as_me:$LINENO: result: no" >&5
7086 echo "${ECHO_T}no" >&6; }
7087 fi
7090 if test "$CIRCO" != "echo circo" ; then
7092 cat >>confdefs.h <<\_ACEOF
7093 #define HAVE_CIRCO 1
7094 _ACEOF
7096 if test "$llvm_cv_os_type" = "MingW" ; then
7097 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7098 fi
7100 cat >>confdefs.h <<_ACEOF
7101 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7102 _ACEOF
7104 fi
7105 for ac_prog in gv gsview32
7106 do
7107 # Extract the first word of "$ac_prog", so it can be a program name with args.
7108 set dummy $ac_prog; ac_word=$2
7109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7111 if test "${ac_cv_path_GV+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114 case $GV in
7115 [\\/]* | ?:[\\/]*)
7116 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7117 ;;
7118 *)
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 for as_dir in $PATH
7121 do
7122 IFS=$as_save_IFS
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7126 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 break 2
7129 fi
7130 done
7131 done
7132 IFS=$as_save_IFS
7134 ;;
7135 esac
7136 fi
7137 GV=$ac_cv_path_GV
7138 if test -n "$GV"; then
7139 { echo "$as_me:$LINENO: result: $GV" >&5
7140 echo "${ECHO_T}$GV" >&6; }
7141 else
7142 { echo "$as_me:$LINENO: result: no" >&5
7143 echo "${ECHO_T}no" >&6; }
7144 fi
7147 test -n "$GV" && break
7148 done
7149 test -n "$GV" || GV="echo gv"
7151 if test "$GV" != "echo gv" ; then
7153 cat >>confdefs.h <<\_ACEOF
7154 #define HAVE_GV 1
7155 _ACEOF
7157 if test "$llvm_cv_os_type" = "MingW" ; then
7158 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7159 fi
7161 cat >>confdefs.h <<_ACEOF
7162 #define LLVM_PATH_GV "$GV${EXEEXT}"
7163 _ACEOF
7165 fi
7166 # Extract the first word of "dotty", so it can be a program name with args.
7167 set dummy dotty; ac_word=$2
7168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7170 if test "${ac_cv_path_DOTTY+set}" = set; then
7171 echo $ECHO_N "(cached) $ECHO_C" >&6
7172 else
7173 case $DOTTY in
7174 [\\/]* | ?:[\\/]*)
7175 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7176 ;;
7177 *)
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 for as_dir in $PATH
7180 do
7181 IFS=$as_save_IFS
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7185 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 break 2
7188 fi
7189 done
7190 done
7191 IFS=$as_save_IFS
7193 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7194 ;;
7195 esac
7196 fi
7197 DOTTY=$ac_cv_path_DOTTY
7198 if test -n "$DOTTY"; then
7199 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7200 echo "${ECHO_T}$DOTTY" >&6; }
7201 else
7202 { echo "$as_me:$LINENO: result: no" >&5
7203 echo "${ECHO_T}no" >&6; }
7204 fi
7207 if test "$DOTTY" != "echo dotty" ; then
7209 cat >>confdefs.h <<\_ACEOF
7210 #define HAVE_DOTTY 1
7211 _ACEOF
7213 if test "$llvm_cv_os_type" = "MingW" ; then
7214 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7215 fi
7217 cat >>confdefs.h <<_ACEOF
7218 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7219 _ACEOF
7221 fi
7222 for ac_prog in xdot xdot.py
7223 do
7224 # Extract the first word of "$ac_prog", so it can be a program name with args.
7225 set dummy $ac_prog; ac_word=$2
7226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7228 if test "${ac_cv_path_XDOT+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7230 else
7231 case $XDOT in
7232 [\\/]* | ?:[\\/]*)
7233 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
7234 ;;
7235 *)
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 for as_dir in $PATH
7238 do
7239 IFS=$as_save_IFS
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7243 ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
7244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 break 2
7246 fi
7247 done
7248 done
7249 IFS=$as_save_IFS
7251 ;;
7252 esac
7253 fi
7254 XDOT=$ac_cv_path_XDOT
7255 if test -n "$XDOT"; then
7256 { echo "$as_me:$LINENO: result: $XDOT" >&5
7257 echo "${ECHO_T}$XDOT" >&6; }
7258 else
7259 { echo "$as_me:$LINENO: result: no" >&5
7260 echo "${ECHO_T}no" >&6; }
7261 fi
7264 test -n "$XDOT" && break
7265 done
7266 test -n "$XDOT" || XDOT="echo xdot"
7268 if test "$XDOT" != "echo xdot" ; then
7270 cat >>confdefs.h <<\_ACEOF
7271 #define HAVE_XDOT 1
7272 _ACEOF
7274 if test "$llvm_cv_os_type" = "MingW" ; then
7275 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7276 fi
7278 cat >>confdefs.h <<_ACEOF
7279 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
7280 _ACEOF
7282 fi
7284 # Find a good install program. We prefer a C program (faster),
7285 # so one script is as good as another. But avoid the broken or
7286 # incompatible versions:
7287 # SysV /etc/install, /usr/sbin/install
7288 # SunOS /usr/etc/install
7289 # IRIX /sbin/install
7290 # AIX /bin/install
7291 # AmigaOS /C/install, which installs bootblocks on floppy discs
7292 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7293 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7294 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7295 # OS/2's system install, which has a completely different semantic
7296 # ./install, which can be erroneously created by make from ./install.sh.
7297 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7298 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7299 if test -z "$INSTALL"; then
7300 if test "${ac_cv_path_install+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 else
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 for as_dir in $PATH
7305 do
7306 IFS=$as_save_IFS
7307 test -z "$as_dir" && as_dir=.
7308 # Account for people who put trailing slashes in PATH elements.
7309 case $as_dir/ in
7310 ./ | .// | /cC/* | \
7311 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7312 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7313 /usr/ucb/* ) ;;
7314 *)
7315 # OSF1 and SCO ODT 3.0 have their own names for install.
7316 # Don't use installbsd from OSF since it installs stuff as root
7317 # by default.
7318 for ac_prog in ginstall scoinst install; do
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7321 if test $ac_prog = install &&
7322 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7323 # AIX install. It has an incompatible calling convention.
7324 :
7325 elif test $ac_prog = install &&
7326 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7327 # program-specific install script used by HP pwplus--don't use.
7328 :
7329 else
7330 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7331 break 3
7332 fi
7333 fi
7334 done
7335 done
7336 ;;
7337 esac
7338 done
7339 IFS=$as_save_IFS
7342 fi
7343 if test "${ac_cv_path_install+set}" = set; then
7344 INSTALL=$ac_cv_path_install
7345 else
7346 # As a last resort, use the slow shell script. Don't cache a
7347 # value for INSTALL within a source directory, because that will
7348 # break other packages using the cache if that directory is
7349 # removed, or if the value is a relative name.
7350 INSTALL=$ac_install_sh
7351 fi
7352 fi
7353 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7354 echo "${ECHO_T}$INSTALL" >&6; }
7356 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7357 # It thinks the first close brace ends the variable substitution.
7358 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7360 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7362 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7364 case "$INSTALL" in
7365 [\\/$]* | ?:[\\/]* ) ;;
7366 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7367 esac
7369 # Extract the first word of "bzip2", so it can be a program name with args.
7370 set dummy bzip2; ac_word=$2
7371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7373 if test "${ac_cv_path_BZIP2+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 else
7376 case $BZIP2 in
7377 [\\/]* | ?:[\\/]*)
7378 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7379 ;;
7380 *)
7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 for as_dir in $PATH
7383 do
7384 IFS=$as_save_IFS
7385 test -z "$as_dir" && as_dir=.
7386 for ac_exec_ext in '' $ac_executable_extensions; do
7387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7388 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7390 break 2
7391 fi
7392 done
7393 done
7394 IFS=$as_save_IFS
7396 ;;
7397 esac
7398 fi
7399 BZIP2=$ac_cv_path_BZIP2
7400 if test -n "$BZIP2"; then
7401 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7402 echo "${ECHO_T}$BZIP2" >&6; }
7403 else
7404 { echo "$as_me:$LINENO: result: no" >&5
7405 echo "${ECHO_T}no" >&6; }
7406 fi
7409 # Extract the first word of "cat", so it can be a program name with args.
7410 set dummy cat; ac_word=$2
7411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7413 if test "${ac_cv_path_CAT+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 else
7416 case $CAT in
7417 [\\/]* | ?:[\\/]*)
7418 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7419 ;;
7420 *)
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 for as_dir in $PATH
7423 do
7424 IFS=$as_save_IFS
7425 test -z "$as_dir" && as_dir=.
7426 for ac_exec_ext in '' $ac_executable_extensions; do
7427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7428 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7430 break 2
7431 fi
7432 done
7433 done
7434 IFS=$as_save_IFS
7436 ;;
7437 esac
7438 fi
7439 CAT=$ac_cv_path_CAT
7440 if test -n "$CAT"; then
7441 { echo "$as_me:$LINENO: result: $CAT" >&5
7442 echo "${ECHO_T}$CAT" >&6; }
7443 else
7444 { echo "$as_me:$LINENO: result: no" >&5
7445 echo "${ECHO_T}no" >&6; }
7446 fi
7449 # Extract the first word of "doxygen", so it can be a program name with args.
7450 set dummy doxygen; ac_word=$2
7451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7453 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 else
7456 case $DOXYGEN in
7457 [\\/]* | ?:[\\/]*)
7458 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7459 ;;
7460 *)
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 for as_dir in $PATH
7463 do
7464 IFS=$as_save_IFS
7465 test -z "$as_dir" && as_dir=.
7466 for ac_exec_ext in '' $ac_executable_extensions; do
7467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7468 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7470 break 2
7471 fi
7472 done
7473 done
7474 IFS=$as_save_IFS
7476 ;;
7477 esac
7478 fi
7479 DOXYGEN=$ac_cv_path_DOXYGEN
7480 if test -n "$DOXYGEN"; then
7481 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7482 echo "${ECHO_T}$DOXYGEN" >&6; }
7483 else
7484 { echo "$as_me:$LINENO: result: no" >&5
7485 echo "${ECHO_T}no" >&6; }
7486 fi
7489 # Extract the first word of "groff", so it can be a program name with args.
7490 set dummy groff; ac_word=$2
7491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7493 if test "${ac_cv_path_GROFF+set}" = set; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 else
7496 case $GROFF in
7497 [\\/]* | ?:[\\/]*)
7498 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7499 ;;
7500 *)
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 for as_dir in $PATH
7503 do
7504 IFS=$as_save_IFS
7505 test -z "$as_dir" && as_dir=.
7506 for ac_exec_ext in '' $ac_executable_extensions; do
7507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7508 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7510 break 2
7511 fi
7512 done
7513 done
7514 IFS=$as_save_IFS
7516 ;;
7517 esac
7518 fi
7519 GROFF=$ac_cv_path_GROFF
7520 if test -n "$GROFF"; then
7521 { echo "$as_me:$LINENO: result: $GROFF" >&5
7522 echo "${ECHO_T}$GROFF" >&6; }
7523 else
7524 { echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6; }
7526 fi
7529 # Extract the first word of "gzip", so it can be a program name with args.
7530 set dummy gzip; ac_word=$2
7531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7533 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 else
7536 case $GZIPBIN in
7537 [\\/]* | ?:[\\/]*)
7538 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7539 ;;
7540 *)
7541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542 for as_dir in $PATH
7543 do
7544 IFS=$as_save_IFS
7545 test -z "$as_dir" && as_dir=.
7546 for ac_exec_ext in '' $ac_executable_extensions; do
7547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7548 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7550 break 2
7551 fi
7552 done
7553 done
7554 IFS=$as_save_IFS
7556 ;;
7557 esac
7558 fi
7559 GZIPBIN=$ac_cv_path_GZIPBIN
7560 if test -n "$GZIPBIN"; then
7561 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7562 echo "${ECHO_T}$GZIPBIN" >&6; }
7563 else
7564 { echo "$as_me:$LINENO: result: no" >&5
7565 echo "${ECHO_T}no" >&6; }
7566 fi
7569 # Extract the first word of "pdfroff", so it can be a program name with args.
7570 set dummy pdfroff; ac_word=$2
7571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7573 if test "${ac_cv_path_PDFROFF+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7575 else
7576 case $PDFROFF in
7577 [\\/]* | ?:[\\/]*)
7578 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7579 ;;
7580 *)
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 for as_dir in $PATH
7583 do
7584 IFS=$as_save_IFS
7585 test -z "$as_dir" && as_dir=.
7586 for ac_exec_ext in '' $ac_executable_extensions; do
7587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7588 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7590 break 2
7591 fi
7592 done
7593 done
7594 IFS=$as_save_IFS
7596 ;;
7597 esac
7598 fi
7599 PDFROFF=$ac_cv_path_PDFROFF
7600 if test -n "$PDFROFF"; then
7601 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7602 echo "${ECHO_T}$PDFROFF" >&6; }
7603 else
7604 { echo "$as_me:$LINENO: result: no" >&5
7605 echo "${ECHO_T}no" >&6; }
7606 fi
7609 # Extract the first word of "zip", so it can be a program name with args.
7610 set dummy zip; ac_word=$2
7611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7613 if test "${ac_cv_path_ZIP+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7615 else
7616 case $ZIP in
7617 [\\/]* | ?:[\\/]*)
7618 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7619 ;;
7620 *)
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 for as_dir in $PATH
7623 do
7624 IFS=$as_save_IFS
7625 test -z "$as_dir" && as_dir=.
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7628 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7630 break 2
7631 fi
7632 done
7633 done
7634 IFS=$as_save_IFS
7636 ;;
7637 esac
7638 fi
7639 ZIP=$ac_cv_path_ZIP
7640 if test -n "$ZIP"; then
7641 { echo "$as_me:$LINENO: result: $ZIP" >&5
7642 echo "${ECHO_T}$ZIP" >&6; }
7643 else
7644 { echo "$as_me:$LINENO: result: no" >&5
7645 echo "${ECHO_T}no" >&6; }
7646 fi
7649 for ac_prog in ocamlc
7650 do
7651 # Extract the first word of "$ac_prog", so it can be a program name with args.
7652 set dummy $ac_prog; ac_word=$2
7653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7655 if test "${ac_cv_path_OCAMLC+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 else
7658 case $OCAMLC in
7659 [\\/]* | ?:[\\/]*)
7660 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7661 ;;
7662 *)
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 for as_dir in $PATH
7665 do
7666 IFS=$as_save_IFS
7667 test -z "$as_dir" && as_dir=.
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7670 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 break 2
7673 fi
7674 done
7675 done
7676 IFS=$as_save_IFS
7678 ;;
7679 esac
7680 fi
7681 OCAMLC=$ac_cv_path_OCAMLC
7682 if test -n "$OCAMLC"; then
7683 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7684 echo "${ECHO_T}$OCAMLC" >&6; }
7685 else
7686 { echo "$as_me:$LINENO: result: no" >&5
7687 echo "${ECHO_T}no" >&6; }
7688 fi
7691 test -n "$OCAMLC" && break
7692 done
7694 for ac_prog in ocamlopt
7695 do
7696 # Extract the first word of "$ac_prog", so it can be a program name with args.
7697 set dummy $ac_prog; ac_word=$2
7698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7700 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7702 else
7703 case $OCAMLOPT in
7704 [\\/]* | ?:[\\/]*)
7705 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7706 ;;
7707 *)
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 for as_dir in $PATH
7710 do
7711 IFS=$as_save_IFS
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7715 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 break 2
7718 fi
7719 done
7720 done
7721 IFS=$as_save_IFS
7723 ;;
7724 esac
7725 fi
7726 OCAMLOPT=$ac_cv_path_OCAMLOPT
7727 if test -n "$OCAMLOPT"; then
7728 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7729 echo "${ECHO_T}$OCAMLOPT" >&6; }
7730 else
7731 { echo "$as_me:$LINENO: result: no" >&5
7732 echo "${ECHO_T}no" >&6; }
7733 fi
7736 test -n "$OCAMLOPT" && break
7737 done
7739 for ac_prog in ocamldep
7740 do
7741 # Extract the first word of "$ac_prog", so it can be a program name with args.
7742 set dummy $ac_prog; ac_word=$2
7743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7745 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748 case $OCAMLDEP in
7749 [\\/]* | ?:[\\/]*)
7750 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7751 ;;
7752 *)
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH
7755 do
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7760 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 break 2
7763 fi
7764 done
7765 done
7766 IFS=$as_save_IFS
7768 ;;
7769 esac
7770 fi
7771 OCAMLDEP=$ac_cv_path_OCAMLDEP
7772 if test -n "$OCAMLDEP"; then
7773 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7774 echo "${ECHO_T}$OCAMLDEP" >&6; }
7775 else
7776 { echo "$as_me:$LINENO: result: no" >&5
7777 echo "${ECHO_T}no" >&6; }
7778 fi
7781 test -n "$OCAMLDEP" && break
7782 done
7784 for ac_prog in ocamldoc
7785 do
7786 # Extract the first word of "$ac_prog", so it can be a program name with args.
7787 set dummy $ac_prog; ac_word=$2
7788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7790 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 else
7793 case $OCAMLDOC in
7794 [\\/]* | ?:[\\/]*)
7795 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7796 ;;
7797 *)
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 for as_dir in $PATH
7800 do
7801 IFS=$as_save_IFS
7802 test -z "$as_dir" && as_dir=.
7803 for ac_exec_ext in '' $ac_executable_extensions; do
7804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7805 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7807 break 2
7808 fi
7809 done
7810 done
7811 IFS=$as_save_IFS
7813 ;;
7814 esac
7815 fi
7816 OCAMLDOC=$ac_cv_path_OCAMLDOC
7817 if test -n "$OCAMLDOC"; then
7818 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7819 echo "${ECHO_T}$OCAMLDOC" >&6; }
7820 else
7821 { echo "$as_me:$LINENO: result: no" >&5
7822 echo "${ECHO_T}no" >&6; }
7823 fi
7826 test -n "$OCAMLDOC" && break
7827 done
7829 for ac_prog in gas as
7830 do
7831 # Extract the first word of "$ac_prog", so it can be a program name with args.
7832 set dummy $ac_prog; ac_word=$2
7833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7835 if test "${ac_cv_path_GAS+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 else
7838 case $GAS in
7839 [\\/]* | ?:[\\/]*)
7840 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7841 ;;
7842 *)
7843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844 for as_dir in $PATH
7845 do
7846 IFS=$as_save_IFS
7847 test -z "$as_dir" && as_dir=.
7848 for ac_exec_ext in '' $ac_executable_extensions; do
7849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7850 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7852 break 2
7853 fi
7854 done
7855 done
7856 IFS=$as_save_IFS
7858 ;;
7859 esac
7860 fi
7861 GAS=$ac_cv_path_GAS
7862 if test -n "$GAS"; then
7863 { echo "$as_me:$LINENO: result: $GAS" >&5
7864 echo "${ECHO_T}$GAS" >&6; }
7865 else
7866 { echo "$as_me:$LINENO: result: no" >&5
7867 echo "${ECHO_T}no" >&6; }
7868 fi
7871 test -n "$GAS" && break
7872 done
7875 { echo "$as_me:$LINENO: checking for linker version" >&5
7876 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7877 if test "${llvm_cv_link_version+set}" = set; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7879 else
7881 version_string="$(ld -v 2>&1 | head -1)"
7883 # Check for ld64.
7884 if (echo "$version_string" | grep -q "ld64"); then
7885 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7886 else
7887 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7888 fi
7890 fi
7891 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7892 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7894 cat >>confdefs.h <<_ACEOF
7895 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7896 _ACEOF
7900 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7901 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7902 if test "${llvm_cv_link_use_r+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 else
7905 ac_ext=c
7906 ac_cpp='$CPP $CPPFLAGS'
7907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7911 oldcflags="$CFLAGS"
7912 CFLAGS="$CFLAGS -Wl,-R."
7913 cat >conftest.$ac_ext <<_ACEOF
7914 /* confdefs.h. */
7915 _ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7920 int
7921 main ()
7922 {
7924 ;
7925 return 0;
7926 }
7927 _ACEOF
7928 rm -f conftest.$ac_objext conftest$ac_exeext
7929 if { (ac_try="$ac_link"
7930 case "(($ac_try" in
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7933 esac
7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_link") 2>conftest.er1
7936 ac_status=$?
7937 grep -v '^ *+' conftest.er1 >conftest.err
7938 rm -f conftest.er1
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } &&
7942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7943 { (case "(($ac_try" in
7944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7945 *) ac_try_echo=$ac_try;;
7946 esac
7947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7948 (eval "$ac_try") 2>&5
7949 ac_status=$?
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); }; } &&
7952 { ac_try='test -s conftest$ac_exeext'
7953 { (case "(($ac_try" in
7954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7955 *) ac_try_echo=$ac_try;;
7956 esac
7957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7958 (eval "$ac_try") 2>&5
7959 ac_status=$?
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; }; then
7962 llvm_cv_link_use_r=yes
7963 else
7964 echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7967 llvm_cv_link_use_r=no
7968 fi
7970 rm -f core conftest.err conftest.$ac_objext \
7971 conftest$ac_exeext conftest.$ac_ext
7972 CFLAGS="$oldcflags"
7973 ac_ext=c
7974 ac_cpp='$CPP $CPPFLAGS'
7975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7980 fi
7981 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7982 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7983 if test "$llvm_cv_link_use_r" = yes ; then
7985 cat >>confdefs.h <<\_ACEOF
7986 #define HAVE_LINK_R 1
7987 _ACEOF
7989 fi
7992 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7993 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7994 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7996 else
7997 ac_ext=c
7998 ac_cpp='$CPP $CPPFLAGS'
7999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8003 oldcflags="$CFLAGS"
8004 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8005 cat >conftest.$ac_ext <<_ACEOF
8006 /* confdefs.h. */
8007 _ACEOF
8008 cat confdefs.h >>conftest.$ac_ext
8009 cat >>conftest.$ac_ext <<_ACEOF
8010 /* end confdefs.h. */
8012 int
8013 main ()
8014 {
8016 ;
8017 return 0;
8018 }
8019 _ACEOF
8020 rm -f conftest.$ac_objext conftest$ac_exeext
8021 if { (ac_try="$ac_link"
8022 case "(($ac_try" in
8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8025 esac
8026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027 (eval "$ac_link") 2>conftest.er1
8028 ac_status=$?
8029 grep -v '^ *+' conftest.er1 >conftest.err
8030 rm -f conftest.er1
8031 cat conftest.err >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } &&
8034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8035 { (case "(($ac_try" in
8036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8037 *) ac_try_echo=$ac_try;;
8038 esac
8039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8040 (eval "$ac_try") 2>&5
8041 ac_status=$?
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); }; } &&
8044 { ac_try='test -s conftest$ac_exeext'
8045 { (case "(($ac_try" in
8046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047 *) ac_try_echo=$ac_try;;
8048 esac
8049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8050 (eval "$ac_try") 2>&5
8051 ac_status=$?
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; }; then
8054 llvm_cv_link_use_export_dynamic=yes
8055 else
8056 echo "$as_me: failed program was:" >&5
8057 sed 's/^/| /' conftest.$ac_ext >&5
8059 llvm_cv_link_use_export_dynamic=no
8060 fi
8062 rm -f core conftest.err conftest.$ac_objext \
8063 conftest$ac_exeext conftest.$ac_ext
8064 CFLAGS="$oldcflags"
8065 ac_ext=c
8066 ac_cpp='$CPP $CPPFLAGS'
8067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8072 fi
8073 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8074 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8075 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8077 cat >>confdefs.h <<\_ACEOF
8078 #define HAVE_LINK_EXPORT_DYNAMIC 1
8079 _ACEOF
8081 fi
8084 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8085 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8086 if test "${llvm_cv_link_use_version_script+set}" = set; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
8088 else
8089 ac_ext=c
8090 ac_cpp='$CPP $CPPFLAGS'
8091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8095 oldcflags="$CFLAGS"
8097 # The following code is from the autoconf manual,
8098 # "11.13: Limitations of Usual Tools".
8099 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8100 # Use mktemp if possible; otherwise fall back on mkdir,
8101 # with $RANDOM to make collisions less likely.
8102 : ${TMPDIR=/tmp}
8103 {
8104 tmp=`
8105 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8106 ` &&
8107 test -n "$tmp" && test -d "$tmp"
8108 } || {
8109 tmp=$TMPDIR/foo$$-$RANDOM
8110 (umask 077 && mkdir "$tmp")
8111 } || exit $?
8113 echo "{" > "$tmp/export.map"
8114 echo " global: main;" >> "$tmp/export.map"
8115 echo " local: *;" >> "$tmp/export.map"
8116 echo "};" >> "$tmp/export.map"
8118 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8119 cat >conftest.$ac_ext <<_ACEOF
8120 /* confdefs.h. */
8121 _ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8126 int
8127 main ()
8128 {
8130 ;
8131 return 0;
8132 }
8133 _ACEOF
8134 rm -f conftest.$ac_objext conftest$ac_exeext
8135 if { (ac_try="$ac_link"
8136 case "(($ac_try" in
8137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8138 *) ac_try_echo=$ac_try;;
8139 esac
8140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8141 (eval "$ac_link") 2>conftest.er1
8142 ac_status=$?
8143 grep -v '^ *+' conftest.er1 >conftest.err
8144 rm -f conftest.er1
8145 cat conftest.err >&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); } &&
8148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8149 { (case "(($ac_try" in
8150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8151 *) ac_try_echo=$ac_try;;
8152 esac
8153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8154 (eval "$ac_try") 2>&5
8155 ac_status=$?
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; } &&
8158 { ac_try='test -s conftest$ac_exeext'
8159 { (case "(($ac_try" in
8160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8161 *) ac_try_echo=$ac_try;;
8162 esac
8163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8164 (eval "$ac_try") 2>&5
8165 ac_status=$?
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); }; }; then
8168 llvm_cv_link_use_version_script=yes
8169 else
8170 echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.$ac_ext >&5
8173 llvm_cv_link_use_version_script=no
8174 fi
8176 rm -f core conftest.err conftest.$ac_objext \
8177 conftest$ac_exeext conftest.$ac_ext
8178 rm "$tmp/export.map"
8179 rmdir "$tmp"
8180 CFLAGS="$oldcflags"
8181 ac_ext=c
8182 ac_cpp='$CPP $CPPFLAGS'
8183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8188 fi
8189 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8190 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8191 if test "$llvm_cv_link_use_version_script" = yes ; then
8192 HAVE_LINK_VERSION_SCRIPT=1
8194 fi
8199 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8200 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8201 if test "${ac_cv_c_const+set}" = set; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8203 else
8204 cat >conftest.$ac_ext <<_ACEOF
8205 /* confdefs.h. */
8206 _ACEOF
8207 cat confdefs.h >>conftest.$ac_ext
8208 cat >>conftest.$ac_ext <<_ACEOF
8209 /* end confdefs.h. */
8211 int
8212 main ()
8213 {
8214 /* FIXME: Include the comments suggested by Paul. */
8215 #ifndef __cplusplus
8216 /* Ultrix mips cc rejects this. */
8217 typedef int charset[2];
8218 const charset x;
8219 /* SunOS 4.1.1 cc rejects this. */
8220 char const *const *ccp;
8221 char **p;
8222 /* NEC SVR4.0.2 mips cc rejects this. */
8223 struct point {int x, y;};
8224 static struct point const zero = {0,0};
8225 /* AIX XL C 1.02.0.0 rejects this.
8226 It does not let you subtract one const X* pointer from another in
8227 an arm of an if-expression whose if-part is not a constant
8228 expression */
8229 const char *g = "string";
8230 ccp = &g + (g ? g-g : 0);
8231 /* HPUX 7.0 cc rejects these. */
8232 ++ccp;
8233 p = (char**) ccp;
8234 ccp = (char const *const *) p;
8235 { /* SCO 3.2v4 cc rejects this. */
8236 char *t;
8237 char const *s = 0 ? (char *) 0 : (char const *) 0;
8239 *t++ = 0;
8240 if (s) return 0;
8241 }
8242 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8243 int x[] = {25, 17};
8244 const int *foo = &x[0];
8245 ++foo;
8246 }
8247 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8248 typedef const int *iptr;
8249 iptr p = 0;
8250 ++p;
8251 }
8252 { /* AIX XL C 1.02.0.0 rejects this saying
8253 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8254 struct s { int j; const int *ap[3]; };
8255 struct s *b; b->j = 5;
8256 }
8257 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8258 const int foo = 10;
8259 if (!foo) return 0;
8260 }
8261 return !x[0] && !zero.x;
8262 #endif
8264 ;
8265 return 0;
8266 }
8267 _ACEOF
8268 rm -f conftest.$ac_objext
8269 if { (ac_try="$ac_compile"
8270 case "(($ac_try" in
8271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272 *) ac_try_echo=$ac_try;;
8273 esac
8274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275 (eval "$ac_compile") 2>conftest.er1
8276 ac_status=$?
8277 grep -v '^ *+' conftest.er1 >conftest.err
8278 rm -f conftest.er1
8279 cat conftest.err >&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); } &&
8282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8283 { (case "(($ac_try" in
8284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8285 *) ac_try_echo=$ac_try;;
8286 esac
8287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8288 (eval "$ac_try") 2>&5
8289 ac_status=$?
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); }; } &&
8292 { ac_try='test -s conftest.$ac_objext'
8293 { (case "(($ac_try" in
8294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295 *) ac_try_echo=$ac_try;;
8296 esac
8297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8298 (eval "$ac_try") 2>&5
8299 ac_status=$?
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; }; then
8302 ac_cv_c_const=yes
8303 else
8304 echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.$ac_ext >&5
8307 ac_cv_c_const=no
8308 fi
8310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8311 fi
8312 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8313 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8314 if test $ac_cv_c_const = no; then
8316 cat >>confdefs.h <<\_ACEOF
8317 #define const
8318 _ACEOF
8320 fi
8327 ac_header_dirent=no
8328 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8329 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8330 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8331 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 else
8335 cat >conftest.$ac_ext <<_ACEOF
8336 /* confdefs.h. */
8337 _ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h. */
8341 #include <sys/types.h>
8342 #include <$ac_hdr>
8344 int
8345 main ()
8346 {
8347 if ((DIR *) 0)
8348 return 0;
8349 ;
8350 return 0;
8351 }
8352 _ACEOF
8353 rm -f conftest.$ac_objext
8354 if { (ac_try="$ac_compile"
8355 case "(($ac_try" in
8356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357 *) ac_try_echo=$ac_try;;
8358 esac
8359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8360 (eval "$ac_compile") 2>conftest.er1
8361 ac_status=$?
8362 grep -v '^ *+' conftest.er1 >conftest.err
8363 rm -f conftest.er1
8364 cat conftest.err >&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } &&
8367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8368 { (case "(($ac_try" in
8369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370 *) ac_try_echo=$ac_try;;
8371 esac
8372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373 (eval "$ac_try") 2>&5
8374 ac_status=$?
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; } &&
8377 { ac_try='test -s conftest.$ac_objext'
8378 { (case "(($ac_try" in
8379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380 *) ac_try_echo=$ac_try;;
8381 esac
8382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383 (eval "$ac_try") 2>&5
8384 ac_status=$?
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; }; then
8387 eval "$as_ac_Header=yes"
8388 else
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8392 eval "$as_ac_Header=no"
8393 fi
8395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8396 fi
8397 ac_res=`eval echo '${'$as_ac_Header'}'`
8398 { echo "$as_me:$LINENO: result: $ac_res" >&5
8399 echo "${ECHO_T}$ac_res" >&6; }
8400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8401 cat >>confdefs.h <<_ACEOF
8402 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8403 _ACEOF
8405 ac_header_dirent=$ac_hdr; break
8406 fi
8408 done
8409 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8410 if test $ac_header_dirent = dirent.h; then
8411 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8412 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8413 if test "${ac_cv_search_opendir+set}" = set; then
8414 echo $ECHO_N "(cached) $ECHO_C" >&6
8415 else
8416 ac_func_search_save_LIBS=$LIBS
8417 cat >conftest.$ac_ext <<_ACEOF
8418 /* confdefs.h. */
8419 _ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h. */
8424 /* Override any GCC internal prototype to avoid an error.
8425 Use char because int might match the return type of a GCC
8426 builtin and then its argument prototype would still apply. */
8427 #ifdef __cplusplus
8428 extern "C"
8429 #endif
8430 char opendir ();
8431 int
8432 main ()
8433 {
8434 return opendir ();
8435 ;
8436 return 0;
8437 }
8438 _ACEOF
8439 for ac_lib in '' dir; do
8440 if test -z "$ac_lib"; then
8441 ac_res="none required"
8442 else
8443 ac_res=-l$ac_lib
8444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8445 fi
8446 rm -f conftest.$ac_objext conftest$ac_exeext
8447 if { (ac_try="$ac_link"
8448 case "(($ac_try" in
8449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450 *) ac_try_echo=$ac_try;;
8451 esac
8452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453 (eval "$ac_link") 2>conftest.er1
8454 ac_status=$?
8455 grep -v '^ *+' conftest.er1 >conftest.err
8456 rm -f conftest.er1
8457 cat conftest.err >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } &&
8460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8461 { (case "(($ac_try" in
8462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463 *) ac_try_echo=$ac_try;;
8464 esac
8465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466 (eval "$ac_try") 2>&5
8467 ac_status=$?
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; } &&
8470 { ac_try='test -s conftest$ac_exeext'
8471 { (case "(($ac_try" in
8472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473 *) ac_try_echo=$ac_try;;
8474 esac
8475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476 (eval "$ac_try") 2>&5
8477 ac_status=$?
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }; }; then
8480 ac_cv_search_opendir=$ac_res
8481 else
8482 echo "$as_me: failed program was:" >&5
8483 sed 's/^/| /' conftest.$ac_ext >&5
8486 fi
8488 rm -f core conftest.err conftest.$ac_objext \
8489 conftest$ac_exeext
8490 if test "${ac_cv_search_opendir+set}" = set; then
8491 break
8492 fi
8493 done
8494 if test "${ac_cv_search_opendir+set}" = set; then
8495 :
8496 else
8497 ac_cv_search_opendir=no
8498 fi
8499 rm conftest.$ac_ext
8500 LIBS=$ac_func_search_save_LIBS
8501 fi
8502 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8503 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8504 ac_res=$ac_cv_search_opendir
8505 if test "$ac_res" != no; then
8506 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8508 fi
8510 else
8511 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8512 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8513 if test "${ac_cv_search_opendir+set}" = set; then
8514 echo $ECHO_N "(cached) $ECHO_C" >&6
8515 else
8516 ac_func_search_save_LIBS=$LIBS
8517 cat >conftest.$ac_ext <<_ACEOF
8518 /* confdefs.h. */
8519 _ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8524 /* Override any GCC internal prototype to avoid an error.
8525 Use char because int might match the return type of a GCC
8526 builtin and then its argument prototype would still apply. */
8527 #ifdef __cplusplus
8528 extern "C"
8529 #endif
8530 char opendir ();
8531 int
8532 main ()
8533 {
8534 return opendir ();
8535 ;
8536 return 0;
8537 }
8538 _ACEOF
8539 for ac_lib in '' x; do
8540 if test -z "$ac_lib"; then
8541 ac_res="none required"
8542 else
8543 ac_res=-l$ac_lib
8544 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8545 fi
8546 rm -f conftest.$ac_objext conftest$ac_exeext
8547 if { (ac_try="$ac_link"
8548 case "(($ac_try" in
8549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550 *) ac_try_echo=$ac_try;;
8551 esac
8552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553 (eval "$ac_link") 2>conftest.er1
8554 ac_status=$?
8555 grep -v '^ *+' conftest.er1 >conftest.err
8556 rm -f conftest.er1
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } &&
8560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8561 { (case "(($ac_try" in
8562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8563 *) ac_try_echo=$ac_try;;
8564 esac
8565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8566 (eval "$ac_try") 2>&5
8567 ac_status=$?
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); }; } &&
8570 { ac_try='test -s conftest$ac_exeext'
8571 { (case "(($ac_try" in
8572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8573 *) ac_try_echo=$ac_try;;
8574 esac
8575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8576 (eval "$ac_try") 2>&5
8577 ac_status=$?
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; }; then
8580 ac_cv_search_opendir=$ac_res
8581 else
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8586 fi
8588 rm -f core conftest.err conftest.$ac_objext \
8589 conftest$ac_exeext
8590 if test "${ac_cv_search_opendir+set}" = set; then
8591 break
8592 fi
8593 done
8594 if test "${ac_cv_search_opendir+set}" = set; then
8595 :
8596 else
8597 ac_cv_search_opendir=no
8598 fi
8599 rm conftest.$ac_ext
8600 LIBS=$ac_func_search_save_LIBS
8601 fi
8602 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8603 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8604 ac_res=$ac_cv_search_opendir
8605 if test "$ac_res" != no; then
8606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8608 fi
8610 fi
8613 for ac_header in dlfcn.h
8614 do
8615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8621 fi
8622 ac_res=`eval echo '${'$as_ac_Header'}'`
8623 { echo "$as_me:$LINENO: result: $ac_res" >&5
8624 echo "${ECHO_T}$ac_res" >&6; }
8625 else
8626 # Is the header compilable?
8627 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8629 cat >conftest.$ac_ext <<_ACEOF
8630 /* confdefs.h. */
8631 _ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h. */
8635 $ac_includes_default
8636 #include <$ac_header>
8637 _ACEOF
8638 rm -f conftest.$ac_objext
8639 if { (ac_try="$ac_compile"
8640 case "(($ac_try" in
8641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8642 *) ac_try_echo=$ac_try;;
8643 esac
8644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8645 (eval "$ac_compile") 2>conftest.er1
8646 ac_status=$?
8647 grep -v '^ *+' conftest.er1 >conftest.err
8648 rm -f conftest.er1
8649 cat conftest.err >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); } &&
8652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8653 { (case "(($ac_try" in
8654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8655 *) ac_try_echo=$ac_try;;
8656 esac
8657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8658 (eval "$ac_try") 2>&5
8659 ac_status=$?
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); }; } &&
8662 { ac_try='test -s conftest.$ac_objext'
8663 { (case "(($ac_try" in
8664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8665 *) ac_try_echo=$ac_try;;
8666 esac
8667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8668 (eval "$ac_try") 2>&5
8669 ac_status=$?
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; }; then
8672 ac_header_compiler=yes
8673 else
8674 echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8677 ac_header_compiler=no
8678 fi
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8682 echo "${ECHO_T}$ac_header_compiler" >&6; }
8684 # Is the header present?
8685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8687 cat >conftest.$ac_ext <<_ACEOF
8688 /* confdefs.h. */
8689 _ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8693 #include <$ac_header>
8694 _ACEOF
8695 if { (ac_try="$ac_cpp conftest.$ac_ext"
8696 case "(($ac_try" in
8697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8698 *) ac_try_echo=$ac_try;;
8699 esac
8700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8702 ac_status=$?
8703 grep -v '^ *+' conftest.er1 >conftest.err
8704 rm -f conftest.er1
8705 cat conftest.err >&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); } >/dev/null; then
8708 if test -s conftest.err; then
8709 ac_cpp_err=$ac_c_preproc_warn_flag
8710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8711 else
8712 ac_cpp_err=
8713 fi
8714 else
8715 ac_cpp_err=yes
8716 fi
8717 if test -z "$ac_cpp_err"; then
8718 ac_header_preproc=yes
8719 else
8720 echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8723 ac_header_preproc=no
8724 fi
8726 rm -f conftest.err conftest.$ac_ext
8727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8728 echo "${ECHO_T}$ac_header_preproc" >&6; }
8730 # So? What about this header?
8731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8732 yes:no: )
8733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8737 ac_header_preproc=yes
8738 ;;
8739 no:yes:* )
8740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8752 ( cat <<\_ASBOX
8753 ## ------------------------------------ ##
8754 ## Report this to http://llvm.org/bugs/ ##
8755 ## ------------------------------------ ##
8756 _ASBOX
8757 ) | sed "s/^/$as_me: WARNING: /" >&2
8758 ;;
8759 esac
8760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8764 else
8765 eval "$as_ac_Header=\$ac_header_preproc"
8766 fi
8767 ac_res=`eval echo '${'$as_ac_Header'}'`
8768 { echo "$as_me:$LINENO: result: $ac_res" >&5
8769 echo "${ECHO_T}$ac_res" >&6; }
8771 fi
8772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8773 cat >>confdefs.h <<_ACEOF
8774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8775 _ACEOF
8777 fi
8779 done
8781 # Check whether --enable-ltdl-install was given.
8782 if test "${enable_ltdl_install+set}" = set; then
8783 enableval=$enable_ltdl_install;
8784 fi
8789 if test x"${enable_ltdl_install-no}" != xno; then
8790 INSTALL_LTDL_TRUE=
8791 INSTALL_LTDL_FALSE='#'
8792 else
8793 INSTALL_LTDL_TRUE='#'
8794 INSTALL_LTDL_FALSE=
8795 fi
8799 if test x"${enable_ltdl_convenience-no}" != xno; then
8800 CONVENIENCE_LTDL_TRUE=
8801 CONVENIENCE_LTDL_FALSE='#'
8802 else
8803 CONVENIENCE_LTDL_TRUE='#'
8804 CONVENIENCE_LTDL_FALSE=
8805 fi
8808 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8809 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8810 library_names_spec=
8811 libname_spec='lib$name'
8812 soname_spec=
8813 shrext_cmds=".so"
8814 postinstall_cmds=
8815 postuninstall_cmds=
8816 finish_cmds=
8817 finish_eval=
8818 shlibpath_var=
8819 shlibpath_overrides_runpath=unknown
8820 version_type=none
8821 dynamic_linker="$host_os ld.so"
8822 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8823 if test "$GCC" = yes; then
8824 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8825 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8826 # if the path contains ";" then we assume it to be the separator
8827 # otherwise default to the standard path separator (i.e. ":") - it is
8828 # assumed that no part of a normal pathname contains ";" but that should
8829 # okay in the real world where ";" in dirpaths is itself problematic.
8830 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8831 else
8832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8833 fi
8834 else
8835 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8836 fi
8837 need_lib_prefix=unknown
8838 hardcode_into_libs=no
8840 # when you set need_version to no, make sure it does not cause -set_version
8841 # flags to be left without arguments
8842 need_version=unknown
8844 case $host_os in
8845 aix3*)
8846 version_type=linux
8847 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8848 shlibpath_var=LIBPATH
8850 # AIX 3 has no versioning support, so we append a major version to the name.
8851 soname_spec='${libname}${release}${shared_ext}$major'
8852 ;;
8854 aix4* | aix5*)
8855 version_type=linux
8856 need_lib_prefix=no
8857 need_version=no
8858 hardcode_into_libs=yes
8859 if test "$host_cpu" = ia64; then
8860 # AIX 5 supports IA64
8861 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8862 shlibpath_var=LD_LIBRARY_PATH
8863 else
8864 # With GCC up to 2.95.x, collect2 would create an import file
8865 # for dependence libraries. The import file would start with
8866 # the line `#! .'. This would cause the generated library to
8867 # depend on `.', always an invalid library. This was fixed in
8868 # development snapshots of GCC prior to 3.0.
8869 case $host_os in
8870 aix4 | aix4.[01] | aix4.[01].*)
8871 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8872 echo ' yes '
8873 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8874 :
8875 else
8876 can_build_shared=no
8877 fi
8878 ;;
8879 esac
8880 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8881 # soname into executable. Probably we can add versioning support to
8882 # collect2, so additional links can be useful in future.
8883 if test "$aix_use_runtimelinking" = yes; then
8884 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8885 # instead of lib<name>.a to let people know that these are not
8886 # typical AIX shared libraries.
8887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8888 else
8889 # We preserve .a as extension for shared libraries through AIX4.2
8890 # and later when we are not doing run time linking.
8891 library_names_spec='${libname}${release}.a $libname.a'
8892 soname_spec='${libname}${release}${shared_ext}$major'
8893 fi
8894 shlibpath_var=LIBPATH
8895 fi
8896 ;;
8898 amigaos*)
8899 library_names_spec='$libname.ixlibrary $libname.a'
8900 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8901 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'
8902 ;;
8904 beos*)
8905 library_names_spec='${libname}${shared_ext}'
8906 dynamic_linker="$host_os ld.so"
8907 shlibpath_var=LIBRARY_PATH
8908 ;;
8910 bsdi[45]*)
8911 version_type=linux
8912 need_version=no
8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8914 soname_spec='${libname}${release}${shared_ext}$major'
8915 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8916 shlibpath_var=LD_LIBRARY_PATH
8917 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8918 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8919 # the default ld.so.conf also contains /usr/contrib/lib and
8920 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8921 # libtool to hard-code these into programs
8922 ;;
8924 cygwin* | mingw* | pw32*)
8925 version_type=windows
8926 shrext_cmds=".dll"
8927 need_version=no
8928 need_lib_prefix=no
8930 case $GCC,$host_os in
8931 yes,cygwin* | yes,mingw* | yes,pw32*)
8932 library_names_spec='$libname.dll.a'
8933 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8934 postinstall_cmds='base_file=`basename \${file}`~
8935 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8936 dldir=$destdir/`dirname \$dlpath`~
8937 test -d \$dldir || mkdir -p \$dldir~
8938 $install_prog $dir/$dlname \$dldir/$dlname~
8939 chmod a+x \$dldir/$dlname'
8940 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8941 dlpath=$dir/\$dldll~
8942 $rm \$dlpath'
8943 shlibpath_overrides_runpath=yes
8945 case $host_os in
8946 cygwin*)
8947 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8948 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8949 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8950 ;;
8951 mingw*)
8952 # MinGW DLLs use traditional 'lib' prefix
8953 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8954 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8955 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8956 # It is most probably a Windows format PATH printed by
8957 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8958 # path with ; separators, and with drive letters. We can handle the
8959 # drive letters (cygwin fileutils understands them), so leave them,
8960 # especially as we might pass files found there to a mingw objdump,
8961 # which wouldn't understand a cygwinified path. Ahh.
8962 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8963 else
8964 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8965 fi
8966 ;;
8967 pw32*)
8968 # pw32 DLLs use 'pw' prefix rather than 'lib'
8969 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8970 ;;
8971 esac
8972 ;;
8974 *)
8975 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8976 ;;
8977 esac
8978 dynamic_linker='Win32 ld.exe'
8979 # FIXME: first we should search . and the directory the executable is in
8980 shlibpath_var=PATH
8981 ;;
8983 darwin* | rhapsody*)
8984 dynamic_linker="$host_os dyld"
8985 version_type=darwin
8986 need_lib_prefix=no
8987 need_version=no
8988 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8989 soname_spec='${libname}${release}${major}$shared_ext'
8990 shlibpath_overrides_runpath=yes
8991 shlibpath_var=DYLD_LIBRARY_PATH
8992 shrext_cmds='.dylib'
8993 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8994 if test "$GCC" = yes; then
8995 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"`
8996 else
8997 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8998 fi
8999 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9000 ;;
9002 dgux*)
9003 version_type=linux
9004 need_lib_prefix=no
9005 need_version=no
9006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9007 soname_spec='${libname}${release}${shared_ext}$major'
9008 shlibpath_var=LD_LIBRARY_PATH
9009 ;;
9011 freebsd1.*)
9012 dynamic_linker=no
9013 ;;
9015 kfreebsd*-gnu)
9016 version_type=linux
9017 need_lib_prefix=no
9018 need_version=no
9019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9020 soname_spec='${libname}${release}${shared_ext}$major'
9021 shlibpath_var=LD_LIBRARY_PATH
9022 shlibpath_overrides_runpath=no
9023 hardcode_into_libs=yes
9024 dynamic_linker='GNU ld.so'
9025 ;;
9027 freebsd* | dragonfly*)
9028 # DragonFly does not have aout. When/if they implement a new
9029 # versioning mechanism, adjust this.
9030 if test -x /usr/bin/objformat; then
9031 objformat=`/usr/bin/objformat`
9032 else
9033 case $host_os in
9034 freebsd[123].*) objformat=aout ;;
9035 *) objformat=elf ;;
9036 esac
9037 fi
9038 version_type=freebsd-$objformat
9039 case $version_type in
9040 freebsd-elf*)
9041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9042 need_version=no
9043 need_lib_prefix=no
9044 ;;
9045 freebsd-*)
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9047 need_version=yes
9048 ;;
9049 esac
9050 shlibpath_var=LD_LIBRARY_PATH
9051 case $host_os in
9052 freebsd2.*)
9053 shlibpath_overrides_runpath=yes
9054 ;;
9055 freebsd3.[01]* | freebsdelf3.[01]*)
9056 shlibpath_overrides_runpath=yes
9057 hardcode_into_libs=yes
9058 ;;
9059 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9060 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9061 shlibpath_overrides_runpath=no
9062 hardcode_into_libs=yes
9063 ;;
9064 freebsd*) # from 4.6 on
9065 shlibpath_overrides_runpath=yes
9066 hardcode_into_libs=yes
9067 ;;
9068 esac
9069 ;;
9071 gnu*)
9072 version_type=linux
9073 need_lib_prefix=no
9074 need_version=no
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9076 soname_spec='${libname}${release}${shared_ext}$major'
9077 shlibpath_var=LD_LIBRARY_PATH
9078 hardcode_into_libs=yes
9079 ;;
9081 hpux9* | hpux10* | hpux11*)
9082 # Give a soname corresponding to the major version so that dld.sl refuses to
9083 # link against other versions.
9084 version_type=sunos
9085 need_lib_prefix=no
9086 need_version=no
9087 case $host_cpu in
9088 ia64*)
9089 shrext_cmds='.so'
9090 hardcode_into_libs=yes
9091 dynamic_linker="$host_os dld.so"
9092 shlibpath_var=LD_LIBRARY_PATH
9093 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9096 if test "X$HPUX_IA64_MODE" = X32; then
9097 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9098 else
9099 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9100 fi
9101 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9102 ;;
9103 hppa*64*)
9104 shrext_cmds='.sl'
9105 hardcode_into_libs=yes
9106 dynamic_linker="$host_os dld.sl"
9107 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9108 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9110 soname_spec='${libname}${release}${shared_ext}$major'
9111 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9113 ;;
9114 *)
9115 shrext_cmds='.sl'
9116 dynamic_linker="$host_os dld.sl"
9117 shlibpath_var=SHLIB_PATH
9118 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9120 soname_spec='${libname}${release}${shared_ext}$major'
9121 ;;
9122 esac
9123 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9124 postinstall_cmds='chmod 555 $lib'
9125 ;;
9127 interix3*)
9128 version_type=linux
9129 need_lib_prefix=no
9130 need_version=no
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9132 soname_spec='${libname}${release}${shared_ext}$major'
9133 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9134 shlibpath_var=LD_LIBRARY_PATH
9135 shlibpath_overrides_runpath=no
9136 hardcode_into_libs=yes
9137 ;;
9139 irix5* | irix6* | nonstopux*)
9140 case $host_os in
9141 nonstopux*) version_type=nonstopux ;;
9142 *)
9143 if test "$lt_cv_prog_gnu_ld" = yes; then
9144 version_type=linux
9145 else
9146 version_type=irix
9147 fi ;;
9148 esac
9149 need_lib_prefix=no
9150 need_version=no
9151 soname_spec='${libname}${release}${shared_ext}$major'
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9153 case $host_os in
9154 irix5* | nonstopux*)
9155 libsuff= shlibsuff=
9156 ;;
9157 *)
9158 case $LD in # libtool.m4 will add one of these switches to LD
9159 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9160 libsuff= shlibsuff= libmagic=32-bit;;
9161 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9162 libsuff=32 shlibsuff=N32 libmagic=N32;;
9163 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9164 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9165 *) libsuff= shlibsuff= libmagic=never-match;;
9166 esac
9167 ;;
9168 esac
9169 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9170 shlibpath_overrides_runpath=no
9171 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9172 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9173 hardcode_into_libs=yes
9174 ;;
9176 # No shared lib support for Linux oldld, aout, or coff.
9177 linux*oldld* | linux*aout* | linux*coff*)
9178 dynamic_linker=no
9179 ;;
9181 # This must be Linux ELF.
9182 linux*)
9183 version_type=linux
9184 need_lib_prefix=no
9185 need_version=no
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187 soname_spec='${libname}${release}${shared_ext}$major'
9188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9189 shlibpath_var=LD_LIBRARY_PATH
9190 shlibpath_overrides_runpath=no
9191 # This implies no fast_install, which is unacceptable.
9192 # Some rework will be needed to allow for fast_install
9193 # before this can be enabled.
9194 hardcode_into_libs=yes
9196 # Append ld.so.conf contents to the search path
9197 if test -f /etc/ld.so.conf; then
9198 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' ' '`
9199 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9200 fi
9202 # We used to test for /lib/ld.so.1 and disable shared libraries on
9203 # powerpc, because MkLinux only supported shared libraries with the
9204 # GNU dynamic linker. Since this was broken with cross compilers,
9205 # most powerpc-linux boxes support dynamic linking these days and
9206 # people can always --disable-shared, the test was removed, and we
9207 # assume the GNU/Linux dynamic linker is in use.
9208 dynamic_linker='GNU/Linux ld.so'
9209 ;;
9211 knetbsd*-gnu)
9212 version_type=linux
9213 need_lib_prefix=no
9214 need_version=no
9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9216 soname_spec='${libname}${release}${shared_ext}$major'
9217 shlibpath_var=LD_LIBRARY_PATH
9218 shlibpath_overrides_runpath=no
9219 hardcode_into_libs=yes
9220 dynamic_linker='GNU ld.so'
9221 ;;
9223 netbsd*)
9224 version_type=sunos
9225 need_lib_prefix=no
9226 need_version=no
9227 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9230 dynamic_linker='NetBSD (a.out) ld.so'
9231 else
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9233 soname_spec='${libname}${release}${shared_ext}$major'
9234 dynamic_linker='NetBSD ld.elf_so'
9235 fi
9236 shlibpath_var=LD_LIBRARY_PATH
9237 shlibpath_overrides_runpath=yes
9238 hardcode_into_libs=yes
9239 ;;
9241 newsos6)
9242 version_type=linux
9243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9244 shlibpath_var=LD_LIBRARY_PATH
9245 shlibpath_overrides_runpath=yes
9246 ;;
9248 nto-qnx*)
9249 version_type=linux
9250 need_lib_prefix=no
9251 need_version=no
9252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9253 soname_spec='${libname}${release}${shared_ext}$major'
9254 shlibpath_var=LD_LIBRARY_PATH
9255 shlibpath_overrides_runpath=yes
9256 ;;
9258 openbsd* | bitrig*)
9259 version_type=sunos
9260 sys_lib_dlsearch_path_spec="/usr/lib"
9261 need_lib_prefix=no
9262 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9263 case $host_os in
9264 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9265 *) need_version=no ;;
9266 esac
9267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9269 shlibpath_var=LD_LIBRARY_PATH
9270 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9271 case $host_os in
9272 openbsd2.[89] | openbsd2.[89].*)
9273 shlibpath_overrides_runpath=no
9274 ;;
9275 *)
9276 shlibpath_overrides_runpath=yes
9277 ;;
9278 esac
9279 else
9280 shlibpath_overrides_runpath=yes
9281 fi
9282 ;;
9284 os2*)
9285 libname_spec='$name'
9286 shrext_cmds=".dll"
9287 need_lib_prefix=no
9288 library_names_spec='$libname${shared_ext} $libname.a'
9289 dynamic_linker='OS/2 ld.exe'
9290 shlibpath_var=LIBPATH
9291 ;;
9293 osf3* | osf4* | osf5*)
9294 version_type=osf
9295 need_lib_prefix=no
9296 need_version=no
9297 soname_spec='${libname}${release}${shared_ext}$major'
9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9299 shlibpath_var=LD_LIBRARY_PATH
9300 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9301 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9302 ;;
9304 solaris*)
9305 version_type=linux
9306 need_lib_prefix=no
9307 need_version=no
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309 soname_spec='${libname}${release}${shared_ext}$major'
9310 shlibpath_var=LD_LIBRARY_PATH
9311 shlibpath_overrides_runpath=yes
9312 hardcode_into_libs=yes
9313 # ldd complains unless libraries are executable
9314 postinstall_cmds='chmod +x $lib'
9315 ;;
9317 sunos4*)
9318 version_type=sunos
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9320 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9321 shlibpath_var=LD_LIBRARY_PATH
9322 shlibpath_overrides_runpath=yes
9323 if test "$with_gnu_ld" = yes; then
9324 need_lib_prefix=no
9325 fi
9326 need_version=yes
9327 ;;
9329 sysv4 | sysv4.3*)
9330 version_type=linux
9331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9332 soname_spec='${libname}${release}${shared_ext}$major'
9333 shlibpath_var=LD_LIBRARY_PATH
9334 case $host_vendor in
9335 sni)
9336 shlibpath_overrides_runpath=no
9337 need_lib_prefix=no
9338 export_dynamic_flag_spec='${wl}-Blargedynsym'
9339 runpath_var=LD_RUN_PATH
9340 ;;
9341 siemens)
9342 need_lib_prefix=no
9343 ;;
9344 motorola)
9345 need_lib_prefix=no
9346 need_version=no
9347 shlibpath_overrides_runpath=no
9348 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9349 ;;
9350 esac
9351 ;;
9353 sysv4*MP*)
9354 if test -d /usr/nec ;then
9355 version_type=linux
9356 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9357 soname_spec='$libname${shared_ext}.$major'
9358 shlibpath_var=LD_LIBRARY_PATH
9359 fi
9360 ;;
9362 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9363 version_type=freebsd-elf
9364 need_lib_prefix=no
9365 need_version=no
9366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9367 soname_spec='${libname}${release}${shared_ext}$major'
9368 shlibpath_var=LD_LIBRARY_PATH
9369 hardcode_into_libs=yes
9370 if test "$with_gnu_ld" = yes; then
9371 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9372 shlibpath_overrides_runpath=no
9373 else
9374 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9375 shlibpath_overrides_runpath=yes
9376 case $host_os in
9377 sco3.2v5*)
9378 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9379 ;;
9380 esac
9381 fi
9382 sys_lib_dlsearch_path_spec='/usr/lib'
9383 ;;
9385 uts4*)
9386 version_type=linux
9387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9388 soname_spec='${libname}${release}${shared_ext}$major'
9389 shlibpath_var=LD_LIBRARY_PATH
9390 ;;
9392 *)
9393 dynamic_linker=no
9394 ;;
9395 esac
9396 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9397 echo "${ECHO_T}$dynamic_linker" >&6; }
9398 test "$dynamic_linker" = no && can_build_shared=no
9400 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9401 if test "$GCC" = yes; then
9402 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9403 fi
9406 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9407 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9408 if test "${libltdl_cv_shlibext+set}" = set; then
9409 echo $ECHO_N "(cached) $ECHO_C" >&6
9410 else
9412 module=yes
9413 eval libltdl_cv_shlibext=$shrext_cmds
9415 fi
9416 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9417 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9418 if test -n "$libltdl_cv_shlibext"; then
9420 cat >>confdefs.h <<_ACEOF
9421 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9422 _ACEOF
9424 fi
9427 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9428 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9429 if test "${libltdl_cv_sys_search_path+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9431 else
9432 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9433 fi
9434 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9435 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9436 if test -n "$libltdl_cv_sys_search_path"; then
9437 sys_search_path=
9438 for dir in $libltdl_cv_sys_search_path; do
9439 if test -z "$sys_search_path"; then
9440 sys_search_path="$dir"
9441 else
9442 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9443 fi
9444 done
9446 cat >>confdefs.h <<_ACEOF
9447 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9448 _ACEOF
9450 fi
9452 { echo "$as_me:$LINENO: checking for objdir" >&5
9453 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9454 if test "${libltdl_cv_objdir+set}" = set; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9456 else
9457 libltdl_cv_objdir="$objdir"
9458 if test -n "$objdir"; then
9459 :
9460 else
9461 rm -f .libs 2>/dev/null
9462 mkdir .libs 2>/dev/null
9463 if test -d .libs; then
9464 libltdl_cv_objdir=.libs
9465 else
9466 # MS-DOS does not allow filenames that begin with a dot.
9467 libltdl_cv_objdir=_libs
9468 fi
9469 rmdir .libs 2>/dev/null
9470 fi
9472 fi
9473 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9474 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9476 cat >>confdefs.h <<_ACEOF
9477 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9478 _ACEOF
9485 # Check for command to grab the raw symbol name followed by C symbol from nm.
9486 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9487 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9488 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9490 else
9492 # These are sane defaults that work on at least a few old systems.
9493 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9495 # Character class describing NM global symbol codes.
9496 symcode='[BCDEGRST]'
9498 # Regexp to match symbols that can be accessed directly from C.
9499 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9501 # Transform an extracted symbol line into a proper C declaration
9502 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9504 # Transform an extracted symbol line into symbol name and symbol address
9505 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'"
9507 # Define system-specific variables.
9508 case $host_os in
9509 aix*)
9510 symcode='[BCDT]'
9511 ;;
9512 cygwin* | mingw* | pw32*)
9513 symcode='[ABCDGISTW]'
9514 ;;
9515 hpux*) # Its linker distinguishes data from code symbols
9516 if test "$host_cpu" = ia64; then
9517 symcode='[ABCDEGRST]'
9518 fi
9519 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9520 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'"
9521 ;;
9522 linux*)
9523 if test "$host_cpu" = ia64; then
9524 symcode='[ABCDGIRSTW]'
9525 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9526 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'"
9527 fi
9528 ;;
9529 irix* | nonstopux*)
9530 symcode='[BCDEGRST]'
9531 ;;
9532 osf*)
9533 symcode='[BCDEGQRST]'
9534 ;;
9535 solaris*)
9536 symcode='[BDRT]'
9537 ;;
9538 sco3.2v5*)
9539 symcode='[DT]'
9540 ;;
9541 sysv4.2uw2*)
9542 symcode='[DT]'
9543 ;;
9544 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9545 symcode='[ABDT]'
9546 ;;
9547 sysv4)
9548 symcode='[DFNSTU]'
9549 ;;
9550 esac
9552 # Handle CRLF in mingw tool chain
9553 opt_cr=
9554 case $build_os in
9555 mingw*)
9556 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9557 ;;
9558 esac
9560 # If we're using GNU nm, then use its standard symbol codes.
9561 case `$NM -V 2>&1` in
9562 *GNU* | *'with BFD'*)
9563 symcode='[ABCDGIRSTW]' ;;
9564 esac
9566 # Try without a prefix undercore, then with it.
9567 for ac_symprfx in "" "_"; do
9569 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9570 symxfrm="\\1 $ac_symprfx\\2 \\2"
9572 # Write the raw and C identifiers.
9573 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9575 # Check to see that the pipe works correctly.
9576 pipe_works=no
9578 rm -f conftest*
9579 cat > conftest.$ac_ext <<EOF
9580 #ifdef __cplusplus
9581 extern "C" {
9582 #endif
9583 char nm_test_var;
9584 void nm_test_func(){}
9585 #ifdef __cplusplus
9586 }
9587 #endif
9588 int main(){nm_test_var='a';nm_test_func();return(0);}
9589 EOF
9591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9592 (eval $ac_compile) 2>&5
9593 ac_status=$?
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); }; then
9596 # Now try to grab the symbols.
9597 nlist=conftest.nm
9598 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9599 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9600 ac_status=$?
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } && test -s "$nlist"; then
9603 # Try sorting and uniquifying the output.
9604 if sort "$nlist" | uniq > "$nlist"T; then
9605 mv -f "$nlist"T "$nlist"
9606 else
9607 rm -f "$nlist"T
9608 fi
9610 # Make sure that we snagged all the symbols we need.
9611 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9612 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9613 cat <<EOF > conftest.$ac_ext
9614 #ifdef __cplusplus
9615 extern "C" {
9616 #endif
9618 EOF
9619 # Now generate the symbol file.
9620 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9622 cat <<EOF >> conftest.$ac_ext
9623 #if defined (__STDC__) && __STDC__
9624 # define lt_ptr_t void *
9625 #else
9626 # define lt_ptr_t char *
9627 # define const
9628 #endif
9630 /* The mapping between symbol names and symbols. */
9631 const struct {
9632 const char *name;
9633 lt_ptr_t address;
9634 }
9635 lt_preloaded_symbols[] =
9636 {
9637 EOF
9638 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9639 cat <<\EOF >> conftest.$ac_ext
9640 {0, (lt_ptr_t) 0}
9641 };
9643 #ifdef __cplusplus
9644 }
9645 #endif
9646 EOF
9647 # Now try linking the two files.
9648 mv conftest.$ac_objext conftstm.$ac_objext
9649 lt_save_LIBS="$LIBS"
9650 lt_save_CFLAGS="$CFLAGS"
9651 LIBS="conftstm.$ac_objext"
9652 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9654 (eval $ac_link) 2>&5
9655 ac_status=$?
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9658 pipe_works=yes
9659 fi
9660 LIBS="$lt_save_LIBS"
9661 CFLAGS="$lt_save_CFLAGS"
9662 else
9663 echo "cannot find nm_test_func in $nlist" >&5
9664 fi
9665 else
9666 echo "cannot find nm_test_var in $nlist" >&5
9667 fi
9668 else
9669 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9670 fi
9671 else
9672 echo "$progname: failed program was:" >&5
9673 cat conftest.$ac_ext >&5
9674 fi
9675 rm -f conftest* conftst*
9677 # Do not use the global_symbol_pipe unless it works.
9678 if test "$pipe_works" = yes; then
9679 break
9680 else
9681 lt_cv_sys_global_symbol_pipe=
9682 fi
9683 done
9685 fi
9687 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9688 lt_cv_sys_global_symbol_to_cdecl=
9689 fi
9690 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9691 { echo "$as_me:$LINENO: result: failed" >&5
9692 echo "${ECHO_T}failed" >&6; }
9693 else
9694 { echo "$as_me:$LINENO: result: ok" >&5
9695 echo "${ECHO_T}ok" >&6; }
9696 fi
9699 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9700 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9701 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9703 else
9704 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9705 libltdl_cv_preloaded_symbols=yes
9706 else
9707 libltdl_cv_preloaded_symbols=no
9708 fi
9710 fi
9711 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9712 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9713 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9715 cat >>confdefs.h <<\_ACEOF
9716 #define HAVE_PRELOADED_SYMBOLS 1
9717 _ACEOF
9719 fi
9721 LIBADD_DL=
9723 ac_ext=c
9724 ac_cpp='$CPP $CPPFLAGS'
9725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9730 { echo "$as_me:$LINENO: checking for shl_load" >&5
9731 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9732 if test "${ac_cv_func_shl_load+set}" = set; then
9733 echo $ECHO_N "(cached) $ECHO_C" >&6
9734 else
9735 cat >conftest.$ac_ext <<_ACEOF
9736 /* confdefs.h. */
9737 _ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h. */
9741 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9743 #define shl_load innocuous_shl_load
9745 /* System header to define __stub macros and hopefully few prototypes,
9746 which can conflict with char shl_load (); below.
9747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9748 <limits.h> exists even on freestanding compilers. */
9750 #ifdef __STDC__
9751 # include <limits.h>
9752 #else
9753 # include <assert.h>
9754 #endif
9756 #undef shl_load
9758 /* Override any GCC internal prototype to avoid an error.
9759 Use char because int might match the return type of a GCC
9760 builtin and then its argument prototype would still apply. */
9761 #ifdef __cplusplus
9762 extern "C"
9763 #endif
9764 char shl_load ();
9765 /* The GNU C library defines this for functions which it implements
9766 to always fail with ENOSYS. Some functions are actually named
9767 something starting with __ and the normal name is an alias. */
9768 #if defined __stub_shl_load || defined __stub___shl_load
9769 choke me
9770 #endif
9772 int
9773 main ()
9774 {
9775 return shl_load ();
9776 ;
9777 return 0;
9778 }
9779 _ACEOF
9780 rm -f conftest.$ac_objext conftest$ac_exeext
9781 if { (ac_try="$ac_link"
9782 case "(($ac_try" in
9783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9784 *) ac_try_echo=$ac_try;;
9785 esac
9786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9787 (eval "$ac_link") 2>conftest.er1
9788 ac_status=$?
9789 grep -v '^ *+' conftest.er1 >conftest.err
9790 rm -f conftest.er1
9791 cat conftest.err >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); } &&
9794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9795 { (case "(($ac_try" in
9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9798 esac
9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800 (eval "$ac_try") 2>&5
9801 ac_status=$?
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }; } &&
9804 { ac_try='test -s conftest$ac_exeext'
9805 { (case "(($ac_try" in
9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807 *) ac_try_echo=$ac_try;;
9808 esac
9809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810 (eval "$ac_try") 2>&5
9811 ac_status=$?
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; }; then
9814 ac_cv_func_shl_load=yes
9815 else
9816 echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9819 ac_cv_func_shl_load=no
9820 fi
9822 rm -f core conftest.err conftest.$ac_objext \
9823 conftest$ac_exeext conftest.$ac_ext
9824 fi
9825 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9826 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9827 if test $ac_cv_func_shl_load = yes; then
9829 cat >>confdefs.h <<\_ACEOF
9830 #define HAVE_SHL_LOAD 1
9831 _ACEOF
9833 else
9834 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9835 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9836 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 else
9839 ac_check_lib_save_LIBS=$LIBS
9840 LIBS="-ldld $LIBS"
9841 cat >conftest.$ac_ext <<_ACEOF
9842 /* confdefs.h. */
9843 _ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h. */
9848 /* Override any GCC internal prototype to avoid an error.
9849 Use char because int might match the return type of a GCC
9850 builtin and then its argument prototype would still apply. */
9851 #ifdef __cplusplus
9852 extern "C"
9853 #endif
9854 char shl_load ();
9855 int
9856 main ()
9857 {
9858 return shl_load ();
9859 ;
9860 return 0;
9861 }
9862 _ACEOF
9863 rm -f conftest.$ac_objext conftest$ac_exeext
9864 if { (ac_try="$ac_link"
9865 case "(($ac_try" in
9866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867 *) ac_try_echo=$ac_try;;
9868 esac
9869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870 (eval "$ac_link") 2>conftest.er1
9871 ac_status=$?
9872 grep -v '^ *+' conftest.er1 >conftest.err
9873 rm -f conftest.er1
9874 cat conftest.err >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } &&
9877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9878 { (case "(($ac_try" in
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9881 esac
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883 (eval "$ac_try") 2>&5
9884 ac_status=$?
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; } &&
9887 { ac_try='test -s conftest$ac_exeext'
9888 { (case "(($ac_try" in
9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890 *) ac_try_echo=$ac_try;;
9891 esac
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893 (eval "$ac_try") 2>&5
9894 ac_status=$?
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }; then
9897 ac_cv_lib_dld_shl_load=yes
9898 else
9899 echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9902 ac_cv_lib_dld_shl_load=no
9903 fi
9905 rm -f core conftest.err conftest.$ac_objext \
9906 conftest$ac_exeext conftest.$ac_ext
9907 LIBS=$ac_check_lib_save_LIBS
9908 fi
9909 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9910 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9911 if test $ac_cv_lib_dld_shl_load = yes; then
9913 cat >>confdefs.h <<\_ACEOF
9914 #define HAVE_SHL_LOAD 1
9915 _ACEOF
9917 LIBADD_DL="$LIBADD_DL -ldld"
9918 else
9919 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9920 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9921 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9923 else
9924 ac_check_lib_save_LIBS=$LIBS
9925 LIBS="-ldl $LIBS"
9926 cat >conftest.$ac_ext <<_ACEOF
9927 /* confdefs.h. */
9928 _ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h. */
9933 /* Override any GCC internal prototype to avoid an error.
9934 Use char because int might match the return type of a GCC
9935 builtin and then its argument prototype would still apply. */
9936 #ifdef __cplusplus
9937 extern "C"
9938 #endif
9939 char dlopen ();
9940 int
9941 main ()
9942 {
9943 return dlopen ();
9944 ;
9945 return 0;
9946 }
9947 _ACEOF
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (ac_try="$ac_link"
9950 case "(($ac_try" in
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9953 esac
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_link") 2>conftest.er1
9956 ac_status=$?
9957 grep -v '^ *+' conftest.er1 >conftest.err
9958 rm -f conftest.er1
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } &&
9962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9963 { (case "(($ac_try" in
9964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965 *) ac_try_echo=$ac_try;;
9966 esac
9967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968 (eval "$ac_try") 2>&5
9969 ac_status=$?
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
9972 { ac_try='test -s conftest$ac_exeext'
9973 { (case "(($ac_try" in
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9976 esac
9977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978 (eval "$ac_try") 2>&5
9979 ac_status=$?
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; }; then
9982 ac_cv_lib_dl_dlopen=yes
9983 else
9984 echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9987 ac_cv_lib_dl_dlopen=no
9988 fi
9990 rm -f core conftest.err conftest.$ac_objext \
9991 conftest$ac_exeext conftest.$ac_ext
9992 LIBS=$ac_check_lib_save_LIBS
9993 fi
9994 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9995 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9996 if test $ac_cv_lib_dl_dlopen = yes; then
9998 cat >>confdefs.h <<\_ACEOF
9999 #define HAVE_LIBDL 1
10000 _ACEOF
10002 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10003 else
10004 cat >conftest.$ac_ext <<_ACEOF
10005 /* confdefs.h. */
10006 _ACEOF
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h. */
10010 #if HAVE_DLFCN_H
10011 # include <dlfcn.h>
10012 #endif
10014 int
10015 main ()
10016 {
10017 dlopen(0, 0);
10018 ;
10019 return 0;
10020 }
10021 _ACEOF
10022 rm -f conftest.$ac_objext conftest$ac_exeext
10023 if { (ac_try="$ac_link"
10024 case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10027 esac
10028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_link") 2>conftest.er1
10030 ac_status=$?
10031 grep -v '^ *+' conftest.er1 >conftest.err
10032 rm -f conftest.er1
10033 cat conftest.err >&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } &&
10036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10037 { (case "(($ac_try" in
10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10040 esac
10041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042 (eval "$ac_try") 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; } &&
10046 { ac_try='test -s conftest$ac_exeext'
10047 { (case "(($ac_try" in
10048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10049 *) ac_try_echo=$ac_try;;
10050 esac
10051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10052 (eval "$ac_try") 2>&5
10053 ac_status=$?
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; }; then
10057 cat >>confdefs.h <<\_ACEOF
10058 #define HAVE_LIBDL 1
10059 _ACEOF
10060 libltdl_cv_func_dlopen="yes"
10061 else
10062 echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10065 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10066 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10067 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10068 echo $ECHO_N "(cached) $ECHO_C" >&6
10069 else
10070 ac_check_lib_save_LIBS=$LIBS
10071 LIBS="-lsvld $LIBS"
10072 cat >conftest.$ac_ext <<_ACEOF
10073 /* confdefs.h. */
10074 _ACEOF
10075 cat confdefs.h >>conftest.$ac_ext
10076 cat >>conftest.$ac_ext <<_ACEOF
10077 /* end confdefs.h. */
10079 /* Override any GCC internal prototype to avoid an error.
10080 Use char because int might match the return type of a GCC
10081 builtin and then its argument prototype would still apply. */
10082 #ifdef __cplusplus
10083 extern "C"
10084 #endif
10085 char dlopen ();
10086 int
10087 main ()
10088 {
10089 return dlopen ();
10090 ;
10091 return 0;
10092 }
10093 _ACEOF
10094 rm -f conftest.$ac_objext conftest$ac_exeext
10095 if { (ac_try="$ac_link"
10096 case "(($ac_try" in
10097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098 *) ac_try_echo=$ac_try;;
10099 esac
10100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101 (eval "$ac_link") 2>conftest.er1
10102 ac_status=$?
10103 grep -v '^ *+' conftest.er1 >conftest.err
10104 rm -f conftest.er1
10105 cat conftest.err >&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } &&
10108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10109 { (case "(($ac_try" in
10110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111 *) ac_try_echo=$ac_try;;
10112 esac
10113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114 (eval "$ac_try") 2>&5
10115 ac_status=$?
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); }; } &&
10118 { ac_try='test -s conftest$ac_exeext'
10119 { (case "(($ac_try" in
10120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10121 *) ac_try_echo=$ac_try;;
10122 esac
10123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10124 (eval "$ac_try") 2>&5
10125 ac_status=$?
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; }; then
10128 ac_cv_lib_svld_dlopen=yes
10129 else
10130 echo "$as_me: failed program was:" >&5
10131 sed 's/^/| /' conftest.$ac_ext >&5
10133 ac_cv_lib_svld_dlopen=no
10134 fi
10136 rm -f core conftest.err conftest.$ac_objext \
10137 conftest$ac_exeext conftest.$ac_ext
10138 LIBS=$ac_check_lib_save_LIBS
10139 fi
10140 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10141 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10142 if test $ac_cv_lib_svld_dlopen = yes; then
10144 cat >>confdefs.h <<\_ACEOF
10145 #define HAVE_LIBDL 1
10146 _ACEOF
10148 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10149 else
10150 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10151 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10152 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10153 echo $ECHO_N "(cached) $ECHO_C" >&6
10154 else
10155 ac_check_lib_save_LIBS=$LIBS
10156 LIBS="-ldld $LIBS"
10157 cat >conftest.$ac_ext <<_ACEOF
10158 /* confdefs.h. */
10159 _ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h. */
10164 /* Override any GCC internal prototype to avoid an error.
10165 Use char because int might match the return type of a GCC
10166 builtin and then its argument prototype would still apply. */
10167 #ifdef __cplusplus
10168 extern "C"
10169 #endif
10170 char dld_link ();
10171 int
10172 main ()
10173 {
10174 return dld_link ();
10175 ;
10176 return 0;
10177 }
10178 _ACEOF
10179 rm -f conftest.$ac_objext conftest$ac_exeext
10180 if { (ac_try="$ac_link"
10181 case "(($ac_try" in
10182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183 *) ac_try_echo=$ac_try;;
10184 esac
10185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186 (eval "$ac_link") 2>conftest.er1
10187 ac_status=$?
10188 grep -v '^ *+' conftest.er1 >conftest.err
10189 rm -f conftest.er1
10190 cat conftest.err >&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } &&
10193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10194 { (case "(($ac_try" in
10195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196 *) ac_try_echo=$ac_try;;
10197 esac
10198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199 (eval "$ac_try") 2>&5
10200 ac_status=$?
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); }; } &&
10203 { ac_try='test -s conftest$ac_exeext'
10204 { (case "(($ac_try" in
10205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206 *) ac_try_echo=$ac_try;;
10207 esac
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_try") 2>&5
10210 ac_status=$?
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; }; then
10213 ac_cv_lib_dld_dld_link=yes
10214 else
10215 echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10218 ac_cv_lib_dld_dld_link=no
10219 fi
10221 rm -f core conftest.err conftest.$ac_objext \
10222 conftest$ac_exeext conftest.$ac_ext
10223 LIBS=$ac_check_lib_save_LIBS
10224 fi
10225 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10226 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10227 if test $ac_cv_lib_dld_dld_link = yes; then
10229 cat >>confdefs.h <<\_ACEOF
10230 #define HAVE_DLD 1
10231 _ACEOF
10233 LIBADD_DL="$LIBADD_DL -ldld"
10234 else
10235 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10236 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10237 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10239 else
10240 cat >conftest.$ac_ext <<_ACEOF
10241 /* confdefs.h. */
10242 _ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h. */
10246 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10248 #define _dyld_func_lookup innocuous__dyld_func_lookup
10250 /* System header to define __stub macros and hopefully few prototypes,
10251 which can conflict with char _dyld_func_lookup (); below.
10252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10253 <limits.h> exists even on freestanding compilers. */
10255 #ifdef __STDC__
10256 # include <limits.h>
10257 #else
10258 # include <assert.h>
10259 #endif
10261 #undef _dyld_func_lookup
10263 /* Override any GCC internal prototype to avoid an error.
10264 Use char because int might match the return type of a GCC
10265 builtin and then its argument prototype would still apply. */
10266 #ifdef __cplusplus
10267 extern "C"
10268 #endif
10269 char _dyld_func_lookup ();
10270 /* The GNU C library defines this for functions which it implements
10271 to always fail with ENOSYS. Some functions are actually named
10272 something starting with __ and the normal name is an alias. */
10273 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10274 choke me
10275 #endif
10277 int
10278 main ()
10279 {
10280 return _dyld_func_lookup ();
10281 ;
10282 return 0;
10283 }
10284 _ACEOF
10285 rm -f conftest.$ac_objext conftest$ac_exeext
10286 if { (ac_try="$ac_link"
10287 case "(($ac_try" in
10288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10289 *) ac_try_echo=$ac_try;;
10290 esac
10291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10292 (eval "$ac_link") 2>conftest.er1
10293 ac_status=$?
10294 grep -v '^ *+' conftest.er1 >conftest.err
10295 rm -f conftest.er1
10296 cat conftest.err >&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); } &&
10299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10300 { (case "(($ac_try" in
10301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302 *) ac_try_echo=$ac_try;;
10303 esac
10304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10305 (eval "$ac_try") 2>&5
10306 ac_status=$?
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; } &&
10309 { ac_try='test -s conftest$ac_exeext'
10310 { (case "(($ac_try" in
10311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312 *) ac_try_echo=$ac_try;;
10313 esac
10314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10315 (eval "$ac_try") 2>&5
10316 ac_status=$?
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; }; then
10319 ac_cv_func__dyld_func_lookup=yes
10320 else
10321 echo "$as_me: failed program was:" >&5
10322 sed 's/^/| /' conftest.$ac_ext >&5
10324 ac_cv_func__dyld_func_lookup=no
10325 fi
10327 rm -f core conftest.err conftest.$ac_objext \
10328 conftest$ac_exeext conftest.$ac_ext
10329 fi
10330 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10331 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10332 if test $ac_cv_func__dyld_func_lookup = yes; then
10334 cat >>confdefs.h <<\_ACEOF
10335 #define HAVE_DYLD 1
10336 _ACEOF
10338 fi
10341 fi
10344 fi
10347 fi
10349 rm -f core conftest.err conftest.$ac_objext \
10350 conftest$ac_exeext conftest.$ac_ext
10352 fi
10355 fi
10358 fi
10361 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10362 then
10363 lt_save_LIBS="$LIBS"
10364 LIBS="$LIBS $LIBADD_DL"
10366 for ac_func in dlerror
10367 do
10368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10369 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10372 echo $ECHO_N "(cached) $ECHO_C" >&6
10373 else
10374 cat >conftest.$ac_ext <<_ACEOF
10375 /* confdefs.h. */
10376 _ACEOF
10377 cat confdefs.h >>conftest.$ac_ext
10378 cat >>conftest.$ac_ext <<_ACEOF
10379 /* end confdefs.h. */
10380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10382 #define $ac_func innocuous_$ac_func
10384 /* System header to define __stub macros and hopefully few prototypes,
10385 which can conflict with char $ac_func (); below.
10386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10387 <limits.h> exists even on freestanding compilers. */
10389 #ifdef __STDC__
10390 # include <limits.h>
10391 #else
10392 # include <assert.h>
10393 #endif
10395 #undef $ac_func
10397 /* Override any GCC internal prototype to avoid an error.
10398 Use char because int might match the return type of a GCC
10399 builtin and then its argument prototype would still apply. */
10400 #ifdef __cplusplus
10401 extern "C"
10402 #endif
10403 char $ac_func ();
10404 /* The GNU C library defines this for functions which it implements
10405 to always fail with ENOSYS. Some functions are actually named
10406 something starting with __ and the normal name is an alias. */
10407 #if defined __stub_$ac_func || defined __stub___$ac_func
10408 choke me
10409 #endif
10411 int
10412 main ()
10413 {
10414 return $ac_func ();
10415 ;
10416 return 0;
10417 }
10418 _ACEOF
10419 rm -f conftest.$ac_objext conftest$ac_exeext
10420 if { (ac_try="$ac_link"
10421 case "(($ac_try" in
10422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10423 *) ac_try_echo=$ac_try;;
10424 esac
10425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10426 (eval "$ac_link") 2>conftest.er1
10427 ac_status=$?
10428 grep -v '^ *+' conftest.er1 >conftest.err
10429 rm -f conftest.er1
10430 cat conftest.err >&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } &&
10433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10434 { (case "(($ac_try" in
10435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10436 *) ac_try_echo=$ac_try;;
10437 esac
10438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10439 (eval "$ac_try") 2>&5
10440 ac_status=$?
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); }; } &&
10443 { ac_try='test -s conftest$ac_exeext'
10444 { (case "(($ac_try" in
10445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446 *) ac_try_echo=$ac_try;;
10447 esac
10448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449 (eval "$ac_try") 2>&5
10450 ac_status=$?
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; }; then
10453 eval "$as_ac_var=yes"
10454 else
10455 echo "$as_me: failed program was:" >&5
10456 sed 's/^/| /' conftest.$ac_ext >&5
10458 eval "$as_ac_var=no"
10459 fi
10461 rm -f core conftest.err conftest.$ac_objext \
10462 conftest$ac_exeext conftest.$ac_ext
10463 fi
10464 ac_res=`eval echo '${'$as_ac_var'}'`
10465 { echo "$as_me:$LINENO: result: $ac_res" >&5
10466 echo "${ECHO_T}$ac_res" >&6; }
10467 if test `eval echo '${'$as_ac_var'}'` = yes; then
10468 cat >>confdefs.h <<_ACEOF
10469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10470 _ACEOF
10472 fi
10473 done
10475 LIBS="$lt_save_LIBS"
10476 fi
10477 ac_ext=c
10478 ac_cpp='$CPP $CPPFLAGS'
10479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10485 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10486 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10487 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 else
10490 ac_cv_sys_symbol_underscore=no
10491 cat > conftest.$ac_ext <<EOF
10492 void nm_test_func(){}
10493 int main(){nm_test_func;return 0;}
10494 EOF
10495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10496 (eval $ac_compile) 2>&5
10497 ac_status=$?
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); }; then
10500 # Now try to grab the symbols.
10501 ac_nlist=conftest.nm
10502 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10503 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10504 ac_status=$?
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } && test -s "$ac_nlist"; then
10507 # See whether the symbols have a leading underscore.
10508 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10509 ac_cv_sys_symbol_underscore=yes
10510 else
10511 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10512 :
10513 else
10514 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10515 fi
10516 fi
10517 else
10518 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10519 fi
10520 else
10521 echo "configure: failed program was:" >&5
10522 cat conftest.c >&5
10523 fi
10524 rm -rf conftest*
10526 fi
10527 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10528 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10531 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10532 if test x"$libltdl_cv_func_dlopen" = xyes ||
10533 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10534 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10535 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10536 if test "${libltdl_cv_need_uscore+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10538 else
10539 libltdl_cv_need_uscore=unknown
10540 save_LIBS="$LIBS"
10541 LIBS="$LIBS $LIBADD_DL"
10542 if test "$cross_compiling" = yes; then :
10543 libltdl_cv_need_uscore=cross
10544 else
10545 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10546 lt_status=$lt_dlunknown
10547 cat > conftest.$ac_ext <<EOF
10548 #line 10548 "configure"
10549 #include "confdefs.h"
10551 #if HAVE_DLFCN_H
10552 #include <dlfcn.h>
10553 #endif
10555 #include <stdio.h>
10557 #ifdef RTLD_GLOBAL
10558 # define LT_DLGLOBAL RTLD_GLOBAL
10559 #else
10560 # ifdef DL_GLOBAL
10561 # define LT_DLGLOBAL DL_GLOBAL
10562 # else
10563 # define LT_DLGLOBAL 0
10564 # endif
10565 #endif
10567 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10568 find out it does not work in some platform. */
10569 #ifndef LT_DLLAZY_OR_NOW
10570 # ifdef RTLD_LAZY
10571 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10572 # else
10573 # ifdef DL_LAZY
10574 # define LT_DLLAZY_OR_NOW DL_LAZY
10575 # else
10576 # ifdef RTLD_NOW
10577 # define LT_DLLAZY_OR_NOW RTLD_NOW
10578 # else
10579 # ifdef DL_NOW
10580 # define LT_DLLAZY_OR_NOW DL_NOW
10581 # else
10582 # define LT_DLLAZY_OR_NOW 0
10583 # endif
10584 # endif
10585 # endif
10586 # endif
10587 #endif
10589 #ifdef __cplusplus
10590 extern "C" void exit (int);
10591 #endif
10593 void fnord() { int i=42;}
10594 int main ()
10595 {
10596 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10597 int status = $lt_dlunknown;
10599 if (self)
10600 {
10601 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10602 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10603 /* dlclose (self); */
10604 }
10605 else
10606 puts (dlerror ());
10608 exit (status);
10609 }
10610 EOF
10611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10612 (eval $ac_link) 2>&5
10613 ac_status=$?
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10616 (./conftest; exit; ) >&5 2>/dev/null
10617 lt_status=$?
10618 case x$lt_status in
10619 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10620 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10621 x$lt_dlunknown|x*) ;;
10622 esac
10623 else :
10624 # compilation failed
10626 fi
10627 fi
10628 rm -fr conftest*
10630 LIBS="$save_LIBS"
10632 fi
10633 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10634 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10635 fi
10636 fi
10638 if test x"$libltdl_cv_need_uscore" = xyes; then
10640 cat >>confdefs.h <<\_ACEOF
10641 #define NEED_USCORE 1
10642 _ACEOF
10644 fi
10647 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10648 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10649 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10651 else
10652 # PORTME does your system automatically load deplibs for dlopen?
10653 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10654 # For now, we just catch OSes we know something about -- in the
10655 # future, we'll try test this programmatically.
10656 libltdl_cv_sys_dlopen_deplibs=unknown
10657 case "$host_os" in
10658 aix3*|aix4.1.*|aix4.2.*)
10659 # Unknown whether this is true for these versions of AIX, but
10660 # we want this `case' here to explicitly catch those versions.
10661 libltdl_cv_sys_dlopen_deplibs=unknown
10662 ;;
10663 aix[45]*)
10664 libltdl_cv_sys_dlopen_deplibs=yes
10665 ;;
10666 darwin*)
10667 # Assuming the user has installed a libdl from somewhere, this is true
10668 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10669 libltdl_cv_sys_dlopen_deplibs=yes
10670 ;;
10671 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10672 # GNU and its variants, using gnu ld.so (Glibc)
10673 libltdl_cv_sys_dlopen_deplibs=yes
10674 ;;
10675 hpux10*|hpux11*)
10676 libltdl_cv_sys_dlopen_deplibs=yes
10677 ;;
10678 interix*)
10679 libltdl_cv_sys_dlopen_deplibs=yes
10680 ;;
10681 irix[12345]*|irix6.[01]*)
10682 # Catch all versions of IRIX before 6.2, and indicate that we don't
10683 # know how it worked for any of those versions.
10684 libltdl_cv_sys_dlopen_deplibs=unknown
10685 ;;
10686 irix*)
10687 # The case above catches anything before 6.2, and it's known that
10688 # at 6.2 and later dlopen does load deplibs.
10689 libltdl_cv_sys_dlopen_deplibs=yes
10690 ;;
10691 netbsd*)
10692 libltdl_cv_sys_dlopen_deplibs=yes
10693 ;;
10694 openbsd*)
10695 libltdl_cv_sys_dlopen_deplibs=yes
10696 ;;
10697 osf[1234]*)
10698 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10699 # it did *not* use an RPATH in a shared library to find objects the
10700 # library depends on, so we explicitly say `no'.
10701 libltdl_cv_sys_dlopen_deplibs=no
10702 ;;
10703 osf5.0|osf5.0a|osf5.1)
10704 # dlopen *does* load deplibs and with the right loader patch applied
10705 # it even uses RPATH in a shared library to search for shared objects
10706 # that the library depends on, but there's no easy way to know if that
10707 # patch is installed. Since this is the case, all we can really
10708 # say is unknown -- it depends on the patch being installed. If
10709 # it is, this changes to `yes'. Without it, it would be `no'.
10710 libltdl_cv_sys_dlopen_deplibs=unknown
10711 ;;
10712 osf*)
10713 # the two cases above should catch all versions of osf <= 5.1. Read
10714 # the comments above for what we know about them.
10715 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10716 # is used to find them so we can finally say `yes'.
10717 libltdl_cv_sys_dlopen_deplibs=yes
10718 ;;
10719 solaris*)
10720 libltdl_cv_sys_dlopen_deplibs=yes
10721 ;;
10722 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10723 libltdl_cv_sys_dlopen_deplibs=yes
10724 ;;
10725 esac
10727 fi
10728 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10729 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10730 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10732 cat >>confdefs.h <<\_ACEOF
10733 #define LTDL_DLOPEN_DEPLIBS 1
10734 _ACEOF
10736 fi
10739 for ac_header in argz.h
10740 do
10741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10746 echo $ECHO_N "(cached) $ECHO_C" >&6
10747 fi
10748 ac_res=`eval echo '${'$as_ac_Header'}'`
10749 { echo "$as_me:$LINENO: result: $ac_res" >&5
10750 echo "${ECHO_T}$ac_res" >&6; }
10751 else
10752 # Is the header compilable?
10753 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10755 cat >conftest.$ac_ext <<_ACEOF
10756 /* confdefs.h. */
10757 _ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h. */
10761 $ac_includes_default
10762 #include <$ac_header>
10763 _ACEOF
10764 rm -f conftest.$ac_objext
10765 if { (ac_try="$ac_compile"
10766 case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10769 esac
10770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771 (eval "$ac_compile") 2>conftest.er1
10772 ac_status=$?
10773 grep -v '^ *+' conftest.er1 >conftest.err
10774 rm -f conftest.er1
10775 cat conftest.err >&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } &&
10778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10779 { (case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10782 esac
10783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784 (eval "$ac_try") 2>&5
10785 ac_status=$?
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; } &&
10788 { ac_try='test -s conftest.$ac_objext'
10789 { (case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10792 esac
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_try") 2>&5
10795 ac_status=$?
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; }; then
10798 ac_header_compiler=yes
10799 else
10800 echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10803 ac_header_compiler=no
10804 fi
10806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10808 echo "${ECHO_T}$ac_header_compiler" >&6; }
10810 # Is the header present?
10811 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10813 cat >conftest.$ac_ext <<_ACEOF
10814 /* confdefs.h. */
10815 _ACEOF
10816 cat confdefs.h >>conftest.$ac_ext
10817 cat >>conftest.$ac_ext <<_ACEOF
10818 /* end confdefs.h. */
10819 #include <$ac_header>
10820 _ACEOF
10821 if { (ac_try="$ac_cpp conftest.$ac_ext"
10822 case "(($ac_try" in
10823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824 *) ac_try_echo=$ac_try;;
10825 esac
10826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10828 ac_status=$?
10829 grep -v '^ *+' conftest.er1 >conftest.err
10830 rm -f conftest.er1
10831 cat conftest.err >&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } >/dev/null; then
10834 if test -s conftest.err; then
10835 ac_cpp_err=$ac_c_preproc_warn_flag
10836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10837 else
10838 ac_cpp_err=
10839 fi
10840 else
10841 ac_cpp_err=yes
10842 fi
10843 if test -z "$ac_cpp_err"; then
10844 ac_header_preproc=yes
10845 else
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10849 ac_header_preproc=no
10850 fi
10852 rm -f conftest.err conftest.$ac_ext
10853 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10854 echo "${ECHO_T}$ac_header_preproc" >&6; }
10856 # So? What about this header?
10857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10858 yes:no: )
10859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10863 ac_header_preproc=yes
10864 ;;
10865 no:yes:* )
10866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10869 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10873 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10878 ( cat <<\_ASBOX
10879 ## ------------------------------------ ##
10880 ## Report this to http://llvm.org/bugs/ ##
10881 ## ------------------------------------ ##
10882 _ASBOX
10883 ) | sed "s/^/$as_me: WARNING: /" >&2
10884 ;;
10885 esac
10886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10889 echo $ECHO_N "(cached) $ECHO_C" >&6
10890 else
10891 eval "$as_ac_Header=\$ac_header_preproc"
10892 fi
10893 ac_res=`eval echo '${'$as_ac_Header'}'`
10894 { echo "$as_me:$LINENO: result: $ac_res" >&5
10895 echo "${ECHO_T}$ac_res" >&6; }
10897 fi
10898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10899 cat >>confdefs.h <<_ACEOF
10900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10901 _ACEOF
10903 fi
10905 done
10908 { echo "$as_me:$LINENO: checking for error_t" >&5
10909 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10910 if test "${ac_cv_type_error_t+set}" = set; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10912 else
10913 cat >conftest.$ac_ext <<_ACEOF
10914 /* confdefs.h. */
10915 _ACEOF
10916 cat confdefs.h >>conftest.$ac_ext
10917 cat >>conftest.$ac_ext <<_ACEOF
10918 /* end confdefs.h. */
10919 #if HAVE_ARGZ_H
10920 # include <argz.h>
10921 #endif
10923 typedef error_t ac__type_new_;
10924 int
10925 main ()
10926 {
10927 if ((ac__type_new_ *) 0)
10928 return 0;
10929 if (sizeof (ac__type_new_))
10930 return 0;
10931 ;
10932 return 0;
10933 }
10934 _ACEOF
10935 rm -f conftest.$ac_objext
10936 if { (ac_try="$ac_compile"
10937 case "(($ac_try" in
10938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10939 *) ac_try_echo=$ac_try;;
10940 esac
10941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10942 (eval "$ac_compile") 2>conftest.er1
10943 ac_status=$?
10944 grep -v '^ *+' conftest.er1 >conftest.err
10945 rm -f conftest.er1
10946 cat conftest.err >&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } &&
10949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10950 { (case "(($ac_try" in
10951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10953 esac
10954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955 (eval "$ac_try") 2>&5
10956 ac_status=$?
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; } &&
10959 { ac_try='test -s conftest.$ac_objext'
10960 { (case "(($ac_try" in
10961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962 *) ac_try_echo=$ac_try;;
10963 esac
10964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965 (eval "$ac_try") 2>&5
10966 ac_status=$?
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); }; }; then
10969 ac_cv_type_error_t=yes
10970 else
10971 echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10974 ac_cv_type_error_t=no
10975 fi
10977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10978 fi
10979 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10980 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10981 if test $ac_cv_type_error_t = yes; then
10983 cat >>confdefs.h <<_ACEOF
10984 #define HAVE_ERROR_T 1
10985 _ACEOF
10988 else
10990 cat >>confdefs.h <<\_ACEOF
10991 #define error_t int
10992 _ACEOF
10994 fi
11002 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11003 do
11004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11005 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11007 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11008 echo $ECHO_N "(cached) $ECHO_C" >&6
11009 else
11010 cat >conftest.$ac_ext <<_ACEOF
11011 /* confdefs.h. */
11012 _ACEOF
11013 cat confdefs.h >>conftest.$ac_ext
11014 cat >>conftest.$ac_ext <<_ACEOF
11015 /* end confdefs.h. */
11016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11018 #define $ac_func innocuous_$ac_func
11020 /* System header to define __stub macros and hopefully few prototypes,
11021 which can conflict with char $ac_func (); below.
11022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11023 <limits.h> exists even on freestanding compilers. */
11025 #ifdef __STDC__
11026 # include <limits.h>
11027 #else
11028 # include <assert.h>
11029 #endif
11031 #undef $ac_func
11033 /* Override any GCC internal prototype to avoid an error.
11034 Use char because int might match the return type of a GCC
11035 builtin and then its argument prototype would still apply. */
11036 #ifdef __cplusplus
11037 extern "C"
11038 #endif
11039 char $ac_func ();
11040 /* The GNU C library defines this for functions which it implements
11041 to always fail with ENOSYS. Some functions are actually named
11042 something starting with __ and the normal name is an alias. */
11043 #if defined __stub_$ac_func || defined __stub___$ac_func
11044 choke me
11045 #endif
11047 int
11048 main ()
11049 {
11050 return $ac_func ();
11051 ;
11052 return 0;
11053 }
11054 _ACEOF
11055 rm -f conftest.$ac_objext conftest$ac_exeext
11056 if { (ac_try="$ac_link"
11057 case "(($ac_try" in
11058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11059 *) ac_try_echo=$ac_try;;
11060 esac
11061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11062 (eval "$ac_link") 2>conftest.er1
11063 ac_status=$?
11064 grep -v '^ *+' conftest.er1 >conftest.err
11065 rm -f conftest.er1
11066 cat conftest.err >&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } &&
11069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11070 { (case "(($ac_try" in
11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11073 esac
11074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075 (eval "$ac_try") 2>&5
11076 ac_status=$?
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; } &&
11079 { ac_try='test -s conftest$ac_exeext'
11080 { (case "(($ac_try" in
11081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11082 *) ac_try_echo=$ac_try;;
11083 esac
11084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11085 (eval "$ac_try") 2>&5
11086 ac_status=$?
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; }; then
11089 eval "$as_ac_var=yes"
11090 else
11091 echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11094 eval "$as_ac_var=no"
11095 fi
11097 rm -f core conftest.err conftest.$ac_objext \
11098 conftest$ac_exeext conftest.$ac_ext
11099 fi
11100 ac_res=`eval echo '${'$as_ac_var'}'`
11101 { echo "$as_me:$LINENO: result: $ac_res" >&5
11102 echo "${ECHO_T}$ac_res" >&6; }
11103 if test `eval echo '${'$as_ac_var'}'` = yes; then
11104 cat >>confdefs.h <<_ACEOF
11105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11106 _ACEOF
11108 fi
11109 done
11137 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11138 stdio.h unistd.h
11139 do
11140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11145 echo $ECHO_N "(cached) $ECHO_C" >&6
11146 fi
11147 ac_res=`eval echo '${'$as_ac_Header'}'`
11148 { echo "$as_me:$LINENO: result: $ac_res" >&5
11149 echo "${ECHO_T}$ac_res" >&6; }
11150 else
11151 # Is the header compilable?
11152 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11154 cat >conftest.$ac_ext <<_ACEOF
11155 /* confdefs.h. */
11156 _ACEOF
11157 cat confdefs.h >>conftest.$ac_ext
11158 cat >>conftest.$ac_ext <<_ACEOF
11159 /* end confdefs.h. */
11160 $ac_includes_default
11161 #include <$ac_header>
11162 _ACEOF
11163 rm -f conftest.$ac_objext
11164 if { (ac_try="$ac_compile"
11165 case "(($ac_try" in
11166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167 *) ac_try_echo=$ac_try;;
11168 esac
11169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11170 (eval "$ac_compile") 2>conftest.er1
11171 ac_status=$?
11172 grep -v '^ *+' conftest.er1 >conftest.err
11173 rm -f conftest.er1
11174 cat conftest.err >&5
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); } &&
11177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11178 { (case "(($ac_try" in
11179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180 *) ac_try_echo=$ac_try;;
11181 esac
11182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183 (eval "$ac_try") 2>&5
11184 ac_status=$?
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); }; } &&
11187 { ac_try='test -s conftest.$ac_objext'
11188 { (case "(($ac_try" in
11189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190 *) ac_try_echo=$ac_try;;
11191 esac
11192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193 (eval "$ac_try") 2>&5
11194 ac_status=$?
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; }; then
11197 ac_header_compiler=yes
11198 else
11199 echo "$as_me: failed program was:" >&5
11200 sed 's/^/| /' conftest.$ac_ext >&5
11202 ac_header_compiler=no
11203 fi
11205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11207 echo "${ECHO_T}$ac_header_compiler" >&6; }
11209 # Is the header present?
11210 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11212 cat >conftest.$ac_ext <<_ACEOF
11213 /* confdefs.h. */
11214 _ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h. */
11218 #include <$ac_header>
11219 _ACEOF
11220 if { (ac_try="$ac_cpp conftest.$ac_ext"
11221 case "(($ac_try" in
11222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223 *) ac_try_echo=$ac_try;;
11224 esac
11225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11227 ac_status=$?
11228 grep -v '^ *+' conftest.er1 >conftest.err
11229 rm -f conftest.er1
11230 cat conftest.err >&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } >/dev/null; then
11233 if test -s conftest.err; then
11234 ac_cpp_err=$ac_c_preproc_warn_flag
11235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11236 else
11237 ac_cpp_err=
11238 fi
11239 else
11240 ac_cpp_err=yes
11241 fi
11242 if test -z "$ac_cpp_err"; then
11243 ac_header_preproc=yes
11244 else
11245 echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11248 ac_header_preproc=no
11249 fi
11251 rm -f conftest.err conftest.$ac_ext
11252 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11253 echo "${ECHO_T}$ac_header_preproc" >&6; }
11255 # So? What about this header?
11256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11257 yes:no: )
11258 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11261 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11262 ac_header_preproc=yes
11263 ;;
11264 no:yes:* )
11265 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11266 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11267 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11268 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11269 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11270 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11271 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11272 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11275 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11276 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11277 ( cat <<\_ASBOX
11278 ## ------------------------------------ ##
11279 ## Report this to http://llvm.org/bugs/ ##
11280 ## ------------------------------------ ##
11281 _ASBOX
11282 ) | sed "s/^/$as_me: WARNING: /" >&2
11283 ;;
11284 esac
11285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11288 echo $ECHO_N "(cached) $ECHO_C" >&6
11289 else
11290 eval "$as_ac_Header=\$ac_header_preproc"
11291 fi
11292 ac_res=`eval echo '${'$as_ac_Header'}'`
11293 { echo "$as_me:$LINENO: result: $ac_res" >&5
11294 echo "${ECHO_T}$ac_res" >&6; }
11296 fi
11297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11298 cat >>confdefs.h <<_ACEOF
11299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11300 _ACEOF
11302 fi
11304 done
11310 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11311 do
11312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11317 echo $ECHO_N "(cached) $ECHO_C" >&6
11318 fi
11319 ac_res=`eval echo '${'$as_ac_Header'}'`
11320 { echo "$as_me:$LINENO: result: $ac_res" >&5
11321 echo "${ECHO_T}$ac_res" >&6; }
11322 else
11323 # Is the header compilable?
11324 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11326 cat >conftest.$ac_ext <<_ACEOF
11327 /* confdefs.h. */
11328 _ACEOF
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h. */
11332 $ac_includes_default
11333 #include <$ac_header>
11334 _ACEOF
11335 rm -f conftest.$ac_objext
11336 if { (ac_try="$ac_compile"
11337 case "(($ac_try" in
11338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11339 *) ac_try_echo=$ac_try;;
11340 esac
11341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11342 (eval "$ac_compile") 2>conftest.er1
11343 ac_status=$?
11344 grep -v '^ *+' conftest.er1 >conftest.err
11345 rm -f conftest.er1
11346 cat conftest.err >&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); } &&
11349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11350 { (case "(($ac_try" in
11351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352 *) ac_try_echo=$ac_try;;
11353 esac
11354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355 (eval "$ac_try") 2>&5
11356 ac_status=$?
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; } &&
11359 { ac_try='test -s conftest.$ac_objext'
11360 { (case "(($ac_try" in
11361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11362 *) ac_try_echo=$ac_try;;
11363 esac
11364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11365 (eval "$ac_try") 2>&5
11366 ac_status=$?
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; }; then
11369 ac_header_compiler=yes
11370 else
11371 echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.$ac_ext >&5
11374 ac_header_compiler=no
11375 fi
11377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11379 echo "${ECHO_T}$ac_header_compiler" >&6; }
11381 # Is the header present?
11382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11384 cat >conftest.$ac_ext <<_ACEOF
11385 /* confdefs.h. */
11386 _ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390 #include <$ac_header>
11391 _ACEOF
11392 if { (ac_try="$ac_cpp conftest.$ac_ext"
11393 case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11396 esac
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11399 ac_status=$?
11400 grep -v '^ *+' conftest.er1 >conftest.err
11401 rm -f conftest.er1
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } >/dev/null; then
11405 if test -s conftest.err; then
11406 ac_cpp_err=$ac_c_preproc_warn_flag
11407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11408 else
11409 ac_cpp_err=
11410 fi
11411 else
11412 ac_cpp_err=yes
11413 fi
11414 if test -z "$ac_cpp_err"; then
11415 ac_header_preproc=yes
11416 else
11417 echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11420 ac_header_preproc=no
11421 fi
11423 rm -f conftest.err conftest.$ac_ext
11424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11425 echo "${ECHO_T}$ac_header_preproc" >&6; }
11427 # So? What about this header?
11428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11429 yes:no: )
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11434 ac_header_preproc=yes
11435 ;;
11436 no:yes:* )
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11449 ( cat <<\_ASBOX
11450 ## ------------------------------------ ##
11451 ## Report this to http://llvm.org/bugs/ ##
11452 ## ------------------------------------ ##
11453 _ASBOX
11454 ) | sed "s/^/$as_me: WARNING: /" >&2
11455 ;;
11456 esac
11457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 else
11462 eval "$as_ac_Header=\$ac_header_preproc"
11463 fi
11464 ac_res=`eval echo '${'$as_ac_Header'}'`
11465 { echo "$as_me:$LINENO: result: $ac_res" >&5
11466 echo "${ECHO_T}$ac_res" >&6; }
11468 fi
11469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11470 cat >>confdefs.h <<_ACEOF
11471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11472 _ACEOF
11474 fi
11476 done
11480 for ac_header in string.h strings.h
11481 do
11482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11488 fi
11489 ac_res=`eval echo '${'$as_ac_Header'}'`
11490 { echo "$as_me:$LINENO: result: $ac_res" >&5
11491 echo "${ECHO_T}$ac_res" >&6; }
11492 else
11493 # Is the header compilable?
11494 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11496 cat >conftest.$ac_ext <<_ACEOF
11497 /* confdefs.h. */
11498 _ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11502 $ac_includes_default
11503 #include <$ac_header>
11504 _ACEOF
11505 rm -f conftest.$ac_objext
11506 if { (ac_try="$ac_compile"
11507 case "(($ac_try" in
11508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509 *) ac_try_echo=$ac_try;;
11510 esac
11511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512 (eval "$ac_compile") 2>conftest.er1
11513 ac_status=$?
11514 grep -v '^ *+' conftest.er1 >conftest.err
11515 rm -f conftest.er1
11516 cat conftest.err >&5
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); } &&
11519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11520 { (case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11523 esac
11524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525 (eval "$ac_try") 2>&5
11526 ac_status=$?
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); }; } &&
11529 { ac_try='test -s conftest.$ac_objext'
11530 { (case "(($ac_try" in
11531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11532 *) ac_try_echo=$ac_try;;
11533 esac
11534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11535 (eval "$ac_try") 2>&5
11536 ac_status=$?
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); }; }; then
11539 ac_header_compiler=yes
11540 else
11541 echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.$ac_ext >&5
11544 ac_header_compiler=no
11545 fi
11547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11548 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11549 echo "${ECHO_T}$ac_header_compiler" >&6; }
11551 # Is the header present?
11552 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11553 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11554 cat >conftest.$ac_ext <<_ACEOF
11555 /* confdefs.h. */
11556 _ACEOF
11557 cat confdefs.h >>conftest.$ac_ext
11558 cat >>conftest.$ac_ext <<_ACEOF
11559 /* end confdefs.h. */
11560 #include <$ac_header>
11561 _ACEOF
11562 if { (ac_try="$ac_cpp conftest.$ac_ext"
11563 case "(($ac_try" in
11564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11565 *) ac_try_echo=$ac_try;;
11566 esac
11567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11569 ac_status=$?
11570 grep -v '^ *+' conftest.er1 >conftest.err
11571 rm -f conftest.er1
11572 cat conftest.err >&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } >/dev/null; then
11575 if test -s conftest.err; then
11576 ac_cpp_err=$ac_c_preproc_warn_flag
11577 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11578 else
11579 ac_cpp_err=
11580 fi
11581 else
11582 ac_cpp_err=yes
11583 fi
11584 if test -z "$ac_cpp_err"; then
11585 ac_header_preproc=yes
11586 else
11587 echo "$as_me: failed program was:" >&5
11588 sed 's/^/| /' conftest.$ac_ext >&5
11590 ac_header_preproc=no
11591 fi
11593 rm -f conftest.err conftest.$ac_ext
11594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11595 echo "${ECHO_T}$ac_header_preproc" >&6; }
11597 # So? What about this header?
11598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11599 yes:no: )
11600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11603 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11604 ac_header_preproc=yes
11605 ;;
11606 no:yes:* )
11607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11608 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11610 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11611 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11612 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11613 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11614 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11617 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11618 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11619 ( cat <<\_ASBOX
11620 ## ------------------------------------ ##
11621 ## Report this to http://llvm.org/bugs/ ##
11622 ## ------------------------------------ ##
11623 _ASBOX
11624 ) | sed "s/^/$as_me: WARNING: /" >&2
11625 ;;
11626 esac
11627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
11631 else
11632 eval "$as_ac_Header=\$ac_header_preproc"
11633 fi
11634 ac_res=`eval echo '${'$as_ac_Header'}'`
11635 { echo "$as_me:$LINENO: result: $ac_res" >&5
11636 echo "${ECHO_T}$ac_res" >&6; }
11638 fi
11639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11640 cat >>confdefs.h <<_ACEOF
11641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11642 _ACEOF
11643 break
11644 fi
11646 done
11651 for ac_func in strchr index
11652 do
11653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11654 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11656 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 else
11659 cat >conftest.$ac_ext <<_ACEOF
11660 /* confdefs.h. */
11661 _ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h. */
11665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11667 #define $ac_func innocuous_$ac_func
11669 /* System header to define __stub macros and hopefully few prototypes,
11670 which can conflict with char $ac_func (); below.
11671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11672 <limits.h> exists even on freestanding compilers. */
11674 #ifdef __STDC__
11675 # include <limits.h>
11676 #else
11677 # include <assert.h>
11678 #endif
11680 #undef $ac_func
11682 /* Override any GCC internal prototype to avoid an error.
11683 Use char because int might match the return type of a GCC
11684 builtin and then its argument prototype would still apply. */
11685 #ifdef __cplusplus
11686 extern "C"
11687 #endif
11688 char $ac_func ();
11689 /* The GNU C library defines this for functions which it implements
11690 to always fail with ENOSYS. Some functions are actually named
11691 something starting with __ and the normal name is an alias. */
11692 #if defined __stub_$ac_func || defined __stub___$ac_func
11693 choke me
11694 #endif
11696 int
11697 main ()
11698 {
11699 return $ac_func ();
11700 ;
11701 return 0;
11702 }
11703 _ACEOF
11704 rm -f conftest.$ac_objext conftest$ac_exeext
11705 if { (ac_try="$ac_link"
11706 case "(($ac_try" in
11707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708 *) ac_try_echo=$ac_try;;
11709 esac
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711 (eval "$ac_link") 2>conftest.er1
11712 ac_status=$?
11713 grep -v '^ *+' conftest.er1 >conftest.err
11714 rm -f conftest.er1
11715 cat conftest.err >&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } &&
11718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11719 { (case "(($ac_try" in
11720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721 *) ac_try_echo=$ac_try;;
11722 esac
11723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724 (eval "$ac_try") 2>&5
11725 ac_status=$?
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; } &&
11728 { ac_try='test -s conftest$ac_exeext'
11729 { (case "(($ac_try" in
11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11732 esac
11733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734 (eval "$ac_try") 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; }; then
11738 eval "$as_ac_var=yes"
11739 else
11740 echo "$as_me: failed program was:" >&5
11741 sed 's/^/| /' conftest.$ac_ext >&5
11743 eval "$as_ac_var=no"
11744 fi
11746 rm -f core conftest.err conftest.$ac_objext \
11747 conftest$ac_exeext conftest.$ac_ext
11748 fi
11749 ac_res=`eval echo '${'$as_ac_var'}'`
11750 { echo "$as_me:$LINENO: result: $ac_res" >&5
11751 echo "${ECHO_T}$ac_res" >&6; }
11752 if test `eval echo '${'$as_ac_var'}'` = yes; then
11753 cat >>confdefs.h <<_ACEOF
11754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11755 _ACEOF
11756 break
11757 fi
11758 done
11762 for ac_func in strrchr rindex
11763 do
11764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11768 echo $ECHO_N "(cached) $ECHO_C" >&6
11769 else
11770 cat >conftest.$ac_ext <<_ACEOF
11771 /* confdefs.h. */
11772 _ACEOF
11773 cat confdefs.h >>conftest.$ac_ext
11774 cat >>conftest.$ac_ext <<_ACEOF
11775 /* end confdefs.h. */
11776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11778 #define $ac_func innocuous_$ac_func
11780 /* System header to define __stub macros and hopefully few prototypes,
11781 which can conflict with char $ac_func (); below.
11782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11783 <limits.h> exists even on freestanding compilers. */
11785 #ifdef __STDC__
11786 # include <limits.h>
11787 #else
11788 # include <assert.h>
11789 #endif
11791 #undef $ac_func
11793 /* Override any GCC internal prototype to avoid an error.
11794 Use char because int might match the return type of a GCC
11795 builtin and then its argument prototype would still apply. */
11796 #ifdef __cplusplus
11797 extern "C"
11798 #endif
11799 char $ac_func ();
11800 /* The GNU C library defines this for functions which it implements
11801 to always fail with ENOSYS. Some functions are actually named
11802 something starting with __ and the normal name is an alias. */
11803 #if defined __stub_$ac_func || defined __stub___$ac_func
11804 choke me
11805 #endif
11807 int
11808 main ()
11809 {
11810 return $ac_func ();
11811 ;
11812 return 0;
11813 }
11814 _ACEOF
11815 rm -f conftest.$ac_objext conftest$ac_exeext
11816 if { (ac_try="$ac_link"
11817 case "(($ac_try" in
11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819 *) ac_try_echo=$ac_try;;
11820 esac
11821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822 (eval "$ac_link") 2>conftest.er1
11823 ac_status=$?
11824 grep -v '^ *+' conftest.er1 >conftest.err
11825 rm -f conftest.er1
11826 cat conftest.err >&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); } &&
11829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11830 { (case "(($ac_try" in
11831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832 *) ac_try_echo=$ac_try;;
11833 esac
11834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835 (eval "$ac_try") 2>&5
11836 ac_status=$?
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; } &&
11839 { ac_try='test -s conftest$ac_exeext'
11840 { (case "(($ac_try" in
11841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842 *) ac_try_echo=$ac_try;;
11843 esac
11844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11845 (eval "$ac_try") 2>&5
11846 ac_status=$?
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; }; then
11849 eval "$as_ac_var=yes"
11850 else
11851 echo "$as_me: failed program was:" >&5
11852 sed 's/^/| /' conftest.$ac_ext >&5
11854 eval "$as_ac_var=no"
11855 fi
11857 rm -f core conftest.err conftest.$ac_objext \
11858 conftest$ac_exeext conftest.$ac_ext
11859 fi
11860 ac_res=`eval echo '${'$as_ac_var'}'`
11861 { echo "$as_me:$LINENO: result: $ac_res" >&5
11862 echo "${ECHO_T}$ac_res" >&6; }
11863 if test `eval echo '${'$as_ac_var'}'` = yes; then
11864 cat >>confdefs.h <<_ACEOF
11865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11866 _ACEOF
11867 break
11868 fi
11869 done
11873 for ac_func in memcpy bcopy
11874 do
11875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11876 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11878 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11880 else
11881 cat >conftest.$ac_ext <<_ACEOF
11882 /* confdefs.h. */
11883 _ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h. */
11887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11889 #define $ac_func innocuous_$ac_func
11891 /* System header to define __stub macros and hopefully few prototypes,
11892 which can conflict with char $ac_func (); below.
11893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11894 <limits.h> exists even on freestanding compilers. */
11896 #ifdef __STDC__
11897 # include <limits.h>
11898 #else
11899 # include <assert.h>
11900 #endif
11902 #undef $ac_func
11904 /* Override any GCC internal prototype to avoid an error.
11905 Use char because int might match the return type of a GCC
11906 builtin and then its argument prototype would still apply. */
11907 #ifdef __cplusplus
11908 extern "C"
11909 #endif
11910 char $ac_func ();
11911 /* The GNU C library defines this for functions which it implements
11912 to always fail with ENOSYS. Some functions are actually named
11913 something starting with __ and the normal name is an alias. */
11914 #if defined __stub_$ac_func || defined __stub___$ac_func
11915 choke me
11916 #endif
11918 int
11919 main ()
11920 {
11921 return $ac_func ();
11922 ;
11923 return 0;
11924 }
11925 _ACEOF
11926 rm -f conftest.$ac_objext conftest$ac_exeext
11927 if { (ac_try="$ac_link"
11928 case "(($ac_try" in
11929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930 *) ac_try_echo=$ac_try;;
11931 esac
11932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11933 (eval "$ac_link") 2>conftest.er1
11934 ac_status=$?
11935 grep -v '^ *+' conftest.er1 >conftest.err
11936 rm -f conftest.er1
11937 cat conftest.err >&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } &&
11940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11941 { (case "(($ac_try" in
11942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11943 *) ac_try_echo=$ac_try;;
11944 esac
11945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11946 (eval "$ac_try") 2>&5
11947 ac_status=$?
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); }; } &&
11950 { ac_try='test -s conftest$ac_exeext'
11951 { (case "(($ac_try" in
11952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11953 *) ac_try_echo=$ac_try;;
11954 esac
11955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11956 (eval "$ac_try") 2>&5
11957 ac_status=$?
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); }; }; then
11960 eval "$as_ac_var=yes"
11961 else
11962 echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11965 eval "$as_ac_var=no"
11966 fi
11968 rm -f core conftest.err conftest.$ac_objext \
11969 conftest$ac_exeext conftest.$ac_ext
11970 fi
11971 ac_res=`eval echo '${'$as_ac_var'}'`
11972 { echo "$as_me:$LINENO: result: $ac_res" >&5
11973 echo "${ECHO_T}$ac_res" >&6; }
11974 if test `eval echo '${'$as_ac_var'}'` = yes; then
11975 cat >>confdefs.h <<_ACEOF
11976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11977 _ACEOF
11978 break
11979 fi
11980 done
11984 for ac_func in memmove strcmp
11985 do
11986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11987 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11989 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11990 echo $ECHO_N "(cached) $ECHO_C" >&6
11991 else
11992 cat >conftest.$ac_ext <<_ACEOF
11993 /* confdefs.h. */
11994 _ACEOF
11995 cat confdefs.h >>conftest.$ac_ext
11996 cat >>conftest.$ac_ext <<_ACEOF
11997 /* end confdefs.h. */
11998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12000 #define $ac_func innocuous_$ac_func
12002 /* System header to define __stub macros and hopefully few prototypes,
12003 which can conflict with char $ac_func (); below.
12004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12005 <limits.h> exists even on freestanding compilers. */
12007 #ifdef __STDC__
12008 # include <limits.h>
12009 #else
12010 # include <assert.h>
12011 #endif
12013 #undef $ac_func
12015 /* Override any GCC internal prototype to avoid an error.
12016 Use char because int might match the return type of a GCC
12017 builtin and then its argument prototype would still apply. */
12018 #ifdef __cplusplus
12019 extern "C"
12020 #endif
12021 char $ac_func ();
12022 /* The GNU C library defines this for functions which it implements
12023 to always fail with ENOSYS. Some functions are actually named
12024 something starting with __ and the normal name is an alias. */
12025 #if defined __stub_$ac_func || defined __stub___$ac_func
12026 choke me
12027 #endif
12029 int
12030 main ()
12031 {
12032 return $ac_func ();
12033 ;
12034 return 0;
12035 }
12036 _ACEOF
12037 rm -f conftest.$ac_objext conftest$ac_exeext
12038 if { (ac_try="$ac_link"
12039 case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12042 esac
12043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044 (eval "$ac_link") 2>conftest.er1
12045 ac_status=$?
12046 grep -v '^ *+' conftest.er1 >conftest.err
12047 rm -f conftest.er1
12048 cat conftest.err >&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } &&
12051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12052 { (case "(($ac_try" in
12053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054 *) ac_try_echo=$ac_try;;
12055 esac
12056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12057 (eval "$ac_try") 2>&5
12058 ac_status=$?
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; } &&
12061 { ac_try='test -s conftest$ac_exeext'
12062 { (case "(($ac_try" in
12063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12064 *) ac_try_echo=$ac_try;;
12065 esac
12066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12067 (eval "$ac_try") 2>&5
12068 ac_status=$?
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); }; }; then
12071 eval "$as_ac_var=yes"
12072 else
12073 echo "$as_me: failed program was:" >&5
12074 sed 's/^/| /' conftest.$ac_ext >&5
12076 eval "$as_ac_var=no"
12077 fi
12079 rm -f core conftest.err conftest.$ac_objext \
12080 conftest$ac_exeext conftest.$ac_ext
12081 fi
12082 ac_res=`eval echo '${'$as_ac_var'}'`
12083 { echo "$as_me:$LINENO: result: $ac_res" >&5
12084 echo "${ECHO_T}$ac_res" >&6; }
12085 if test `eval echo '${'$as_ac_var'}'` = yes; then
12086 cat >>confdefs.h <<_ACEOF
12087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12088 _ACEOF
12090 fi
12091 done
12096 for ac_func in closedir opendir readdir
12097 do
12098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12099 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12101 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12102 echo $ECHO_N "(cached) $ECHO_C" >&6
12103 else
12104 cat >conftest.$ac_ext <<_ACEOF
12105 /* confdefs.h. */
12106 _ACEOF
12107 cat confdefs.h >>conftest.$ac_ext
12108 cat >>conftest.$ac_ext <<_ACEOF
12109 /* end confdefs.h. */
12110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12112 #define $ac_func innocuous_$ac_func
12114 /* System header to define __stub macros and hopefully few prototypes,
12115 which can conflict with char $ac_func (); below.
12116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12117 <limits.h> exists even on freestanding compilers. */
12119 #ifdef __STDC__
12120 # include <limits.h>
12121 #else
12122 # include <assert.h>
12123 #endif
12125 #undef $ac_func
12127 /* Override any GCC internal prototype to avoid an error.
12128 Use char because int might match the return type of a GCC
12129 builtin and then its argument prototype would still apply. */
12130 #ifdef __cplusplus
12131 extern "C"
12132 #endif
12133 char $ac_func ();
12134 /* The GNU C library defines this for functions which it implements
12135 to always fail with ENOSYS. Some functions are actually named
12136 something starting with __ and the normal name is an alias. */
12137 #if defined __stub_$ac_func || defined __stub___$ac_func
12138 choke me
12139 #endif
12141 int
12142 main ()
12143 {
12144 return $ac_func ();
12145 ;
12146 return 0;
12147 }
12148 _ACEOF
12149 rm -f conftest.$ac_objext conftest$ac_exeext
12150 if { (ac_try="$ac_link"
12151 case "(($ac_try" in
12152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153 *) ac_try_echo=$ac_try;;
12154 esac
12155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156 (eval "$ac_link") 2>conftest.er1
12157 ac_status=$?
12158 grep -v '^ *+' conftest.er1 >conftest.err
12159 rm -f conftest.er1
12160 cat conftest.err >&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } &&
12163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12164 { (case "(($ac_try" in
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166 *) ac_try_echo=$ac_try;;
12167 esac
12168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169 (eval "$ac_try") 2>&5
12170 ac_status=$?
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; } &&
12173 { ac_try='test -s conftest$ac_exeext'
12174 { (case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12177 esac
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_try") 2>&5
12180 ac_status=$?
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; }; then
12183 eval "$as_ac_var=yes"
12184 else
12185 echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12188 eval "$as_ac_var=no"
12189 fi
12191 rm -f core conftest.err conftest.$ac_objext \
12192 conftest$ac_exeext conftest.$ac_ext
12193 fi
12194 ac_res=`eval echo '${'$as_ac_var'}'`
12195 { echo "$as_me:$LINENO: result: $ac_res" >&5
12196 echo "${ECHO_T}$ac_res" >&6; }
12197 if test `eval echo '${'$as_ac_var'}'` = yes; then
12198 cat >>confdefs.h <<_ACEOF
12199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12200 _ACEOF
12202 fi
12203 done
12207 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12208 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12210 ICC=no
12211 IXX=no
12212 case $CC in
12213 icc*|icpc*)
12214 ICC=yes
12215 IXX=yes
12216 ;;
12217 *)
12218 ;;
12219 esac
12221 if test "$GCC" != "yes" && test "$ICC" != "yes"
12222 then
12223 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12224 echo "$as_me: error: gcc|icc required but not found" >&2;}
12225 { (exit 1); exit 1; }; }
12226 fi
12228 if test "$GXX" != "yes" && test "$IXX" != "yes"
12229 then
12230 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12231 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12232 { (exit 1); exit 1; }; }
12233 fi
12235 if test "$GCC" = "yes"
12236 then
12237 cat >conftest.$ac_ext <<_ACEOF
12239 /* confdefs.h. */
12240 _ACEOF
12241 cat confdefs.h >>conftest.$ac_ext
12242 cat >>conftest.$ac_ext <<_ACEOF
12243 /* end confdefs.h. */
12245 #if !defined(__GNUC__) || __GNUC__ < 3
12246 #error Unsupported GCC version
12247 #endif
12250 _ACEOF
12251 rm -f conftest.$ac_objext
12252 if { (ac_try="$ac_compile"
12253 case "(($ac_try" in
12254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12255 *) ac_try_echo=$ac_try;;
12256 esac
12257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258 (eval "$ac_compile") 2>conftest.er1
12259 ac_status=$?
12260 grep -v '^ *+' conftest.er1 >conftest.err
12261 rm -f conftest.er1
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } &&
12265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12266 { (case "(($ac_try" in
12267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268 *) ac_try_echo=$ac_try;;
12269 esac
12270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12271 (eval "$ac_try") 2>&5
12272 ac_status=$?
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; } &&
12275 { ac_try='test -s conftest.$ac_objext'
12276 { (case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12279 esac
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_try") 2>&5
12282 ac_status=$?
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; }; then
12285 :
12286 else
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12290 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12291 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12292 { (exit 1); exit 1; }; }
12293 fi
12295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12296 fi
12298 if test -z "$llvm_cv_gnu_make_command"
12299 then
12300 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12301 echo "$as_me: error: GNU Make required but not found" >&2;}
12302 { (exit 1); exit 1; }; }
12303 fi
12305 { echo "$as_me:$LINENO: result: ok" >&5
12306 echo "${ECHO_T}ok" >&6; }
12308 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12309 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12310 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12312 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12314 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12317 NO_UNINITIALIZED=
12318 NO_MAYBE_UNINITIALIZED=
12319 if test "$GXX" = "yes"
12320 then
12321 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12323 if test -z "$NO_MAYBE_UNINITIALIZED"
12324 then
12325 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12327 fi
12328 fi
12329 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12330 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12333 # Check whether --with-python was given.
12334 if test "${with_python+set}" = set; then
12335 withval=$with_python; PYTHON="$withval"
12336 fi
12339 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12340 { echo "$as_me:$LINENO: checking for python" >&5
12341 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12342 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12343 echo "${ECHO_T}user defined: $with_python" >&6; }
12344 else
12345 if test -n "$PYTHON" ; then
12346 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12347 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12348 fi
12350 # Extract the first word of "python python2 python26", so it can be a program name with args.
12351 set dummy python python2 python26; ac_word=$2
12352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12354 if test "${ac_cv_path_PYTHON+set}" = set; then
12355 echo $ECHO_N "(cached) $ECHO_C" >&6
12356 else
12357 case $PYTHON in
12358 [\\/]* | ?:[\\/]*)
12359 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12360 ;;
12361 *)
12362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12363 for as_dir in $PATH
12364 do
12365 IFS=$as_save_IFS
12366 test -z "$as_dir" && as_dir=.
12367 for ac_exec_ext in '' $ac_executable_extensions; do
12368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12369 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12371 break 2
12372 fi
12373 done
12374 done
12375 IFS=$as_save_IFS
12377 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12378 echo "${ECHO_T}not found" >&6; }
12379 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12380 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12381 { (exit 1); exit 1; }; }"
12382 ;;
12383 esac
12384 fi
12385 PYTHON=$ac_cv_path_PYTHON
12386 if test -n "$PYTHON"; then
12387 { echo "$as_me:$LINENO: result: $PYTHON" >&5
12388 echo "${ECHO_T}$PYTHON" >&6; }
12389 else
12390 { echo "$as_me:$LINENO: result: no" >&5
12391 echo "${ECHO_T}no" >&6; }
12392 fi
12395 fi
12397 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12398 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12399 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12400 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12401 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12402 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12403 if test "$ac_python_version_major" -eq "2" \
12404 && test "$ac_python_version_minor" -ge "5" ; then
12405 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12406 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12407 else
12408 { echo "$as_me:$LINENO: result: not found" >&5
12409 echo "${ECHO_T}not found" >&6; }
12410 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12411 See \`config.log' for more details." >&5
12412 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12413 See \`config.log' for more details." >&2;}
12414 { (exit 1); exit 1; }; }
12415 fi
12419 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12420 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12421 if test "${ac_cv_lib_m_sin+set}" = set; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
12423 else
12424 ac_check_lib_save_LIBS=$LIBS
12425 LIBS="-lm $LIBS"
12426 cat >conftest.$ac_ext <<_ACEOF
12427 /* confdefs.h. */
12428 _ACEOF
12429 cat confdefs.h >>conftest.$ac_ext
12430 cat >>conftest.$ac_ext <<_ACEOF
12431 /* end confdefs.h. */
12433 /* Override any GCC internal prototype to avoid an error.
12434 Use char because int might match the return type of a GCC
12435 builtin and then its argument prototype would still apply. */
12436 #ifdef __cplusplus
12437 extern "C"
12438 #endif
12439 char sin ();
12440 int
12441 main ()
12442 {
12443 return sin ();
12444 ;
12445 return 0;
12446 }
12447 _ACEOF
12448 rm -f conftest.$ac_objext conftest$ac_exeext
12449 if { (ac_try="$ac_link"
12450 case "(($ac_try" in
12451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452 *) ac_try_echo=$ac_try;;
12453 esac
12454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455 (eval "$ac_link") 2>conftest.er1
12456 ac_status=$?
12457 grep -v '^ *+' conftest.er1 >conftest.err
12458 rm -f conftest.er1
12459 cat conftest.err >&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); } &&
12462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12463 { (case "(($ac_try" in
12464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12466 esac
12467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468 (eval "$ac_try") 2>&5
12469 ac_status=$?
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); }; } &&
12472 { ac_try='test -s conftest$ac_exeext'
12473 { (case "(($ac_try" in
12474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12475 *) ac_try_echo=$ac_try;;
12476 esac
12477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12478 (eval "$ac_try") 2>&5
12479 ac_status=$?
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; }; then
12482 ac_cv_lib_m_sin=yes
12483 else
12484 echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12487 ac_cv_lib_m_sin=no
12488 fi
12490 rm -f core conftest.err conftest.$ac_objext \
12491 conftest$ac_exeext conftest.$ac_ext
12492 LIBS=$ac_check_lib_save_LIBS
12493 fi
12494 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12495 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12496 if test $ac_cv_lib_m_sin = yes; then
12497 cat >>confdefs.h <<_ACEOF
12498 #define HAVE_LIBM 1
12499 _ACEOF
12501 LIBS="-lm $LIBS"
12503 fi
12505 if test "$llvm_cv_os_type" = "MingW" ; then
12507 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12508 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12509 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12511 else
12512 ac_check_lib_save_LIBS=$LIBS
12513 LIBS="-limagehlp $LIBS"
12514 cat >conftest.$ac_ext <<_ACEOF
12515 /* confdefs.h. */
12516 _ACEOF
12517 cat confdefs.h >>conftest.$ac_ext
12518 cat >>conftest.$ac_ext <<_ACEOF
12519 /* end confdefs.h. */
12522 int
12523 main ()
12524 {
12525 return main ();
12526 ;
12527 return 0;
12528 }
12529 _ACEOF
12530 rm -f conftest.$ac_objext conftest$ac_exeext
12531 if { (ac_try="$ac_link"
12532 case "(($ac_try" in
12533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12534 *) ac_try_echo=$ac_try;;
12535 esac
12536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12537 (eval "$ac_link") 2>conftest.er1
12538 ac_status=$?
12539 grep -v '^ *+' conftest.er1 >conftest.err
12540 rm -f conftest.er1
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12545 { (case "(($ac_try" in
12546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12547 *) ac_try_echo=$ac_try;;
12548 esac
12549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12550 (eval "$ac_try") 2>&5
12551 ac_status=$?
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; } &&
12554 { ac_try='test -s conftest$ac_exeext'
12555 { (case "(($ac_try" in
12556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557 *) ac_try_echo=$ac_try;;
12558 esac
12559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12560 (eval "$ac_try") 2>&5
12561 ac_status=$?
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; }; then
12564 ac_cv_lib_imagehlp_main=yes
12565 else
12566 echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12569 ac_cv_lib_imagehlp_main=no
12570 fi
12572 rm -f core conftest.err conftest.$ac_objext \
12573 conftest$ac_exeext conftest.$ac_ext
12574 LIBS=$ac_check_lib_save_LIBS
12575 fi
12576 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12577 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12578 if test $ac_cv_lib_imagehlp_main = yes; then
12579 cat >>confdefs.h <<_ACEOF
12580 #define HAVE_LIBIMAGEHLP 1
12581 _ACEOF
12583 LIBS="-limagehlp $LIBS"
12585 fi
12588 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12589 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12590 if test "${ac_cv_lib_psapi_main+set}" = set; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12592 else
12593 ac_check_lib_save_LIBS=$LIBS
12594 LIBS="-lpsapi $LIBS"
12595 cat >conftest.$ac_ext <<_ACEOF
12596 /* confdefs.h. */
12597 _ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12603 int
12604 main ()
12605 {
12606 return main ();
12607 ;
12608 return 0;
12609 }
12610 _ACEOF
12611 rm -f conftest.$ac_objext conftest$ac_exeext
12612 if { (ac_try="$ac_link"
12613 case "(($ac_try" in
12614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615 *) ac_try_echo=$ac_try;;
12616 esac
12617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618 (eval "$ac_link") 2>conftest.er1
12619 ac_status=$?
12620 grep -v '^ *+' conftest.er1 >conftest.err
12621 rm -f conftest.er1
12622 cat conftest.err >&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12626 { (case "(($ac_try" in
12627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628 *) ac_try_echo=$ac_try;;
12629 esac
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631 (eval "$ac_try") 2>&5
12632 ac_status=$?
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; } &&
12635 { ac_try='test -s conftest$ac_exeext'
12636 { (case "(($ac_try" in
12637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12639 esac
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641 (eval "$ac_try") 2>&5
12642 ac_status=$?
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; }; then
12645 ac_cv_lib_psapi_main=yes
12646 else
12647 echo "$as_me: failed program was:" >&5
12648 sed 's/^/| /' conftest.$ac_ext >&5
12650 ac_cv_lib_psapi_main=no
12651 fi
12653 rm -f core conftest.err conftest.$ac_objext \
12654 conftest$ac_exeext conftest.$ac_ext
12655 LIBS=$ac_check_lib_save_LIBS
12656 fi
12657 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12658 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12659 if test $ac_cv_lib_psapi_main = yes; then
12660 cat >>confdefs.h <<_ACEOF
12661 #define HAVE_LIBPSAPI 1
12662 _ACEOF
12664 LIBS="-lpsapi $LIBS"
12666 fi
12668 fi
12670 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12671 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12672 if test "${ac_cv_search_dlopen+set}" = set; then
12673 echo $ECHO_N "(cached) $ECHO_C" >&6
12674 else
12675 ac_func_search_save_LIBS=$LIBS
12676 cat >conftest.$ac_ext <<_ACEOF
12677 /* confdefs.h. */
12678 _ACEOF
12679 cat confdefs.h >>conftest.$ac_ext
12680 cat >>conftest.$ac_ext <<_ACEOF
12681 /* end confdefs.h. */
12683 /* Override any GCC internal prototype to avoid an error.
12684 Use char because int might match the return type of a GCC
12685 builtin and then its argument prototype would still apply. */
12686 #ifdef __cplusplus
12687 extern "C"
12688 #endif
12689 char dlopen ();
12690 int
12691 main ()
12692 {
12693 return dlopen ();
12694 ;
12695 return 0;
12696 }
12697 _ACEOF
12698 for ac_lib in '' dl; do
12699 if test -z "$ac_lib"; then
12700 ac_res="none required"
12701 else
12702 ac_res=-l$ac_lib
12703 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12704 fi
12705 rm -f conftest.$ac_objext conftest$ac_exeext
12706 if { (ac_try="$ac_link"
12707 case "(($ac_try" in
12708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12709 *) ac_try_echo=$ac_try;;
12710 esac
12711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12712 (eval "$ac_link") 2>conftest.er1
12713 ac_status=$?
12714 grep -v '^ *+' conftest.er1 >conftest.err
12715 rm -f conftest.er1
12716 cat conftest.err >&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } &&
12719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12720 { (case "(($ac_try" in
12721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12722 *) ac_try_echo=$ac_try;;
12723 esac
12724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12725 (eval "$ac_try") 2>&5
12726 ac_status=$?
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); }; } &&
12729 { ac_try='test -s conftest$ac_exeext'
12730 { (case "(($ac_try" in
12731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12732 *) ac_try_echo=$ac_try;;
12733 esac
12734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12735 (eval "$ac_try") 2>&5
12736 ac_status=$?
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); }; }; then
12739 ac_cv_search_dlopen=$ac_res
12740 else
12741 echo "$as_me: failed program was:" >&5
12742 sed 's/^/| /' conftest.$ac_ext >&5
12745 fi
12747 rm -f core conftest.err conftest.$ac_objext \
12748 conftest$ac_exeext
12749 if test "${ac_cv_search_dlopen+set}" = set; then
12750 break
12751 fi
12752 done
12753 if test "${ac_cv_search_dlopen+set}" = set; then
12754 :
12755 else
12756 ac_cv_search_dlopen=no
12757 fi
12758 rm conftest.$ac_ext
12759 LIBS=$ac_func_search_save_LIBS
12760 fi
12761 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12762 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12763 ac_res=$ac_cv_search_dlopen
12764 if test "$ac_res" != no; then
12765 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12767 cat >>confdefs.h <<\_ACEOF
12768 #define HAVE_DLOPEN 1
12769 _ACEOF
12771 else
12772 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12773 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12774 fi
12777 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12778 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12779 if test "${ac_cv_search_clock_gettime+set}" = set; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12781 else
12782 ac_func_search_save_LIBS=$LIBS
12783 cat >conftest.$ac_ext <<_ACEOF
12784 /* confdefs.h. */
12785 _ACEOF
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h. */
12790 /* Override any GCC internal prototype to avoid an error.
12791 Use char because int might match the return type of a GCC
12792 builtin and then its argument prototype would still apply. */
12793 #ifdef __cplusplus
12794 extern "C"
12795 #endif
12796 char clock_gettime ();
12797 int
12798 main ()
12799 {
12800 return clock_gettime ();
12801 ;
12802 return 0;
12803 }
12804 _ACEOF
12805 for ac_lib in '' rt; do
12806 if test -z "$ac_lib"; then
12807 ac_res="none required"
12808 else
12809 ac_res=-l$ac_lib
12810 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12811 fi
12812 rm -f conftest.$ac_objext conftest$ac_exeext
12813 if { (ac_try="$ac_link"
12814 case "(($ac_try" in
12815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816 *) ac_try_echo=$ac_try;;
12817 esac
12818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12819 (eval "$ac_link") 2>conftest.er1
12820 ac_status=$?
12821 grep -v '^ *+' conftest.er1 >conftest.err
12822 rm -f conftest.er1
12823 cat conftest.err >&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); } &&
12826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12827 { (case "(($ac_try" in
12828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829 *) ac_try_echo=$ac_try;;
12830 esac
12831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12832 (eval "$ac_try") 2>&5
12833 ac_status=$?
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; } &&
12836 { ac_try='test -s conftest$ac_exeext'
12837 { (case "(($ac_try" in
12838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12839 *) ac_try_echo=$ac_try;;
12840 esac
12841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12842 (eval "$ac_try") 2>&5
12843 ac_status=$?
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); }; }; then
12846 ac_cv_search_clock_gettime=$ac_res
12847 else
12848 echo "$as_me: failed program was:" >&5
12849 sed 's/^/| /' conftest.$ac_ext >&5
12852 fi
12854 rm -f core conftest.err conftest.$ac_objext \
12855 conftest$ac_exeext
12856 if test "${ac_cv_search_clock_gettime+set}" = set; then
12857 break
12858 fi
12859 done
12860 if test "${ac_cv_search_clock_gettime+set}" = set; then
12861 :
12862 else
12863 ac_cv_search_clock_gettime=no
12864 fi
12865 rm conftest.$ac_ext
12866 LIBS=$ac_func_search_save_LIBS
12867 fi
12868 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12869 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12870 ac_res=$ac_cv_search_clock_gettime
12871 if test "$ac_res" != no; then
12872 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12874 fi
12877 if test "$llvm_cv_enable_libffi" = "yes" ; then
12878 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12879 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12880 if test "${ac_cv_search_ffi_call+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12882 else
12883 ac_func_search_save_LIBS=$LIBS
12884 cat >conftest.$ac_ext <<_ACEOF
12885 /* confdefs.h. */
12886 _ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h. */
12891 /* Override any GCC internal prototype to avoid an error.
12892 Use char because int might match the return type of a GCC
12893 builtin and then its argument prototype would still apply. */
12894 #ifdef __cplusplus
12895 extern "C"
12896 #endif
12897 char ffi_call ();
12898 int
12899 main ()
12900 {
12901 return ffi_call ();
12902 ;
12903 return 0;
12904 }
12905 _ACEOF
12906 for ac_lib in '' ffi; do
12907 if test -z "$ac_lib"; then
12908 ac_res="none required"
12909 else
12910 ac_res=-l$ac_lib
12911 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12912 fi
12913 rm -f conftest.$ac_objext conftest$ac_exeext
12914 if { (ac_try="$ac_link"
12915 case "(($ac_try" in
12916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12917 *) ac_try_echo=$ac_try;;
12918 esac
12919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12920 (eval "$ac_link") 2>conftest.er1
12921 ac_status=$?
12922 grep -v '^ *+' conftest.er1 >conftest.err
12923 rm -f conftest.er1
12924 cat conftest.err >&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); } &&
12927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12928 { (case "(($ac_try" in
12929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930 *) ac_try_echo=$ac_try;;
12931 esac
12932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12933 (eval "$ac_try") 2>&5
12934 ac_status=$?
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); }; } &&
12937 { ac_try='test -s conftest$ac_exeext'
12938 { (case "(($ac_try" in
12939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12940 *) ac_try_echo=$ac_try;;
12941 esac
12942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12943 (eval "$ac_try") 2>&5
12944 ac_status=$?
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; }; then
12947 ac_cv_search_ffi_call=$ac_res
12948 else
12949 echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.$ac_ext >&5
12953 fi
12955 rm -f core conftest.err conftest.$ac_objext \
12956 conftest$ac_exeext
12957 if test "${ac_cv_search_ffi_call+set}" = set; then
12958 break
12959 fi
12960 done
12961 if test "${ac_cv_search_ffi_call+set}" = set; then
12962 :
12963 else
12964 ac_cv_search_ffi_call=no
12965 fi
12966 rm conftest.$ac_ext
12967 LIBS=$ac_func_search_save_LIBS
12968 fi
12969 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12970 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12971 ac_res=$ac_cv_search_ffi_call
12972 if test "$ac_res" != no; then
12973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12975 cat >>confdefs.h <<\_ACEOF
12976 #define HAVE_FFI_CALL 1
12977 _ACEOF
12979 else
12980 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12981 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12982 { (exit 1); exit 1; }; }
12983 fi
12985 fi
12987 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12988 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12989 if test "${ac_cv_search_mallinfo+set}" = set; then
12990 echo $ECHO_N "(cached) $ECHO_C" >&6
12991 else
12992 ac_func_search_save_LIBS=$LIBS
12993 cat >conftest.$ac_ext <<_ACEOF
12994 /* confdefs.h. */
12995 _ACEOF
12996 cat confdefs.h >>conftest.$ac_ext
12997 cat >>conftest.$ac_ext <<_ACEOF
12998 /* end confdefs.h. */
13000 /* Override any GCC internal prototype to avoid an error.
13001 Use char because int might match the return type of a GCC
13002 builtin and then its argument prototype would still apply. */
13003 #ifdef __cplusplus
13004 extern "C"
13005 #endif
13006 char mallinfo ();
13007 int
13008 main ()
13009 {
13010 return mallinfo ();
13011 ;
13012 return 0;
13013 }
13014 _ACEOF
13015 for ac_lib in '' malloc; do
13016 if test -z "$ac_lib"; then
13017 ac_res="none required"
13018 else
13019 ac_res=-l$ac_lib
13020 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13021 fi
13022 rm -f conftest.$ac_objext conftest$ac_exeext
13023 if { (ac_try="$ac_link"
13024 case "(($ac_try" in
13025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13026 *) ac_try_echo=$ac_try;;
13027 esac
13028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13029 (eval "$ac_link") 2>conftest.er1
13030 ac_status=$?
13031 grep -v '^ *+' conftest.er1 >conftest.err
13032 rm -f conftest.er1
13033 cat conftest.err >&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); } &&
13036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13037 { (case "(($ac_try" in
13038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13039 *) ac_try_echo=$ac_try;;
13040 esac
13041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13042 (eval "$ac_try") 2>&5
13043 ac_status=$?
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); }; } &&
13046 { ac_try='test -s conftest$ac_exeext'
13047 { (case "(($ac_try" in
13048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049 *) ac_try_echo=$ac_try;;
13050 esac
13051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13052 (eval "$ac_try") 2>&5
13053 ac_status=$?
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; }; then
13056 ac_cv_search_mallinfo=$ac_res
13057 else
13058 echo "$as_me: failed program was:" >&5
13059 sed 's/^/| /' conftest.$ac_ext >&5
13062 fi
13064 rm -f core conftest.err conftest.$ac_objext \
13065 conftest$ac_exeext
13066 if test "${ac_cv_search_mallinfo+set}" = set; then
13067 break
13068 fi
13069 done
13070 if test "${ac_cv_search_mallinfo+set}" = set; then
13071 :
13072 else
13073 ac_cv_search_mallinfo=no
13074 fi
13075 rm conftest.$ac_ext
13076 LIBS=$ac_func_search_save_LIBS
13077 fi
13078 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13079 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13080 ac_res=$ac_cv_search_mallinfo
13081 if test "$ac_res" != no; then
13082 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13084 cat >>confdefs.h <<\_ACEOF
13085 #define HAVE_MALLINFO 1
13086 _ACEOF
13088 fi
13091 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13093 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13094 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13095 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13096 echo $ECHO_N "(cached) $ECHO_C" >&6
13097 else
13098 ac_check_lib_save_LIBS=$LIBS
13099 LIBS="-lpthread $LIBS"
13100 cat >conftest.$ac_ext <<_ACEOF
13101 /* confdefs.h. */
13102 _ACEOF
13103 cat confdefs.h >>conftest.$ac_ext
13104 cat >>conftest.$ac_ext <<_ACEOF
13105 /* end confdefs.h. */
13107 /* Override any GCC internal prototype to avoid an error.
13108 Use char because int might match the return type of a GCC
13109 builtin and then its argument prototype would still apply. */
13110 #ifdef __cplusplus
13111 extern "C"
13112 #endif
13113 char pthread_mutex_init ();
13114 int
13115 main ()
13116 {
13117 return pthread_mutex_init ();
13118 ;
13119 return 0;
13120 }
13121 _ACEOF
13122 rm -f conftest.$ac_objext conftest$ac_exeext
13123 if { (ac_try="$ac_link"
13124 case "(($ac_try" in
13125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126 *) ac_try_echo=$ac_try;;
13127 esac
13128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129 (eval "$ac_link") 2>conftest.er1
13130 ac_status=$?
13131 grep -v '^ *+' conftest.er1 >conftest.err
13132 rm -f conftest.er1
13133 cat conftest.err >&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } &&
13136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13137 { (case "(($ac_try" in
13138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13139 *) ac_try_echo=$ac_try;;
13140 esac
13141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13142 (eval "$ac_try") 2>&5
13143 ac_status=$?
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; } &&
13146 { ac_try='test -s conftest$ac_exeext'
13147 { (case "(($ac_try" in
13148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149 *) ac_try_echo=$ac_try;;
13150 esac
13151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152 (eval "$ac_try") 2>&5
13153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; }; then
13156 ac_cv_lib_pthread_pthread_mutex_init=yes
13157 else
13158 echo "$as_me: failed program was:" >&5
13159 sed 's/^/| /' conftest.$ac_ext >&5
13161 ac_cv_lib_pthread_pthread_mutex_init=no
13162 fi
13164 rm -f core conftest.err conftest.$ac_objext \
13165 conftest$ac_exeext conftest.$ac_ext
13166 LIBS=$ac_check_lib_save_LIBS
13167 fi
13168 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13169 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13170 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13171 cat >>confdefs.h <<_ACEOF
13172 #define HAVE_LIBPTHREAD 1
13173 _ACEOF
13175 LIBS="-lpthread $LIBS"
13177 fi
13179 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13180 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13181 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13182 echo $ECHO_N "(cached) $ECHO_C" >&6
13183 else
13184 ac_func_search_save_LIBS=$LIBS
13185 cat >conftest.$ac_ext <<_ACEOF
13186 /* confdefs.h. */
13187 _ACEOF
13188 cat confdefs.h >>conftest.$ac_ext
13189 cat >>conftest.$ac_ext <<_ACEOF
13190 /* end confdefs.h. */
13192 /* Override any GCC internal prototype to avoid an error.
13193 Use char because int might match the return type of a GCC
13194 builtin and then its argument prototype would still apply. */
13195 #ifdef __cplusplus
13196 extern "C"
13197 #endif
13198 char pthread_mutex_lock ();
13199 int
13200 main ()
13201 {
13202 return pthread_mutex_lock ();
13203 ;
13204 return 0;
13205 }
13206 _ACEOF
13207 for ac_lib in '' pthread; do
13208 if test -z "$ac_lib"; then
13209 ac_res="none required"
13210 else
13211 ac_res=-l$ac_lib
13212 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13213 fi
13214 rm -f conftest.$ac_objext conftest$ac_exeext
13215 if { (ac_try="$ac_link"
13216 case "(($ac_try" in
13217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13218 *) ac_try_echo=$ac_try;;
13219 esac
13220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13221 (eval "$ac_link") 2>conftest.er1
13222 ac_status=$?
13223 grep -v '^ *+' conftest.er1 >conftest.err
13224 rm -f conftest.er1
13225 cat conftest.err >&5
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); } &&
13228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13229 { (case "(($ac_try" in
13230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13231 *) ac_try_echo=$ac_try;;
13232 esac
13233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13234 (eval "$ac_try") 2>&5
13235 ac_status=$?
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); }; } &&
13238 { ac_try='test -s conftest$ac_exeext'
13239 { (case "(($ac_try" in
13240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13241 *) ac_try_echo=$ac_try;;
13242 esac
13243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13244 (eval "$ac_try") 2>&5
13245 ac_status=$?
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; }; then
13248 ac_cv_search_pthread_mutex_lock=$ac_res
13249 else
13250 echo "$as_me: failed program was:" >&5
13251 sed 's/^/| /' conftest.$ac_ext >&5
13254 fi
13256 rm -f core conftest.err conftest.$ac_objext \
13257 conftest$ac_exeext
13258 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13259 break
13260 fi
13261 done
13262 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13263 :
13264 else
13265 ac_cv_search_pthread_mutex_lock=no
13266 fi
13267 rm conftest.$ac_ext
13268 LIBS=$ac_func_search_save_LIBS
13269 fi
13270 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13271 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13272 ac_res=$ac_cv_search_pthread_mutex_lock
13273 if test "$ac_res" != no; then
13274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13276 cat >>confdefs.h <<\_ACEOF
13277 #define HAVE_PTHREAD_MUTEX_LOCK 1
13278 _ACEOF
13280 fi
13282 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13283 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13284 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13285 echo $ECHO_N "(cached) $ECHO_C" >&6
13286 else
13287 ac_func_search_save_LIBS=$LIBS
13288 cat >conftest.$ac_ext <<_ACEOF
13289 /* confdefs.h. */
13290 _ACEOF
13291 cat confdefs.h >>conftest.$ac_ext
13292 cat >>conftest.$ac_ext <<_ACEOF
13293 /* end confdefs.h. */
13295 /* Override any GCC internal prototype to avoid an error.
13296 Use char because int might match the return type of a GCC
13297 builtin and then its argument prototype would still apply. */
13298 #ifdef __cplusplus
13299 extern "C"
13300 #endif
13301 char pthread_rwlock_init ();
13302 int
13303 main ()
13304 {
13305 return pthread_rwlock_init ();
13306 ;
13307 return 0;
13308 }
13309 _ACEOF
13310 for ac_lib in '' pthread; do
13311 if test -z "$ac_lib"; then
13312 ac_res="none required"
13313 else
13314 ac_res=-l$ac_lib
13315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13316 fi
13317 rm -f conftest.$ac_objext conftest$ac_exeext
13318 if { (ac_try="$ac_link"
13319 case "(($ac_try" in
13320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321 *) ac_try_echo=$ac_try;;
13322 esac
13323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324 (eval "$ac_link") 2>conftest.er1
13325 ac_status=$?
13326 grep -v '^ *+' conftest.er1 >conftest.err
13327 rm -f conftest.er1
13328 cat conftest.err >&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } &&
13331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13332 { (case "(($ac_try" in
13333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334 *) ac_try_echo=$ac_try;;
13335 esac
13336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337 (eval "$ac_try") 2>&5
13338 ac_status=$?
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); }; } &&
13341 { ac_try='test -s conftest$ac_exeext'
13342 { (case "(($ac_try" in
13343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13344 *) ac_try_echo=$ac_try;;
13345 esac
13346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347 (eval "$ac_try") 2>&5
13348 ac_status=$?
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; }; then
13351 ac_cv_search_pthread_rwlock_init=$ac_res
13352 else
13353 echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13357 fi
13359 rm -f core conftest.err conftest.$ac_objext \
13360 conftest$ac_exeext
13361 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13362 break
13363 fi
13364 done
13365 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13366 :
13367 else
13368 ac_cv_search_pthread_rwlock_init=no
13369 fi
13370 rm conftest.$ac_ext
13371 LIBS=$ac_func_search_save_LIBS
13372 fi
13373 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13374 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13375 ac_res=$ac_cv_search_pthread_rwlock_init
13376 if test "$ac_res" != no; then
13377 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13379 cat >>confdefs.h <<\_ACEOF
13380 #define HAVE_PTHREAD_RWLOCK_INIT 1
13381 _ACEOF
13383 fi
13385 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13386 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13387 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13388 echo $ECHO_N "(cached) $ECHO_C" >&6
13389 else
13390 ac_func_search_save_LIBS=$LIBS
13391 cat >conftest.$ac_ext <<_ACEOF
13392 /* confdefs.h. */
13393 _ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13398 /* Override any GCC internal prototype to avoid an error.
13399 Use char because int might match the return type of a GCC
13400 builtin and then its argument prototype would still apply. */
13401 #ifdef __cplusplus
13402 extern "C"
13403 #endif
13404 char pthread_getspecific ();
13405 int
13406 main ()
13407 {
13408 return pthread_getspecific ();
13409 ;
13410 return 0;
13411 }
13412 _ACEOF
13413 for ac_lib in '' pthread; do
13414 if test -z "$ac_lib"; then
13415 ac_res="none required"
13416 else
13417 ac_res=-l$ac_lib
13418 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13419 fi
13420 rm -f conftest.$ac_objext conftest$ac_exeext
13421 if { (ac_try="$ac_link"
13422 case "(($ac_try" in
13423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424 *) ac_try_echo=$ac_try;;
13425 esac
13426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13427 (eval "$ac_link") 2>conftest.er1
13428 ac_status=$?
13429 grep -v '^ *+' conftest.er1 >conftest.err
13430 rm -f conftest.er1
13431 cat conftest.err >&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); } &&
13434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13435 { (case "(($ac_try" in
13436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13437 *) ac_try_echo=$ac_try;;
13438 esac
13439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13440 (eval "$ac_try") 2>&5
13441 ac_status=$?
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; } &&
13444 { ac_try='test -s conftest$ac_exeext'
13445 { (case "(($ac_try" in
13446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13447 *) ac_try_echo=$ac_try;;
13448 esac
13449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13450 (eval "$ac_try") 2>&5
13451 ac_status=$?
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; }; then
13454 ac_cv_search_pthread_getspecific=$ac_res
13455 else
13456 echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13460 fi
13462 rm -f core conftest.err conftest.$ac_objext \
13463 conftest$ac_exeext
13464 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13465 break
13466 fi
13467 done
13468 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13469 :
13470 else
13471 ac_cv_search_pthread_getspecific=no
13472 fi
13473 rm conftest.$ac_ext
13474 LIBS=$ac_func_search_save_LIBS
13475 fi
13476 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13477 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13478 ac_res=$ac_cv_search_pthread_getspecific
13479 if test "$ac_res" != no; then
13480 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13482 cat >>confdefs.h <<\_ACEOF
13483 #define HAVE_PTHREAD_GETSPECIFIC 1
13484 _ACEOF
13486 fi
13488 fi
13490 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13492 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13493 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13494 if test "${ac_cv_lib_z_compress2+set}" = set; then
13495 echo $ECHO_N "(cached) $ECHO_C" >&6
13496 else
13497 ac_check_lib_save_LIBS=$LIBS
13498 LIBS="-lz $LIBS"
13499 cat >conftest.$ac_ext <<_ACEOF
13500 /* confdefs.h. */
13501 _ACEOF
13502 cat confdefs.h >>conftest.$ac_ext
13503 cat >>conftest.$ac_ext <<_ACEOF
13504 /* end confdefs.h. */
13506 /* Override any GCC internal prototype to avoid an error.
13507 Use char because int might match the return type of a GCC
13508 builtin and then its argument prototype would still apply. */
13509 #ifdef __cplusplus
13510 extern "C"
13511 #endif
13512 char compress2 ();
13513 int
13514 main ()
13515 {
13516 return compress2 ();
13517 ;
13518 return 0;
13519 }
13520 _ACEOF
13521 rm -f conftest.$ac_objext conftest$ac_exeext
13522 if { (ac_try="$ac_link"
13523 case "(($ac_try" in
13524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13525 *) ac_try_echo=$ac_try;;
13526 esac
13527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13528 (eval "$ac_link") 2>conftest.er1
13529 ac_status=$?
13530 grep -v '^ *+' conftest.er1 >conftest.err
13531 rm -f conftest.er1
13532 cat conftest.err >&5
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); } &&
13535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13536 { (case "(($ac_try" in
13537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13538 *) ac_try_echo=$ac_try;;
13539 esac
13540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13541 (eval "$ac_try") 2>&5
13542 ac_status=$?
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); }; } &&
13545 { ac_try='test -s conftest$ac_exeext'
13546 { (case "(($ac_try" in
13547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13548 *) ac_try_echo=$ac_try;;
13549 esac
13550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13551 (eval "$ac_try") 2>&5
13552 ac_status=$?
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; }; then
13555 ac_cv_lib_z_compress2=yes
13556 else
13557 echo "$as_me: failed program was:" >&5
13558 sed 's/^/| /' conftest.$ac_ext >&5
13560 ac_cv_lib_z_compress2=no
13561 fi
13563 rm -f core conftest.err conftest.$ac_objext \
13564 conftest$ac_exeext conftest.$ac_ext
13565 LIBS=$ac_check_lib_save_LIBS
13566 fi
13567 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13568 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13569 if test $ac_cv_lib_z_compress2 = yes; then
13570 cat >>confdefs.h <<_ACEOF
13571 #define HAVE_LIBZ 1
13572 _ACEOF
13574 LIBS="-lz $LIBS"
13576 fi
13578 fi
13581 # Check whether --with-udis86 was given.
13582 if test "${with_udis86+set}" = set; then
13583 withval=$with_udis86;
13584 USE_UDIS86=1
13586 case "$withval" in
13587 /usr/lib|yes) ;;
13588 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13589 esac
13591 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13592 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13593 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13594 echo $ECHO_N "(cached) $ECHO_C" >&6
13595 else
13596 ac_check_lib_save_LIBS=$LIBS
13597 LIBS="-ludis86 $LIBS"
13598 cat >conftest.$ac_ext <<_ACEOF
13599 /* confdefs.h. */
13600 _ACEOF
13601 cat confdefs.h >>conftest.$ac_ext
13602 cat >>conftest.$ac_ext <<_ACEOF
13603 /* end confdefs.h. */
13605 /* Override any GCC internal prototype to avoid an error.
13606 Use char because int might match the return type of a GCC
13607 builtin and then its argument prototype would still apply. */
13608 #ifdef __cplusplus
13609 extern "C"
13610 #endif
13611 char ud_init ();
13612 int
13613 main ()
13614 {
13615 return ud_init ();
13616 ;
13617 return 0;
13618 }
13619 _ACEOF
13620 rm -f conftest.$ac_objext conftest$ac_exeext
13621 if { (ac_try="$ac_link"
13622 case "(($ac_try" in
13623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624 *) ac_try_echo=$ac_try;;
13625 esac
13626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627 (eval "$ac_link") 2>conftest.er1
13628 ac_status=$?
13629 grep -v '^ *+' conftest.er1 >conftest.err
13630 rm -f conftest.er1
13631 cat conftest.err >&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); } &&
13634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13635 { (case "(($ac_try" in
13636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637 *) ac_try_echo=$ac_try;;
13638 esac
13639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13640 (eval "$ac_try") 2>&5
13641 ac_status=$?
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; } &&
13644 { ac_try='test -s conftest$ac_exeext'
13645 { (case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13648 esac
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_try") 2>&5
13651 ac_status=$?
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }; then
13654 ac_cv_lib_udis86_ud_init=yes
13655 else
13656 echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13659 ac_cv_lib_udis86_ud_init=no
13660 fi
13662 rm -f core conftest.err conftest.$ac_objext \
13663 conftest$ac_exeext conftest.$ac_ext
13664 LIBS=$ac_check_lib_save_LIBS
13665 fi
13666 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13667 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13668 if test $ac_cv_lib_udis86_ud_init = yes; then
13669 cat >>confdefs.h <<_ACEOF
13670 #define HAVE_LIBUDIS86 1
13671 _ACEOF
13673 LIBS="-ludis86 $LIBS"
13675 else
13677 echo "Error! You need to have libudis86 around."
13678 exit -1
13680 fi
13683 else
13684 USE_UDIS86=0
13686 fi
13689 cat >>confdefs.h <<_ACEOF
13690 #define USE_UDIS86 $USE_UDIS86
13691 _ACEOF
13695 # Check whether --with-oprofile was given.
13696 if test "${with_oprofile+set}" = set; then
13697 withval=$with_oprofile;
13698 USE_OPROFILE=1
13700 case "$withval" in
13701 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13702 no) llvm_cv_oppath=
13703 USE_OPROFILE=0
13704 ;;
13705 *) llvm_cv_oppath="${withval}/lib/oprofile"
13706 CPPFLAGS="-I${withval}/include";;
13707 esac
13708 case $llvm_cv_os_type in
13709 Linux)
13710 if test -n "$llvm_cv_oppath" ; then
13711 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13712 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13713 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13714 if test "${ac_cv_search_bfd_init+set}" = set; then
13715 echo $ECHO_N "(cached) $ECHO_C" >&6
13716 else
13717 ac_func_search_save_LIBS=$LIBS
13718 cat >conftest.$ac_ext <<_ACEOF
13719 /* confdefs.h. */
13720 _ACEOF
13721 cat confdefs.h >>conftest.$ac_ext
13722 cat >>conftest.$ac_ext <<_ACEOF
13723 /* end confdefs.h. */
13725 /* Override any GCC internal prototype to avoid an error.
13726 Use char because int might match the return type of a GCC
13727 builtin and then its argument prototype would still apply. */
13728 #ifdef __cplusplus
13729 extern "C"
13730 #endif
13731 char bfd_init ();
13732 int
13733 main ()
13734 {
13735 return bfd_init ();
13736 ;
13737 return 0;
13738 }
13739 _ACEOF
13740 for ac_lib in '' bfd; do
13741 if test -z "$ac_lib"; then
13742 ac_res="none required"
13743 else
13744 ac_res=-l$ac_lib
13745 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13746 fi
13747 rm -f conftest.$ac_objext conftest$ac_exeext
13748 if { (ac_try="$ac_link"
13749 case "(($ac_try" in
13750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13751 *) ac_try_echo=$ac_try;;
13752 esac
13753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13754 (eval "$ac_link") 2>conftest.er1
13755 ac_status=$?
13756 grep -v '^ *+' conftest.er1 >conftest.err
13757 rm -f conftest.er1
13758 cat conftest.err >&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); } &&
13761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13762 { (case "(($ac_try" in
13763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13764 *) ac_try_echo=$ac_try;;
13765 esac
13766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13767 (eval "$ac_try") 2>&5
13768 ac_status=$?
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); }; } &&
13771 { ac_try='test -s conftest$ac_exeext'
13772 { (case "(($ac_try" in
13773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13774 *) ac_try_echo=$ac_try;;
13775 esac
13776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13777 (eval "$ac_try") 2>&5
13778 ac_status=$?
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); }; }; then
13781 ac_cv_search_bfd_init=$ac_res
13782 else
13783 echo "$as_me: failed program was:" >&5
13784 sed 's/^/| /' conftest.$ac_ext >&5
13787 fi
13789 rm -f core conftest.err conftest.$ac_objext \
13790 conftest$ac_exeext
13791 if test "${ac_cv_search_bfd_init+set}" = set; then
13792 break
13793 fi
13794 done
13795 if test "${ac_cv_search_bfd_init+set}" = set; then
13796 :
13797 else
13798 ac_cv_search_bfd_init=no
13799 fi
13800 rm conftest.$ac_ext
13801 LIBS=$ac_func_search_save_LIBS
13802 fi
13803 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13804 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13805 ac_res=$ac_cv_search_bfd_init
13806 if test "$ac_res" != no; then
13807 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13809 fi
13811 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13812 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13813 if test "${ac_cv_search_op_open_agent+set}" = set; then
13814 echo $ECHO_N "(cached) $ECHO_C" >&6
13815 else
13816 ac_func_search_save_LIBS=$LIBS
13817 cat >conftest.$ac_ext <<_ACEOF
13818 /* confdefs.h. */
13819 _ACEOF
13820 cat confdefs.h >>conftest.$ac_ext
13821 cat >>conftest.$ac_ext <<_ACEOF
13822 /* end confdefs.h. */
13824 /* Override any GCC internal prototype to avoid an error.
13825 Use char because int might match the return type of a GCC
13826 builtin and then its argument prototype would still apply. */
13827 #ifdef __cplusplus
13828 extern "C"
13829 #endif
13830 char op_open_agent ();
13831 int
13832 main ()
13833 {
13834 return op_open_agent ();
13835 ;
13836 return 0;
13837 }
13838 _ACEOF
13839 for ac_lib in '' opagent; do
13840 if test -z "$ac_lib"; then
13841 ac_res="none required"
13842 else
13843 ac_res=-l$ac_lib
13844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13845 fi
13846 rm -f conftest.$ac_objext conftest$ac_exeext
13847 if { (ac_try="$ac_link"
13848 case "(($ac_try" in
13849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13850 *) ac_try_echo=$ac_try;;
13851 esac
13852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13853 (eval "$ac_link") 2>conftest.er1
13854 ac_status=$?
13855 grep -v '^ *+' conftest.er1 >conftest.err
13856 rm -f conftest.er1
13857 cat conftest.err >&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); } &&
13860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13861 { (case "(($ac_try" in
13862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13863 *) ac_try_echo=$ac_try;;
13864 esac
13865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13866 (eval "$ac_try") 2>&5
13867 ac_status=$?
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); }; } &&
13870 { ac_try='test -s conftest$ac_exeext'
13871 { (case "(($ac_try" in
13872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873 *) ac_try_echo=$ac_try;;
13874 esac
13875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13876 (eval "$ac_try") 2>&5
13877 ac_status=$?
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; }; then
13880 ac_cv_search_op_open_agent=$ac_res
13881 else
13882 echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13886 fi
13888 rm -f core conftest.err conftest.$ac_objext \
13889 conftest$ac_exeext
13890 if test "${ac_cv_search_op_open_agent+set}" = set; then
13891 break
13892 fi
13893 done
13894 if test "${ac_cv_search_op_open_agent+set}" = set; then
13895 :
13896 else
13897 ac_cv_search_op_open_agent=no
13898 fi
13899 rm conftest.$ac_ext
13900 LIBS=$ac_func_search_save_LIBS
13901 fi
13902 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13903 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13904 ac_res=$ac_cv_search_op_open_agent
13905 if test "$ac_res" != no; then
13906 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13908 else
13910 echo "Error! You need to have libopagent around."
13911 exit -1
13913 fi
13915 if test "${ac_cv_header_opagent_h+set}" = set; then
13916 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13917 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13918 if test "${ac_cv_header_opagent_h+set}" = set; then
13919 echo $ECHO_N "(cached) $ECHO_C" >&6
13920 fi
13921 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13922 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13923 else
13924 # Is the header compilable?
13925 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13926 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13927 cat >conftest.$ac_ext <<_ACEOF
13928 /* confdefs.h. */
13929 _ACEOF
13930 cat confdefs.h >>conftest.$ac_ext
13931 cat >>conftest.$ac_ext <<_ACEOF
13932 /* end confdefs.h. */
13933 $ac_includes_default
13934 #include <opagent.h>
13935 _ACEOF
13936 rm -f conftest.$ac_objext
13937 if { (ac_try="$ac_compile"
13938 case "(($ac_try" in
13939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940 *) ac_try_echo=$ac_try;;
13941 esac
13942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13943 (eval "$ac_compile") 2>conftest.er1
13944 ac_status=$?
13945 grep -v '^ *+' conftest.er1 >conftest.err
13946 rm -f conftest.er1
13947 cat conftest.err >&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } &&
13950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13951 { (case "(($ac_try" in
13952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953 *) ac_try_echo=$ac_try;;
13954 esac
13955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13956 (eval "$ac_try") 2>&5
13957 ac_status=$?
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; } &&
13960 { ac_try='test -s conftest.$ac_objext'
13961 { (case "(($ac_try" in
13962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13963 *) ac_try_echo=$ac_try;;
13964 esac
13965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13966 (eval "$ac_try") 2>&5
13967 ac_status=$?
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); }; }; then
13970 ac_header_compiler=yes
13971 else
13972 echo "$as_me: failed program was:" >&5
13973 sed 's/^/| /' conftest.$ac_ext >&5
13975 ac_header_compiler=no
13976 fi
13978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13980 echo "${ECHO_T}$ac_header_compiler" >&6; }
13982 # Is the header present?
13983 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13984 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13985 cat >conftest.$ac_ext <<_ACEOF
13986 /* confdefs.h. */
13987 _ACEOF
13988 cat confdefs.h >>conftest.$ac_ext
13989 cat >>conftest.$ac_ext <<_ACEOF
13990 /* end confdefs.h. */
13991 #include <opagent.h>
13992 _ACEOF
13993 if { (ac_try="$ac_cpp conftest.$ac_ext"
13994 case "(($ac_try" in
13995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13996 *) ac_try_echo=$ac_try;;
13997 esac
13998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14000 ac_status=$?
14001 grep -v '^ *+' conftest.er1 >conftest.err
14002 rm -f conftest.er1
14003 cat conftest.err >&5
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); } >/dev/null; then
14006 if test -s conftest.err; then
14007 ac_cpp_err=$ac_c_preproc_warn_flag
14008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14009 else
14010 ac_cpp_err=
14011 fi
14012 else
14013 ac_cpp_err=yes
14014 fi
14015 if test -z "$ac_cpp_err"; then
14016 ac_header_preproc=yes
14017 else
14018 echo "$as_me: failed program was:" >&5
14019 sed 's/^/| /' conftest.$ac_ext >&5
14021 ac_header_preproc=no
14022 fi
14024 rm -f conftest.err conftest.$ac_ext
14025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14026 echo "${ECHO_T}$ac_header_preproc" >&6; }
14028 # So? What about this header?
14029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14030 yes:no: )
14031 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14032 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14033 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14034 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14035 ac_header_preproc=yes
14036 ;;
14037 no:yes:* )
14038 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14039 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14040 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14041 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14042 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14043 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14044 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14045 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14046 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14047 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14048 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14049 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14050 ( cat <<\_ASBOX
14051 ## ------------------------------------ ##
14052 ## Report this to http://llvm.org/bugs/ ##
14053 ## ------------------------------------ ##
14054 _ASBOX
14055 ) | sed "s/^/$as_me: WARNING: /" >&2
14056 ;;
14057 esac
14058 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14059 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14060 if test "${ac_cv_header_opagent_h+set}" = set; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14062 else
14063 ac_cv_header_opagent_h=$ac_header_preproc
14064 fi
14065 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14066 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14068 fi
14069 if test $ac_cv_header_opagent_h = yes; then
14070 :
14071 else
14073 echo "Error! You need to have opagent.h around."
14074 exit -1
14076 fi
14079 fi ;;
14080 *)
14081 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
14082 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
14083 { (exit 1); exit 1; }; } ;;
14084 esac
14086 else
14088 USE_OPROFILE=0
14091 fi
14094 cat >>confdefs.h <<_ACEOF
14095 #define LLVM_USE_OPROFILE $USE_OPROFILE
14096 _ACEOF
14100 # Check whether --with-intel-jitevents was given.
14101 if test "${with_intel_jitevents+set}" = set; then
14102 withval=$with_intel_jitevents;
14103 case "$withval" in
14104 yes) USE_INTEL_JITEVENTS=1
14105 ;;
14106 no) USE_INTEL_JITEVENTS=0
14107 ;;
14108 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
14109 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
14110 { (exit 1); exit 1; }; };;
14111 esac
14113 case $llvm_cv_os_type in
14114 Linux|Win32|Cygwin|MingW) ;;
14115 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
14116 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
14117 { (exit 1); exit 1; }; };;
14118 esac
14120 case "$llvm_cv_target_arch" in
14121 x86|x86_64) ;;
14122 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
14123 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
14124 { (exit 1); exit 1; }; };;
14125 esac
14127 else
14129 USE_INTEL_JITEVENTS=0
14132 fi
14135 cat >>confdefs.h <<_ACEOF
14136 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14137 _ACEOF
14140 for ac_prog in xml2-config
14141 do
14142 # Extract the first word of "$ac_prog", so it can be a program name with args.
14143 set dummy $ac_prog; ac_word=$2
14144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14146 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14148 else
14149 if test -n "$XML2CONFIG"; then
14150 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14151 else
14152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14153 for as_dir in $PATH
14154 do
14155 IFS=$as_save_IFS
14156 test -z "$as_dir" && as_dir=.
14157 for ac_exec_ext in '' $ac_executable_extensions; do
14158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14159 ac_cv_prog_XML2CONFIG="$ac_prog"
14160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14161 break 2
14162 fi
14163 done
14164 done
14165 IFS=$as_save_IFS
14167 fi
14168 fi
14169 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14170 if test -n "$XML2CONFIG"; then
14171 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14172 echo "${ECHO_T}$XML2CONFIG" >&6; }
14173 else
14174 { echo "$as_me:$LINENO: result: no" >&5
14175 echo "${ECHO_T}no" >&6; }
14176 fi
14179 test -n "$XML2CONFIG" && break
14180 done
14183 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14184 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14185 if test "x$XML2CONFIG" = "x"; then
14186 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14187 echo "${ECHO_T}xml2-config not found" >&6; }
14188 else
14189 LIBXML2_INC=`$XML2CONFIG --cflags`
14190 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14191 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14192 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14193 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14194 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14196 else
14197 ac_check_lib_save_LIBS=$LIBS
14198 LIBS="-lxml2 $LIBS"
14199 cat >conftest.$ac_ext <<_ACEOF
14200 /* confdefs.h. */
14201 _ACEOF
14202 cat confdefs.h >>conftest.$ac_ext
14203 cat >>conftest.$ac_ext <<_ACEOF
14204 /* end confdefs.h. */
14206 /* Override any GCC internal prototype to avoid an error.
14207 Use char because int might match the return type of a GCC
14208 builtin and then its argument prototype would still apply. */
14209 #ifdef __cplusplus
14210 extern "C"
14211 #endif
14212 char xmlReadFile ();
14213 int
14214 main ()
14215 {
14216 return xmlReadFile ();
14217 ;
14218 return 0;
14219 }
14220 _ACEOF
14221 rm -f conftest.$ac_objext conftest$ac_exeext
14222 if { (ac_try="$ac_link"
14223 case "(($ac_try" in
14224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14225 *) ac_try_echo=$ac_try;;
14226 esac
14227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14228 (eval "$ac_link") 2>conftest.er1
14229 ac_status=$?
14230 grep -v '^ *+' conftest.er1 >conftest.err
14231 rm -f conftest.er1
14232 cat conftest.err >&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); } &&
14235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14236 { (case "(($ac_try" in
14237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14238 *) ac_try_echo=$ac_try;;
14239 esac
14240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14241 (eval "$ac_try") 2>&5
14242 ac_status=$?
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; } &&
14245 { ac_try='test -s conftest$ac_exeext'
14246 { (case "(($ac_try" in
14247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248 *) ac_try_echo=$ac_try;;
14249 esac
14250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251 (eval "$ac_try") 2>&5
14252 ac_status=$?
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; }; then
14255 ac_cv_lib_xml2_xmlReadFile=yes
14256 else
14257 echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14260 ac_cv_lib_xml2_xmlReadFile=no
14261 fi
14263 rm -f core conftest.err conftest.$ac_objext \
14264 conftest$ac_exeext conftest.$ac_ext
14265 LIBS=$ac_check_lib_save_LIBS
14266 fi
14267 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14268 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14269 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14271 cat >>confdefs.h <<\_ACEOF
14272 #define CLANG_HAVE_LIBXML 1
14273 _ACEOF
14275 LIBXML2_LIBS="-lxml2"
14276 fi
14278 fi
14288 ac_header_dirent=no
14289 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14290 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14291 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14292 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14294 echo $ECHO_N "(cached) $ECHO_C" >&6
14295 else
14296 cat >conftest.$ac_ext <<_ACEOF
14297 /* confdefs.h. */
14298 _ACEOF
14299 cat confdefs.h >>conftest.$ac_ext
14300 cat >>conftest.$ac_ext <<_ACEOF
14301 /* end confdefs.h. */
14302 #include <sys/types.h>
14303 #include <$ac_hdr>
14305 int
14306 main ()
14307 {
14308 if ((DIR *) 0)
14309 return 0;
14310 ;
14311 return 0;
14312 }
14313 _ACEOF
14314 rm -f conftest.$ac_objext
14315 if { (ac_try="$ac_compile"
14316 case "(($ac_try" in
14317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14318 *) ac_try_echo=$ac_try;;
14319 esac
14320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14321 (eval "$ac_compile") 2>conftest.er1
14322 ac_status=$?
14323 grep -v '^ *+' conftest.er1 >conftest.err
14324 rm -f conftest.er1
14325 cat conftest.err >&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } &&
14328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14329 { (case "(($ac_try" in
14330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14331 *) ac_try_echo=$ac_try;;
14332 esac
14333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14334 (eval "$ac_try") 2>&5
14335 ac_status=$?
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); }; } &&
14338 { ac_try='test -s conftest.$ac_objext'
14339 { (case "(($ac_try" in
14340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14341 *) ac_try_echo=$ac_try;;
14342 esac
14343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14344 (eval "$ac_try") 2>&5
14345 ac_status=$?
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }; }; then
14348 eval "$as_ac_Header=yes"
14349 else
14350 echo "$as_me: failed program was:" >&5
14351 sed 's/^/| /' conftest.$ac_ext >&5
14353 eval "$as_ac_Header=no"
14354 fi
14356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14357 fi
14358 ac_res=`eval echo '${'$as_ac_Header'}'`
14359 { echo "$as_me:$LINENO: result: $ac_res" >&5
14360 echo "${ECHO_T}$ac_res" >&6; }
14361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14362 cat >>confdefs.h <<_ACEOF
14363 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14364 _ACEOF
14366 ac_header_dirent=$ac_hdr; break
14367 fi
14369 done
14370 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14371 if test $ac_header_dirent = dirent.h; then
14372 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14373 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14374 if test "${ac_cv_search_opendir+set}" = set; then
14375 echo $ECHO_N "(cached) $ECHO_C" >&6
14376 else
14377 ac_func_search_save_LIBS=$LIBS
14378 cat >conftest.$ac_ext <<_ACEOF
14379 /* confdefs.h. */
14380 _ACEOF
14381 cat confdefs.h >>conftest.$ac_ext
14382 cat >>conftest.$ac_ext <<_ACEOF
14383 /* end confdefs.h. */
14385 /* Override any GCC internal prototype to avoid an error.
14386 Use char because int might match the return type of a GCC
14387 builtin and then its argument prototype would still apply. */
14388 #ifdef __cplusplus
14389 extern "C"
14390 #endif
14391 char opendir ();
14392 int
14393 main ()
14394 {
14395 return opendir ();
14396 ;
14397 return 0;
14398 }
14399 _ACEOF
14400 for ac_lib in '' dir; do
14401 if test -z "$ac_lib"; then
14402 ac_res="none required"
14403 else
14404 ac_res=-l$ac_lib
14405 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14406 fi
14407 rm -f conftest.$ac_objext conftest$ac_exeext
14408 if { (ac_try="$ac_link"
14409 case "(($ac_try" in
14410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14411 *) ac_try_echo=$ac_try;;
14412 esac
14413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14414 (eval "$ac_link") 2>conftest.er1
14415 ac_status=$?
14416 grep -v '^ *+' conftest.er1 >conftest.err
14417 rm -f conftest.er1
14418 cat conftest.err >&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); } &&
14421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14422 { (case "(($ac_try" in
14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424 *) ac_try_echo=$ac_try;;
14425 esac
14426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14427 (eval "$ac_try") 2>&5
14428 ac_status=$?
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; } &&
14431 { ac_try='test -s conftest$ac_exeext'
14432 { (case "(($ac_try" in
14433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14434 *) ac_try_echo=$ac_try;;
14435 esac
14436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14437 (eval "$ac_try") 2>&5
14438 ac_status=$?
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; }; then
14441 ac_cv_search_opendir=$ac_res
14442 else
14443 echo "$as_me: failed program was:" >&5
14444 sed 's/^/| /' conftest.$ac_ext >&5
14447 fi
14449 rm -f core conftest.err conftest.$ac_objext \
14450 conftest$ac_exeext
14451 if test "${ac_cv_search_opendir+set}" = set; then
14452 break
14453 fi
14454 done
14455 if test "${ac_cv_search_opendir+set}" = set; then
14456 :
14457 else
14458 ac_cv_search_opendir=no
14459 fi
14460 rm conftest.$ac_ext
14461 LIBS=$ac_func_search_save_LIBS
14462 fi
14463 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14464 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14465 ac_res=$ac_cv_search_opendir
14466 if test "$ac_res" != no; then
14467 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14469 fi
14471 else
14472 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14473 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14474 if test "${ac_cv_search_opendir+set}" = set; then
14475 echo $ECHO_N "(cached) $ECHO_C" >&6
14476 else
14477 ac_func_search_save_LIBS=$LIBS
14478 cat >conftest.$ac_ext <<_ACEOF
14479 /* confdefs.h. */
14480 _ACEOF
14481 cat confdefs.h >>conftest.$ac_ext
14482 cat >>conftest.$ac_ext <<_ACEOF
14483 /* end confdefs.h. */
14485 /* Override any GCC internal prototype to avoid an error.
14486 Use char because int might match the return type of a GCC
14487 builtin and then its argument prototype would still apply. */
14488 #ifdef __cplusplus
14489 extern "C"
14490 #endif
14491 char opendir ();
14492 int
14493 main ()
14494 {
14495 return opendir ();
14496 ;
14497 return 0;
14498 }
14499 _ACEOF
14500 for ac_lib in '' x; do
14501 if test -z "$ac_lib"; then
14502 ac_res="none required"
14503 else
14504 ac_res=-l$ac_lib
14505 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14506 fi
14507 rm -f conftest.$ac_objext conftest$ac_exeext
14508 if { (ac_try="$ac_link"
14509 case "(($ac_try" in
14510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14511 *) ac_try_echo=$ac_try;;
14512 esac
14513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14514 (eval "$ac_link") 2>conftest.er1
14515 ac_status=$?
14516 grep -v '^ *+' conftest.er1 >conftest.err
14517 rm -f conftest.er1
14518 cat conftest.err >&5
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); } &&
14521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14522 { (case "(($ac_try" in
14523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524 *) ac_try_echo=$ac_try;;
14525 esac
14526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527 (eval "$ac_try") 2>&5
14528 ac_status=$?
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; } &&
14531 { ac_try='test -s conftest$ac_exeext'
14532 { (case "(($ac_try" in
14533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534 *) ac_try_echo=$ac_try;;
14535 esac
14536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537 (eval "$ac_try") 2>&5
14538 ac_status=$?
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); }; }; then
14541 ac_cv_search_opendir=$ac_res
14542 else
14543 echo "$as_me: failed program was:" >&5
14544 sed 's/^/| /' conftest.$ac_ext >&5
14547 fi
14549 rm -f core conftest.err conftest.$ac_objext \
14550 conftest$ac_exeext
14551 if test "${ac_cv_search_opendir+set}" = set; then
14552 break
14553 fi
14554 done
14555 if test "${ac_cv_search_opendir+set}" = set; then
14556 :
14557 else
14558 ac_cv_search_opendir=no
14559 fi
14560 rm conftest.$ac_ext
14561 LIBS=$ac_func_search_save_LIBS
14562 fi
14563 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14564 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14565 ac_res=$ac_cv_search_opendir
14566 if test "$ac_res" != no; then
14567 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14569 fi
14571 fi
14573 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14574 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14575 if test "${ac_cv_header_mmap_anon+set}" = set; then
14576 echo $ECHO_N "(cached) $ECHO_C" >&6
14577 else
14578 ac_ext=c
14579 ac_cpp='$CPP $CPPFLAGS'
14580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14584 cat >conftest.$ac_ext <<_ACEOF
14585 /* confdefs.h. */
14586 _ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h. */
14590 #include <sys/mman.h>
14591 #include <unistd.h>
14592 #include <fcntl.h>
14593 int
14594 main ()
14595 {
14596 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14597 ;
14598 return 0;
14599 }
14600 _ACEOF
14601 rm -f conftest.$ac_objext
14602 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
14609 ac_status=$?
14610 grep -v '^ *+' conftest.er1 >conftest.err
14611 rm -f conftest.er1
14612 cat conftest.err >&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); } &&
14615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14616 { (case "(($ac_try" in
14617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14618 *) ac_try_echo=$ac_try;;
14619 esac
14620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14621 (eval "$ac_try") 2>&5
14622 ac_status=$?
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); }; } &&
14625 { ac_try='test -s conftest.$ac_objext'
14626 { (case "(($ac_try" in
14627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14628 *) ac_try_echo=$ac_try;;
14629 esac
14630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14631 (eval "$ac_try") 2>&5
14632 ac_status=$?
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); }; }; then
14635 ac_cv_header_mmap_anon=yes
14636 else
14637 echo "$as_me: failed program was:" >&5
14638 sed 's/^/| /' conftest.$ac_ext >&5
14640 ac_cv_header_mmap_anon=no
14641 fi
14643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14644 ac_ext=c
14645 ac_cpp='$CPP $CPPFLAGS'
14646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14651 fi
14652 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14653 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14654 if test "$ac_cv_header_mmap_anon" = yes; then
14656 cat >>confdefs.h <<\_ACEOF
14657 #define HAVE_MMAP_ANONYMOUS 1
14658 _ACEOF
14660 fi
14662 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14663 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14664 if test "${ac_cv_header_stat_broken+set}" = set; then
14665 echo $ECHO_N "(cached) $ECHO_C" >&6
14666 else
14667 cat >conftest.$ac_ext <<_ACEOF
14668 /* confdefs.h. */
14669 _ACEOF
14670 cat confdefs.h >>conftest.$ac_ext
14671 cat >>conftest.$ac_ext <<_ACEOF
14672 /* end confdefs.h. */
14673 #include <sys/types.h>
14674 #include <sys/stat.h>
14676 #if defined S_ISBLK && defined S_IFDIR
14677 # if S_ISBLK (S_IFDIR)
14678 You lose.
14679 # endif
14680 #endif
14682 #if defined S_ISBLK && defined S_IFCHR
14683 # if S_ISBLK (S_IFCHR)
14684 You lose.
14685 # endif
14686 #endif
14688 #if defined S_ISLNK && defined S_IFREG
14689 # if S_ISLNK (S_IFREG)
14690 You lose.
14691 # endif
14692 #endif
14694 #if defined S_ISSOCK && defined S_IFREG
14695 # if S_ISSOCK (S_IFREG)
14696 You lose.
14697 # endif
14698 #endif
14700 _ACEOF
14701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14702 $EGREP "You lose" >/dev/null 2>&1; then
14703 ac_cv_header_stat_broken=yes
14704 else
14705 ac_cv_header_stat_broken=no
14706 fi
14707 rm -f conftest*
14709 fi
14710 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14711 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14712 if test $ac_cv_header_stat_broken = yes; then
14714 cat >>confdefs.h <<\_ACEOF
14715 #define STAT_MACROS_BROKEN 1
14716 _ACEOF
14718 fi
14720 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14721 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14722 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14723 echo $ECHO_N "(cached) $ECHO_C" >&6
14724 else
14725 cat >conftest.$ac_ext <<_ACEOF
14726 /* confdefs.h. */
14727 _ACEOF
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h. */
14731 #include <sys/types.h>
14732 #include <sys/wait.h>
14733 #ifndef WEXITSTATUS
14734 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14735 #endif
14736 #ifndef WIFEXITED
14737 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14738 #endif
14740 int
14741 main ()
14742 {
14743 int s;
14744 wait (&s);
14745 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14746 ;
14747 return 0;
14748 }
14749 _ACEOF
14750 rm -f conftest.$ac_objext
14751 if { (ac_try="$ac_compile"
14752 case "(($ac_try" in
14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754 *) ac_try_echo=$ac_try;;
14755 esac
14756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757 (eval "$ac_compile") 2>conftest.er1
14758 ac_status=$?
14759 grep -v '^ *+' conftest.er1 >conftest.err
14760 rm -f conftest.er1
14761 cat conftest.err >&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } &&
14764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14765 { (case "(($ac_try" in
14766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14767 *) ac_try_echo=$ac_try;;
14768 esac
14769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14770 (eval "$ac_try") 2>&5
14771 ac_status=$?
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); }; } &&
14774 { ac_try='test -s conftest.$ac_objext'
14775 { (case "(($ac_try" in
14776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14777 *) ac_try_echo=$ac_try;;
14778 esac
14779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14780 (eval "$ac_try") 2>&5
14781 ac_status=$?
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); }; }; then
14784 ac_cv_header_sys_wait_h=yes
14785 else
14786 echo "$as_me: failed program was:" >&5
14787 sed 's/^/| /' conftest.$ac_ext >&5
14789 ac_cv_header_sys_wait_h=no
14790 fi
14792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14793 fi
14794 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14795 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14796 if test $ac_cv_header_sys_wait_h = yes; then
14798 cat >>confdefs.h <<\_ACEOF
14799 #define HAVE_SYS_WAIT_H 1
14800 _ACEOF
14802 fi
14804 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14805 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14806 if test "${ac_cv_header_time+set}" = set; then
14807 echo $ECHO_N "(cached) $ECHO_C" >&6
14808 else
14809 cat >conftest.$ac_ext <<_ACEOF
14810 /* confdefs.h. */
14811 _ACEOF
14812 cat confdefs.h >>conftest.$ac_ext
14813 cat >>conftest.$ac_ext <<_ACEOF
14814 /* end confdefs.h. */
14815 #include <sys/types.h>
14816 #include <sys/time.h>
14817 #include <time.h>
14819 int
14820 main ()
14821 {
14822 if ((struct tm *) 0)
14823 return 0;
14824 ;
14825 return 0;
14826 }
14827 _ACEOF
14828 rm -f conftest.$ac_objext
14829 if { (ac_try="$ac_compile"
14830 case "(($ac_try" in
14831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14832 *) ac_try_echo=$ac_try;;
14833 esac
14834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14835 (eval "$ac_compile") 2>conftest.er1
14836 ac_status=$?
14837 grep -v '^ *+' conftest.er1 >conftest.err
14838 rm -f conftest.er1
14839 cat conftest.err >&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); } &&
14842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14843 { (case "(($ac_try" in
14844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14845 *) ac_try_echo=$ac_try;;
14846 esac
14847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14848 (eval "$ac_try") 2>&5
14849 ac_status=$?
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); }; } &&
14852 { ac_try='test -s conftest.$ac_objext'
14853 { (case "(($ac_try" in
14854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14855 *) ac_try_echo=$ac_try;;
14856 esac
14857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14858 (eval "$ac_try") 2>&5
14859 ac_status=$?
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); }; }; then
14862 ac_cv_header_time=yes
14863 else
14864 echo "$as_me: failed program was:" >&5
14865 sed 's/^/| /' conftest.$ac_ext >&5
14867 ac_cv_header_time=no
14868 fi
14870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14871 fi
14872 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14873 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14874 if test $ac_cv_header_time = yes; then
14876 cat >>confdefs.h <<\_ACEOF
14877 #define TIME_WITH_SYS_TIME 1
14878 _ACEOF
14880 fi
14883 ac_ext=cpp
14884 ac_cpp='$CXXCPP $CPPFLAGS'
14885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14889 ac_ext=cpp
14890 ac_cpp='$CXXCPP $CPPFLAGS'
14891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14894 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14895 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14896 if test -z "$CXXCPP"; then
14897 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14898 echo $ECHO_N "(cached) $ECHO_C" >&6
14899 else
14900 # Double quotes because CXXCPP needs to be expanded
14901 for CXXCPP in "$CXX -E" "/lib/cpp"
14902 do
14903 ac_preproc_ok=false
14904 for ac_cxx_preproc_warn_flag in '' yes
14905 do
14906 # Use a header file that comes with gcc, so configuring glibc
14907 # with a fresh cross-compiler works.
14908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14909 # <limits.h> exists even on freestanding compilers.
14910 # On the NeXT, cc -E runs the code through the compiler's parser,
14911 # not just through cpp. "Syntax error" is here to catch this case.
14912 cat >conftest.$ac_ext <<_ACEOF
14913 /* confdefs.h. */
14914 _ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h. */
14918 #ifdef __STDC__
14919 # include <limits.h>
14920 #else
14921 # include <assert.h>
14922 #endif
14923 Syntax error
14924 _ACEOF
14925 if { (ac_try="$ac_cpp conftest.$ac_ext"
14926 case "(($ac_try" in
14927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14928 *) ac_try_echo=$ac_try;;
14929 esac
14930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14932 ac_status=$?
14933 grep -v '^ *+' conftest.er1 >conftest.err
14934 rm -f conftest.er1
14935 cat conftest.err >&5
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); } >/dev/null; then
14938 if test -s conftest.err; then
14939 ac_cpp_err=$ac_cxx_preproc_warn_flag
14940 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14941 else
14942 ac_cpp_err=
14943 fi
14944 else
14945 ac_cpp_err=yes
14946 fi
14947 if test -z "$ac_cpp_err"; then
14948 :
14949 else
14950 echo "$as_me: failed program was:" >&5
14951 sed 's/^/| /' conftest.$ac_ext >&5
14953 # Broken: fails on valid input.
14954 continue
14955 fi
14957 rm -f conftest.err conftest.$ac_ext
14959 # OK, works on sane cases. Now check whether nonexistent headers
14960 # can be detected and how.
14961 cat >conftest.$ac_ext <<_ACEOF
14962 /* confdefs.h. */
14963 _ACEOF
14964 cat confdefs.h >>conftest.$ac_ext
14965 cat >>conftest.$ac_ext <<_ACEOF
14966 /* end confdefs.h. */
14967 #include <ac_nonexistent.h>
14968 _ACEOF
14969 if { (ac_try="$ac_cpp conftest.$ac_ext"
14970 case "(($ac_try" in
14971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972 *) ac_try_echo=$ac_try;;
14973 esac
14974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14976 ac_status=$?
14977 grep -v '^ *+' conftest.er1 >conftest.err
14978 rm -f conftest.er1
14979 cat conftest.err >&5
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } >/dev/null; then
14982 if test -s conftest.err; then
14983 ac_cpp_err=$ac_cxx_preproc_warn_flag
14984 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14985 else
14986 ac_cpp_err=
14987 fi
14988 else
14989 ac_cpp_err=yes
14990 fi
14991 if test -z "$ac_cpp_err"; then
14992 # Broken: success on invalid input.
14993 continue
14994 else
14995 echo "$as_me: failed program was:" >&5
14996 sed 's/^/| /' conftest.$ac_ext >&5
14998 # Passes both tests.
14999 ac_preproc_ok=:
15000 break
15001 fi
15003 rm -f conftest.err conftest.$ac_ext
15005 done
15006 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15007 rm -f conftest.err conftest.$ac_ext
15008 if $ac_preproc_ok; then
15009 break
15010 fi
15012 done
15013 ac_cv_prog_CXXCPP=$CXXCPP
15015 fi
15016 CXXCPP=$ac_cv_prog_CXXCPP
15017 else
15018 ac_cv_prog_CXXCPP=$CXXCPP
15019 fi
15020 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
15021 echo "${ECHO_T}$CXXCPP" >&6; }
15022 ac_preproc_ok=false
15023 for ac_cxx_preproc_warn_flag in '' yes
15024 do
15025 # Use a header file that comes with gcc, so configuring glibc
15026 # with a fresh cross-compiler works.
15027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15028 # <limits.h> exists even on freestanding compilers.
15029 # On the NeXT, cc -E runs the code through the compiler's parser,
15030 # not just through cpp. "Syntax error" is here to catch this case.
15031 cat >conftest.$ac_ext <<_ACEOF
15032 /* confdefs.h. */
15033 _ACEOF
15034 cat confdefs.h >>conftest.$ac_ext
15035 cat >>conftest.$ac_ext <<_ACEOF
15036 /* end confdefs.h. */
15037 #ifdef __STDC__
15038 # include <limits.h>
15039 #else
15040 # include <assert.h>
15041 #endif
15042 Syntax error
15043 _ACEOF
15044 if { (ac_try="$ac_cpp conftest.$ac_ext"
15045 case "(($ac_try" in
15046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047 *) ac_try_echo=$ac_try;;
15048 esac
15049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15051 ac_status=$?
15052 grep -v '^ *+' conftest.er1 >conftest.err
15053 rm -f conftest.er1
15054 cat conftest.err >&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } >/dev/null; then
15057 if test -s conftest.err; then
15058 ac_cpp_err=$ac_cxx_preproc_warn_flag
15059 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15060 else
15061 ac_cpp_err=
15062 fi
15063 else
15064 ac_cpp_err=yes
15065 fi
15066 if test -z "$ac_cpp_err"; then
15067 :
15068 else
15069 echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15072 # Broken: fails on valid input.
15073 continue
15074 fi
15076 rm -f conftest.err conftest.$ac_ext
15078 # OK, works on sane cases. Now check whether nonexistent headers
15079 # can be detected and how.
15080 cat >conftest.$ac_ext <<_ACEOF
15081 /* confdefs.h. */
15082 _ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h. */
15086 #include <ac_nonexistent.h>
15087 _ACEOF
15088 if { (ac_try="$ac_cpp conftest.$ac_ext"
15089 case "(($ac_try" in
15090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15091 *) ac_try_echo=$ac_try;;
15092 esac
15093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15095 ac_status=$?
15096 grep -v '^ *+' conftest.er1 >conftest.err
15097 rm -f conftest.er1
15098 cat conftest.err >&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } >/dev/null; then
15101 if test -s conftest.err; then
15102 ac_cpp_err=$ac_cxx_preproc_warn_flag
15103 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15104 else
15105 ac_cpp_err=
15106 fi
15107 else
15108 ac_cpp_err=yes
15109 fi
15110 if test -z "$ac_cpp_err"; then
15111 # Broken: success on invalid input.
15112 continue
15113 else
15114 echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.$ac_ext >&5
15117 # Passes both tests.
15118 ac_preproc_ok=:
15119 break
15120 fi
15122 rm -f conftest.err conftest.$ac_ext
15124 done
15125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15126 rm -f conftest.err conftest.$ac_ext
15127 if $ac_preproc_ok; then
15128 :
15129 else
15130 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15131 See \`config.log' for more details." >&5
15132 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15133 See \`config.log' for more details." >&2;}
15134 { (exit 1); exit 1; }; }
15135 fi
15137 ac_ext=cpp
15138 ac_cpp='$CXXCPP $CPPFLAGS'
15139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15145 for ac_header in cxxabi.h
15146 do
15147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15152 echo $ECHO_N "(cached) $ECHO_C" >&6
15153 fi
15154 ac_res=`eval echo '${'$as_ac_Header'}'`
15155 { echo "$as_me:$LINENO: result: $ac_res" >&5
15156 echo "${ECHO_T}$ac_res" >&6; }
15157 else
15158 # Is the header compilable?
15159 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15161 cat >conftest.$ac_ext <<_ACEOF
15162 /* confdefs.h. */
15163 _ACEOF
15164 cat confdefs.h >>conftest.$ac_ext
15165 cat >>conftest.$ac_ext <<_ACEOF
15166 /* end confdefs.h. */
15167 $ac_includes_default
15168 #include <$ac_header>
15169 _ACEOF
15170 rm -f conftest.$ac_objext
15171 if { (ac_try="$ac_compile"
15172 case "(($ac_try" in
15173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15174 *) ac_try_echo=$ac_try;;
15175 esac
15176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15177 (eval "$ac_compile") 2>conftest.er1
15178 ac_status=$?
15179 grep -v '^ *+' conftest.er1 >conftest.err
15180 rm -f conftest.er1
15181 cat conftest.err >&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); } &&
15184 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15185 { (case "(($ac_try" in
15186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15187 *) ac_try_echo=$ac_try;;
15188 esac
15189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15190 (eval "$ac_try") 2>&5
15191 ac_status=$?
15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); }; } &&
15194 { ac_try='test -s conftest.$ac_objext'
15195 { (case "(($ac_try" in
15196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15197 *) ac_try_echo=$ac_try;;
15198 esac
15199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15200 (eval "$ac_try") 2>&5
15201 ac_status=$?
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); }; }; then
15204 ac_header_compiler=yes
15205 else
15206 echo "$as_me: failed program was:" >&5
15207 sed 's/^/| /' conftest.$ac_ext >&5
15209 ac_header_compiler=no
15210 fi
15212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15213 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15214 echo "${ECHO_T}$ac_header_compiler" >&6; }
15216 # Is the header present?
15217 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15219 cat >conftest.$ac_ext <<_ACEOF
15220 /* confdefs.h. */
15221 _ACEOF
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h. */
15225 #include <$ac_header>
15226 _ACEOF
15227 if { (ac_try="$ac_cpp conftest.$ac_ext"
15228 case "(($ac_try" in
15229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15230 *) ac_try_echo=$ac_try;;
15231 esac
15232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15234 ac_status=$?
15235 grep -v '^ *+' conftest.er1 >conftest.err
15236 rm -f conftest.er1
15237 cat conftest.err >&5
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); } >/dev/null; then
15240 if test -s conftest.err; then
15241 ac_cpp_err=$ac_cxx_preproc_warn_flag
15242 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15243 else
15244 ac_cpp_err=
15245 fi
15246 else
15247 ac_cpp_err=yes
15248 fi
15249 if test -z "$ac_cpp_err"; then
15250 ac_header_preproc=yes
15251 else
15252 echo "$as_me: failed program was:" >&5
15253 sed 's/^/| /' conftest.$ac_ext >&5
15255 ac_header_preproc=no
15256 fi
15258 rm -f conftest.err conftest.$ac_ext
15259 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15260 echo "${ECHO_T}$ac_header_preproc" >&6; }
15262 # So? What about this header?
15263 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15264 yes:no: )
15265 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15266 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15268 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15269 ac_header_preproc=yes
15270 ;;
15271 no:yes:* )
15272 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15273 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15274 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15275 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15276 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15277 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15278 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15279 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15281 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15282 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15283 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15284 ( cat <<\_ASBOX
15285 ## ------------------------------------ ##
15286 ## Report this to http://llvm.org/bugs/ ##
15287 ## ------------------------------------ ##
15288 _ASBOX
15289 ) | sed "s/^/$as_me: WARNING: /" >&2
15290 ;;
15291 esac
15292 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15295 echo $ECHO_N "(cached) $ECHO_C" >&6
15296 else
15297 eval "$as_ac_Header=\$ac_header_preproc"
15298 fi
15299 ac_res=`eval echo '${'$as_ac_Header'}'`
15300 { echo "$as_me:$LINENO: result: $ac_res" >&5
15301 echo "${ECHO_T}$ac_res" >&6; }
15303 fi
15304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15305 cat >>confdefs.h <<_ACEOF
15306 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15307 _ACEOF
15309 fi
15311 done
15313 ac_ext=c
15314 ac_cpp='$CPP $CPPFLAGS'
15315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15325 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15326 do
15327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15332 echo $ECHO_N "(cached) $ECHO_C" >&6
15333 fi
15334 ac_res=`eval echo '${'$as_ac_Header'}'`
15335 { echo "$as_me:$LINENO: result: $ac_res" >&5
15336 echo "${ECHO_T}$ac_res" >&6; }
15337 else
15338 # Is the header compilable?
15339 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15341 cat >conftest.$ac_ext <<_ACEOF
15342 /* confdefs.h. */
15343 _ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h. */
15347 $ac_includes_default
15348 #include <$ac_header>
15349 _ACEOF
15350 rm -f conftest.$ac_objext
15351 if { (ac_try="$ac_compile"
15352 case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15355 esac
15356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357 (eval "$ac_compile") 2>conftest.er1
15358 ac_status=$?
15359 grep -v '^ *+' conftest.er1 >conftest.err
15360 rm -f conftest.er1
15361 cat conftest.err >&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); } &&
15364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15365 { (case "(($ac_try" in
15366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367 *) ac_try_echo=$ac_try;;
15368 esac
15369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370 (eval "$ac_try") 2>&5
15371 ac_status=$?
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); }; } &&
15374 { ac_try='test -s conftest.$ac_objext'
15375 { (case "(($ac_try" in
15376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377 *) ac_try_echo=$ac_try;;
15378 esac
15379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380 (eval "$ac_try") 2>&5
15381 ac_status=$?
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
15384 ac_header_compiler=yes
15385 else
15386 echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15389 ac_header_compiler=no
15390 fi
15392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15394 echo "${ECHO_T}$ac_header_compiler" >&6; }
15396 # Is the header present?
15397 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15399 cat >conftest.$ac_ext <<_ACEOF
15400 /* confdefs.h. */
15401 _ACEOF
15402 cat confdefs.h >>conftest.$ac_ext
15403 cat >>conftest.$ac_ext <<_ACEOF
15404 /* end confdefs.h. */
15405 #include <$ac_header>
15406 _ACEOF
15407 if { (ac_try="$ac_cpp conftest.$ac_ext"
15408 case "(($ac_try" in
15409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15410 *) ac_try_echo=$ac_try;;
15411 esac
15412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15414 ac_status=$?
15415 grep -v '^ *+' conftest.er1 >conftest.err
15416 rm -f conftest.er1
15417 cat conftest.err >&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } >/dev/null; then
15420 if test -s conftest.err; then
15421 ac_cpp_err=$ac_c_preproc_warn_flag
15422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15423 else
15424 ac_cpp_err=
15425 fi
15426 else
15427 ac_cpp_err=yes
15428 fi
15429 if test -z "$ac_cpp_err"; then
15430 ac_header_preproc=yes
15431 else
15432 echo "$as_me: failed program was:" >&5
15433 sed 's/^/| /' conftest.$ac_ext >&5
15435 ac_header_preproc=no
15436 fi
15438 rm -f conftest.err conftest.$ac_ext
15439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15440 echo "${ECHO_T}$ac_header_preproc" >&6; }
15442 # So? What about this header?
15443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15444 yes:no: )
15445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15449 ac_header_preproc=yes
15450 ;;
15451 no:yes:* )
15452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15459 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15464 ( cat <<\_ASBOX
15465 ## ------------------------------------ ##
15466 ## Report this to http://llvm.org/bugs/ ##
15467 ## ------------------------------------ ##
15468 _ASBOX
15469 ) | sed "s/^/$as_me: WARNING: /" >&2
15470 ;;
15471 esac
15472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15475 echo $ECHO_N "(cached) $ECHO_C" >&6
15476 else
15477 eval "$as_ac_Header=\$ac_header_preproc"
15478 fi
15479 ac_res=`eval echo '${'$as_ac_Header'}'`
15480 { echo "$as_me:$LINENO: result: $ac_res" >&5
15481 echo "${ECHO_T}$ac_res" >&6; }
15483 fi
15484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15485 cat >>confdefs.h <<_ACEOF
15486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15487 _ACEOF
15489 fi
15491 done
15499 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15500 do
15501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15506 echo $ECHO_N "(cached) $ECHO_C" >&6
15507 fi
15508 ac_res=`eval echo '${'$as_ac_Header'}'`
15509 { echo "$as_me:$LINENO: result: $ac_res" >&5
15510 echo "${ECHO_T}$ac_res" >&6; }
15511 else
15512 # Is the header compilable?
15513 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15514 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15515 cat >conftest.$ac_ext <<_ACEOF
15516 /* confdefs.h. */
15517 _ACEOF
15518 cat confdefs.h >>conftest.$ac_ext
15519 cat >>conftest.$ac_ext <<_ACEOF
15520 /* end confdefs.h. */
15521 $ac_includes_default
15522 #include <$ac_header>
15523 _ACEOF
15524 rm -f conftest.$ac_objext
15525 if { (ac_try="$ac_compile"
15526 case "(($ac_try" in
15527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15528 *) ac_try_echo=$ac_try;;
15529 esac
15530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15531 (eval "$ac_compile") 2>conftest.er1
15532 ac_status=$?
15533 grep -v '^ *+' conftest.er1 >conftest.err
15534 rm -f conftest.er1
15535 cat conftest.err >&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); } &&
15538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15539 { (case "(($ac_try" in
15540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15541 *) ac_try_echo=$ac_try;;
15542 esac
15543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15544 (eval "$ac_try") 2>&5
15545 ac_status=$?
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; } &&
15548 { ac_try='test -s conftest.$ac_objext'
15549 { (case "(($ac_try" in
15550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551 *) ac_try_echo=$ac_try;;
15552 esac
15553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15554 (eval "$ac_try") 2>&5
15555 ac_status=$?
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; }; then
15558 ac_header_compiler=yes
15559 else
15560 echo "$as_me: failed program was:" >&5
15561 sed 's/^/| /' conftest.$ac_ext >&5
15563 ac_header_compiler=no
15564 fi
15566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15567 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15568 echo "${ECHO_T}$ac_header_compiler" >&6; }
15570 # Is the header present?
15571 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15573 cat >conftest.$ac_ext <<_ACEOF
15574 /* confdefs.h. */
15575 _ACEOF
15576 cat confdefs.h >>conftest.$ac_ext
15577 cat >>conftest.$ac_ext <<_ACEOF
15578 /* end confdefs.h. */
15579 #include <$ac_header>
15580 _ACEOF
15581 if { (ac_try="$ac_cpp conftest.$ac_ext"
15582 case "(($ac_try" in
15583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15584 *) ac_try_echo=$ac_try;;
15585 esac
15586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15588 ac_status=$?
15589 grep -v '^ *+' conftest.er1 >conftest.err
15590 rm -f conftest.er1
15591 cat conftest.err >&5
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); } >/dev/null; then
15594 if test -s conftest.err; then
15595 ac_cpp_err=$ac_c_preproc_warn_flag
15596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15597 else
15598 ac_cpp_err=
15599 fi
15600 else
15601 ac_cpp_err=yes
15602 fi
15603 if test -z "$ac_cpp_err"; then
15604 ac_header_preproc=yes
15605 else
15606 echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15609 ac_header_preproc=no
15610 fi
15612 rm -f conftest.err conftest.$ac_ext
15613 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15614 echo "${ECHO_T}$ac_header_preproc" >&6; }
15616 # So? What about this header?
15617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15618 yes:no: )
15619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15623 ac_header_preproc=yes
15624 ;;
15625 no:yes:* )
15626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15629 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15631 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15633 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15637 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15638 ( cat <<\_ASBOX
15639 ## ------------------------------------ ##
15640 ## Report this to http://llvm.org/bugs/ ##
15641 ## ------------------------------------ ##
15642 _ASBOX
15643 ) | sed "s/^/$as_me: WARNING: /" >&2
15644 ;;
15645 esac
15646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15649 echo $ECHO_N "(cached) $ECHO_C" >&6
15650 else
15651 eval "$as_ac_Header=\$ac_header_preproc"
15652 fi
15653 ac_res=`eval echo '${'$as_ac_Header'}'`
15654 { echo "$as_me:$LINENO: result: $ac_res" >&5
15655 echo "${ECHO_T}$ac_res" >&6; }
15657 fi
15658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15659 cat >>confdefs.h <<_ACEOF
15660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15661 _ACEOF
15663 fi
15665 done
15669 for ac_header in utime.h windows.h
15670 do
15671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15676 echo $ECHO_N "(cached) $ECHO_C" >&6
15677 fi
15678 ac_res=`eval echo '${'$as_ac_Header'}'`
15679 { echo "$as_me:$LINENO: result: $ac_res" >&5
15680 echo "${ECHO_T}$ac_res" >&6; }
15681 else
15682 # Is the header compilable?
15683 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15684 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15685 cat >conftest.$ac_ext <<_ACEOF
15686 /* confdefs.h. */
15687 _ACEOF
15688 cat confdefs.h >>conftest.$ac_ext
15689 cat >>conftest.$ac_ext <<_ACEOF
15690 /* end confdefs.h. */
15691 $ac_includes_default
15692 #include <$ac_header>
15693 _ACEOF
15694 rm -f conftest.$ac_objext
15695 if { (ac_try="$ac_compile"
15696 case "(($ac_try" in
15697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15698 *) ac_try_echo=$ac_try;;
15699 esac
15700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15701 (eval "$ac_compile") 2>conftest.er1
15702 ac_status=$?
15703 grep -v '^ *+' conftest.er1 >conftest.err
15704 rm -f conftest.er1
15705 cat conftest.err >&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); } &&
15708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15709 { (case "(($ac_try" in
15710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15711 *) ac_try_echo=$ac_try;;
15712 esac
15713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15714 (eval "$ac_try") 2>&5
15715 ac_status=$?
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); }; } &&
15718 { ac_try='test -s conftest.$ac_objext'
15719 { (case "(($ac_try" in
15720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721 *) ac_try_echo=$ac_try;;
15722 esac
15723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15724 (eval "$ac_try") 2>&5
15725 ac_status=$?
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); }; }; then
15728 ac_header_compiler=yes
15729 else
15730 echo "$as_me: failed program was:" >&5
15731 sed 's/^/| /' conftest.$ac_ext >&5
15733 ac_header_compiler=no
15734 fi
15736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15737 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15738 echo "${ECHO_T}$ac_header_compiler" >&6; }
15740 # Is the header present?
15741 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15743 cat >conftest.$ac_ext <<_ACEOF
15744 /* confdefs.h. */
15745 _ACEOF
15746 cat confdefs.h >>conftest.$ac_ext
15747 cat >>conftest.$ac_ext <<_ACEOF
15748 /* end confdefs.h. */
15749 #include <$ac_header>
15750 _ACEOF
15751 if { (ac_try="$ac_cpp conftest.$ac_ext"
15752 case "(($ac_try" in
15753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15754 *) ac_try_echo=$ac_try;;
15755 esac
15756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15758 ac_status=$?
15759 grep -v '^ *+' conftest.er1 >conftest.err
15760 rm -f conftest.er1
15761 cat conftest.err >&5
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); } >/dev/null; then
15764 if test -s conftest.err; then
15765 ac_cpp_err=$ac_c_preproc_warn_flag
15766 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15767 else
15768 ac_cpp_err=
15769 fi
15770 else
15771 ac_cpp_err=yes
15772 fi
15773 if test -z "$ac_cpp_err"; then
15774 ac_header_preproc=yes
15775 else
15776 echo "$as_me: failed program was:" >&5
15777 sed 's/^/| /' conftest.$ac_ext >&5
15779 ac_header_preproc=no
15780 fi
15782 rm -f conftest.err conftest.$ac_ext
15783 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15784 echo "${ECHO_T}$ac_header_preproc" >&6; }
15786 # So? What about this header?
15787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15788 yes:no: )
15789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15793 ac_header_preproc=yes
15794 ;;
15795 no:yes:* )
15796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15799 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15803 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15808 ( cat <<\_ASBOX
15809 ## ------------------------------------ ##
15810 ## Report this to http://llvm.org/bugs/ ##
15811 ## ------------------------------------ ##
15812 _ASBOX
15813 ) | sed "s/^/$as_me: WARNING: /" >&2
15814 ;;
15815 esac
15816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15819 echo $ECHO_N "(cached) $ECHO_C" >&6
15820 else
15821 eval "$as_ac_Header=\$ac_header_preproc"
15822 fi
15823 ac_res=`eval echo '${'$as_ac_Header'}'`
15824 { echo "$as_me:$LINENO: result: $ac_res" >&5
15825 echo "${ECHO_T}$ac_res" >&6; }
15827 fi
15828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15829 cat >>confdefs.h <<_ACEOF
15830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15831 _ACEOF
15833 fi
15835 done
15842 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15843 do
15844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15846 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15849 echo $ECHO_N "(cached) $ECHO_C" >&6
15850 fi
15851 ac_res=`eval echo '${'$as_ac_Header'}'`
15852 { echo "$as_me:$LINENO: result: $ac_res" >&5
15853 echo "${ECHO_T}$ac_res" >&6; }
15854 else
15855 # Is the header compilable?
15856 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15857 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15858 cat >conftest.$ac_ext <<_ACEOF
15859 /* confdefs.h. */
15860 _ACEOF
15861 cat confdefs.h >>conftest.$ac_ext
15862 cat >>conftest.$ac_ext <<_ACEOF
15863 /* end confdefs.h. */
15864 $ac_includes_default
15865 #include <$ac_header>
15866 _ACEOF
15867 rm -f conftest.$ac_objext
15868 if { (ac_try="$ac_compile"
15869 case "(($ac_try" in
15870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15871 *) ac_try_echo=$ac_try;;
15872 esac
15873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15874 (eval "$ac_compile") 2>conftest.er1
15875 ac_status=$?
15876 grep -v '^ *+' conftest.er1 >conftest.err
15877 rm -f conftest.er1
15878 cat conftest.err >&5
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); } &&
15881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15882 { (case "(($ac_try" in
15883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15884 *) ac_try_echo=$ac_try;;
15885 esac
15886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15887 (eval "$ac_try") 2>&5
15888 ac_status=$?
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); }; } &&
15891 { ac_try='test -s conftest.$ac_objext'
15892 { (case "(($ac_try" in
15893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15894 *) ac_try_echo=$ac_try;;
15895 esac
15896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15897 (eval "$ac_try") 2>&5
15898 ac_status=$?
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); }; }; then
15901 ac_header_compiler=yes
15902 else
15903 echo "$as_me: failed program was:" >&5
15904 sed 's/^/| /' conftest.$ac_ext >&5
15906 ac_header_compiler=no
15907 fi
15909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15910 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15911 echo "${ECHO_T}$ac_header_compiler" >&6; }
15913 # Is the header present?
15914 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15915 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15916 cat >conftest.$ac_ext <<_ACEOF
15917 /* confdefs.h. */
15918 _ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15922 #include <$ac_header>
15923 _ACEOF
15924 if { (ac_try="$ac_cpp conftest.$ac_ext"
15925 case "(($ac_try" in
15926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15927 *) ac_try_echo=$ac_try;;
15928 esac
15929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15931 ac_status=$?
15932 grep -v '^ *+' conftest.er1 >conftest.err
15933 rm -f conftest.er1
15934 cat conftest.err >&5
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); } >/dev/null; then
15937 if test -s conftest.err; then
15938 ac_cpp_err=$ac_c_preproc_warn_flag
15939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15940 else
15941 ac_cpp_err=
15942 fi
15943 else
15944 ac_cpp_err=yes
15945 fi
15946 if test -z "$ac_cpp_err"; then
15947 ac_header_preproc=yes
15948 else
15949 echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15952 ac_header_preproc=no
15953 fi
15955 rm -f conftest.err conftest.$ac_ext
15956 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15957 echo "${ECHO_T}$ac_header_preproc" >&6; }
15959 # So? What about this header?
15960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15961 yes:no: )
15962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15963 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15965 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15966 ac_header_preproc=yes
15967 ;;
15968 no:yes:* )
15969 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15970 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15972 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15974 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15975 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15976 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15979 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15980 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15981 ( cat <<\_ASBOX
15982 ## ------------------------------------ ##
15983 ## Report this to http://llvm.org/bugs/ ##
15984 ## ------------------------------------ ##
15985 _ASBOX
15986 ) | sed "s/^/$as_me: WARNING: /" >&2
15987 ;;
15988 esac
15989 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15992 echo $ECHO_N "(cached) $ECHO_C" >&6
15993 else
15994 eval "$as_ac_Header=\$ac_header_preproc"
15995 fi
15996 ac_res=`eval echo '${'$as_ac_Header'}'`
15997 { echo "$as_me:$LINENO: result: $ac_res" >&5
15998 echo "${ECHO_T}$ac_res" >&6; }
16000 fi
16001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16002 cat >>confdefs.h <<_ACEOF
16003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16004 _ACEOF
16006 fi
16008 done
16014 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16015 do
16016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16021 echo $ECHO_N "(cached) $ECHO_C" >&6
16022 fi
16023 ac_res=`eval echo '${'$as_ac_Header'}'`
16024 { echo "$as_me:$LINENO: result: $ac_res" >&5
16025 echo "${ECHO_T}$ac_res" >&6; }
16026 else
16027 # Is the header compilable?
16028 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16030 cat >conftest.$ac_ext <<_ACEOF
16031 /* confdefs.h. */
16032 _ACEOF
16033 cat confdefs.h >>conftest.$ac_ext
16034 cat >>conftest.$ac_ext <<_ACEOF
16035 /* end confdefs.h. */
16036 $ac_includes_default
16037 #include <$ac_header>
16038 _ACEOF
16039 rm -f conftest.$ac_objext
16040 if { (ac_try="$ac_compile"
16041 case "(($ac_try" in
16042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16043 *) ac_try_echo=$ac_try;;
16044 esac
16045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16046 (eval "$ac_compile") 2>conftest.er1
16047 ac_status=$?
16048 grep -v '^ *+' conftest.er1 >conftest.err
16049 rm -f conftest.er1
16050 cat conftest.err >&5
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); } &&
16053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16054 { (case "(($ac_try" in
16055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16056 *) ac_try_echo=$ac_try;;
16057 esac
16058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16059 (eval "$ac_try") 2>&5
16060 ac_status=$?
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); }; } &&
16063 { ac_try='test -s conftest.$ac_objext'
16064 { (case "(($ac_try" in
16065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16066 *) ac_try_echo=$ac_try;;
16067 esac
16068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16069 (eval "$ac_try") 2>&5
16070 ac_status=$?
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; }; then
16073 ac_header_compiler=yes
16074 else
16075 echo "$as_me: failed program was:" >&5
16076 sed 's/^/| /' conftest.$ac_ext >&5
16078 ac_header_compiler=no
16079 fi
16081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16082 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16083 echo "${ECHO_T}$ac_header_compiler" >&6; }
16085 # Is the header present?
16086 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16088 cat >conftest.$ac_ext <<_ACEOF
16089 /* confdefs.h. */
16090 _ACEOF
16091 cat confdefs.h >>conftest.$ac_ext
16092 cat >>conftest.$ac_ext <<_ACEOF
16093 /* end confdefs.h. */
16094 #include <$ac_header>
16095 _ACEOF
16096 if { (ac_try="$ac_cpp conftest.$ac_ext"
16097 case "(($ac_try" in
16098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16099 *) ac_try_echo=$ac_try;;
16100 esac
16101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16103 ac_status=$?
16104 grep -v '^ *+' conftest.er1 >conftest.err
16105 rm -f conftest.er1
16106 cat conftest.err >&5
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); } >/dev/null; then
16109 if test -s conftest.err; then
16110 ac_cpp_err=$ac_c_preproc_warn_flag
16111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16112 else
16113 ac_cpp_err=
16114 fi
16115 else
16116 ac_cpp_err=yes
16117 fi
16118 if test -z "$ac_cpp_err"; then
16119 ac_header_preproc=yes
16120 else
16121 echo "$as_me: failed program was:" >&5
16122 sed 's/^/| /' conftest.$ac_ext >&5
16124 ac_header_preproc=no
16125 fi
16127 rm -f conftest.err conftest.$ac_ext
16128 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16129 echo "${ECHO_T}$ac_header_preproc" >&6; }
16131 # So? What about this header?
16132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16133 yes:no: )
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16138 ac_header_preproc=yes
16139 ;;
16140 no:yes:* )
16141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16144 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16145 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16146 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16147 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16148 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16151 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16152 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16153 ( cat <<\_ASBOX
16154 ## ------------------------------------ ##
16155 ## Report this to http://llvm.org/bugs/ ##
16156 ## ------------------------------------ ##
16157 _ASBOX
16158 ) | sed "s/^/$as_me: WARNING: /" >&2
16159 ;;
16160 esac
16161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16164 echo $ECHO_N "(cached) $ECHO_C" >&6
16165 else
16166 eval "$as_ac_Header=\$ac_header_preproc"
16167 fi
16168 ac_res=`eval echo '${'$as_ac_Header'}'`
16169 { echo "$as_me:$LINENO: result: $ac_res" >&5
16170 echo "${ECHO_T}$ac_res" >&6; }
16172 fi
16173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16174 cat >>confdefs.h <<_ACEOF
16175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16176 _ACEOF
16178 fi
16180 done
16183 for ac_header in valgrind/valgrind.h
16184 do
16185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16187 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16190 echo $ECHO_N "(cached) $ECHO_C" >&6
16191 fi
16192 ac_res=`eval echo '${'$as_ac_Header'}'`
16193 { echo "$as_me:$LINENO: result: $ac_res" >&5
16194 echo "${ECHO_T}$ac_res" >&6; }
16195 else
16196 # Is the header compilable?
16197 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16198 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16199 cat >conftest.$ac_ext <<_ACEOF
16200 /* confdefs.h. */
16201 _ACEOF
16202 cat confdefs.h >>conftest.$ac_ext
16203 cat >>conftest.$ac_ext <<_ACEOF
16204 /* end confdefs.h. */
16205 $ac_includes_default
16206 #include <$ac_header>
16207 _ACEOF
16208 rm -f conftest.$ac_objext
16209 if { (ac_try="$ac_compile"
16210 case "(($ac_try" in
16211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16212 *) ac_try_echo=$ac_try;;
16213 esac
16214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16215 (eval "$ac_compile") 2>conftest.er1
16216 ac_status=$?
16217 grep -v '^ *+' conftest.er1 >conftest.err
16218 rm -f conftest.er1
16219 cat conftest.err >&5
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); } &&
16222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16223 { (case "(($ac_try" in
16224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16225 *) ac_try_echo=$ac_try;;
16226 esac
16227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16228 (eval "$ac_try") 2>&5
16229 ac_status=$?
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); }; } &&
16232 { ac_try='test -s conftest.$ac_objext'
16233 { (case "(($ac_try" in
16234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235 *) ac_try_echo=$ac_try;;
16236 esac
16237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16238 (eval "$ac_try") 2>&5
16239 ac_status=$?
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); }; }; then
16242 ac_header_compiler=yes
16243 else
16244 echo "$as_me: failed program was:" >&5
16245 sed 's/^/| /' conftest.$ac_ext >&5
16247 ac_header_compiler=no
16248 fi
16250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16251 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16252 echo "${ECHO_T}$ac_header_compiler" >&6; }
16254 # Is the header present?
16255 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16257 cat >conftest.$ac_ext <<_ACEOF
16258 /* confdefs.h. */
16259 _ACEOF
16260 cat confdefs.h >>conftest.$ac_ext
16261 cat >>conftest.$ac_ext <<_ACEOF
16262 /* end confdefs.h. */
16263 #include <$ac_header>
16264 _ACEOF
16265 if { (ac_try="$ac_cpp conftest.$ac_ext"
16266 case "(($ac_try" in
16267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268 *) ac_try_echo=$ac_try;;
16269 esac
16270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16272 ac_status=$?
16273 grep -v '^ *+' conftest.er1 >conftest.err
16274 rm -f conftest.er1
16275 cat conftest.err >&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } >/dev/null; then
16278 if test -s conftest.err; then
16279 ac_cpp_err=$ac_c_preproc_warn_flag
16280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16281 else
16282 ac_cpp_err=
16283 fi
16284 else
16285 ac_cpp_err=yes
16286 fi
16287 if test -z "$ac_cpp_err"; then
16288 ac_header_preproc=yes
16289 else
16290 echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16293 ac_header_preproc=no
16294 fi
16296 rm -f conftest.err conftest.$ac_ext
16297 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16298 echo "${ECHO_T}$ac_header_preproc" >&6; }
16300 # So? What about this header?
16301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16302 yes:no: )
16303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16306 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16307 ac_header_preproc=yes
16308 ;;
16309 no:yes:* )
16310 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16311 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16312 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16313 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16314 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16315 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16316 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16317 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16320 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16321 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16322 ( cat <<\_ASBOX
16323 ## ------------------------------------ ##
16324 ## Report this to http://llvm.org/bugs/ ##
16325 ## ------------------------------------ ##
16326 _ASBOX
16327 ) | sed "s/^/$as_me: WARNING: /" >&2
16328 ;;
16329 esac
16330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16333 echo $ECHO_N "(cached) $ECHO_C" >&6
16334 else
16335 eval "$as_ac_Header=\$ac_header_preproc"
16336 fi
16337 ac_res=`eval echo '${'$as_ac_Header'}'`
16338 { echo "$as_me:$LINENO: result: $ac_res" >&5
16339 echo "${ECHO_T}$ac_res" >&6; }
16341 fi
16342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16343 cat >>confdefs.h <<_ACEOF
16344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16345 _ACEOF
16347 fi
16349 done
16352 for ac_header in fenv.h
16353 do
16354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16359 echo $ECHO_N "(cached) $ECHO_C" >&6
16360 fi
16361 ac_res=`eval echo '${'$as_ac_Header'}'`
16362 { echo "$as_me:$LINENO: result: $ac_res" >&5
16363 echo "${ECHO_T}$ac_res" >&6; }
16364 else
16365 # Is the header compilable?
16366 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16368 cat >conftest.$ac_ext <<_ACEOF
16369 /* confdefs.h. */
16370 _ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h. */
16374 $ac_includes_default
16375 #include <$ac_header>
16376 _ACEOF
16377 rm -f conftest.$ac_objext
16378 if { (ac_try="$ac_compile"
16379 case "(($ac_try" in
16380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16381 *) ac_try_echo=$ac_try;;
16382 esac
16383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16384 (eval "$ac_compile") 2>conftest.er1
16385 ac_status=$?
16386 grep -v '^ *+' conftest.er1 >conftest.err
16387 rm -f conftest.er1
16388 cat conftest.err >&5
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); } &&
16391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16392 { (case "(($ac_try" in
16393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16394 *) ac_try_echo=$ac_try;;
16395 esac
16396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16397 (eval "$ac_try") 2>&5
16398 ac_status=$?
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); }; } &&
16401 { ac_try='test -s conftest.$ac_objext'
16402 { (case "(($ac_try" in
16403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404 *) ac_try_echo=$ac_try;;
16405 esac
16406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407 (eval "$ac_try") 2>&5
16408 ac_status=$?
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; }; then
16411 ac_header_compiler=yes
16412 else
16413 echo "$as_me: failed program was:" >&5
16414 sed 's/^/| /' conftest.$ac_ext >&5
16416 ac_header_compiler=no
16417 fi
16419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16420 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16421 echo "${ECHO_T}$ac_header_compiler" >&6; }
16423 # Is the header present?
16424 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16426 cat >conftest.$ac_ext <<_ACEOF
16427 /* confdefs.h. */
16428 _ACEOF
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h. */
16432 #include <$ac_header>
16433 _ACEOF
16434 if { (ac_try="$ac_cpp conftest.$ac_ext"
16435 case "(($ac_try" in
16436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437 *) ac_try_echo=$ac_try;;
16438 esac
16439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16441 ac_status=$?
16442 grep -v '^ *+' conftest.er1 >conftest.err
16443 rm -f conftest.er1
16444 cat conftest.err >&5
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); } >/dev/null; then
16447 if test -s conftest.err; then
16448 ac_cpp_err=$ac_c_preproc_warn_flag
16449 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16450 else
16451 ac_cpp_err=
16452 fi
16453 else
16454 ac_cpp_err=yes
16455 fi
16456 if test -z "$ac_cpp_err"; then
16457 ac_header_preproc=yes
16458 else
16459 echo "$as_me: failed program was:" >&5
16460 sed 's/^/| /' conftest.$ac_ext >&5
16462 ac_header_preproc=no
16463 fi
16465 rm -f conftest.err conftest.$ac_ext
16466 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16467 echo "${ECHO_T}$ac_header_preproc" >&6; }
16469 # So? What about this header?
16470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16471 yes:no: )
16472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16476 ac_header_preproc=yes
16477 ;;
16478 no:yes:* )
16479 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16481 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16482 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16483 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16485 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16486 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16489 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16491 ( cat <<\_ASBOX
16492 ## ------------------------------------ ##
16493 ## Report this to http://llvm.org/bugs/ ##
16494 ## ------------------------------------ ##
16495 _ASBOX
16496 ) | sed "s/^/$as_me: WARNING: /" >&2
16497 ;;
16498 esac
16499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16502 echo $ECHO_N "(cached) $ECHO_C" >&6
16503 else
16504 eval "$as_ac_Header=\$ac_header_preproc"
16505 fi
16506 ac_res=`eval echo '${'$as_ac_Header'}'`
16507 { echo "$as_me:$LINENO: result: $ac_res" >&5
16508 echo "${ECHO_T}$ac_res" >&6; }
16510 fi
16511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16512 cat >>confdefs.h <<_ACEOF
16513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16514 _ACEOF
16516 fi
16518 done
16520 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16521 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16522 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16523 echo $ECHO_N "(cached) $ECHO_C" >&6
16524 else
16525 cat >conftest.$ac_ext <<_ACEOF
16526 /* confdefs.h. */
16527 _ACEOF
16528 cat confdefs.h >>conftest.$ac_ext
16529 cat >>conftest.$ac_ext <<_ACEOF
16530 /* end confdefs.h. */
16531 #include <fenv.h>
16533 int
16534 main ()
16535 {
16536 #ifndef FE_ALL_EXCEPT
16537 char *p = (char *) FE_ALL_EXCEPT;
16538 return !p;
16539 #endif
16541 ;
16542 return 0;
16543 }
16544 _ACEOF
16545 rm -f conftest.$ac_objext
16546 if { (ac_try="$ac_compile"
16547 case "(($ac_try" in
16548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16549 *) ac_try_echo=$ac_try;;
16550 esac
16551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16552 (eval "$ac_compile") 2>conftest.er1
16553 ac_status=$?
16554 grep -v '^ *+' conftest.er1 >conftest.err
16555 rm -f conftest.er1
16556 cat conftest.err >&5
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); } &&
16559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16560 { (case "(($ac_try" in
16561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16562 *) ac_try_echo=$ac_try;;
16563 esac
16564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16565 (eval "$ac_try") 2>&5
16566 ac_status=$?
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); }; } &&
16569 { ac_try='test -s conftest.$ac_objext'
16570 { (case "(($ac_try" in
16571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16572 *) ac_try_echo=$ac_try;;
16573 esac
16574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16575 (eval "$ac_try") 2>&5
16576 ac_status=$?
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); }; }; then
16579 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16580 else
16581 echo "$as_me: failed program was:" >&5
16582 sed 's/^/| /' conftest.$ac_ext >&5
16584 ac_cv_have_decl_FE_ALL_EXCEPT=no
16585 fi
16587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16588 fi
16589 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16590 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16591 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16593 cat >>confdefs.h <<_ACEOF
16594 #define HAVE_DECL_FE_ALL_EXCEPT 1
16595 _ACEOF
16598 else
16599 cat >>confdefs.h <<_ACEOF
16600 #define HAVE_DECL_FE_ALL_EXCEPT 0
16601 _ACEOF
16604 fi
16605 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16606 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16607 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16608 echo $ECHO_N "(cached) $ECHO_C" >&6
16609 else
16610 cat >conftest.$ac_ext <<_ACEOF
16611 /* confdefs.h. */
16612 _ACEOF
16613 cat confdefs.h >>conftest.$ac_ext
16614 cat >>conftest.$ac_ext <<_ACEOF
16615 /* end confdefs.h. */
16616 #include <fenv.h>
16618 int
16619 main ()
16620 {
16621 #ifndef FE_INEXACT
16622 char *p = (char *) FE_INEXACT;
16623 return !p;
16624 #endif
16626 ;
16627 return 0;
16628 }
16629 _ACEOF
16630 rm -f conftest.$ac_objext
16631 if { (ac_try="$ac_compile"
16632 case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16635 esac
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637 (eval "$ac_compile") 2>conftest.er1
16638 ac_status=$?
16639 grep -v '^ *+' conftest.er1 >conftest.err
16640 rm -f conftest.er1
16641 cat conftest.err >&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); } &&
16644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16645 { (case "(($ac_try" in
16646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647 *) ac_try_echo=$ac_try;;
16648 esac
16649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16650 (eval "$ac_try") 2>&5
16651 ac_status=$?
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; } &&
16654 { ac_try='test -s conftest.$ac_objext'
16655 { (case "(($ac_try" in
16656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16657 *) ac_try_echo=$ac_try;;
16658 esac
16659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16660 (eval "$ac_try") 2>&5
16661 ac_status=$?
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); }; }; then
16664 ac_cv_have_decl_FE_INEXACT=yes
16665 else
16666 echo "$as_me: failed program was:" >&5
16667 sed 's/^/| /' conftest.$ac_ext >&5
16669 ac_cv_have_decl_FE_INEXACT=no
16670 fi
16672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16673 fi
16674 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16675 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16676 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16678 cat >>confdefs.h <<_ACEOF
16679 #define HAVE_DECL_FE_INEXACT 1
16680 _ACEOF
16683 else
16684 cat >>confdefs.h <<_ACEOF
16685 #define HAVE_DECL_FE_INEXACT 0
16686 _ACEOF
16689 fi
16692 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16694 for ac_header in pthread.h
16695 do
16696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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 fi
16703 ac_res=`eval echo '${'$as_ac_Header'}'`
16704 { echo "$as_me:$LINENO: result: $ac_res" >&5
16705 echo "${ECHO_T}$ac_res" >&6; }
16706 else
16707 # Is the header compilable?
16708 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16710 cat >conftest.$ac_ext <<_ACEOF
16711 /* confdefs.h. */
16712 _ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h. */
16716 $ac_includes_default
16717 #include <$ac_header>
16718 _ACEOF
16719 rm -f conftest.$ac_objext
16720 if { (ac_try="$ac_compile"
16721 case "(($ac_try" in
16722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16723 *) ac_try_echo=$ac_try;;
16724 esac
16725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16726 (eval "$ac_compile") 2>conftest.er1
16727 ac_status=$?
16728 grep -v '^ *+' conftest.er1 >conftest.err
16729 rm -f conftest.er1
16730 cat conftest.err >&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } &&
16733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16734 { (case "(($ac_try" in
16735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736 *) ac_try_echo=$ac_try;;
16737 esac
16738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16739 (eval "$ac_try") 2>&5
16740 ac_status=$?
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); }; } &&
16743 { ac_try='test -s conftest.$ac_objext'
16744 { (case "(($ac_try" in
16745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16746 *) ac_try_echo=$ac_try;;
16747 esac
16748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16749 (eval "$ac_try") 2>&5
16750 ac_status=$?
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); }; }; then
16753 ac_header_compiler=yes
16754 else
16755 echo "$as_me: failed program was:" >&5
16756 sed 's/^/| /' conftest.$ac_ext >&5
16758 ac_header_compiler=no
16759 fi
16761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16762 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16763 echo "${ECHO_T}$ac_header_compiler" >&6; }
16765 # Is the header present?
16766 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16768 cat >conftest.$ac_ext <<_ACEOF
16769 /* confdefs.h. */
16770 _ACEOF
16771 cat confdefs.h >>conftest.$ac_ext
16772 cat >>conftest.$ac_ext <<_ACEOF
16773 /* end confdefs.h. */
16774 #include <$ac_header>
16775 _ACEOF
16776 if { (ac_try="$ac_cpp conftest.$ac_ext"
16777 case "(($ac_try" in
16778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16779 *) ac_try_echo=$ac_try;;
16780 esac
16781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16783 ac_status=$?
16784 grep -v '^ *+' conftest.er1 >conftest.err
16785 rm -f conftest.er1
16786 cat conftest.err >&5
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); } >/dev/null; then
16789 if test -s conftest.err; then
16790 ac_cpp_err=$ac_c_preproc_warn_flag
16791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16792 else
16793 ac_cpp_err=
16794 fi
16795 else
16796 ac_cpp_err=yes
16797 fi
16798 if test -z "$ac_cpp_err"; then
16799 ac_header_preproc=yes
16800 else
16801 echo "$as_me: failed program was:" >&5
16802 sed 's/^/| /' conftest.$ac_ext >&5
16804 ac_header_preproc=no
16805 fi
16807 rm -f conftest.err conftest.$ac_ext
16808 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16809 echo "${ECHO_T}$ac_header_preproc" >&6; }
16811 # So? What about this header?
16812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16813 yes:no: )
16814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16817 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16818 ac_header_preproc=yes
16819 ;;
16820 no:yes:* )
16821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16822 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16824 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16825 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16826 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16827 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16828 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16832 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16833 ( cat <<\_ASBOX
16834 ## ------------------------------------ ##
16835 ## Report this to http://llvm.org/bugs/ ##
16836 ## ------------------------------------ ##
16837 _ASBOX
16838 ) | sed "s/^/$as_me: WARNING: /" >&2
16839 ;;
16840 esac
16841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16844 echo $ECHO_N "(cached) $ECHO_C" >&6
16845 else
16846 eval "$as_ac_Header=\$ac_header_preproc"
16847 fi
16848 ac_res=`eval echo '${'$as_ac_Header'}'`
16849 { echo "$as_me:$LINENO: result: $ac_res" >&5
16850 echo "${ECHO_T}$ac_res" >&6; }
16852 fi
16853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16854 cat >>confdefs.h <<_ACEOF
16855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16856 _ACEOF
16857 HAVE_PTHREAD=1
16859 else
16860 HAVE_PTHREAD=0
16862 fi
16864 done
16866 else
16867 HAVE_PTHREAD=0
16869 fi
16870 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16872 for ac_header in zlib.h
16873 do
16874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16879 echo $ECHO_N "(cached) $ECHO_C" >&6
16880 fi
16881 ac_res=`eval echo '${'$as_ac_Header'}'`
16882 { echo "$as_me:$LINENO: result: $ac_res" >&5
16883 echo "${ECHO_T}$ac_res" >&6; }
16884 else
16885 # Is the header compilable?
16886 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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 #include <$ac_header>
16896 _ACEOF
16897 rm -f conftest.$ac_objext
16898 if { (ac_try="$ac_compile"
16899 case "(($ac_try" in
16900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16901 *) ac_try_echo=$ac_try;;
16902 esac
16903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16904 (eval "$ac_compile") 2>conftest.er1
16905 ac_status=$?
16906 grep -v '^ *+' conftest.er1 >conftest.err
16907 rm -f conftest.er1
16908 cat conftest.err >&5
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); } &&
16911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16912 { (case "(($ac_try" in
16913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914 *) ac_try_echo=$ac_try;;
16915 esac
16916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_try") 2>&5
16918 ac_status=$?
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; } &&
16921 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16931 ac_header_compiler=yes
16932 else
16933 echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16936 ac_header_compiler=no
16937 fi
16939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16940 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16941 echo "${ECHO_T}$ac_header_compiler" >&6; }
16943 # Is the header present?
16944 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16946 cat >conftest.$ac_ext <<_ACEOF
16947 /* confdefs.h. */
16948 _ACEOF
16949 cat confdefs.h >>conftest.$ac_ext
16950 cat >>conftest.$ac_ext <<_ACEOF
16951 /* end confdefs.h. */
16952 #include <$ac_header>
16953 _ACEOF
16954 if { (ac_try="$ac_cpp conftest.$ac_ext"
16955 case "(($ac_try" in
16956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16957 *) ac_try_echo=$ac_try;;
16958 esac
16959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16961 ac_status=$?
16962 grep -v '^ *+' conftest.er1 >conftest.err
16963 rm -f conftest.er1
16964 cat conftest.err >&5
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); } >/dev/null; then
16967 if test -s conftest.err; then
16968 ac_cpp_err=$ac_c_preproc_warn_flag
16969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16970 else
16971 ac_cpp_err=
16972 fi
16973 else
16974 ac_cpp_err=yes
16975 fi
16976 if test -z "$ac_cpp_err"; then
16977 ac_header_preproc=yes
16978 else
16979 echo "$as_me: failed program was:" >&5
16980 sed 's/^/| /' conftest.$ac_ext >&5
16982 ac_header_preproc=no
16983 fi
16985 rm -f conftest.err conftest.$ac_ext
16986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16987 echo "${ECHO_T}$ac_header_preproc" >&6; }
16989 # So? What about this header?
16990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16991 yes:no: )
16992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16996 ac_header_preproc=yes
16997 ;;
16998 no:yes:* )
16999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17006 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17011 ( cat <<\_ASBOX
17012 ## ------------------------------------ ##
17013 ## Report this to http://llvm.org/bugs/ ##
17014 ## ------------------------------------ ##
17015 _ASBOX
17016 ) | sed "s/^/$as_me: WARNING: /" >&2
17017 ;;
17018 esac
17019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17022 echo $ECHO_N "(cached) $ECHO_C" >&6
17023 else
17024 eval "$as_ac_Header=\$ac_header_preproc"
17025 fi
17026 ac_res=`eval echo '${'$as_ac_Header'}'`
17027 { echo "$as_me:$LINENO: result: $ac_res" >&5
17028 echo "${ECHO_T}$ac_res" >&6; }
17030 fi
17031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17032 cat >>confdefs.h <<_ACEOF
17033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17034 _ACEOF
17035 HAVE_LIBZ=1
17037 else
17038 HAVE_LIBZ=0
17040 fi
17042 done
17044 else
17045 HAVE_LIBZ=0
17047 fi
17049 if test "$llvm_cv_enable_libffi" = "yes" ; then
17052 for ac_header in ffi.h ffi/ffi.h
17053 do
17054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17059 echo $ECHO_N "(cached) $ECHO_C" >&6
17060 fi
17061 ac_res=`eval echo '${'$as_ac_Header'}'`
17062 { echo "$as_me:$LINENO: result: $ac_res" >&5
17063 echo "${ECHO_T}$ac_res" >&6; }
17064 else
17065 # Is the header compilable?
17066 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17068 cat >conftest.$ac_ext <<_ACEOF
17069 /* confdefs.h. */
17070 _ACEOF
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h. */
17074 $ac_includes_default
17075 #include <$ac_header>
17076 _ACEOF
17077 rm -f conftest.$ac_objext
17078 if { (ac_try="$ac_compile"
17079 case "(($ac_try" in
17080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081 *) ac_try_echo=$ac_try;;
17082 esac
17083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17084 (eval "$ac_compile") 2>conftest.er1
17085 ac_status=$?
17086 grep -v '^ *+' conftest.er1 >conftest.err
17087 rm -f conftest.er1
17088 cat conftest.err >&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); } &&
17091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17092 { (case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17095 esac
17096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097 (eval "$ac_try") 2>&5
17098 ac_status=$?
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; } &&
17101 { ac_try='test -s conftest.$ac_objext'
17102 { (case "(($ac_try" in
17103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17104 *) ac_try_echo=$ac_try;;
17105 esac
17106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17107 (eval "$ac_try") 2>&5
17108 ac_status=$?
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; }; then
17111 ac_header_compiler=yes
17112 else
17113 echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17116 ac_header_compiler=no
17117 fi
17119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17120 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17121 echo "${ECHO_T}$ac_header_compiler" >&6; }
17123 # Is the header present?
17124 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17126 cat >conftest.$ac_ext <<_ACEOF
17127 /* confdefs.h. */
17128 _ACEOF
17129 cat confdefs.h >>conftest.$ac_ext
17130 cat >>conftest.$ac_ext <<_ACEOF
17131 /* end confdefs.h. */
17132 #include <$ac_header>
17133 _ACEOF
17134 if { (ac_try="$ac_cpp conftest.$ac_ext"
17135 case "(($ac_try" in
17136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17137 *) ac_try_echo=$ac_try;;
17138 esac
17139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17141 ac_status=$?
17142 grep -v '^ *+' conftest.er1 >conftest.err
17143 rm -f conftest.er1
17144 cat conftest.err >&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); } >/dev/null; then
17147 if test -s conftest.err; then
17148 ac_cpp_err=$ac_c_preproc_warn_flag
17149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17150 else
17151 ac_cpp_err=
17152 fi
17153 else
17154 ac_cpp_err=yes
17155 fi
17156 if test -z "$ac_cpp_err"; then
17157 ac_header_preproc=yes
17158 else
17159 echo "$as_me: failed program was:" >&5
17160 sed 's/^/| /' conftest.$ac_ext >&5
17162 ac_header_preproc=no
17163 fi
17165 rm -f conftest.err conftest.$ac_ext
17166 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17167 echo "${ECHO_T}$ac_header_preproc" >&6; }
17169 # So? What about this header?
17170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17171 yes:no: )
17172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17176 ac_header_preproc=yes
17177 ;;
17178 no:yes:* )
17179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17191 ( cat <<\_ASBOX
17192 ## ------------------------------------ ##
17193 ## Report this to http://llvm.org/bugs/ ##
17194 ## ------------------------------------ ##
17195 _ASBOX
17196 ) | sed "s/^/$as_me: WARNING: /" >&2
17197 ;;
17198 esac
17199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17202 echo $ECHO_N "(cached) $ECHO_C" >&6
17203 else
17204 eval "$as_ac_Header=\$ac_header_preproc"
17205 fi
17206 ac_res=`eval echo '${'$as_ac_Header'}'`
17207 { echo "$as_me:$LINENO: result: $ac_res" >&5
17208 echo "${ECHO_T}$ac_res" >&6; }
17210 fi
17211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17212 cat >>confdefs.h <<_ACEOF
17213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17214 _ACEOF
17216 fi
17218 done
17220 fi
17223 for ac_header in CrashReporterClient.h
17224 do
17225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17230 echo $ECHO_N "(cached) $ECHO_C" >&6
17231 fi
17232 ac_res=`eval echo '${'$as_ac_Header'}'`
17233 { echo "$as_me:$LINENO: result: $ac_res" >&5
17234 echo "${ECHO_T}$ac_res" >&6; }
17235 else
17236 # Is the header compilable?
17237 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17238 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17239 cat >conftest.$ac_ext <<_ACEOF
17240 /* confdefs.h. */
17241 _ACEOF
17242 cat confdefs.h >>conftest.$ac_ext
17243 cat >>conftest.$ac_ext <<_ACEOF
17244 /* end confdefs.h. */
17245 $ac_includes_default
17246 #include <$ac_header>
17247 _ACEOF
17248 rm -f conftest.$ac_objext
17249 if { (ac_try="$ac_compile"
17250 case "(($ac_try" in
17251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252 *) ac_try_echo=$ac_try;;
17253 esac
17254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17255 (eval "$ac_compile") 2>conftest.er1
17256 ac_status=$?
17257 grep -v '^ *+' conftest.er1 >conftest.err
17258 rm -f conftest.er1
17259 cat conftest.err >&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); } &&
17262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17263 { (case "(($ac_try" in
17264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265 *) ac_try_echo=$ac_try;;
17266 esac
17267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268 (eval "$ac_try") 2>&5
17269 ac_status=$?
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); }; } &&
17272 { ac_try='test -s conftest.$ac_objext'
17273 { (case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17276 esac
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_try") 2>&5
17279 ac_status=$?
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); }; }; then
17282 ac_header_compiler=yes
17283 else
17284 echo "$as_me: failed program was:" >&5
17285 sed 's/^/| /' conftest.$ac_ext >&5
17287 ac_header_compiler=no
17288 fi
17290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17292 echo "${ECHO_T}$ac_header_compiler" >&6; }
17294 # Is the header present?
17295 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17297 cat >conftest.$ac_ext <<_ACEOF
17298 /* confdefs.h. */
17299 _ACEOF
17300 cat confdefs.h >>conftest.$ac_ext
17301 cat >>conftest.$ac_ext <<_ACEOF
17302 /* end confdefs.h. */
17303 #include <$ac_header>
17304 _ACEOF
17305 if { (ac_try="$ac_cpp conftest.$ac_ext"
17306 case "(($ac_try" in
17307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308 *) ac_try_echo=$ac_try;;
17309 esac
17310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17312 ac_status=$?
17313 grep -v '^ *+' conftest.er1 >conftest.err
17314 rm -f conftest.er1
17315 cat conftest.err >&5
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); } >/dev/null; then
17318 if test -s conftest.err; then
17319 ac_cpp_err=$ac_c_preproc_warn_flag
17320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17321 else
17322 ac_cpp_err=
17323 fi
17324 else
17325 ac_cpp_err=yes
17326 fi
17327 if test -z "$ac_cpp_err"; then
17328 ac_header_preproc=yes
17329 else
17330 echo "$as_me: failed program was:" >&5
17331 sed 's/^/| /' conftest.$ac_ext >&5
17333 ac_header_preproc=no
17334 fi
17336 rm -f conftest.err conftest.$ac_ext
17337 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17338 echo "${ECHO_T}$ac_header_preproc" >&6; }
17340 # So? What about this header?
17341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17342 yes:no: )
17343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17347 ac_header_preproc=yes
17348 ;;
17349 no:yes:* )
17350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17357 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17362 ( cat <<\_ASBOX
17363 ## ------------------------------------ ##
17364 ## Report this to http://llvm.org/bugs/ ##
17365 ## ------------------------------------ ##
17366 _ASBOX
17367 ) | sed "s/^/$as_me: WARNING: /" >&2
17368 ;;
17369 esac
17370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17373 echo $ECHO_N "(cached) $ECHO_C" >&6
17374 else
17375 eval "$as_ac_Header=\$ac_header_preproc"
17376 fi
17377 ac_res=`eval echo '${'$as_ac_Header'}'`
17378 { echo "$as_me:$LINENO: result: $ac_res" >&5
17379 echo "${ECHO_T}$ac_res" >&6; }
17381 fi
17382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17383 cat >>confdefs.h <<_ACEOF
17384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17385 _ACEOF
17387 fi
17389 done
17392 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17393 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17394 cat >conftest.$ac_ext <<_ACEOF
17396 /* confdefs.h. */
17397 _ACEOF
17398 cat confdefs.h >>conftest.$ac_ext
17399 cat >>conftest.$ac_ext <<_ACEOF
17400 /* end confdefs.h. */
17402 extern const char *__crashreporter_info__;
17403 int main() {
17404 __crashreporter_info__ = "test";
17405 return 0;
17406 }
17409 _ACEOF
17410 rm -f conftest.$ac_objext conftest$ac_exeext
17411 if { (ac_try="$ac_link"
17412 case "(($ac_try" in
17413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414 *) ac_try_echo=$ac_try;;
17415 esac
17416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17417 (eval "$ac_link") 2>conftest.er1
17418 ac_status=$?
17419 grep -v '^ *+' conftest.er1 >conftest.err
17420 rm -f conftest.er1
17421 cat conftest.err >&5
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); } &&
17424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17425 { (case "(($ac_try" in
17426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17427 *) ac_try_echo=$ac_try;;
17428 esac
17429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430 (eval "$ac_try") 2>&5
17431 ac_status=$?
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); }; } &&
17434 { ac_try='test -s conftest$ac_exeext'
17435 { (case "(($ac_try" in
17436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17437 *) ac_try_echo=$ac_try;;
17438 esac
17439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17440 (eval "$ac_try") 2>&5
17441 ac_status=$?
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); }; }; then
17445 { echo "$as_me:$LINENO: result: yes" >&5
17446 echo "${ECHO_T}yes" >&6; }
17448 cat >>confdefs.h <<\_ACEOF
17449 #define HAVE_CRASHREPORTER_INFO 1
17450 _ACEOF
17453 else
17454 echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.$ac_ext >&5
17458 { echo "$as_me:$LINENO: result: no" >&5
17459 echo "${ECHO_T}no" >&6; }
17461 cat >>confdefs.h <<\_ACEOF
17462 #define HAVE_CRASHREPORTER_INFO 0
17463 _ACEOF
17466 fi
17468 rm -f core conftest.err conftest.$ac_objext \
17469 conftest$ac_exeext conftest.$ac_ext
17473 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17474 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17475 if test "${ac_cv_huge_val_sanity+set}" = set; then
17476 echo $ECHO_N "(cached) $ECHO_C" >&6
17477 else
17479 ac_ext=cpp
17480 ac_cpp='$CXXCPP $CPPFLAGS'
17481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17485 ac_save_CXXFLAGS=$CXXFLAGS
17486 CXXFLAGS="$CXXFLAGS -pedantic"
17487 if test "$cross_compiling" = yes; then
17488 ac_cv_huge_val_sanity=yes
17489 else
17490 cat >conftest.$ac_ext <<_ACEOF
17491 /* confdefs.h. */
17492 _ACEOF
17493 cat confdefs.h >>conftest.$ac_ext
17494 cat >>conftest.$ac_ext <<_ACEOF
17495 /* end confdefs.h. */
17496 #include <math.h>
17497 int
17498 main ()
17499 {
17500 double x = HUGE_VAL; return x != x;
17501 ;
17502 return 0;
17503 }
17504 _ACEOF
17505 rm -f conftest$ac_exeext
17506 if { (ac_try="$ac_link"
17507 case "(($ac_try" in
17508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509 *) ac_try_echo=$ac_try;;
17510 esac
17511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512 (eval "$ac_link") 2>&5
17513 ac_status=$?
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17516 { (case "(($ac_try" in
17517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17518 *) ac_try_echo=$ac_try;;
17519 esac
17520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17521 (eval "$ac_try") 2>&5
17522 ac_status=$?
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); }; }; then
17525 ac_cv_huge_val_sanity=yes
17526 else
17527 echo "$as_me: program exited with status $ac_status" >&5
17528 echo "$as_me: failed program was:" >&5
17529 sed 's/^/| /' conftest.$ac_ext >&5
17531 ( exit $ac_status )
17532 ac_cv_huge_val_sanity=no
17533 fi
17534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17535 fi
17538 CXXFLAGS=$ac_save_CXXFLAGS
17539 ac_ext=c
17540 ac_cpp='$CPP $CPPFLAGS'
17541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17546 fi
17547 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17548 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17549 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17552 { echo "$as_me:$LINENO: checking for pid_t" >&5
17553 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17554 if test "${ac_cv_type_pid_t+set}" = set; then
17555 echo $ECHO_N "(cached) $ECHO_C" >&6
17556 else
17557 cat >conftest.$ac_ext <<_ACEOF
17558 /* confdefs.h. */
17559 _ACEOF
17560 cat confdefs.h >>conftest.$ac_ext
17561 cat >>conftest.$ac_ext <<_ACEOF
17562 /* end confdefs.h. */
17563 $ac_includes_default
17564 typedef pid_t ac__type_new_;
17565 int
17566 main ()
17567 {
17568 if ((ac__type_new_ *) 0)
17569 return 0;
17570 if (sizeof (ac__type_new_))
17571 return 0;
17572 ;
17573 return 0;
17574 }
17575 _ACEOF
17576 rm -f conftest.$ac_objext
17577 if { (ac_try="$ac_compile"
17578 case "(($ac_try" in
17579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580 *) ac_try_echo=$ac_try;;
17581 esac
17582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17583 (eval "$ac_compile") 2>conftest.er1
17584 ac_status=$?
17585 grep -v '^ *+' conftest.er1 >conftest.err
17586 rm -f conftest.er1
17587 cat conftest.err >&5
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); } &&
17590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17591 { (case "(($ac_try" in
17592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17593 *) ac_try_echo=$ac_try;;
17594 esac
17595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17596 (eval "$ac_try") 2>&5
17597 ac_status=$?
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; } &&
17600 { ac_try='test -s conftest.$ac_objext'
17601 { (case "(($ac_try" in
17602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603 *) ac_try_echo=$ac_try;;
17604 esac
17605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17606 (eval "$ac_try") 2>&5
17607 ac_status=$?
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); }; }; then
17610 ac_cv_type_pid_t=yes
17611 else
17612 echo "$as_me: failed program was:" >&5
17613 sed 's/^/| /' conftest.$ac_ext >&5
17615 ac_cv_type_pid_t=no
17616 fi
17618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17619 fi
17620 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17621 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17622 if test $ac_cv_type_pid_t = yes; then
17623 :
17624 else
17626 cat >>confdefs.h <<_ACEOF
17627 #define pid_t int
17628 _ACEOF
17630 fi
17632 { echo "$as_me:$LINENO: checking for size_t" >&5
17633 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17634 if test "${ac_cv_type_size_t+set}" = set; then
17635 echo $ECHO_N "(cached) $ECHO_C" >&6
17636 else
17637 cat >conftest.$ac_ext <<_ACEOF
17638 /* confdefs.h. */
17639 _ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h. */
17643 $ac_includes_default
17644 typedef size_t ac__type_new_;
17645 int
17646 main ()
17647 {
17648 if ((ac__type_new_ *) 0)
17649 return 0;
17650 if (sizeof (ac__type_new_))
17651 return 0;
17652 ;
17653 return 0;
17654 }
17655 _ACEOF
17656 rm -f conftest.$ac_objext
17657 if { (ac_try="$ac_compile"
17658 case "(($ac_try" in
17659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660 *) ac_try_echo=$ac_try;;
17661 esac
17662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663 (eval "$ac_compile") 2>conftest.er1
17664 ac_status=$?
17665 grep -v '^ *+' conftest.er1 >conftest.err
17666 rm -f conftest.er1
17667 cat conftest.err >&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); } &&
17670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17671 { (case "(($ac_try" in
17672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673 *) ac_try_echo=$ac_try;;
17674 esac
17675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17676 (eval "$ac_try") 2>&5
17677 ac_status=$?
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); }; } &&
17680 { ac_try='test -s conftest.$ac_objext'
17681 { (case "(($ac_try" in
17682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17683 *) ac_try_echo=$ac_try;;
17684 esac
17685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17686 (eval "$ac_try") 2>&5
17687 ac_status=$?
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; }; then
17690 ac_cv_type_size_t=yes
17691 else
17692 echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17695 ac_cv_type_size_t=no
17696 fi
17698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17699 fi
17700 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17701 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17702 if test $ac_cv_type_size_t = yes; then
17703 :
17704 else
17706 cat >>confdefs.h <<_ACEOF
17707 #define size_t unsigned int
17708 _ACEOF
17710 fi
17713 cat >>confdefs.h <<_ACEOF
17714 #define RETSIGTYPE void
17715 _ACEOF
17717 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17718 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17719 if test "${ac_cv_struct_tm+set}" = set; then
17720 echo $ECHO_N "(cached) $ECHO_C" >&6
17721 else
17722 cat >conftest.$ac_ext <<_ACEOF
17723 /* confdefs.h. */
17724 _ACEOF
17725 cat confdefs.h >>conftest.$ac_ext
17726 cat >>conftest.$ac_ext <<_ACEOF
17727 /* end confdefs.h. */
17728 #include <sys/types.h>
17729 #include <time.h>
17731 int
17732 main ()
17733 {
17734 struct tm *tp; tp->tm_sec;
17735 ;
17736 return 0;
17737 }
17738 _ACEOF
17739 rm -f conftest.$ac_objext
17740 if { (ac_try="$ac_compile"
17741 case "(($ac_try" in
17742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17743 *) ac_try_echo=$ac_try;;
17744 esac
17745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17746 (eval "$ac_compile") 2>conftest.er1
17747 ac_status=$?
17748 grep -v '^ *+' conftest.er1 >conftest.err
17749 rm -f conftest.er1
17750 cat conftest.err >&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); } &&
17753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17754 { (case "(($ac_try" in
17755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17756 *) ac_try_echo=$ac_try;;
17757 esac
17758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17759 (eval "$ac_try") 2>&5
17760 ac_status=$?
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); }; } &&
17763 { ac_try='test -s conftest.$ac_objext'
17764 { (case "(($ac_try" in
17765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17766 *) ac_try_echo=$ac_try;;
17767 esac
17768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17769 (eval "$ac_try") 2>&5
17770 ac_status=$?
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; }; then
17773 ac_cv_struct_tm=time.h
17774 else
17775 echo "$as_me: failed program was:" >&5
17776 sed 's/^/| /' conftest.$ac_ext >&5
17778 ac_cv_struct_tm=sys/time.h
17779 fi
17781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17782 fi
17783 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17784 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17785 if test $ac_cv_struct_tm = sys/time.h; then
17787 cat >>confdefs.h <<\_ACEOF
17788 #define TM_IN_SYS_TIME 1
17789 _ACEOF
17791 fi
17793 { echo "$as_me:$LINENO: checking for int64_t" >&5
17794 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17795 if test "${ac_cv_type_int64_t+set}" = set; then
17796 echo $ECHO_N "(cached) $ECHO_C" >&6
17797 else
17798 cat >conftest.$ac_ext <<_ACEOF
17799 /* confdefs.h. */
17800 _ACEOF
17801 cat confdefs.h >>conftest.$ac_ext
17802 cat >>conftest.$ac_ext <<_ACEOF
17803 /* end confdefs.h. */
17804 $ac_includes_default
17805 typedef int64_t ac__type_new_;
17806 int
17807 main ()
17808 {
17809 if ((ac__type_new_ *) 0)
17810 return 0;
17811 if (sizeof (ac__type_new_))
17812 return 0;
17813 ;
17814 return 0;
17815 }
17816 _ACEOF
17817 rm -f conftest.$ac_objext
17818 if { (ac_try="$ac_compile"
17819 case "(($ac_try" in
17820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17821 *) ac_try_echo=$ac_try;;
17822 esac
17823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17824 (eval "$ac_compile") 2>conftest.er1
17825 ac_status=$?
17826 grep -v '^ *+' conftest.er1 >conftest.err
17827 rm -f conftest.er1
17828 cat conftest.err >&5
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); } &&
17831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17832 { (case "(($ac_try" in
17833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17834 *) ac_try_echo=$ac_try;;
17835 esac
17836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17837 (eval "$ac_try") 2>&5
17838 ac_status=$?
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; } &&
17841 { ac_try='test -s conftest.$ac_objext'
17842 { (case "(($ac_try" in
17843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17844 *) ac_try_echo=$ac_try;;
17845 esac
17846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17847 (eval "$ac_try") 2>&5
17848 ac_status=$?
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); }; }; then
17851 ac_cv_type_int64_t=yes
17852 else
17853 echo "$as_me: failed program was:" >&5
17854 sed 's/^/| /' conftest.$ac_ext >&5
17856 ac_cv_type_int64_t=no
17857 fi
17859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17860 fi
17861 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17862 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17863 if test $ac_cv_type_int64_t = yes; then
17865 cat >>confdefs.h <<_ACEOF
17866 #define HAVE_INT64_T 1
17867 _ACEOF
17870 else
17871 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17872 echo "$as_me: error: Type int64_t required but not found" >&2;}
17873 { (exit 1); exit 1; }; }
17874 fi
17876 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17877 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17878 if test "${ac_cv_type_uint64_t+set}" = set; then
17879 echo $ECHO_N "(cached) $ECHO_C" >&6
17880 else
17881 cat >conftest.$ac_ext <<_ACEOF
17882 /* confdefs.h. */
17883 _ACEOF
17884 cat confdefs.h >>conftest.$ac_ext
17885 cat >>conftest.$ac_ext <<_ACEOF
17886 /* end confdefs.h. */
17887 $ac_includes_default
17888 typedef uint64_t ac__type_new_;
17889 int
17890 main ()
17891 {
17892 if ((ac__type_new_ *) 0)
17893 return 0;
17894 if (sizeof (ac__type_new_))
17895 return 0;
17896 ;
17897 return 0;
17898 }
17899 _ACEOF
17900 rm -f conftest.$ac_objext
17901 if { (ac_try="$ac_compile"
17902 case "(($ac_try" in
17903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17904 *) ac_try_echo=$ac_try;;
17905 esac
17906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17907 (eval "$ac_compile") 2>conftest.er1
17908 ac_status=$?
17909 grep -v '^ *+' conftest.er1 >conftest.err
17910 rm -f conftest.er1
17911 cat conftest.err >&5
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); } &&
17914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17915 { (case "(($ac_try" in
17916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17917 *) ac_try_echo=$ac_try;;
17918 esac
17919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17920 (eval "$ac_try") 2>&5
17921 ac_status=$?
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; } &&
17924 { ac_try='test -s conftest.$ac_objext'
17925 { (case "(($ac_try" in
17926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17927 *) ac_try_echo=$ac_try;;
17928 esac
17929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17930 (eval "$ac_try") 2>&5
17931 ac_status=$?
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; }; then
17934 ac_cv_type_uint64_t=yes
17935 else
17936 echo "$as_me: failed program was:" >&5
17937 sed 's/^/| /' conftest.$ac_ext >&5
17939 ac_cv_type_uint64_t=no
17940 fi
17942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17943 fi
17944 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17945 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17946 if test $ac_cv_type_uint64_t = yes; then
17948 cat >>confdefs.h <<_ACEOF
17949 #define HAVE_UINT64_T 1
17950 _ACEOF
17953 else
17954 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17955 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17956 if test "${ac_cv_type_u_int64_t+set}" = set; then
17957 echo $ECHO_N "(cached) $ECHO_C" >&6
17958 else
17959 cat >conftest.$ac_ext <<_ACEOF
17960 /* confdefs.h. */
17961 _ACEOF
17962 cat confdefs.h >>conftest.$ac_ext
17963 cat >>conftest.$ac_ext <<_ACEOF
17964 /* end confdefs.h. */
17965 $ac_includes_default
17966 typedef u_int64_t ac__type_new_;
17967 int
17968 main ()
17969 {
17970 if ((ac__type_new_ *) 0)
17971 return 0;
17972 if (sizeof (ac__type_new_))
17973 return 0;
17974 ;
17975 return 0;
17976 }
17977 _ACEOF
17978 rm -f conftest.$ac_objext
17979 if { (ac_try="$ac_compile"
17980 case "(($ac_try" in
17981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17982 *) ac_try_echo=$ac_try;;
17983 esac
17984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17985 (eval "$ac_compile") 2>conftest.er1
17986 ac_status=$?
17987 grep -v '^ *+' conftest.er1 >conftest.err
17988 rm -f conftest.er1
17989 cat conftest.err >&5
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); } &&
17992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17993 { (case "(($ac_try" in
17994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17995 *) ac_try_echo=$ac_try;;
17996 esac
17997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17998 (eval "$ac_try") 2>&5
17999 ac_status=$?
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); }; } &&
18002 { ac_try='test -s conftest.$ac_objext'
18003 { (case "(($ac_try" in
18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005 *) ac_try_echo=$ac_try;;
18006 esac
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008 (eval "$ac_try") 2>&5
18009 ac_status=$?
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); }; }; then
18012 ac_cv_type_u_int64_t=yes
18013 else
18014 echo "$as_me: failed program was:" >&5
18015 sed 's/^/| /' conftest.$ac_ext >&5
18017 ac_cv_type_u_int64_t=no
18018 fi
18020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18021 fi
18022 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18023 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18024 if test $ac_cv_type_u_int64_t = yes; then
18026 cat >>confdefs.h <<_ACEOF
18027 #define HAVE_U_INT64_T 1
18028 _ACEOF
18031 else
18032 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18033 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18034 { (exit 1); exit 1; }; }
18035 fi
18037 fi
18048 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18049 do
18050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18051 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18053 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18054 echo $ECHO_N "(cached) $ECHO_C" >&6
18055 else
18056 cat >conftest.$ac_ext <<_ACEOF
18057 /* confdefs.h. */
18058 _ACEOF
18059 cat confdefs.h >>conftest.$ac_ext
18060 cat >>conftest.$ac_ext <<_ACEOF
18061 /* end confdefs.h. */
18062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18064 #define $ac_func innocuous_$ac_func
18066 /* System header to define __stub macros and hopefully few prototypes,
18067 which can conflict with char $ac_func (); below.
18068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18069 <limits.h> exists even on freestanding compilers. */
18071 #ifdef __STDC__
18072 # include <limits.h>
18073 #else
18074 # include <assert.h>
18075 #endif
18077 #undef $ac_func
18079 /* Override any GCC internal prototype to avoid an error.
18080 Use char because int might match the return type of a GCC
18081 builtin and then its argument prototype would still apply. */
18082 #ifdef __cplusplus
18083 extern "C"
18084 #endif
18085 char $ac_func ();
18086 /* The GNU C library defines this for functions which it implements
18087 to always fail with ENOSYS. Some functions are actually named
18088 something starting with __ and the normal name is an alias. */
18089 #if defined __stub_$ac_func || defined __stub___$ac_func
18090 choke me
18091 #endif
18093 int
18094 main ()
18095 {
18096 return $ac_func ();
18097 ;
18098 return 0;
18099 }
18100 _ACEOF
18101 rm -f conftest.$ac_objext conftest$ac_exeext
18102 if { (ac_try="$ac_link"
18103 case "(($ac_try" in
18104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18105 *) ac_try_echo=$ac_try;;
18106 esac
18107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18108 (eval "$ac_link") 2>conftest.er1
18109 ac_status=$?
18110 grep -v '^ *+' conftest.er1 >conftest.err
18111 rm -f conftest.er1
18112 cat conftest.err >&5
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); } &&
18115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18116 { (case "(($ac_try" in
18117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18118 *) ac_try_echo=$ac_try;;
18119 esac
18120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18121 (eval "$ac_try") 2>&5
18122 ac_status=$?
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; } &&
18125 { ac_try='test -s conftest$ac_exeext'
18126 { (case "(($ac_try" in
18127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18128 *) ac_try_echo=$ac_try;;
18129 esac
18130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18131 (eval "$ac_try") 2>&5
18132 ac_status=$?
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); }; }; then
18135 eval "$as_ac_var=yes"
18136 else
18137 echo "$as_me: failed program was:" >&5
18138 sed 's/^/| /' conftest.$ac_ext >&5
18140 eval "$as_ac_var=no"
18141 fi
18143 rm -f core conftest.err conftest.$ac_objext \
18144 conftest$ac_exeext conftest.$ac_ext
18145 fi
18146 ac_res=`eval echo '${'$as_ac_var'}'`
18147 { echo "$as_me:$LINENO: result: $ac_res" >&5
18148 echo "${ECHO_T}$ac_res" >&6; }
18149 if test `eval echo '${'$as_ac_var'}'` = yes; then
18150 cat >>confdefs.h <<_ACEOF
18151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18152 _ACEOF
18154 fi
18155 done
18161 for ac_func in powf fmodf strtof round
18162 do
18163 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18164 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18165 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18166 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18167 echo $ECHO_N "(cached) $ECHO_C" >&6
18168 else
18169 cat >conftest.$ac_ext <<_ACEOF
18170 /* confdefs.h. */
18171 _ACEOF
18172 cat confdefs.h >>conftest.$ac_ext
18173 cat >>conftest.$ac_ext <<_ACEOF
18174 /* end confdefs.h. */
18175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18177 #define $ac_func innocuous_$ac_func
18179 /* System header to define __stub macros and hopefully few prototypes,
18180 which can conflict with char $ac_func (); below.
18181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18182 <limits.h> exists even on freestanding compilers. */
18184 #ifdef __STDC__
18185 # include <limits.h>
18186 #else
18187 # include <assert.h>
18188 #endif
18190 #undef $ac_func
18192 /* Override any GCC internal prototype to avoid an error.
18193 Use char because int might match the return type of a GCC
18194 builtin and then its argument prototype would still apply. */
18195 #ifdef __cplusplus
18196 extern "C"
18197 #endif
18198 char $ac_func ();
18199 /* The GNU C library defines this for functions which it implements
18200 to always fail with ENOSYS. Some functions are actually named
18201 something starting with __ and the normal name is an alias. */
18202 #if defined __stub_$ac_func || defined __stub___$ac_func
18203 choke me
18204 #endif
18206 int
18207 main ()
18208 {
18209 return $ac_func ();
18210 ;
18211 return 0;
18212 }
18213 _ACEOF
18214 rm -f conftest.$ac_objext conftest$ac_exeext
18215 if { (ac_try="$ac_link"
18216 case "(($ac_try" in
18217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18218 *) ac_try_echo=$ac_try;;
18219 esac
18220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18221 (eval "$ac_link") 2>conftest.er1
18222 ac_status=$?
18223 grep -v '^ *+' conftest.er1 >conftest.err
18224 rm -f conftest.er1
18225 cat conftest.err >&5
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); } &&
18228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18229 { (case "(($ac_try" in
18230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18231 *) ac_try_echo=$ac_try;;
18232 esac
18233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18234 (eval "$ac_try") 2>&5
18235 ac_status=$?
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); }; } &&
18238 { ac_try='test -s conftest$ac_exeext'
18239 { (case "(($ac_try" in
18240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18241 *) ac_try_echo=$ac_try;;
18242 esac
18243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18244 (eval "$ac_try") 2>&5
18245 ac_status=$?
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); }; }; then
18248 eval "$as_ac_var=yes"
18249 else
18250 echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.$ac_ext >&5
18253 eval "$as_ac_var=no"
18254 fi
18256 rm -f core conftest.err conftest.$ac_objext \
18257 conftest$ac_exeext conftest.$ac_ext
18258 fi
18259 ac_res=`eval echo '${'$as_ac_var'}'`
18260 { echo "$as_me:$LINENO: result: $ac_res" >&5
18261 echo "${ECHO_T}$ac_res" >&6; }
18262 if test `eval echo '${'$as_ac_var'}'` = yes; then
18263 cat >>confdefs.h <<_ACEOF
18264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18265 _ACEOF
18267 fi
18268 done
18275 for ac_func in log log2 log10 exp exp2
18276 do
18277 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18278 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18279 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18280 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18281 echo $ECHO_N "(cached) $ECHO_C" >&6
18282 else
18283 cat >conftest.$ac_ext <<_ACEOF
18284 /* confdefs.h. */
18285 _ACEOF
18286 cat confdefs.h >>conftest.$ac_ext
18287 cat >>conftest.$ac_ext <<_ACEOF
18288 /* end confdefs.h. */
18289 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18291 #define $ac_func innocuous_$ac_func
18293 /* System header to define __stub macros and hopefully few prototypes,
18294 which can conflict with char $ac_func (); below.
18295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18296 <limits.h> exists even on freestanding compilers. */
18298 #ifdef __STDC__
18299 # include <limits.h>
18300 #else
18301 # include <assert.h>
18302 #endif
18304 #undef $ac_func
18306 /* Override any GCC internal prototype to avoid an error.
18307 Use char because int might match the return type of a GCC
18308 builtin and then its argument prototype would still apply. */
18309 #ifdef __cplusplus
18310 extern "C"
18311 #endif
18312 char $ac_func ();
18313 /* The GNU C library defines this for functions which it implements
18314 to always fail with ENOSYS. Some functions are actually named
18315 something starting with __ and the normal name is an alias. */
18316 #if defined __stub_$ac_func || defined __stub___$ac_func
18317 choke me
18318 #endif
18320 int
18321 main ()
18322 {
18323 return $ac_func ();
18324 ;
18325 return 0;
18326 }
18327 _ACEOF
18328 rm -f conftest.$ac_objext conftest$ac_exeext
18329 if { (ac_try="$ac_link"
18330 case "(($ac_try" in
18331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332 *) ac_try_echo=$ac_try;;
18333 esac
18334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335 (eval "$ac_link") 2>conftest.er1
18336 ac_status=$?
18337 grep -v '^ *+' conftest.er1 >conftest.err
18338 rm -f conftest.er1
18339 cat conftest.err >&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); } &&
18342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18343 { (case "(($ac_try" in
18344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18345 *) ac_try_echo=$ac_try;;
18346 esac
18347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18348 (eval "$ac_try") 2>&5
18349 ac_status=$?
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; } &&
18352 { ac_try='test -s conftest$ac_exeext'
18353 { (case "(($ac_try" in
18354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18355 *) ac_try_echo=$ac_try;;
18356 esac
18357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18358 (eval "$ac_try") 2>&5
18359 ac_status=$?
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); }; }; then
18362 eval "$as_ac_var=yes"
18363 else
18364 echo "$as_me: failed program was:" >&5
18365 sed 's/^/| /' conftest.$ac_ext >&5
18367 eval "$as_ac_var=no"
18368 fi
18370 rm -f core conftest.err conftest.$ac_objext \
18371 conftest$ac_exeext conftest.$ac_ext
18372 fi
18373 ac_res=`eval echo '${'$as_ac_var'}'`
18374 { echo "$as_me:$LINENO: result: $ac_res" >&5
18375 echo "${ECHO_T}$ac_res" >&6; }
18376 if test `eval echo '${'$as_ac_var'}'` = yes; then
18377 cat >>confdefs.h <<_ACEOF
18378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18379 _ACEOF
18381 fi
18382 done
18389 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18390 do
18391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18392 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18394 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18395 echo $ECHO_N "(cached) $ECHO_C" >&6
18396 else
18397 cat >conftest.$ac_ext <<_ACEOF
18398 /* confdefs.h. */
18399 _ACEOF
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h. */
18403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18405 #define $ac_func innocuous_$ac_func
18407 /* System header to define __stub macros and hopefully few prototypes,
18408 which can conflict with char $ac_func (); below.
18409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18410 <limits.h> exists even on freestanding compilers. */
18412 #ifdef __STDC__
18413 # include <limits.h>
18414 #else
18415 # include <assert.h>
18416 #endif
18418 #undef $ac_func
18420 /* Override any GCC internal prototype to avoid an error.
18421 Use char because int might match the return type of a GCC
18422 builtin and then its argument prototype would still apply. */
18423 #ifdef __cplusplus
18424 extern "C"
18425 #endif
18426 char $ac_func ();
18427 /* The GNU C library defines this for functions which it implements
18428 to always fail with ENOSYS. Some functions are actually named
18429 something starting with __ and the normal name is an alias. */
18430 #if defined __stub_$ac_func || defined __stub___$ac_func
18431 choke me
18432 #endif
18434 int
18435 main ()
18436 {
18437 return $ac_func ();
18438 ;
18439 return 0;
18440 }
18441 _ACEOF
18442 rm -f conftest.$ac_objext conftest$ac_exeext
18443 if { (ac_try="$ac_link"
18444 case "(($ac_try" in
18445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18446 *) ac_try_echo=$ac_try;;
18447 esac
18448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18449 (eval "$ac_link") 2>conftest.er1
18450 ac_status=$?
18451 grep -v '^ *+' conftest.er1 >conftest.err
18452 rm -f conftest.er1
18453 cat conftest.err >&5
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); } &&
18456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18457 { (case "(($ac_try" in
18458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18459 *) ac_try_echo=$ac_try;;
18460 esac
18461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18462 (eval "$ac_try") 2>&5
18463 ac_status=$?
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; } &&
18466 { ac_try='test -s conftest$ac_exeext'
18467 { (case "(($ac_try" in
18468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469 *) ac_try_echo=$ac_try;;
18470 esac
18471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18472 (eval "$ac_try") 2>&5
18473 ac_status=$?
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }; }; then
18476 eval "$as_ac_var=yes"
18477 else
18478 echo "$as_me: failed program was:" >&5
18479 sed 's/^/| /' conftest.$ac_ext >&5
18481 eval "$as_ac_var=no"
18482 fi
18484 rm -f core conftest.err conftest.$ac_objext \
18485 conftest$ac_exeext conftest.$ac_ext
18486 fi
18487 ac_res=`eval echo '${'$as_ac_var'}'`
18488 { echo "$as_me:$LINENO: result: $ac_res" >&5
18489 echo "${ECHO_T}$ac_res" >&6; }
18490 if test `eval echo '${'$as_ac_var'}'` = yes; then
18491 cat >>confdefs.h <<_ACEOF
18492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18493 _ACEOF
18495 fi
18496 done
18501 for ac_func in isatty mkdtemp mkstemp
18502 do
18503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18504 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18506 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18507 echo $ECHO_N "(cached) $ECHO_C" >&6
18508 else
18509 cat >conftest.$ac_ext <<_ACEOF
18510 /* confdefs.h. */
18511 _ACEOF
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h. */
18515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18517 #define $ac_func innocuous_$ac_func
18519 /* System header to define __stub macros and hopefully few prototypes,
18520 which can conflict with char $ac_func (); below.
18521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18522 <limits.h> exists even on freestanding compilers. */
18524 #ifdef __STDC__
18525 # include <limits.h>
18526 #else
18527 # include <assert.h>
18528 #endif
18530 #undef $ac_func
18532 /* Override any GCC internal prototype to avoid an error.
18533 Use char because int might match the return type of a GCC
18534 builtin and then its argument prototype would still apply. */
18535 #ifdef __cplusplus
18536 extern "C"
18537 #endif
18538 char $ac_func ();
18539 /* The GNU C library defines this for functions which it implements
18540 to always fail with ENOSYS. Some functions are actually named
18541 something starting with __ and the normal name is an alias. */
18542 #if defined __stub_$ac_func || defined __stub___$ac_func
18543 choke me
18544 #endif
18546 int
18547 main ()
18548 {
18549 return $ac_func ();
18550 ;
18551 return 0;
18552 }
18553 _ACEOF
18554 rm -f conftest.$ac_objext conftest$ac_exeext
18555 if { (ac_try="$ac_link"
18556 case "(($ac_try" in
18557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18558 *) ac_try_echo=$ac_try;;
18559 esac
18560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18561 (eval "$ac_link") 2>conftest.er1
18562 ac_status=$?
18563 grep -v '^ *+' conftest.er1 >conftest.err
18564 rm -f conftest.er1
18565 cat conftest.err >&5
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); } &&
18568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18569 { (case "(($ac_try" in
18570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18571 *) ac_try_echo=$ac_try;;
18572 esac
18573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18574 (eval "$ac_try") 2>&5
18575 ac_status=$?
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); }; } &&
18578 { ac_try='test -s conftest$ac_exeext'
18579 { (case "(($ac_try" in
18580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18581 *) ac_try_echo=$ac_try;;
18582 esac
18583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18584 (eval "$ac_try") 2>&5
18585 ac_status=$?
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); }; }; then
18588 eval "$as_ac_var=yes"
18589 else
18590 echo "$as_me: failed program was:" >&5
18591 sed 's/^/| /' conftest.$ac_ext >&5
18593 eval "$as_ac_var=no"
18594 fi
18596 rm -f core conftest.err conftest.$ac_objext \
18597 conftest$ac_exeext conftest.$ac_ext
18598 fi
18599 ac_res=`eval echo '${'$as_ac_var'}'`
18600 { echo "$as_me:$LINENO: result: $ac_res" >&5
18601 echo "${ECHO_T}$ac_res" >&6; }
18602 if test `eval echo '${'$as_ac_var'}'` = yes; then
18603 cat >>confdefs.h <<_ACEOF
18604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18605 _ACEOF
18607 fi
18608 done
18617 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
18618 do
18619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18620 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18622 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18623 echo $ECHO_N "(cached) $ECHO_C" >&6
18624 else
18625 cat >conftest.$ac_ext <<_ACEOF
18626 /* confdefs.h. */
18627 _ACEOF
18628 cat confdefs.h >>conftest.$ac_ext
18629 cat >>conftest.$ac_ext <<_ACEOF
18630 /* end confdefs.h. */
18631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18633 #define $ac_func innocuous_$ac_func
18635 /* System header to define __stub macros and hopefully few prototypes,
18636 which can conflict with char $ac_func (); below.
18637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18638 <limits.h> exists even on freestanding compilers. */
18640 #ifdef __STDC__
18641 # include <limits.h>
18642 #else
18643 # include <assert.h>
18644 #endif
18646 #undef $ac_func
18648 /* Override any GCC internal prototype to avoid an error.
18649 Use char because int might match the return type of a GCC
18650 builtin and then its argument prototype would still apply. */
18651 #ifdef __cplusplus
18652 extern "C"
18653 #endif
18654 char $ac_func ();
18655 /* The GNU C library defines this for functions which it implements
18656 to always fail with ENOSYS. Some functions are actually named
18657 something starting with __ and the normal name is an alias. */
18658 #if defined __stub_$ac_func || defined __stub___$ac_func
18659 choke me
18660 #endif
18662 int
18663 main ()
18664 {
18665 return $ac_func ();
18666 ;
18667 return 0;
18668 }
18669 _ACEOF
18670 rm -f conftest.$ac_objext conftest$ac_exeext
18671 if { (ac_try="$ac_link"
18672 case "(($ac_try" in
18673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18674 *) ac_try_echo=$ac_try;;
18675 esac
18676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18677 (eval "$ac_link") 2>conftest.er1
18678 ac_status=$?
18679 grep -v '^ *+' conftest.er1 >conftest.err
18680 rm -f conftest.er1
18681 cat conftest.err >&5
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); } &&
18684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18685 { (case "(($ac_try" in
18686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18687 *) ac_try_echo=$ac_try;;
18688 esac
18689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18690 (eval "$ac_try") 2>&5
18691 ac_status=$?
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); }; } &&
18694 { ac_try='test -s conftest$ac_exeext'
18695 { (case "(($ac_try" in
18696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697 *) ac_try_echo=$ac_try;;
18698 esac
18699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18700 (eval "$ac_try") 2>&5
18701 ac_status=$?
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; }; then
18704 eval "$as_ac_var=yes"
18705 else
18706 echo "$as_me: failed program was:" >&5
18707 sed 's/^/| /' conftest.$ac_ext >&5
18709 eval "$as_ac_var=no"
18710 fi
18712 rm -f core conftest.err conftest.$ac_objext \
18713 conftest$ac_exeext conftest.$ac_ext
18714 fi
18715 ac_res=`eval echo '${'$as_ac_var'}'`
18716 { echo "$as_me:$LINENO: result: $ac_res" >&5
18717 echo "${ECHO_T}$ac_res" >&6; }
18718 if test `eval echo '${'$as_ac_var'}'` = yes; then
18719 cat >>confdefs.h <<_ACEOF
18720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18721 _ACEOF
18723 fi
18724 done
18730 for ac_func in strerror strerror_r setenv arc4random
18731 do
18732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18733 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18735 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18736 echo $ECHO_N "(cached) $ECHO_C" >&6
18737 else
18738 cat >conftest.$ac_ext <<_ACEOF
18739 /* confdefs.h. */
18740 _ACEOF
18741 cat confdefs.h >>conftest.$ac_ext
18742 cat >>conftest.$ac_ext <<_ACEOF
18743 /* end confdefs.h. */
18744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18746 #define $ac_func innocuous_$ac_func
18748 /* System header to define __stub macros and hopefully few prototypes,
18749 which can conflict with char $ac_func (); below.
18750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18751 <limits.h> exists even on freestanding compilers. */
18753 #ifdef __STDC__
18754 # include <limits.h>
18755 #else
18756 # include <assert.h>
18757 #endif
18759 #undef $ac_func
18761 /* Override any GCC internal prototype to avoid an error.
18762 Use char because int might match the return type of a GCC
18763 builtin and then its argument prototype would still apply. */
18764 #ifdef __cplusplus
18765 extern "C"
18766 #endif
18767 char $ac_func ();
18768 /* The GNU C library defines this for functions which it implements
18769 to always fail with ENOSYS. Some functions are actually named
18770 something starting with __ and the normal name is an alias. */
18771 #if defined __stub_$ac_func || defined __stub___$ac_func
18772 choke me
18773 #endif
18775 int
18776 main ()
18777 {
18778 return $ac_func ();
18779 ;
18780 return 0;
18781 }
18782 _ACEOF
18783 rm -f conftest.$ac_objext conftest$ac_exeext
18784 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
18791 ac_status=$?
18792 grep -v '^ *+' conftest.er1 >conftest.err
18793 rm -f conftest.er1
18794 cat conftest.err >&5
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); } &&
18797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18798 { (case "(($ac_try" in
18799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18800 *) ac_try_echo=$ac_try;;
18801 esac
18802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18803 (eval "$ac_try") 2>&5
18804 ac_status=$?
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); }; } &&
18807 { ac_try='test -s conftest$ac_exeext'
18808 { (case "(($ac_try" in
18809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18810 *) ac_try_echo=$ac_try;;
18811 esac
18812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18813 (eval "$ac_try") 2>&5
18814 ac_status=$?
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); }; }; then
18817 eval "$as_ac_var=yes"
18818 else
18819 echo "$as_me: failed program was:" >&5
18820 sed 's/^/| /' conftest.$ac_ext >&5
18822 eval "$as_ac_var=no"
18823 fi
18825 rm -f core conftest.err conftest.$ac_objext \
18826 conftest$ac_exeext conftest.$ac_ext
18827 fi
18828 ac_res=`eval echo '${'$as_ac_var'}'`
18829 { echo "$as_me:$LINENO: result: $ac_res" >&5
18830 echo "${ECHO_T}$ac_res" >&6; }
18831 if test `eval echo '${'$as_ac_var'}'` = yes; then
18832 cat >>confdefs.h <<_ACEOF
18833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18834 _ACEOF
18836 fi
18837 done
18843 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18844 do
18845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18846 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18848 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18849 echo $ECHO_N "(cached) $ECHO_C" >&6
18850 else
18851 cat >conftest.$ac_ext <<_ACEOF
18852 /* confdefs.h. */
18853 _ACEOF
18854 cat confdefs.h >>conftest.$ac_ext
18855 cat >>conftest.$ac_ext <<_ACEOF
18856 /* end confdefs.h. */
18857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18859 #define $ac_func innocuous_$ac_func
18861 /* System header to define __stub macros and hopefully few prototypes,
18862 which can conflict with char $ac_func (); below.
18863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18864 <limits.h> exists even on freestanding compilers. */
18866 #ifdef __STDC__
18867 # include <limits.h>
18868 #else
18869 # include <assert.h>
18870 #endif
18872 #undef $ac_func
18874 /* Override any GCC internal prototype to avoid an error.
18875 Use char because int might match the return type of a GCC
18876 builtin and then its argument prototype would still apply. */
18877 #ifdef __cplusplus
18878 extern "C"
18879 #endif
18880 char $ac_func ();
18881 /* The GNU C library defines this for functions which it implements
18882 to always fail with ENOSYS. Some functions are actually named
18883 something starting with __ and the normal name is an alias. */
18884 #if defined __stub_$ac_func || defined __stub___$ac_func
18885 choke me
18886 #endif
18888 int
18889 main ()
18890 {
18891 return $ac_func ();
18892 ;
18893 return 0;
18894 }
18895 _ACEOF
18896 rm -f conftest.$ac_objext conftest$ac_exeext
18897 if { (ac_try="$ac_link"
18898 case "(($ac_try" in
18899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18900 *) ac_try_echo=$ac_try;;
18901 esac
18902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18903 (eval "$ac_link") 2>conftest.er1
18904 ac_status=$?
18905 grep -v '^ *+' conftest.er1 >conftest.err
18906 rm -f conftest.er1
18907 cat conftest.err >&5
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); } &&
18910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18911 { (case "(($ac_try" in
18912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18913 *) ac_try_echo=$ac_try;;
18914 esac
18915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18916 (eval "$ac_try") 2>&5
18917 ac_status=$?
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); }; } &&
18920 { ac_try='test -s conftest$ac_exeext'
18921 { (case "(($ac_try" in
18922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18923 *) ac_try_echo=$ac_try;;
18924 esac
18925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18926 (eval "$ac_try") 2>&5
18927 ac_status=$?
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); }; }; then
18930 eval "$as_ac_var=yes"
18931 else
18932 echo "$as_me: failed program was:" >&5
18933 sed 's/^/| /' conftest.$ac_ext >&5
18935 eval "$as_ac_var=no"
18936 fi
18938 rm -f core conftest.err conftest.$ac_objext \
18939 conftest$ac_exeext conftest.$ac_ext
18940 fi
18941 ac_res=`eval echo '${'$as_ac_var'}'`
18942 { echo "$as_me:$LINENO: result: $ac_res" >&5
18943 echo "${ECHO_T}$ac_res" >&6; }
18944 if test `eval echo '${'$as_ac_var'}'` = yes; then
18945 cat >>confdefs.h <<_ACEOF
18946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18947 _ACEOF
18949 fi
18950 done
18957 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18958 do
18959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18963 echo $ECHO_N "(cached) $ECHO_C" >&6
18964 else
18965 cat >conftest.$ac_ext <<_ACEOF
18966 /* confdefs.h. */
18967 _ACEOF
18968 cat confdefs.h >>conftest.$ac_ext
18969 cat >>conftest.$ac_ext <<_ACEOF
18970 /* end confdefs.h. */
18971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18973 #define $ac_func innocuous_$ac_func
18975 /* System header to define __stub macros and hopefully few prototypes,
18976 which can conflict with char $ac_func (); below.
18977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18978 <limits.h> exists even on freestanding compilers. */
18980 #ifdef __STDC__
18981 # include <limits.h>
18982 #else
18983 # include <assert.h>
18984 #endif
18986 #undef $ac_func
18988 /* Override any GCC internal prototype to avoid an error.
18989 Use char because int might match the return type of a GCC
18990 builtin and then its argument prototype would still apply. */
18991 #ifdef __cplusplus
18992 extern "C"
18993 #endif
18994 char $ac_func ();
18995 /* The GNU C library defines this for functions which it implements
18996 to always fail with ENOSYS. Some functions are actually named
18997 something starting with __ and the normal name is an alias. */
18998 #if defined __stub_$ac_func || defined __stub___$ac_func
18999 choke me
19000 #endif
19002 int
19003 main ()
19004 {
19005 return $ac_func ();
19006 ;
19007 return 0;
19008 }
19009 _ACEOF
19010 rm -f conftest.$ac_objext conftest$ac_exeext
19011 if { (ac_try="$ac_link"
19012 case "(($ac_try" in
19013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19014 *) ac_try_echo=$ac_try;;
19015 esac
19016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19017 (eval "$ac_link") 2>conftest.er1
19018 ac_status=$?
19019 grep -v '^ *+' conftest.er1 >conftest.err
19020 rm -f conftest.er1
19021 cat conftest.err >&5
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); } &&
19024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19025 { (case "(($ac_try" in
19026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19027 *) ac_try_echo=$ac_try;;
19028 esac
19029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19030 (eval "$ac_try") 2>&5
19031 ac_status=$?
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; } &&
19034 { ac_try='test -s conftest$ac_exeext'
19035 { (case "(($ac_try" in
19036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037 *) ac_try_echo=$ac_try;;
19038 esac
19039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19040 (eval "$ac_try") 2>&5
19041 ac_status=$?
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); }; }; then
19044 eval "$as_ac_var=yes"
19045 else
19046 echo "$as_me: failed program was:" >&5
19047 sed 's/^/| /' conftest.$ac_ext >&5
19049 eval "$as_ac_var=no"
19050 fi
19052 rm -f core conftest.err conftest.$ac_objext \
19053 conftest$ac_exeext conftest.$ac_ext
19054 fi
19055 ac_res=`eval echo '${'$as_ac_var'}'`
19056 { echo "$as_me:$LINENO: result: $ac_res" >&5
19057 echo "${ECHO_T}$ac_res" >&6; }
19058 if test `eval echo '${'$as_ac_var'}'` = yes; then
19059 cat >>confdefs.h <<_ACEOF
19060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19061 _ACEOF
19063 fi
19064 done
19068 for ac_func in futimes futimens
19069 do
19070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19071 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19073 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19074 echo $ECHO_N "(cached) $ECHO_C" >&6
19075 else
19076 cat >conftest.$ac_ext <<_ACEOF
19077 /* confdefs.h. */
19078 _ACEOF
19079 cat confdefs.h >>conftest.$ac_ext
19080 cat >>conftest.$ac_ext <<_ACEOF
19081 /* end confdefs.h. */
19082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19084 #define $ac_func innocuous_$ac_func
19086 /* System header to define __stub macros and hopefully few prototypes,
19087 which can conflict with char $ac_func (); below.
19088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19089 <limits.h> exists even on freestanding compilers. */
19091 #ifdef __STDC__
19092 # include <limits.h>
19093 #else
19094 # include <assert.h>
19095 #endif
19097 #undef $ac_func
19099 /* Override any GCC internal prototype to avoid an error.
19100 Use char because int might match the return type of a GCC
19101 builtin and then its argument prototype would still apply. */
19102 #ifdef __cplusplus
19103 extern "C"
19104 #endif
19105 char $ac_func ();
19106 /* The GNU C library defines this for functions which it implements
19107 to always fail with ENOSYS. Some functions are actually named
19108 something starting with __ and the normal name is an alias. */
19109 #if defined __stub_$ac_func || defined __stub___$ac_func
19110 choke me
19111 #endif
19113 int
19114 main ()
19115 {
19116 return $ac_func ();
19117 ;
19118 return 0;
19119 }
19120 _ACEOF
19121 rm -f conftest.$ac_objext conftest$ac_exeext
19122 if { (ac_try="$ac_link"
19123 case "(($ac_try" in
19124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125 *) ac_try_echo=$ac_try;;
19126 esac
19127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128 (eval "$ac_link") 2>conftest.er1
19129 ac_status=$?
19130 grep -v '^ *+' conftest.er1 >conftest.err
19131 rm -f conftest.er1
19132 cat conftest.err >&5
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); } &&
19135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19136 { (case "(($ac_try" in
19137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19138 *) ac_try_echo=$ac_try;;
19139 esac
19140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19141 (eval "$ac_try") 2>&5
19142 ac_status=$?
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); }; } &&
19145 { ac_try='test -s conftest$ac_exeext'
19146 { (case "(($ac_try" in
19147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19148 *) ac_try_echo=$ac_try;;
19149 esac
19150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19151 (eval "$ac_try") 2>&5
19152 ac_status=$?
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; }; then
19155 eval "$as_ac_var=yes"
19156 else
19157 echo "$as_me: failed program was:" >&5
19158 sed 's/^/| /' conftest.$ac_ext >&5
19160 eval "$as_ac_var=no"
19161 fi
19163 rm -f core conftest.err conftest.$ac_objext \
19164 conftest$ac_exeext conftest.$ac_ext
19165 fi
19166 ac_res=`eval echo '${'$as_ac_var'}'`
19167 { echo "$as_me:$LINENO: result: $ac_res" >&5
19168 echo "${ECHO_T}$ac_res" >&6; }
19169 if test `eval echo '${'$as_ac_var'}'` = yes; then
19170 cat >>confdefs.h <<_ACEOF
19171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19172 _ACEOF
19174 fi
19175 done
19177 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19178 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19179 if test "${llvm_cv_c_printf_a+set}" = set; then
19180 echo $ECHO_N "(cached) $ECHO_C" >&6
19181 else
19182 ac_ext=c
19183 ac_cpp='$CPP $CPPFLAGS'
19184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19188 if test "$cross_compiling" = yes; then
19189 llvmac_cv_c_printf_a=no
19190 else
19191 cat >conftest.$ac_ext <<_ACEOF
19193 /* confdefs.h. */
19194 _ACEOF
19195 cat confdefs.h >>conftest.$ac_ext
19196 cat >>conftest.$ac_ext <<_ACEOF
19197 /* end confdefs.h. */
19199 #include <stdio.h>
19200 #include <stdlib.h>
19202 int
19203 main ()
19204 {
19206 volatile double A, B;
19207 char Buffer[100];
19208 A = 1;
19209 A /= 10.0;
19210 sprintf(Buffer, "%a", A);
19211 B = atof(Buffer);
19212 if (A != B)
19213 return (1);
19214 if (A != 0x1.999999999999ap-4)
19215 return (1);
19216 return (0);
19217 ;
19218 return 0;
19219 }
19220 _ACEOF
19221 rm -f conftest$ac_exeext
19222 if { (ac_try="$ac_link"
19223 case "(($ac_try" in
19224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19225 *) ac_try_echo=$ac_try;;
19226 esac
19227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19228 (eval "$ac_link") 2>&5
19229 ac_status=$?
19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19232 { (case "(($ac_try" in
19233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19234 *) ac_try_echo=$ac_try;;
19235 esac
19236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19237 (eval "$ac_try") 2>&5
19238 ac_status=$?
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); }; }; then
19241 llvm_cv_c_printf_a=yes
19242 else
19243 echo "$as_me: program exited with status $ac_status" >&5
19244 echo "$as_me: failed program was:" >&5
19245 sed 's/^/| /' conftest.$ac_ext >&5
19247 ( exit $ac_status )
19248 llvmac_cv_c_printf_a=no
19249 fi
19250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19251 fi
19254 ac_ext=c
19255 ac_cpp='$CPP $CPPFLAGS'
19256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19260 fi
19261 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19262 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19263 if test "$llvm_cv_c_printf_a" = "yes"; then
19265 cat >>confdefs.h <<\_ACEOF
19266 #define HAVE_PRINTF_A 1
19267 _ACEOF
19269 fi
19273 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19274 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19275 if test "${ac_cv_func_rand48+set}" = set; then
19276 echo $ECHO_N "(cached) $ECHO_C" >&6
19277 else
19279 ac_ext=cpp
19280 ac_cpp='$CXXCPP $CPPFLAGS'
19281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19285 cat >conftest.$ac_ext <<_ACEOF
19286 /* confdefs.h. */
19287 _ACEOF
19288 cat confdefs.h >>conftest.$ac_ext
19289 cat >>conftest.$ac_ext <<_ACEOF
19290 /* end confdefs.h. */
19291 #include <stdlib.h>
19292 int
19293 main ()
19294 {
19295 srand48(0);lrand48();drand48();
19296 ;
19297 return 0;
19298 }
19299 _ACEOF
19300 rm -f conftest.$ac_objext
19301 if { (ac_try="$ac_compile"
19302 case "(($ac_try" in
19303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19304 *) ac_try_echo=$ac_try;;
19305 esac
19306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19307 (eval "$ac_compile") 2>conftest.er1
19308 ac_status=$?
19309 grep -v '^ *+' conftest.er1 >conftest.err
19310 rm -f conftest.er1
19311 cat conftest.err >&5
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); } &&
19314 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19315 { (case "(($ac_try" in
19316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19317 *) ac_try_echo=$ac_try;;
19318 esac
19319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19320 (eval "$ac_try") 2>&5
19321 ac_status=$?
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); }; } &&
19324 { ac_try='test -s conftest.$ac_objext'
19325 { (case "(($ac_try" in
19326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327 *) ac_try_echo=$ac_try;;
19328 esac
19329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330 (eval "$ac_try") 2>&5
19331 ac_status=$?
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); }; }; then
19334 ac_cv_func_rand48=yes
19335 else
19336 echo "$as_me: failed program was:" >&5
19337 sed 's/^/| /' conftest.$ac_ext >&5
19339 ac_cv_func_rand48=no
19340 fi
19342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19343 ac_ext=c
19344 ac_cpp='$CPP $CPPFLAGS'
19345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19350 fi
19351 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19352 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19354 if test "$ac_cv_func_rand48" = "yes" ; then
19356 cat >>confdefs.h <<\_ACEOF
19357 #define HAVE_RAND48 1
19358 _ACEOF
19360 fi
19363 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19364 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19365 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19366 echo $ECHO_N "(cached) $ECHO_C" >&6
19367 else
19368 cat >conftest.$ac_ext <<_ACEOF
19369 /* confdefs.h. */
19370 _ACEOF
19371 cat confdefs.h >>conftest.$ac_ext
19372 cat >>conftest.$ac_ext <<_ACEOF
19373 /* end confdefs.h. */
19374 $ac_includes_default
19375 int
19376 main ()
19377 {
19378 #ifndef strerror_s
19379 char *p = (char *) strerror_s;
19380 return !p;
19381 #endif
19383 ;
19384 return 0;
19385 }
19386 _ACEOF
19387 rm -f conftest.$ac_objext
19388 if { (ac_try="$ac_compile"
19389 case "(($ac_try" in
19390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391 *) ac_try_echo=$ac_try;;
19392 esac
19393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19394 (eval "$ac_compile") 2>conftest.er1
19395 ac_status=$?
19396 grep -v '^ *+' conftest.er1 >conftest.err
19397 rm -f conftest.er1
19398 cat conftest.err >&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); } &&
19401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19402 { (case "(($ac_try" in
19403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19404 *) ac_try_echo=$ac_try;;
19405 esac
19406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19407 (eval "$ac_try") 2>&5
19408 ac_status=$?
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); }; } &&
19411 { ac_try='test -s conftest.$ac_objext'
19412 { (case "(($ac_try" in
19413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19414 *) ac_try_echo=$ac_try;;
19415 esac
19416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19417 (eval "$ac_try") 2>&5
19418 ac_status=$?
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); }; }; then
19421 ac_cv_have_decl_strerror_s=yes
19422 else
19423 echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19426 ac_cv_have_decl_strerror_s=no
19427 fi
19429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19430 fi
19431 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19432 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19433 if test $ac_cv_have_decl_strerror_s = yes; then
19435 cat >>confdefs.h <<_ACEOF
19436 #define HAVE_DECL_STRERROR_S 1
19437 _ACEOF
19440 else
19441 cat >>confdefs.h <<_ACEOF
19442 #define HAVE_DECL_STRERROR_S 0
19443 _ACEOF
19446 fi
19450 if test "$llvm_cv_os_type" = "MingW" ; then
19451 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19452 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19453 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19454 echo $ECHO_N "(cached) $ECHO_C" >&6
19455 else
19456 ac_check_lib_save_LIBS=$LIBS
19457 LIBS="-lgcc $LIBS"
19458 cat >conftest.$ac_ext <<_ACEOF
19459 /* confdefs.h. */
19460 _ACEOF
19461 cat confdefs.h >>conftest.$ac_ext
19462 cat >>conftest.$ac_ext <<_ACEOF
19463 /* end confdefs.h. */
19465 /* Override any GCC internal prototype to avoid an error.
19466 Use char because int might match the return type of a GCC
19467 builtin and then its argument prototype would still apply. */
19468 #ifdef __cplusplus
19469 extern "C"
19470 #endif
19471 char _alloca ();
19472 int
19473 main ()
19474 {
19475 return _alloca ();
19476 ;
19477 return 0;
19478 }
19479 _ACEOF
19480 rm -f conftest.$ac_objext conftest$ac_exeext
19481 if { (ac_try="$ac_link"
19482 case "(($ac_try" in
19483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19484 *) ac_try_echo=$ac_try;;
19485 esac
19486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19487 (eval "$ac_link") 2>conftest.er1
19488 ac_status=$?
19489 grep -v '^ *+' conftest.er1 >conftest.err
19490 rm -f conftest.er1
19491 cat conftest.err >&5
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); } &&
19494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19495 { (case "(($ac_try" in
19496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19497 *) ac_try_echo=$ac_try;;
19498 esac
19499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19500 (eval "$ac_try") 2>&5
19501 ac_status=$?
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); }; } &&
19504 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
19511 ac_status=$?
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); }; }; then
19514 ac_cv_lib_gcc__alloca=yes
19515 else
19516 echo "$as_me: failed program was:" >&5
19517 sed 's/^/| /' conftest.$ac_ext >&5
19519 ac_cv_lib_gcc__alloca=no
19520 fi
19522 rm -f core conftest.err conftest.$ac_objext \
19523 conftest$ac_exeext conftest.$ac_ext
19524 LIBS=$ac_check_lib_save_LIBS
19525 fi
19526 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19527 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19528 if test $ac_cv_lib_gcc__alloca = yes; then
19530 cat >>confdefs.h <<\_ACEOF
19531 #define HAVE__ALLOCA 1
19532 _ACEOF
19534 fi
19536 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19537 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19538 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19539 echo $ECHO_N "(cached) $ECHO_C" >&6
19540 else
19541 ac_check_lib_save_LIBS=$LIBS
19542 LIBS="-lgcc $LIBS"
19543 cat >conftest.$ac_ext <<_ACEOF
19544 /* confdefs.h. */
19545 _ACEOF
19546 cat confdefs.h >>conftest.$ac_ext
19547 cat >>conftest.$ac_ext <<_ACEOF
19548 /* end confdefs.h. */
19550 /* Override any GCC internal prototype to avoid an error.
19551 Use char because int might match the return type of a GCC
19552 builtin and then its argument prototype would still apply. */
19553 #ifdef __cplusplus
19554 extern "C"
19555 #endif
19556 char __alloca ();
19557 int
19558 main ()
19559 {
19560 return __alloca ();
19561 ;
19562 return 0;
19563 }
19564 _ACEOF
19565 rm -f conftest.$ac_objext conftest$ac_exeext
19566 if { (ac_try="$ac_link"
19567 case "(($ac_try" in
19568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19569 *) ac_try_echo=$ac_try;;
19570 esac
19571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19572 (eval "$ac_link") 2>conftest.er1
19573 ac_status=$?
19574 grep -v '^ *+' conftest.er1 >conftest.err
19575 rm -f conftest.er1
19576 cat conftest.err >&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); } &&
19579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19580 { (case "(($ac_try" in
19581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582 *) ac_try_echo=$ac_try;;
19583 esac
19584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585 (eval "$ac_try") 2>&5
19586 ac_status=$?
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; } &&
19589 { ac_try='test -s conftest$ac_exeext'
19590 { (case "(($ac_try" in
19591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19592 *) ac_try_echo=$ac_try;;
19593 esac
19594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19595 (eval "$ac_try") 2>&5
19596 ac_status=$?
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); }; }; then
19599 ac_cv_lib_gcc___alloca=yes
19600 else
19601 echo "$as_me: failed program was:" >&5
19602 sed 's/^/| /' conftest.$ac_ext >&5
19604 ac_cv_lib_gcc___alloca=no
19605 fi
19607 rm -f core conftest.err conftest.$ac_objext \
19608 conftest$ac_exeext conftest.$ac_ext
19609 LIBS=$ac_check_lib_save_LIBS
19610 fi
19611 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19612 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19613 if test $ac_cv_lib_gcc___alloca = yes; then
19615 cat >>confdefs.h <<\_ACEOF
19616 #define HAVE___ALLOCA 1
19617 _ACEOF
19619 fi
19621 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19622 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19623 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19624 echo $ECHO_N "(cached) $ECHO_C" >&6
19625 else
19626 ac_check_lib_save_LIBS=$LIBS
19627 LIBS="-lgcc $LIBS"
19628 cat >conftest.$ac_ext <<_ACEOF
19629 /* confdefs.h. */
19630 _ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h. */
19635 /* Override any GCC internal prototype to avoid an error.
19636 Use char because int might match the return type of a GCC
19637 builtin and then its argument prototype would still apply. */
19638 #ifdef __cplusplus
19639 extern "C"
19640 #endif
19641 char __chkstk ();
19642 int
19643 main ()
19644 {
19645 return __chkstk ();
19646 ;
19647 return 0;
19648 }
19649 _ACEOF
19650 rm -f conftest.$ac_objext conftest$ac_exeext
19651 if { (ac_try="$ac_link"
19652 case "(($ac_try" in
19653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19654 *) ac_try_echo=$ac_try;;
19655 esac
19656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19657 (eval "$ac_link") 2>conftest.er1
19658 ac_status=$?
19659 grep -v '^ *+' conftest.er1 >conftest.err
19660 rm -f conftest.er1
19661 cat conftest.err >&5
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); } &&
19664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19665 { (case "(($ac_try" in
19666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19667 *) ac_try_echo=$ac_try;;
19668 esac
19669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19670 (eval "$ac_try") 2>&5
19671 ac_status=$?
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; } &&
19674 { ac_try='test -s conftest$ac_exeext'
19675 { (case "(($ac_try" in
19676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19677 *) ac_try_echo=$ac_try;;
19678 esac
19679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19680 (eval "$ac_try") 2>&5
19681 ac_status=$?
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); }; }; then
19684 ac_cv_lib_gcc___chkstk=yes
19685 else
19686 echo "$as_me: failed program was:" >&5
19687 sed 's/^/| /' conftest.$ac_ext >&5
19689 ac_cv_lib_gcc___chkstk=no
19690 fi
19692 rm -f core conftest.err conftest.$ac_objext \
19693 conftest$ac_exeext conftest.$ac_ext
19694 LIBS=$ac_check_lib_save_LIBS
19695 fi
19696 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19697 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19698 if test $ac_cv_lib_gcc___chkstk = yes; then
19700 cat >>confdefs.h <<\_ACEOF
19701 #define HAVE___CHKSTK 1
19702 _ACEOF
19704 fi
19706 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19707 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19708 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19709 echo $ECHO_N "(cached) $ECHO_C" >&6
19710 else
19711 ac_check_lib_save_LIBS=$LIBS
19712 LIBS="-lgcc $LIBS"
19713 cat >conftest.$ac_ext <<_ACEOF
19714 /* confdefs.h. */
19715 _ACEOF
19716 cat confdefs.h >>conftest.$ac_ext
19717 cat >>conftest.$ac_ext <<_ACEOF
19718 /* end confdefs.h. */
19720 /* Override any GCC internal prototype to avoid an error.
19721 Use char because int might match the return type of a GCC
19722 builtin and then its argument prototype would still apply. */
19723 #ifdef __cplusplus
19724 extern "C"
19725 #endif
19726 char ___chkstk ();
19727 int
19728 main ()
19729 {
19730 return ___chkstk ();
19731 ;
19732 return 0;
19733 }
19734 _ACEOF
19735 rm -f conftest.$ac_objext conftest$ac_exeext
19736 if { (ac_try="$ac_link"
19737 case "(($ac_try" in
19738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19739 *) ac_try_echo=$ac_try;;
19740 esac
19741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19742 (eval "$ac_link") 2>conftest.er1
19743 ac_status=$?
19744 grep -v '^ *+' conftest.er1 >conftest.err
19745 rm -f conftest.er1
19746 cat conftest.err >&5
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); } &&
19749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19750 { (case "(($ac_try" in
19751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19752 *) ac_try_echo=$ac_try;;
19753 esac
19754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19755 (eval "$ac_try") 2>&5
19756 ac_status=$?
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); }; } &&
19759 { ac_try='test -s conftest$ac_exeext'
19760 { (case "(($ac_try" in
19761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19762 *) ac_try_echo=$ac_try;;
19763 esac
19764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765 (eval "$ac_try") 2>&5
19766 ac_status=$?
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); }; }; then
19769 ac_cv_lib_gcc____chkstk=yes
19770 else
19771 echo "$as_me: failed program was:" >&5
19772 sed 's/^/| /' conftest.$ac_ext >&5
19774 ac_cv_lib_gcc____chkstk=no
19775 fi
19777 rm -f core conftest.err conftest.$ac_objext \
19778 conftest$ac_exeext conftest.$ac_ext
19779 LIBS=$ac_check_lib_save_LIBS
19780 fi
19781 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19782 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19783 if test $ac_cv_lib_gcc____chkstk = yes; then
19785 cat >>confdefs.h <<\_ACEOF
19786 #define HAVE____CHKSTK 1
19787 _ACEOF
19789 fi
19792 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19793 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19794 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19795 echo $ECHO_N "(cached) $ECHO_C" >&6
19796 else
19797 ac_check_lib_save_LIBS=$LIBS
19798 LIBS="-lgcc $LIBS"
19799 cat >conftest.$ac_ext <<_ACEOF
19800 /* confdefs.h. */
19801 _ACEOF
19802 cat confdefs.h >>conftest.$ac_ext
19803 cat >>conftest.$ac_ext <<_ACEOF
19804 /* end confdefs.h. */
19806 /* Override any GCC internal prototype to avoid an error.
19807 Use char because int might match the return type of a GCC
19808 builtin and then its argument prototype would still apply. */
19809 #ifdef __cplusplus
19810 extern "C"
19811 #endif
19812 char __ashldi3 ();
19813 int
19814 main ()
19815 {
19816 return __ashldi3 ();
19817 ;
19818 return 0;
19819 }
19820 _ACEOF
19821 rm -f conftest.$ac_objext conftest$ac_exeext
19822 if { (ac_try="$ac_link"
19823 case "(($ac_try" in
19824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19825 *) ac_try_echo=$ac_try;;
19826 esac
19827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19828 (eval "$ac_link") 2>conftest.er1
19829 ac_status=$?
19830 grep -v '^ *+' conftest.er1 >conftest.err
19831 rm -f conftest.er1
19832 cat conftest.err >&5
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); } &&
19835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19836 { (case "(($ac_try" in
19837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19838 *) ac_try_echo=$ac_try;;
19839 esac
19840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19841 (eval "$ac_try") 2>&5
19842 ac_status=$?
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); }; } &&
19845 { ac_try='test -s conftest$ac_exeext'
19846 { (case "(($ac_try" in
19847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19848 *) ac_try_echo=$ac_try;;
19849 esac
19850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19851 (eval "$ac_try") 2>&5
19852 ac_status=$?
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); }; }; then
19855 ac_cv_lib_gcc___ashldi3=yes
19856 else
19857 echo "$as_me: failed program was:" >&5
19858 sed 's/^/| /' conftest.$ac_ext >&5
19860 ac_cv_lib_gcc___ashldi3=no
19861 fi
19863 rm -f core conftest.err conftest.$ac_objext \
19864 conftest$ac_exeext conftest.$ac_ext
19865 LIBS=$ac_check_lib_save_LIBS
19866 fi
19867 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19868 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19869 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19871 cat >>confdefs.h <<\_ACEOF
19872 #define HAVE___ASHLDI3 1
19873 _ACEOF
19875 fi
19877 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19878 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19879 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19880 echo $ECHO_N "(cached) $ECHO_C" >&6
19881 else
19882 ac_check_lib_save_LIBS=$LIBS
19883 LIBS="-lgcc $LIBS"
19884 cat >conftest.$ac_ext <<_ACEOF
19885 /* confdefs.h. */
19886 _ACEOF
19887 cat confdefs.h >>conftest.$ac_ext
19888 cat >>conftest.$ac_ext <<_ACEOF
19889 /* end confdefs.h. */
19891 /* Override any GCC internal prototype to avoid an error.
19892 Use char because int might match the return type of a GCC
19893 builtin and then its argument prototype would still apply. */
19894 #ifdef __cplusplus
19895 extern "C"
19896 #endif
19897 char __ashrdi3 ();
19898 int
19899 main ()
19900 {
19901 return __ashrdi3 ();
19902 ;
19903 return 0;
19904 }
19905 _ACEOF
19906 rm -f conftest.$ac_objext conftest$ac_exeext
19907 if { (ac_try="$ac_link"
19908 case "(($ac_try" in
19909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19910 *) ac_try_echo=$ac_try;;
19911 esac
19912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19913 (eval "$ac_link") 2>conftest.er1
19914 ac_status=$?
19915 grep -v '^ *+' conftest.er1 >conftest.err
19916 rm -f conftest.er1
19917 cat conftest.err >&5
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); } &&
19920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19921 { (case "(($ac_try" in
19922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19923 *) ac_try_echo=$ac_try;;
19924 esac
19925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19926 (eval "$ac_try") 2>&5
19927 ac_status=$?
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; } &&
19930 { ac_try='test -s conftest$ac_exeext'
19931 { (case "(($ac_try" in
19932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19933 *) ac_try_echo=$ac_try;;
19934 esac
19935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19936 (eval "$ac_try") 2>&5
19937 ac_status=$?
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); }; }; then
19940 ac_cv_lib_gcc___ashrdi3=yes
19941 else
19942 echo "$as_me: failed program was:" >&5
19943 sed 's/^/| /' conftest.$ac_ext >&5
19945 ac_cv_lib_gcc___ashrdi3=no
19946 fi
19948 rm -f core conftest.err conftest.$ac_objext \
19949 conftest$ac_exeext conftest.$ac_ext
19950 LIBS=$ac_check_lib_save_LIBS
19951 fi
19952 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19953 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19954 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19956 cat >>confdefs.h <<\_ACEOF
19957 #define HAVE___ASHRDI3 1
19958 _ACEOF
19960 fi
19962 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19963 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19964 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19965 echo $ECHO_N "(cached) $ECHO_C" >&6
19966 else
19967 ac_check_lib_save_LIBS=$LIBS
19968 LIBS="-lgcc $LIBS"
19969 cat >conftest.$ac_ext <<_ACEOF
19970 /* confdefs.h. */
19971 _ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19976 /* Override any GCC internal prototype to avoid an error.
19977 Use char because int might match the return type of a GCC
19978 builtin and then its argument prototype would still apply. */
19979 #ifdef __cplusplus
19980 extern "C"
19981 #endif
19982 char __divdi3 ();
19983 int
19984 main ()
19985 {
19986 return __divdi3 ();
19987 ;
19988 return 0;
19989 }
19990 _ACEOF
19991 rm -f conftest.$ac_objext conftest$ac_exeext
19992 if { (ac_try="$ac_link"
19993 case "(($ac_try" in
19994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19995 *) ac_try_echo=$ac_try;;
19996 esac
19997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19998 (eval "$ac_link") 2>conftest.er1
19999 ac_status=$?
20000 grep -v '^ *+' conftest.er1 >conftest.err
20001 rm -f conftest.er1
20002 cat conftest.err >&5
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); } &&
20005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20006 { (case "(($ac_try" in
20007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20008 *) ac_try_echo=$ac_try;;
20009 esac
20010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20011 (eval "$ac_try") 2>&5
20012 ac_status=$?
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); }; } &&
20015 { ac_try='test -s conftest$ac_exeext'
20016 { (case "(($ac_try" in
20017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20018 *) ac_try_echo=$ac_try;;
20019 esac
20020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20021 (eval "$ac_try") 2>&5
20022 ac_status=$?
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); }; }; then
20025 ac_cv_lib_gcc___divdi3=yes
20026 else
20027 echo "$as_me: failed program was:" >&5
20028 sed 's/^/| /' conftest.$ac_ext >&5
20030 ac_cv_lib_gcc___divdi3=no
20031 fi
20033 rm -f core conftest.err conftest.$ac_objext \
20034 conftest$ac_exeext conftest.$ac_ext
20035 LIBS=$ac_check_lib_save_LIBS
20036 fi
20037 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
20038 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
20039 if test $ac_cv_lib_gcc___divdi3 = yes; then
20041 cat >>confdefs.h <<\_ACEOF
20042 #define HAVE___DIVDI3 1
20043 _ACEOF
20045 fi
20047 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
20048 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
20049 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20051 else
20052 ac_check_lib_save_LIBS=$LIBS
20053 LIBS="-lgcc $LIBS"
20054 cat >conftest.$ac_ext <<_ACEOF
20055 /* confdefs.h. */
20056 _ACEOF
20057 cat confdefs.h >>conftest.$ac_ext
20058 cat >>conftest.$ac_ext <<_ACEOF
20059 /* end confdefs.h. */
20061 /* Override any GCC internal prototype to avoid an error.
20062 Use char because int might match the return type of a GCC
20063 builtin and then its argument prototype would still apply. */
20064 #ifdef __cplusplus
20065 extern "C"
20066 #endif
20067 char __fixdfdi ();
20068 int
20069 main ()
20070 {
20071 return __fixdfdi ();
20072 ;
20073 return 0;
20074 }
20075 _ACEOF
20076 rm -f conftest.$ac_objext conftest$ac_exeext
20077 if { (ac_try="$ac_link"
20078 case "(($ac_try" in
20079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20080 *) ac_try_echo=$ac_try;;
20081 esac
20082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20083 (eval "$ac_link") 2>conftest.er1
20084 ac_status=$?
20085 grep -v '^ *+' conftest.er1 >conftest.err
20086 rm -f conftest.er1
20087 cat conftest.err >&5
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); } &&
20090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20091 { (case "(($ac_try" in
20092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20093 *) ac_try_echo=$ac_try;;
20094 esac
20095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20096 (eval "$ac_try") 2>&5
20097 ac_status=$?
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); }; } &&
20100 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20110 ac_cv_lib_gcc___fixdfdi=yes
20111 else
20112 echo "$as_me: failed program was:" >&5
20113 sed 's/^/| /' conftest.$ac_ext >&5
20115 ac_cv_lib_gcc___fixdfdi=no
20116 fi
20118 rm -f core conftest.err conftest.$ac_objext \
20119 conftest$ac_exeext conftest.$ac_ext
20120 LIBS=$ac_check_lib_save_LIBS
20121 fi
20122 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20123 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20124 if test $ac_cv_lib_gcc___fixdfdi = yes; then
20126 cat >>confdefs.h <<\_ACEOF
20127 #define HAVE___FIXDFDI 1
20128 _ACEOF
20130 fi
20132 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20133 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20134 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20135 echo $ECHO_N "(cached) $ECHO_C" >&6
20136 else
20137 ac_check_lib_save_LIBS=$LIBS
20138 LIBS="-lgcc $LIBS"
20139 cat >conftest.$ac_ext <<_ACEOF
20140 /* confdefs.h. */
20141 _ACEOF
20142 cat confdefs.h >>conftest.$ac_ext
20143 cat >>conftest.$ac_ext <<_ACEOF
20144 /* end confdefs.h. */
20146 /* Override any GCC internal prototype to avoid an error.
20147 Use char because int might match the return type of a GCC
20148 builtin and then its argument prototype would still apply. */
20149 #ifdef __cplusplus
20150 extern "C"
20151 #endif
20152 char __fixsfdi ();
20153 int
20154 main ()
20155 {
20156 return __fixsfdi ();
20157 ;
20158 return 0;
20159 }
20160 _ACEOF
20161 rm -f conftest.$ac_objext conftest$ac_exeext
20162 if { (ac_try="$ac_link"
20163 case "(($ac_try" in
20164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20165 *) ac_try_echo=$ac_try;;
20166 esac
20167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20168 (eval "$ac_link") 2>conftest.er1
20169 ac_status=$?
20170 grep -v '^ *+' conftest.er1 >conftest.err
20171 rm -f conftest.er1
20172 cat conftest.err >&5
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); } &&
20175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20176 { (case "(($ac_try" in
20177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20178 *) ac_try_echo=$ac_try;;
20179 esac
20180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20181 (eval "$ac_try") 2>&5
20182 ac_status=$?
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); }; } &&
20185 { ac_try='test -s conftest$ac_exeext'
20186 { (case "(($ac_try" in
20187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20188 *) ac_try_echo=$ac_try;;
20189 esac
20190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20191 (eval "$ac_try") 2>&5
20192 ac_status=$?
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); }; }; then
20195 ac_cv_lib_gcc___fixsfdi=yes
20196 else
20197 echo "$as_me: failed program was:" >&5
20198 sed 's/^/| /' conftest.$ac_ext >&5
20200 ac_cv_lib_gcc___fixsfdi=no
20201 fi
20203 rm -f core conftest.err conftest.$ac_objext \
20204 conftest$ac_exeext conftest.$ac_ext
20205 LIBS=$ac_check_lib_save_LIBS
20206 fi
20207 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20208 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20209 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20211 cat >>confdefs.h <<\_ACEOF
20212 #define HAVE___FIXSFDI 1
20213 _ACEOF
20215 fi
20217 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20218 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20219 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20220 echo $ECHO_N "(cached) $ECHO_C" >&6
20221 else
20222 ac_check_lib_save_LIBS=$LIBS
20223 LIBS="-lgcc $LIBS"
20224 cat >conftest.$ac_ext <<_ACEOF
20225 /* confdefs.h. */
20226 _ACEOF
20227 cat confdefs.h >>conftest.$ac_ext
20228 cat >>conftest.$ac_ext <<_ACEOF
20229 /* end confdefs.h. */
20231 /* Override any GCC internal prototype to avoid an error.
20232 Use char because int might match the return type of a GCC
20233 builtin and then its argument prototype would still apply. */
20234 #ifdef __cplusplus
20235 extern "C"
20236 #endif
20237 char __floatdidf ();
20238 int
20239 main ()
20240 {
20241 return __floatdidf ();
20242 ;
20243 return 0;
20244 }
20245 _ACEOF
20246 rm -f conftest.$ac_objext conftest$ac_exeext
20247 if { (ac_try="$ac_link"
20248 case "(($ac_try" in
20249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20250 *) ac_try_echo=$ac_try;;
20251 esac
20252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20253 (eval "$ac_link") 2>conftest.er1
20254 ac_status=$?
20255 grep -v '^ *+' conftest.er1 >conftest.err
20256 rm -f conftest.er1
20257 cat conftest.err >&5
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); } &&
20260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20261 { (case "(($ac_try" in
20262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20263 *) ac_try_echo=$ac_try;;
20264 esac
20265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20266 (eval "$ac_try") 2>&5
20267 ac_status=$?
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); }; } &&
20270 { ac_try='test -s conftest$ac_exeext'
20271 { (case "(($ac_try" in
20272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20273 *) ac_try_echo=$ac_try;;
20274 esac
20275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20276 (eval "$ac_try") 2>&5
20277 ac_status=$?
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); }; }; then
20280 ac_cv_lib_gcc___floatdidf=yes
20281 else
20282 echo "$as_me: failed program was:" >&5
20283 sed 's/^/| /' conftest.$ac_ext >&5
20285 ac_cv_lib_gcc___floatdidf=no
20286 fi
20288 rm -f core conftest.err conftest.$ac_objext \
20289 conftest$ac_exeext conftest.$ac_ext
20290 LIBS=$ac_check_lib_save_LIBS
20291 fi
20292 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20293 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20294 if test $ac_cv_lib_gcc___floatdidf = yes; then
20296 cat >>confdefs.h <<\_ACEOF
20297 #define HAVE___FLOATDIDF 1
20298 _ACEOF
20300 fi
20302 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20303 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20304 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20305 echo $ECHO_N "(cached) $ECHO_C" >&6
20306 else
20307 ac_check_lib_save_LIBS=$LIBS
20308 LIBS="-lgcc $LIBS"
20309 cat >conftest.$ac_ext <<_ACEOF
20310 /* confdefs.h. */
20311 _ACEOF
20312 cat confdefs.h >>conftest.$ac_ext
20313 cat >>conftest.$ac_ext <<_ACEOF
20314 /* end confdefs.h. */
20316 /* Override any GCC internal prototype to avoid an error.
20317 Use char because int might match the return type of a GCC
20318 builtin and then its argument prototype would still apply. */
20319 #ifdef __cplusplus
20320 extern "C"
20321 #endif
20322 char __lshrdi3 ();
20323 int
20324 main ()
20325 {
20326 return __lshrdi3 ();
20327 ;
20328 return 0;
20329 }
20330 _ACEOF
20331 rm -f conftest.$ac_objext conftest$ac_exeext
20332 if { (ac_try="$ac_link"
20333 case "(($ac_try" in
20334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20335 *) ac_try_echo=$ac_try;;
20336 esac
20337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20338 (eval "$ac_link") 2>conftest.er1
20339 ac_status=$?
20340 grep -v '^ *+' conftest.er1 >conftest.err
20341 rm -f conftest.er1
20342 cat conftest.err >&5
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); } &&
20345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20346 { (case "(($ac_try" in
20347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348 *) ac_try_echo=$ac_try;;
20349 esac
20350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351 (eval "$ac_try") 2>&5
20352 ac_status=$?
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); }; } &&
20355 { ac_try='test -s conftest$ac_exeext'
20356 { (case "(($ac_try" in
20357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20358 *) ac_try_echo=$ac_try;;
20359 esac
20360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20361 (eval "$ac_try") 2>&5
20362 ac_status=$?
20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364 (exit $ac_status); }; }; then
20365 ac_cv_lib_gcc___lshrdi3=yes
20366 else
20367 echo "$as_me: failed program was:" >&5
20368 sed 's/^/| /' conftest.$ac_ext >&5
20370 ac_cv_lib_gcc___lshrdi3=no
20371 fi
20373 rm -f core conftest.err conftest.$ac_objext \
20374 conftest$ac_exeext conftest.$ac_ext
20375 LIBS=$ac_check_lib_save_LIBS
20376 fi
20377 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20378 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20379 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20381 cat >>confdefs.h <<\_ACEOF
20382 #define HAVE___LSHRDI3 1
20383 _ACEOF
20385 fi
20387 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20388 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20389 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20390 echo $ECHO_N "(cached) $ECHO_C" >&6
20391 else
20392 ac_check_lib_save_LIBS=$LIBS
20393 LIBS="-lgcc $LIBS"
20394 cat >conftest.$ac_ext <<_ACEOF
20395 /* confdefs.h. */
20396 _ACEOF
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h. */
20401 /* Override any GCC internal prototype to avoid an error.
20402 Use char because int might match the return type of a GCC
20403 builtin and then its argument prototype would still apply. */
20404 #ifdef __cplusplus
20405 extern "C"
20406 #endif
20407 char __moddi3 ();
20408 int
20409 main ()
20410 {
20411 return __moddi3 ();
20412 ;
20413 return 0;
20414 }
20415 _ACEOF
20416 rm -f conftest.$ac_objext conftest$ac_exeext
20417 if { (ac_try="$ac_link"
20418 case "(($ac_try" in
20419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420 *) ac_try_echo=$ac_try;;
20421 esac
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423 (eval "$ac_link") 2>conftest.er1
20424 ac_status=$?
20425 grep -v '^ *+' conftest.er1 >conftest.err
20426 rm -f conftest.er1
20427 cat conftest.err >&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); } &&
20430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20431 { (case "(($ac_try" in
20432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20433 *) ac_try_echo=$ac_try;;
20434 esac
20435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20436 (eval "$ac_try") 2>&5
20437 ac_status=$?
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); }; } &&
20440 { ac_try='test -s conftest$ac_exeext'
20441 { (case "(($ac_try" in
20442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20443 *) ac_try_echo=$ac_try;;
20444 esac
20445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20446 (eval "$ac_try") 2>&5
20447 ac_status=$?
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); }; }; then
20450 ac_cv_lib_gcc___moddi3=yes
20451 else
20452 echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20455 ac_cv_lib_gcc___moddi3=no
20456 fi
20458 rm -f core conftest.err conftest.$ac_objext \
20459 conftest$ac_exeext conftest.$ac_ext
20460 LIBS=$ac_check_lib_save_LIBS
20461 fi
20462 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20463 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20464 if test $ac_cv_lib_gcc___moddi3 = yes; then
20466 cat >>confdefs.h <<\_ACEOF
20467 #define HAVE___MODDI3 1
20468 _ACEOF
20470 fi
20472 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20473 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20474 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20475 echo $ECHO_N "(cached) $ECHO_C" >&6
20476 else
20477 ac_check_lib_save_LIBS=$LIBS
20478 LIBS="-lgcc $LIBS"
20479 cat >conftest.$ac_ext <<_ACEOF
20480 /* confdefs.h. */
20481 _ACEOF
20482 cat confdefs.h >>conftest.$ac_ext
20483 cat >>conftest.$ac_ext <<_ACEOF
20484 /* end confdefs.h. */
20486 /* Override any GCC internal prototype to avoid an error.
20487 Use char because int might match the return type of a GCC
20488 builtin and then its argument prototype would still apply. */
20489 #ifdef __cplusplus
20490 extern "C"
20491 #endif
20492 char __udivdi3 ();
20493 int
20494 main ()
20495 {
20496 return __udivdi3 ();
20497 ;
20498 return 0;
20499 }
20500 _ACEOF
20501 rm -f conftest.$ac_objext conftest$ac_exeext
20502 if { (ac_try="$ac_link"
20503 case "(($ac_try" in
20504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20505 *) ac_try_echo=$ac_try;;
20506 esac
20507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20508 (eval "$ac_link") 2>conftest.er1
20509 ac_status=$?
20510 grep -v '^ *+' conftest.er1 >conftest.err
20511 rm -f conftest.er1
20512 cat conftest.err >&5
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); } &&
20515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20516 { (case "(($ac_try" in
20517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518 *) ac_try_echo=$ac_try;;
20519 esac
20520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20521 (eval "$ac_try") 2>&5
20522 ac_status=$?
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); }; } &&
20525 { ac_try='test -s conftest$ac_exeext'
20526 { (case "(($ac_try" in
20527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20528 *) ac_try_echo=$ac_try;;
20529 esac
20530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20531 (eval "$ac_try") 2>&5
20532 ac_status=$?
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); }; }; then
20535 ac_cv_lib_gcc___udivdi3=yes
20536 else
20537 echo "$as_me: failed program was:" >&5
20538 sed 's/^/| /' conftest.$ac_ext >&5
20540 ac_cv_lib_gcc___udivdi3=no
20541 fi
20543 rm -f core conftest.err conftest.$ac_objext \
20544 conftest$ac_exeext conftest.$ac_ext
20545 LIBS=$ac_check_lib_save_LIBS
20546 fi
20547 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20548 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20549 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20551 cat >>confdefs.h <<\_ACEOF
20552 #define HAVE___UDIVDI3 1
20553 _ACEOF
20555 fi
20557 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20558 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20559 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20560 echo $ECHO_N "(cached) $ECHO_C" >&6
20561 else
20562 ac_check_lib_save_LIBS=$LIBS
20563 LIBS="-lgcc $LIBS"
20564 cat >conftest.$ac_ext <<_ACEOF
20565 /* confdefs.h. */
20566 _ACEOF
20567 cat confdefs.h >>conftest.$ac_ext
20568 cat >>conftest.$ac_ext <<_ACEOF
20569 /* end confdefs.h. */
20571 /* Override any GCC internal prototype to avoid an error.
20572 Use char because int might match the return type of a GCC
20573 builtin and then its argument prototype would still apply. */
20574 #ifdef __cplusplus
20575 extern "C"
20576 #endif
20577 char __umoddi3 ();
20578 int
20579 main ()
20580 {
20581 return __umoddi3 ();
20582 ;
20583 return 0;
20584 }
20585 _ACEOF
20586 rm -f conftest.$ac_objext conftest$ac_exeext
20587 if { (ac_try="$ac_link"
20588 case "(($ac_try" in
20589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20590 *) ac_try_echo=$ac_try;;
20591 esac
20592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20593 (eval "$ac_link") 2>conftest.er1
20594 ac_status=$?
20595 grep -v '^ *+' conftest.er1 >conftest.err
20596 rm -f conftest.er1
20597 cat conftest.err >&5
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); } &&
20600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20601 { (case "(($ac_try" in
20602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20603 *) ac_try_echo=$ac_try;;
20604 esac
20605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20606 (eval "$ac_try") 2>&5
20607 ac_status=$?
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); }; } &&
20610 { ac_try='test -s conftest$ac_exeext'
20611 { (case "(($ac_try" in
20612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20613 *) ac_try_echo=$ac_try;;
20614 esac
20615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20616 (eval "$ac_try") 2>&5
20617 ac_status=$?
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); }; }; then
20620 ac_cv_lib_gcc___umoddi3=yes
20621 else
20622 echo "$as_me: failed program was:" >&5
20623 sed 's/^/| /' conftest.$ac_ext >&5
20625 ac_cv_lib_gcc___umoddi3=no
20626 fi
20628 rm -f core conftest.err conftest.$ac_objext \
20629 conftest$ac_exeext conftest.$ac_ext
20630 LIBS=$ac_check_lib_save_LIBS
20631 fi
20632 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20633 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20634 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20636 cat >>confdefs.h <<\_ACEOF
20637 #define HAVE___UMODDI3 1
20638 _ACEOF
20640 fi
20643 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20644 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20645 if test "${ac_cv_lib_gcc___main+set}" = set; then
20646 echo $ECHO_N "(cached) $ECHO_C" >&6
20647 else
20648 ac_check_lib_save_LIBS=$LIBS
20649 LIBS="-lgcc $LIBS"
20650 cat >conftest.$ac_ext <<_ACEOF
20651 /* confdefs.h. */
20652 _ACEOF
20653 cat confdefs.h >>conftest.$ac_ext
20654 cat >>conftest.$ac_ext <<_ACEOF
20655 /* end confdefs.h. */
20657 /* Override any GCC internal prototype to avoid an error.
20658 Use char because int might match the return type of a GCC
20659 builtin and then its argument prototype would still apply. */
20660 #ifdef __cplusplus
20661 extern "C"
20662 #endif
20663 char __main ();
20664 int
20665 main ()
20666 {
20667 return __main ();
20668 ;
20669 return 0;
20670 }
20671 _ACEOF
20672 rm -f conftest.$ac_objext conftest$ac_exeext
20673 if { (ac_try="$ac_link"
20674 case "(($ac_try" in
20675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20676 *) ac_try_echo=$ac_try;;
20677 esac
20678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20679 (eval "$ac_link") 2>conftest.er1
20680 ac_status=$?
20681 grep -v '^ *+' conftest.er1 >conftest.err
20682 rm -f conftest.er1
20683 cat conftest.err >&5
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); } &&
20686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20687 { (case "(($ac_try" in
20688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20689 *) ac_try_echo=$ac_try;;
20690 esac
20691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20692 (eval "$ac_try") 2>&5
20693 ac_status=$?
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; } &&
20696 { ac_try='test -s conftest$ac_exeext'
20697 { (case "(($ac_try" in
20698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20699 *) ac_try_echo=$ac_try;;
20700 esac
20701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20702 (eval "$ac_try") 2>&5
20703 ac_status=$?
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); }; }; then
20706 ac_cv_lib_gcc___main=yes
20707 else
20708 echo "$as_me: failed program was:" >&5
20709 sed 's/^/| /' conftest.$ac_ext >&5
20711 ac_cv_lib_gcc___main=no
20712 fi
20714 rm -f core conftest.err conftest.$ac_objext \
20715 conftest$ac_exeext conftest.$ac_ext
20716 LIBS=$ac_check_lib_save_LIBS
20717 fi
20718 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20719 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20720 if test $ac_cv_lib_gcc___main = yes; then
20722 cat >>confdefs.h <<\_ACEOF
20723 #define HAVE___MAIN 1
20724 _ACEOF
20726 fi
20728 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20729 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20730 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20731 echo $ECHO_N "(cached) $ECHO_C" >&6
20732 else
20733 ac_check_lib_save_LIBS=$LIBS
20734 LIBS="-lgcc $LIBS"
20735 cat >conftest.$ac_ext <<_ACEOF
20736 /* confdefs.h. */
20737 _ACEOF
20738 cat confdefs.h >>conftest.$ac_ext
20739 cat >>conftest.$ac_ext <<_ACEOF
20740 /* end confdefs.h. */
20742 /* Override any GCC internal prototype to avoid an error.
20743 Use char because int might match the return type of a GCC
20744 builtin and then its argument prototype would still apply. */
20745 #ifdef __cplusplus
20746 extern "C"
20747 #endif
20748 char __cmpdi2 ();
20749 int
20750 main ()
20751 {
20752 return __cmpdi2 ();
20753 ;
20754 return 0;
20755 }
20756 _ACEOF
20757 rm -f conftest.$ac_objext conftest$ac_exeext
20758 if { (ac_try="$ac_link"
20759 case "(($ac_try" in
20760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20761 *) ac_try_echo=$ac_try;;
20762 esac
20763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20764 (eval "$ac_link") 2>conftest.er1
20765 ac_status=$?
20766 grep -v '^ *+' conftest.er1 >conftest.err
20767 rm -f conftest.er1
20768 cat conftest.err >&5
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); } &&
20771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20772 { (case "(($ac_try" in
20773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20774 *) ac_try_echo=$ac_try;;
20775 esac
20776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20777 (eval "$ac_try") 2>&5
20778 ac_status=$?
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); }; } &&
20781 { ac_try='test -s conftest$ac_exeext'
20782 { (case "(($ac_try" in
20783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784 *) ac_try_echo=$ac_try;;
20785 esac
20786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787 (eval "$ac_try") 2>&5
20788 ac_status=$?
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); }; }; then
20791 ac_cv_lib_gcc___cmpdi2=yes
20792 else
20793 echo "$as_me: failed program was:" >&5
20794 sed 's/^/| /' conftest.$ac_ext >&5
20796 ac_cv_lib_gcc___cmpdi2=no
20797 fi
20799 rm -f core conftest.err conftest.$ac_objext \
20800 conftest$ac_exeext conftest.$ac_ext
20801 LIBS=$ac_check_lib_save_LIBS
20802 fi
20803 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20804 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20805 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20807 cat >>confdefs.h <<\_ACEOF
20808 #define HAVE___CMPDI2 1
20809 _ACEOF
20811 fi
20813 fi
20815 if test "$llvm_cv_os_type" = "MingW" ; then
20816 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20817 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20818 cat >conftest.$ac_ext <<_ACEOF
20820 /* confdefs.h. */
20821 _ACEOF
20822 cat confdefs.h >>conftest.$ac_ext
20823 cat >>conftest.$ac_ext <<_ACEOF
20824 /* end confdefs.h. */
20826 #include <windows.h>
20827 #include <imagehlp.h>
20828 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20829 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20832 _ACEOF
20833 rm -f conftest.$ac_objext
20834 if { (ac_try="$ac_compile"
20835 case "(($ac_try" in
20836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20837 *) ac_try_echo=$ac_try;;
20838 esac
20839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20840 (eval "$ac_compile") 2>conftest.er1
20841 ac_status=$?
20842 grep -v '^ *+' conftest.er1 >conftest.err
20843 rm -f conftest.er1
20844 cat conftest.err >&5
20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); } &&
20847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20848 { (case "(($ac_try" in
20849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850 *) ac_try_echo=$ac_try;;
20851 esac
20852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853 (eval "$ac_try") 2>&5
20854 ac_status=$?
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); }; } &&
20857 { ac_try='test -s conftest.$ac_objext'
20858 { (case "(($ac_try" in
20859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860 *) ac_try_echo=$ac_try;;
20861 esac
20862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20863 (eval "$ac_try") 2>&5
20864 ac_status=$?
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); }; }; then
20868 { echo "$as_me:$LINENO: result: yes" >&5
20869 echo "${ECHO_T}yes" >&6; }
20870 llvm_cv_win32_elmcb_pcstr="PCSTR"
20872 else
20873 echo "$as_me: failed program was:" >&5
20874 sed 's/^/| /' conftest.$ac_ext >&5
20877 { echo "$as_me:$LINENO: result: no" >&5
20878 echo "${ECHO_T}no" >&6; }
20879 llvm_cv_win32_elmcb_pcstr="PSTR"
20881 fi
20883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20885 cat >>confdefs.h <<_ACEOF
20886 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20887 _ACEOF
20889 fi
20893 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20894 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20895 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20896 echo $ECHO_N "(cached) $ECHO_C" >&6
20897 else
20899 ac_ext=cpp
20900 ac_cpp='$CXXCPP $CPPFLAGS'
20901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20905 cat >conftest.$ac_ext <<_ACEOF
20906 /* confdefs.h. */
20907 _ACEOF
20908 cat confdefs.h >>conftest.$ac_ext
20909 cat >>conftest.$ac_ext <<_ACEOF
20910 /* end confdefs.h. */
20911 #include <math.h>
20912 int
20913 main ()
20914 {
20915 float f; isnan(f);
20916 ;
20917 return 0;
20918 }
20919 _ACEOF
20920 rm -f conftest.$ac_objext
20921 if { (ac_try="$ac_compile"
20922 case "(($ac_try" in
20923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20924 *) ac_try_echo=$ac_try;;
20925 esac
20926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20927 (eval "$ac_compile") 2>conftest.er1
20928 ac_status=$?
20929 grep -v '^ *+' conftest.er1 >conftest.err
20930 rm -f conftest.er1
20931 cat conftest.err >&5
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); } &&
20934 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20935 { (case "(($ac_try" in
20936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20937 *) ac_try_echo=$ac_try;;
20938 esac
20939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20940 (eval "$ac_try") 2>&5
20941 ac_status=$?
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); }; } &&
20944 { ac_try='test -s conftest.$ac_objext'
20945 { (case "(($ac_try" in
20946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20947 *) ac_try_echo=$ac_try;;
20948 esac
20949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20950 (eval "$ac_try") 2>&5
20951 ac_status=$?
20952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953 (exit $ac_status); }; }; then
20954 ac_cv_func_isnan_in_math_h=yes
20955 else
20956 echo "$as_me: failed program was:" >&5
20957 sed 's/^/| /' conftest.$ac_ext >&5
20959 ac_cv_func_isnan_in_math_h=no
20960 fi
20962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20963 ac_ext=c
20964 ac_cpp='$CPP $CPPFLAGS'
20965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20970 fi
20971 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20972 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20975 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20977 cat >>confdefs.h <<\_ACEOF
20978 #define HAVE_ISNAN_IN_MATH_H 1
20979 _ACEOF
20981 fi
20984 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20985 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20986 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20987 echo $ECHO_N "(cached) $ECHO_C" >&6
20988 else
20990 ac_ext=cpp
20991 ac_cpp='$CXXCPP $CPPFLAGS'
20992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20996 cat >conftest.$ac_ext <<_ACEOF
20997 /* confdefs.h. */
20998 _ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h. */
21002 #include <cmath>
21003 int
21004 main ()
21005 {
21006 float f; isnan(f);
21007 ;
21008 return 0;
21009 }
21010 _ACEOF
21011 rm -f conftest.$ac_objext
21012 if { (ac_try="$ac_compile"
21013 case "(($ac_try" in
21014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21015 *) ac_try_echo=$ac_try;;
21016 esac
21017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21018 (eval "$ac_compile") 2>conftest.er1
21019 ac_status=$?
21020 grep -v '^ *+' conftest.er1 >conftest.err
21021 rm -f conftest.er1
21022 cat conftest.err >&5
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); } &&
21025 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21026 { (case "(($ac_try" in
21027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21028 *) ac_try_echo=$ac_try;;
21029 esac
21030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21031 (eval "$ac_try") 2>&5
21032 ac_status=$?
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); }; } &&
21035 { ac_try='test -s conftest.$ac_objext'
21036 { (case "(($ac_try" in
21037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21038 *) ac_try_echo=$ac_try;;
21039 esac
21040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21041 (eval "$ac_try") 2>&5
21042 ac_status=$?
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); }; }; then
21045 ac_cv_func_isnan_in_cmath=yes
21046 else
21047 echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21050 ac_cv_func_isnan_in_cmath=no
21051 fi
21053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21054 ac_ext=c
21055 ac_cpp='$CPP $CPPFLAGS'
21056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21061 fi
21062 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21063 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
21065 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
21067 cat >>confdefs.h <<\_ACEOF
21068 #define HAVE_ISNAN_IN_CMATH 1
21069 _ACEOF
21071 fi
21074 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21075 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
21076 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21077 echo $ECHO_N "(cached) $ECHO_C" >&6
21078 else
21080 ac_ext=cpp
21081 ac_cpp='$CXXCPP $CPPFLAGS'
21082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21086 cat >conftest.$ac_ext <<_ACEOF
21087 /* confdefs.h. */
21088 _ACEOF
21089 cat confdefs.h >>conftest.$ac_ext
21090 cat >>conftest.$ac_ext <<_ACEOF
21091 /* end confdefs.h. */
21092 #include <cmath>
21093 int
21094 main ()
21095 {
21096 float f; std::isnan(f);
21097 ;
21098 return 0;
21099 }
21100 _ACEOF
21101 rm -f conftest.$ac_objext
21102 if { (ac_try="$ac_compile"
21103 case "(($ac_try" in
21104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21105 *) ac_try_echo=$ac_try;;
21106 esac
21107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21108 (eval "$ac_compile") 2>conftest.er1
21109 ac_status=$?
21110 grep -v '^ *+' conftest.er1 >conftest.err
21111 rm -f conftest.er1
21112 cat conftest.err >&5
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); } &&
21115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21116 { (case "(($ac_try" in
21117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118 *) ac_try_echo=$ac_try;;
21119 esac
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121 (eval "$ac_try") 2>&5
21122 ac_status=$?
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); }; } &&
21125 { ac_try='test -s conftest.$ac_objext'
21126 { (case "(($ac_try" in
21127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128 *) ac_try_echo=$ac_try;;
21129 esac
21130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21131 (eval "$ac_try") 2>&5
21132 ac_status=$?
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); }; }; then
21135 ac_cv_func_std_isnan_in_cmath=yes
21136 else
21137 echo "$as_me: failed program was:" >&5
21138 sed 's/^/| /' conftest.$ac_ext >&5
21140 ac_cv_func_std_isnan_in_cmath=no
21141 fi
21143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21144 ac_ext=c
21145 ac_cpp='$CPP $CPPFLAGS'
21146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21151 fi
21152 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21153 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21155 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21157 cat >>confdefs.h <<\_ACEOF
21158 #define HAVE_STD_ISNAN_IN_CMATH 1
21159 _ACEOF
21161 fi
21166 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21167 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21168 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21169 echo $ECHO_N "(cached) $ECHO_C" >&6
21170 else
21172 ac_ext=cpp
21173 ac_cpp='$CXXCPP $CPPFLAGS'
21174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21178 cat >conftest.$ac_ext <<_ACEOF
21179 /* confdefs.h. */
21180 _ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21184 #include <math.h>
21185 int
21186 main ()
21187 {
21188 float f; isinf(f);
21189 ;
21190 return 0;
21191 }
21192 _ACEOF
21193 rm -f conftest.$ac_objext
21194 if { (ac_try="$ac_compile"
21195 case "(($ac_try" in
21196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21197 *) ac_try_echo=$ac_try;;
21198 esac
21199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21200 (eval "$ac_compile") 2>conftest.er1
21201 ac_status=$?
21202 grep -v '^ *+' conftest.er1 >conftest.err
21203 rm -f conftest.er1
21204 cat conftest.err >&5
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); } &&
21207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21208 { (case "(($ac_try" in
21209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210 *) ac_try_echo=$ac_try;;
21211 esac
21212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21213 (eval "$ac_try") 2>&5
21214 ac_status=$?
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); }; } &&
21217 { ac_try='test -s conftest.$ac_objext'
21218 { (case "(($ac_try" in
21219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21220 *) ac_try_echo=$ac_try;;
21221 esac
21222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21223 (eval "$ac_try") 2>&5
21224 ac_status=$?
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); }; }; then
21227 ac_cv_func_isinf_in_math_h=yes
21228 else
21229 echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21232 ac_cv_func_isinf_in_math_h=no
21233 fi
21235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21236 ac_ext=c
21237 ac_cpp='$CPP $CPPFLAGS'
21238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21243 fi
21244 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21245 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21247 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21249 cat >>confdefs.h <<\_ACEOF
21250 #define HAVE_ISINF_IN_MATH_H 1
21251 _ACEOF
21253 fi
21256 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21257 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21258 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21259 echo $ECHO_N "(cached) $ECHO_C" >&6
21260 else
21262 ac_ext=cpp
21263 ac_cpp='$CXXCPP $CPPFLAGS'
21264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21268 cat >conftest.$ac_ext <<_ACEOF
21269 /* confdefs.h. */
21270 _ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h. */
21274 #include <cmath>
21275 int
21276 main ()
21277 {
21278 float f; isinf(f);
21279 ;
21280 return 0;
21281 }
21282 _ACEOF
21283 rm -f conftest.$ac_objext
21284 if { (ac_try="$ac_compile"
21285 case "(($ac_try" in
21286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21287 *) ac_try_echo=$ac_try;;
21288 esac
21289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21290 (eval "$ac_compile") 2>conftest.er1
21291 ac_status=$?
21292 grep -v '^ *+' conftest.er1 >conftest.err
21293 rm -f conftest.er1
21294 cat conftest.err >&5
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); } &&
21297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21298 { (case "(($ac_try" in
21299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21300 *) ac_try_echo=$ac_try;;
21301 esac
21302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21303 (eval "$ac_try") 2>&5
21304 ac_status=$?
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); }; } &&
21307 { ac_try='test -s conftest.$ac_objext'
21308 { (case "(($ac_try" in
21309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21310 *) ac_try_echo=$ac_try;;
21311 esac
21312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21313 (eval "$ac_try") 2>&5
21314 ac_status=$?
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); }; }; then
21317 ac_cv_func_isinf_in_cmath=yes
21318 else
21319 echo "$as_me: failed program was:" >&5
21320 sed 's/^/| /' conftest.$ac_ext >&5
21322 ac_cv_func_isinf_in_cmath=no
21323 fi
21325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21326 ac_ext=c
21327 ac_cpp='$CPP $CPPFLAGS'
21328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21333 fi
21334 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21335 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21337 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21339 cat >>confdefs.h <<\_ACEOF
21340 #define HAVE_ISINF_IN_CMATH 1
21341 _ACEOF
21343 fi
21346 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21347 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21348 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21349 echo $ECHO_N "(cached) $ECHO_C" >&6
21350 else
21352 ac_ext=cpp
21353 ac_cpp='$CXXCPP $CPPFLAGS'
21354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21358 cat >conftest.$ac_ext <<_ACEOF
21359 /* confdefs.h. */
21360 _ACEOF
21361 cat confdefs.h >>conftest.$ac_ext
21362 cat >>conftest.$ac_ext <<_ACEOF
21363 /* end confdefs.h. */
21364 #include <cmath>
21365 int
21366 main ()
21367 {
21368 float f; std::isinf(f);
21369 ;
21370 return 0;
21371 }
21372 _ACEOF
21373 rm -f conftest.$ac_objext
21374 if { (ac_try="$ac_compile"
21375 case "(($ac_try" in
21376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21377 *) ac_try_echo=$ac_try;;
21378 esac
21379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21380 (eval "$ac_compile") 2>conftest.er1
21381 ac_status=$?
21382 grep -v '^ *+' conftest.er1 >conftest.err
21383 rm -f conftest.er1
21384 cat conftest.err >&5
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); } &&
21387 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21388 { (case "(($ac_try" in
21389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21390 *) ac_try_echo=$ac_try;;
21391 esac
21392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21393 (eval "$ac_try") 2>&5
21394 ac_status=$?
21395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396 (exit $ac_status); }; } &&
21397 { ac_try='test -s conftest.$ac_objext'
21398 { (case "(($ac_try" in
21399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21400 *) ac_try_echo=$ac_try;;
21401 esac
21402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21403 (eval "$ac_try") 2>&5
21404 ac_status=$?
21405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); }; }; then
21407 ac_cv_func_std_isinf_in_cmath=yes
21408 else
21409 echo "$as_me: failed program was:" >&5
21410 sed 's/^/| /' conftest.$ac_ext >&5
21412 ac_cv_func_std_isinf_in_cmath=no
21413 fi
21415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21416 ac_ext=c
21417 ac_cpp='$CPP $CPPFLAGS'
21418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21423 fi
21424 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21425 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21427 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21429 cat >>confdefs.h <<\_ACEOF
21430 #define HAVE_STD_ISINF_IN_CMATH 1
21431 _ACEOF
21433 fi
21436 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21437 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21438 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21439 echo $ECHO_N "(cached) $ECHO_C" >&6
21440 else
21442 ac_ext=cpp
21443 ac_cpp='$CXXCPP $CPPFLAGS'
21444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21448 cat >conftest.$ac_ext <<_ACEOF
21449 /* confdefs.h. */
21450 _ACEOF
21451 cat confdefs.h >>conftest.$ac_ext
21452 cat >>conftest.$ac_ext <<_ACEOF
21453 /* end confdefs.h. */
21454 #include <ieeefp.h>
21455 int
21456 main ()
21457 {
21458 float f; finite(f);
21459 ;
21460 return 0;
21461 }
21462 _ACEOF
21463 rm -f conftest.$ac_objext
21464 if { (ac_try="$ac_compile"
21465 case "(($ac_try" in
21466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21467 *) ac_try_echo=$ac_try;;
21468 esac
21469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21470 (eval "$ac_compile") 2>conftest.er1
21471 ac_status=$?
21472 grep -v '^ *+' conftest.er1 >conftest.err
21473 rm -f conftest.er1
21474 cat conftest.err >&5
21475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); } &&
21477 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21478 { (case "(($ac_try" in
21479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21480 *) ac_try_echo=$ac_try;;
21481 esac
21482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21483 (eval "$ac_try") 2>&5
21484 ac_status=$?
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); }; } &&
21487 { ac_try='test -s conftest.$ac_objext'
21488 { (case "(($ac_try" in
21489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21490 *) ac_try_echo=$ac_try;;
21491 esac
21492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21493 (eval "$ac_try") 2>&5
21494 ac_status=$?
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); }; }; then
21497 ac_cv_func_finite_in_ieeefp_h=yes
21498 else
21499 echo "$as_me: failed program was:" >&5
21500 sed 's/^/| /' conftest.$ac_ext >&5
21502 ac_cv_func_finite_in_ieeefp_h=no
21503 fi
21505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21506 ac_ext=c
21507 ac_cpp='$CPP $CPPFLAGS'
21508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21513 fi
21514 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21515 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21517 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21519 cat >>confdefs.h <<\_ACEOF
21520 #define HAVE_FINITE_IN_IEEEFP_H 1
21521 _ACEOF
21523 fi
21527 if test "$llvm_cv_platform_type" = "Unix" ; then
21530 for ac_header in stdlib.h unistd.h
21531 do
21532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21537 echo $ECHO_N "(cached) $ECHO_C" >&6
21538 fi
21539 ac_res=`eval echo '${'$as_ac_Header'}'`
21540 { echo "$as_me:$LINENO: result: $ac_res" >&5
21541 echo "${ECHO_T}$ac_res" >&6; }
21542 else
21543 # Is the header compilable?
21544 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21546 cat >conftest.$ac_ext <<_ACEOF
21547 /* confdefs.h. */
21548 _ACEOF
21549 cat confdefs.h >>conftest.$ac_ext
21550 cat >>conftest.$ac_ext <<_ACEOF
21551 /* end confdefs.h. */
21552 $ac_includes_default
21553 #include <$ac_header>
21554 _ACEOF
21555 rm -f conftest.$ac_objext
21556 if { (ac_try="$ac_compile"
21557 case "(($ac_try" in
21558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21559 *) ac_try_echo=$ac_try;;
21560 esac
21561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21562 (eval "$ac_compile") 2>conftest.er1
21563 ac_status=$?
21564 grep -v '^ *+' conftest.er1 >conftest.err
21565 rm -f conftest.er1
21566 cat conftest.err >&5
21567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568 (exit $ac_status); } &&
21569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21570 { (case "(($ac_try" in
21571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21572 *) ac_try_echo=$ac_try;;
21573 esac
21574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21575 (eval "$ac_try") 2>&5
21576 ac_status=$?
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; } &&
21579 { ac_try='test -s conftest.$ac_objext'
21580 { (case "(($ac_try" in
21581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21582 *) ac_try_echo=$ac_try;;
21583 esac
21584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21585 (eval "$ac_try") 2>&5
21586 ac_status=$?
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); }; }; then
21589 ac_header_compiler=yes
21590 else
21591 echo "$as_me: failed program was:" >&5
21592 sed 's/^/| /' conftest.$ac_ext >&5
21594 ac_header_compiler=no
21595 fi
21597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21598 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21599 echo "${ECHO_T}$ac_header_compiler" >&6; }
21601 # Is the header present?
21602 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21604 cat >conftest.$ac_ext <<_ACEOF
21605 /* confdefs.h. */
21606 _ACEOF
21607 cat confdefs.h >>conftest.$ac_ext
21608 cat >>conftest.$ac_ext <<_ACEOF
21609 /* end confdefs.h. */
21610 #include <$ac_header>
21611 _ACEOF
21612 if { (ac_try="$ac_cpp conftest.$ac_ext"
21613 case "(($ac_try" in
21614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21615 *) ac_try_echo=$ac_try;;
21616 esac
21617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21619 ac_status=$?
21620 grep -v '^ *+' conftest.er1 >conftest.err
21621 rm -f conftest.er1
21622 cat conftest.err >&5
21623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624 (exit $ac_status); } >/dev/null; then
21625 if test -s conftest.err; then
21626 ac_cpp_err=$ac_c_preproc_warn_flag
21627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21628 else
21629 ac_cpp_err=
21630 fi
21631 else
21632 ac_cpp_err=yes
21633 fi
21634 if test -z "$ac_cpp_err"; then
21635 ac_header_preproc=yes
21636 else
21637 echo "$as_me: failed program was:" >&5
21638 sed 's/^/| /' conftest.$ac_ext >&5
21640 ac_header_preproc=no
21641 fi
21643 rm -f conftest.err conftest.$ac_ext
21644 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21645 echo "${ECHO_T}$ac_header_preproc" >&6; }
21647 # So? What about this header?
21648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21649 yes:no: )
21650 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21651 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21653 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21654 ac_header_preproc=yes
21655 ;;
21656 no:yes:* )
21657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21660 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21661 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21662 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21663 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21664 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21667 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21668 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21669 ( cat <<\_ASBOX
21670 ## ------------------------------------ ##
21671 ## Report this to http://llvm.org/bugs/ ##
21672 ## ------------------------------------ ##
21673 _ASBOX
21674 ) | sed "s/^/$as_me: WARNING: /" >&2
21675 ;;
21676 esac
21677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21680 echo $ECHO_N "(cached) $ECHO_C" >&6
21681 else
21682 eval "$as_ac_Header=\$ac_header_preproc"
21683 fi
21684 ac_res=`eval echo '${'$as_ac_Header'}'`
21685 { echo "$as_me:$LINENO: result: $ac_res" >&5
21686 echo "${ECHO_T}$ac_res" >&6; }
21688 fi
21689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21690 cat >>confdefs.h <<_ACEOF
21691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21692 _ACEOF
21694 fi
21696 done
21699 for ac_func in getpagesize
21700 do
21701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21702 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21704 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21705 echo $ECHO_N "(cached) $ECHO_C" >&6
21706 else
21707 cat >conftest.$ac_ext <<_ACEOF
21708 /* confdefs.h. */
21709 _ACEOF
21710 cat confdefs.h >>conftest.$ac_ext
21711 cat >>conftest.$ac_ext <<_ACEOF
21712 /* end confdefs.h. */
21713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21715 #define $ac_func innocuous_$ac_func
21717 /* System header to define __stub macros and hopefully few prototypes,
21718 which can conflict with char $ac_func (); below.
21719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21720 <limits.h> exists even on freestanding compilers. */
21722 #ifdef __STDC__
21723 # include <limits.h>
21724 #else
21725 # include <assert.h>
21726 #endif
21728 #undef $ac_func
21730 /* Override any GCC internal prototype to avoid an error.
21731 Use char because int might match the return type of a GCC
21732 builtin and then its argument prototype would still apply. */
21733 #ifdef __cplusplus
21734 extern "C"
21735 #endif
21736 char $ac_func ();
21737 /* The GNU C library defines this for functions which it implements
21738 to always fail with ENOSYS. Some functions are actually named
21739 something starting with __ and the normal name is an alias. */
21740 #if defined __stub_$ac_func || defined __stub___$ac_func
21741 choke me
21742 #endif
21744 int
21745 main ()
21746 {
21747 return $ac_func ();
21748 ;
21749 return 0;
21750 }
21751 _ACEOF
21752 rm -f conftest.$ac_objext conftest$ac_exeext
21753 if { (ac_try="$ac_link"
21754 case "(($ac_try" in
21755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21756 *) ac_try_echo=$ac_try;;
21757 esac
21758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21759 (eval "$ac_link") 2>conftest.er1
21760 ac_status=$?
21761 grep -v '^ *+' conftest.er1 >conftest.err
21762 rm -f conftest.er1
21763 cat conftest.err >&5
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); } &&
21766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21767 { (case "(($ac_try" in
21768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21769 *) ac_try_echo=$ac_try;;
21770 esac
21771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21772 (eval "$ac_try") 2>&5
21773 ac_status=$?
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); }; } &&
21776 { ac_try='test -s conftest$ac_exeext'
21777 { (case "(($ac_try" in
21778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21779 *) ac_try_echo=$ac_try;;
21780 esac
21781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21782 (eval "$ac_try") 2>&5
21783 ac_status=$?
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); }; }; then
21786 eval "$as_ac_var=yes"
21787 else
21788 echo "$as_me: failed program was:" >&5
21789 sed 's/^/| /' conftest.$ac_ext >&5
21791 eval "$as_ac_var=no"
21792 fi
21794 rm -f core conftest.err conftest.$ac_objext \
21795 conftest$ac_exeext conftest.$ac_ext
21796 fi
21797 ac_res=`eval echo '${'$as_ac_var'}'`
21798 { echo "$as_me:$LINENO: result: $ac_res" >&5
21799 echo "${ECHO_T}$ac_res" >&6; }
21800 if test `eval echo '${'$as_ac_var'}'` = yes; then
21801 cat >>confdefs.h <<_ACEOF
21802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21803 _ACEOF
21805 fi
21806 done
21808 { echo "$as_me:$LINENO: checking for working mmap" >&5
21809 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21810 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21811 echo $ECHO_N "(cached) $ECHO_C" >&6
21812 else
21813 if test "$cross_compiling" = yes; then
21814 ac_cv_func_mmap_fixed_mapped=no
21815 else
21816 cat >conftest.$ac_ext <<_ACEOF
21817 /* confdefs.h. */
21818 _ACEOF
21819 cat confdefs.h >>conftest.$ac_ext
21820 cat >>conftest.$ac_ext <<_ACEOF
21821 /* end confdefs.h. */
21822 $ac_includes_default
21823 /* malloc might have been renamed as rpl_malloc. */
21824 #undef malloc
21826 /* Thanks to Mike Haertel and Jim Avera for this test.
21827 Here is a matrix of mmap possibilities:
21828 mmap private not fixed
21829 mmap private fixed at somewhere currently unmapped
21830 mmap private fixed at somewhere already mapped
21831 mmap shared not fixed
21832 mmap shared fixed at somewhere currently unmapped
21833 mmap shared fixed at somewhere already mapped
21834 For private mappings, we should verify that changes cannot be read()
21835 back from the file, nor mmap's back from the file at a different
21836 address. (There have been systems where private was not correctly
21837 implemented like the infamous i386 svr4.0, and systems where the
21838 VM page cache was not coherent with the file system buffer cache
21839 like early versions of FreeBSD and possibly contemporary NetBSD.)
21840 For shared mappings, we should conversely verify that changes get
21841 propagated back to all the places they're supposed to be.
21843 Grep wants private fixed already mapped.
21844 The main things grep needs to know about mmap are:
21845 * does it exist and is it safe to write into the mmap'd area
21846 * how to use it (BSD variants) */
21848 #include <fcntl.h>
21849 #include <sys/mman.h>
21851 #if !STDC_HEADERS && !HAVE_STDLIB_H
21852 char *malloc ();
21853 #endif
21855 /* This mess was copied from the GNU getpagesize.h. */
21856 #if !HAVE_GETPAGESIZE
21857 /* Assume that all systems that can run configure have sys/param.h. */
21858 # if !HAVE_SYS_PARAM_H
21859 # define HAVE_SYS_PARAM_H 1
21860 # endif
21862 # ifdef _SC_PAGESIZE
21863 # define getpagesize() sysconf(_SC_PAGESIZE)
21864 # else /* no _SC_PAGESIZE */
21865 # if HAVE_SYS_PARAM_H
21866 # include <sys/param.h>
21867 # ifdef EXEC_PAGESIZE
21868 # define getpagesize() EXEC_PAGESIZE
21869 # else /* no EXEC_PAGESIZE */
21870 # ifdef NBPG
21871 # define getpagesize() NBPG * CLSIZE
21872 # ifndef CLSIZE
21873 # define CLSIZE 1
21874 # endif /* no CLSIZE */
21875 # else /* no NBPG */
21876 # ifdef NBPC
21877 # define getpagesize() NBPC
21878 # else /* no NBPC */
21879 # ifdef PAGESIZE
21880 # define getpagesize() PAGESIZE
21881 # endif /* PAGESIZE */
21882 # endif /* no NBPC */
21883 # endif /* no NBPG */
21884 # endif /* no EXEC_PAGESIZE */
21885 # else /* no HAVE_SYS_PARAM_H */
21886 # define getpagesize() 8192 /* punt totally */
21887 # endif /* no HAVE_SYS_PARAM_H */
21888 # endif /* no _SC_PAGESIZE */
21890 #endif /* no HAVE_GETPAGESIZE */
21892 int
21893 main ()
21894 {
21895 char *data, *data2, *data3;
21896 int i, pagesize;
21897 int fd;
21899 pagesize = getpagesize ();
21901 /* First, make a file with some known garbage in it. */
21902 data = (char *) malloc (pagesize);
21903 if (!data)
21904 return 1;
21905 for (i = 0; i < pagesize; ++i)
21906 *(data + i) = rand ();
21907 umask (0);
21908 fd = creat ("conftest.mmap", 0600);
21909 if (fd < 0)
21910 return 1;
21911 if (write (fd, data, pagesize) != pagesize)
21912 return 1;
21913 close (fd);
21915 /* Next, try to mmap the file at a fixed address which already has
21916 something else allocated at it. If we can, also make sure that
21917 we see the same garbage. */
21918 fd = open ("conftest.mmap", O_RDWR);
21919 if (fd < 0)
21920 return 1;
21921 data2 = (char *) malloc (2 * pagesize);
21922 if (!data2)
21923 return 1;
21924 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21925 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21926 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21927 return 1;
21928 for (i = 0; i < pagesize; ++i)
21929 if (*(data + i) != *(data2 + i))
21930 return 1;
21932 /* Finally, make sure that changes to the mapped area do not
21933 percolate back to the file as seen by read(). (This is a bug on
21934 some variants of i386 svr4.0.) */
21935 for (i = 0; i < pagesize; ++i)
21936 *(data2 + i) = *(data2 + i) + 1;
21937 data3 = (char *) malloc (pagesize);
21938 if (!data3)
21939 return 1;
21940 if (read (fd, data3, pagesize) != pagesize)
21941 return 1;
21942 for (i = 0; i < pagesize; ++i)
21943 if (*(data + i) != *(data3 + i))
21944 return 1;
21945 close (fd);
21946 return 0;
21947 }
21948 _ACEOF
21949 rm -f conftest$ac_exeext
21950 if { (ac_try="$ac_link"
21951 case "(($ac_try" in
21952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21953 *) ac_try_echo=$ac_try;;
21954 esac
21955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21956 (eval "$ac_link") 2>&5
21957 ac_status=$?
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21960 { (case "(($ac_try" in
21961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21962 *) ac_try_echo=$ac_try;;
21963 esac
21964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21965 (eval "$ac_try") 2>&5
21966 ac_status=$?
21967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968 (exit $ac_status); }; }; then
21969 ac_cv_func_mmap_fixed_mapped=yes
21970 else
21971 echo "$as_me: program exited with status $ac_status" >&5
21972 echo "$as_me: failed program was:" >&5
21973 sed 's/^/| /' conftest.$ac_ext >&5
21975 ( exit $ac_status )
21976 ac_cv_func_mmap_fixed_mapped=no
21977 fi
21978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21979 fi
21982 fi
21983 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21984 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21985 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21987 cat >>confdefs.h <<\_ACEOF
21988 #define HAVE_MMAP 1
21989 _ACEOF
21991 fi
21992 rm -f conftest.mmap
21994 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21995 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21996 if test "${ac_cv_func_mmap_file+set}" = set; then
21997 echo $ECHO_N "(cached) $ECHO_C" >&6
21998 else
21999 ac_ext=c
22000 ac_cpp='$CPP $CPPFLAGS'
22001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22005 if test "$cross_compiling" = yes; then
22006 ac_cv_func_mmap_file=no
22007 else
22008 cat >conftest.$ac_ext <<_ACEOF
22010 /* confdefs.h. */
22011 _ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22016 #include <sys/types.h>
22017 #include <sys/mman.h>
22018 #include <fcntl.h>
22020 int
22021 main ()
22022 {
22024 int fd;
22025 fd = creat ("foo",0777);
22026 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
22027 unlink ("foo");
22028 return (fd != (int) MAP_FAILED);
22029 ;
22030 return 0;
22031 }
22032 _ACEOF
22033 rm -f conftest$ac_exeext
22034 if { (ac_try="$ac_link"
22035 case "(($ac_try" in
22036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22037 *) ac_try_echo=$ac_try;;
22038 esac
22039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22040 (eval "$ac_link") 2>&5
22041 ac_status=$?
22042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22044 { (case "(($ac_try" in
22045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22046 *) ac_try_echo=$ac_try;;
22047 esac
22048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22049 (eval "$ac_try") 2>&5
22050 ac_status=$?
22051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); }; }; then
22053 ac_cv_func_mmap_file=yes
22054 else
22055 echo "$as_me: program exited with status $ac_status" >&5
22056 echo "$as_me: failed program was:" >&5
22057 sed 's/^/| /' conftest.$ac_ext >&5
22059 ( exit $ac_status )
22060 ac_cv_func_mmap_file=no
22061 fi
22062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22063 fi
22066 ac_ext=c
22067 ac_cpp='$CPP $CPPFLAGS'
22068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22073 fi
22074 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22075 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
22076 if test "$ac_cv_func_mmap_file" = yes; then
22078 cat >>confdefs.h <<\_ACEOF
22079 #define HAVE_MMAP_FILE
22080 _ACEOF
22082 MMAP_FILE=yes
22084 fi
22086 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
22087 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
22088 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
22089 echo $ECHO_N "(cached) $ECHO_C" >&6
22090 else
22091 if test "$llvm_cv_os_type" = "Interix" ; then
22092 ac_cv_need_dev_zero_for_mmap=yes
22093 else
22094 ac_cv_need_dev_zero_for_mmap=no
22095 fi
22097 fi
22098 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
22099 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
22100 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
22102 cat >>confdefs.h <<\_ACEOF
22103 #define NEED_DEV_ZERO_FOR_MMAP 1
22104 _ACEOF
22106 fi
22108 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22109 then
22110 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
22111 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
22112 fi
22113 if test "$ac_cv_func_mmap_file" = "no"
22114 then
22115 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
22116 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
22117 fi
22118 fi
22120 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
22121 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
22122 ac_ext=cpp
22123 ac_cpp='$CXXCPP $CPPFLAGS'
22124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22128 cat >conftest.$ac_ext <<_ACEOF
22130 /* confdefs.h. */
22131 _ACEOF
22132 cat confdefs.h >>conftest.$ac_ext
22133 cat >>conftest.$ac_ext <<_ACEOF
22134 /* end confdefs.h. */
22136 int main() {
22137 volatile unsigned long val = 1;
22138 __sync_synchronize();
22139 __sync_val_compare_and_swap(&val, 1, 0);
22140 __sync_add_and_fetch(&val, 1);
22141 __sync_sub_and_fetch(&val, 1);
22142 return 0;
22143 }
22146 _ACEOF
22147 rm -f conftest.$ac_objext conftest$ac_exeext
22148 if { (ac_try="$ac_link"
22149 case "(($ac_try" in
22150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22151 *) ac_try_echo=$ac_try;;
22152 esac
22153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22154 (eval "$ac_link") 2>conftest.er1
22155 ac_status=$?
22156 grep -v '^ *+' conftest.er1 >conftest.err
22157 rm -f conftest.er1
22158 cat conftest.err >&5
22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); } &&
22161 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22162 { (case "(($ac_try" in
22163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22164 *) ac_try_echo=$ac_try;;
22165 esac
22166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22167 (eval "$ac_try") 2>&5
22168 ac_status=$?
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); }; } &&
22171 { ac_try='test -s conftest$ac_exeext'
22172 { (case "(($ac_try" in
22173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22174 *) ac_try_echo=$ac_try;;
22175 esac
22176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22177 (eval "$ac_try") 2>&5
22178 ac_status=$?
22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); }; }; then
22182 { echo "$as_me:$LINENO: result: yes" >&5
22183 echo "${ECHO_T}yes" >&6; }
22185 cat >>confdefs.h <<\_ACEOF
22186 #define LLVM_HAS_ATOMICS 1
22187 _ACEOF
22190 else
22191 echo "$as_me: failed program was:" >&5
22192 sed 's/^/| /' conftest.$ac_ext >&5
22195 { echo "$as_me:$LINENO: result: no" >&5
22196 echo "${ECHO_T}no" >&6; }
22198 cat >>confdefs.h <<\_ACEOF
22199 #define LLVM_HAS_ATOMICS 0
22200 _ACEOF
22202 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22203 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22205 fi
22207 rm -f core conftest.err conftest.$ac_objext \
22208 conftest$ac_exeext conftest.$ac_ext
22209 ac_ext=c
22210 ac_cpp='$CPP $CPPFLAGS'
22211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22217 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22218 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22219 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22220 if test "${llvm_cv_linux_mixed+set}" = set; then
22221 echo $ECHO_N "(cached) $ECHO_C" >&6
22222 else
22223 ac_ext=c
22224 ac_cpp='$CPP $CPPFLAGS'
22225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22229 cat >conftest.$ac_ext <<_ACEOF
22230 /* confdefs.h. */
22231 _ACEOF
22232 cat confdefs.h >>conftest.$ac_ext
22233 cat >>conftest.$ac_ext <<_ACEOF
22234 /* end confdefs.h. */
22235 #ifndef __x86_64__
22236 error: Not x86-64 even if uname says so!
22237 #endif
22239 int
22240 main ()
22241 {
22243 ;
22244 return 0;
22245 }
22246 _ACEOF
22247 rm -f conftest.$ac_objext
22248 if { (ac_try="$ac_compile"
22249 case "(($ac_try" in
22250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22251 *) ac_try_echo=$ac_try;;
22252 esac
22253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22254 (eval "$ac_compile") 2>conftest.er1
22255 ac_status=$?
22256 grep -v '^ *+' conftest.er1 >conftest.err
22257 rm -f conftest.er1
22258 cat conftest.err >&5
22259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260 (exit $ac_status); } &&
22261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22262 { (case "(($ac_try" in
22263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22264 *) ac_try_echo=$ac_try;;
22265 esac
22266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22267 (eval "$ac_try") 2>&5
22268 ac_status=$?
22269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); }; } &&
22271 { ac_try='test -s conftest.$ac_objext'
22272 { (case "(($ac_try" in
22273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274 *) ac_try_echo=$ac_try;;
22275 esac
22276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277 (eval "$ac_try") 2>&5
22278 ac_status=$?
22279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280 (exit $ac_status); }; }; then
22281 llvm_cv_linux_mixed=no
22282 else
22283 echo "$as_me: failed program was:" >&5
22284 sed 's/^/| /' conftest.$ac_ext >&5
22286 llvm_cv_linux_mixed=yes
22287 fi
22289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22290 ac_ext=c
22291 ac_cpp='$CPP $CPPFLAGS'
22292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22297 fi
22298 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22299 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22301 if test "$llvm_cv_linux_mixed" = "yes"; then
22302 llvm_cv_target_arch="x86"
22303 ARCH="x86"
22304 fi
22305 fi
22308 for ac_func in __dso_handle
22309 do
22310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22311 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22313 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22314 echo $ECHO_N "(cached) $ECHO_C" >&6
22315 else
22316 cat >conftest.$ac_ext <<_ACEOF
22317 /* confdefs.h. */
22318 _ACEOF
22319 cat confdefs.h >>conftest.$ac_ext
22320 cat >>conftest.$ac_ext <<_ACEOF
22321 /* end confdefs.h. */
22322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22324 #define $ac_func innocuous_$ac_func
22326 /* System header to define __stub macros and hopefully few prototypes,
22327 which can conflict with char $ac_func (); below.
22328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22329 <limits.h> exists even on freestanding compilers. */
22331 #ifdef __STDC__
22332 # include <limits.h>
22333 #else
22334 # include <assert.h>
22335 #endif
22337 #undef $ac_func
22339 /* Override any GCC internal prototype to avoid an error.
22340 Use char because int might match the return type of a GCC
22341 builtin and then its argument prototype would still apply. */
22342 #ifdef __cplusplus
22343 extern "C"
22344 #endif
22345 char $ac_func ();
22346 /* The GNU C library defines this for functions which it implements
22347 to always fail with ENOSYS. Some functions are actually named
22348 something starting with __ and the normal name is an alias. */
22349 #if defined __stub_$ac_func || defined __stub___$ac_func
22350 choke me
22351 #endif
22353 int
22354 main ()
22355 {
22356 return $ac_func ();
22357 ;
22358 return 0;
22359 }
22360 _ACEOF
22361 rm -f conftest.$ac_objext conftest$ac_exeext
22362 if { (ac_try="$ac_link"
22363 case "(($ac_try" in
22364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22365 *) ac_try_echo=$ac_try;;
22366 esac
22367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22368 (eval "$ac_link") 2>conftest.er1
22369 ac_status=$?
22370 grep -v '^ *+' conftest.er1 >conftest.err
22371 rm -f conftest.er1
22372 cat conftest.err >&5
22373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374 (exit $ac_status); } &&
22375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22376 { (case "(($ac_try" in
22377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22378 *) ac_try_echo=$ac_try;;
22379 esac
22380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22381 (eval "$ac_try") 2>&5
22382 ac_status=$?
22383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384 (exit $ac_status); }; } &&
22385 { ac_try='test -s conftest$ac_exeext'
22386 { (case "(($ac_try" in
22387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22388 *) ac_try_echo=$ac_try;;
22389 esac
22390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22391 (eval "$ac_try") 2>&5
22392 ac_status=$?
22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394 (exit $ac_status); }; }; then
22395 eval "$as_ac_var=yes"
22396 else
22397 echo "$as_me: failed program was:" >&5
22398 sed 's/^/| /' conftest.$ac_ext >&5
22400 eval "$as_ac_var=no"
22401 fi
22403 rm -f core conftest.err conftest.$ac_objext \
22404 conftest$ac_exeext conftest.$ac_ext
22405 fi
22406 ac_res=`eval echo '${'$as_ac_var'}'`
22407 { echo "$as_me:$LINENO: result: $ac_res" >&5
22408 echo "${ECHO_T}$ac_res" >&6; }
22409 if test `eval echo '${'$as_ac_var'}'` = yes; then
22410 cat >>confdefs.h <<_ACEOF
22411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22412 _ACEOF
22414 fi
22415 done
22418 SHLIBEXT=$libltdl_cv_shlibext
22421 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22424 if test "${prefix}" = "NONE" ; then
22425 prefix="/usr/local"
22426 fi
22427 eval LLVM_PREFIX="${prefix}";
22428 eval LLVM_BINDIR="${prefix}/bin";
22429 eval LLVM_DATADIR="${prefix}/share/llvm";
22430 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22431 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22432 eval LLVM_INCLUDEDIR="${prefix}/include";
22433 eval LLVM_INFODIR="${prefix}/info";
22434 eval LLVM_MANDIR="${prefix}/man";
22435 LLVM_CONFIGTIME=`date`
22446 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22447 LLVM_CONFIGTIME="(timestamp not enabled)"
22448 fi
22451 cat >>confdefs.h <<_ACEOF
22452 #define LLVM_PREFIX "$LLVM_PREFIX"
22453 _ACEOF
22456 cat >>confdefs.h <<_ACEOF
22457 #define LLVM_BINDIR "$LLVM_BINDIR"
22458 _ACEOF
22461 cat >>confdefs.h <<_ACEOF
22462 #define LLVM_DATADIR "$LLVM_DATADIR"
22463 _ACEOF
22466 cat >>confdefs.h <<_ACEOF
22467 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22468 _ACEOF
22471 cat >>confdefs.h <<_ACEOF
22472 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22473 _ACEOF
22476 cat >>confdefs.h <<_ACEOF
22477 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22478 _ACEOF
22481 cat >>confdefs.h <<_ACEOF
22482 #define LLVM_INFODIR "$LLVM_INFODIR"
22483 _ACEOF
22486 cat >>confdefs.h <<_ACEOF
22487 #define LLVM_MANDIR "$LLVM_MANDIR"
22488 _ACEOF
22491 cat >>confdefs.h <<_ACEOF
22492 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22493 _ACEOF
22496 cat >>confdefs.h <<_ACEOF
22497 #define LLVM_HOST_TRIPLE "$host"
22498 _ACEOF
22501 cat >>confdefs.h <<_ACEOF
22502 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22503 _ACEOF
22506 if test "$BINDINGS_TO_BUILD" = auto ; then
22507 BINDINGS_TO_BUILD=""
22508 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22509 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22510 fi
22511 fi
22512 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22515 ALL_BINDINGS=ocaml
22518 binding_prereqs_failed=0
22519 for a_binding in $BINDINGS_TO_BUILD ; do
22520 case "$a_binding" in
22521 ocaml)
22522 if test "x$OCAMLC" = x ; then
22523 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22524 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22525 binding_prereqs_failed=1
22526 fi
22527 if test "x$OCAMLDEP" = x ; then
22528 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22529 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22530 binding_prereqs_failed=1
22531 fi
22532 if test "x$OCAMLOPT" = x ; then
22533 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22534 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22535 fi
22536 if test "x$with_ocaml_libdir" != xauto ; then
22537 OCAML_LIBDIR=$with_ocaml_libdir
22539 else
22540 ocaml_stdlib="`"$OCAMLC" -where`"
22541 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22542 then
22543 # ocaml stdlib is beneath our prefix; use stdlib
22544 OCAML_LIBDIR=$ocaml_stdlib
22546 else
22547 # ocaml stdlib is outside our prefix; use libdir/ocaml
22548 OCAML_LIBDIR=${prefix}/lib/ocaml
22550 fi
22551 fi
22552 ;;
22553 esac
22554 done
22555 if test "$binding_prereqs_failed" = 1 ; then
22556 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22557 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22558 { (exit 1); exit 1; }; }
22559 fi
22561 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22562 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22563 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22564 echo $ECHO_N "(cached) $ECHO_C" >&6
22565 else
22566 ac_ext=cpp
22567 ac_cpp='$CXXCPP $CPPFLAGS'
22568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22572 oldcxxflags="$CXXFLAGS"
22573 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22574 cat >conftest.$ac_ext <<_ACEOF
22575 /* confdefs.h. */
22576 _ACEOF
22577 cat confdefs.h >>conftest.$ac_ext
22578 cat >>conftest.$ac_ext <<_ACEOF
22579 /* end confdefs.h. */
22580 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22581 int
22582 main ()
22583 {
22584 X<int>().f();
22585 ;
22586 return 0;
22587 }
22588 _ACEOF
22589 rm -f conftest.$ac_objext
22590 if { (ac_try="$ac_compile"
22591 case "(($ac_try" in
22592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22593 *) ac_try_echo=$ac_try;;
22594 esac
22595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22596 (eval "$ac_compile") 2>conftest.er1
22597 ac_status=$?
22598 grep -v '^ *+' conftest.er1 >conftest.err
22599 rm -f conftest.er1
22600 cat conftest.err >&5
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); } &&
22603 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22604 { (case "(($ac_try" in
22605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22606 *) ac_try_echo=$ac_try;;
22607 esac
22608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22609 (eval "$ac_try") 2>&5
22610 ac_status=$?
22611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612 (exit $ac_status); }; } &&
22613 { ac_try='test -s conftest.$ac_objext'
22614 { (case "(($ac_try" in
22615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22616 *) ac_try_echo=$ac_try;;
22617 esac
22618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22619 (eval "$ac_try") 2>&5
22620 ac_status=$?
22621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622 (exit $ac_status); }; }; then
22623 llvm_cv_cxx_visibility_inlines_hidden=yes
22624 else
22625 echo "$as_me: failed program was:" >&5
22626 sed 's/^/| /' conftest.$ac_ext >&5
22628 llvm_cv_cxx_visibility_inlines_hidden=no
22629 fi
22631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22632 CXXFLAGS="$oldcxxflags"
22633 ac_ext=c
22634 ac_cpp='$CPP $CPPFLAGS'
22635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22640 fi
22641 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22642 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22643 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22644 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22646 else
22647 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22649 fi
22652 if test "$llvm_cv_link_use_r" = "yes" ; then
22653 RPATH="-Wl,-R"
22654 else
22655 RPATH="-Wl,-rpath"
22656 fi
22659 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22660 RDYNAMIC="-Wl,-export-dynamic"
22661 else
22662 RDYNAMIC=""
22663 fi
22667 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22674 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22676 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22678 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22680 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22682 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22685 ac_config_files="$ac_config_files Makefile.config"
22688 ac_config_files="$ac_config_files llvm.spec"
22691 ac_config_files="$ac_config_files docs/doxygen.cfg"
22694 if test "${clang_src_root}" = ""; then
22695 clang_src_root="$srcdir/tools/clang"
22696 fi
22697 if test -f ${clang_src_root}/README.txt; then
22698 configh="include/clang/Config/config.h"
22699 doxy="docs/doxygen.cfg"
22700 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22702 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22704 fi
22706 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22709 test "x$program_prefix" = "xNONE" && program_prefix=""
22713 ac_config_commands="$ac_config_commands setup"
22715 ac_config_commands="$ac_config_commands Makefile"
22718 ac_config_commands="$ac_config_commands Makefile.common"
22721 ac_config_commands="$ac_config_commands examples/Makefile"
22724 ac_config_commands="$ac_config_commands lib/Makefile"
22727 ac_config_commands="$ac_config_commands runtime/Makefile"
22730 ac_config_commands="$ac_config_commands test/Makefile"
22733 ac_config_commands="$ac_config_commands test/Makefile.tests"
22736 ac_config_commands="$ac_config_commands unittests/Makefile"
22739 ac_config_commands="$ac_config_commands tools/Makefile"
22742 ac_config_commands="$ac_config_commands utils/Makefile"
22745 ac_config_commands="$ac_config_commands projects/Makefile"
22748 ac_config_commands="$ac_config_commands bindings/Makefile"
22751 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22755 cat >confcache <<\_ACEOF
22756 # This file is a shell script that caches the results of configure
22757 # tests run on this system so they can be shared between configure
22758 # scripts and configure runs, see configure's option --config-cache.
22759 # It is not useful on other systems. If it contains results you don't
22760 # want to keep, you may remove or edit it.
22761 #
22762 # config.status only pays attention to the cache file if you give it
22763 # the --recheck option to rerun configure.
22764 #
22765 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22766 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22767 # following values.
22769 _ACEOF
22771 # The following way of writing the cache mishandles newlines in values,
22772 # but we know of no workaround that is simple, portable, and efficient.
22773 # So, we kill variables containing newlines.
22774 # Ultrix sh set writes to stderr and can't be redirected directly,
22775 # and sets the high bit in the cache file unless we assign to the vars.
22776 (
22777 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22778 eval ac_val=\$$ac_var
22779 case $ac_val in #(
22780 *${as_nl}*)
22781 case $ac_var in #(
22782 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22783 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22784 esac
22785 case $ac_var in #(
22786 _ | IFS | as_nl) ;; #(
22787 *) $as_unset $ac_var ;;
22788 esac ;;
22789 esac
22790 done
22792 (set) 2>&1 |
22793 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22794 *${as_nl}ac_space=\ *)
22795 # `set' does not quote correctly, so add quotes (double-quote
22796 # substitution turns \\\\ into \\, and sed turns \\ into \).
22797 sed -n \
22798 "s/'/'\\\\''/g;
22799 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22800 ;; #(
22801 *)
22802 # `set' quotes correctly as required by POSIX, so do not add quotes.
22803 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22804 ;;
22805 esac |
22806 sort
22807 ) |
22808 sed '
22809 /^ac_cv_env_/b end
22810 t clear
22811 :clear
22812 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22813 t end
22814 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22815 :end' >>confcache
22816 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22817 if test -w "$cache_file"; then
22818 test "x$cache_file" != "x/dev/null" &&
22819 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22820 echo "$as_me: updating cache $cache_file" >&6;}
22821 cat confcache >$cache_file
22822 else
22823 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22824 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22825 fi
22826 fi
22827 rm -f confcache
22829 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22830 # Let make expand exec_prefix.
22831 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22833 DEFS=-DHAVE_CONFIG_H
22835 ac_libobjs=
22836 ac_ltlibobjs=
22837 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22838 # 1. Remove the extension, and $U if already installed.
22839 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22840 ac_i=`echo "$ac_i" | sed "$ac_script"`
22841 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22842 # will be set to the directory where LIBOBJS objects are built.
22843 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22844 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22845 done
22846 LIBOBJS=$ac_libobjs
22848 LTLIBOBJS=$ac_ltlibobjs
22851 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22852 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22853 Usually this means the macro was only invoked conditionally." >&5
22854 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22855 Usually this means the macro was only invoked conditionally." >&2;}
22856 { (exit 1); exit 1; }; }
22857 fi
22858 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22859 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22860 Usually this means the macro was only invoked conditionally." >&5
22861 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22862 Usually this means the macro was only invoked conditionally." >&2;}
22863 { (exit 1); exit 1; }; }
22864 fi
22866 : ${CONFIG_STATUS=./config.status}
22867 ac_clean_files_save=$ac_clean_files
22868 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22869 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22870 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22871 cat >$CONFIG_STATUS <<_ACEOF
22872 #! $SHELL
22873 # Generated by $as_me.
22874 # Run this file to recreate the current configuration.
22875 # Compiler output produced by configure, useful for debugging
22876 # configure, is in config.log if it exists.
22878 debug=false
22879 ac_cs_recheck=false
22880 ac_cs_silent=false
22881 SHELL=\${CONFIG_SHELL-$SHELL}
22882 _ACEOF
22884 cat >>$CONFIG_STATUS <<\_ACEOF
22885 ## --------------------- ##
22886 ## M4sh Initialization. ##
22887 ## --------------------- ##
22889 # Be Bourne compatible
22890 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22891 emulate sh
22892 NULLCMD=:
22893 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22894 # is contrary to our usage. Disable this feature.
22895 alias -g '${1+"$@"}'='"$@"'
22896 setopt NO_GLOB_SUBST
22897 else
22898 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22899 fi
22900 BIN_SH=xpg4; export BIN_SH # for Tru64
22901 DUALCASE=1; export DUALCASE # for MKS sh
22904 # PATH needs CR
22905 # Avoid depending upon Character Ranges.
22906 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22907 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22908 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22909 as_cr_digits='0123456789'
22910 as_cr_alnum=$as_cr_Letters$as_cr_digits
22912 # The user is always right.
22913 if test "${PATH_SEPARATOR+set}" != set; then
22914 echo "#! /bin/sh" >conf$$.sh
22915 echo "exit 0" >>conf$$.sh
22916 chmod +x conf$$.sh
22917 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22918 PATH_SEPARATOR=';'
22919 else
22920 PATH_SEPARATOR=:
22921 fi
22922 rm -f conf$$.sh
22923 fi
22925 # Support unset when possible.
22926 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22927 as_unset=unset
22928 else
22929 as_unset=false
22930 fi
22933 # IFS
22934 # We need space, tab and new line, in precisely that order. Quoting is
22935 # there to prevent editors from complaining about space-tab.
22936 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22937 # splitting by setting IFS to empty value.)
22938 as_nl='
22939 '
22940 IFS=" "" $as_nl"
22942 # Find who we are. Look in the path if we contain no directory separator.
22943 case $0 in
22944 *[\\/]* ) as_myself=$0 ;;
22945 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22946 for as_dir in $PATH
22947 do
22948 IFS=$as_save_IFS
22949 test -z "$as_dir" && as_dir=.
22950 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22951 done
22952 IFS=$as_save_IFS
22954 ;;
22955 esac
22956 # We did not find ourselves, most probably we were run as `sh COMMAND'
22957 # in which case we are not to be found in the path.
22958 if test "x$as_myself" = x; then
22959 as_myself=$0
22960 fi
22961 if test ! -f "$as_myself"; then
22962 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22963 { (exit 1); exit 1; }
22964 fi
22966 # Work around bugs in pre-3.0 UWIN ksh.
22967 for as_var in ENV MAIL MAILPATH
22968 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22969 done
22970 PS1='$ '
22971 PS2='> '
22972 PS4='+ '
22974 # NLS nuisances.
22975 for as_var in \
22976 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22977 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22978 LC_TELEPHONE LC_TIME
22979 do
22980 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22981 eval $as_var=C; export $as_var
22982 else
22983 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22984 fi
22985 done
22987 # Required to use basename.
22988 if expr a : '\(a\)' >/dev/null 2>&1 &&
22989 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22990 as_expr=expr
22991 else
22992 as_expr=false
22993 fi
22995 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22996 as_basename=basename
22997 else
22998 as_basename=false
22999 fi
23002 # Name of the executable.
23003 as_me=`$as_basename -- "$0" ||
23004 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23005 X"$0" : 'X\(//\)$' \| \
23006 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23007 echo X/"$0" |
23008 sed '/^.*\/\([^/][^/]*\)\/*$/{
23009 s//\1/
23010 q
23011 }
23012 /^X\/\(\/\/\)$/{
23013 s//\1/
23014 q
23015 }
23016 /^X\/\(\/\).*/{
23017 s//\1/
23018 q
23019 }
23020 s/.*/./; q'`
23022 # CDPATH.
23023 $as_unset CDPATH
23027 as_lineno_1=$LINENO
23028 as_lineno_2=$LINENO
23029 test "x$as_lineno_1" != "x$as_lineno_2" &&
23030 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23032 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23033 # uniformly replaced by the line number. The first 'sed' inserts a
23034 # line-number line after each line using $LINENO; the second 'sed'
23035 # does the real work. The second script uses 'N' to pair each
23036 # line-number line with the line containing $LINENO, and appends
23037 # trailing '-' during substitution so that $LINENO is not a special
23038 # case at line end.
23039 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23040 # scripts with optimization help from Paolo Bonzini. Blame Lee
23041 # E. McMahon (1931-1989) for sed's syntax. :-)
23042 sed -n '
23043 p
23044 /[$]LINENO/=
23045 ' <$as_myself |
23046 sed '
23047 s/[$]LINENO.*/&-/
23048 t lineno
23049 b
23050 :lineno
23051 N
23052 :loop
23053 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23054 t loop
23055 s/-\n.*//
23056 ' >$as_me.lineno &&
23057 chmod +x "$as_me.lineno" ||
23058 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23059 { (exit 1); exit 1; }; }
23061 # Don't try to exec as it changes $[0], causing all sort of problems
23062 # (the dirname of $[0] is not the place where we might find the
23063 # original and so on. Autoconf is especially sensitive to this).
23064 . "./$as_me.lineno"
23065 # Exit status is that of the last command.
23066 exit
23067 }
23070 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23071 as_dirname=dirname
23072 else
23073 as_dirname=false
23074 fi
23076 ECHO_C= ECHO_N= ECHO_T=
23077 case `echo -n x` in
23078 -n*)
23079 case `echo 'x\c'` in
23080 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23081 *) ECHO_C='\c';;
23082 esac;;
23083 *)
23084 ECHO_N='-n';;
23085 esac
23087 if expr a : '\(a\)' >/dev/null 2>&1 &&
23088 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23089 as_expr=expr
23090 else
23091 as_expr=false
23092 fi
23094 rm -f conf$$ conf$$.exe conf$$.file
23095 if test -d conf$$.dir; then
23096 rm -f conf$$.dir/conf$$.file
23097 else
23098 rm -f conf$$.dir
23099 mkdir conf$$.dir
23100 fi
23101 echo >conf$$.file
23102 if ln -s conf$$.file conf$$ 2>/dev/null; then
23103 as_ln_s='ln -s'
23104 # ... but there are two gotchas:
23105 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23106 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23107 # In both cases, we have to default to `cp -p'.
23108 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23109 as_ln_s='cp -p'
23110 elif ln conf$$.file conf$$ 2>/dev/null; then
23111 as_ln_s=ln
23112 else
23113 as_ln_s='cp -p'
23114 fi
23115 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23116 rmdir conf$$.dir 2>/dev/null
23118 if mkdir -p . 2>/dev/null; then
23119 as_mkdir_p=:
23120 else
23121 test -d ./-p && rmdir ./-p
23122 as_mkdir_p=false
23123 fi
23125 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
23126 # systems may use methods other than mode bits to determine executability.
23127 cat >conf$$.file <<_ASEOF
23128 #! /bin/sh
23129 exit 0
23130 _ASEOF
23131 chmod +x conf$$.file
23132 if test -x conf$$.file >/dev/null 2>&1; then
23133 as_executable_p="test -x"
23134 else
23135 as_executable_p=:
23136 fi
23137 rm -f conf$$.file
23139 # Sed expression to map a string onto a valid CPP name.
23140 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23142 # Sed expression to map a string onto a valid variable name.
23143 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23146 exec 6>&1
23148 # Save the log message, to keep $[0] and so on meaningful, and to
23149 # report actual input values of CONFIG_FILES etc. instead of their
23150 # values after options handling.
23151 ac_log="
23152 This file was extended by LLVM $as_me 3.4svn, which was
23153 generated by GNU Autoconf 2.60. Invocation command line was
23155 CONFIG_FILES = $CONFIG_FILES
23156 CONFIG_HEADERS = $CONFIG_HEADERS
23157 CONFIG_LINKS = $CONFIG_LINKS
23158 CONFIG_COMMANDS = $CONFIG_COMMANDS
23159 $ $0 $@
23161 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23162 "
23164 _ACEOF
23166 cat >>$CONFIG_STATUS <<_ACEOF
23167 # Files that config.status was made for.
23168 config_files="$ac_config_files"
23169 config_headers="$ac_config_headers"
23170 config_commands="$ac_config_commands"
23172 _ACEOF
23174 cat >>$CONFIG_STATUS <<\_ACEOF
23175 ac_cs_usage="\
23176 \`$as_me' instantiates files from templates according to the
23177 current configuration.
23179 Usage: $0 [OPTIONS] [FILE]...
23181 -h, --help print this help, then exit
23182 -V, --version print version number, then exit
23183 -q, --quiet do not print progress messages
23184 -d, --debug don't remove temporary files
23185 --recheck update $as_me by reconfiguring in the same conditions
23186 --file=FILE[:TEMPLATE]
23187 instantiate the configuration file FILE
23188 --header=FILE[:TEMPLATE]
23189 instantiate the configuration header FILE
23191 Configuration files:
23192 $config_files
23194 Configuration headers:
23195 $config_headers
23197 Configuration commands:
23198 $config_commands
23200 Report bugs to <bug-autoconf@gnu.org>."
23202 _ACEOF
23203 cat >>$CONFIG_STATUS <<_ACEOF
23204 ac_cs_version="\\
23205 LLVM config.status 3.4svn
23206 configured by $0, generated by GNU Autoconf 2.60,
23207 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23209 Copyright (C) 2006 Free Software Foundation, Inc.
23210 This config.status script is free software; the Free Software Foundation
23211 gives unlimited permission to copy, distribute and modify it."
23213 ac_pwd='$ac_pwd'
23214 srcdir='$srcdir'
23215 INSTALL='$INSTALL'
23216 _ACEOF
23218 cat >>$CONFIG_STATUS <<\_ACEOF
23219 # If no file are specified by the user, then we need to provide default
23220 # value. By we need to know if files were specified by the user.
23221 ac_need_defaults=:
23222 while test $# != 0
23223 do
23224 case $1 in
23225 --*=*)
23226 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23227 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23228 ac_shift=:
23229 ;;
23230 *)
23231 ac_option=$1
23232 ac_optarg=$2
23233 ac_shift=shift
23234 ;;
23235 esac
23237 case $ac_option in
23238 # Handling of the options.
23239 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23240 ac_cs_recheck=: ;;
23241 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23242 echo "$ac_cs_version"; exit ;;
23243 --debug | --debu | --deb | --de | --d | -d )
23244 debug=: ;;
23245 --file | --fil | --fi | --f )
23246 $ac_shift
23247 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23248 ac_need_defaults=false;;
23249 --header | --heade | --head | --hea )
23250 $ac_shift
23251 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23252 ac_need_defaults=false;;
23253 --he | --h)
23254 # Conflict between --help and --header
23255 { echo "$as_me: error: ambiguous option: $1
23256 Try \`$0 --help' for more information." >&2
23257 { (exit 1); exit 1; }; };;
23258 --help | --hel | -h )
23259 echo "$ac_cs_usage"; exit ;;
23260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23261 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23262 ac_cs_silent=: ;;
23264 # This is an error.
23265 -*) { echo "$as_me: error: unrecognized option: $1
23266 Try \`$0 --help' for more information." >&2
23267 { (exit 1); exit 1; }; } ;;
23269 *) ac_config_targets="$ac_config_targets $1"
23270 ac_need_defaults=false ;;
23272 esac
23273 shift
23274 done
23276 ac_configure_extra_args=
23278 if $ac_cs_silent; then
23279 exec 6>/dev/null
23280 ac_configure_extra_args="$ac_configure_extra_args --silent"
23281 fi
23283 _ACEOF
23284 cat >>$CONFIG_STATUS <<_ACEOF
23285 if \$ac_cs_recheck; then
23286 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23287 CONFIG_SHELL=$SHELL
23288 export CONFIG_SHELL
23289 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23290 fi
23292 _ACEOF
23293 cat >>$CONFIG_STATUS <<\_ACEOF
23294 exec 5>>config.log
23295 {
23296 echo
23297 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23298 ## Running $as_me. ##
23299 _ASBOX
23300 echo "$ac_log"
23301 } >&5
23303 _ACEOF
23304 cat >>$CONFIG_STATUS <<_ACEOF
23305 #
23306 # INIT-COMMANDS
23307 #
23308 llvm_src="${srcdir}"
23310 _ACEOF
23312 cat >>$CONFIG_STATUS <<\_ACEOF
23314 # Handling of arguments.
23315 for ac_config_target in $ac_config_targets
23316 do
23317 case $ac_config_target in
23318 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23319 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23320 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23321 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23322 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23323 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23324 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23325 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23326 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23327 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23328 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23329 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23330 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23331 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23332 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23333 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23334 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23335 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23336 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23337 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23338 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23339 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23340 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23341 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23342 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23343 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23344 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23346 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23347 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23348 { (exit 1); exit 1; }; };;
23349 esac
23350 done
23353 # If the user did not use the arguments to specify the items to instantiate,
23354 # then the envvar interface is used. Set only those that are not.
23355 # We use the long form for the default assignment because of an extremely
23356 # bizarre bug on SunOS 4.1.3.
23357 if $ac_need_defaults; then
23358 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23359 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23360 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23361 fi
23363 # Have a temporary directory for convenience. Make it in the build tree
23364 # simply because there is no reason against having it here, and in addition,
23365 # creating and moving files from /tmp can sometimes cause problems.
23366 # Hook for its removal unless debugging.
23367 # Note that there is a small window in which the directory will not be cleaned:
23368 # after its creation but before its name has been assigned to `$tmp'.
23369 $debug ||
23370 {
23371 tmp=
23372 trap 'exit_status=$?
23373 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23374 ' 0
23375 trap '{ (exit 1); exit 1; }' 1 2 13 15
23376 }
23377 # Create a (secure) tmp directory for tmp files.
23379 {
23380 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23381 test -n "$tmp" && test -d "$tmp"
23382 } ||
23383 {
23384 tmp=./conf$$-$RANDOM
23385 (umask 077 && mkdir "$tmp")
23386 } ||
23387 {
23388 echo "$me: cannot create a temporary directory in ." >&2
23389 { (exit 1); exit 1; }
23390 }
23392 #
23393 # Set up the sed scripts for CONFIG_FILES section.
23394 #
23396 # No need to generate the scripts if there are no CONFIG_FILES.
23397 # This happens for instance when ./config.status config.h
23398 if test -n "$CONFIG_FILES"; then
23400 _ACEOF
23404 ac_delim='%!_!# '
23405 for ac_last_try in false false false false false :; do
23406 cat >conf$$subs.sed <<_ACEOF
23407 SHELL!$SHELL$ac_delim
23408 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23409 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23410 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23411 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23412 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23413 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23414 exec_prefix!$exec_prefix$ac_delim
23415 prefix!$prefix$ac_delim
23416 program_transform_name!$program_transform_name$ac_delim
23417 bindir!$bindir$ac_delim
23418 sbindir!$sbindir$ac_delim
23419 libexecdir!$libexecdir$ac_delim
23420 datarootdir!$datarootdir$ac_delim
23421 datadir!$datadir$ac_delim
23422 sysconfdir!$sysconfdir$ac_delim
23423 sharedstatedir!$sharedstatedir$ac_delim
23424 localstatedir!$localstatedir$ac_delim
23425 includedir!$includedir$ac_delim
23426 oldincludedir!$oldincludedir$ac_delim
23427 docdir!$docdir$ac_delim
23428 infodir!$infodir$ac_delim
23429 htmldir!$htmldir$ac_delim
23430 dvidir!$dvidir$ac_delim
23431 pdfdir!$pdfdir$ac_delim
23432 psdir!$psdir$ac_delim
23433 libdir!$libdir$ac_delim
23434 localedir!$localedir$ac_delim
23435 mandir!$mandir$ac_delim
23436 DEFS!$DEFS$ac_delim
23437 ECHO_C!$ECHO_C$ac_delim
23438 ECHO_N!$ECHO_N$ac_delim
23439 ECHO_T!$ECHO_T$ac_delim
23440 LIBS!$LIBS$ac_delim
23441 build_alias!$build_alias$ac_delim
23442 host_alias!$host_alias$ac_delim
23443 target_alias!$target_alias$ac_delim
23444 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23445 CC!$CC$ac_delim
23446 CFLAGS!$CFLAGS$ac_delim
23447 LDFLAGS!$LDFLAGS$ac_delim
23448 CPPFLAGS!$CPPFLAGS$ac_delim
23449 ac_ct_CC!$ac_ct_CC$ac_delim
23450 EXEEXT!$EXEEXT$ac_delim
23451 OBJEXT!$OBJEXT$ac_delim
23452 CXX!$CXX$ac_delim
23453 CXXFLAGS!$CXXFLAGS$ac_delim
23454 ac_ct_CXX!$ac_ct_CXX$ac_delim
23455 CPP!$CPP$ac_delim
23456 subdirs!$subdirs$ac_delim
23457 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23458 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23459 build!$build$ac_delim
23460 build_cpu!$build_cpu$ac_delim
23461 build_vendor!$build_vendor$ac_delim
23462 build_os!$build_os$ac_delim
23463 host!$host$ac_delim
23464 host_cpu!$host_cpu$ac_delim
23465 host_vendor!$host_vendor$ac_delim
23466 host_os!$host_os$ac_delim
23467 target!$target$ac_delim
23468 target_cpu!$target_cpu$ac_delim
23469 target_vendor!$target_vendor$ac_delim
23470 target_os!$target_os$ac_delim
23471 OS!$OS$ac_delim
23472 HOST_OS!$HOST_OS$ac_delim
23473 TARGET_OS!$TARGET_OS$ac_delim
23474 LINKALL!$LINKALL$ac_delim
23475 NOLINKALL!$NOLINKALL$ac_delim
23476 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23477 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23478 ARCH!$ARCH$ac_delim
23479 HOST_ARCH!$HOST_ARCH$ac_delim
23480 ENDIAN!$ENDIAN$ac_delim
23481 GREP!$GREP$ac_delim
23482 EGREP!$EGREP$ac_delim
23483 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23484 BUILD_CC!$BUILD_CC$ac_delim
23485 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23486 BUILD_CXX!$BUILD_CXX$ac_delim
23487 CVSBUILD!$CVSBUILD$ac_delim
23488 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23489 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23490 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23491 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23492 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23493 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23494 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23495 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23496 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23497 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23498 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23499 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23500 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23501 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23502 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23503 JIT!$JIT$ac_delim
23504 _ACEOF
23506 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23507 break
23508 elif $ac_last_try; then
23509 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23510 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23511 { (exit 1); exit 1; }; }
23512 else
23513 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23514 fi
23515 done
23517 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23518 if test -n "$ac_eof"; then
23519 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23520 ac_eof=`expr $ac_eof + 1`
23521 fi
23523 cat >>$CONFIG_STATUS <<_ACEOF
23524 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23525 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23526 _ACEOF
23527 sed '
23528 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23529 s/^/s,@/; s/!/@,|#_!!_#|/
23530 :n
23531 t n
23532 s/'"$ac_delim"'$/,g/; t
23533 s/$/\\/; p
23534 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23535 ' >>$CONFIG_STATUS <conf$$subs.sed
23536 rm -f conf$$subs.sed
23537 cat >>$CONFIG_STATUS <<_ACEOF
23538 CEOF$ac_eof
23539 _ACEOF
23542 ac_delim='%!_!# '
23543 for ac_last_try in false false false false false :; do
23544 cat >conf$$subs.sed <<_ACEOF
23545 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23546 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23547 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23548 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23549 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23550 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23551 ENABLE_PIC!$ENABLE_PIC$ac_delim
23552 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23553 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23554 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23555 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
23556 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23557 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23558 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23559 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23560 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23561 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23562 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23563 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23564 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23565 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23566 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23567 NM!$NM$ac_delim
23568 ifGNUmake!$ifGNUmake$ac_delim
23569 LN_S!$LN_S$ac_delim
23570 CMP!$CMP$ac_delim
23571 CP!$CP$ac_delim
23572 DATE!$DATE$ac_delim
23573 FIND!$FIND$ac_delim
23574 MKDIR!$MKDIR$ac_delim
23575 MV!$MV$ac_delim
23576 RANLIB!$RANLIB$ac_delim
23577 AR!$AR$ac_delim
23578 RM!$RM$ac_delim
23579 SED!$SED$ac_delim
23580 TAR!$TAR$ac_delim
23581 BINPWD!$BINPWD$ac_delim
23582 GRAPHVIZ!$GRAPHVIZ$ac_delim
23583 DOT!$DOT$ac_delim
23584 FDP!$FDP$ac_delim
23585 NEATO!$NEATO$ac_delim
23586 TWOPI!$TWOPI$ac_delim
23587 CIRCO!$CIRCO$ac_delim
23588 GV!$GV$ac_delim
23589 DOTTY!$DOTTY$ac_delim
23590 XDOT!$XDOT$ac_delim
23591 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23592 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23593 INSTALL_DATA!$INSTALL_DATA$ac_delim
23594 BZIP2!$BZIP2$ac_delim
23595 CAT!$CAT$ac_delim
23596 DOXYGEN!$DOXYGEN$ac_delim
23597 GROFF!$GROFF$ac_delim
23598 GZIPBIN!$GZIPBIN$ac_delim
23599 PDFROFF!$PDFROFF$ac_delim
23600 ZIP!$ZIP$ac_delim
23601 OCAMLC!$OCAMLC$ac_delim
23602 OCAMLOPT!$OCAMLOPT$ac_delim
23603 OCAMLDEP!$OCAMLDEP$ac_delim
23604 OCAMLDOC!$OCAMLDOC$ac_delim
23605 GAS!$GAS$ac_delim
23606 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23607 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23608 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23609 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23610 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23611 LIBADD_DL!$LIBADD_DL$ac_delim
23612 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23613 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23614 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23615 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23616 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23617 PYTHON!$PYTHON$ac_delim
23618 USE_UDIS86!$USE_UDIS86$ac_delim
23619 USE_OPROFILE!$USE_OPROFILE$ac_delim
23620 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23621 XML2CONFIG!$XML2CONFIG$ac_delim
23622 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23623 LIBXML2_INC!$LIBXML2_INC$ac_delim
23624 CXXCPP!$CXXCPP$ac_delim
23625 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23626 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23627 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23628 MMAP_FILE!$MMAP_FILE$ac_delim
23629 SHLIBEXT!$SHLIBEXT$ac_delim
23630 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23631 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23632 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23633 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23634 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23635 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23636 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23637 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23638 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23639 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23640 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23641 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23642 _ACEOF
23644 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23645 break
23646 elif $ac_last_try; then
23647 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23648 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23649 { (exit 1); exit 1; }; }
23650 else
23651 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23652 fi
23653 done
23655 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23656 if test -n "$ac_eof"; then
23657 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23658 ac_eof=`expr $ac_eof + 1`
23659 fi
23661 cat >>$CONFIG_STATUS <<_ACEOF
23662 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23663 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23664 _ACEOF
23665 sed '
23666 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23667 s/^/s,@/; s/!/@,|#_!!_#|/
23668 :n
23669 t n
23670 s/'"$ac_delim"'$/,g/; t
23671 s/$/\\/; p
23672 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23673 ' >>$CONFIG_STATUS <conf$$subs.sed
23674 rm -f conf$$subs.sed
23675 cat >>$CONFIG_STATUS <<_ACEOF
23676 CEOF$ac_eof
23677 _ACEOF
23680 ac_delim='%!_!# '
23681 for ac_last_try in false false false false false :; do
23682 cat >conf$$subs.sed <<_ACEOF
23683 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23684 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23685 RPATH!$RPATH$ac_delim
23686 RDYNAMIC!$RDYNAMIC$ac_delim
23687 program_prefix!$program_prefix$ac_delim
23688 LIBOBJS!$LIBOBJS$ac_delim
23689 LTLIBOBJS!$LTLIBOBJS$ac_delim
23690 _ACEOF
23692 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
23693 break
23694 elif $ac_last_try; then
23695 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23696 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23697 { (exit 1); exit 1; }; }
23698 else
23699 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23700 fi
23701 done
23703 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23704 if test -n "$ac_eof"; then
23705 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23706 ac_eof=`expr $ac_eof + 1`
23707 fi
23709 cat >>$CONFIG_STATUS <<_ACEOF
23710 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23711 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23712 _ACEOF
23713 sed '
23714 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23715 s/^/s,@/; s/!/@,|#_!!_#|/
23716 :n
23717 t n
23718 s/'"$ac_delim"'$/,g/; t
23719 s/$/\\/; p
23720 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23721 ' >>$CONFIG_STATUS <conf$$subs.sed
23722 rm -f conf$$subs.sed
23723 cat >>$CONFIG_STATUS <<_ACEOF
23724 :end
23725 s/|#_!!_#|//g
23726 CEOF$ac_eof
23727 _ACEOF
23730 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23731 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23732 # trailing colons and then remove the whole line if VPATH becomes empty
23733 # (actually we leave an empty line to preserve line numbers).
23734 if test "x$srcdir" = x.; then
23735 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23736 s/:*\$(srcdir):*/:/
23737 s/:*\${srcdir}:*/:/
23738 s/:*@srcdir@:*/:/
23739 s/^\([^=]*=[ ]*\):*/\1/
23740 s/:*$//
23741 s/^[^=]*=[ ]*$//
23742 }'
23743 fi
23745 cat >>$CONFIG_STATUS <<\_ACEOF
23746 fi # test -n "$CONFIG_FILES"
23749 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23750 do
23751 case $ac_tag in
23752 :[FHLC]) ac_mode=$ac_tag; continue;;
23753 esac
23754 case $ac_mode$ac_tag in
23755 :[FHL]*:*);;
23756 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23757 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23758 { (exit 1); exit 1; }; };;
23759 :[FH]-) ac_tag=-:-;;
23760 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23761 esac
23762 ac_save_IFS=$IFS
23763 IFS=:
23764 set x $ac_tag
23765 IFS=$ac_save_IFS
23766 shift
23767 ac_file=$1
23768 shift
23770 case $ac_mode in
23771 :L) ac_source=$1;;
23772 :[FH])
23773 ac_file_inputs=
23774 for ac_f
23775 do
23776 case $ac_f in
23777 -) ac_f="$tmp/stdin";;
23778 *) # Look for the file first in the build tree, then in the source tree
23779 # (if the path is not absolute). The absolute path cannot be DOS-style,
23780 # because $ac_f cannot contain `:'.
23781 test -f "$ac_f" ||
23782 case $ac_f in
23783 [\\/$]*) false;;
23784 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23785 esac ||
23786 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23787 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23788 { (exit 1); exit 1; }; };;
23789 esac
23790 ac_file_inputs="$ac_file_inputs $ac_f"
23791 done
23793 # Let's still pretend it is `configure' which instantiates (i.e., don't
23794 # use $as_me), people would be surprised to read:
23795 # /* config.h. Generated by config.status. */
23796 configure_input="Generated from "`IFS=:
23797 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23798 if test x"$ac_file" != x-; then
23799 configure_input="$ac_file. $configure_input"
23800 { echo "$as_me:$LINENO: creating $ac_file" >&5
23801 echo "$as_me: creating $ac_file" >&6;}
23802 fi
23804 case $ac_tag in
23805 *:-:* | *:-) cat >"$tmp/stdin";;
23806 esac
23807 ;;
23808 esac
23810 ac_dir=`$as_dirname -- "$ac_file" ||
23811 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23812 X"$ac_file" : 'X\(//\)[^/]' \| \
23813 X"$ac_file" : 'X\(//\)$' \| \
23814 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23815 echo X"$ac_file" |
23816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23817 s//\1/
23818 q
23819 }
23820 /^X\(\/\/\)[^/].*/{
23821 s//\1/
23822 q
23823 }
23824 /^X\(\/\/\)$/{
23825 s//\1/
23826 q
23827 }
23828 /^X\(\/\).*/{
23829 s//\1/
23830 q
23831 }
23832 s/.*/./; q'`
23833 { as_dir="$ac_dir"
23834 case $as_dir in #(
23835 -*) as_dir=./$as_dir;;
23836 esac
23837 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23838 as_dirs=
23839 while :; do
23840 case $as_dir in #(
23841 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23842 *) as_qdir=$as_dir;;
23843 esac
23844 as_dirs="'$as_qdir' $as_dirs"
23845 as_dir=`$as_dirname -- "$as_dir" ||
23846 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23847 X"$as_dir" : 'X\(//\)[^/]' \| \
23848 X"$as_dir" : 'X\(//\)$' \| \
23849 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23850 echo X"$as_dir" |
23851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23852 s//\1/
23853 q
23854 }
23855 /^X\(\/\/\)[^/].*/{
23856 s//\1/
23857 q
23858 }
23859 /^X\(\/\/\)$/{
23860 s//\1/
23861 q
23862 }
23863 /^X\(\/\).*/{
23864 s//\1/
23865 q
23866 }
23867 s/.*/./; q'`
23868 test -d "$as_dir" && break
23869 done
23870 test -z "$as_dirs" || eval "mkdir $as_dirs"
23871 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23872 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23873 { (exit 1); exit 1; }; }; }
23874 ac_builddir=.
23876 case "$ac_dir" in
23877 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23878 *)
23879 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23880 # A ".." for each directory in $ac_dir_suffix.
23881 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23882 case $ac_top_builddir_sub in
23883 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23884 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23885 esac ;;
23886 esac
23887 ac_abs_top_builddir=$ac_pwd
23888 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23889 # for backward compatibility:
23890 ac_top_builddir=$ac_top_build_prefix
23892 case $srcdir in
23893 .) # We are building in place.
23894 ac_srcdir=.
23895 ac_top_srcdir=$ac_top_builddir_sub
23896 ac_abs_top_srcdir=$ac_pwd ;;
23897 [\\/]* | ?:[\\/]* ) # Absolute name.
23898 ac_srcdir=$srcdir$ac_dir_suffix;
23899 ac_top_srcdir=$srcdir
23900 ac_abs_top_srcdir=$srcdir ;;
23901 *) # Relative name.
23902 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23903 ac_top_srcdir=$ac_top_build_prefix$srcdir
23904 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23905 esac
23906 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23909 case $ac_mode in
23910 :F)
23911 #
23912 # CONFIG_FILE
23913 #
23915 case $INSTALL in
23916 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23917 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23918 esac
23919 _ACEOF
23921 cat >>$CONFIG_STATUS <<\_ACEOF
23922 # If the template does not know about datarootdir, expand it.
23923 # FIXME: This hack should be removed a few years after 2.60.
23924 ac_datarootdir_hack=; ac_datarootdir_seen=
23926 case `sed -n '/datarootdir/ {
23927 p
23928 q
23929 }
23930 /@datadir@/p
23931 /@docdir@/p
23932 /@infodir@/p
23933 /@localedir@/p
23934 /@mandir@/p
23935 ' $ac_file_inputs` in
23936 *datarootdir*) ac_datarootdir_seen=yes;;
23937 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23938 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23939 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23940 _ACEOF
23941 cat >>$CONFIG_STATUS <<_ACEOF
23942 ac_datarootdir_hack='
23943 s&@datadir@&$datadir&g
23944 s&@docdir@&$docdir&g
23945 s&@infodir@&$infodir&g
23946 s&@localedir@&$localedir&g
23947 s&@mandir@&$mandir&g
23948 s&\\\${datarootdir}&$datarootdir&g' ;;
23949 esac
23950 _ACEOF
23952 # Neutralize VPATH when `$srcdir' = `.'.
23953 # Shell code in configure.ac might set extrasub.
23954 # FIXME: do we really want to maintain this feature?
23955 cat >>$CONFIG_STATUS <<_ACEOF
23956 sed "$ac_vpsub
23957 $extrasub
23958 _ACEOF
23959 cat >>$CONFIG_STATUS <<\_ACEOF
23960 :t
23961 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23962 s&@configure_input@&$configure_input&;t t
23963 s&@top_builddir@&$ac_top_builddir_sub&;t t
23964 s&@srcdir@&$ac_srcdir&;t t
23965 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23966 s&@top_srcdir@&$ac_top_srcdir&;t t
23967 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23968 s&@builddir@&$ac_builddir&;t t
23969 s&@abs_builddir@&$ac_abs_builddir&;t t
23970 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23971 s&@INSTALL@&$ac_INSTALL&;t t
23972 $ac_datarootdir_hack
23973 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23975 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23976 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23977 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23978 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23979 which seems to be undefined. Please make sure it is defined." >&5
23980 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23981 which seems to be undefined. Please make sure it is defined." >&2;}
23983 rm -f "$tmp/stdin"
23984 case $ac_file in
23985 -) cat "$tmp/out"; rm -f "$tmp/out";;
23986 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23987 esac
23988 ;;
23989 :H)
23990 #
23991 # CONFIG_HEADER
23992 #
23993 _ACEOF
23995 # Transform confdefs.h into a sed script `conftest.defines', that
23996 # substitutes the proper values into config.h.in to produce config.h.
23997 rm -f conftest.defines conftest.tail
23998 # First, append a space to every undef/define line, to ease matching.
23999 echo 's/$/ /' >conftest.defines
24000 # Then, protect against being on the right side of a sed subst, or in
24001 # an unquoted here document, in config.status. If some macros were
24002 # called several times there might be several #defines for the same
24003 # symbol, which is useless. But do not sort them, since the last
24004 # AC_DEFINE must be honored.
24005 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24006 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24007 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24008 # PARAMS is the parameter list in the macro definition--in most cases, it's
24009 # just an empty string.
24010 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24011 ac_dB='\\)[ (].*,\\1define\\2'
24012 ac_dC=' '
24013 ac_dD=' ,'
24015 uniq confdefs.h |
24016 sed -n '
24017 t rset
24018 :rset
24019 s/^[ ]*#[ ]*define[ ][ ]*//
24020 t ok
24021 d
24022 :ok
24023 s/[\\&,]/\\&/g
24024 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24025 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24026 ' >>conftest.defines
24028 # Remove the space that was appended to ease matching.
24029 # Then replace #undef with comments. This is necessary, for
24030 # example, in the case of _POSIX_SOURCE, which is predefined and required
24031 # on some systems where configure will not decide to define it.
24032 # (The regexp can be short, since the line contains either #define or #undef.)
24033 echo 's/ $//
24034 s,^[ #]*u.*,/* & */,' >>conftest.defines
24036 # Break up conftest.defines:
24037 ac_max_sed_lines=50
24039 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24040 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24041 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24042 # et cetera.
24043 ac_in='$ac_file_inputs'
24044 ac_out='"$tmp/out1"'
24045 ac_nxt='"$tmp/out2"'
24047 while :
24048 do
24049 # Write a here document:
24050 cat >>$CONFIG_STATUS <<_ACEOF
24051 # First, check the format of the line:
24052 cat >"\$tmp/defines.sed" <<\\CEOF
24053 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24054 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24055 b
24056 :def
24057 _ACEOF
24058 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24059 echo 'CEOF
24060 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24061 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24062 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24063 grep . conftest.tail >/dev/null || break
24064 rm -f conftest.defines
24065 mv conftest.tail conftest.defines
24066 done
24067 rm -f conftest.defines conftest.tail
24069 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24070 cat >>$CONFIG_STATUS <<\_ACEOF
24071 if test x"$ac_file" != x-; then
24072 echo "/* $configure_input */" >"$tmp/config.h"
24073 cat "$ac_result" >>"$tmp/config.h"
24074 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24075 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24076 echo "$as_me: $ac_file is unchanged" >&6;}
24077 else
24078 rm -f $ac_file
24079 mv "$tmp/config.h" $ac_file
24080 fi
24081 else
24082 echo "/* $configure_input */"
24083 cat "$ac_result"
24084 fi
24085 rm -f "$tmp/out12"
24086 ;;
24088 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24089 echo "$as_me: executing $ac_file commands" >&6;}
24090 ;;
24091 esac
24094 case $ac_file$ac_mode in
24095 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
24096 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
24097 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
24098 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
24099 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
24100 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
24101 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
24102 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
24103 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24104 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24105 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
24106 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
24107 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24108 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24109 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
24110 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
24111 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
24112 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
24113 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
24114 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
24115 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
24116 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
24117 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
24118 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24119 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24120 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24122 esac
24123 done # for ac_tag
24126 { (exit 0); exit 0; }
24127 _ACEOF
24128 chmod +x $CONFIG_STATUS
24129 ac_clean_files=$ac_clean_files_save
24132 # configure is writing to config.log, and then calls config.status.
24133 # config.status does its own redirection, appending to config.log.
24134 # Unfortunately, on DOS this fails, as config.log is still kept open
24135 # by configure, so config.status won't be able to write to it; its
24136 # output is simply discarded. So we exec the FD to /dev/null,
24137 # effectively closing config.log, so it can be properly (re)opened and
24138 # appended to by config.status. When coming back to configure, we
24139 # need to make the FD available again.
24140 if test "$no_create" != yes; then
24141 ac_cs_success=:
24142 ac_config_status_args=
24143 test "$silent" = yes &&
24144 ac_config_status_args="$ac_config_status_args --quiet"
24145 exec 5>/dev/null
24146 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24147 exec 5>>config.log
24148 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24149 # would make configure fail if this is the last instruction.
24150 $ac_cs_success || { (exit 1); exit 1; }
24151 fi
24153 #
24154 # CONFIG_SUBDIRS section.
24155 #
24156 if test "$no_recursion" != yes; then
24158 # Remove --cache-file and --srcdir arguments so they do not pile up.
24159 ac_sub_configure_args=
24160 ac_prev=
24161 eval "set x $ac_configure_args"
24162 shift
24163 for ac_arg
24164 do
24165 if test -n "$ac_prev"; then
24166 ac_prev=
24167 continue
24168 fi
24169 case $ac_arg in
24170 -cache-file | --cache-file | --cache-fil | --cache-fi \
24171 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24172 ac_prev=cache_file ;;
24173 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24174 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24175 | --c=*)
24176 ;;
24177 --config-cache | -C)
24178 ;;
24179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24180 ac_prev=srcdir ;;
24181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24182 ;;
24183 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24184 ac_prev=prefix ;;
24185 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24186 ;;
24187 *)
24188 case $ac_arg in
24189 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24190 esac
24191 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24192 esac
24193 done
24195 # Always prepend --prefix to ensure using the same prefix
24196 # in subdir configurations.
24197 ac_arg="--prefix=$prefix"
24198 case $ac_arg in
24199 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24200 esac
24201 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24203 ac_popdir=`pwd`
24204 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24206 # Do not complain, so a configure script can configure whichever
24207 # parts of a large source tree are present.
24208 test -d "$srcdir/$ac_dir" || continue
24210 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24211 echo "$as_me:$LINENO: $ac_msg" >&5
24212 echo "$ac_msg" >&6
24213 { as_dir="$ac_dir"
24214 case $as_dir in #(
24215 -*) as_dir=./$as_dir;;
24216 esac
24217 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24218 as_dirs=
24219 while :; do
24220 case $as_dir in #(
24221 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24222 *) as_qdir=$as_dir;;
24223 esac
24224 as_dirs="'$as_qdir' $as_dirs"
24225 as_dir=`$as_dirname -- "$as_dir" ||
24226 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24227 X"$as_dir" : 'X\(//\)[^/]' \| \
24228 X"$as_dir" : 'X\(//\)$' \| \
24229 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24230 echo X"$as_dir" |
24231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24232 s//\1/
24233 q
24234 }
24235 /^X\(\/\/\)[^/].*/{
24236 s//\1/
24237 q
24238 }
24239 /^X\(\/\/\)$/{
24240 s//\1/
24241 q
24242 }
24243 /^X\(\/\).*/{
24244 s//\1/
24245 q
24246 }
24247 s/.*/./; q'`
24248 test -d "$as_dir" && break
24249 done
24250 test -z "$as_dirs" || eval "mkdir $as_dirs"
24251 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24252 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24253 { (exit 1); exit 1; }; }; }
24254 ac_builddir=.
24256 case "$ac_dir" in
24257 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24258 *)
24259 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24260 # A ".." for each directory in $ac_dir_suffix.
24261 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24262 case $ac_top_builddir_sub in
24263 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24264 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24265 esac ;;
24266 esac
24267 ac_abs_top_builddir=$ac_pwd
24268 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24269 # for backward compatibility:
24270 ac_top_builddir=$ac_top_build_prefix
24272 case $srcdir in
24273 .) # We are building in place.
24274 ac_srcdir=.
24275 ac_top_srcdir=$ac_top_builddir_sub
24276 ac_abs_top_srcdir=$ac_pwd ;;
24277 [\\/]* | ?:[\\/]* ) # Absolute name.
24278 ac_srcdir=$srcdir$ac_dir_suffix;
24279 ac_top_srcdir=$srcdir
24280 ac_abs_top_srcdir=$srcdir ;;
24281 *) # Relative name.
24282 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24283 ac_top_srcdir=$ac_top_build_prefix$srcdir
24284 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24285 esac
24286 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24289 cd "$ac_dir"
24291 # Check for guested configure; otherwise get Cygnus style configure.
24292 if test -f "$ac_srcdir/configure.gnu"; then
24293 ac_sub_configure=$ac_srcdir/configure.gnu
24294 elif test -f "$ac_srcdir/configure"; then
24295 ac_sub_configure=$ac_srcdir/configure
24296 elif test -f "$ac_srcdir/configure.in"; then
24297 # This should be Cygnus configure.
24298 ac_sub_configure=$ac_aux_dir/configure
24299 else
24300 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24301 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24302 ac_sub_configure=
24303 fi
24305 # The recursion is here.
24306 if test -n "$ac_sub_configure"; then
24307 # Make the cache file name correct relative to the subdirectory.
24308 case $cache_file in
24309 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24310 *) # Relative name.
24311 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24312 esac
24314 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24315 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24316 # The eval makes quoting arguments work.
24317 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24318 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24319 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24320 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24321 { (exit 1); exit 1; }; }
24322 fi
24324 cd "$ac_popdir"
24325 done
24326 fi