More llvmc bits. Spotted by Benjamin on IRC.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 3.0svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
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-2011 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
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
30
31
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
39
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
52
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
59
60
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"
69
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
81
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
93
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='+ '
101
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
114
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
122
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
128
129
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'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
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
160
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 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
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
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
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
234
235
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
253
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
273
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 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
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
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
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; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
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
347
348
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
356
357
358 fi
359
360 fi
361
362
363
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 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
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
411
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 }
418
419
420
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" || {
425
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; }; }
454
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 }
462
463
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
469
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
480
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
487
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
511
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
518
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
532
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'"
535
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'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
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`
547
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}
560
561 # Identity of this package.
562 PACKAGE_NAME='llvm'
563 PACKAGE_TARNAME='-llvm-'
564 PACKAGE_VERSION='3.0svn'
565 PACKAGE_STRING='llvm 3.0svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
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 ENDIAN
678 GREP
679 EGREP
680 LLVM_CROSS_COMPILING
681 BUILD_CC
682 BUILD_EXEEXT
683 BUILD_CXX
684 CVSBUILD
685 ENABLE_OPTIMIZED
686 ENABLE_PROFILING
687 DISABLE_ASSERTIONS
688 ENABLE_EXPENSIVE_CHECKS
689 EXPENSIVE_CHECKS
690 DEBUG_RUNTIME
691 DEBUG_SYMBOLS
692 JIT
693 TARGET_HAS_JIT
694 ENABLE_DOCS
695 ENABLE_DOXYGEN
696 ENABLE_THREADS
697 ENABLE_PTHREADS
698 ENABLE_PIC
699 ENABLE_SHARED
700 ENABLE_EMBED_STDCXX
701 ENABLE_TIMESTAMPS
702 TARGETS_TO_BUILD
703 LLVM_ENUM_TARGETS
704 LLVM_ENUM_ASM_PRINTERS
705 LLVM_ENUM_ASM_PARSERS
706 LLVM_ENUM_DISASSEMBLERS
707 ENABLE_CBE_PRINTF_A
708 CLANGPATH
709 CLANGXXPATH
710 ENABLE_BUILT_CLANG
711 OPTIMIZE_OPTION
712 EXTRA_OPTIONS
713 EXTRA_LD_OPTIONS
714 BINUTILS_INCDIR
715 NM
716 ifGNUmake
717 LN_S
718 CMP
719 CP
720 DATE
721 FIND
722 MKDIR
723 MV
724 RANLIB
725 AR
726 RM
727 SED
728 TAR
729 BINPWD
730 GRAPHVIZ
731 DOT
732 FDP
733 NEATO
734 TWOPI
735 CIRCO
736 GV
737 DOTTY
738 XDOT_PY
739 PERL
740 HAVE_PERL
741 INSTALL_PROGRAM
742 INSTALL_SCRIPT
743 INSTALL_DATA
744 BZIP2
745 CAT
746 DOXYGEN
747 GROFF
748 GZIPBIN
749 POD2HTML
750 POD2MAN
751 PDFROFF
752 RUNTEST
753 TCLSH
754 ZIP
755 OCAMLC
756 OCAMLOPT
757 OCAMLDEP
758 OCAMLDOC
759 GAS
760 HAVE_LINK_VERSION_SCRIPT
761 INSTALL_LTDL_TRUE
762 INSTALL_LTDL_FALSE
763 CONVENIENCE_LTDL_TRUE
764 CONVENIENCE_LTDL_FALSE
765 LIBADD_DL
766 LLVMGCCCOMMAND
767 LLVMGXXCOMMAND
768 LLVMGCC
769 LLVMGXX
770 LLVMCC_OPTION
771 NO_VARIADIC_MACROS
772 NO_MISSING_FIELD_INITIALIZERS
773 USE_UDIS86
774 USE_OPROFILE
775 HAVE_PTHREAD
776 HUGE_VAL_SANITY
777 MMAP_FILE
778 LLVMCC_EMITIR_FLAG
779 LLVMCC1
780 LLVMCC1PLUS
781 LLVMGCCDIR
782 LLVMGCC_LANGS
783 LLVMGCC_DRAGONEGG
784 LLVMCC_DISABLEOPT_FLAGS
785 SHLIBEXT
786 SHLIBPATH_VAR
787 LLVM_PREFIX
788 LLVM_BINDIR
789 LLVM_LIBDIR
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 LIBOBJS
804 LTLIBOBJS'
805 ac_subst_files=''
806       ac_precious_vars='build_alias
807 host_alias
808 target_alias
809 CC
810 CFLAGS
811 LDFLAGS
812 CPPFLAGS
813 CXX
814 CXXFLAGS
815 CCC
816 CPP'
817 ac_subdirs_all='projects/llvm-gcc
818 projects/test-suite
819 projects/llvm-test
820 projects/poolalloc
821 projects/llvm-poolalloc
822 projects/sample
823 projects/privbracket
824 projects/llvm-stacker
825 projects/llvm-reopt
826 projects/llvm-java
827 projects/llvm-tv
828 projects/safecode
829 projects/llvm-kernel
830 tools/polly'
831
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
837 cache_file=/dev/null
838 exec_prefix=NONE
839 no_create=
840 no_recursion=
841 prefix=NONE
842 program_prefix=NONE
843 program_suffix=NONE
844 program_transform_name=s,x,x,
845 silent=
846 site=
847 srcdir=
848 verbose=
849 x_includes=NONE
850 x_libraries=NONE
851
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 includedir='${prefix}/include'
867 oldincludedir='/usr/include'
868 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869 infodir='${datarootdir}/info'
870 htmldir='${docdir}'
871 dvidir='${docdir}'
872 pdfdir='${docdir}'
873 psdir='${docdir}'
874 libdir='${exec_prefix}/lib'
875 localedir='${datarootdir}/locale'
876 mandir='${datarootdir}/man'
877
878 ac_prev=
879 ac_dashdash=
880 for ac_option
881 do
882   # If the previous option needs an argument, assign it.
883   if test -n "$ac_prev"; then
884     eval $ac_prev=\$ac_option
885     ac_prev=
886     continue
887   fi
888
889   case $ac_option in
890   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891   *)    ac_optarg=yes ;;
892   esac
893
894   # Accept the important Cygnus configure options, so we can diagnose typos.
895
896   case $ac_dashdash$ac_option in
897   --)
898     ac_dashdash=yes ;;
899
900   -bindir | --bindir | --bindi | --bind | --bin | --bi)
901     ac_prev=bindir ;;
902   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903     bindir=$ac_optarg ;;
904
905   -build | --build | --buil | --bui | --bu)
906     ac_prev=build_alias ;;
907   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908     build_alias=$ac_optarg ;;
909
910   -cache-file | --cache-file | --cache-fil | --cache-fi \
911   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912     ac_prev=cache_file ;;
913   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915     cache_file=$ac_optarg ;;
916
917   --config-cache | -C)
918     cache_file=config.cache ;;
919
920   -datadir | --datadir | --datadi | --datad)
921     ac_prev=datadir ;;
922   -datadir=* | --datadir=* | --datadi=* | --datad=*)
923     datadir=$ac_optarg ;;
924
925   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926   | --dataroo | --dataro | --datar)
927     ac_prev=datarootdir ;;
928   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930     datarootdir=$ac_optarg ;;
931
932   -disable-* | --disable-*)
933     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934     # Reject names that are not valid shell variable names.
935     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
936       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937    { (exit 1); exit 1; }; }
938     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
939     eval enable_$ac_feature=no ;;
940
941   -docdir | --docdir | --docdi | --doc | --do)
942     ac_prev=docdir ;;
943   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944     docdir=$ac_optarg ;;
945
946   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947     ac_prev=dvidir ;;
948   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949     dvidir=$ac_optarg ;;
950
951   -enable-* | --enable-*)
952     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953     # Reject names that are not valid shell variable names.
954     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
955       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956    { (exit 1); exit 1; }; }
957     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
958     eval enable_$ac_feature=\$ac_optarg ;;
959
960   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962   | --exec | --exe | --ex)
963     ac_prev=exec_prefix ;;
964   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966   | --exec=* | --exe=* | --ex=*)
967     exec_prefix=$ac_optarg ;;
968
969   -gas | --gas | --ga | --g)
970     # Obsolete; use --with-gas.
971     with_gas=yes ;;
972
973   -help | --help | --hel | --he | -h)
974     ac_init_help=long ;;
975   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976     ac_init_help=recursive ;;
977   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978     ac_init_help=short ;;
979
980   -host | --host | --hos | --ho)
981     ac_prev=host_alias ;;
982   -host=* | --host=* | --hos=* | --ho=*)
983     host_alias=$ac_optarg ;;
984
985   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986     ac_prev=htmldir ;;
987   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988   | --ht=*)
989     htmldir=$ac_optarg ;;
990
991   -includedir | --includedir | --includedi | --included | --include \
992   | --includ | --inclu | --incl | --inc)
993     ac_prev=includedir ;;
994   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995   | --includ=* | --inclu=* | --incl=* | --inc=*)
996     includedir=$ac_optarg ;;
997
998   -infodir | --infodir | --infodi | --infod | --info | --inf)
999     ac_prev=infodir ;;
1000   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001     infodir=$ac_optarg ;;
1002
1003   -libdir | --libdir | --libdi | --libd)
1004     ac_prev=libdir ;;
1005   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006     libdir=$ac_optarg ;;
1007
1008   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009   | --libexe | --libex | --libe)
1010     ac_prev=libexecdir ;;
1011   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012   | --libexe=* | --libex=* | --libe=*)
1013     libexecdir=$ac_optarg ;;
1014
1015   -localedir | --localedir | --localedi | --localed | --locale)
1016     ac_prev=localedir ;;
1017   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018     localedir=$ac_optarg ;;
1019
1020   -localstatedir | --localstatedir | --localstatedi | --localstated \
1021   | --localstate | --localstat | --localsta | --localst | --locals)
1022     ac_prev=localstatedir ;;
1023   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025     localstatedir=$ac_optarg ;;
1026
1027   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028     ac_prev=mandir ;;
1029   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030     mandir=$ac_optarg ;;
1031
1032   -nfp | --nfp | --nf)
1033     # Obsolete; use --without-fp.
1034     with_fp=no ;;
1035
1036   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037   | --no-cr | --no-c | -n)
1038     no_create=yes ;;
1039
1040   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042     no_recursion=yes ;;
1043
1044   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046   | --oldin | --oldi | --old | --ol | --o)
1047     ac_prev=oldincludedir ;;
1048   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051     oldincludedir=$ac_optarg ;;
1052
1053   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054     ac_prev=prefix ;;
1055   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056     prefix=$ac_optarg ;;
1057
1058   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059   | --program-pre | --program-pr | --program-p)
1060     ac_prev=program_prefix ;;
1061   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063     program_prefix=$ac_optarg ;;
1064
1065   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066   | --program-suf | --program-su | --program-s)
1067     ac_prev=program_suffix ;;
1068   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070     program_suffix=$ac_optarg ;;
1071
1072   -program-transform-name | --program-transform-name \
1073   | --program-transform-nam | --program-transform-na \
1074   | --program-transform-n | --program-transform- \
1075   | --program-transform | --program-transfor \
1076   | --program-transfo | --program-transf \
1077   | --program-trans | --program-tran \
1078   | --progr-tra | --program-tr | --program-t)
1079     ac_prev=program_transform_name ;;
1080   -program-transform-name=* | --program-transform-name=* \
1081   | --program-transform-nam=* | --program-transform-na=* \
1082   | --program-transform-n=* | --program-transform-=* \
1083   | --program-transform=* | --program-transfor=* \
1084   | --program-transfo=* | --program-transf=* \
1085   | --program-trans=* | --program-tran=* \
1086   | --progr-tra=* | --program-tr=* | --program-t=*)
1087     program_transform_name=$ac_optarg ;;
1088
1089   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090     ac_prev=pdfdir ;;
1091   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092     pdfdir=$ac_optarg ;;
1093
1094   -psdir | --psdir | --psdi | --psd | --ps)
1095     ac_prev=psdir ;;
1096   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097     psdir=$ac_optarg ;;
1098
1099   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100   | -silent | --silent | --silen | --sile | --sil)
1101     silent=yes ;;
1102
1103   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104     ac_prev=sbindir ;;
1105   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106   | --sbi=* | --sb=*)
1107     sbindir=$ac_optarg ;;
1108
1109   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111   | --sharedst | --shareds | --shared | --share | --shar \
1112   | --sha | --sh)
1113     ac_prev=sharedstatedir ;;
1114   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117   | --sha=* | --sh=*)
1118     sharedstatedir=$ac_optarg ;;
1119
1120   -site | --site | --sit)
1121     ac_prev=site ;;
1122   -site=* | --site=* | --sit=*)
1123     site=$ac_optarg ;;
1124
1125   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126     ac_prev=srcdir ;;
1127   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128     srcdir=$ac_optarg ;;
1129
1130   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131   | --syscon | --sysco | --sysc | --sys | --sy)
1132     ac_prev=sysconfdir ;;
1133   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135     sysconfdir=$ac_optarg ;;
1136
1137   -target | --target | --targe | --targ | --tar | --ta | --t)
1138     ac_prev=target_alias ;;
1139   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140     target_alias=$ac_optarg ;;
1141
1142   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143     verbose=yes ;;
1144
1145   -version | --version | --versio | --versi | --vers | -V)
1146     ac_init_version=: ;;
1147
1148   -with-* | --with-*)
1149     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150     # Reject names that are not valid shell variable names.
1151     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152       { echo "$as_me: error: invalid package name: $ac_package" >&2
1153    { (exit 1); exit 1; }; }
1154     ac_package=`echo $ac_package| sed 's/-/_/g'`
1155     eval with_$ac_package=\$ac_optarg ;;
1156
1157   -without-* | --without-*)
1158     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159     # Reject names that are not valid shell variable names.
1160     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1161       { echo "$as_me: error: invalid package name: $ac_package" >&2
1162    { (exit 1); exit 1; }; }
1163     ac_package=`echo $ac_package | sed 's/-/_/g'`
1164     eval with_$ac_package=no ;;
1165
1166   --x)
1167     # Obsolete; use --with-x.
1168     with_x=yes ;;
1169
1170   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171   | --x-incl | --x-inc | --x-in | --x-i)
1172     ac_prev=x_includes ;;
1173   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175     x_includes=$ac_optarg ;;
1176
1177   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179     ac_prev=x_libraries ;;
1180   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182     x_libraries=$ac_optarg ;;
1183
1184   -*) { echo "$as_me: error: unrecognized option: $ac_option
1185 Try \`$0 --help' for more information." >&2
1186    { (exit 1); exit 1; }; }
1187     ;;
1188
1189   *=*)
1190     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191     # Reject names that are not valid shell variable names.
1192     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1193       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194    { (exit 1); exit 1; }; }
1195     eval $ac_envvar=\$ac_optarg
1196     export $ac_envvar ;;
1197
1198   *)
1199     # FIXME: should be removed in autoconf 3.0.
1200     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1204     ;;
1205
1206   esac
1207 done
1208
1209 if test -n "$ac_prev"; then
1210   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211   { echo "$as_me: error: missing argument to $ac_option" >&2
1212    { (exit 1); exit 1; }; }
1213 fi
1214
1215 # Be sure to have absolute directory names.
1216 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217                 datadir sysconfdir sharedstatedir localstatedir includedir \
1218                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219                 libdir localedir mandir
1220 do
1221   eval ac_val=\$$ac_var
1222   case $ac_val in
1223     [\\/$]* | ?:[\\/]* )  continue;;
1224     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225   esac
1226   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227    { (exit 1); exit 1; }; }
1228 done
1229
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1233 build=$build_alias
1234 host=$host_alias
1235 target=$target_alias
1236
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239   if test "x$build_alias" = x; then
1240     cross_compiling=maybe
1241     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1242     If a cross compiler is detected then cross compile mode will be used." >&2
1243   elif test "x$build_alias" != "x$host_alias"; then
1244     cross_compiling=yes
1245   fi
1246 fi
1247
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251 test "$silent" = yes && exec 6>/dev/null
1252
1253
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257   { echo "$as_me: error: Working directory cannot be determined" >&2
1258    { (exit 1); exit 1; }; }
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260   { echo "$as_me: error: pwd does not report name of working directory" >&2
1261    { (exit 1); exit 1; }; }
1262
1263
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266   ac_srcdir_defaulted=yes
1267   # Try the directory containing this script, then the parent directory.
1268   ac_confdir=`$as_dirname -- "$0" ||
1269 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270          X"$0" : 'X\(//\)[^/]' \| \
1271          X"$0" : 'X\(//\)$' \| \
1272          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1273 echo X"$0" |
1274     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275             s//\1/
1276             q
1277           }
1278           /^X\(\/\/\)[^/].*/{
1279             s//\1/
1280             q
1281           }
1282           /^X\(\/\/\)$/{
1283             s//\1/
1284             q
1285           }
1286           /^X\(\/\).*/{
1287             s//\1/
1288             q
1289           }
1290           s/.*/./; q'`
1291   srcdir=$ac_confdir
1292   if test ! -r "$srcdir/$ac_unique_file"; then
1293     srcdir=..
1294   fi
1295 else
1296   ac_srcdir_defaulted=no
1297 fi
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301    { (exit 1); exit 1; }; }
1302 fi
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 ac_abs_confdir=`(
1305         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306    { (exit 1); exit 1; }; }
1307         pwd)`
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310   srcdir=.
1311 fi
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1315 case $srcdir in
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 esac
1318 for ac_var in $ac_precious_vars; do
1319   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320   eval ac_env_${ac_var}_value=\$${ac_var}
1321   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 done
1324
1325 #
1326 # Report the --help message.
1327 #
1328 if test "$ac_init_help" = "long"; then
1329   # Omit some internal or obsolete options to make the list less imposing.
1330   # This message is too long to be a string in the A/UX 3.1 sh.
1331   cat <<_ACEOF
1332 \`configure' configures llvm 3.0svn to adapt to many kinds of systems.
1333
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1335
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE.  See below for descriptions of some of the useful variables.
1338
1339 Defaults for the options are specified in brackets.
1340
1341 Configuration:
1342   -h, --help              display this help and exit
1343       --help=short        display options specific to this package
1344       --help=recursive    display the short help of all the included packages
1345   -V, --version           display version information and exit
1346   -q, --quiet, --silent   do not print \`checking...' messages
1347       --cache-file=FILE   cache test results in FILE [disabled]
1348   -C, --config-cache      alias for \`--cache-file=config.cache'
1349   -n, --no-create         do not create output files
1350       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1351
1352 Installation directories:
1353   --prefix=PREFIX         install architecture-independent files in PREFIX
1354                           [$ac_default_prefix]
1355   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1356                           [PREFIX]
1357
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1362
1363 For better control, use the options below.
1364
1365 Fine tuning of the installation directories:
1366   --bindir=DIR           user executables [EPREFIX/bin]
1367   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1368   --libexecdir=DIR       program executables [EPREFIX/libexec]
1369   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1370   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1371   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1372   --libdir=DIR           object code libraries [EPREFIX/lib]
1373   --includedir=DIR       C header files [PREFIX/include]
1374   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1375   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1376   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1377   --infodir=DIR          info documentation [DATAROOTDIR/info]
1378   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1379   --mandir=DIR           man documentation [DATAROOTDIR/man]
1380   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1381   --htmldir=DIR          html documentation [DOCDIR]
1382   --dvidir=DIR           dvi documentation [DOCDIR]
1383   --pdfdir=DIR           pdf documentation [DOCDIR]
1384   --psdir=DIR            ps documentation [DOCDIR]
1385 _ACEOF
1386
1387   cat <<\_ACEOF
1388
1389 System types:
1390   --build=BUILD     configure for building on BUILD [guessed]
1391   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1392   --target=TARGET   configure for building compilers for TARGET [HOST]
1393 _ACEOF
1394 fi
1395
1396 if test -n "$ac_init_help"; then
1397   case $ac_init_help in
1398      short | recursive ) echo "Configuration of llvm 3.0svn:";;
1399    esac
1400   cat <<\_ACEOF
1401
1402 Optional Features:
1403   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1404   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1405   --enable-polly          Use polly if available (default is YES)
1406   --enable-optimized      Compile with optimizations enabled (default is NO)
1407   --enable-profiling      Compile with profiling enabled (default is NO)
1408   --enable-assertions     Compile with assertion checks enabled (default is
1409                           YES)
1410   --enable-expensive-checks
1411                           Compile with expensive debug checks enabled (default
1412                           is NO)
1413   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1414                           NO)
1415   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1416                           optimization is on and YES if it's off)
1417   --enable-jit            Enable Just In Time Compiling (default is YES)
1418   --enable-docs           Build documents (default is YES)
1419   --enable-doxygen        Build doxygen documentation (default is NO)
1420   --enable-threads        Use threads if available (default is YES)
1421   --enable-pthreads       Use pthreads if available (default is YES)
1422   --enable-pic            Build LLVM with Position Independent Code (default
1423                           is YES)
1424   --enable-shared         Build a shared library and link tools against it
1425                           (default is NO)
1426   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1427                           Win32 DLL (default is YES)
1428   --enable-timestamps     Enable embedding timestamp information in build
1429                           (default is YES)
1430   --enable-targets        Build specific host targets: all or
1431                           target1,target2,... Valid targets are: host, x86,
1432                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1433                           xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1434                           (default=all)
1435   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1436                           %a (default is YES)
1437   --enable-bindings       Build specific language bindings:
1438                           all,auto,none,{binding-name} (default=auto)
1439   --enable-libffi         Check for the presence of libffi (default is NO)
1440   --enable-ltdl-install   install libltdl
1441
1442 Optional Packages:
1443   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1444   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1445   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1446                           searches PATH)
1447   --with-llvmgcc          Specify location of llvm-gcc driver (default
1448                           searches PATH)
1449   --with-llvmgxx          Specify location of llvm-g++ driver (default
1450                           searches PATH)
1451   --with-clang            Specify location of clang compiler (default is
1452                           --with-built-clang)
1453   --with-built-clang      Use the compiled Clang as the LLVM compiler
1454                           (default=check)
1455   --with-optimize-option  Select the compiler options to use for optimized
1456                           builds
1457   --with-extra-options    Specify additional options to compile LLVM with
1458   --with-extra-ld-options Specify additional options to link LLVM with
1459   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1460                           is stdlib)
1461   --with-clang-resource-dir
1462                           Relative directory from the Clang binary for
1463                           resource files
1464   --with-c-include-dirs   Colon separated list of directories clang will
1465                           search for headers
1466   --with-cxx-include-root Directory with the libstdc++ headers.
1467   --with-cxx-include-arch Architecture of the libstdc++ headers.
1468   --with-cxx-include-32bit-dir
1469                           32 bit multilib dir.
1470   --with-cxx-include-64bit-dir
1471                           64 bit multilib directory.
1472   --with-binutils-include Specify path to binutils/include/ containing
1473                           plugin-api.h file for gold plugin.
1474   --with-bug-report-url   Specify the URL where bug reports should be
1475                           submitted (default=http://llvm.org/bugs/)
1476   --with-tclinclude       directory where tcl headers are
1477   --with-llvmcc=<name>    Choose the LLVM capable compiler to use (llvm-gcc,
1478                           clang, or none; default=check)
1479   --with-udis86=<path>    Use udis86 external x86 disassembler library
1480   --with-oprofile=<prefix>
1481                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1482
1483 Some influential environment variables:
1484   CC          C compiler command
1485   CFLAGS      C compiler flags
1486   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1487               nonstandard directory <lib dir>
1488   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1489               you have headers in a nonstandard directory <include dir>
1490   CXX         C++ compiler command
1491   CXXFLAGS    C++ compiler flags
1492   CPP         C preprocessor
1493
1494 Use these variables to override the choices made by `configure' or to help
1495 it to find libraries and programs with nonstandard names/locations.
1496
1497 Report bugs to <llvmbugs@cs.uiuc.edu>.
1498 _ACEOF
1499 ac_status=$?
1500 fi
1501
1502 if test "$ac_init_help" = "recursive"; then
1503   # If there are subdirs, report their specific --help.
1504   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505     test -d "$ac_dir" || continue
1506     ac_builddir=.
1507
1508 case "$ac_dir" in
1509 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510 *)
1511   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1512   # A ".." for each directory in $ac_dir_suffix.
1513   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1514   case $ac_top_builddir_sub in
1515   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517   esac ;;
1518 esac
1519 ac_abs_top_builddir=$ac_pwd
1520 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1521 # for backward compatibility:
1522 ac_top_builddir=$ac_top_build_prefix
1523
1524 case $srcdir in
1525   .)  # We are building in place.
1526     ac_srcdir=.
1527     ac_top_srcdir=$ac_top_builddir_sub
1528     ac_abs_top_srcdir=$ac_pwd ;;
1529   [\\/]* | ?:[\\/]* )  # Absolute name.
1530     ac_srcdir=$srcdir$ac_dir_suffix;
1531     ac_top_srcdir=$srcdir
1532     ac_abs_top_srcdir=$srcdir ;;
1533   *) # Relative name.
1534     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1535     ac_top_srcdir=$ac_top_build_prefix$srcdir
1536     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1537 esac
1538 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1539
1540     cd "$ac_dir" || { ac_status=$?; continue; }
1541     # Check for guested configure.
1542     if test -f "$ac_srcdir/configure.gnu"; then
1543       echo &&
1544       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1545     elif test -f "$ac_srcdir/configure"; then
1546       echo &&
1547       $SHELL "$ac_srcdir/configure" --help=recursive
1548     else
1549       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1550     fi || ac_status=$?
1551     cd "$ac_pwd" || { ac_status=$?; break; }
1552   done
1553 fi
1554
1555 test -n "$ac_init_help" && exit $ac_status
1556 if $ac_init_version; then
1557   cat <<\_ACEOF
1558 llvm configure 3.0svn
1559 generated by GNU Autoconf 2.60
1560
1561 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1562 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1563 This configure script is free software; the Free Software Foundation
1564 gives unlimited permission to copy, distribute and modify it.
1565
1566 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1567 _ACEOF
1568   exit
1569 fi
1570 cat >config.log <<_ACEOF
1571 This file contains any messages produced by compilers while
1572 running configure, to aid debugging if configure makes a mistake.
1573
1574 It was created by llvm $as_me 3.0svn, which was
1575 generated by GNU Autoconf 2.60.  Invocation command line was
1576
1577   $ $0 $@
1578
1579 _ACEOF
1580 exec 5>>config.log
1581 {
1582 cat <<_ASUNAME
1583 ## --------- ##
1584 ## Platform. ##
1585 ## --------- ##
1586
1587 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1588 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1589 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1590 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1591 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1592
1593 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1594 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1595
1596 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1597 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1598 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1599 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1600 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1601 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1602 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1603
1604 _ASUNAME
1605
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1608 do
1609   IFS=$as_save_IFS
1610   test -z "$as_dir" && as_dir=.
1611   echo "PATH: $as_dir"
1612 done
1613 IFS=$as_save_IFS
1614
1615 } >&5
1616
1617 cat >&5 <<_ACEOF
1618
1619
1620 ## ----------- ##
1621 ## Core tests. ##
1622 ## ----------- ##
1623
1624 _ACEOF
1625
1626
1627 # Keep a trace of the command line.
1628 # Strip out --no-create and --no-recursion so they do not pile up.
1629 # Strip out --silent because we don't want to record it for future runs.
1630 # Also quote any args containing shell meta-characters.
1631 # Make two passes to allow for proper duplicate-argument suppression.
1632 ac_configure_args=
1633 ac_configure_args0=
1634 ac_configure_args1=
1635 ac_must_keep_next=false
1636 for ac_pass in 1 2
1637 do
1638   for ac_arg
1639   do
1640     case $ac_arg in
1641     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1642     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1643     | -silent | --silent | --silen | --sile | --sil)
1644       continue ;;
1645     *\'*)
1646       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1647     esac
1648     case $ac_pass in
1649     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1650     2)
1651       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1652       if test $ac_must_keep_next = true; then
1653         ac_must_keep_next=false # Got value, back to normal.
1654       else
1655         case $ac_arg in
1656           *=* | --config-cache | -C | -disable-* | --disable-* \
1657           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1658           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1659           | -with-* | --with-* | -without-* | --without-* | --x)
1660             case "$ac_configure_args0 " in
1661               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1662             esac
1663             ;;
1664           -* ) ac_must_keep_next=true ;;
1665         esac
1666       fi
1667       ac_configure_args="$ac_configure_args '$ac_arg'"
1668       ;;
1669     esac
1670   done
1671 done
1672 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1673 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1674
1675 # When interrupted or exit'd, cleanup temporary files, and complete
1676 # config.log.  We remove comments because anyway the quotes in there
1677 # would cause problems or look ugly.
1678 # WARNING: Use '\'' to represent an apostrophe within the trap.
1679 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1680 trap 'exit_status=$?
1681   # Save into config.log some information that might help in debugging.
1682   {
1683     echo
1684
1685     cat <<\_ASBOX
1686 ## ---------------- ##
1687 ## Cache variables. ##
1688 ## ---------------- ##
1689 _ASBOX
1690     echo
1691     # The following way of writing the cache mishandles newlines in values,
1692 (
1693   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1694     eval ac_val=\$$ac_var
1695     case $ac_val in #(
1696     *${as_nl}*)
1697       case $ac_var in #(
1698       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1699 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1700       esac
1701       case $ac_var in #(
1702       _ | IFS | as_nl) ;; #(
1703       *) $as_unset $ac_var ;;
1704       esac ;;
1705     esac
1706   done
1707   (set) 2>&1 |
1708     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1709     *${as_nl}ac_space=\ *)
1710       sed -n \
1711         "s/'\''/'\''\\\\'\'''\''/g;
1712           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1713       ;; #(
1714     *)
1715       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1716       ;;
1717     esac |
1718     sort
1719 )
1720     echo
1721
1722     cat <<\_ASBOX
1723 ## ----------------- ##
1724 ## Output variables. ##
1725 ## ----------------- ##
1726 _ASBOX
1727     echo
1728     for ac_var in $ac_subst_vars
1729     do
1730       eval ac_val=\$$ac_var
1731       case $ac_val in
1732       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1733       esac
1734       echo "$ac_var='\''$ac_val'\''"
1735     done | sort
1736     echo
1737
1738     if test -n "$ac_subst_files"; then
1739       cat <<\_ASBOX
1740 ## ------------------- ##
1741 ## File substitutions. ##
1742 ## ------------------- ##
1743 _ASBOX
1744       echo
1745       for ac_var in $ac_subst_files
1746       do
1747         eval ac_val=\$$ac_var
1748         case $ac_val in
1749         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1750         esac
1751         echo "$ac_var='\''$ac_val'\''"
1752       done | sort
1753       echo
1754     fi
1755
1756     if test -s confdefs.h; then
1757       cat <<\_ASBOX
1758 ## ----------- ##
1759 ## confdefs.h. ##
1760 ## ----------- ##
1761 _ASBOX
1762       echo
1763       cat confdefs.h
1764       echo
1765     fi
1766     test "$ac_signal" != 0 &&
1767       echo "$as_me: caught signal $ac_signal"
1768     echo "$as_me: exit $exit_status"
1769   } >&5
1770   rm -f core *.core core.conftest.* &&
1771     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1772     exit $exit_status
1773 ' 0
1774 for ac_signal in 1 2 13 15; do
1775   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1776 done
1777 ac_signal=0
1778
1779 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1780 rm -f -r conftest* confdefs.h
1781
1782 # Predefined preprocessor variables.
1783
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_NAME "$PACKAGE_NAME"
1786 _ACEOF
1787
1788
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1791 _ACEOF
1792
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1796 _ACEOF
1797
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_STRING "$PACKAGE_STRING"
1801 _ACEOF
1802
1803
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1806 _ACEOF
1807
1808
1809 # Let the site file select an alternate cache file if it wants to.
1810 # Prefer explicitly selected file to automatically selected ones.
1811 if test -n "$CONFIG_SITE"; then
1812   set x "$CONFIG_SITE"
1813 elif test "x$prefix" != xNONE; then
1814   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1815 else
1816   set x "$ac_default_prefix/share/config.site" \
1817         "$ac_default_prefix/etc/config.site"
1818 fi
1819 shift
1820 for ac_site_file
1821 do
1822   if test -r "$ac_site_file"; then
1823     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1824 echo "$as_me: loading site script $ac_site_file" >&6;}
1825     sed 's/^/| /' "$ac_site_file" >&5
1826     . "$ac_site_file"
1827   fi
1828 done
1829
1830 if test -r "$cache_file"; then
1831   # Some versions of bash will fail to source /dev/null (special
1832   # files actually), so we avoid doing that.
1833   if test -f "$cache_file"; then
1834     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1835 echo "$as_me: loading cache $cache_file" >&6;}
1836     case $cache_file in
1837       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1838       *)                      . "./$cache_file";;
1839     esac
1840   fi
1841 else
1842   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1843 echo "$as_me: creating cache $cache_file" >&6;}
1844   >$cache_file
1845 fi
1846
1847 # Check that the precious variables saved in the cache have kept the same
1848 # value.
1849 ac_cache_corrupted=false
1850 for ac_var in $ac_precious_vars; do
1851   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1852   eval ac_new_set=\$ac_env_${ac_var}_set
1853   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1854   eval ac_new_val=\$ac_env_${ac_var}_value
1855   case $ac_old_set,$ac_new_set in
1856     set,)
1857       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1858 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1859       ac_cache_corrupted=: ;;
1860     ,set)
1861       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1863       ac_cache_corrupted=: ;;
1864     ,);;
1865     *)
1866       if test "x$ac_old_val" != "x$ac_new_val"; then
1867         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1868 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1869         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1870 echo "$as_me:   former value:  $ac_old_val" >&2;}
1871         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1872 echo "$as_me:   current value: $ac_new_val" >&2;}
1873         ac_cache_corrupted=:
1874       fi;;
1875   esac
1876   # Pass precious variables to config.status.
1877   if test "$ac_new_set" = set; then
1878     case $ac_new_val in
1879     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1880     *) ac_arg=$ac_var=$ac_new_val ;;
1881     esac
1882     case " $ac_configure_args " in
1883       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1884       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1885     esac
1886   fi
1887 done
1888 if $ac_cache_corrupted; then
1889   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1890 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1891   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1892 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1893    { (exit 1); exit 1; }; }
1894 fi
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920 ac_ext=c
1921 ac_cpp='$CPP $CPPFLAGS'
1922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1925
1926
1927
1928 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1929
1930
1931
1932
1933
1934
1935
1936 ac_aux_dir=
1937 for ac_dir in autoconf "$srcdir"/autoconf; do
1938   if test -f "$ac_dir/install-sh"; then
1939     ac_aux_dir=$ac_dir
1940     ac_install_sh="$ac_aux_dir/install-sh -c"
1941     break
1942   elif test -f "$ac_dir/install.sh"; then
1943     ac_aux_dir=$ac_dir
1944     ac_install_sh="$ac_aux_dir/install.sh -c"
1945     break
1946   elif test -f "$ac_dir/shtool"; then
1947     ac_aux_dir=$ac_dir
1948     ac_install_sh="$ac_aux_dir/shtool install -c"
1949     break
1950   fi
1951 done
1952 if test -z "$ac_aux_dir"; then
1953   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1954 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1955    { (exit 1); exit 1; }; }
1956 fi
1957
1958 # These three variables are undocumented and unsupported,
1959 # and are intended to be withdrawn in a future Autoconf release.
1960 # They can cause serious problems if a builder's source tree is in a directory
1961 # whose full name contains unusual characters.
1962 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1963 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1964 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1965
1966
1967
1968 if test ${srcdir} != "." ; then
1969   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1970     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1971 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1972    { (exit 1); exit 1; }; }
1973   fi
1974 fi
1975
1976 ac_ext=c
1977 ac_cpp='$CPP $CPPFLAGS'
1978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1981 if test -n "$ac_tool_prefix"; then
1982   for ac_prog in clang llvm-gcc gcc
1983   do
1984     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1988 if test "${ac_cv_prog_CC+set}" = set; then
1989   echo $ECHO_N "(cached) $ECHO_C" >&6
1990 else
1991   if test -n "$CC"; then
1992   ac_cv_prog_CC="$CC" # Let the user override the test.
1993 else
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 for as_dir in $PATH
1996 do
1997   IFS=$as_save_IFS
1998   test -z "$as_dir" && as_dir=.
1999   for ac_exec_ext in '' $ac_executable_extensions; do
2000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2001     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003     break 2
2004   fi
2005 done
2006 done
2007 IFS=$as_save_IFS
2008
2009 fi
2010 fi
2011 CC=$ac_cv_prog_CC
2012 if test -n "$CC"; then
2013   { echo "$as_me:$LINENO: result: $CC" >&5
2014 echo "${ECHO_T}$CC" >&6; }
2015 else
2016   { echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6; }
2018 fi
2019
2020
2021     test -n "$CC" && break
2022   done
2023 fi
2024 if test -z "$CC"; then
2025   ac_ct_CC=$CC
2026   for ac_prog in clang llvm-gcc gcc
2027 do
2028   # Extract the first word of "$ac_prog", so it can be a program name with args.
2029 set dummy $ac_prog; ac_word=$2
2030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2033   echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035   if test -n "$ac_ct_CC"; then
2036   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2037 else
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 for as_dir in $PATH
2040 do
2041   IFS=$as_save_IFS
2042   test -z "$as_dir" && as_dir=.
2043   for ac_exec_ext in '' $ac_executable_extensions; do
2044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2045     ac_cv_prog_ac_ct_CC="$ac_prog"
2046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047     break 2
2048   fi
2049 done
2050 done
2051 IFS=$as_save_IFS
2052
2053 fi
2054 fi
2055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2056 if test -n "$ac_ct_CC"; then
2057   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2058 echo "${ECHO_T}$ac_ct_CC" >&6; }
2059 else
2060   { echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6; }
2062 fi
2063
2064
2065   test -n "$ac_ct_CC" && break
2066 done
2067
2068   if test "x$ac_ct_CC" = x; then
2069     CC=""
2070   else
2071     case $cross_compiling:$ac_tool_warned in
2072 yes:)
2073 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2074 whose name does not start with the host triplet.  If you think this
2075 configuration is useful to you, please write to autoconf@gnu.org." >&5
2076 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2077 whose name does not start with the host triplet.  If you think this
2078 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2079 ac_tool_warned=yes ;;
2080 esac
2081     CC=$ac_ct_CC
2082   fi
2083 fi
2084
2085
2086 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2087 See \`config.log' for more details." >&5
2088 echo "$as_me: error: no acceptable C compiler found in \$PATH
2089 See \`config.log' for more details." >&2;}
2090    { (exit 1); exit 1; }; }
2091
2092 # Provide some information about the compiler.
2093 echo "$as_me:$LINENO: checking for C compiler version" >&5
2094 ac_compiler=`set X $ac_compile; echo $2`
2095 { (ac_try="$ac_compiler --version >&5"
2096 case "(($ac_try" in
2097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098   *) ac_try_echo=$ac_try;;
2099 esac
2100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2101   (eval "$ac_compiler --version >&5") 2>&5
2102   ac_status=$?
2103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104   (exit $ac_status); }
2105 { (ac_try="$ac_compiler -v >&5"
2106 case "(($ac_try" in
2107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108   *) ac_try_echo=$ac_try;;
2109 esac
2110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2111   (eval "$ac_compiler -v >&5") 2>&5
2112   ac_status=$?
2113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114   (exit $ac_status); }
2115 { (ac_try="$ac_compiler -V >&5"
2116 case "(($ac_try" in
2117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118   *) ac_try_echo=$ac_try;;
2119 esac
2120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2121   (eval "$ac_compiler -V >&5") 2>&5
2122   ac_status=$?
2123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124   (exit $ac_status); }
2125
2126 cat >conftest.$ac_ext <<_ACEOF
2127 /* confdefs.h.  */
2128 _ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h.  */
2132
2133 int
2134 main ()
2135 {
2136
2137   ;
2138   return 0;
2139 }
2140 _ACEOF
2141 ac_clean_files_save=$ac_clean_files
2142 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2143 # Try to create an executable without -o first, disregard a.out.
2144 # It will help us diagnose broken compilers, and finding out an intuition
2145 # of exeext.
2146 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2147 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2148 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2149 #
2150 # List of possible output files, starting from the most likely.
2151 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2152 # only as a last resort.  b.out is created by i960 compilers.
2153 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2154 #
2155 # The IRIX 6 linker writes into existing files which may not be
2156 # executable, retaining their permissions.  Remove them first so a
2157 # subsequent execution test works.
2158 ac_rmfiles=
2159 for ac_file in $ac_files
2160 do
2161   case $ac_file in
2162     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2163     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2164   esac
2165 done
2166 rm -f $ac_rmfiles
2167
2168 if { (ac_try="$ac_link_default"
2169 case "(($ac_try" in
2170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171   *) ac_try_echo=$ac_try;;
2172 esac
2173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2174   (eval "$ac_link_default") 2>&5
2175   ac_status=$?
2176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177   (exit $ac_status); }; then
2178   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2179 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2180 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2181 # so that the user can short-circuit this test for compilers unknown to
2182 # Autoconf.
2183 for ac_file in $ac_files
2184 do
2185   test -f "$ac_file" || continue
2186   case $ac_file in
2187     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2188         ;;
2189     [ab].out )
2190         # We found the default executable, but exeext='' is most
2191         # certainly right.
2192         break;;
2193     *.* )
2194         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2195         then :; else
2196            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2197         fi
2198         # We set ac_cv_exeext here because the later test for it is not
2199         # safe: cross compilers may not add the suffix if given an `-o'
2200         # argument, so we may need to know it at that point already.
2201         # Even if this section looks crufty: it has the advantage of
2202         # actually working.
2203         break;;
2204     * )
2205         break;;
2206   esac
2207 done
2208 test "$ac_cv_exeext" = no && ac_cv_exeext=
2209
2210 else
2211   echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2213
2214 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: C compiler cannot create executables
2217 See \`config.log' for more details." >&2;}
2218    { (exit 77); exit 77; }; }
2219 fi
2220
2221 ac_exeext=$ac_cv_exeext
2222 { echo "$as_me:$LINENO: result: $ac_file" >&5
2223 echo "${ECHO_T}$ac_file" >&6; }
2224
2225 # Check that the compiler produces executables we can run.  If not, either
2226 # the compiler is broken, or we cross compile.
2227 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2228 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2229 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2230 # If not cross compiling, check that we can run a simple program.
2231 if test "$cross_compiling" != yes; then
2232   if { ac_try='./$ac_file'
2233   { (case "(($ac_try" in
2234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2235   *) ac_try_echo=$ac_try;;
2236 esac
2237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2238   (eval "$ac_try") 2>&5
2239   ac_status=$?
2240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241   (exit $ac_status); }; }; then
2242     cross_compiling=no
2243   else
2244     if test "$cross_compiling" = maybe; then
2245         cross_compiling=yes
2246     else
2247         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2248 If you meant to cross compile, use \`--host'.
2249 See \`config.log' for more details." >&5
2250 echo "$as_me: error: cannot run C compiled programs.
2251 If you meant to cross compile, use \`--host'.
2252 See \`config.log' for more details." >&2;}
2253    { (exit 1); exit 1; }; }
2254     fi
2255   fi
2256 fi
2257 { echo "$as_me:$LINENO: result: yes" >&5
2258 echo "${ECHO_T}yes" >&6; }
2259
2260 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2261 ac_clean_files=$ac_clean_files_save
2262 # Check that the compiler produces executables we can run.  If not, either
2263 # the compiler is broken, or we cross compile.
2264 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2265 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2266 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2267 echo "${ECHO_T}$cross_compiling" >&6; }
2268
2269 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2270 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2271 if { (ac_try="$ac_link"
2272 case "(($ac_try" in
2273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274   *) ac_try_echo=$ac_try;;
2275 esac
2276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2277   (eval "$ac_link") 2>&5
2278   ac_status=$?
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); }; then
2281   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2282 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2283 # work properly (i.e., refer to `conftest.exe'), while it won't with
2284 # `rm'.
2285 for ac_file in conftest.exe conftest conftest.*; do
2286   test -f "$ac_file" || continue
2287   case $ac_file in
2288     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2289     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2290           break;;
2291     * ) break;;
2292   esac
2293 done
2294 else
2295   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2296 See \`config.log' for more details." >&5
2297 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2298 See \`config.log' for more details." >&2;}
2299    { (exit 1); exit 1; }; }
2300 fi
2301
2302 rm -f conftest$ac_cv_exeext
2303 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2304 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2305
2306 rm -f conftest.$ac_ext
2307 EXEEXT=$ac_cv_exeext
2308 ac_exeext=$EXEEXT
2309 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2310 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2311 if test "${ac_cv_objext+set}" = set; then
2312   echo $ECHO_N "(cached) $ECHO_C" >&6
2313 else
2314   cat >conftest.$ac_ext <<_ACEOF
2315 /* confdefs.h.  */
2316 _ACEOF
2317 cat confdefs.h >>conftest.$ac_ext
2318 cat >>conftest.$ac_ext <<_ACEOF
2319 /* end confdefs.h.  */
2320
2321 int
2322 main ()
2323 {
2324
2325   ;
2326   return 0;
2327 }
2328 _ACEOF
2329 rm -f conftest.o conftest.obj
2330 if { (ac_try="$ac_compile"
2331 case "(($ac_try" in
2332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2333   *) ac_try_echo=$ac_try;;
2334 esac
2335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2336   (eval "$ac_compile") 2>&5
2337   ac_status=$?
2338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339   (exit $ac_status); }; then
2340   for ac_file in conftest.o conftest.obj conftest.*; do
2341   test -f "$ac_file" || continue;
2342   case $ac_file in
2343     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2344     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2345        break;;
2346   esac
2347 done
2348 else
2349   echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2351
2352 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2353 See \`config.log' for more details." >&5
2354 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2355 See \`config.log' for more details." >&2;}
2356    { (exit 1); exit 1; }; }
2357 fi
2358
2359 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2360 fi
2361 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2362 echo "${ECHO_T}$ac_cv_objext" >&6; }
2363 OBJEXT=$ac_cv_objext
2364 ac_objext=$OBJEXT
2365 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2366 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2367 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2368   echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370   cat >conftest.$ac_ext <<_ACEOF
2371 /* confdefs.h.  */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h.  */
2376
2377 int
2378 main ()
2379 {
2380 #ifndef __GNUC__
2381        choke me
2382 #endif
2383
2384   ;
2385   return 0;
2386 }
2387 _ACEOF
2388 rm -f conftest.$ac_objext
2389 if { (ac_try="$ac_compile"
2390 case "(($ac_try" in
2391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392   *) ac_try_echo=$ac_try;;
2393 esac
2394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2395   (eval "$ac_compile") 2>conftest.er1
2396   ac_status=$?
2397   grep -v '^ *+' conftest.er1 >conftest.err
2398   rm -f conftest.er1
2399   cat conftest.err >&5
2400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401   (exit $ac_status); } &&
2402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2403   { (case "(($ac_try" in
2404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405   *) ac_try_echo=$ac_try;;
2406 esac
2407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408   (eval "$ac_try") 2>&5
2409   ac_status=$?
2410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411   (exit $ac_status); }; } &&
2412          { ac_try='test -s conftest.$ac_objext'
2413   { (case "(($ac_try" in
2414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415   *) ac_try_echo=$ac_try;;
2416 esac
2417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2418   (eval "$ac_try") 2>&5
2419   ac_status=$?
2420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); }; }; then
2422   ac_compiler_gnu=yes
2423 else
2424   echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2426
2427         ac_compiler_gnu=no
2428 fi
2429
2430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2431 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2432
2433 fi
2434 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2435 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2436 GCC=`test $ac_compiler_gnu = yes && echo yes`
2437 ac_test_CFLAGS=${CFLAGS+set}
2438 ac_save_CFLAGS=$CFLAGS
2439 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2440 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2441 if test "${ac_cv_prog_cc_g+set}" = set; then
2442   echo $ECHO_N "(cached) $ECHO_C" >&6
2443 else
2444   ac_save_c_werror_flag=$ac_c_werror_flag
2445    ac_c_werror_flag=yes
2446    ac_cv_prog_cc_g=no
2447    CFLAGS="-g"
2448    cat >conftest.$ac_ext <<_ACEOF
2449 /* confdefs.h.  */
2450 _ACEOF
2451 cat confdefs.h >>conftest.$ac_ext
2452 cat >>conftest.$ac_ext <<_ACEOF
2453 /* end confdefs.h.  */
2454
2455 int
2456 main ()
2457 {
2458
2459   ;
2460   return 0;
2461 }
2462 _ACEOF
2463 rm -f conftest.$ac_objext
2464 if { (ac_try="$ac_compile"
2465 case "(($ac_try" in
2466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467   *) ac_try_echo=$ac_try;;
2468 esac
2469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2470   (eval "$ac_compile") 2>conftest.er1
2471   ac_status=$?
2472   grep -v '^ *+' conftest.er1 >conftest.err
2473   rm -f conftest.er1
2474   cat conftest.err >&5
2475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476   (exit $ac_status); } &&
2477          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2478   { (case "(($ac_try" in
2479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480   *) ac_try_echo=$ac_try;;
2481 esac
2482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483   (eval "$ac_try") 2>&5
2484   ac_status=$?
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); }; } &&
2487          { ac_try='test -s conftest.$ac_objext'
2488   { (case "(($ac_try" in
2489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490   *) ac_try_echo=$ac_try;;
2491 esac
2492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493   (eval "$ac_try") 2>&5
2494   ac_status=$?
2495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496   (exit $ac_status); }; }; then
2497   ac_cv_prog_cc_g=yes
2498 else
2499   echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.$ac_ext >&5
2501
2502         CFLAGS=""
2503       cat >conftest.$ac_ext <<_ACEOF
2504 /* confdefs.h.  */
2505 _ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h.  */
2509
2510 int
2511 main ()
2512 {
2513
2514   ;
2515   return 0;
2516 }
2517 _ACEOF
2518 rm -f conftest.$ac_objext
2519 if { (ac_try="$ac_compile"
2520 case "(($ac_try" in
2521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522   *) ac_try_echo=$ac_try;;
2523 esac
2524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2525   (eval "$ac_compile") 2>conftest.er1
2526   ac_status=$?
2527   grep -v '^ *+' conftest.er1 >conftest.err
2528   rm -f conftest.er1
2529   cat conftest.err >&5
2530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531   (exit $ac_status); } &&
2532          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2533   { (case "(($ac_try" in
2534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535   *) ac_try_echo=$ac_try;;
2536 esac
2537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538   (eval "$ac_try") 2>&5
2539   ac_status=$?
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); }; } &&
2542          { ac_try='test -s conftest.$ac_objext'
2543   { (case "(($ac_try" in
2544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545   *) ac_try_echo=$ac_try;;
2546 esac
2547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2548   (eval "$ac_try") 2>&5
2549   ac_status=$?
2550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551   (exit $ac_status); }; }; then
2552   :
2553 else
2554   echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2556
2557         ac_c_werror_flag=$ac_save_c_werror_flag
2558          CFLAGS="-g"
2559          cat >conftest.$ac_ext <<_ACEOF
2560 /* confdefs.h.  */
2561 _ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h.  */
2565
2566 int
2567 main ()
2568 {
2569
2570   ;
2571   return 0;
2572 }
2573 _ACEOF
2574 rm -f conftest.$ac_objext
2575 if { (ac_try="$ac_compile"
2576 case "(($ac_try" in
2577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578   *) ac_try_echo=$ac_try;;
2579 esac
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581   (eval "$ac_compile") 2>conftest.er1
2582   ac_status=$?
2583   grep -v '^ *+' conftest.er1 >conftest.err
2584   rm -f conftest.er1
2585   cat conftest.err >&5
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); } &&
2588          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2589   { (case "(($ac_try" in
2590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591   *) ac_try_echo=$ac_try;;
2592 esac
2593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594   (eval "$ac_try") 2>&5
2595   ac_status=$?
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); }; } &&
2598          { ac_try='test -s conftest.$ac_objext'
2599   { (case "(($ac_try" in
2600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601   *) ac_try_echo=$ac_try;;
2602 esac
2603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2604   (eval "$ac_try") 2>&5
2605   ac_status=$?
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); }; }; then
2608   ac_cv_prog_cc_g=yes
2609 else
2610   echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2612
2613
2614 fi
2615
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 fi
2618
2619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620 fi
2621
2622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623    ac_c_werror_flag=$ac_save_c_werror_flag
2624 fi
2625 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2626 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2627 if test "$ac_test_CFLAGS" = set; then
2628   CFLAGS=$ac_save_CFLAGS
2629 elif test $ac_cv_prog_cc_g = yes; then
2630   if test "$GCC" = yes; then
2631     CFLAGS="-g -O2"
2632   else
2633     CFLAGS="-g"
2634   fi
2635 else
2636   if test "$GCC" = yes; then
2637     CFLAGS="-O2"
2638   else
2639     CFLAGS=
2640   fi
2641 fi
2642 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2643 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2644 if test "${ac_cv_prog_cc_c89+set}" = set; then
2645   echo $ECHO_N "(cached) $ECHO_C" >&6
2646 else
2647   ac_cv_prog_cc_c89=no
2648 ac_save_CC=$CC
2649 cat >conftest.$ac_ext <<_ACEOF
2650 /* confdefs.h.  */
2651 _ACEOF
2652 cat confdefs.h >>conftest.$ac_ext
2653 cat >>conftest.$ac_ext <<_ACEOF
2654 /* end confdefs.h.  */
2655 #include <stdarg.h>
2656 #include <stdio.h>
2657 #include <sys/types.h>
2658 #include <sys/stat.h>
2659 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2660 struct buf { int x; };
2661 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2662 static char *e (p, i)
2663      char **p;
2664      int i;
2665 {
2666   return p[i];
2667 }
2668 static char *f (char * (*g) (char **, int), char **p, ...)
2669 {
2670   char *s;
2671   va_list v;
2672   va_start (v,p);
2673   s = g (p, va_arg (v,int));
2674   va_end (v);
2675   return s;
2676 }
2677
2678 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2679    function prototypes and stuff, but not '\xHH' hex character constants.
2680    These don't provoke an error unfortunately, instead are silently treated
2681    as 'x'.  The following induces an error, until -std is added to get
2682    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2683    array size at least.  It's necessary to write '\x00'==0 to get something
2684    that's true only with -std.  */
2685 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2686
2687 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2688    inside strings and character constants.  */
2689 #define FOO(x) 'x'
2690 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2691
2692 int test (int i, double x);
2693 struct s1 {int (*f) (int a);};
2694 struct s2 {int (*f) (double a);};
2695 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2696 int argc;
2697 char **argv;
2698 int
2699 main ()
2700 {
2701 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2702   ;
2703   return 0;
2704 }
2705 _ACEOF
2706 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2707         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2708 do
2709   CC="$ac_save_CC $ac_arg"
2710   rm -f conftest.$ac_objext
2711 if { (ac_try="$ac_compile"
2712 case "(($ac_try" in
2713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714   *) ac_try_echo=$ac_try;;
2715 esac
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717   (eval "$ac_compile") 2>conftest.er1
2718   ac_status=$?
2719   grep -v '^ *+' conftest.er1 >conftest.err
2720   rm -f conftest.er1
2721   cat conftest.err >&5
2722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723   (exit $ac_status); } &&
2724          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2725   { (case "(($ac_try" in
2726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727   *) ac_try_echo=$ac_try;;
2728 esac
2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730   (eval "$ac_try") 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }; } &&
2734          { ac_try='test -s conftest.$ac_objext'
2735   { (case "(($ac_try" in
2736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737   *) ac_try_echo=$ac_try;;
2738 esac
2739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740   (eval "$ac_try") 2>&5
2741   ac_status=$?
2742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743   (exit $ac_status); }; }; then
2744   ac_cv_prog_cc_c89=$ac_arg
2745 else
2746   echo "$as_me: failed program was:" >&5
2747 sed 's/^/| /' conftest.$ac_ext >&5
2748
2749
2750 fi
2751
2752 rm -f core conftest.err conftest.$ac_objext
2753   test "x$ac_cv_prog_cc_c89" != "xno" && break
2754 done
2755 rm -f conftest.$ac_ext
2756 CC=$ac_save_CC
2757
2758 fi
2759 # AC_CACHE_VAL
2760 case "x$ac_cv_prog_cc_c89" in
2761   x)
2762     { echo "$as_me:$LINENO: result: none needed" >&5
2763 echo "${ECHO_T}none needed" >&6; } ;;
2764   xno)
2765     { echo "$as_me:$LINENO: result: unsupported" >&5
2766 echo "${ECHO_T}unsupported" >&6; } ;;
2767   *)
2768     CC="$CC $ac_cv_prog_cc_c89"
2769     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2770 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2771 esac
2772
2773
2774 ac_ext=c
2775 ac_cpp='$CPP $CPPFLAGS'
2776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779
2780 ac_ext=cpp
2781 ac_cpp='$CXXCPP $CPPFLAGS'
2782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2785 if test -z "$CXX"; then
2786   if test -n "$CCC"; then
2787     CXX=$CCC
2788   else
2789     if test -n "$ac_tool_prefix"; then
2790   for ac_prog in clang++ llvm-g++ g++
2791   do
2792     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2793 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2796 if test "${ac_cv_prog_CXX+set}" = set; then
2797   echo $ECHO_N "(cached) $ECHO_C" >&6
2798 else
2799   if test -n "$CXX"; then
2800   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2801 else
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 for as_dir in $PATH
2804 do
2805   IFS=$as_save_IFS
2806   test -z "$as_dir" && as_dir=.
2807   for ac_exec_ext in '' $ac_executable_extensions; do
2808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2809     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811     break 2
2812   fi
2813 done
2814 done
2815 IFS=$as_save_IFS
2816
2817 fi
2818 fi
2819 CXX=$ac_cv_prog_CXX
2820 if test -n "$CXX"; then
2821   { echo "$as_me:$LINENO: result: $CXX" >&5
2822 echo "${ECHO_T}$CXX" >&6; }
2823 else
2824   { echo "$as_me:$LINENO: result: no" >&5
2825 echo "${ECHO_T}no" >&6; }
2826 fi
2827
2828
2829     test -n "$CXX" && break
2830   done
2831 fi
2832 if test -z "$CXX"; then
2833   ac_ct_CXX=$CXX
2834   for ac_prog in clang++ llvm-g++ g++
2835 do
2836   # Extract the first word of "$ac_prog", so it can be a program name with args.
2837 set dummy $ac_prog; ac_word=$2
2838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2840 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2841   echo $ECHO_N "(cached) $ECHO_C" >&6
2842 else
2843   if test -n "$ac_ct_CXX"; then
2844   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849   IFS=$as_save_IFS
2850   test -z "$as_dir" && as_dir=.
2851   for ac_exec_ext in '' $ac_executable_extensions; do
2852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2853     ac_cv_prog_ac_ct_CXX="$ac_prog"
2854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855     break 2
2856   fi
2857 done
2858 done
2859 IFS=$as_save_IFS
2860
2861 fi
2862 fi
2863 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2864 if test -n "$ac_ct_CXX"; then
2865   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2866 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2867 else
2868   { echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6; }
2870 fi
2871
2872
2873   test -n "$ac_ct_CXX" && break
2874 done
2875
2876   if test "x$ac_ct_CXX" = x; then
2877     CXX="g++"
2878   else
2879     case $cross_compiling:$ac_tool_warned in
2880 yes:)
2881 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2882 whose name does not start with the host triplet.  If you think this
2883 configuration is useful to you, please write to autoconf@gnu.org." >&5
2884 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2885 whose name does not start with the host triplet.  If you think this
2886 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2887 ac_tool_warned=yes ;;
2888 esac
2889     CXX=$ac_ct_CXX
2890   fi
2891 fi
2892
2893   fi
2894 fi
2895 # Provide some information about the compiler.
2896 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2897 ac_compiler=`set X $ac_compile; echo $2`
2898 { (ac_try="$ac_compiler --version >&5"
2899 case "(($ac_try" in
2900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901   *) ac_try_echo=$ac_try;;
2902 esac
2903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904   (eval "$ac_compiler --version >&5") 2>&5
2905   ac_status=$?
2906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907   (exit $ac_status); }
2908 { (ac_try="$ac_compiler -v >&5"
2909 case "(($ac_try" in
2910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911   *) ac_try_echo=$ac_try;;
2912 esac
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914   (eval "$ac_compiler -v >&5") 2>&5
2915   ac_status=$?
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); }
2918 { (ac_try="$ac_compiler -V >&5"
2919 case "(($ac_try" in
2920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921   *) ac_try_echo=$ac_try;;
2922 esac
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924   (eval "$ac_compiler -V >&5") 2>&5
2925   ac_status=$?
2926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927   (exit $ac_status); }
2928
2929 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2930 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2931 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2932   echo $ECHO_N "(cached) $ECHO_C" >&6
2933 else
2934   cat >conftest.$ac_ext <<_ACEOF
2935 /* confdefs.h.  */
2936 _ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h.  */
2940
2941 int
2942 main ()
2943 {
2944 #ifndef __GNUC__
2945        choke me
2946 #endif
2947
2948   ;
2949   return 0;
2950 }
2951 _ACEOF
2952 rm -f conftest.$ac_objext
2953 if { (ac_try="$ac_compile"
2954 case "(($ac_try" in
2955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956   *) ac_try_echo=$ac_try;;
2957 esac
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959   (eval "$ac_compile") 2>conftest.er1
2960   ac_status=$?
2961   grep -v '^ *+' conftest.er1 >conftest.err
2962   rm -f conftest.er1
2963   cat conftest.err >&5
2964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965   (exit $ac_status); } &&
2966          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2967   { (case "(($ac_try" in
2968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969   *) ac_try_echo=$ac_try;;
2970 esac
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972   (eval "$ac_try") 2>&5
2973   ac_status=$?
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); }; } &&
2976          { ac_try='test -s conftest.$ac_objext'
2977   { (case "(($ac_try" in
2978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979   *) ac_try_echo=$ac_try;;
2980 esac
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982   (eval "$ac_try") 2>&5
2983   ac_status=$?
2984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985   (exit $ac_status); }; }; then
2986   ac_compiler_gnu=yes
2987 else
2988   echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2990
2991         ac_compiler_gnu=no
2992 fi
2993
2994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2995 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2996
2997 fi
2998 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2999 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3000 GXX=`test $ac_compiler_gnu = yes && echo yes`
3001 ac_test_CXXFLAGS=${CXXFLAGS+set}
3002 ac_save_CXXFLAGS=$CXXFLAGS
3003 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3004 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3005 if test "${ac_cv_prog_cxx_g+set}" = set; then
3006   echo $ECHO_N "(cached) $ECHO_C" >&6
3007 else
3008   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3009    ac_cxx_werror_flag=yes
3010    ac_cv_prog_cxx_g=no
3011    CXXFLAGS="-g"
3012    cat >conftest.$ac_ext <<_ACEOF
3013 /* confdefs.h.  */
3014 _ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h.  */
3018
3019 int
3020 main ()
3021 {
3022
3023   ;
3024   return 0;
3025 }
3026 _ACEOF
3027 rm -f conftest.$ac_objext
3028 if { (ac_try="$ac_compile"
3029 case "(($ac_try" in
3030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031   *) ac_try_echo=$ac_try;;
3032 esac
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034   (eval "$ac_compile") 2>conftest.er1
3035   ac_status=$?
3036   grep -v '^ *+' conftest.er1 >conftest.err
3037   rm -f conftest.er1
3038   cat conftest.err >&5
3039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040   (exit $ac_status); } &&
3041          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3042   { (case "(($ac_try" in
3043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044   *) ac_try_echo=$ac_try;;
3045 esac
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047   (eval "$ac_try") 2>&5
3048   ac_status=$?
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); }; } &&
3051          { ac_try='test -s conftest.$ac_objext'
3052   { (case "(($ac_try" in
3053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054   *) ac_try_echo=$ac_try;;
3055 esac
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057   (eval "$ac_try") 2>&5
3058   ac_status=$?
3059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060   (exit $ac_status); }; }; then
3061   ac_cv_prog_cxx_g=yes
3062 else
3063   echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3065
3066         CXXFLAGS=""
3067       cat >conftest.$ac_ext <<_ACEOF
3068 /* confdefs.h.  */
3069 _ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h.  */
3073
3074 int
3075 main ()
3076 {
3077
3078   ;
3079   return 0;
3080 }
3081 _ACEOF
3082 rm -f conftest.$ac_objext
3083 if { (ac_try="$ac_compile"
3084 case "(($ac_try" in
3085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086   *) ac_try_echo=$ac_try;;
3087 esac
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089   (eval "$ac_compile") 2>conftest.er1
3090   ac_status=$?
3091   grep -v '^ *+' conftest.er1 >conftest.err
3092   rm -f conftest.er1
3093   cat conftest.err >&5
3094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095   (exit $ac_status); } &&
3096          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3097   { (case "(($ac_try" in
3098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099   *) ac_try_echo=$ac_try;;
3100 esac
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102   (eval "$ac_try") 2>&5
3103   ac_status=$?
3104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105   (exit $ac_status); }; } &&
3106          { ac_try='test -s conftest.$ac_objext'
3107   { (case "(($ac_try" in
3108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109   *) ac_try_echo=$ac_try;;
3110 esac
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112   (eval "$ac_try") 2>&5
3113   ac_status=$?
3114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115   (exit $ac_status); }; }; then
3116   :
3117 else
3118   echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3120
3121         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3122          CXXFLAGS="-g"
3123          cat >conftest.$ac_ext <<_ACEOF
3124 /* confdefs.h.  */
3125 _ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h.  */
3129
3130 int
3131 main ()
3132 {
3133
3134   ;
3135   return 0;
3136 }
3137 _ACEOF
3138 rm -f conftest.$ac_objext
3139 if { (ac_try="$ac_compile"
3140 case "(($ac_try" in
3141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142   *) ac_try_echo=$ac_try;;
3143 esac
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145   (eval "$ac_compile") 2>conftest.er1
3146   ac_status=$?
3147   grep -v '^ *+' conftest.er1 >conftest.err
3148   rm -f conftest.er1
3149   cat conftest.err >&5
3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151   (exit $ac_status); } &&
3152          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3153   { (case "(($ac_try" in
3154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155   *) ac_try_echo=$ac_try;;
3156 esac
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158   (eval "$ac_try") 2>&5
3159   ac_status=$?
3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161   (exit $ac_status); }; } &&
3162          { ac_try='test -s conftest.$ac_objext'
3163   { (case "(($ac_try" in
3164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165   *) ac_try_echo=$ac_try;;
3166 esac
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168   (eval "$ac_try") 2>&5
3169   ac_status=$?
3170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171   (exit $ac_status); }; }; then
3172   ac_cv_prog_cxx_g=yes
3173 else
3174   echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3176
3177
3178 fi
3179
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 fi
3182
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184 fi
3185
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3188 fi
3189 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3190 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3191 if test "$ac_test_CXXFLAGS" = set; then
3192   CXXFLAGS=$ac_save_CXXFLAGS
3193 elif test $ac_cv_prog_cxx_g = yes; then
3194   if test "$GXX" = yes; then
3195     CXXFLAGS="-g -O2"
3196   else
3197     CXXFLAGS="-g"
3198   fi
3199 else
3200   if test "$GXX" = yes; then
3201     CXXFLAGS="-O2"
3202   else
3203     CXXFLAGS=
3204   fi
3205 fi
3206 ac_ext=c
3207 ac_cpp='$CPP $CPPFLAGS'
3208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211
3212 ac_ext=c
3213 ac_cpp='$CPP $CPPFLAGS'
3214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3217 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3218 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3219 # On Suns, sometimes $CPP names a directory.
3220 if test -n "$CPP" && test -d "$CPP"; then
3221   CPP=
3222 fi
3223 if test -z "$CPP"; then
3224   if test "${ac_cv_prog_CPP+set}" = set; then
3225   echo $ECHO_N "(cached) $ECHO_C" >&6
3226 else
3227       # Double quotes because CPP needs to be expanded
3228     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3229     do
3230       ac_preproc_ok=false
3231 for ac_c_preproc_warn_flag in '' yes
3232 do
3233   # Use a header file that comes with gcc, so configuring glibc
3234   # with a fresh cross-compiler works.
3235   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3236   # <limits.h> exists even on freestanding compilers.
3237   # On the NeXT, cc -E runs the code through the compiler's parser,
3238   # not just through cpp. "Syntax error" is here to catch this case.
3239   cat >conftest.$ac_ext <<_ACEOF
3240 /* confdefs.h.  */
3241 _ACEOF
3242 cat confdefs.h >>conftest.$ac_ext
3243 cat >>conftest.$ac_ext <<_ACEOF
3244 /* end confdefs.h.  */
3245 #ifdef __STDC__
3246 # include <limits.h>
3247 #else
3248 # include <assert.h>
3249 #endif
3250                      Syntax error
3251 _ACEOF
3252 if { (ac_try="$ac_cpp conftest.$ac_ext"
3253 case "(($ac_try" in
3254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255   *) ac_try_echo=$ac_try;;
3256 esac
3257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3259   ac_status=$?
3260   grep -v '^ *+' conftest.er1 >conftest.err
3261   rm -f conftest.er1
3262   cat conftest.err >&5
3263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264   (exit $ac_status); } >/dev/null; then
3265   if test -s conftest.err; then
3266     ac_cpp_err=$ac_c_preproc_warn_flag
3267     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3268   else
3269     ac_cpp_err=
3270   fi
3271 else
3272   ac_cpp_err=yes
3273 fi
3274 if test -z "$ac_cpp_err"; then
3275   :
3276 else
3277   echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3279
3280   # Broken: fails on valid input.
3281 continue
3282 fi
3283
3284 rm -f conftest.err conftest.$ac_ext
3285
3286   # OK, works on sane cases.  Now check whether nonexistent headers
3287   # can be detected and how.
3288   cat >conftest.$ac_ext <<_ACEOF
3289 /* confdefs.h.  */
3290 _ACEOF
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h.  */
3294 #include <ac_nonexistent.h>
3295 _ACEOF
3296 if { (ac_try="$ac_cpp conftest.$ac_ext"
3297 case "(($ac_try" in
3298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299   *) ac_try_echo=$ac_try;;
3300 esac
3301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3303   ac_status=$?
3304   grep -v '^ *+' conftest.er1 >conftest.err
3305   rm -f conftest.er1
3306   cat conftest.err >&5
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); } >/dev/null; then
3309   if test -s conftest.err; then
3310     ac_cpp_err=$ac_c_preproc_warn_flag
3311     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3312   else
3313     ac_cpp_err=
3314   fi
3315 else
3316   ac_cpp_err=yes
3317 fi
3318 if test -z "$ac_cpp_err"; then
3319   # Broken: success on invalid input.
3320 continue
3321 else
3322   echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3324
3325   # Passes both tests.
3326 ac_preproc_ok=:
3327 break
3328 fi
3329
3330 rm -f conftest.err conftest.$ac_ext
3331
3332 done
3333 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3334 rm -f conftest.err conftest.$ac_ext
3335 if $ac_preproc_ok; then
3336   break
3337 fi
3338
3339     done
3340     ac_cv_prog_CPP=$CPP
3341
3342 fi
3343   CPP=$ac_cv_prog_CPP
3344 else
3345   ac_cv_prog_CPP=$CPP
3346 fi
3347 { echo "$as_me:$LINENO: result: $CPP" >&5
3348 echo "${ECHO_T}$CPP" >&6; }
3349 ac_preproc_ok=false
3350 for ac_c_preproc_warn_flag in '' yes
3351 do
3352   # Use a header file that comes with gcc, so configuring glibc
3353   # with a fresh cross-compiler works.
3354   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3355   # <limits.h> exists even on freestanding compilers.
3356   # On the NeXT, cc -E runs the code through the compiler's parser,
3357   # not just through cpp. "Syntax error" is here to catch this case.
3358   cat >conftest.$ac_ext <<_ACEOF
3359 /* confdefs.h.  */
3360 _ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h.  */
3364 #ifdef __STDC__
3365 # include <limits.h>
3366 #else
3367 # include <assert.h>
3368 #endif
3369                      Syntax error
3370 _ACEOF
3371 if { (ac_try="$ac_cpp conftest.$ac_ext"
3372 case "(($ac_try" in
3373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374   *) ac_try_echo=$ac_try;;
3375 esac
3376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3378   ac_status=$?
3379   grep -v '^ *+' conftest.er1 >conftest.err
3380   rm -f conftest.er1
3381   cat conftest.err >&5
3382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383   (exit $ac_status); } >/dev/null; then
3384   if test -s conftest.err; then
3385     ac_cpp_err=$ac_c_preproc_warn_flag
3386     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3387   else
3388     ac_cpp_err=
3389   fi
3390 else
3391   ac_cpp_err=yes
3392 fi
3393 if test -z "$ac_cpp_err"; then
3394   :
3395 else
3396   echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3398
3399   # Broken: fails on valid input.
3400 continue
3401 fi
3402
3403 rm -f conftest.err conftest.$ac_ext
3404
3405   # OK, works on sane cases.  Now check whether nonexistent headers
3406   # can be detected and how.
3407   cat >conftest.$ac_ext <<_ACEOF
3408 /* confdefs.h.  */
3409 _ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h.  */
3413 #include <ac_nonexistent.h>
3414 _ACEOF
3415 if { (ac_try="$ac_cpp conftest.$ac_ext"
3416 case "(($ac_try" in
3417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418   *) ac_try_echo=$ac_try;;
3419 esac
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3422   ac_status=$?
3423   grep -v '^ *+' conftest.er1 >conftest.err
3424   rm -f conftest.er1
3425   cat conftest.err >&5
3426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427   (exit $ac_status); } >/dev/null; then
3428   if test -s conftest.err; then
3429     ac_cpp_err=$ac_c_preproc_warn_flag
3430     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3431   else
3432     ac_cpp_err=
3433   fi
3434 else
3435   ac_cpp_err=yes
3436 fi
3437 if test -z "$ac_cpp_err"; then
3438   # Broken: success on invalid input.
3439 continue
3440 else
3441   echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3443
3444   # Passes both tests.
3445 ac_preproc_ok=:
3446 break
3447 fi
3448
3449 rm -f conftest.err conftest.$ac_ext
3450
3451 done
3452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3453 rm -f conftest.err conftest.$ac_ext
3454 if $ac_preproc_ok; then
3455   :
3456 else
3457   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3458 See \`config.log' for more details." >&5
3459 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3460 See \`config.log' for more details." >&2;}
3461    { (exit 1); exit 1; }; }
3462 fi
3463
3464 ac_ext=c
3465 ac_cpp='$CPP $CPPFLAGS'
3466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3469
3470
3471
3472
3473 if test -d ${srcdir}/projects/llvm-gcc ; then
3474   subdirs="$subdirs projects/llvm-gcc"
3475
3476 fi
3477
3478 if test -d ${srcdir}/projects/test-suite ; then
3479   subdirs="$subdirs projects/test-suite"
3480
3481 fi
3482
3483 if test -d ${srcdir}/projects/llvm-test ; then
3484   subdirs="$subdirs projects/llvm-test"
3485
3486 fi
3487
3488 if test -d ${srcdir}/projects/poolalloc ; then
3489   subdirs="$subdirs projects/poolalloc"
3490
3491 fi
3492
3493 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3494   subdirs="$subdirs projects/llvm-poolalloc"
3495
3496 fi
3497
3498 for i in `ls ${srcdir}/projects`
3499 do
3500   if test -d ${srcdir}/projects/${i} ; then
3501     case ${i} in
3502       sample)       subdirs="$subdirs projects/sample"
3503     ;;
3504       privbracket)  subdirs="$subdirs projects/privbracket"
3505  ;;
3506       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3507  ;;
3508       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3509 ;;
3510       llvm-java)    subdirs="$subdirs projects/llvm-java"
3511  ;;
3512       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3513    ;;
3514       safecode)     subdirs="$subdirs projects/safecode"
3515  ;;
3516       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3517  ;;
3518       llvm-gcc)       ;;
3519       test-suite)     ;;
3520       llvm-test)      ;;
3521       poolalloc)      ;;
3522       llvm-poolalloc) ;;
3523       *)
3524         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3525 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3526         ;;
3527     esac
3528   fi
3529 done
3530
3531 # Check whether --enable-polly was given.
3532 if test "${enable_polly+set}" = set; then
3533   enableval=$enable_polly;
3534 else
3535   enableval=default
3536 fi
3537
3538 case "$enableval" in
3539   yes) ENABLE_POLLY=1
3540  ;;
3541   no)  ENABLE_POLLY=0
3542  ;;
3543   default) ENABLE_POLLY=1
3544  ;;
3545   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3546 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3547    { (exit 1); exit 1; }; } ;;
3548 esac
3549
3550
3551 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3552   LLVM_HAS_POLLY=1
3553
3554   subdirs="$subdirs tools/polly"
3555
3556 fi
3557
3558
3559 # Make sure we can run config.sub.
3560 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3561   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3562 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3563    { (exit 1); exit 1; }; }
3564
3565 { echo "$as_me:$LINENO: checking build system type" >&5
3566 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3567 if test "${ac_cv_build+set}" = set; then
3568   echo $ECHO_N "(cached) $ECHO_C" >&6
3569 else
3570   ac_build_alias=$build_alias
3571 test "x$ac_build_alias" = x &&
3572   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3573 test "x$ac_build_alias" = x &&
3574   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3575 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3576    { (exit 1); exit 1; }; }
3577 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3578   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3579 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3580    { (exit 1); exit 1; }; }
3581
3582 fi
3583 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3584 echo "${ECHO_T}$ac_cv_build" >&6; }
3585 case $ac_cv_build in
3586 *-*-*) ;;
3587 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3588 echo "$as_me: error: invalid value of canonical build" >&2;}
3589    { (exit 1); exit 1; }; };;
3590 esac
3591 build=$ac_cv_build
3592 ac_save_IFS=$IFS; IFS='-'
3593 set x $ac_cv_build
3594 shift
3595 build_cpu=$1
3596 build_vendor=$2
3597 shift; shift
3598 # Remember, the first character of IFS is used to create $*,
3599 # except with old shells:
3600 build_os=$*
3601 IFS=$ac_save_IFS
3602 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3603
3604
3605 { echo "$as_me:$LINENO: checking host system type" >&5
3606 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3607 if test "${ac_cv_host+set}" = set; then
3608   echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610   if test "x$host_alias" = x; then
3611   ac_cv_host=$ac_cv_build
3612 else
3613   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3614     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3615 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3616    { (exit 1); exit 1; }; }
3617 fi
3618
3619 fi
3620 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3621 echo "${ECHO_T}$ac_cv_host" >&6; }
3622 case $ac_cv_host in
3623 *-*-*) ;;
3624 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3625 echo "$as_me: error: invalid value of canonical host" >&2;}
3626    { (exit 1); exit 1; }; };;
3627 esac
3628 host=$ac_cv_host
3629 ac_save_IFS=$IFS; IFS='-'
3630 set x $ac_cv_host
3631 shift
3632 host_cpu=$1
3633 host_vendor=$2
3634 shift; shift
3635 # Remember, the first character of IFS is used to create $*,
3636 # except with old shells:
3637 host_os=$*
3638 IFS=$ac_save_IFS
3639 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3640
3641
3642 { echo "$as_me:$LINENO: checking target system type" >&5
3643 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3644 if test "${ac_cv_target+set}" = set; then
3645   echo $ECHO_N "(cached) $ECHO_C" >&6
3646 else
3647   if test "x$target_alias" = x; then
3648   ac_cv_target=$ac_cv_host
3649 else
3650   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3651     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3652 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3653    { (exit 1); exit 1; }; }
3654 fi
3655
3656 fi
3657 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3658 echo "${ECHO_T}$ac_cv_target" >&6; }
3659 case $ac_cv_target in
3660 *-*-*) ;;
3661 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3662 echo "$as_me: error: invalid value of canonical target" >&2;}
3663    { (exit 1); exit 1; }; };;
3664 esac
3665 target=$ac_cv_target
3666 ac_save_IFS=$IFS; IFS='-'
3667 set x $ac_cv_target
3668 shift
3669 target_cpu=$1
3670 target_vendor=$2
3671 shift; shift
3672 # Remember, the first character of IFS is used to create $*,
3673 # except with old shells:
3674 target_os=$*
3675 IFS=$ac_save_IFS
3676 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3677
3678
3679 # The aliases save the names the user supplied, while $host etc.
3680 # will get canonicalized.
3681 test -n "$target_alias" &&
3682   test "$program_prefix$program_suffix$program_transform_name" = \
3683     NONENONEs,x,x, &&
3684   program_prefix=${target_alias}-
3685
3686 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3687 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3688 if test "${llvm_cv_os_type+set}" = set; then
3689   echo $ECHO_N "(cached) $ECHO_C" >&6
3690 else
3691   case $host in
3692   *-*-aix*)
3693     llvm_cv_link_all_option="-Wl,--whole-archive"
3694     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3695     llvm_cv_os_type="AIX"
3696     llvm_cv_platform_type="Unix" ;;
3697   *-*-irix*)
3698     llvm_cv_link_all_option="-Wl,--whole-archive"
3699     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3700     llvm_cv_os_type="IRIX"
3701     llvm_cv_platform_type="Unix" ;;
3702   *-*-cygwin*)
3703     llvm_cv_link_all_option="-Wl,--whole-archive"
3704     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705     llvm_cv_os_type="Cygwin"
3706     llvm_cv_platform_type="Unix" ;;
3707   *-*-darwin*)
3708     llvm_cv_link_all_option="-Wl,-all_load"
3709     llvm_cv_no_link_all_option="-Wl,-noall_load"
3710     llvm_cv_os_type="Darwin"
3711     llvm_cv_platform_type="Unix" ;;
3712   *-*-minix*)
3713     llvm_cv_link_all_option="-Wl,-all_load"
3714     llvm_cv_no_link_all_option="-Wl,-noall_load"
3715     llvm_cv_os_type="Minix"
3716     llvm_cv_platform_type="Unix" ;;
3717   *-*-freebsd*)
3718     llvm_cv_link_all_option="-Wl,--whole-archive"
3719     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720     llvm_cv_os_type="FreeBSD"
3721     llvm_cv_platform_type="Unix" ;;
3722   *-*-openbsd*)
3723     llvm_cv_link_all_option="-Wl,--whole-archive"
3724     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725     llvm_cv_os_type="OpenBSD"
3726     llvm_cv_platform_type="Unix" ;;
3727   *-*-netbsd*)
3728     llvm_cv_link_all_option="-Wl,--whole-archive"
3729     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3730     llvm_cv_os_type="NetBSD"
3731     llvm_cv_platform_type="Unix" ;;
3732   *-*-dragonfly*)
3733     llvm_cv_link_all_option="-Wl,--whole-archive"
3734     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3735     llvm_cv_os_type="DragonFly"
3736     llvm_cv_platform_type="Unix" ;;
3737   *-*-hpux*)
3738     llvm_cv_link_all_option="-Wl,--whole-archive"
3739     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3740     llvm_cv_os_type="HP-UX"
3741     llvm_cv_platform_type="Unix" ;;
3742   *-*-interix*)
3743     llvm_cv_link_all_option="-Wl,--whole-archive"
3744     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3745     llvm_cv_os_type="Interix"
3746     llvm_cv_platform_type="Unix" ;;
3747   *-*-linux*)
3748     llvm_cv_link_all_option="-Wl,--whole-archive"
3749     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3750     llvm_cv_os_type="Linux"
3751     llvm_cv_platform_type="Unix" ;;
3752   *-*-solaris*)
3753     llvm_cv_link_all_option="-Wl,-z,allextract"
3754     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3755     llvm_cv_os_type="SunOS"
3756     llvm_cv_platform_type="Unix" ;;
3757   *-*-auroraux*)
3758     llvm_cv_link_all_option="-Wl,-z,allextract"
3759     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3760     llvm_cv_os_type="AuroraUX"
3761     llvm_cv_platform_type="Unix" ;;
3762   *-*-win32*)
3763     llvm_cv_link_all_option="-Wl,--whole-archive"
3764     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3765     llvm_cv_os_type="Win32"
3766     llvm_cv_platform_type="Win32" ;;
3767   *-*-mingw*)
3768     llvm_cv_link_all_option="-Wl,--whole-archive"
3769     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3770     llvm_cv_os_type="MingW"
3771     llvm_cv_platform_type="Win32" ;;
3772   *-*-haiku*)
3773     llvm_cv_link_all_option="-Wl,--whole-archive"
3774     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3775     llvm_cv_os_type="Haiku"
3776     llvm_cv_platform_type="Unix" ;;
3777   *-unknown-eabi*)
3778     llvm_cv_link_all_option="-Wl,--whole-archive"
3779     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3780     llvm_cv_os_type="Freestanding"
3781     llvm_cv_platform_type="Unix" ;;
3782   *-unknown-elf*)
3783     llvm_cv_link_all_option="-Wl,--whole-archive"
3784     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3785     llvm_cv_os_type="Freestanding"
3786     llvm_cv_platform_type="Unix" ;;
3787   *)
3788     llvm_cv_link_all_option=""
3789     llvm_cv_no_link_all_option=""
3790     llvm_cv_os_type="Unknown"
3791     llvm_cv_platform_type="Unknown" ;;
3792 esac
3793 fi
3794 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3795 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3796
3797 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3798 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3799 if test "${llvm_cv_target_os_type+set}" = set; then
3800   echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802   case $target in
3803   *-*-aix*)
3804     llvm_cv_target_os_type="AIX" ;;
3805   *-*-irix*)
3806     llvm_cv_target_os_type="IRIX" ;;
3807   *-*-cygwin*)
3808     llvm_cv_target_os_type="Cygwin" ;;
3809   *-*-darwin*)
3810     llvm_cv_target_os_type="Darwin" ;;
3811   *-*-minix*)
3812     llvm_cv_target_os_type="Minix" ;;
3813   *-*-freebsd*)
3814     llvm_cv_target_os_type="FreeBSD" ;;
3815   *-*-openbsd*)
3816     llvm_cv_target_os_type="OpenBSD" ;;
3817   *-*-netbsd*)
3818     llvm_cv_target_os_type="NetBSD" ;;
3819   *-*-dragonfly*)
3820     llvm_cv_target_os_type="DragonFly" ;;
3821   *-*-hpux*)
3822     llvm_cv_target_os_type="HP-UX" ;;
3823   *-*-interix*)
3824     llvm_cv_target_os_type="Interix" ;;
3825   *-*-linux*)
3826     llvm_cv_target_os_type="Linux" ;;
3827   *-*-solaris*)
3828     llvm_cv_target_os_type="SunOS" ;;
3829   *-*-auroraux*)
3830     llvm_cv_target_os_type="AuroraUX" ;;
3831   *-*-win32*)
3832     llvm_cv_target_os_type="Win32" ;;
3833   *-*-mingw*)
3834     llvm_cv_target_os_type="MingW" ;;
3835   *-*-haiku*)
3836     llvm_cv_target_os_type="Haiku" ;;
3837   *-*-rtems*)
3838     llvm_cv_target_os_type="RTEMS" ;;
3839   *-*-nacl*)
3840     llvm_cv_target_os_type="NativeClient" ;;
3841   *-unknown-eabi*)
3842     llvm_cv_target_os_type="Freestanding" ;;
3843   *)
3844     llvm_cv_target_os_type="Unknown" ;;
3845 esac
3846 fi
3847 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3848 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3849
3850 if test "$llvm_cv_os_type" = "Unknown" ; then
3851   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3852 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3853    { (exit 1); exit 1; }; }
3854 fi
3855
3856 OS=$llvm_cv_os_type
3857
3858 HOST_OS=$llvm_cv_os_type
3859
3860 TARGET_OS=$llvm_cv_target_os_type
3861
3862
3863 LINKALL=$llvm_cv_link_all_option
3864
3865 NOLINKALL=$llvm_cv_no_link_all_option
3866
3867
3868 case $llvm_cv_platform_type in
3869   Unix)
3870
3871 cat >>confdefs.h <<\_ACEOF
3872 #define LLVM_ON_UNIX 1
3873 _ACEOF
3874
3875     LLVM_ON_UNIX=1
3876
3877     LLVM_ON_WIN32=0
3878
3879     ;;
3880   Win32)
3881
3882 cat >>confdefs.h <<\_ACEOF
3883 #define LLVM_ON_WIN32 1
3884 _ACEOF
3885
3886     LLVM_ON_UNIX=0
3887
3888     LLVM_ON_WIN32=1
3889
3890     ;;
3891 esac
3892
3893 { echo "$as_me:$LINENO: checking target architecture" >&5
3894 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3895 if test "${llvm_cv_target_arch+set}" = set; then
3896   echo $ECHO_N "(cached) $ECHO_C" >&6
3897 else
3898   case $target in
3899   i?86-*)                 llvm_cv_target_arch="x86" ;;
3900   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3901   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3902   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3903   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
3904   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3905   mips-*)                 llvm_cv_target_arch="Mips" ;;
3906   xcore-*)                llvm_cv_target_arch="XCore" ;;
3907   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3908   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
3909   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
3910   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3911   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3912   *)                      llvm_cv_target_arch="Unknown" ;;
3913 esac
3914 fi
3915 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3916 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3917
3918 if test "$llvm_cv_target_arch" = "Unknown" ; then
3919   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3920 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3921 fi
3922
3923 # Determine the LLVM native architecture for the target
3924 case "$llvm_cv_target_arch" in
3925     x86)     LLVM_NATIVE_ARCH="X86" ;;
3926     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3927     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3928 esac
3929
3930 ARCH=$llvm_cv_target_arch
3931
3932
3933
3934
3935 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3936 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3937 if test "${ac_cv_path_GREP+set}" = set; then
3938   echo $ECHO_N "(cached) $ECHO_C" >&6
3939 else
3940   # Extract the first word of "grep ggrep" to use in msg output
3941 if test -z "$GREP"; then
3942 set dummy grep ggrep; ac_prog_name=$2
3943 if test "${ac_cv_path_GREP+set}" = set; then
3944   echo $ECHO_N "(cached) $ECHO_C" >&6
3945 else
3946   ac_path_GREP_found=false
3947 # Loop through the user's path and test for each of PROGNAME-LIST
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3950 do
3951   IFS=$as_save_IFS
3952   test -z "$as_dir" && as_dir=.
3953   for ac_prog in grep ggrep; do
3954   for ac_exec_ext in '' $ac_executable_extensions; do
3955     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3956     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3957     # Check for GNU ac_path_GREP and select it if it is found.
3958   # Check for GNU $ac_path_GREP
3959 case `"$ac_path_GREP" --version 2>&1` in
3960 *GNU*)
3961   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3962 *)
3963   ac_count=0
3964   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3965   while :
3966   do
3967     cat "conftest.in" "conftest.in" >"conftest.tmp"
3968     mv "conftest.tmp" "conftest.in"
3969     cp "conftest.in" "conftest.nl"
3970     echo 'GREP' >> "conftest.nl"
3971     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3972     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3973     ac_count=`expr $ac_count + 1`
3974     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3975       # Best one so far, save it but keep looking for a better one
3976       ac_cv_path_GREP="$ac_path_GREP"
3977       ac_path_GREP_max=$ac_count
3978     fi
3979     # 10*(2^10) chars as input seems more than enough
3980     test $ac_count -gt 10 && break
3981   done
3982   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3983 esac
3984
3985
3986     $ac_path_GREP_found && break 3
3987   done
3988 done
3989
3990 done
3991 IFS=$as_save_IFS
3992
3993
3994 fi
3995
3996 GREP="$ac_cv_path_GREP"
3997 if test -z "$GREP"; then
3998   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3999 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4000    { (exit 1); exit 1; }; }
4001 fi
4002
4003 else
4004   ac_cv_path_GREP=$GREP
4005 fi
4006
4007
4008 fi
4009 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4010 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4011  GREP="$ac_cv_path_GREP"
4012
4013
4014 { echo "$as_me:$LINENO: checking for egrep" >&5
4015 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4016 if test "${ac_cv_path_EGREP+set}" = set; then
4017   echo $ECHO_N "(cached) $ECHO_C" >&6
4018 else
4019   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4020    then ac_cv_path_EGREP="$GREP -E"
4021    else
4022      # Extract the first word of "egrep" to use in msg output
4023 if test -z "$EGREP"; then
4024 set dummy egrep; ac_prog_name=$2
4025 if test "${ac_cv_path_EGREP+set}" = set; then
4026   echo $ECHO_N "(cached) $ECHO_C" >&6
4027 else
4028   ac_path_EGREP_found=false
4029 # Loop through the user's path and test for each of PROGNAME-LIST
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4032 do
4033   IFS=$as_save_IFS
4034   test -z "$as_dir" && as_dir=.
4035   for ac_prog in egrep; do
4036   for ac_exec_ext in '' $ac_executable_extensions; do
4037     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4038     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4039     # Check for GNU ac_path_EGREP and select it if it is found.
4040   # Check for GNU $ac_path_EGREP
4041 case `"$ac_path_EGREP" --version 2>&1` in
4042 *GNU*)
4043   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4044 *)
4045   ac_count=0
4046   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4047   while :
4048   do
4049     cat "conftest.in" "conftest.in" >"conftest.tmp"
4050     mv "conftest.tmp" "conftest.in"
4051     cp "conftest.in" "conftest.nl"
4052     echo 'EGREP' >> "conftest.nl"
4053     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4054     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4055     ac_count=`expr $ac_count + 1`
4056     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4057       # Best one so far, save it but keep looking for a better one
4058       ac_cv_path_EGREP="$ac_path_EGREP"
4059       ac_path_EGREP_max=$ac_count
4060     fi
4061     # 10*(2^10) chars as input seems more than enough
4062     test $ac_count -gt 10 && break
4063   done
4064   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4065 esac
4066
4067
4068     $ac_path_EGREP_found && break 3
4069   done
4070 done
4071
4072 done
4073 IFS=$as_save_IFS
4074
4075
4076 fi
4077
4078 EGREP="$ac_cv_path_EGREP"
4079 if test -z "$EGREP"; then
4080   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4081 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4082    { (exit 1); exit 1; }; }
4083 fi
4084
4085 else
4086   ac_cv_path_EGREP=$EGREP
4087 fi
4088
4089
4090    fi
4091 fi
4092 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4093 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4094  EGREP="$ac_cv_path_EGREP"
4095
4096
4097 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4098 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4099 if test "${ac_cv_header_stdc+set}" = set; then
4100   echo $ECHO_N "(cached) $ECHO_C" >&6
4101 else
4102   cat >conftest.$ac_ext <<_ACEOF
4103 /* confdefs.h.  */
4104 _ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h.  */
4108 #include <stdlib.h>
4109 #include <stdarg.h>
4110 #include <string.h>
4111 #include <float.h>
4112
4113 int
4114 main ()
4115 {
4116
4117   ;
4118   return 0;
4119 }
4120 _ACEOF
4121 rm -f conftest.$ac_objext
4122 if { (ac_try="$ac_compile"
4123 case "(($ac_try" in
4124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125   *) ac_try_echo=$ac_try;;
4126 esac
4127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128   (eval "$ac_compile") 2>conftest.er1
4129   ac_status=$?
4130   grep -v '^ *+' conftest.er1 >conftest.err
4131   rm -f conftest.er1
4132   cat conftest.err >&5
4133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134   (exit $ac_status); } &&
4135          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4136   { (case "(($ac_try" in
4137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138   *) ac_try_echo=$ac_try;;
4139 esac
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141   (eval "$ac_try") 2>&5
4142   ac_status=$?
4143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144   (exit $ac_status); }; } &&
4145          { ac_try='test -s conftest.$ac_objext'
4146   { (case "(($ac_try" in
4147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148   *) ac_try_echo=$ac_try;;
4149 esac
4150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151   (eval "$ac_try") 2>&5
4152   ac_status=$?
4153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154   (exit $ac_status); }; }; then
4155   ac_cv_header_stdc=yes
4156 else
4157   echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4159
4160         ac_cv_header_stdc=no
4161 fi
4162
4163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164
4165 if test $ac_cv_header_stdc = yes; then
4166   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4167   cat >conftest.$ac_ext <<_ACEOF
4168 /* confdefs.h.  */
4169 _ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h.  */
4173 #include <string.h>
4174
4175 _ACEOF
4176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4177   $EGREP "memchr" >/dev/null 2>&1; then
4178   :
4179 else
4180   ac_cv_header_stdc=no
4181 fi
4182 rm -f conftest*
4183
4184 fi
4185
4186 if test $ac_cv_header_stdc = yes; then
4187   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4188   cat >conftest.$ac_ext <<_ACEOF
4189 /* confdefs.h.  */
4190 _ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h.  */
4194 #include <stdlib.h>
4195
4196 _ACEOF
4197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4198   $EGREP "free" >/dev/null 2>&1; then
4199   :
4200 else
4201   ac_cv_header_stdc=no
4202 fi
4203 rm -f conftest*
4204
4205 fi
4206
4207 if test $ac_cv_header_stdc = yes; then
4208   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4209   if test "$cross_compiling" = yes; then
4210   :
4211 else
4212   cat >conftest.$ac_ext <<_ACEOF
4213 /* confdefs.h.  */
4214 _ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h.  */
4218 #include <ctype.h>
4219 #include <stdlib.h>
4220 #if ((' ' & 0x0FF) == 0x020)
4221 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4222 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4223 #else
4224 # define ISLOWER(c) \
4225                    (('a' <= (c) && (c) <= 'i') \
4226                      || ('j' <= (c) && (c) <= 'r') \
4227                      || ('s' <= (c) && (c) <= 'z'))
4228 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4229 #endif
4230
4231 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4232 int
4233 main ()
4234 {
4235   int i;
4236   for (i = 0; i < 256; i++)
4237     if (XOR (islower (i), ISLOWER (i))
4238         || toupper (i) != TOUPPER (i))
4239       return 2;
4240   return 0;
4241 }
4242 _ACEOF
4243 rm -f conftest$ac_exeext
4244 if { (ac_try="$ac_link"
4245 case "(($ac_try" in
4246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247   *) ac_try_echo=$ac_try;;
4248 esac
4249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250   (eval "$ac_link") 2>&5
4251   ac_status=$?
4252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4254   { (case "(($ac_try" in
4255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256   *) ac_try_echo=$ac_try;;
4257 esac
4258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4259   (eval "$ac_try") 2>&5
4260   ac_status=$?
4261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262   (exit $ac_status); }; }; then
4263   :
4264 else
4265   echo "$as_me: program exited with status $ac_status" >&5
4266 echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.$ac_ext >&5
4268
4269 ( exit $ac_status )
4270 ac_cv_header_stdc=no
4271 fi
4272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4273 fi
4274
4275
4276 fi
4277 fi
4278 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4279 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4280 if test $ac_cv_header_stdc = yes; then
4281
4282 cat >>confdefs.h <<\_ACEOF
4283 #define STDC_HEADERS 1
4284 _ACEOF
4285
4286 fi
4287
4288 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4299                   inttypes.h stdint.h unistd.h
4300 do
4301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4305   echo $ECHO_N "(cached) $ECHO_C" >&6
4306 else
4307   cat >conftest.$ac_ext <<_ACEOF
4308 /* confdefs.h.  */
4309 _ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h.  */
4313 $ac_includes_default
4314
4315 #include <$ac_header>
4316 _ACEOF
4317 rm -f conftest.$ac_objext
4318 if { (ac_try="$ac_compile"
4319 case "(($ac_try" in
4320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321   *) ac_try_echo=$ac_try;;
4322 esac
4323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324   (eval "$ac_compile") 2>conftest.er1
4325   ac_status=$?
4326   grep -v '^ *+' conftest.er1 >conftest.err
4327   rm -f conftest.er1
4328   cat conftest.err >&5
4329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330   (exit $ac_status); } &&
4331          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4332   { (case "(($ac_try" in
4333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334   *) ac_try_echo=$ac_try;;
4335 esac
4336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337   (eval "$ac_try") 2>&5
4338   ac_status=$?
4339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); }; } &&
4341          { ac_try='test -s conftest.$ac_objext'
4342   { (case "(($ac_try" in
4343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344   *) ac_try_echo=$ac_try;;
4345 esac
4346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347   (eval "$ac_try") 2>&5
4348   ac_status=$?
4349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350   (exit $ac_status); }; }; then
4351   eval "$as_ac_Header=yes"
4352 else
4353   echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4355
4356         eval "$as_ac_Header=no"
4357 fi
4358
4359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360 fi
4361 ac_res=`eval echo '${'$as_ac_Header'}'`
4362                { echo "$as_me:$LINENO: result: $ac_res" >&5
4363 echo "${ECHO_T}$ac_res" >&6; }
4364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4365   cat >>confdefs.h <<_ACEOF
4366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4367 _ACEOF
4368
4369 fi
4370
4371 done
4372
4373
4374 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4375 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4376 if test "${ac_cv_c_bigendian+set}" = set; then
4377   echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379   # See if sys/param.h defines the BYTE_ORDER macro.
4380 cat >conftest.$ac_ext <<_ACEOF
4381 /* confdefs.h.  */
4382 _ACEOF
4383 cat confdefs.h >>conftest.$ac_ext
4384 cat >>conftest.$ac_ext <<_ACEOF
4385 /* end confdefs.h.  */
4386 #include <sys/types.h>
4387 #include <sys/param.h>
4388
4389 int
4390 main ()
4391 {
4392 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4393  bogus endian macros
4394 #endif
4395
4396   ;
4397   return 0;
4398 }
4399 _ACEOF
4400 rm -f conftest.$ac_objext
4401 if { (ac_try="$ac_compile"
4402 case "(($ac_try" in
4403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404   *) ac_try_echo=$ac_try;;
4405 esac
4406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4407   (eval "$ac_compile") 2>conftest.er1
4408   ac_status=$?
4409   grep -v '^ *+' conftest.er1 >conftest.err
4410   rm -f conftest.er1
4411   cat conftest.err >&5
4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); } &&
4414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4415   { (case "(($ac_try" in
4416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417   *) ac_try_echo=$ac_try;;
4418 esac
4419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4420   (eval "$ac_try") 2>&5
4421   ac_status=$?
4422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423   (exit $ac_status); }; } &&
4424          { ac_try='test -s conftest.$ac_objext'
4425   { (case "(($ac_try" in
4426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427   *) ac_try_echo=$ac_try;;
4428 esac
4429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4430   (eval "$ac_try") 2>&5
4431   ac_status=$?
4432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433   (exit $ac_status); }; }; then
4434   # It does; now see whether it defined to BIG_ENDIAN or not.
4435 cat >conftest.$ac_ext <<_ACEOF
4436 /* confdefs.h.  */
4437 _ACEOF
4438 cat confdefs.h >>conftest.$ac_ext
4439 cat >>conftest.$ac_ext <<_ACEOF
4440 /* end confdefs.h.  */
4441 #include <sys/types.h>
4442 #include <sys/param.h>
4443
4444 int
4445 main ()
4446 {
4447 #if BYTE_ORDER != BIG_ENDIAN
4448  not big endian
4449 #endif
4450
4451   ;
4452   return 0;
4453 }
4454 _ACEOF
4455 rm -f conftest.$ac_objext
4456 if { (ac_try="$ac_compile"
4457 case "(($ac_try" in
4458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459   *) ac_try_echo=$ac_try;;
4460 esac
4461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4462   (eval "$ac_compile") 2>conftest.er1
4463   ac_status=$?
4464   grep -v '^ *+' conftest.er1 >conftest.err
4465   rm -f conftest.er1
4466   cat conftest.err >&5
4467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468   (exit $ac_status); } &&
4469          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4470   { (case "(($ac_try" in
4471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472   *) ac_try_echo=$ac_try;;
4473 esac
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475   (eval "$ac_try") 2>&5
4476   ac_status=$?
4477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478   (exit $ac_status); }; } &&
4479          { ac_try='test -s conftest.$ac_objext'
4480   { (case "(($ac_try" in
4481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482   *) ac_try_echo=$ac_try;;
4483 esac
4484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485   (eval "$ac_try") 2>&5
4486   ac_status=$?
4487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488   (exit $ac_status); }; }; then
4489   ac_cv_c_bigendian=yes
4490 else
4491   echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4493
4494         ac_cv_c_bigendian=no
4495 fi
4496
4497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498 else
4499   echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4501
4502         # It does not; compile a test program.
4503 if test "$cross_compiling" = yes; then
4504   # try to guess the endianness by grepping values into an object file
4505   ac_cv_c_bigendian=unknown
4506   cat >conftest.$ac_ext <<_ACEOF
4507 /* confdefs.h.  */
4508 _ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h.  */
4512 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4513 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4514 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4515 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4516 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4517 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4518 int
4519 main ()
4520 {
4521  _ascii (); _ebcdic ();
4522   ;
4523   return 0;
4524 }
4525 _ACEOF
4526 rm -f conftest.$ac_objext
4527 if { (ac_try="$ac_compile"
4528 case "(($ac_try" in
4529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530   *) ac_try_echo=$ac_try;;
4531 esac
4532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4533   (eval "$ac_compile") 2>conftest.er1
4534   ac_status=$?
4535   grep -v '^ *+' conftest.er1 >conftest.err
4536   rm -f conftest.er1
4537   cat conftest.err >&5
4538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539   (exit $ac_status); } &&
4540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4541   { (case "(($ac_try" in
4542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543   *) ac_try_echo=$ac_try;;
4544 esac
4545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4546   (eval "$ac_try") 2>&5
4547   ac_status=$?
4548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549   (exit $ac_status); }; } &&
4550          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
4557   ac_status=$?
4558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559   (exit $ac_status); }; }; then
4560   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4561   ac_cv_c_bigendian=yes
4562 fi
4563 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4564   if test "$ac_cv_c_bigendian" = unknown; then
4565     ac_cv_c_bigendian=no
4566   else
4567     # finding both strings is unlikely to happen, but who knows?
4568     ac_cv_c_bigendian=unknown
4569   fi
4570 fi
4571 else
4572   echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4574
4575
4576 fi
4577
4578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579 else
4580   cat >conftest.$ac_ext <<_ACEOF
4581 /* confdefs.h.  */
4582 _ACEOF
4583 cat confdefs.h >>conftest.$ac_ext
4584 cat >>conftest.$ac_ext <<_ACEOF
4585 /* end confdefs.h.  */
4586 $ac_includes_default
4587 int
4588 main ()
4589 {
4590
4591   /* Are we little or big endian?  From Harbison&Steele.  */
4592   union
4593   {
4594     long int l;
4595     char c[sizeof (long int)];
4596   } u;
4597   u.l = 1;
4598   return u.c[sizeof (long int) - 1] == 1;
4599
4600   ;
4601   return 0;
4602 }
4603 _ACEOF
4604 rm -f conftest$ac_exeext
4605 if { (ac_try="$ac_link"
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_link") 2>&5
4612   ac_status=$?
4613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4615   { (case "(($ac_try" in
4616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617   *) ac_try_echo=$ac_try;;
4618 esac
4619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4620   (eval "$ac_try") 2>&5
4621   ac_status=$?
4622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623   (exit $ac_status); }; }; then
4624   ac_cv_c_bigendian=no
4625 else
4626   echo "$as_me: program exited with status $ac_status" >&5
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4629
4630 ( exit $ac_status )
4631 ac_cv_c_bigendian=yes
4632 fi
4633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4634 fi
4635
4636
4637 fi
4638
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640 fi
4641 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4642 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4643 case $ac_cv_c_bigendian in
4644   yes)
4645     ENDIAN=big
4646  ;;
4647   no)
4648     ENDIAN=little
4649  ;;
4650   *)
4651     { { echo "$as_me:$LINENO: error: unknown endianness
4652 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4653 echo "$as_me: error: unknown endianness
4654 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4655    { (exit 1); exit 1; }; } ;;
4656 esac
4657
4658
4659 if test "$cross_compiling" = yes; then
4660   LLVM_CROSS_COMPILING=1
4661
4662
4663 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4664 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4665 if test "${ac_cv_build_exeext+set}" = set; then
4666   echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4669   ac_cv_build_exeext=.exe
4670 else
4671   ac_build_prefix=${build_alias}-
4672
4673   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4674 set dummy ${ac_build_prefix}gcc; ac_word=$2
4675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4677 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4678   echo $ECHO_N "(cached) $ECHO_C" >&6
4679 else
4680   if test -n "$BUILD_CC"; then
4681   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4682 else
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 for as_dir in $PATH
4685 do
4686   IFS=$as_save_IFS
4687   test -z "$as_dir" && as_dir=.
4688   for ac_exec_ext in '' $ac_executable_extensions; do
4689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4690     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692     break 2
4693   fi
4694 done
4695 done
4696 IFS=$as_save_IFS
4697
4698 fi
4699 fi
4700 BUILD_CC=$ac_cv_prog_BUILD_CC
4701 if test -n "$BUILD_CC"; then
4702   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4703 echo "${ECHO_T}$BUILD_CC" >&6; }
4704 else
4705   { echo "$as_me:$LINENO: result: no" >&5
4706 echo "${ECHO_T}no" >&6; }
4707 fi
4708
4709
4710   if test -z "$BUILD_CC"; then
4711      # Extract the first word of "gcc", so it can be a program name with args.
4712 set dummy gcc; ac_word=$2
4713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4715 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4716   echo $ECHO_N "(cached) $ECHO_C" >&6
4717 else
4718   if test -n "$BUILD_CC"; then
4719   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4720 else
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 for as_dir in $PATH
4723 do
4724   IFS=$as_save_IFS
4725   test -z "$as_dir" && as_dir=.
4726   for ac_exec_ext in '' $ac_executable_extensions; do
4727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4728     ac_cv_prog_BUILD_CC="gcc"
4729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4730     break 2
4731   fi
4732 done
4733 done
4734 IFS=$as_save_IFS
4735
4736 fi
4737 fi
4738 BUILD_CC=$ac_cv_prog_BUILD_CC
4739 if test -n "$BUILD_CC"; then
4740   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4741 echo "${ECHO_T}$BUILD_CC" >&6; }
4742 else
4743   { echo "$as_me:$LINENO: result: no" >&5
4744 echo "${ECHO_T}no" >&6; }
4745 fi
4746
4747
4748      if test -z "$BUILD_CC"; then
4749        # Extract the first word of "cc", so it can be a program name with args.
4750 set dummy cc; ac_word=$2
4751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4753 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4754   echo $ECHO_N "(cached) $ECHO_C" >&6
4755 else
4756   if test -n "$BUILD_CC"; then
4757   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4758 else
4759   ac_prog_rejected=no
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4762 do
4763   IFS=$as_save_IFS
4764   test -z "$as_dir" && as_dir=.
4765   for ac_exec_ext in '' $ac_executable_extensions; do
4766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4767     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4768        ac_prog_rejected=yes
4769        continue
4770      fi
4771     ac_cv_prog_BUILD_CC="cc"
4772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773     break 2
4774   fi
4775 done
4776 done
4777 IFS=$as_save_IFS
4778
4779 if test $ac_prog_rejected = yes; then
4780   # We found a bogon in the path, so make sure we never use it.
4781   set dummy $ac_cv_prog_BUILD_CC
4782   shift
4783   if test $# != 0; then
4784     # We chose a different compiler from the bogus one.
4785     # However, it has the same basename, so the bogon will be chosen
4786     # first if we set BUILD_CC to just the basename; use the full file name.
4787     shift
4788     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4789   fi
4790 fi
4791 fi
4792 fi
4793 BUILD_CC=$ac_cv_prog_BUILD_CC
4794 if test -n "$BUILD_CC"; then
4795   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4796 echo "${ECHO_T}$BUILD_CC" >&6; }
4797 else
4798   { echo "$as_me:$LINENO: result: no" >&5
4799 echo "${ECHO_T}no" >&6; }
4800 fi
4801
4802
4803      fi
4804   fi
4805   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4806 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4807    { (exit 1); exit 1; }; }
4808   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4809   rm -f conftest*
4810   echo 'int main () { return 0; }' > conftest.$ac_ext
4811   ac_cv_build_exeext=
4812   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4813   (eval $ac_build_link) 2>&5
4814   ac_status=$?
4815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816   (exit $ac_status); }; then
4817     for file in conftest.*; do
4818       case $file in
4819       *.c | *.o | *.obj | *.dSYM) ;;
4820       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4821       esac
4822     done
4823   else
4824     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4825 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4826    { (exit 1); exit 1; }; }
4827   fi
4828   rm -f conftest*
4829   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4830 fi
4831 fi
4832
4833 BUILD_EXEEXT=""
4834 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4835 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4836 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4837 ac_build_exeext=$BUILD_EXEEXT
4838
4839   ac_build_prefix=${build_alias}-
4840   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4841 set dummy ${ac_build_prefix}g++; ac_word=$2
4842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4844 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4845   echo $ECHO_N "(cached) $ECHO_C" >&6
4846 else
4847   if test -n "$BUILD_CXX"; then
4848   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4849 else
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH
4852 do
4853   IFS=$as_save_IFS
4854   test -z "$as_dir" && as_dir=.
4855   for ac_exec_ext in '' $ac_executable_extensions; do
4856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4857     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4859     break 2
4860   fi
4861 done
4862 done
4863 IFS=$as_save_IFS
4864
4865 fi
4866 fi
4867 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4868 if test -n "$BUILD_CXX"; then
4869   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4870 echo "${ECHO_T}$BUILD_CXX" >&6; }
4871 else
4872   { echo "$as_me:$LINENO: result: no" >&5
4873 echo "${ECHO_T}no" >&6; }
4874 fi
4875
4876
4877   if test -z "$BUILD_CXX"; then
4878      # Extract the first word of "g++", so it can be a program name with args.
4879 set dummy g++; ac_word=$2
4880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4882 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4883   echo $ECHO_N "(cached) $ECHO_C" >&6
4884 else
4885   if test -n "$BUILD_CXX"; then
4886   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4887 else
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4890 do
4891   IFS=$as_save_IFS
4892   test -z "$as_dir" && as_dir=.
4893   for ac_exec_ext in '' $ac_executable_extensions; do
4894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4895     ac_cv_prog_BUILD_CXX="g++"
4896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4897     break 2
4898   fi
4899 done
4900 done
4901 IFS=$as_save_IFS
4902
4903 fi
4904 fi
4905 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4906 if test -n "$BUILD_CXX"; then
4907   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4908 echo "${ECHO_T}$BUILD_CXX" >&6; }
4909 else
4910   { echo "$as_me:$LINENO: result: no" >&5
4911 echo "${ECHO_T}no" >&6; }
4912 fi
4913
4914
4915      if test -z "$BUILD_CXX"; then
4916        # Extract the first word of "c++", so it can be a program name with args.
4917 set dummy c++; ac_word=$2
4918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4920 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4921   echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923   if test -n "$BUILD_CXX"; then
4924   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4925 else
4926   ac_prog_rejected=no
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 for as_dir in $PATH
4929 do
4930   IFS=$as_save_IFS
4931   test -z "$as_dir" && as_dir=.
4932   for ac_exec_ext in '' $ac_executable_extensions; do
4933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4934     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4935        ac_prog_rejected=yes
4936        continue
4937      fi
4938     ac_cv_prog_BUILD_CXX="c++"
4939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4940     break 2
4941   fi
4942 done
4943 done
4944 IFS=$as_save_IFS
4945
4946 if test $ac_prog_rejected = yes; then
4947   # We found a bogon in the path, so make sure we never use it.
4948   set dummy $ac_cv_prog_BUILD_CXX
4949   shift
4950   if test $# != 0; then
4951     # We chose a different compiler from the bogus one.
4952     # However, it has the same basename, so the bogon will be chosen
4953     # first if we set BUILD_CXX to just the basename; use the full file name.
4954     shift
4955     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4956   fi
4957 fi
4958 fi
4959 fi
4960 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4961 if test -n "$BUILD_CXX"; then
4962   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4963 echo "${ECHO_T}$BUILD_CXX" >&6; }
4964 else
4965   { echo "$as_me:$LINENO: result: no" >&5
4966 echo "${ECHO_T}no" >&6; }
4967 fi
4968
4969
4970      fi
4971   fi
4972 else
4973   LLVM_CROSS_COMPILING=0
4974
4975 fi
4976
4977 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4978   cvsbuild="yes"
4979   optimize="no"
4980   CVSBUILD=CVSBUILD=1
4981
4982 else
4983   cvsbuild="no"
4984   optimize="yes"
4985 fi
4986
4987
4988 # Check whether --enable-optimized was given.
4989 if test "${enable_optimized+set}" = set; then
4990   enableval=$enable_optimized;
4991 else
4992   enableval=$optimize
4993 fi
4994
4995 if test ${enableval} = "no" ; then
4996   ENABLE_OPTIMIZED=
4997
4998 else
4999   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5000
5001 fi
5002
5003 # Check whether --enable-profiling was given.
5004 if test "${enable_profiling+set}" = set; then
5005   enableval=$enable_profiling;
5006 else
5007   enableval="no"
5008 fi
5009
5010 if test ${enableval} = "no" ; then
5011   ENABLE_PROFILING=
5012
5013 else
5014   ENABLE_PROFILING=ENABLE_PROFILING=1
5015
5016 fi
5017
5018 # Check whether --enable-assertions was given.
5019 if test "${enable_assertions+set}" = set; then
5020   enableval=$enable_assertions;
5021 else
5022   enableval="yes"
5023 fi
5024
5025 if test ${enableval} = "yes" ; then
5026   DISABLE_ASSERTIONS=
5027
5028 else
5029   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5030
5031 fi
5032
5033 # Check whether --enable-expensive-checks was given.
5034 if test "${enable_expensive_checks+set}" = set; then
5035   enableval=$enable_expensive_checks;
5036 else
5037   enableval="no"
5038 fi
5039
5040 if test ${enableval} = "yes" ; then
5041   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5042
5043   EXPENSIVE_CHECKS=yes
5044
5045 else
5046   ENABLE_EXPENSIVE_CHECKS=
5047
5048   EXPENSIVE_CHECKS=no
5049
5050 fi
5051
5052 # Check whether --enable-debug-runtime was given.
5053 if test "${enable_debug_runtime+set}" = set; then
5054   enableval=$enable_debug_runtime;
5055 else
5056   enableval=no
5057 fi
5058
5059 if test ${enableval} = "no" ; then
5060   DEBUG_RUNTIME=
5061
5062 else
5063   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5064
5065 fi
5066
5067 # Check whether --enable-debug-symbols was given.
5068 if test "${enable_debug_symbols+set}" = set; then
5069   enableval=$enable_debug_symbols;
5070 else
5071   enableval=no
5072 fi
5073
5074 if test ${enableval} = "no" ; then
5075   DEBUG_SYMBOLS=
5076
5077 else
5078   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5079
5080 fi
5081
5082 # Check whether --enable-jit was given.
5083 if test "${enable_jit+set}" = set; then
5084   enableval=$enable_jit;
5085 else
5086   enableval=default
5087 fi
5088
5089 if test ${enableval} = "no"
5090 then
5091   JIT=
5092
5093 else
5094   case "$llvm_cv_target_arch" in
5095     x86)         TARGET_HAS_JIT=1
5096  ;;
5097     Sparc)       TARGET_HAS_JIT=0
5098  ;;
5099     PowerPC)     TARGET_HAS_JIT=1
5100  ;;
5101     x86_64)      TARGET_HAS_JIT=1
5102  ;;
5103     Alpha)       TARGET_HAS_JIT=0
5104  ;;
5105     ARM)         TARGET_HAS_JIT=1
5106  ;;
5107     Mips)        TARGET_HAS_JIT=1
5108  ;;
5109     XCore)       TARGET_HAS_JIT=0
5110  ;;
5111     MSP430)      TARGET_HAS_JIT=0
5112  ;;
5113     SystemZ)     TARGET_HAS_JIT=0
5114  ;;
5115     Blackfin)    TARGET_HAS_JIT=0
5116  ;;
5117     MBlaze)      TARGET_HAS_JIT=0
5118  ;;
5119     PTX)         TARGET_HAS_JIT=0
5120  ;;
5121     *)           TARGET_HAS_JIT=0
5122  ;;
5123   esac
5124 fi
5125
5126 # Check whether --enable-docs was given.
5127 if test "${enable_docs+set}" = set; then
5128   enableval=$enable_docs;
5129 else
5130   enableval=default
5131 fi
5132
5133 case "$enableval" in
5134   yes) ENABLE_DOCS=1
5135  ;;
5136   no)  ENABLE_DOCS=0
5137  ;;
5138   default) ENABLE_DOCS=1
5139  ;;
5140   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5141 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5142    { (exit 1); exit 1; }; } ;;
5143 esac
5144
5145 # Check whether --enable-doxygen was given.
5146 if test "${enable_doxygen+set}" = set; then
5147   enableval=$enable_doxygen;
5148 else
5149   enableval=default
5150 fi
5151
5152 case "$enableval" in
5153   yes) ENABLE_DOXYGEN=1
5154  ;;
5155   no)  ENABLE_DOXYGEN=0
5156  ;;
5157   default) ENABLE_DOXYGEN=0
5158  ;;
5159   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5160 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5161    { (exit 1); exit 1; }; } ;;
5162 esac
5163
5164 # Check whether --enable-threads was given.
5165 if test "${enable_threads+set}" = set; then
5166   enableval=$enable_threads;
5167 else
5168   enableval=default
5169 fi
5170
5171 case "$enableval" in
5172   yes) ENABLE_THREADS=1
5173  ;;
5174   no)  ENABLE_THREADS=0
5175  ;;
5176   default) ENABLE_THREADS=1
5177  ;;
5178   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5179 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5180    { (exit 1); exit 1; }; } ;;
5181 esac
5182
5183 cat >>confdefs.h <<_ACEOF
5184 #define ENABLE_THREADS $ENABLE_THREADS
5185 _ACEOF
5186
5187
5188 # Check whether --enable-pthreads was given.
5189 if test "${enable_pthreads+set}" = set; then
5190   enableval=$enable_pthreads;
5191 else
5192   enableval=default
5193 fi
5194
5195 case "$enableval" in
5196   yes) ENABLE_PTHREADS=1
5197  ;;
5198   no)  ENABLE_PTHREADS=0
5199  ;;
5200   default) ENABLE_PTHREADS=1
5201  ;;
5202   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5203 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5204    { (exit 1); exit 1; }; } ;;
5205 esac
5206
5207 # Check whether --enable-pic was given.
5208 if test "${enable_pic+set}" = set; then
5209   enableval=$enable_pic;
5210 else
5211   enableval=default
5212 fi
5213
5214 case "$enableval" in
5215   yes) ENABLE_PIC=1
5216  ;;
5217   no)  ENABLE_PIC=0
5218  ;;
5219   default) ENABLE_PIC=1
5220  ;;
5221   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5222 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5223    { (exit 1); exit 1; }; } ;;
5224 esac
5225
5226 cat >>confdefs.h <<_ACEOF
5227 #define ENABLE_PIC $ENABLE_PIC
5228 _ACEOF
5229
5230
5231 # Check whether --enable-shared was given.
5232 if test "${enable_shared+set}" = set; then
5233   enableval=$enable_shared;
5234 else
5235   enableval=default
5236 fi
5237
5238 case "$enableval" in
5239   yes) ENABLE_SHARED=1
5240  ;;
5241   no)  ENABLE_SHARED=0
5242  ;;
5243   default) ENABLE_SHARED=0
5244  ;;
5245   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5246 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5247    { (exit 1); exit 1; }; } ;;
5248 esac
5249
5250 # Check whether --enable-embed-stdcxx was given.
5251 if test "${enable_embed_stdcxx+set}" = set; then
5252   enableval=$enable_embed_stdcxx;
5253 else
5254   enableval=default
5255 fi
5256
5257 case "$enableval" in
5258   yes) ENABLE_EMBED_STDCXX=1
5259  ;;
5260   no)  ENABLE_EMBED_STDCXX=0
5261  ;;
5262   default) ENABLE_EMBED_STDCXX=1
5263  ;;
5264   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5265 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5266    { (exit 1); exit 1; }; } ;;
5267 esac
5268
5269 # Check whether --enable-timestamps was given.
5270 if test "${enable_timestamps+set}" = set; then
5271   enableval=$enable_timestamps;
5272 else
5273   enableval=default
5274 fi
5275
5276 case "$enableval" in
5277   yes) ENABLE_TIMESTAMPS=1
5278  ;;
5279   no)  ENABLE_TIMESTAMPS=0
5280  ;;
5281   default) ENABLE_TIMESTAMPS=1
5282  ;;
5283   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5284 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5285    { (exit 1); exit 1; }; } ;;
5286 esac
5287
5288 cat >>confdefs.h <<_ACEOF
5289 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5290 _ACEOF
5291
5292
5293 TARGETS_TO_BUILD=""
5294 # Check whether --enable-targets was given.
5295 if test "${enable_targets+set}" = set; then
5296   enableval=$enable_targets;
5297 else
5298   enableval=all
5299 fi
5300
5301 if test "$enableval" = host-only ; then
5302   enableval=host
5303 fi
5304 case "$enableval" in
5305   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5306   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5307       case "$a_target" in
5308         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5309         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5310         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5311         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5312         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5313         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5314         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5315         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5316         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5317         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5318         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5319         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5320         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5321         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5322         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5323         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5324         host) case "$llvm_cv_target_arch" in
5325             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5326             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5327             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5328             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5329             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5330             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5331             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5332             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5333             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5334             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5335             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5336             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5337             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5338             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5339             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5340 echo "$as_me: error: Can not set target to build" >&2;}
5341    { (exit 1); exit 1; }; } ;;
5342           esac ;;
5343         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5344 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5345    { (exit 1); exit 1; }; } ;;
5346       esac
5347   done
5348   ;;
5349 esac
5350 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5351
5352
5353 # Determine whether we are building LLVM support for the native architecture.
5354 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5355 for a_target in $TARGETS_TO_BUILD; do
5356   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5357
5358 cat >>confdefs.h <<_ACEOF
5359 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5360 _ACEOF
5361
5362     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5363     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5364     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5365     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5366     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5367       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5368     fi
5369
5370 cat >>confdefs.h <<_ACEOF
5371 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5372 _ACEOF
5373
5374
5375 cat >>confdefs.h <<_ACEOF
5376 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5377 _ACEOF
5378
5379
5380 cat >>confdefs.h <<_ACEOF
5381 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5382 _ACEOF
5383
5384
5385 cat >>confdefs.h <<_ACEOF
5386 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5387 _ACEOF
5388
5389     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5390
5391 cat >>confdefs.h <<_ACEOF
5392 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5393 _ACEOF
5394
5395     fi
5396   fi
5397 done
5398
5399 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5400 # target feature def files.
5401 LLVM_ENUM_TARGETS=""
5402 LLVM_ENUM_ASM_PRINTERS=""
5403 LLVM_ENUM_ASM_PARSERS=""
5404 LLVM_ENUM_DISASSEMBLERS=""
5405 for target_to_build in $TARGETS_TO_BUILD; do
5406   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5407   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5408     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5409   fi
5410   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5411     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5412   fi
5413   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5414     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5415   fi
5416 done
5417
5418
5419
5420
5421
5422 # Check whether --enable-cbe-printf-a was given.
5423 if test "${enable_cbe_printf_a+set}" = set; then
5424   enableval=$enable_cbe_printf_a;
5425 else
5426   enableval=default
5427 fi
5428
5429 case "$enableval" in
5430   yes) ENABLE_CBE_PRINTF_A=1
5431  ;;
5432   no)  ENABLE_CBE_PRINTF_A=0
5433  ;;
5434   default)  ENABLE_CBE_PRINTF_A=1
5435  ;;
5436   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5437 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5438    { (exit 1); exit 1; }; } ;;
5439 esac
5440
5441 cat >>confdefs.h <<_ACEOF
5442 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5443 _ACEOF
5444
5445
5446
5447 # Check whether --with-llvmgccdir was given.
5448 if test "${with_llvmgccdir+set}" = set; then
5449   withval=$with_llvmgccdir;
5450 else
5451   withval=default
5452 fi
5453
5454 case "$withval" in
5455   default) WITH_LLVMGCCDIR=default ;;
5456   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5457   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5458 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5459    { (exit 1); exit 1; }; } ;;
5460 esac
5461
5462
5463 # Check whether --with-llvmgcc was given.
5464 if test "${with_llvmgcc+set}" = set; then
5465   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5466       WITH_LLVMGCCDIR=""
5467 fi
5468
5469
5470
5471 # Check whether --with-llvmgxx was given.
5472 if test "${with_llvmgxx+set}" = set; then
5473   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5474     WITH_LLVMGCCDIR=""
5475 fi
5476
5477
5478 if test -n "$LLVMGCC"; then
5479    LLVMGCCCOMMAND="$LLVMGCC"
5480 fi
5481
5482 if test -n "$LLVMGXX"; then
5483    LLVMGXXCOMMAND="$LLVMGXX"
5484 fi
5485
5486 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5487    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5488 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5489    { (exit 1); exit 1; }; };
5490 fi
5491
5492 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5493    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5494 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5495    { (exit 1); exit 1; }; };
5496 fi
5497
5498
5499 # Check whether --with-clang was given.
5500 if test "${with_clang+set}" = set; then
5501   withval=$with_clang;
5502 else
5503   with_clang=default
5504 fi
5505
5506
5507
5508 # Check whether --with-built-clang was given.
5509 if test "${with_built_clang+set}" = set; then
5510   withval=$with_built_clang;
5511 else
5512   with_built_clang=check
5513 fi
5514
5515
5516 { echo "$as_me:$LINENO: checking clang compiler" >&5
5517 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5518 WITH_CLANGPATH=""
5519 WITH_BUILT_CLANG=0
5520 if test "$with_clang" != "default"; then
5521    WITH_CLANGPATH="$with_clang"
5522    if ! test -x "$WITH_CLANGPATH"; then
5523      { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5524 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5525    { (exit 1); exit 1; }; }
5526    fi
5527 elif test "$with_built_clang" = "yes"; then
5528    WITH_BUILT_CLANG=1
5529 elif test "$with_built_clang" = "no"; then
5530    WITH_BUILT_CLANG=0
5531 else
5532    if test "$with_built_clang" != "check"; then
5533       { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5534 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5535    { (exit 1); exit 1; }; }
5536    fi
5537
5538    if test -f ${srcdir}/tools/clang/README.txt; then
5539      WITH_BUILT_CLANG=1
5540    fi
5541 fi
5542
5543 if ! test -z "$WITH_CLANGPATH"; then
5544    { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5545 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5546    WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5547 elif test "$WITH_BUILT_CLANG" = "1"; then
5548    { echo "$as_me:$LINENO: result: built" >&5
5549 echo "${ECHO_T}built" >&6; }
5550 else
5551    { echo "$as_me:$LINENO: result: none" >&5
5552 echo "${ECHO_T}none" >&6; }
5553 fi
5554 CLANGPATH=$WITH_CLANGPATH
5555
5556 CLANGXXPATH=$WITH_CLANGXXPATH
5557
5558 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5559
5560
5561
5562 # Check whether --with-optimize-option was given.
5563 if test "${with_optimize_option+set}" = set; then
5564   withval=$with_optimize_option;
5565 else
5566   withval=default
5567 fi
5568
5569 { echo "$as_me:$LINENO: checking optimization flags" >&5
5570 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5571 case "$withval" in
5572   default)
5573     case "$llvm_cv_os_type" in
5574     FreeBSD) optimize_option=-O2 ;;
5575     MingW) optimize_option=-O2 ;;
5576     *)     optimize_option=-O3 ;;
5577     esac ;;
5578   *) optimize_option="$withval" ;;
5579 esac
5580 OPTIMIZE_OPTION=$optimize_option
5581
5582 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5583 echo "${ECHO_T}$optimize_option" >&6; }
5584
5585
5586 # Check whether --with-extra-options was given.
5587 if test "${with_extra_options+set}" = set; then
5588   withval=$with_extra_options;
5589 else
5590   withval=default
5591 fi
5592
5593 case "$withval" in
5594   default) EXTRA_OPTIONS= ;;
5595   *) EXTRA_OPTIONS=$withval ;;
5596 esac
5597 EXTRA_OPTIONS=$EXTRA_OPTIONS
5598
5599
5600
5601 # Check whether --with-extra-ld-options was given.
5602 if test "${with_extra_ld_options+set}" = set; then
5603   withval=$with_extra_ld_options;
5604 else
5605   withval=default
5606 fi
5607
5608 case "$withval" in
5609   default) EXTRA_LD_OPTIONS= ;;
5610   *) EXTRA_LD_OPTIONS=$withval ;;
5611 esac
5612 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5613
5614
5615 # Check whether --enable-bindings was given.
5616 if test "${enable_bindings+set}" = set; then
5617   enableval=$enable_bindings;
5618 else
5619   enableval=default
5620 fi
5621
5622 BINDINGS_TO_BUILD=""
5623 case "$enableval" in
5624   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5625   all ) BINDINGS_TO_BUILD="ocaml" ;;
5626   none | no) BINDINGS_TO_BUILD="" ;;
5627   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5628       case "$a_binding" in
5629         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5630         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5631 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5632    { (exit 1); exit 1; }; } ;;
5633       esac
5634   done
5635   ;;
5636 esac
5637
5638
5639 # Check whether --with-ocaml-libdir was given.
5640 if test "${with_ocaml_libdir+set}" = set; then
5641   withval=$with_ocaml_libdir;
5642 else
5643   withval=auto
5644 fi
5645
5646 case "$withval" in
5647   auto) with_ocaml_libdir="$withval" ;;
5648   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5649   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5650 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5651    { (exit 1); exit 1; }; } ;;
5652 esac
5653
5654
5655 # Check whether --with-clang-resource-dir was given.
5656 if test "${with_clang_resource_dir+set}" = set; then
5657   withval=$with_clang_resource_dir;
5658 else
5659   withval=""
5660 fi
5661
5662
5663 cat >>confdefs.h <<_ACEOF
5664 #define CLANG_RESOURCE_DIR "$withval"
5665 _ACEOF
5666
5667
5668
5669 # Check whether --with-c-include-dirs was given.
5670 if test "${with_c_include_dirs+set}" = set; then
5671   withval=$with_c_include_dirs;
5672 else
5673   withval=""
5674 fi
5675
5676
5677 cat >>confdefs.h <<_ACEOF
5678 #define C_INCLUDE_DIRS "$withval"
5679 _ACEOF
5680
5681
5682
5683 # Check whether --with-cxx-include-root was given.
5684 if test "${with_cxx_include_root+set}" = set; then
5685   withval=$with_cxx_include_root;
5686 else
5687   withval=""
5688 fi
5689
5690
5691 cat >>confdefs.h <<_ACEOF
5692 #define CXX_INCLUDE_ROOT "$withval"
5693 _ACEOF
5694
5695
5696
5697 # Check whether --with-cxx-include-arch was given.
5698 if test "${with_cxx_include_arch+set}" = set; then
5699   withval=$with_cxx_include_arch;
5700 else
5701   withval=""
5702 fi
5703
5704
5705 cat >>confdefs.h <<_ACEOF
5706 #define CXX_INCLUDE_ARCH "$withval"
5707 _ACEOF
5708
5709
5710
5711 # Check whether --with-cxx-include-32bit-dir was given.
5712 if test "${with_cxx_include_32bit_dir+set}" = set; then
5713   withval=$with_cxx_include_32bit_dir;
5714 else
5715   withval=""
5716 fi
5717
5718
5719 cat >>confdefs.h <<_ACEOF
5720 #define CXX_INCLUDE_32BIT_DIR "$withval"
5721 _ACEOF
5722
5723
5724
5725 # Check whether --with-cxx-include-64bit-dir was given.
5726 if test "${with_cxx_include_64bit_dir+set}" = set; then
5727   withval=$with_cxx_include_64bit_dir;
5728 else
5729   withval=""
5730 fi
5731
5732
5733 cat >>confdefs.h <<_ACEOF
5734 #define CXX_INCLUDE_64BIT_DIR "$withval"
5735 _ACEOF
5736
5737
5738
5739 # Check whether --with-binutils-include was given.
5740 if test "${with_binutils_include+set}" = set; then
5741   withval=$with_binutils_include;
5742 else
5743   withval=default
5744 fi
5745
5746 case "$withval" in
5747   default) WITH_BINUTILS_INCDIR=default ;;
5748   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5749   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5750 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5751    { (exit 1); exit 1; }; } ;;
5752 esac
5753 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5754   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5755
5756   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5757      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5758      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5759 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5760    { (exit 1); exit 1; }; };
5761   fi
5762 fi
5763
5764
5765 # Check whether --with-bug-report-url was given.
5766 if test "${with_bug_report_url+set}" = set; then
5767   withval=$with_bug_report_url;
5768 else
5769   withval="http://llvm.org/bugs/"
5770 fi
5771
5772
5773 cat >>confdefs.h <<_ACEOF
5774 #define BUG_REPORT_URL "$withval"
5775 _ACEOF
5776
5777
5778 # Check whether --enable-libffi was given.
5779 if test "${enable_libffi+set}" = set; then
5780   enableval=$enable_libffi; case "$enableval" in
5781     yes) llvm_cv_enable_libffi="yes" ;;
5782     no)  llvm_cv_enable_libffi="no"  ;;
5783     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5784 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5785    { (exit 1); exit 1; }; } ;;
5786   esac
5787 else
5788   llvm_cv_enable_libffi=no
5789 fi
5790
5791
5792
5793 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5794 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5795 if test "${lt_cv_path_NM+set}" = set; then
5796   echo $ECHO_N "(cached) $ECHO_C" >&6
5797 else
5798   if test -n "$NM"; then
5799   # Let the user override the test.
5800   lt_cv_path_NM="$NM"
5801 else
5802   lt_nm_to_check="${ac_tool_prefix}nm"
5803   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5804     lt_nm_to_check="$lt_nm_to_check nm"
5805   fi
5806   for lt_tmp_nm in $lt_nm_to_check; do
5807     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5808     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5809       IFS="$lt_save_ifs"
5810       test -z "$ac_dir" && ac_dir=.
5811       tmp_nm="$ac_dir/$lt_tmp_nm"
5812       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5813         # Check to see if the nm accepts a BSD-compat flag.
5814         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5815         #   nm: unknown option "B" ignored
5816         # Tru64's nm complains that /dev/null is an invalid object file
5817         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5818         */dev/null* | *'Invalid file or object type'*)
5819           lt_cv_path_NM="$tmp_nm -B"
5820           break
5821           ;;
5822         *)
5823           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5824           */dev/null*)
5825             lt_cv_path_NM="$tmp_nm -p"
5826             break
5827             ;;
5828           *)
5829             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5830             continue # so that we can try to find one that supports BSD flags
5831             ;;
5832           esac
5833           ;;
5834         esac
5835       fi
5836     done
5837     IFS="$lt_save_ifs"
5838   done
5839   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5840 fi
5841 fi
5842 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5843 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5844 NM="$lt_cv_path_NM"
5845
5846
5847
5848 { echo "$as_me:$LINENO: checking for GNU make" >&5
5849 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5850 if test "${llvm_cv_gnu_make_command+set}" = set; then
5851   echo $ECHO_N "(cached) $ECHO_C" >&6
5852 else
5853   llvm_cv_gnu_make_command=''
5854  for a in "$MAKE" make gmake gnumake ; do
5855   if test -z "$a" ; then continue ; fi ;
5856   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5857   then
5858    llvm_cv_gnu_make_command=$a ;
5859    break;
5860   fi
5861  done
5862 fi
5863 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5864 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5865  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5866    ifGNUmake='' ;
5867  else
5868    ifGNUmake='#' ;
5869    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5870 echo "${ECHO_T}\"Not found\"" >&6; };
5871  fi
5872
5873
5874 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5875 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5876 LN_S=$as_ln_s
5877 if test "$LN_S" = "ln -s"; then
5878   { echo "$as_me:$LINENO: result: yes" >&5
5879 echo "${ECHO_T}yes" >&6; }
5880 else
5881   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5882 echo "${ECHO_T}no, using $LN_S" >&6; }
5883 fi
5884
5885 # Extract the first word of "cmp", so it can be a program name with args.
5886 set dummy cmp; ac_word=$2
5887 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5889 if test "${ac_cv_path_CMP+set}" = set; then
5890   echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892   case $CMP in
5893   [\\/]* | ?:[\\/]*)
5894   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5895   ;;
5896   *)
5897   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5899 do
5900   IFS=$as_save_IFS
5901   test -z "$as_dir" && as_dir=.
5902   for ac_exec_ext in '' $ac_executable_extensions; do
5903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5904     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5906     break 2
5907   fi
5908 done
5909 done
5910 IFS=$as_save_IFS
5911
5912   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5913   ;;
5914 esac
5915 fi
5916 CMP=$ac_cv_path_CMP
5917 if test -n "$CMP"; then
5918   { echo "$as_me:$LINENO: result: $CMP" >&5
5919 echo "${ECHO_T}$CMP" >&6; }
5920 else
5921   { echo "$as_me:$LINENO: result: no" >&5
5922 echo "${ECHO_T}no" >&6; }
5923 fi
5924
5925
5926 # Extract the first word of "cp", so it can be a program name with args.
5927 set dummy cp; ac_word=$2
5928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5930 if test "${ac_cv_path_CP+set}" = set; then
5931   echo $ECHO_N "(cached) $ECHO_C" >&6
5932 else
5933   case $CP in
5934   [\\/]* | ?:[\\/]*)
5935   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5936   ;;
5937   *)
5938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 for as_dir in $PATH
5940 do
5941   IFS=$as_save_IFS
5942   test -z "$as_dir" && as_dir=.
5943   for ac_exec_ext in '' $ac_executable_extensions; do
5944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5945     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5947     break 2
5948   fi
5949 done
5950 done
5951 IFS=$as_save_IFS
5952
5953   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5954   ;;
5955 esac
5956 fi
5957 CP=$ac_cv_path_CP
5958 if test -n "$CP"; then
5959   { echo "$as_me:$LINENO: result: $CP" >&5
5960 echo "${ECHO_T}$CP" >&6; }
5961 else
5962   { echo "$as_me:$LINENO: result: no" >&5
5963 echo "${ECHO_T}no" >&6; }
5964 fi
5965
5966
5967 # Extract the first word of "date", so it can be a program name with args.
5968 set dummy date; ac_word=$2
5969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5971 if test "${ac_cv_path_DATE+set}" = set; then
5972   echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974   case $DATE in
5975   [\\/]* | ?:[\\/]*)
5976   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5977   ;;
5978   *)
5979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 for as_dir in $PATH
5981 do
5982   IFS=$as_save_IFS
5983   test -z "$as_dir" && as_dir=.
5984   for ac_exec_ext in '' $ac_executable_extensions; do
5985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5986     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5988     break 2
5989   fi
5990 done
5991 done
5992 IFS=$as_save_IFS
5993
5994   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5995   ;;
5996 esac
5997 fi
5998 DATE=$ac_cv_path_DATE
5999 if test -n "$DATE"; then
6000   { echo "$as_me:$LINENO: result: $DATE" >&5
6001 echo "${ECHO_T}$DATE" >&6; }
6002 else
6003   { echo "$as_me:$LINENO: result: no" >&5
6004 echo "${ECHO_T}no" >&6; }
6005 fi
6006
6007
6008 # Extract the first word of "find", so it can be a program name with args.
6009 set dummy find; ac_word=$2
6010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6012 if test "${ac_cv_path_FIND+set}" = set; then
6013   echo $ECHO_N "(cached) $ECHO_C" >&6
6014 else
6015   case $FIND in
6016   [\\/]* | ?:[\\/]*)
6017   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6018   ;;
6019   *)
6020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 for as_dir in $PATH
6022 do
6023   IFS=$as_save_IFS
6024   test -z "$as_dir" && as_dir=.
6025   for ac_exec_ext in '' $ac_executable_extensions; do
6026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6027     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6029     break 2
6030   fi
6031 done
6032 done
6033 IFS=$as_save_IFS
6034
6035   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6036   ;;
6037 esac
6038 fi
6039 FIND=$ac_cv_path_FIND
6040 if test -n "$FIND"; then
6041   { echo "$as_me:$LINENO: result: $FIND" >&5
6042 echo "${ECHO_T}$FIND" >&6; }
6043 else
6044   { echo "$as_me:$LINENO: result: no" >&5
6045 echo "${ECHO_T}no" >&6; }
6046 fi
6047
6048
6049 # Extract the first word of "grep", so it can be a program name with args.
6050 set dummy grep; ac_word=$2
6051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6053 if test "${ac_cv_path_GREP+set}" = set; then
6054   echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056   case $GREP in
6057   [\\/]* | ?:[\\/]*)
6058   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6059   ;;
6060   *)
6061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH
6063 do
6064   IFS=$as_save_IFS
6065   test -z "$as_dir" && as_dir=.
6066   for ac_exec_ext in '' $ac_executable_extensions; do
6067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6068     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6070     break 2
6071   fi
6072 done
6073 done
6074 IFS=$as_save_IFS
6075
6076   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6077   ;;
6078 esac
6079 fi
6080 GREP=$ac_cv_path_GREP
6081 if test -n "$GREP"; then
6082   { echo "$as_me:$LINENO: result: $GREP" >&5
6083 echo "${ECHO_T}$GREP" >&6; }
6084 else
6085   { echo "$as_me:$LINENO: result: no" >&5
6086 echo "${ECHO_T}no" >&6; }
6087 fi
6088
6089
6090 # Extract the first word of "mkdir", so it can be a program name with args.
6091 set dummy mkdir; ac_word=$2
6092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6094 if test "${ac_cv_path_MKDIR+set}" = set; then
6095   echo $ECHO_N "(cached) $ECHO_C" >&6
6096 else
6097   case $MKDIR in
6098   [\\/]* | ?:[\\/]*)
6099   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6100   ;;
6101   *)
6102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 for as_dir in $PATH
6104 do
6105   IFS=$as_save_IFS
6106   test -z "$as_dir" && as_dir=.
6107   for ac_exec_ext in '' $ac_executable_extensions; do
6108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6109     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6111     break 2
6112   fi
6113 done
6114 done
6115 IFS=$as_save_IFS
6116
6117   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6118   ;;
6119 esac
6120 fi
6121 MKDIR=$ac_cv_path_MKDIR
6122 if test -n "$MKDIR"; then
6123   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6124 echo "${ECHO_T}$MKDIR" >&6; }
6125 else
6126   { echo "$as_me:$LINENO: result: no" >&5
6127 echo "${ECHO_T}no" >&6; }
6128 fi
6129
6130
6131 # Extract the first word of "mv", so it can be a program name with args.
6132 set dummy mv; ac_word=$2
6133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6135 if test "${ac_cv_path_MV+set}" = set; then
6136   echo $ECHO_N "(cached) $ECHO_C" >&6
6137 else
6138   case $MV in
6139   [\\/]* | ?:[\\/]*)
6140   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6141   ;;
6142   *)
6143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 for as_dir in $PATH
6145 do
6146   IFS=$as_save_IFS
6147   test -z "$as_dir" && as_dir=.
6148   for ac_exec_ext in '' $ac_executable_extensions; do
6149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6150     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6152     break 2
6153   fi
6154 done
6155 done
6156 IFS=$as_save_IFS
6157
6158   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6159   ;;
6160 esac
6161 fi
6162 MV=$ac_cv_path_MV
6163 if test -n "$MV"; then
6164   { echo "$as_me:$LINENO: result: $MV" >&5
6165 echo "${ECHO_T}$MV" >&6; }
6166 else
6167   { echo "$as_me:$LINENO: result: no" >&5
6168 echo "${ECHO_T}no" >&6; }
6169 fi
6170
6171
6172 if test -n "$ac_tool_prefix"; then
6173   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6174 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6177 if test "${ac_cv_prog_RANLIB+set}" = set; then
6178   echo $ECHO_N "(cached) $ECHO_C" >&6
6179 else
6180   if test -n "$RANLIB"; then
6181   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6182 else
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 for as_dir in $PATH
6185 do
6186   IFS=$as_save_IFS
6187   test -z "$as_dir" && as_dir=.
6188   for ac_exec_ext in '' $ac_executable_extensions; do
6189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6190     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6192     break 2
6193   fi
6194 done
6195 done
6196 IFS=$as_save_IFS
6197
6198 fi
6199 fi
6200 RANLIB=$ac_cv_prog_RANLIB
6201 if test -n "$RANLIB"; then
6202   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6203 echo "${ECHO_T}$RANLIB" >&6; }
6204 else
6205   { echo "$as_me:$LINENO: result: no" >&5
6206 echo "${ECHO_T}no" >&6; }
6207 fi
6208
6209
6210 fi
6211 if test -z "$ac_cv_prog_RANLIB"; then
6212   ac_ct_RANLIB=$RANLIB
6213   # Extract the first word of "ranlib", so it can be a program name with args.
6214 set dummy ranlib; ac_word=$2
6215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6217 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6218   echo $ECHO_N "(cached) $ECHO_C" >&6
6219 else
6220   if test -n "$ac_ct_RANLIB"; then
6221   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6222 else
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 for as_dir in $PATH
6225 do
6226   IFS=$as_save_IFS
6227   test -z "$as_dir" && as_dir=.
6228   for ac_exec_ext in '' $ac_executable_extensions; do
6229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6230     ac_cv_prog_ac_ct_RANLIB="ranlib"
6231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6232     break 2
6233   fi
6234 done
6235 done
6236 IFS=$as_save_IFS
6237
6238 fi
6239 fi
6240 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6241 if test -n "$ac_ct_RANLIB"; then
6242   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6243 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6244 else
6245   { echo "$as_me:$LINENO: result: no" >&5
6246 echo "${ECHO_T}no" >&6; }
6247 fi
6248
6249   if test "x$ac_ct_RANLIB" = x; then
6250     RANLIB=":"
6251   else
6252     case $cross_compiling:$ac_tool_warned in
6253 yes:)
6254 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6255 whose name does not start with the host triplet.  If you think this
6256 configuration is useful to you, please write to autoconf@gnu.org." >&5
6257 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6258 whose name does not start with the host triplet.  If you think this
6259 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6260 ac_tool_warned=yes ;;
6261 esac
6262     RANLIB=$ac_ct_RANLIB
6263   fi
6264 else
6265   RANLIB="$ac_cv_prog_RANLIB"
6266 fi
6267
6268 if test -n "$ac_tool_prefix"; then
6269   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6270 set dummy ${ac_tool_prefix}ar; ac_word=$2
6271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6273 if test "${ac_cv_prog_AR+set}" = set; then
6274   echo $ECHO_N "(cached) $ECHO_C" >&6
6275 else
6276   if test -n "$AR"; then
6277   ac_cv_prog_AR="$AR" # Let the user override the test.
6278 else
6279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280 for as_dir in $PATH
6281 do
6282   IFS=$as_save_IFS
6283   test -z "$as_dir" && as_dir=.
6284   for ac_exec_ext in '' $ac_executable_extensions; do
6285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6286     ac_cv_prog_AR="${ac_tool_prefix}ar"
6287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6288     break 2
6289   fi
6290 done
6291 done
6292 IFS=$as_save_IFS
6293
6294 fi
6295 fi
6296 AR=$ac_cv_prog_AR
6297 if test -n "$AR"; then
6298   { echo "$as_me:$LINENO: result: $AR" >&5
6299 echo "${ECHO_T}$AR" >&6; }
6300 else
6301   { echo "$as_me:$LINENO: result: no" >&5
6302 echo "${ECHO_T}no" >&6; }
6303 fi
6304
6305
6306 fi
6307 if test -z "$ac_cv_prog_AR"; then
6308   ac_ct_AR=$AR
6309   # Extract the first word of "ar", so it can be a program name with args.
6310 set dummy ar; ac_word=$2
6311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6313 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6314   echo $ECHO_N "(cached) $ECHO_C" >&6
6315 else
6316   if test -n "$ac_ct_AR"; then
6317   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6318 else
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 for as_dir in $PATH
6321 do
6322   IFS=$as_save_IFS
6323   test -z "$as_dir" && as_dir=.
6324   for ac_exec_ext in '' $ac_executable_extensions; do
6325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6326     ac_cv_prog_ac_ct_AR="ar"
6327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6328     break 2
6329   fi
6330 done
6331 done
6332 IFS=$as_save_IFS
6333
6334 fi
6335 fi
6336 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6337 if test -n "$ac_ct_AR"; then
6338   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6339 echo "${ECHO_T}$ac_ct_AR" >&6; }
6340 else
6341   { echo "$as_me:$LINENO: result: no" >&5
6342 echo "${ECHO_T}no" >&6; }
6343 fi
6344
6345   if test "x$ac_ct_AR" = x; then
6346     AR="false"
6347   else
6348     case $cross_compiling:$ac_tool_warned in
6349 yes:)
6350 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6351 whose name does not start with the host triplet.  If you think this
6352 configuration is useful to you, please write to autoconf@gnu.org." >&5
6353 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6354 whose name does not start with the host triplet.  If you think this
6355 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6356 ac_tool_warned=yes ;;
6357 esac
6358     AR=$ac_ct_AR
6359   fi
6360 else
6361   AR="$ac_cv_prog_AR"
6362 fi
6363
6364 # Extract the first word of "rm", so it can be a program name with args.
6365 set dummy rm; ac_word=$2
6366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6368 if test "${ac_cv_path_RM+set}" = set; then
6369   echo $ECHO_N "(cached) $ECHO_C" >&6
6370 else
6371   case $RM in
6372   [\\/]* | ?:[\\/]*)
6373   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6374   ;;
6375   *)
6376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 for as_dir in $PATH
6378 do
6379   IFS=$as_save_IFS
6380   test -z "$as_dir" && as_dir=.
6381   for ac_exec_ext in '' $ac_executable_extensions; do
6382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6383     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6385     break 2
6386   fi
6387 done
6388 done
6389 IFS=$as_save_IFS
6390
6391   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6392   ;;
6393 esac
6394 fi
6395 RM=$ac_cv_path_RM
6396 if test -n "$RM"; then
6397   { echo "$as_me:$LINENO: result: $RM" >&5
6398 echo "${ECHO_T}$RM" >&6; }
6399 else
6400   { echo "$as_me:$LINENO: result: no" >&5
6401 echo "${ECHO_T}no" >&6; }
6402 fi
6403
6404
6405 # Extract the first word of "sed", so it can be a program name with args.
6406 set dummy sed; ac_word=$2
6407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6409 if test "${ac_cv_path_SED+set}" = set; then
6410   echo $ECHO_N "(cached) $ECHO_C" >&6
6411 else
6412   case $SED in
6413   [\\/]* | ?:[\\/]*)
6414   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6415   ;;
6416   *)
6417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418 for as_dir in $PATH
6419 do
6420   IFS=$as_save_IFS
6421   test -z "$as_dir" && as_dir=.
6422   for ac_exec_ext in '' $ac_executable_extensions; do
6423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6424     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6426     break 2
6427   fi
6428 done
6429 done
6430 IFS=$as_save_IFS
6431
6432   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6433   ;;
6434 esac
6435 fi
6436 SED=$ac_cv_path_SED
6437 if test -n "$SED"; then
6438   { echo "$as_me:$LINENO: result: $SED" >&5
6439 echo "${ECHO_T}$SED" >&6; }
6440 else
6441   { echo "$as_me:$LINENO: result: no" >&5
6442 echo "${ECHO_T}no" >&6; }
6443 fi
6444
6445
6446 # Extract the first word of "tar", so it can be a program name with args.
6447 set dummy tar; ac_word=$2
6448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6450 if test "${ac_cv_path_TAR+set}" = set; then
6451   echo $ECHO_N "(cached) $ECHO_C" >&6
6452 else
6453   case $TAR in
6454   [\\/]* | ?:[\\/]*)
6455   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6456   ;;
6457   *)
6458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 for as_dir in $PATH
6460 do
6461   IFS=$as_save_IFS
6462   test -z "$as_dir" && as_dir=.
6463   for ac_exec_ext in '' $ac_executable_extensions; do
6464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6465     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6467     break 2
6468   fi
6469 done
6470 done
6471 IFS=$as_save_IFS
6472
6473   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6474   ;;
6475 esac
6476 fi
6477 TAR=$ac_cv_path_TAR
6478 if test -n "$TAR"; then
6479   { echo "$as_me:$LINENO: result: $TAR" >&5
6480 echo "${ECHO_T}$TAR" >&6; }
6481 else
6482   { echo "$as_me:$LINENO: result: no" >&5
6483 echo "${ECHO_T}no" >&6; }
6484 fi
6485
6486
6487 # Extract the first word of "pwd", so it can be a program name with args.
6488 set dummy pwd; ac_word=$2
6489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6491 if test "${ac_cv_path_BINPWD+set}" = set; then
6492   echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494   case $BINPWD in
6495   [\\/]* | ?:[\\/]*)
6496   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6497   ;;
6498   *)
6499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500 for as_dir in $PATH
6501 do
6502   IFS=$as_save_IFS
6503   test -z "$as_dir" && as_dir=.
6504   for ac_exec_ext in '' $ac_executable_extensions; do
6505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6506     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6508     break 2
6509   fi
6510 done
6511 done
6512 IFS=$as_save_IFS
6513
6514   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6515   ;;
6516 esac
6517 fi
6518 BINPWD=$ac_cv_path_BINPWD
6519 if test -n "$BINPWD"; then
6520   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6521 echo "${ECHO_T}$BINPWD" >&6; }
6522 else
6523   { echo "$as_me:$LINENO: result: no" >&5
6524 echo "${ECHO_T}no" >&6; }
6525 fi
6526
6527
6528
6529 # Extract the first word of "Graphviz", so it can be a program name with args.
6530 set dummy Graphviz; ac_word=$2
6531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6533 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6534   echo $ECHO_N "(cached) $ECHO_C" >&6
6535 else
6536   case $GRAPHVIZ in
6537   [\\/]* | ?:[\\/]*)
6538   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6539   ;;
6540   *)
6541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 for as_dir in $PATH
6543 do
6544   IFS=$as_save_IFS
6545   test -z "$as_dir" && as_dir=.
6546   for ac_exec_ext in '' $ac_executable_extensions; do
6547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6548     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6550     break 2
6551   fi
6552 done
6553 done
6554 IFS=$as_save_IFS
6555
6556   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6557   ;;
6558 esac
6559 fi
6560 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6561 if test -n "$GRAPHVIZ"; then
6562   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6563 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6564 else
6565   { echo "$as_me:$LINENO: result: no" >&5
6566 echo "${ECHO_T}no" >&6; }
6567 fi
6568
6569
6570 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6571
6572 cat >>confdefs.h <<\_ACEOF
6573 #define HAVE_GRAPHVIZ 1
6574 _ACEOF
6575
6576     if test "$llvm_cv_os_type" = "MingW" ; then
6577     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6578   fi
6579
6580 cat >>confdefs.h <<_ACEOF
6581 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6582 _ACEOF
6583
6584 fi
6585 # Extract the first word of "dot", so it can be a program name with args.
6586 set dummy dot; ac_word=$2
6587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6589 if test "${ac_cv_path_DOT+set}" = set; then
6590   echo $ECHO_N "(cached) $ECHO_C" >&6
6591 else
6592   case $DOT in
6593   [\\/]* | ?:[\\/]*)
6594   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6595   ;;
6596   *)
6597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 for as_dir in $PATH
6599 do
6600   IFS=$as_save_IFS
6601   test -z "$as_dir" && as_dir=.
6602   for ac_exec_ext in '' $ac_executable_extensions; do
6603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6604     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6606     break 2
6607   fi
6608 done
6609 done
6610 IFS=$as_save_IFS
6611
6612   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6613   ;;
6614 esac
6615 fi
6616 DOT=$ac_cv_path_DOT
6617 if test -n "$DOT"; then
6618   { echo "$as_me:$LINENO: result: $DOT" >&5
6619 echo "${ECHO_T}$DOT" >&6; }
6620 else
6621   { echo "$as_me:$LINENO: result: no" >&5
6622 echo "${ECHO_T}no" >&6; }
6623 fi
6624
6625
6626 if test "$DOT" != "echo dot" ; then
6627
6628 cat >>confdefs.h <<\_ACEOF
6629 #define HAVE_DOT 1
6630 _ACEOF
6631
6632     if test "$llvm_cv_os_type" = "MingW" ; then
6633     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6634   fi
6635
6636 cat >>confdefs.h <<_ACEOF
6637 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6638 _ACEOF
6639
6640 fi
6641 # Extract the first word of "fdp", so it can be a program name with args.
6642 set dummy fdp; ac_word=$2
6643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6645 if test "${ac_cv_path_FDP+set}" = set; then
6646   echo $ECHO_N "(cached) $ECHO_C" >&6
6647 else
6648   case $FDP in
6649   [\\/]* | ?:[\\/]*)
6650   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6651   ;;
6652   *)
6653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 for as_dir in $PATH
6655 do
6656   IFS=$as_save_IFS
6657   test -z "$as_dir" && as_dir=.
6658   for ac_exec_ext in '' $ac_executable_extensions; do
6659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6660     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6662     break 2
6663   fi
6664 done
6665 done
6666 IFS=$as_save_IFS
6667
6668   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6669   ;;
6670 esac
6671 fi
6672 FDP=$ac_cv_path_FDP
6673 if test -n "$FDP"; then
6674   { echo "$as_me:$LINENO: result: $FDP" >&5
6675 echo "${ECHO_T}$FDP" >&6; }
6676 else
6677   { echo "$as_me:$LINENO: result: no" >&5
6678 echo "${ECHO_T}no" >&6; }
6679 fi
6680
6681
6682 if test "$FDP" != "echo fdp" ; then
6683
6684 cat >>confdefs.h <<\_ACEOF
6685 #define HAVE_FDP 1
6686 _ACEOF
6687
6688     if test "$llvm_cv_os_type" = "MingW" ; then
6689     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6690   fi
6691
6692 cat >>confdefs.h <<_ACEOF
6693 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6694 _ACEOF
6695
6696 fi
6697 # Extract the first word of "neato", so it can be a program name with args.
6698 set dummy neato; ac_word=$2
6699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6701 if test "${ac_cv_path_NEATO+set}" = set; then
6702   echo $ECHO_N "(cached) $ECHO_C" >&6
6703 else
6704   case $NEATO in
6705   [\\/]* | ?:[\\/]*)
6706   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6707   ;;
6708   *)
6709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6711 do
6712   IFS=$as_save_IFS
6713   test -z "$as_dir" && as_dir=.
6714   for ac_exec_ext in '' $ac_executable_extensions; do
6715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6716     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6718     break 2
6719   fi
6720 done
6721 done
6722 IFS=$as_save_IFS
6723
6724   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6725   ;;
6726 esac
6727 fi
6728 NEATO=$ac_cv_path_NEATO
6729 if test -n "$NEATO"; then
6730   { echo "$as_me:$LINENO: result: $NEATO" >&5
6731 echo "${ECHO_T}$NEATO" >&6; }
6732 else
6733   { echo "$as_me:$LINENO: result: no" >&5
6734 echo "${ECHO_T}no" >&6; }
6735 fi
6736
6737
6738 if test "$NEATO" != "echo neato" ; then
6739
6740 cat >>confdefs.h <<\_ACEOF
6741 #define HAVE_NEATO 1
6742 _ACEOF
6743
6744     if test "$llvm_cv_os_type" = "MingW" ; then
6745     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6746   fi
6747
6748 cat >>confdefs.h <<_ACEOF
6749 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6750 _ACEOF
6751
6752 fi
6753 # Extract the first word of "twopi", so it can be a program name with args.
6754 set dummy twopi; ac_word=$2
6755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6757 if test "${ac_cv_path_TWOPI+set}" = set; then
6758   echo $ECHO_N "(cached) $ECHO_C" >&6
6759 else
6760   case $TWOPI in
6761   [\\/]* | ?:[\\/]*)
6762   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6763   ;;
6764   *)
6765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 for as_dir in $PATH
6767 do
6768   IFS=$as_save_IFS
6769   test -z "$as_dir" && as_dir=.
6770   for ac_exec_ext in '' $ac_executable_extensions; do
6771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6772     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6774     break 2
6775   fi
6776 done
6777 done
6778 IFS=$as_save_IFS
6779
6780   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6781   ;;
6782 esac
6783 fi
6784 TWOPI=$ac_cv_path_TWOPI
6785 if test -n "$TWOPI"; then
6786   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6787 echo "${ECHO_T}$TWOPI" >&6; }
6788 else
6789   { echo "$as_me:$LINENO: result: no" >&5
6790 echo "${ECHO_T}no" >&6; }
6791 fi
6792
6793
6794 if test "$TWOPI" != "echo twopi" ; then
6795
6796 cat >>confdefs.h <<\_ACEOF
6797 #define HAVE_TWOPI 1
6798 _ACEOF
6799
6800     if test "$llvm_cv_os_type" = "MingW" ; then
6801     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6802   fi
6803
6804 cat >>confdefs.h <<_ACEOF
6805 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6806 _ACEOF
6807
6808 fi
6809 # Extract the first word of "circo", so it can be a program name with args.
6810 set dummy circo; ac_word=$2
6811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6813 if test "${ac_cv_path_CIRCO+set}" = set; then
6814   echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816   case $CIRCO in
6817   [\\/]* | ?:[\\/]*)
6818   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6819   ;;
6820   *)
6821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 for as_dir in $PATH
6823 do
6824   IFS=$as_save_IFS
6825   test -z "$as_dir" && as_dir=.
6826   for ac_exec_ext in '' $ac_executable_extensions; do
6827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6828     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6830     break 2
6831   fi
6832 done
6833 done
6834 IFS=$as_save_IFS
6835
6836   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6837   ;;
6838 esac
6839 fi
6840 CIRCO=$ac_cv_path_CIRCO
6841 if test -n "$CIRCO"; then
6842   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6843 echo "${ECHO_T}$CIRCO" >&6; }
6844 else
6845   { echo "$as_me:$LINENO: result: no" >&5
6846 echo "${ECHO_T}no" >&6; }
6847 fi
6848
6849
6850 if test "$CIRCO" != "echo circo" ; then
6851
6852 cat >>confdefs.h <<\_ACEOF
6853 #define HAVE_CIRCO 1
6854 _ACEOF
6855
6856     if test "$llvm_cv_os_type" = "MingW" ; then
6857     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6858   fi
6859
6860 cat >>confdefs.h <<_ACEOF
6861 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6862 _ACEOF
6863
6864 fi
6865 for ac_prog in gv gsview32
6866 do
6867   # Extract the first word of "$ac_prog", so it can be a program name with args.
6868 set dummy $ac_prog; ac_word=$2
6869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6871 if test "${ac_cv_path_GV+set}" = set; then
6872   echo $ECHO_N "(cached) $ECHO_C" >&6
6873 else
6874   case $GV in
6875   [\\/]* | ?:[\\/]*)
6876   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6877   ;;
6878   *)
6879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 for as_dir in $PATH
6881 do
6882   IFS=$as_save_IFS
6883   test -z "$as_dir" && as_dir=.
6884   for ac_exec_ext in '' $ac_executable_extensions; do
6885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6886     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6888     break 2
6889   fi
6890 done
6891 done
6892 IFS=$as_save_IFS
6893
6894   ;;
6895 esac
6896 fi
6897 GV=$ac_cv_path_GV
6898 if test -n "$GV"; then
6899   { echo "$as_me:$LINENO: result: $GV" >&5
6900 echo "${ECHO_T}$GV" >&6; }
6901 else
6902   { echo "$as_me:$LINENO: result: no" >&5
6903 echo "${ECHO_T}no" >&6; }
6904 fi
6905
6906
6907   test -n "$GV" && break
6908 done
6909 test -n "$GV" || GV="echo gv"
6910
6911 if test "$GV" != "echo gv" ; then
6912
6913 cat >>confdefs.h <<\_ACEOF
6914 #define HAVE_GV 1
6915 _ACEOF
6916
6917     if test "$llvm_cv_os_type" = "MingW" ; then
6918     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6919   fi
6920
6921 cat >>confdefs.h <<_ACEOF
6922 #define LLVM_PATH_GV "$GV${EXEEXT}"
6923 _ACEOF
6924
6925 fi
6926 # Extract the first word of "dotty", so it can be a program name with args.
6927 set dummy dotty; ac_word=$2
6928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6930 if test "${ac_cv_path_DOTTY+set}" = set; then
6931   echo $ECHO_N "(cached) $ECHO_C" >&6
6932 else
6933   case $DOTTY in
6934   [\\/]* | ?:[\\/]*)
6935   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6936   ;;
6937   *)
6938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 for as_dir in $PATH
6940 do
6941   IFS=$as_save_IFS
6942   test -z "$as_dir" && as_dir=.
6943   for ac_exec_ext in '' $ac_executable_extensions; do
6944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6945     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6947     break 2
6948   fi
6949 done
6950 done
6951 IFS=$as_save_IFS
6952
6953   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6954   ;;
6955 esac
6956 fi
6957 DOTTY=$ac_cv_path_DOTTY
6958 if test -n "$DOTTY"; then
6959   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6960 echo "${ECHO_T}$DOTTY" >&6; }
6961 else
6962   { echo "$as_me:$LINENO: result: no" >&5
6963 echo "${ECHO_T}no" >&6; }
6964 fi
6965
6966
6967 if test "$DOTTY" != "echo dotty" ; then
6968
6969 cat >>confdefs.h <<\_ACEOF
6970 #define HAVE_DOTTY 1
6971 _ACEOF
6972
6973     if test "$llvm_cv_os_type" = "MingW" ; then
6974     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6975   fi
6976
6977 cat >>confdefs.h <<_ACEOF
6978 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6979 _ACEOF
6980
6981 fi
6982 # Extract the first word of "xdot.py", so it can be a program name with args.
6983 set dummy xdot.py; ac_word=$2
6984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6986 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6987   echo $ECHO_N "(cached) $ECHO_C" >&6
6988 else
6989   case $XDOT_PY in
6990   [\\/]* | ?:[\\/]*)
6991   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6992   ;;
6993   *)
6994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 for as_dir in $PATH
6996 do
6997   IFS=$as_save_IFS
6998   test -z "$as_dir" && as_dir=.
6999   for ac_exec_ext in '' $ac_executable_extensions; do
7000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7001     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7003     break 2
7004   fi
7005 done
7006 done
7007 IFS=$as_save_IFS
7008
7009   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7010   ;;
7011 esac
7012 fi
7013 XDOT_PY=$ac_cv_path_XDOT_PY
7014 if test -n "$XDOT_PY"; then
7015   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7016 echo "${ECHO_T}$XDOT_PY" >&6; }
7017 else
7018   { echo "$as_me:$LINENO: result: no" >&5
7019 echo "${ECHO_T}no" >&6; }
7020 fi
7021
7022
7023 if test "$XDOT_PY" != "echo xdot.py" ; then
7024
7025 cat >>confdefs.h <<\_ACEOF
7026 #define HAVE_XDOT_PY 1
7027 _ACEOF
7028
7029     if test "$llvm_cv_os_type" = "MingW" ; then
7030     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7031   fi
7032
7033 cat >>confdefs.h <<_ACEOF
7034 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7035 _ACEOF
7036
7037 fi
7038
7039
7040 # Extract the first word of "perl", so it can be a program name with args.
7041 set dummy perl; ac_word=$2
7042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7044 if test "${ac_cv_path_PERL+set}" = set; then
7045   echo $ECHO_N "(cached) $ECHO_C" >&6
7046 else
7047   case $PERL in
7048   [\\/]* | ?:[\\/]*)
7049   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7050   ;;
7051   *)
7052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 for as_dir in $PATH
7054 do
7055   IFS=$as_save_IFS
7056   test -z "$as_dir" && as_dir=.
7057   for ac_exec_ext in '' $ac_executable_extensions; do
7058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7059     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7061     break 2
7062   fi
7063 done
7064 done
7065 IFS=$as_save_IFS
7066
7067   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7068   ;;
7069 esac
7070 fi
7071 PERL=$ac_cv_path_PERL
7072 if test -n "$PERL"; then
7073   { echo "$as_me:$LINENO: result: $PERL" >&5
7074 echo "${ECHO_T}$PERL" >&6; }
7075 else
7076   { echo "$as_me:$LINENO: result: no" >&5
7077 echo "${ECHO_T}no" >&6; }
7078 fi
7079
7080
7081 if test "$PERL" != "none"; then
7082   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7083 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7084   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7085     { echo "$as_me:$LINENO: result: yes" >&5
7086 echo "${ECHO_T}yes" >&6; }
7087   else
7088     PERL=none
7089     { echo "$as_me:$LINENO: result: not found" >&5
7090 echo "${ECHO_T}not found" >&6; }
7091   fi
7092 fi
7093
7094
7095 if test x"$PERL" = xnone; then
7096    HAVE_PERL=0
7097
7098    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7099 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7100    { (exit 1); exit 1; }; }
7101 else
7102    HAVE_PERL=1
7103
7104 fi
7105
7106 # Find a good install program.  We prefer a C program (faster),
7107 # so one script is as good as another.  But avoid the broken or
7108 # incompatible versions:
7109 # SysV /etc/install, /usr/sbin/install
7110 # SunOS /usr/etc/install
7111 # IRIX /sbin/install
7112 # AIX /bin/install
7113 # AmigaOS /C/install, which installs bootblocks on floppy discs
7114 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7115 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7116 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7117 # OS/2's system install, which has a completely different semantic
7118 # ./install, which can be erroneously created by make from ./install.sh.
7119 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7120 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7121 if test -z "$INSTALL"; then
7122 if test "${ac_cv_path_install+set}" = set; then
7123   echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 for as_dir in $PATH
7127 do
7128   IFS=$as_save_IFS
7129   test -z "$as_dir" && as_dir=.
7130   # Account for people who put trailing slashes in PATH elements.
7131 case $as_dir/ in
7132   ./ | .// | /cC/* | \
7133   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7134   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7135   /usr/ucb/* ) ;;
7136   *)
7137     # OSF1 and SCO ODT 3.0 have their own names for install.
7138     # Don't use installbsd from OSF since it installs stuff as root
7139     # by default.
7140     for ac_prog in ginstall scoinst install; do
7141       for ac_exec_ext in '' $ac_executable_extensions; do
7142         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7143           if test $ac_prog = install &&
7144             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7145             # AIX install.  It has an incompatible calling convention.
7146             :
7147           elif test $ac_prog = install &&
7148             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7149             # program-specific install script used by HP pwplus--don't use.
7150             :
7151           else
7152             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7153             break 3
7154           fi
7155         fi
7156       done
7157     done
7158     ;;
7159 esac
7160 done
7161 IFS=$as_save_IFS
7162
7163
7164 fi
7165   if test "${ac_cv_path_install+set}" = set; then
7166     INSTALL=$ac_cv_path_install
7167   else
7168     # As a last resort, use the slow shell script.  Don't cache a
7169     # value for INSTALL within a source directory, because that will
7170     # break other packages using the cache if that directory is
7171     # removed, or if the value is a relative name.
7172     INSTALL=$ac_install_sh
7173   fi
7174 fi
7175 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7176 echo "${ECHO_T}$INSTALL" >&6; }
7177
7178 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7179 # It thinks the first close brace ends the variable substitution.
7180 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7181
7182 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7183
7184 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7185
7186 case "$INSTALL" in
7187  [\\/$]* | ?:[\\/]* ) ;;
7188  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7189 esac
7190
7191 # Extract the first word of "bzip2", so it can be a program name with args.
7192 set dummy bzip2; ac_word=$2
7193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7195 if test "${ac_cv_path_BZIP2+set}" = set; then
7196   echo $ECHO_N "(cached) $ECHO_C" >&6
7197 else
7198   case $BZIP2 in
7199   [\\/]* | ?:[\\/]*)
7200   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7201   ;;
7202   *)
7203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204 for as_dir in $PATH
7205 do
7206   IFS=$as_save_IFS
7207   test -z "$as_dir" && as_dir=.
7208   for ac_exec_ext in '' $ac_executable_extensions; do
7209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7210     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7212     break 2
7213   fi
7214 done
7215 done
7216 IFS=$as_save_IFS
7217
7218   ;;
7219 esac
7220 fi
7221 BZIP2=$ac_cv_path_BZIP2
7222 if test -n "$BZIP2"; then
7223   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7224 echo "${ECHO_T}$BZIP2" >&6; }
7225 else
7226   { echo "$as_me:$LINENO: result: no" >&5
7227 echo "${ECHO_T}no" >&6; }
7228 fi
7229
7230
7231 # Extract the first word of "cat", so it can be a program name with args.
7232 set dummy cat; ac_word=$2
7233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7235 if test "${ac_cv_path_CAT+set}" = set; then
7236   echo $ECHO_N "(cached) $ECHO_C" >&6
7237 else
7238   case $CAT in
7239   [\\/]* | ?:[\\/]*)
7240   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7241   ;;
7242   *)
7243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244 for as_dir in $PATH
7245 do
7246   IFS=$as_save_IFS
7247   test -z "$as_dir" && as_dir=.
7248   for ac_exec_ext in '' $ac_executable_extensions; do
7249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7250     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7252     break 2
7253   fi
7254 done
7255 done
7256 IFS=$as_save_IFS
7257
7258   ;;
7259 esac
7260 fi
7261 CAT=$ac_cv_path_CAT
7262 if test -n "$CAT"; then
7263   { echo "$as_me:$LINENO: result: $CAT" >&5
7264 echo "${ECHO_T}$CAT" >&6; }
7265 else
7266   { echo "$as_me:$LINENO: result: no" >&5
7267 echo "${ECHO_T}no" >&6; }
7268 fi
7269
7270
7271 # Extract the first word of "doxygen", so it can be a program name with args.
7272 set dummy doxygen; ac_word=$2
7273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7275 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7276   echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278   case $DOXYGEN in
7279   [\\/]* | ?:[\\/]*)
7280   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7281   ;;
7282   *)
7283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 for as_dir in $PATH
7285 do
7286   IFS=$as_save_IFS
7287   test -z "$as_dir" && as_dir=.
7288   for ac_exec_ext in '' $ac_executable_extensions; do
7289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7290     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7292     break 2
7293   fi
7294 done
7295 done
7296 IFS=$as_save_IFS
7297
7298   ;;
7299 esac
7300 fi
7301 DOXYGEN=$ac_cv_path_DOXYGEN
7302 if test -n "$DOXYGEN"; then
7303   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7304 echo "${ECHO_T}$DOXYGEN" >&6; }
7305 else
7306   { echo "$as_me:$LINENO: result: no" >&5
7307 echo "${ECHO_T}no" >&6; }
7308 fi
7309
7310
7311 # Extract the first word of "groff", so it can be a program name with args.
7312 set dummy groff; ac_word=$2
7313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7315 if test "${ac_cv_path_GROFF+set}" = set; then
7316   echo $ECHO_N "(cached) $ECHO_C" >&6
7317 else
7318   case $GROFF in
7319   [\\/]* | ?:[\\/]*)
7320   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7321   ;;
7322   *)
7323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324 for as_dir in $PATH
7325 do
7326   IFS=$as_save_IFS
7327   test -z "$as_dir" && as_dir=.
7328   for ac_exec_ext in '' $ac_executable_extensions; do
7329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7330     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7332     break 2
7333   fi
7334 done
7335 done
7336 IFS=$as_save_IFS
7337
7338   ;;
7339 esac
7340 fi
7341 GROFF=$ac_cv_path_GROFF
7342 if test -n "$GROFF"; then
7343   { echo "$as_me:$LINENO: result: $GROFF" >&5
7344 echo "${ECHO_T}$GROFF" >&6; }
7345 else
7346   { echo "$as_me:$LINENO: result: no" >&5
7347 echo "${ECHO_T}no" >&6; }
7348 fi
7349
7350
7351 # Extract the first word of "gzip", so it can be a program name with args.
7352 set dummy gzip; ac_word=$2
7353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7355 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7356   echo $ECHO_N "(cached) $ECHO_C" >&6
7357 else
7358   case $GZIPBIN in
7359   [\\/]* | ?:[\\/]*)
7360   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7361   ;;
7362   *)
7363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 for as_dir in $PATH
7365 do
7366   IFS=$as_save_IFS
7367   test -z "$as_dir" && as_dir=.
7368   for ac_exec_ext in '' $ac_executable_extensions; do
7369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7370     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7372     break 2
7373   fi
7374 done
7375 done
7376 IFS=$as_save_IFS
7377
7378   ;;
7379 esac
7380 fi
7381 GZIPBIN=$ac_cv_path_GZIPBIN
7382 if test -n "$GZIPBIN"; then
7383   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7384 echo "${ECHO_T}$GZIPBIN" >&6; }
7385 else
7386   { echo "$as_me:$LINENO: result: no" >&5
7387 echo "${ECHO_T}no" >&6; }
7388 fi
7389
7390
7391 # Extract the first word of "pod2html", so it can be a program name with args.
7392 set dummy pod2html; ac_word=$2
7393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7395 if test "${ac_cv_path_POD2HTML+set}" = set; then
7396   echo $ECHO_N "(cached) $ECHO_C" >&6
7397 else
7398   case $POD2HTML in
7399   [\\/]* | ?:[\\/]*)
7400   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7401   ;;
7402   *)
7403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 for as_dir in $PATH
7405 do
7406   IFS=$as_save_IFS
7407   test -z "$as_dir" && as_dir=.
7408   for ac_exec_ext in '' $ac_executable_extensions; do
7409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7410     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7412     break 2
7413   fi
7414 done
7415 done
7416 IFS=$as_save_IFS
7417
7418   ;;
7419 esac
7420 fi
7421 POD2HTML=$ac_cv_path_POD2HTML
7422 if test -n "$POD2HTML"; then
7423   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7424 echo "${ECHO_T}$POD2HTML" >&6; }
7425 else
7426   { echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6; }
7428 fi
7429
7430
7431 # Extract the first word of "pod2man", so it can be a program name with args.
7432 set dummy pod2man; ac_word=$2
7433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7435 if test "${ac_cv_path_POD2MAN+set}" = set; then
7436   echo $ECHO_N "(cached) $ECHO_C" >&6
7437 else
7438   case $POD2MAN in
7439   [\\/]* | ?:[\\/]*)
7440   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7441   ;;
7442   *)
7443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 for as_dir in $PATH
7445 do
7446   IFS=$as_save_IFS
7447   test -z "$as_dir" && as_dir=.
7448   for ac_exec_ext in '' $ac_executable_extensions; do
7449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7450     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7452     break 2
7453   fi
7454 done
7455 done
7456 IFS=$as_save_IFS
7457
7458   ;;
7459 esac
7460 fi
7461 POD2MAN=$ac_cv_path_POD2MAN
7462 if test -n "$POD2MAN"; then
7463   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7464 echo "${ECHO_T}$POD2MAN" >&6; }
7465 else
7466   { echo "$as_me:$LINENO: result: no" >&5
7467 echo "${ECHO_T}no" >&6; }
7468 fi
7469
7470
7471 # Extract the first word of "pdfroff", so it can be a program name with args.
7472 set dummy pdfroff; ac_word=$2
7473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7475 if test "${ac_cv_path_PDFROFF+set}" = set; then
7476   echo $ECHO_N "(cached) $ECHO_C" >&6
7477 else
7478   case $PDFROFF in
7479   [\\/]* | ?:[\\/]*)
7480   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7481   ;;
7482   *)
7483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 for as_dir in $PATH
7485 do
7486   IFS=$as_save_IFS
7487   test -z "$as_dir" && as_dir=.
7488   for ac_exec_ext in '' $ac_executable_extensions; do
7489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7490     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7492     break 2
7493   fi
7494 done
7495 done
7496 IFS=$as_save_IFS
7497
7498   ;;
7499 esac
7500 fi
7501 PDFROFF=$ac_cv_path_PDFROFF
7502 if test -n "$PDFROFF"; then
7503   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7504 echo "${ECHO_T}$PDFROFF" >&6; }
7505 else
7506   { echo "$as_me:$LINENO: result: no" >&5
7507 echo "${ECHO_T}no" >&6; }
7508 fi
7509
7510
7511 # Extract the first word of "runtest", so it can be a program name with args.
7512 set dummy runtest; ac_word=$2
7513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7515 if test "${ac_cv_path_RUNTEST+set}" = set; then
7516   echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518   case $RUNTEST in
7519   [\\/]* | ?:[\\/]*)
7520   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7521   ;;
7522   *)
7523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 for as_dir in $PATH
7525 do
7526   IFS=$as_save_IFS
7527   test -z "$as_dir" && as_dir=.
7528   for ac_exec_ext in '' $ac_executable_extensions; do
7529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7530     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7532     break 2
7533   fi
7534 done
7535 done
7536 IFS=$as_save_IFS
7537
7538   ;;
7539 esac
7540 fi
7541 RUNTEST=$ac_cv_path_RUNTEST
7542 if test -n "$RUNTEST"; then
7543   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7544 echo "${ECHO_T}$RUNTEST" >&6; }
7545 else
7546   { echo "$as_me:$LINENO: result: no" >&5
7547 echo "${ECHO_T}no" >&6; }
7548 fi
7549
7550
7551
7552 no_itcl=true
7553 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7554 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7555
7556 # Check whether --with-tclinclude was given.
7557 if test "${with_tclinclude+set}" = set; then
7558   withval=$with_tclinclude; with_tclinclude=${withval}
7559 else
7560   with_tclinclude=''
7561 fi
7562
7563 if test "${ac_cv_path_tclsh+set}" = set; then
7564   echo $ECHO_N "(cached) $ECHO_C" >&6
7565 else
7566
7567 if test x"${with_tclinclude}" != x ; then
7568   if test -f ${with_tclinclude}/tclsh ; then
7569     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7570   elif test -f ${with_tclinclude}/src/tclsh ; then
7571     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7572   else
7573     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7574 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7575    { (exit 1); exit 1; }; }
7576   fi
7577 fi
7578 fi
7579
7580
7581 if test x"${ac_cv_path_tclsh}" = x ; then
7582   { echo "$as_me:$LINENO: result: none" >&5
7583 echo "${ECHO_T}none" >&6; }
7584   for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7585 do
7586   # Extract the first word of "$ac_prog", so it can be a program name with args.
7587 set dummy $ac_prog; ac_word=$2
7588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590 if test "${ac_cv_path_TCLSH+set}" = set; then
7591   echo $ECHO_N "(cached) $ECHO_C" >&6
7592 else
7593   case $TCLSH in
7594   [\\/]* | ?:[\\/]*)
7595   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7596   ;;
7597   *)
7598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 for as_dir in $PATH
7600 do
7601   IFS=$as_save_IFS
7602   test -z "$as_dir" && as_dir=.
7603   for ac_exec_ext in '' $ac_executable_extensions; do
7604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7605     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607     break 2
7608   fi
7609 done
7610 done
7611 IFS=$as_save_IFS
7612
7613   ;;
7614 esac
7615 fi
7616 TCLSH=$ac_cv_path_TCLSH
7617 if test -n "$TCLSH"; then
7618   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7619 echo "${ECHO_T}$TCLSH" >&6; }
7620 else
7621   { echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6; }
7623 fi
7624
7625
7626   test -n "$TCLSH" && break
7627 done
7628
7629   if test x"${TCLSH}" = x ; then
7630     ac_cv_path_tclsh='';
7631   else
7632     ac_cv_path_tclsh="${TCLSH}";
7633   fi
7634 else
7635   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7636 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7637   TCLSH="${ac_cv_path_tclsh}"
7638
7639 fi
7640
7641 # Extract the first word of "zip", so it can be a program name with args.
7642 set dummy zip; ac_word=$2
7643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7645 if test "${ac_cv_path_ZIP+set}" = set; then
7646   echo $ECHO_N "(cached) $ECHO_C" >&6
7647 else
7648   case $ZIP in
7649   [\\/]* | ?:[\\/]*)
7650   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7651   ;;
7652   *)
7653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 for as_dir in $PATH
7655 do
7656   IFS=$as_save_IFS
7657   test -z "$as_dir" && as_dir=.
7658   for ac_exec_ext in '' $ac_executable_extensions; do
7659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7660     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7662     break 2
7663   fi
7664 done
7665 done
7666 IFS=$as_save_IFS
7667
7668   ;;
7669 esac
7670 fi
7671 ZIP=$ac_cv_path_ZIP
7672 if test -n "$ZIP"; then
7673   { echo "$as_me:$LINENO: result: $ZIP" >&5
7674 echo "${ECHO_T}$ZIP" >&6; }
7675 else
7676   { echo "$as_me:$LINENO: result: no" >&5
7677 echo "${ECHO_T}no" >&6; }
7678 fi
7679
7680
7681 for ac_prog in ocamlc
7682 do
7683   # Extract the first word of "$ac_prog", so it can be a program name with args.
7684 set dummy $ac_prog; ac_word=$2
7685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7687 if test "${ac_cv_path_OCAMLC+set}" = set; then
7688   echo $ECHO_N "(cached) $ECHO_C" >&6
7689 else
7690   case $OCAMLC in
7691   [\\/]* | ?:[\\/]*)
7692   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7693   ;;
7694   *)
7695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696 for as_dir in $PATH
7697 do
7698   IFS=$as_save_IFS
7699   test -z "$as_dir" && as_dir=.
7700   for ac_exec_ext in '' $ac_executable_extensions; do
7701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7702     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7704     break 2
7705   fi
7706 done
7707 done
7708 IFS=$as_save_IFS
7709
7710   ;;
7711 esac
7712 fi
7713 OCAMLC=$ac_cv_path_OCAMLC
7714 if test -n "$OCAMLC"; then
7715   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7716 echo "${ECHO_T}$OCAMLC" >&6; }
7717 else
7718   { echo "$as_me:$LINENO: result: no" >&5
7719 echo "${ECHO_T}no" >&6; }
7720 fi
7721
7722
7723   test -n "$OCAMLC" && break
7724 done
7725
7726 for ac_prog in ocamlopt
7727 do
7728   # Extract the first word of "$ac_prog", so it can be a program name with args.
7729 set dummy $ac_prog; ac_word=$2
7730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7732 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7733   echo $ECHO_N "(cached) $ECHO_C" >&6
7734 else
7735   case $OCAMLOPT in
7736   [\\/]* | ?:[\\/]*)
7737   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7738   ;;
7739   *)
7740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 for as_dir in $PATH
7742 do
7743   IFS=$as_save_IFS
7744   test -z "$as_dir" && as_dir=.
7745   for ac_exec_ext in '' $ac_executable_extensions; do
7746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7747     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7749     break 2
7750   fi
7751 done
7752 done
7753 IFS=$as_save_IFS
7754
7755   ;;
7756 esac
7757 fi
7758 OCAMLOPT=$ac_cv_path_OCAMLOPT
7759 if test -n "$OCAMLOPT"; then
7760   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7761 echo "${ECHO_T}$OCAMLOPT" >&6; }
7762 else
7763   { echo "$as_me:$LINENO: result: no" >&5
7764 echo "${ECHO_T}no" >&6; }
7765 fi
7766
7767
7768   test -n "$OCAMLOPT" && break
7769 done
7770
7771 for ac_prog in ocamldep
7772 do
7773   # Extract the first word of "$ac_prog", so it can be a program name with args.
7774 set dummy $ac_prog; ac_word=$2
7775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7777 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7778   echo $ECHO_N "(cached) $ECHO_C" >&6
7779 else
7780   case $OCAMLDEP in
7781   [\\/]* | ?:[\\/]*)
7782   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7783   ;;
7784   *)
7785   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 for as_dir in $PATH
7787 do
7788   IFS=$as_save_IFS
7789   test -z "$as_dir" && as_dir=.
7790   for ac_exec_ext in '' $ac_executable_extensions; do
7791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7792     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7794     break 2
7795   fi
7796 done
7797 done
7798 IFS=$as_save_IFS
7799
7800   ;;
7801 esac
7802 fi
7803 OCAMLDEP=$ac_cv_path_OCAMLDEP
7804 if test -n "$OCAMLDEP"; then
7805   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7806 echo "${ECHO_T}$OCAMLDEP" >&6; }
7807 else
7808   { echo "$as_me:$LINENO: result: no" >&5
7809 echo "${ECHO_T}no" >&6; }
7810 fi
7811
7812
7813   test -n "$OCAMLDEP" && break
7814 done
7815
7816 for ac_prog in ocamldoc
7817 do
7818   # Extract the first word of "$ac_prog", so it can be a program name with args.
7819 set dummy $ac_prog; ac_word=$2
7820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7822 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7823   echo $ECHO_N "(cached) $ECHO_C" >&6
7824 else
7825   case $OCAMLDOC in
7826   [\\/]* | ?:[\\/]*)
7827   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7828   ;;
7829   *)
7830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 for as_dir in $PATH
7832 do
7833   IFS=$as_save_IFS
7834   test -z "$as_dir" && as_dir=.
7835   for ac_exec_ext in '' $ac_executable_extensions; do
7836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7837     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7839     break 2
7840   fi
7841 done
7842 done
7843 IFS=$as_save_IFS
7844
7845   ;;
7846 esac
7847 fi
7848 OCAMLDOC=$ac_cv_path_OCAMLDOC
7849 if test -n "$OCAMLDOC"; then
7850   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7851 echo "${ECHO_T}$OCAMLDOC" >&6; }
7852 else
7853   { echo "$as_me:$LINENO: result: no" >&5
7854 echo "${ECHO_T}no" >&6; }
7855 fi
7856
7857
7858   test -n "$OCAMLDOC" && break
7859 done
7860
7861 for ac_prog in gas as
7862 do
7863   # Extract the first word of "$ac_prog", so it can be a program name with args.
7864 set dummy $ac_prog; ac_word=$2
7865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7867 if test "${ac_cv_path_GAS+set}" = set; then
7868   echo $ECHO_N "(cached) $ECHO_C" >&6
7869 else
7870   case $GAS in
7871   [\\/]* | ?:[\\/]*)
7872   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7873   ;;
7874   *)
7875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876 for as_dir in $PATH
7877 do
7878   IFS=$as_save_IFS
7879   test -z "$as_dir" && as_dir=.
7880   for ac_exec_ext in '' $ac_executable_extensions; do
7881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7882     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7884     break 2
7885   fi
7886 done
7887 done
7888 IFS=$as_save_IFS
7889
7890   ;;
7891 esac
7892 fi
7893 GAS=$ac_cv_path_GAS
7894 if test -n "$GAS"; then
7895   { echo "$as_me:$LINENO: result: $GAS" >&5
7896 echo "${ECHO_T}$GAS" >&6; }
7897 else
7898   { echo "$as_me:$LINENO: result: no" >&5
7899 echo "${ECHO_T}no" >&6; }
7900 fi
7901
7902
7903   test -n "$GAS" && break
7904 done
7905
7906
7907 { echo "$as_me:$LINENO: checking for linker version" >&5
7908 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7909 if test "${llvm_cv_link_version+set}" = set; then
7910   echo $ECHO_N "(cached) $ECHO_C" >&6
7911 else
7912
7913    version_string="$(ld -v 2>&1 | head -1)"
7914
7915    # Check for ld64.
7916    if (echo "$version_string" | grep -q "ld64"); then
7917      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7918    else
7919      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7920    fi
7921
7922 fi
7923 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7924 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7925
7926 cat >>confdefs.h <<_ACEOF
7927 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7928 _ACEOF
7929
7930
7931
7932 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7933 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7934 if test "${llvm_cv_link_use_r+set}" = set; then
7935   echo $ECHO_N "(cached) $ECHO_C" >&6
7936 else
7937    ac_ext=c
7938 ac_cpp='$CPP $CPPFLAGS'
7939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7942
7943   oldcflags="$CFLAGS"
7944   CFLAGS="$CFLAGS -Wl,-R."
7945   cat >conftest.$ac_ext <<_ACEOF
7946 /* confdefs.h.  */
7947 _ACEOF
7948 cat confdefs.h >>conftest.$ac_ext
7949 cat >>conftest.$ac_ext <<_ACEOF
7950 /* end confdefs.h.  */
7951
7952 int
7953 main ()
7954 {
7955
7956   ;
7957   return 0;
7958 }
7959 _ACEOF
7960 rm -f conftest.$ac_objext conftest$ac_exeext
7961 if { (ac_try="$ac_link"
7962 case "(($ac_try" in
7963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7964   *) ac_try_echo=$ac_try;;
7965 esac
7966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7967   (eval "$ac_link") 2>conftest.er1
7968   ac_status=$?
7969   grep -v '^ *+' conftest.er1 >conftest.err
7970   rm -f conftest.er1
7971   cat conftest.err >&5
7972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973   (exit $ac_status); } &&
7974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7975   { (case "(($ac_try" in
7976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977   *) ac_try_echo=$ac_try;;
7978 esac
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980   (eval "$ac_try") 2>&5
7981   ac_status=$?
7982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983   (exit $ac_status); }; } &&
7984          { ac_try='test -s conftest$ac_exeext'
7985   { (case "(($ac_try" in
7986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987   *) ac_try_echo=$ac_try;;
7988 esac
7989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990   (eval "$ac_try") 2>&5
7991   ac_status=$?
7992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993   (exit $ac_status); }; }; then
7994   llvm_cv_link_use_r=yes
7995 else
7996   echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
7998
7999         llvm_cv_link_use_r=no
8000 fi
8001
8002 rm -f core conftest.err conftest.$ac_objext \
8003       conftest$ac_exeext conftest.$ac_ext
8004   CFLAGS="$oldcflags"
8005   ac_ext=c
8006 ac_cpp='$CPP $CPPFLAGS'
8007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8010
8011
8012 fi
8013 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8014 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8015 if test "$llvm_cv_link_use_r" = yes ; then
8016
8017 cat >>confdefs.h <<\_ACEOF
8018 #define HAVE_LINK_R 1
8019 _ACEOF
8020
8021   fi
8022
8023
8024 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8025 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8026 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8027   echo $ECHO_N "(cached) $ECHO_C" >&6
8028 else
8029    ac_ext=c
8030 ac_cpp='$CPP $CPPFLAGS'
8031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8034
8035   oldcflags="$CFLAGS"
8036   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8037   cat >conftest.$ac_ext <<_ACEOF
8038 /* confdefs.h.  */
8039 _ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h.  */
8043
8044 int
8045 main ()
8046 {
8047
8048   ;
8049   return 0;
8050 }
8051 _ACEOF
8052 rm -f conftest.$ac_objext conftest$ac_exeext
8053 if { (ac_try="$ac_link"
8054 case "(($ac_try" in
8055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056   *) ac_try_echo=$ac_try;;
8057 esac
8058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8059   (eval "$ac_link") 2>conftest.er1
8060   ac_status=$?
8061   grep -v '^ *+' conftest.er1 >conftest.err
8062   rm -f conftest.er1
8063   cat conftest.err >&5
8064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065   (exit $ac_status); } &&
8066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8067   { (case "(($ac_try" in
8068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069   *) ac_try_echo=$ac_try;;
8070 esac
8071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072   (eval "$ac_try") 2>&5
8073   ac_status=$?
8074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075   (exit $ac_status); }; } &&
8076          { ac_try='test -s conftest$ac_exeext'
8077   { (case "(($ac_try" in
8078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079   *) ac_try_echo=$ac_try;;
8080 esac
8081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8082   (eval "$ac_try") 2>&5
8083   ac_status=$?
8084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085   (exit $ac_status); }; }; then
8086   llvm_cv_link_use_export_dynamic=yes
8087 else
8088   echo "$as_me: failed program was:" >&5
8089 sed 's/^/| /' conftest.$ac_ext >&5
8090
8091         llvm_cv_link_use_export_dynamic=no
8092 fi
8093
8094 rm -f core conftest.err conftest.$ac_objext \
8095       conftest$ac_exeext conftest.$ac_ext
8096   CFLAGS="$oldcflags"
8097   ac_ext=c
8098 ac_cpp='$CPP $CPPFLAGS'
8099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8102
8103
8104 fi
8105 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8106 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8107 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8108
8109 cat >>confdefs.h <<\_ACEOF
8110 #define HAVE_LINK_EXPORT_DYNAMIC 1
8111 _ACEOF
8112
8113   fi
8114
8115
8116 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8117 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8118 if test "${llvm_cv_link_use_version_script+set}" = set; then
8119   echo $ECHO_N "(cached) $ECHO_C" >&6
8120 else
8121    ac_ext=c
8122 ac_cpp='$CPP $CPPFLAGS'
8123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8126
8127   oldcflags="$CFLAGS"
8128
8129   # The following code is from the autoconf manual,
8130   # "11.13: Limitations of Usual Tools".
8131   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8132   # Use mktemp if possible; otherwise fall back on mkdir,
8133   # with $RANDOM to make collisions less likely.
8134   : ${TMPDIR=/tmp}
8135   {
8136     tmp=`
8137       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8138     ` &&
8139     test -n "$tmp" && test -d "$tmp"
8140   } || {
8141     tmp=$TMPDIR/foo$$-$RANDOM
8142     (umask 077 && mkdir "$tmp")
8143   } || exit $?
8144
8145   echo "{" > "$tmp/export.map"
8146   echo "  global: main;" >> "$tmp/export.map"
8147   echo "  local: *;" >> "$tmp/export.map"
8148   echo "};" >> "$tmp/export.map"
8149
8150   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8151   cat >conftest.$ac_ext <<_ACEOF
8152 /* confdefs.h.  */
8153 _ACEOF
8154 cat confdefs.h >>conftest.$ac_ext
8155 cat >>conftest.$ac_ext <<_ACEOF
8156 /* end confdefs.h.  */
8157
8158 int
8159 main ()
8160 {
8161
8162   ;
8163   return 0;
8164 }
8165 _ACEOF
8166 rm -f conftest.$ac_objext conftest$ac_exeext
8167 if { (ac_try="$ac_link"
8168 case "(($ac_try" in
8169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8170   *) ac_try_echo=$ac_try;;
8171 esac
8172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8173   (eval "$ac_link") 2>conftest.er1
8174   ac_status=$?
8175   grep -v '^ *+' conftest.er1 >conftest.err
8176   rm -f conftest.er1
8177   cat conftest.err >&5
8178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179   (exit $ac_status); } &&
8180          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8181   { (case "(($ac_try" in
8182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183   *) ac_try_echo=$ac_try;;
8184 esac
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186   (eval "$ac_try") 2>&5
8187   ac_status=$?
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); }; } &&
8190          { ac_try='test -s conftest$ac_exeext'
8191   { (case "(($ac_try" in
8192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193   *) ac_try_echo=$ac_try;;
8194 esac
8195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196   (eval "$ac_try") 2>&5
8197   ac_status=$?
8198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199   (exit $ac_status); }; }; then
8200   llvm_cv_link_use_version_script=yes
8201 else
8202   echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8204
8205         llvm_cv_link_use_version_script=no
8206 fi
8207
8208 rm -f core conftest.err conftest.$ac_objext \
8209       conftest$ac_exeext conftest.$ac_ext
8210   rm "$tmp/export.map"
8211   rmdir "$tmp"
8212   CFLAGS="$oldcflags"
8213   ac_ext=c
8214 ac_cpp='$CPP $CPPFLAGS'
8215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8218
8219
8220 fi
8221 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8222 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8223 if test "$llvm_cv_link_use_version_script" = yes ; then
8224   HAVE_LINK_VERSION_SCRIPT=1
8225
8226   fi
8227
8228
8229
8230
8231 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8232 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8233 if test "${ac_cv_c_const+set}" = set; then
8234   echo $ECHO_N "(cached) $ECHO_C" >&6
8235 else
8236   cat >conftest.$ac_ext <<_ACEOF
8237 /* confdefs.h.  */
8238 _ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h.  */
8242
8243 int
8244 main ()
8245 {
8246 /* FIXME: Include the comments suggested by Paul. */
8247 #ifndef __cplusplus
8248   /* Ultrix mips cc rejects this.  */
8249   typedef int charset[2];
8250   const charset x;
8251   /* SunOS 4.1.1 cc rejects this.  */
8252   char const *const *ccp;
8253   char **p;
8254   /* NEC SVR4.0.2 mips cc rejects this.  */
8255   struct point {int x, y;};
8256   static struct point const zero = {0,0};
8257   /* AIX XL C 1.02.0.0 rejects this.
8258      It does not let you subtract one const X* pointer from another in
8259      an arm of an if-expression whose if-part is not a constant
8260      expression */
8261   const char *g = "string";
8262   ccp = &g + (g ? g-g : 0);
8263   /* HPUX 7.0 cc rejects these. */
8264   ++ccp;
8265   p = (char**) ccp;
8266   ccp = (char const *const *) p;
8267   { /* SCO 3.2v4 cc rejects this.  */
8268     char *t;
8269     char const *s = 0 ? (char *) 0 : (char const *) 0;
8270
8271     *t++ = 0;
8272     if (s) return 0;
8273   }
8274   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8275     int x[] = {25, 17};
8276     const int *foo = &x[0];
8277     ++foo;
8278   }
8279   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8280     typedef const int *iptr;
8281     iptr p = 0;
8282     ++p;
8283   }
8284   { /* AIX XL C 1.02.0.0 rejects this saying
8285        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8286     struct s { int j; const int *ap[3]; };
8287     struct s *b; b->j = 5;
8288   }
8289   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8290     const int foo = 10;
8291     if (!foo) return 0;
8292   }
8293   return !x[0] && !zero.x;
8294 #endif
8295
8296   ;
8297   return 0;
8298 }
8299 _ACEOF
8300 rm -f conftest.$ac_objext
8301 if { (ac_try="$ac_compile"
8302 case "(($ac_try" in
8303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304   *) ac_try_echo=$ac_try;;
8305 esac
8306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307   (eval "$ac_compile") 2>conftest.er1
8308   ac_status=$?
8309   grep -v '^ *+' conftest.er1 >conftest.err
8310   rm -f conftest.er1
8311   cat conftest.err >&5
8312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313   (exit $ac_status); } &&
8314          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8315   { (case "(($ac_try" in
8316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317   *) ac_try_echo=$ac_try;;
8318 esac
8319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8320   (eval "$ac_try") 2>&5
8321   ac_status=$?
8322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323   (exit $ac_status); }; } &&
8324          { ac_try='test -s conftest.$ac_objext'
8325   { (case "(($ac_try" in
8326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327   *) ac_try_echo=$ac_try;;
8328 esac
8329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330   (eval "$ac_try") 2>&5
8331   ac_status=$?
8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333   (exit $ac_status); }; }; then
8334   ac_cv_c_const=yes
8335 else
8336   echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8338
8339         ac_cv_c_const=no
8340 fi
8341
8342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8343 fi
8344 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8345 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8346 if test $ac_cv_c_const = no; then
8347
8348 cat >>confdefs.h <<\_ACEOF
8349 #define const
8350 _ACEOF
8351
8352 fi
8353
8354
8355
8356
8357
8358
8359 ac_header_dirent=no
8360 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8361   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8362 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8363 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8365   echo $ECHO_N "(cached) $ECHO_C" >&6
8366 else
8367   cat >conftest.$ac_ext <<_ACEOF
8368 /* confdefs.h.  */
8369 _ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h.  */
8373 #include <sys/types.h>
8374 #include <$ac_hdr>
8375
8376 int
8377 main ()
8378 {
8379 if ((DIR *) 0)
8380 return 0;
8381   ;
8382   return 0;
8383 }
8384 _ACEOF
8385 rm -f conftest.$ac_objext
8386 if { (ac_try="$ac_compile"
8387 case "(($ac_try" in
8388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389   *) ac_try_echo=$ac_try;;
8390 esac
8391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392   (eval "$ac_compile") 2>conftest.er1
8393   ac_status=$?
8394   grep -v '^ *+' conftest.er1 >conftest.err
8395   rm -f conftest.er1
8396   cat conftest.err >&5
8397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398   (exit $ac_status); } &&
8399          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8400   { (case "(($ac_try" in
8401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402   *) ac_try_echo=$ac_try;;
8403 esac
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405   (eval "$ac_try") 2>&5
8406   ac_status=$?
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); }; } &&
8409          { ac_try='test -s conftest.$ac_objext'
8410   { (case "(($ac_try" in
8411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412   *) ac_try_echo=$ac_try;;
8413 esac
8414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415   (eval "$ac_try") 2>&5
8416   ac_status=$?
8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   (exit $ac_status); }; }; then
8419   eval "$as_ac_Header=yes"
8420 else
8421   echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8423
8424         eval "$as_ac_Header=no"
8425 fi
8426
8427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8428 fi
8429 ac_res=`eval echo '${'$as_ac_Header'}'`
8430                { echo "$as_me:$LINENO: result: $ac_res" >&5
8431 echo "${ECHO_T}$ac_res" >&6; }
8432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8433   cat >>confdefs.h <<_ACEOF
8434 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8435 _ACEOF
8436
8437 ac_header_dirent=$ac_hdr; break
8438 fi
8439
8440 done
8441 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8442 if test $ac_header_dirent = dirent.h; then
8443   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8444 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8445 if test "${ac_cv_search_opendir+set}" = set; then
8446   echo $ECHO_N "(cached) $ECHO_C" >&6
8447 else
8448   ac_func_search_save_LIBS=$LIBS
8449 cat >conftest.$ac_ext <<_ACEOF
8450 /* confdefs.h.  */
8451 _ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h.  */
8455
8456 /* Override any GCC internal prototype to avoid an error.
8457    Use char because int might match the return type of a GCC
8458    builtin and then its argument prototype would still apply.  */
8459 #ifdef __cplusplus
8460 extern "C"
8461 #endif
8462 char opendir ();
8463 int
8464 main ()
8465 {
8466 return opendir ();
8467   ;
8468   return 0;
8469 }
8470 _ACEOF
8471 for ac_lib in '' dir; do
8472   if test -z "$ac_lib"; then
8473     ac_res="none required"
8474   else
8475     ac_res=-l$ac_lib
8476     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8477   fi
8478   rm -f conftest.$ac_objext conftest$ac_exeext
8479 if { (ac_try="$ac_link"
8480 case "(($ac_try" in
8481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482   *) ac_try_echo=$ac_try;;
8483 esac
8484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8485   (eval "$ac_link") 2>conftest.er1
8486   ac_status=$?
8487   grep -v '^ *+' conftest.er1 >conftest.err
8488   rm -f conftest.er1
8489   cat conftest.err >&5
8490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491   (exit $ac_status); } &&
8492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8493   { (case "(($ac_try" in
8494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495   *) ac_try_echo=$ac_try;;
8496 esac
8497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498   (eval "$ac_try") 2>&5
8499   ac_status=$?
8500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501   (exit $ac_status); }; } &&
8502          { ac_try='test -s conftest$ac_exeext'
8503   { (case "(($ac_try" in
8504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505   *) ac_try_echo=$ac_try;;
8506 esac
8507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8508   (eval "$ac_try") 2>&5
8509   ac_status=$?
8510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511   (exit $ac_status); }; }; then
8512   ac_cv_search_opendir=$ac_res
8513 else
8514   echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8516
8517
8518 fi
8519
8520 rm -f core conftest.err conftest.$ac_objext \
8521       conftest$ac_exeext
8522   if test "${ac_cv_search_opendir+set}" = set; then
8523   break
8524 fi
8525 done
8526 if test "${ac_cv_search_opendir+set}" = set; then
8527   :
8528 else
8529   ac_cv_search_opendir=no
8530 fi
8531 rm conftest.$ac_ext
8532 LIBS=$ac_func_search_save_LIBS
8533 fi
8534 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8535 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8536 ac_res=$ac_cv_search_opendir
8537 if test "$ac_res" != no; then
8538   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8539
8540 fi
8541
8542 else
8543   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8544 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8545 if test "${ac_cv_search_opendir+set}" = set; then
8546   echo $ECHO_N "(cached) $ECHO_C" >&6
8547 else
8548   ac_func_search_save_LIBS=$LIBS
8549 cat >conftest.$ac_ext <<_ACEOF
8550 /* confdefs.h.  */
8551 _ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h.  */
8555
8556 /* Override any GCC internal prototype to avoid an error.
8557    Use char because int might match the return type of a GCC
8558    builtin and then its argument prototype would still apply.  */
8559 #ifdef __cplusplus
8560 extern "C"
8561 #endif
8562 char opendir ();
8563 int
8564 main ()
8565 {
8566 return opendir ();
8567   ;
8568   return 0;
8569 }
8570 _ACEOF
8571 for ac_lib in '' x; do
8572   if test -z "$ac_lib"; then
8573     ac_res="none required"
8574   else
8575     ac_res=-l$ac_lib
8576     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8577   fi
8578   rm -f conftest.$ac_objext conftest$ac_exeext
8579 if { (ac_try="$ac_link"
8580 case "(($ac_try" in
8581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582   *) ac_try_echo=$ac_try;;
8583 esac
8584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8585   (eval "$ac_link") 2>conftest.er1
8586   ac_status=$?
8587   grep -v '^ *+' conftest.er1 >conftest.err
8588   rm -f conftest.er1
8589   cat conftest.err >&5
8590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591   (exit $ac_status); } &&
8592          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8593   { (case "(($ac_try" in
8594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595   *) ac_try_echo=$ac_try;;
8596 esac
8597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598   (eval "$ac_try") 2>&5
8599   ac_status=$?
8600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601   (exit $ac_status); }; } &&
8602          { ac_try='test -s conftest$ac_exeext'
8603   { (case "(($ac_try" in
8604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605   *) ac_try_echo=$ac_try;;
8606 esac
8607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608   (eval "$ac_try") 2>&5
8609   ac_status=$?
8610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611   (exit $ac_status); }; }; then
8612   ac_cv_search_opendir=$ac_res
8613 else
8614   echo "$as_me: failed program was:" >&5
8615 sed 's/^/| /' conftest.$ac_ext >&5
8616
8617
8618 fi
8619
8620 rm -f core conftest.err conftest.$ac_objext \
8621       conftest$ac_exeext
8622   if test "${ac_cv_search_opendir+set}" = set; then
8623   break
8624 fi
8625 done
8626 if test "${ac_cv_search_opendir+set}" = set; then
8627   :
8628 else
8629   ac_cv_search_opendir=no
8630 fi
8631 rm conftest.$ac_ext
8632 LIBS=$ac_func_search_save_LIBS
8633 fi
8634 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8635 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8636 ac_res=$ac_cv_search_opendir
8637 if test "$ac_res" != no; then
8638   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8639
8640 fi
8641
8642 fi
8643
8644
8645 for ac_header in dlfcn.h
8646 do
8647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8649   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8652   echo $ECHO_N "(cached) $ECHO_C" >&6
8653 fi
8654 ac_res=`eval echo '${'$as_ac_Header'}'`
8655                { echo "$as_me:$LINENO: result: $ac_res" >&5
8656 echo "${ECHO_T}$ac_res" >&6; }
8657 else
8658   # Is the header compilable?
8659 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8661 cat >conftest.$ac_ext <<_ACEOF
8662 /* confdefs.h.  */
8663 _ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h.  */
8667 $ac_includes_default
8668 #include <$ac_header>
8669 _ACEOF
8670 rm -f conftest.$ac_objext
8671 if { (ac_try="$ac_compile"
8672 case "(($ac_try" in
8673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8674   *) ac_try_echo=$ac_try;;
8675 esac
8676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8677   (eval "$ac_compile") 2>conftest.er1
8678   ac_status=$?
8679   grep -v '^ *+' conftest.er1 >conftest.err
8680   rm -f conftest.er1
8681   cat conftest.err >&5
8682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683   (exit $ac_status); } &&
8684          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8685   { (case "(($ac_try" in
8686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687   *) ac_try_echo=$ac_try;;
8688 esac
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690   (eval "$ac_try") 2>&5
8691   ac_status=$?
8692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693   (exit $ac_status); }; } &&
8694          { ac_try='test -s conftest.$ac_objext'
8695   { (case "(($ac_try" in
8696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697   *) ac_try_echo=$ac_try;;
8698 esac
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700   (eval "$ac_try") 2>&5
8701   ac_status=$?
8702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703   (exit $ac_status); }; }; then
8704   ac_header_compiler=yes
8705 else
8706   echo "$as_me: failed program was:" >&5
8707 sed 's/^/| /' conftest.$ac_ext >&5
8708
8709         ac_header_compiler=no
8710 fi
8711
8712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8714 echo "${ECHO_T}$ac_header_compiler" >&6; }
8715
8716 # Is the header present?
8717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8719 cat >conftest.$ac_ext <<_ACEOF
8720 /* confdefs.h.  */
8721 _ACEOF
8722 cat confdefs.h >>conftest.$ac_ext
8723 cat >>conftest.$ac_ext <<_ACEOF
8724 /* end confdefs.h.  */
8725 #include <$ac_header>
8726 _ACEOF
8727 if { (ac_try="$ac_cpp conftest.$ac_ext"
8728 case "(($ac_try" in
8729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730   *) ac_try_echo=$ac_try;;
8731 esac
8732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8733   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8734   ac_status=$?
8735   grep -v '^ *+' conftest.er1 >conftest.err
8736   rm -f conftest.er1
8737   cat conftest.err >&5
8738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739   (exit $ac_status); } >/dev/null; then
8740   if test -s conftest.err; then
8741     ac_cpp_err=$ac_c_preproc_warn_flag
8742     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8743   else
8744     ac_cpp_err=
8745   fi
8746 else
8747   ac_cpp_err=yes
8748 fi
8749 if test -z "$ac_cpp_err"; then
8750   ac_header_preproc=yes
8751 else
8752   echo "$as_me: failed program was:" >&5
8753 sed 's/^/| /' conftest.$ac_ext >&5
8754
8755   ac_header_preproc=no
8756 fi
8757
8758 rm -f conftest.err conftest.$ac_ext
8759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8760 echo "${ECHO_T}$ac_header_preproc" >&6; }
8761
8762 # So?  What about this header?
8763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8764   yes:no: )
8765     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8767     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8769     ac_header_preproc=yes
8770     ;;
8771   no:yes:* )
8772     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8774     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8775 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8776     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8778     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8779 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8780     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8782     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8784     ( cat <<\_ASBOX
8785 ## ----------------------------------- ##
8786 ## Report this to llvmbugs@cs.uiuc.edu ##
8787 ## ----------------------------------- ##
8788 _ASBOX
8789      ) | sed "s/^/$as_me: WARNING:     /" >&2
8790     ;;
8791 esac
8792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8795   echo $ECHO_N "(cached) $ECHO_C" >&6
8796 else
8797   eval "$as_ac_Header=\$ac_header_preproc"
8798 fi
8799 ac_res=`eval echo '${'$as_ac_Header'}'`
8800                { echo "$as_me:$LINENO: result: $ac_res" >&5
8801 echo "${ECHO_T}$ac_res" >&6; }
8802
8803 fi
8804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8805   cat >>confdefs.h <<_ACEOF
8806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8807 _ACEOF
8808
8809 fi
8810
8811 done
8812
8813 # Check whether --enable-ltdl-install was given.
8814 if test "${enable_ltdl_install+set}" = set; then
8815   enableval=$enable_ltdl_install;
8816 fi
8817
8818
8819
8820
8821 if test x"${enable_ltdl_install-no}" != xno; then
8822   INSTALL_LTDL_TRUE=
8823   INSTALL_LTDL_FALSE='#'
8824 else
8825   INSTALL_LTDL_TRUE='#'
8826   INSTALL_LTDL_FALSE=
8827 fi
8828
8829
8830
8831 if test x"${enable_ltdl_convenience-no}" != xno; then
8832   CONVENIENCE_LTDL_TRUE=
8833   CONVENIENCE_LTDL_FALSE='#'
8834 else
8835   CONVENIENCE_LTDL_TRUE='#'
8836   CONVENIENCE_LTDL_FALSE=
8837 fi
8838
8839
8840 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8841 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8842 library_names_spec=
8843 libname_spec='lib$name'
8844 soname_spec=
8845 shrext_cmds=".so"
8846 postinstall_cmds=
8847 postuninstall_cmds=
8848 finish_cmds=
8849 finish_eval=
8850 shlibpath_var=
8851 shlibpath_overrides_runpath=unknown
8852 version_type=none
8853 dynamic_linker="$host_os ld.so"
8854 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8855 if test "$GCC" = yes; then
8856   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8857   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8858     # if the path contains ";" then we assume it to be the separator
8859     # otherwise default to the standard path separator (i.e. ":") - it is
8860     # assumed that no part of a normal pathname contains ";" but that should
8861     # okay in the real world where ";" in dirpaths is itself problematic.
8862     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8863   else
8864     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8865   fi
8866 else
8867   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8868 fi
8869 need_lib_prefix=unknown
8870 hardcode_into_libs=no
8871
8872 # when you set need_version to no, make sure it does not cause -set_version
8873 # flags to be left without arguments
8874 need_version=unknown
8875
8876 case $host_os in
8877 aix3*)
8878   version_type=linux
8879   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8880   shlibpath_var=LIBPATH
8881
8882   # AIX 3 has no versioning support, so we append a major version to the name.
8883   soname_spec='${libname}${release}${shared_ext}$major'
8884   ;;
8885
8886 aix4* | aix5*)
8887   version_type=linux
8888   need_lib_prefix=no
8889   need_version=no
8890   hardcode_into_libs=yes
8891   if test "$host_cpu" = ia64; then
8892     # AIX 5 supports IA64
8893     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8894     shlibpath_var=LD_LIBRARY_PATH
8895   else
8896     # With GCC up to 2.95.x, collect2 would create an import file
8897     # for dependence libraries.  The import file would start with
8898     # the line `#! .'.  This would cause the generated library to
8899     # depend on `.', always an invalid library.  This was fixed in
8900     # development snapshots of GCC prior to 3.0.
8901     case $host_os in
8902       aix4 | aix4.[01] | aix4.[01].*)
8903       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8904            echo ' yes '
8905            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8906         :
8907       else
8908         can_build_shared=no
8909       fi
8910       ;;
8911     esac
8912     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8913     # soname into executable. Probably we can add versioning support to
8914     # collect2, so additional links can be useful in future.
8915     if test "$aix_use_runtimelinking" = yes; then
8916       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8917       # instead of lib<name>.a to let people know that these are not
8918       # typical AIX shared libraries.
8919       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8920     else
8921       # We preserve .a as extension for shared libraries through AIX4.2
8922       # and later when we are not doing run time linking.
8923       library_names_spec='${libname}${release}.a $libname.a'
8924       soname_spec='${libname}${release}${shared_ext}$major'
8925     fi
8926     shlibpath_var=LIBPATH
8927   fi
8928   ;;
8929
8930 amigaos*)
8931   library_names_spec='$libname.ixlibrary $libname.a'
8932   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8933   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'
8934   ;;
8935
8936 beos*)
8937   library_names_spec='${libname}${shared_ext}'
8938   dynamic_linker="$host_os ld.so"
8939   shlibpath_var=LIBRARY_PATH
8940   ;;
8941
8942 bsdi[45]*)
8943   version_type=linux
8944   need_version=no
8945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8946   soname_spec='${libname}${release}${shared_ext}$major'
8947   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8948   shlibpath_var=LD_LIBRARY_PATH
8949   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8950   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8951   # the default ld.so.conf also contains /usr/contrib/lib and
8952   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8953   # libtool to hard-code these into programs
8954   ;;
8955
8956 cygwin* | mingw* | pw32*)
8957   version_type=windows
8958   shrext_cmds=".dll"
8959   need_version=no
8960   need_lib_prefix=no
8961
8962   case $GCC,$host_os in
8963   yes,cygwin* | yes,mingw* | yes,pw32*)
8964     library_names_spec='$libname.dll.a'
8965     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8966     postinstall_cmds='base_file=`basename \${file}`~
8967       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8968       dldir=$destdir/`dirname \$dlpath`~
8969       test -d \$dldir || mkdir -p \$dldir~
8970       $install_prog $dir/$dlname \$dldir/$dlname~
8971       chmod a+x \$dldir/$dlname'
8972     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8973       dlpath=$dir/\$dldll~
8974        $rm \$dlpath'
8975     shlibpath_overrides_runpath=yes
8976
8977     case $host_os in
8978     cygwin*)
8979       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8980       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8981       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8982       ;;
8983     mingw*)
8984       # MinGW DLLs use traditional 'lib' prefix
8985       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8986       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8987       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8988         # It is most probably a Windows format PATH printed by
8989         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8990         # path with ; separators, and with drive letters. We can handle the
8991         # drive letters (cygwin fileutils understands them), so leave them,
8992         # especially as we might pass files found there to a mingw objdump,
8993         # which wouldn't understand a cygwinified path. Ahh.
8994         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8995       else
8996         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8997       fi
8998       ;;
8999     pw32*)
9000       # pw32 DLLs use 'pw' prefix rather than 'lib'
9001       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9002       ;;
9003     esac
9004     ;;
9005
9006   *)
9007     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9008     ;;
9009   esac
9010   dynamic_linker='Win32 ld.exe'
9011   # FIXME: first we should search . and the directory the executable is in
9012   shlibpath_var=PATH
9013   ;;
9014
9015 darwin* | rhapsody*)
9016   dynamic_linker="$host_os dyld"
9017   version_type=darwin
9018   need_lib_prefix=no
9019   need_version=no
9020   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9021   soname_spec='${libname}${release}${major}$shared_ext'
9022   shlibpath_overrides_runpath=yes
9023   shlibpath_var=DYLD_LIBRARY_PATH
9024   shrext_cmds='.dylib'
9025   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9026   if test "$GCC" = yes; then
9027     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"`
9028   else
9029     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9030   fi
9031   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9032   ;;
9033
9034 dgux*)
9035   version_type=linux
9036   need_lib_prefix=no
9037   need_version=no
9038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9039   soname_spec='${libname}${release}${shared_ext}$major'
9040   shlibpath_var=LD_LIBRARY_PATH
9041   ;;
9042
9043 freebsd1*)
9044   dynamic_linker=no
9045   ;;
9046
9047 kfreebsd*-gnu)
9048   version_type=linux
9049   need_lib_prefix=no
9050   need_version=no
9051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9052   soname_spec='${libname}${release}${shared_ext}$major'
9053   shlibpath_var=LD_LIBRARY_PATH
9054   shlibpath_overrides_runpath=no
9055   hardcode_into_libs=yes
9056   dynamic_linker='GNU ld.so'
9057   ;;
9058
9059 freebsd* | dragonfly*)
9060   # DragonFly does not have aout.  When/if they implement a new
9061   # versioning mechanism, adjust this.
9062   if test -x /usr/bin/objformat; then
9063     objformat=`/usr/bin/objformat`
9064   else
9065     case $host_os in
9066     freebsd[123]*) objformat=aout ;;
9067     *) objformat=elf ;;
9068     esac
9069   fi
9070   version_type=freebsd-$objformat
9071   case $version_type in
9072     freebsd-elf*)
9073       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9074       need_version=no
9075       need_lib_prefix=no
9076       ;;
9077     freebsd-*)
9078       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9079       need_version=yes
9080       ;;
9081   esac
9082   shlibpath_var=LD_LIBRARY_PATH
9083   case $host_os in
9084   freebsd2*)
9085     shlibpath_overrides_runpath=yes
9086     ;;
9087   freebsd3.[01]* | freebsdelf3.[01]*)
9088     shlibpath_overrides_runpath=yes
9089     hardcode_into_libs=yes
9090     ;;
9091   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9092   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9093     shlibpath_overrides_runpath=no
9094     hardcode_into_libs=yes
9095     ;;
9096   freebsd*) # from 4.6 on
9097     shlibpath_overrides_runpath=yes
9098     hardcode_into_libs=yes
9099     ;;
9100   esac
9101   ;;
9102
9103 gnu*)
9104   version_type=linux
9105   need_lib_prefix=no
9106   need_version=no
9107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9108   soname_spec='${libname}${release}${shared_ext}$major'
9109   shlibpath_var=LD_LIBRARY_PATH
9110   hardcode_into_libs=yes
9111   ;;
9112
9113 hpux9* | hpux10* | hpux11*)
9114   # Give a soname corresponding to the major version so that dld.sl refuses to
9115   # link against other versions.
9116   version_type=sunos
9117   need_lib_prefix=no
9118   need_version=no
9119   case $host_cpu in
9120   ia64*)
9121     shrext_cmds='.so'
9122     hardcode_into_libs=yes
9123     dynamic_linker="$host_os dld.so"
9124     shlibpath_var=LD_LIBRARY_PATH
9125     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9126     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9127     soname_spec='${libname}${release}${shared_ext}$major'
9128     if test "X$HPUX_IA64_MODE" = X32; then
9129       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9130     else
9131       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9132     fi
9133     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9134     ;;
9135    hppa*64*)
9136      shrext_cmds='.sl'
9137      hardcode_into_libs=yes
9138      dynamic_linker="$host_os dld.sl"
9139      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9140      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9141      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142      soname_spec='${libname}${release}${shared_ext}$major'
9143      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9144      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9145      ;;
9146    *)
9147     shrext_cmds='.sl'
9148     dynamic_linker="$host_os dld.sl"
9149     shlibpath_var=SHLIB_PATH
9150     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9151     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9152     soname_spec='${libname}${release}${shared_ext}$major'
9153     ;;
9154   esac
9155   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9156   postinstall_cmds='chmod 555 $lib'
9157   ;;
9158
9159 interix3*)
9160   version_type=linux
9161   need_lib_prefix=no
9162   need_version=no
9163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9164   soname_spec='${libname}${release}${shared_ext}$major'
9165   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9166   shlibpath_var=LD_LIBRARY_PATH
9167   shlibpath_overrides_runpath=no
9168   hardcode_into_libs=yes
9169   ;;
9170
9171 irix5* | irix6* | nonstopux*)
9172   case $host_os in
9173     nonstopux*) version_type=nonstopux ;;
9174     *)
9175         if test "$lt_cv_prog_gnu_ld" = yes; then
9176                 version_type=linux
9177         else
9178                 version_type=irix
9179         fi ;;
9180   esac
9181   need_lib_prefix=no
9182   need_version=no
9183   soname_spec='${libname}${release}${shared_ext}$major'
9184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9185   case $host_os in
9186   irix5* | nonstopux*)
9187     libsuff= shlibsuff=
9188     ;;
9189   *)
9190     case $LD in # libtool.m4 will add one of these switches to LD
9191     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9192       libsuff= shlibsuff= libmagic=32-bit;;
9193     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9194       libsuff=32 shlibsuff=N32 libmagic=N32;;
9195     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9196       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9197     *) libsuff= shlibsuff= libmagic=never-match;;
9198     esac
9199     ;;
9200   esac
9201   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9202   shlibpath_overrides_runpath=no
9203   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9204   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9205   hardcode_into_libs=yes
9206   ;;
9207
9208 # No shared lib support for Linux oldld, aout, or coff.
9209 linux*oldld* | linux*aout* | linux*coff*)
9210   dynamic_linker=no
9211   ;;
9212
9213 # This must be Linux ELF.
9214 linux*)
9215   version_type=linux
9216   need_lib_prefix=no
9217   need_version=no
9218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9219   soname_spec='${libname}${release}${shared_ext}$major'
9220   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9221   shlibpath_var=LD_LIBRARY_PATH
9222   shlibpath_overrides_runpath=no
9223   # This implies no fast_install, which is unacceptable.
9224   # Some rework will be needed to allow for fast_install
9225   # before this can be enabled.
9226   hardcode_into_libs=yes
9227
9228   # Append ld.so.conf contents to the search path
9229   if test -f /etc/ld.so.conf; then
9230     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' ' '`
9231     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9232   fi
9233
9234   # We used to test for /lib/ld.so.1 and disable shared libraries on
9235   # powerpc, because MkLinux only supported shared libraries with the
9236   # GNU dynamic linker.  Since this was broken with cross compilers,
9237   # most powerpc-linux boxes support dynamic linking these days and
9238   # people can always --disable-shared, the test was removed, and we
9239   # assume the GNU/Linux dynamic linker is in use.
9240   dynamic_linker='GNU/Linux ld.so'
9241   ;;
9242
9243 knetbsd*-gnu)
9244   version_type=linux
9245   need_lib_prefix=no
9246   need_version=no
9247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9248   soname_spec='${libname}${release}${shared_ext}$major'
9249   shlibpath_var=LD_LIBRARY_PATH
9250   shlibpath_overrides_runpath=no
9251   hardcode_into_libs=yes
9252   dynamic_linker='GNU ld.so'
9253   ;;
9254
9255 netbsd*)
9256   version_type=sunos
9257   need_lib_prefix=no
9258   need_version=no
9259   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9260     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9261     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9262     dynamic_linker='NetBSD (a.out) ld.so'
9263   else
9264     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9265     soname_spec='${libname}${release}${shared_ext}$major'
9266     dynamic_linker='NetBSD ld.elf_so'
9267   fi
9268   shlibpath_var=LD_LIBRARY_PATH
9269   shlibpath_overrides_runpath=yes
9270   hardcode_into_libs=yes
9271   ;;
9272
9273 newsos6)
9274   version_type=linux
9275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9276   shlibpath_var=LD_LIBRARY_PATH
9277   shlibpath_overrides_runpath=yes
9278   ;;
9279
9280 nto-qnx*)
9281   version_type=linux
9282   need_lib_prefix=no
9283   need_version=no
9284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9285   soname_spec='${libname}${release}${shared_ext}$major'
9286   shlibpath_var=LD_LIBRARY_PATH
9287   shlibpath_overrides_runpath=yes
9288   ;;
9289
9290 openbsd*)
9291   version_type=sunos
9292   sys_lib_dlsearch_path_spec="/usr/lib"
9293   need_lib_prefix=no
9294   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9295   case $host_os in
9296     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9297     *)                         need_version=no  ;;
9298   esac
9299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9300   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9301   shlibpath_var=LD_LIBRARY_PATH
9302   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9303     case $host_os in
9304       openbsd2.[89] | openbsd2.[89].*)
9305         shlibpath_overrides_runpath=no
9306         ;;
9307       *)
9308         shlibpath_overrides_runpath=yes
9309         ;;
9310       esac
9311   else
9312     shlibpath_overrides_runpath=yes
9313   fi
9314   ;;
9315
9316 os2*)
9317   libname_spec='$name'
9318   shrext_cmds=".dll"
9319   need_lib_prefix=no
9320   library_names_spec='$libname${shared_ext} $libname.a'
9321   dynamic_linker='OS/2 ld.exe'
9322   shlibpath_var=LIBPATH
9323   ;;
9324
9325 osf3* | osf4* | osf5*)
9326   version_type=osf
9327   need_lib_prefix=no
9328   need_version=no
9329   soname_spec='${libname}${release}${shared_ext}$major'
9330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9331   shlibpath_var=LD_LIBRARY_PATH
9332   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9333   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9334   ;;
9335
9336 solaris*)
9337   version_type=linux
9338   need_lib_prefix=no
9339   need_version=no
9340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9341   soname_spec='${libname}${release}${shared_ext}$major'
9342   shlibpath_var=LD_LIBRARY_PATH
9343   shlibpath_overrides_runpath=yes
9344   hardcode_into_libs=yes
9345   # ldd complains unless libraries are executable
9346   postinstall_cmds='chmod +x $lib'
9347   ;;
9348
9349 sunos4*)
9350   version_type=sunos
9351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9352   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9353   shlibpath_var=LD_LIBRARY_PATH
9354   shlibpath_overrides_runpath=yes
9355   if test "$with_gnu_ld" = yes; then
9356     need_lib_prefix=no
9357   fi
9358   need_version=yes
9359   ;;
9360
9361 sysv4 | sysv4.3*)
9362   version_type=linux
9363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9364   soname_spec='${libname}${release}${shared_ext}$major'
9365   shlibpath_var=LD_LIBRARY_PATH
9366   case $host_vendor in
9367     sni)
9368       shlibpath_overrides_runpath=no
9369       need_lib_prefix=no
9370       export_dynamic_flag_spec='${wl}-Blargedynsym'
9371       runpath_var=LD_RUN_PATH
9372       ;;
9373     siemens)
9374       need_lib_prefix=no
9375       ;;
9376     motorola)
9377       need_lib_prefix=no
9378       need_version=no
9379       shlibpath_overrides_runpath=no
9380       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9381       ;;
9382   esac
9383   ;;
9384
9385 sysv4*MP*)
9386   if test -d /usr/nec ;then
9387     version_type=linux
9388     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9389     soname_spec='$libname${shared_ext}.$major'
9390     shlibpath_var=LD_LIBRARY_PATH
9391   fi
9392   ;;
9393
9394 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9395   version_type=freebsd-elf
9396   need_lib_prefix=no
9397   need_version=no
9398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9399   soname_spec='${libname}${release}${shared_ext}$major'
9400   shlibpath_var=LD_LIBRARY_PATH
9401   hardcode_into_libs=yes
9402   if test "$with_gnu_ld" = yes; then
9403     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9404     shlibpath_overrides_runpath=no
9405   else
9406     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9407     shlibpath_overrides_runpath=yes
9408     case $host_os in
9409       sco3.2v5*)
9410         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9411         ;;
9412     esac
9413   fi
9414   sys_lib_dlsearch_path_spec='/usr/lib'
9415   ;;
9416
9417 uts4*)
9418   version_type=linux
9419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9420   soname_spec='${libname}${release}${shared_ext}$major'
9421   shlibpath_var=LD_LIBRARY_PATH
9422   ;;
9423
9424 *)
9425   dynamic_linker=no
9426   ;;
9427 esac
9428 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9429 echo "${ECHO_T}$dynamic_linker" >&6; }
9430 test "$dynamic_linker" = no && can_build_shared=no
9431
9432 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9433 if test "$GCC" = yes; then
9434   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9435 fi
9436
9437
9438 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9439 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9440 if test "${libltdl_cv_shlibext+set}" = set; then
9441   echo $ECHO_N "(cached) $ECHO_C" >&6
9442 else
9443
9444 module=yes
9445 eval libltdl_cv_shlibext=$shrext_cmds
9446
9447 fi
9448 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9449 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9450 if test -n "$libltdl_cv_shlibext"; then
9451
9452 cat >>confdefs.h <<_ACEOF
9453 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9454 _ACEOF
9455
9456 fi
9457
9458
9459 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9460 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9461 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9462   echo $ECHO_N "(cached) $ECHO_C" >&6
9463 else
9464   libltdl_cv_shlibpath_var="$shlibpath_var"
9465 fi
9466 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9467 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9468 if test -n "$libltdl_cv_shlibpath_var"; then
9469
9470 cat >>confdefs.h <<_ACEOF
9471 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9472 _ACEOF
9473
9474 fi
9475
9476
9477 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9478 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9479 if test "${libltdl_cv_sys_search_path+set}" = set; then
9480   echo $ECHO_N "(cached) $ECHO_C" >&6
9481 else
9482   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9483 fi
9484 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9485 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9486 if test -n "$libltdl_cv_sys_search_path"; then
9487   sys_search_path=
9488   for dir in $libltdl_cv_sys_search_path; do
9489     if test -z "$sys_search_path"; then
9490       sys_search_path="$dir"
9491     else
9492       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9493     fi
9494   done
9495
9496 cat >>confdefs.h <<_ACEOF
9497 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9498 _ACEOF
9499
9500 fi
9501
9502 { echo "$as_me:$LINENO: checking for objdir" >&5
9503 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9504 if test "${libltdl_cv_objdir+set}" = set; then
9505   echo $ECHO_N "(cached) $ECHO_C" >&6
9506 else
9507   libltdl_cv_objdir="$objdir"
9508   if test -n "$objdir"; then
9509     :
9510   else
9511     rm -f .libs 2>/dev/null
9512     mkdir .libs 2>/dev/null
9513     if test -d .libs; then
9514       libltdl_cv_objdir=.libs
9515     else
9516       # MS-DOS does not allow filenames that begin with a dot.
9517       libltdl_cv_objdir=_libs
9518     fi
9519   rmdir .libs 2>/dev/null
9520   fi
9521
9522 fi
9523 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9524 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9525
9526 cat >>confdefs.h <<_ACEOF
9527 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9528 _ACEOF
9529
9530
9531
9532
9533
9534
9535 # Check for command to grab the raw symbol name followed by C symbol from nm.
9536 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9537 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9538 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9539   echo $ECHO_N "(cached) $ECHO_C" >&6
9540 else
9541
9542 # These are sane defaults that work on at least a few old systems.
9543 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9544
9545 # Character class describing NM global symbol codes.
9546 symcode='[BCDEGRST]'
9547
9548 # Regexp to match symbols that can be accessed directly from C.
9549 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9550
9551 # Transform an extracted symbol line into a proper C declaration
9552 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9553
9554 # Transform an extracted symbol line into symbol name and symbol address
9555 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'"
9556
9557 # Define system-specific variables.
9558 case $host_os in
9559 aix*)
9560   symcode='[BCDT]'
9561   ;;
9562 cygwin* | mingw* | pw32*)
9563   symcode='[ABCDGISTW]'
9564   ;;
9565 hpux*) # Its linker distinguishes data from code symbols
9566   if test "$host_cpu" = ia64; then
9567     symcode='[ABCDEGRST]'
9568   fi
9569   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9570   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'"
9571   ;;
9572 linux*)
9573   if test "$host_cpu" = ia64; then
9574     symcode='[ABCDGIRSTW]'
9575     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9576     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'"
9577   fi
9578   ;;
9579 irix* | nonstopux*)
9580   symcode='[BCDEGRST]'
9581   ;;
9582 osf*)
9583   symcode='[BCDEGQRST]'
9584   ;;
9585 solaris*)
9586   symcode='[BDRT]'
9587   ;;
9588 sco3.2v5*)
9589   symcode='[DT]'
9590   ;;
9591 sysv4.2uw2*)
9592   symcode='[DT]'
9593   ;;
9594 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9595   symcode='[ABDT]'
9596   ;;
9597 sysv4)
9598   symcode='[DFNSTU]'
9599   ;;
9600 esac
9601
9602 # Handle CRLF in mingw tool chain
9603 opt_cr=
9604 case $build_os in
9605 mingw*)
9606   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9607   ;;
9608 esac
9609
9610 # If we're using GNU nm, then use its standard symbol codes.
9611 case `$NM -V 2>&1` in
9612 *GNU* | *'with BFD'*)
9613   symcode='[ABCDGIRSTW]' ;;
9614 esac
9615
9616 # Try without a prefix undercore, then with it.
9617 for ac_symprfx in "" "_"; do
9618
9619   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9620   symxfrm="\\1 $ac_symprfx\\2 \\2"
9621
9622   # Write the raw and C identifiers.
9623   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9624
9625   # Check to see that the pipe works correctly.
9626   pipe_works=no
9627
9628   rm -f conftest*
9629   cat > conftest.$ac_ext <<EOF
9630 #ifdef __cplusplus
9631 extern "C" {
9632 #endif
9633 char nm_test_var;
9634 void nm_test_func(){}
9635 #ifdef __cplusplus
9636 }
9637 #endif
9638 int main(){nm_test_var='a';nm_test_func();return(0);}
9639 EOF
9640
9641   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9642   (eval $ac_compile) 2>&5
9643   ac_status=$?
9644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645   (exit $ac_status); }; then
9646     # Now try to grab the symbols.
9647     nlist=conftest.nm
9648     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9649   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9650   ac_status=$?
9651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652   (exit $ac_status); } && test -s "$nlist"; then
9653       # Try sorting and uniquifying the output.
9654       if sort "$nlist" | uniq > "$nlist"T; then
9655         mv -f "$nlist"T "$nlist"
9656       else
9657         rm -f "$nlist"T
9658       fi
9659
9660       # Make sure that we snagged all the symbols we need.
9661       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9662         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9663           cat <<EOF > conftest.$ac_ext
9664 #ifdef __cplusplus
9665 extern "C" {
9666 #endif
9667
9668 EOF
9669           # Now generate the symbol file.
9670           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9671
9672           cat <<EOF >> conftest.$ac_ext
9673 #if defined (__STDC__) && __STDC__
9674 # define lt_ptr_t void *
9675 #else
9676 # define lt_ptr_t char *
9677 # define const
9678 #endif
9679
9680 /* The mapping between symbol names and symbols. */
9681 const struct {
9682   const char *name;
9683   lt_ptr_t address;
9684 }
9685 lt_preloaded_symbols[] =
9686 {
9687 EOF
9688           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9689           cat <<\EOF >> conftest.$ac_ext
9690   {0, (lt_ptr_t) 0}
9691 };
9692
9693 #ifdef __cplusplus
9694 }
9695 #endif
9696 EOF
9697           # Now try linking the two files.
9698           mv conftest.$ac_objext conftstm.$ac_objext
9699           lt_save_LIBS="$LIBS"
9700           lt_save_CFLAGS="$CFLAGS"
9701           LIBS="conftstm.$ac_objext"
9702           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9703           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9704   (eval $ac_link) 2>&5
9705   ac_status=$?
9706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9708             pipe_works=yes
9709           fi
9710           LIBS="$lt_save_LIBS"
9711           CFLAGS="$lt_save_CFLAGS"
9712         else
9713           echo "cannot find nm_test_func in $nlist" >&5
9714         fi
9715       else
9716         echo "cannot find nm_test_var in $nlist" >&5
9717       fi
9718     else
9719       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9720     fi
9721   else
9722     echo "$progname: failed program was:" >&5
9723     cat conftest.$ac_ext >&5
9724   fi
9725   rm -f conftest* conftst*
9726
9727   # Do not use the global_symbol_pipe unless it works.
9728   if test "$pipe_works" = yes; then
9729     break
9730   else
9731     lt_cv_sys_global_symbol_pipe=
9732   fi
9733 done
9734
9735 fi
9736
9737 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9738   lt_cv_sys_global_symbol_to_cdecl=
9739 fi
9740 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9741   { echo "$as_me:$LINENO: result: failed" >&5
9742 echo "${ECHO_T}failed" >&6; }
9743 else
9744   { echo "$as_me:$LINENO: result: ok" >&5
9745 echo "${ECHO_T}ok" >&6; }
9746 fi
9747
9748
9749 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9750 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9751 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9752   echo $ECHO_N "(cached) $ECHO_C" >&6
9753 else
9754   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9755     libltdl_cv_preloaded_symbols=yes
9756   else
9757     libltdl_cv_preloaded_symbols=no
9758   fi
9759
9760 fi
9761 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9762 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9763 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9764
9765 cat >>confdefs.h <<\_ACEOF
9766 #define HAVE_PRELOADED_SYMBOLS 1
9767 _ACEOF
9768
9769 fi
9770
9771 LIBADD_DL=
9772
9773 ac_ext=c
9774 ac_cpp='$CPP $CPPFLAGS'
9775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9778
9779
9780 { echo "$as_me:$LINENO: checking for shl_load" >&5
9781 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9782 if test "${ac_cv_func_shl_load+set}" = set; then
9783   echo $ECHO_N "(cached) $ECHO_C" >&6
9784 else
9785   cat >conftest.$ac_ext <<_ACEOF
9786 /* confdefs.h.  */
9787 _ACEOF
9788 cat confdefs.h >>conftest.$ac_ext
9789 cat >>conftest.$ac_ext <<_ACEOF
9790 /* end confdefs.h.  */
9791 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9793 #define shl_load innocuous_shl_load
9794
9795 /* System header to define __stub macros and hopefully few prototypes,
9796     which can conflict with char shl_load (); below.
9797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9798     <limits.h> exists even on freestanding compilers.  */
9799
9800 #ifdef __STDC__
9801 # include <limits.h>
9802 #else
9803 # include <assert.h>
9804 #endif
9805
9806 #undef shl_load
9807
9808 /* Override any GCC internal prototype to avoid an error.
9809    Use char because int might match the return type of a GCC
9810    builtin and then its argument prototype would still apply.  */
9811 #ifdef __cplusplus
9812 extern "C"
9813 #endif
9814 char shl_load ();
9815 /* The GNU C library defines this for functions which it implements
9816     to always fail with ENOSYS.  Some functions are actually named
9817     something starting with __ and the normal name is an alias.  */
9818 #if defined __stub_shl_load || defined __stub___shl_load
9819 choke me
9820 #endif
9821
9822 int
9823 main ()
9824 {
9825 return shl_load ();
9826   ;
9827   return 0;
9828 }
9829 _ACEOF
9830 rm -f conftest.$ac_objext conftest$ac_exeext
9831 if { (ac_try="$ac_link"
9832 case "(($ac_try" in
9833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834   *) ac_try_echo=$ac_try;;
9835 esac
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837   (eval "$ac_link") 2>conftest.er1
9838   ac_status=$?
9839   grep -v '^ *+' conftest.er1 >conftest.err
9840   rm -f conftest.er1
9841   cat conftest.err >&5
9842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843   (exit $ac_status); } &&
9844          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9845   { (case "(($ac_try" in
9846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847   *) ac_try_echo=$ac_try;;
9848 esac
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850   (eval "$ac_try") 2>&5
9851   ac_status=$?
9852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853   (exit $ac_status); }; } &&
9854          { ac_try='test -s conftest$ac_exeext'
9855   { (case "(($ac_try" in
9856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857   *) ac_try_echo=$ac_try;;
9858 esac
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860   (eval "$ac_try") 2>&5
9861   ac_status=$?
9862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   (exit $ac_status); }; }; then
9864   ac_cv_func_shl_load=yes
9865 else
9866   echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9868
9869         ac_cv_func_shl_load=no
9870 fi
9871
9872 rm -f core conftest.err conftest.$ac_objext \
9873       conftest$ac_exeext conftest.$ac_ext
9874 fi
9875 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9876 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9877 if test $ac_cv_func_shl_load = yes; then
9878
9879 cat >>confdefs.h <<\_ACEOF
9880 #define HAVE_SHL_LOAD 1
9881 _ACEOF
9882
9883 else
9884   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9885 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9886 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9887   echo $ECHO_N "(cached) $ECHO_C" >&6
9888 else
9889   ac_check_lib_save_LIBS=$LIBS
9890 LIBS="-ldld  $LIBS"
9891 cat >conftest.$ac_ext <<_ACEOF
9892 /* confdefs.h.  */
9893 _ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h.  */
9897
9898 /* Override any GCC internal prototype to avoid an error.
9899    Use char because int might match the return type of a GCC
9900    builtin and then its argument prototype would still apply.  */
9901 #ifdef __cplusplus
9902 extern "C"
9903 #endif
9904 char shl_load ();
9905 int
9906 main ()
9907 {
9908 return shl_load ();
9909   ;
9910   return 0;
9911 }
9912 _ACEOF
9913 rm -f conftest.$ac_objext conftest$ac_exeext
9914 if { (ac_try="$ac_link"
9915 case "(($ac_try" in
9916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917   *) ac_try_echo=$ac_try;;
9918 esac
9919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920   (eval "$ac_link") 2>conftest.er1
9921   ac_status=$?
9922   grep -v '^ *+' conftest.er1 >conftest.err
9923   rm -f conftest.er1
9924   cat conftest.err >&5
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); } &&
9927          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9928   { (case "(($ac_try" in
9929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930   *) ac_try_echo=$ac_try;;
9931 esac
9932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933   (eval "$ac_try") 2>&5
9934   ac_status=$?
9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936   (exit $ac_status); }; } &&
9937          { ac_try='test -s conftest$ac_exeext'
9938   { (case "(($ac_try" in
9939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940   *) ac_try_echo=$ac_try;;
9941 esac
9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943   (eval "$ac_try") 2>&5
9944   ac_status=$?
9945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946   (exit $ac_status); }; }; then
9947   ac_cv_lib_dld_shl_load=yes
9948 else
9949   echo "$as_me: failed program was:" >&5
9950 sed 's/^/| /' conftest.$ac_ext >&5
9951
9952         ac_cv_lib_dld_shl_load=no
9953 fi
9954
9955 rm -f core conftest.err conftest.$ac_objext \
9956       conftest$ac_exeext conftest.$ac_ext
9957 LIBS=$ac_check_lib_save_LIBS
9958 fi
9959 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9960 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9961 if test $ac_cv_lib_dld_shl_load = yes; then
9962
9963 cat >>confdefs.h <<\_ACEOF
9964 #define HAVE_SHL_LOAD 1
9965 _ACEOF
9966
9967         LIBADD_DL="$LIBADD_DL -ldld"
9968 else
9969   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9970 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9971 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9972   echo $ECHO_N "(cached) $ECHO_C" >&6
9973 else
9974   ac_check_lib_save_LIBS=$LIBS
9975 LIBS="-ldl  $LIBS"
9976 cat >conftest.$ac_ext <<_ACEOF
9977 /* confdefs.h.  */
9978 _ACEOF
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h.  */
9982
9983 /* Override any GCC internal prototype to avoid an error.
9984    Use char because int might match the return type of a GCC
9985    builtin and then its argument prototype would still apply.  */
9986 #ifdef __cplusplus
9987 extern "C"
9988 #endif
9989 char dlopen ();
9990 int
9991 main ()
9992 {
9993 return dlopen ();
9994   ;
9995   return 0;
9996 }
9997 _ACEOF
9998 rm -f conftest.$ac_objext conftest$ac_exeext
9999 if { (ac_try="$ac_link"
10000 case "(($ac_try" in
10001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10002   *) ac_try_echo=$ac_try;;
10003 esac
10004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10005   (eval "$ac_link") 2>conftest.er1
10006   ac_status=$?
10007   grep -v '^ *+' conftest.er1 >conftest.err
10008   rm -f conftest.er1
10009   cat conftest.err >&5
10010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011   (exit $ac_status); } &&
10012          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10013   { (case "(($ac_try" in
10014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10015   *) ac_try_echo=$ac_try;;
10016 esac
10017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10018   (eval "$ac_try") 2>&5
10019   ac_status=$?
10020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021   (exit $ac_status); }; } &&
10022          { ac_try='test -s conftest$ac_exeext'
10023   { (case "(($ac_try" in
10024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025   *) ac_try_echo=$ac_try;;
10026 esac
10027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028   (eval "$ac_try") 2>&5
10029   ac_status=$?
10030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031   (exit $ac_status); }; }; then
10032   ac_cv_lib_dl_dlopen=yes
10033 else
10034   echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10036
10037         ac_cv_lib_dl_dlopen=no
10038 fi
10039
10040 rm -f core conftest.err conftest.$ac_objext \
10041       conftest$ac_exeext conftest.$ac_ext
10042 LIBS=$ac_check_lib_save_LIBS
10043 fi
10044 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10045 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10046 if test $ac_cv_lib_dl_dlopen = yes; then
10047
10048 cat >>confdefs.h <<\_ACEOF
10049 #define HAVE_LIBDL 1
10050 _ACEOF
10051
10052                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10053 else
10054   cat >conftest.$ac_ext <<_ACEOF
10055 /* confdefs.h.  */
10056 _ACEOF
10057 cat confdefs.h >>conftest.$ac_ext
10058 cat >>conftest.$ac_ext <<_ACEOF
10059 /* end confdefs.h.  */
10060 #if HAVE_DLFCN_H
10061 #  include <dlfcn.h>
10062 #endif
10063
10064 int
10065 main ()
10066 {
10067 dlopen(0, 0);
10068   ;
10069   return 0;
10070 }
10071 _ACEOF
10072 rm -f conftest.$ac_objext conftest$ac_exeext
10073 if { (ac_try="$ac_link"
10074 case "(($ac_try" in
10075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076   *) ac_try_echo=$ac_try;;
10077 esac
10078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10079   (eval "$ac_link") 2>conftest.er1
10080   ac_status=$?
10081   grep -v '^ *+' conftest.er1 >conftest.err
10082   rm -f conftest.er1
10083   cat conftest.err >&5
10084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085   (exit $ac_status); } &&
10086          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10087   { (case "(($ac_try" in
10088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089   *) ac_try_echo=$ac_try;;
10090 esac
10091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092   (eval "$ac_try") 2>&5
10093   ac_status=$?
10094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095   (exit $ac_status); }; } &&
10096          { ac_try='test -s conftest$ac_exeext'
10097   { (case "(($ac_try" in
10098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099   *) ac_try_echo=$ac_try;;
10100 esac
10101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10102   (eval "$ac_try") 2>&5
10103   ac_status=$?
10104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105   (exit $ac_status); }; }; then
10106
10107 cat >>confdefs.h <<\_ACEOF
10108 #define HAVE_LIBDL 1
10109 _ACEOF
10110  libltdl_cv_func_dlopen="yes"
10111 else
10112   echo "$as_me: failed program was:" >&5
10113 sed 's/^/| /' conftest.$ac_ext >&5
10114
10115         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10116 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10117 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10118   echo $ECHO_N "(cached) $ECHO_C" >&6
10119 else
10120   ac_check_lib_save_LIBS=$LIBS
10121 LIBS="-lsvld  $LIBS"
10122 cat >conftest.$ac_ext <<_ACEOF
10123 /* confdefs.h.  */
10124 _ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h.  */
10128
10129 /* Override any GCC internal prototype to avoid an error.
10130    Use char because int might match the return type of a GCC
10131    builtin and then its argument prototype would still apply.  */
10132 #ifdef __cplusplus
10133 extern "C"
10134 #endif
10135 char dlopen ();
10136 int
10137 main ()
10138 {
10139 return dlopen ();
10140   ;
10141   return 0;
10142 }
10143 _ACEOF
10144 rm -f conftest.$ac_objext conftest$ac_exeext
10145 if { (ac_try="$ac_link"
10146 case "(($ac_try" in
10147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10148   *) ac_try_echo=$ac_try;;
10149 esac
10150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10151   (eval "$ac_link") 2>conftest.er1
10152   ac_status=$?
10153   grep -v '^ *+' conftest.er1 >conftest.err
10154   rm -f conftest.er1
10155   cat conftest.err >&5
10156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157   (exit $ac_status); } &&
10158          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10159   { (case "(($ac_try" in
10160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161   *) ac_try_echo=$ac_try;;
10162 esac
10163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10164   (eval "$ac_try") 2>&5
10165   ac_status=$?
10166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167   (exit $ac_status); }; } &&
10168          { ac_try='test -s conftest$ac_exeext'
10169   { (case "(($ac_try" in
10170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10171   *) ac_try_echo=$ac_try;;
10172 esac
10173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10174   (eval "$ac_try") 2>&5
10175   ac_status=$?
10176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177   (exit $ac_status); }; }; then
10178   ac_cv_lib_svld_dlopen=yes
10179 else
10180   echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10182
10183         ac_cv_lib_svld_dlopen=no
10184 fi
10185
10186 rm -f core conftest.err conftest.$ac_objext \
10187       conftest$ac_exeext conftest.$ac_ext
10188 LIBS=$ac_check_lib_save_LIBS
10189 fi
10190 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10191 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10192 if test $ac_cv_lib_svld_dlopen = yes; then
10193
10194 cat >>confdefs.h <<\_ACEOF
10195 #define HAVE_LIBDL 1
10196 _ACEOF
10197
10198                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10199 else
10200   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10201 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10202 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10203   echo $ECHO_N "(cached) $ECHO_C" >&6
10204 else
10205   ac_check_lib_save_LIBS=$LIBS
10206 LIBS="-ldld  $LIBS"
10207 cat >conftest.$ac_ext <<_ACEOF
10208 /* confdefs.h.  */
10209 _ACEOF
10210 cat confdefs.h >>conftest.$ac_ext
10211 cat >>conftest.$ac_ext <<_ACEOF
10212 /* end confdefs.h.  */
10213
10214 /* Override any GCC internal prototype to avoid an error.
10215    Use char because int might match the return type of a GCC
10216    builtin and then its argument prototype would still apply.  */
10217 #ifdef __cplusplus
10218 extern "C"
10219 #endif
10220 char dld_link ();
10221 int
10222 main ()
10223 {
10224 return dld_link ();
10225   ;
10226   return 0;
10227 }
10228 _ACEOF
10229 rm -f conftest.$ac_objext conftest$ac_exeext
10230 if { (ac_try="$ac_link"
10231 case "(($ac_try" in
10232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233   *) ac_try_echo=$ac_try;;
10234 esac
10235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236   (eval "$ac_link") 2>conftest.er1
10237   ac_status=$?
10238   grep -v '^ *+' conftest.er1 >conftest.err
10239   rm -f conftest.er1
10240   cat conftest.err >&5
10241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242   (exit $ac_status); } &&
10243          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10244   { (case "(($ac_try" in
10245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246   *) ac_try_echo=$ac_try;;
10247 esac
10248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249   (eval "$ac_try") 2>&5
10250   ac_status=$?
10251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252   (exit $ac_status); }; } &&
10253          { ac_try='test -s conftest$ac_exeext'
10254   { (case "(($ac_try" in
10255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256   *) ac_try_echo=$ac_try;;
10257 esac
10258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259   (eval "$ac_try") 2>&5
10260   ac_status=$?
10261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262   (exit $ac_status); }; }; then
10263   ac_cv_lib_dld_dld_link=yes
10264 else
10265   echo "$as_me: failed program was:" >&5
10266 sed 's/^/| /' conftest.$ac_ext >&5
10267
10268         ac_cv_lib_dld_dld_link=no
10269 fi
10270
10271 rm -f core conftest.err conftest.$ac_objext \
10272       conftest$ac_exeext conftest.$ac_ext
10273 LIBS=$ac_check_lib_save_LIBS
10274 fi
10275 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10276 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10277 if test $ac_cv_lib_dld_dld_link = yes; then
10278
10279 cat >>confdefs.h <<\_ACEOF
10280 #define HAVE_DLD 1
10281 _ACEOF
10282
10283                 LIBADD_DL="$LIBADD_DL -ldld"
10284 else
10285   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10286 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10287 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10288   echo $ECHO_N "(cached) $ECHO_C" >&6
10289 else
10290   cat >conftest.$ac_ext <<_ACEOF
10291 /* confdefs.h.  */
10292 _ACEOF
10293 cat confdefs.h >>conftest.$ac_ext
10294 cat >>conftest.$ac_ext <<_ACEOF
10295 /* end confdefs.h.  */
10296 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10297    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10298 #define _dyld_func_lookup innocuous__dyld_func_lookup
10299
10300 /* System header to define __stub macros and hopefully few prototypes,
10301     which can conflict with char _dyld_func_lookup (); below.
10302     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10303     <limits.h> exists even on freestanding compilers.  */
10304
10305 #ifdef __STDC__
10306 # include <limits.h>
10307 #else
10308 # include <assert.h>
10309 #endif
10310
10311 #undef _dyld_func_lookup
10312
10313 /* Override any GCC internal prototype to avoid an error.
10314    Use char because int might match the return type of a GCC
10315    builtin and then its argument prototype would still apply.  */
10316 #ifdef __cplusplus
10317 extern "C"
10318 #endif
10319 char _dyld_func_lookup ();
10320 /* The GNU C library defines this for functions which it implements
10321     to always fail with ENOSYS.  Some functions are actually named
10322     something starting with __ and the normal name is an alias.  */
10323 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10324 choke me
10325 #endif
10326
10327 int
10328 main ()
10329 {
10330 return _dyld_func_lookup ();
10331   ;
10332   return 0;
10333 }
10334 _ACEOF
10335 rm -f conftest.$ac_objext conftest$ac_exeext
10336 if { (ac_try="$ac_link"
10337 case "(($ac_try" in
10338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339   *) ac_try_echo=$ac_try;;
10340 esac
10341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10342   (eval "$ac_link") 2>conftest.er1
10343   ac_status=$?
10344   grep -v '^ *+' conftest.er1 >conftest.err
10345   rm -f conftest.er1
10346   cat conftest.err >&5
10347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348   (exit $ac_status); } &&
10349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10350   { (case "(($ac_try" in
10351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352   *) ac_try_echo=$ac_try;;
10353 esac
10354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10355   (eval "$ac_try") 2>&5
10356   ac_status=$?
10357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358   (exit $ac_status); }; } &&
10359          { ac_try='test -s conftest$ac_exeext'
10360   { (case "(($ac_try" in
10361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362   *) ac_try_echo=$ac_try;;
10363 esac
10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365   (eval "$ac_try") 2>&5
10366   ac_status=$?
10367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368   (exit $ac_status); }; }; then
10369   ac_cv_func__dyld_func_lookup=yes
10370 else
10371   echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.$ac_ext >&5
10373
10374         ac_cv_func__dyld_func_lookup=no
10375 fi
10376
10377 rm -f core conftest.err conftest.$ac_objext \
10378       conftest$ac_exeext conftest.$ac_ext
10379 fi
10380 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10381 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10382 if test $ac_cv_func__dyld_func_lookup = yes; then
10383
10384 cat >>confdefs.h <<\_ACEOF
10385 #define HAVE_DYLD 1
10386 _ACEOF
10387
10388 fi
10389
10390
10391 fi
10392
10393
10394 fi
10395
10396
10397 fi
10398
10399 rm -f core conftest.err conftest.$ac_objext \
10400       conftest$ac_exeext conftest.$ac_ext
10401
10402 fi
10403
10404
10405 fi
10406
10407
10408 fi
10409
10410
10411 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10412 then
10413   lt_save_LIBS="$LIBS"
10414   LIBS="$LIBS $LIBADD_DL"
10415
10416 for ac_func in dlerror
10417 do
10418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10419 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10421 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10422   echo $ECHO_N "(cached) $ECHO_C" >&6
10423 else
10424   cat >conftest.$ac_ext <<_ACEOF
10425 /* confdefs.h.  */
10426 _ACEOF
10427 cat confdefs.h >>conftest.$ac_ext
10428 cat >>conftest.$ac_ext <<_ACEOF
10429 /* end confdefs.h.  */
10430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10431    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10432 #define $ac_func innocuous_$ac_func
10433
10434 /* System header to define __stub macros and hopefully few prototypes,
10435     which can conflict with char $ac_func (); below.
10436     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10437     <limits.h> exists even on freestanding compilers.  */
10438
10439 #ifdef __STDC__
10440 # include <limits.h>
10441 #else
10442 # include <assert.h>
10443 #endif
10444
10445 #undef $ac_func
10446
10447 /* Override any GCC internal prototype to avoid an error.
10448    Use char because int might match the return type of a GCC
10449    builtin and then its argument prototype would still apply.  */
10450 #ifdef __cplusplus
10451 extern "C"
10452 #endif
10453 char $ac_func ();
10454 /* The GNU C library defines this for functions which it implements
10455     to always fail with ENOSYS.  Some functions are actually named
10456     something starting with __ and the normal name is an alias.  */
10457 #if defined __stub_$ac_func || defined __stub___$ac_func
10458 choke me
10459 #endif
10460
10461 int
10462 main ()
10463 {
10464 return $ac_func ();
10465   ;
10466   return 0;
10467 }
10468 _ACEOF
10469 rm -f conftest.$ac_objext conftest$ac_exeext
10470 if { (ac_try="$ac_link"
10471 case "(($ac_try" in
10472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10473   *) ac_try_echo=$ac_try;;
10474 esac
10475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10476   (eval "$ac_link") 2>conftest.er1
10477   ac_status=$?
10478   grep -v '^ *+' conftest.er1 >conftest.err
10479   rm -f conftest.er1
10480   cat conftest.err >&5
10481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482   (exit $ac_status); } &&
10483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10484   { (case "(($ac_try" in
10485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10486   *) ac_try_echo=$ac_try;;
10487 esac
10488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10489   (eval "$ac_try") 2>&5
10490   ac_status=$?
10491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492   (exit $ac_status); }; } &&
10493          { ac_try='test -s conftest$ac_exeext'
10494   { (case "(($ac_try" in
10495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10496   *) ac_try_echo=$ac_try;;
10497 esac
10498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10499   (eval "$ac_try") 2>&5
10500   ac_status=$?
10501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502   (exit $ac_status); }; }; then
10503   eval "$as_ac_var=yes"
10504 else
10505   echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10507
10508         eval "$as_ac_var=no"
10509 fi
10510
10511 rm -f core conftest.err conftest.$ac_objext \
10512       conftest$ac_exeext conftest.$ac_ext
10513 fi
10514 ac_res=`eval echo '${'$as_ac_var'}'`
10515                { echo "$as_me:$LINENO: result: $ac_res" >&5
10516 echo "${ECHO_T}$ac_res" >&6; }
10517 if test `eval echo '${'$as_ac_var'}'` = yes; then
10518   cat >>confdefs.h <<_ACEOF
10519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10520 _ACEOF
10521
10522 fi
10523 done
10524
10525   LIBS="$lt_save_LIBS"
10526 fi
10527 ac_ext=c
10528 ac_cpp='$CPP $CPPFLAGS'
10529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10532
10533
10534
10535 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10536 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10537 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10538   echo $ECHO_N "(cached) $ECHO_C" >&6
10539 else
10540   ac_cv_sys_symbol_underscore=no
10541   cat > conftest.$ac_ext <<EOF
10542 void nm_test_func(){}
10543 int main(){nm_test_func;return 0;}
10544 EOF
10545   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10546   (eval $ac_compile) 2>&5
10547   ac_status=$?
10548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549   (exit $ac_status); }; then
10550     # Now try to grab the symbols.
10551     ac_nlist=conftest.nm
10552     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10553   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10554   ac_status=$?
10555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556   (exit $ac_status); } && test -s "$ac_nlist"; then
10557       # See whether the symbols have a leading underscore.
10558       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10559         ac_cv_sys_symbol_underscore=yes
10560       else
10561         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10562           :
10563         else
10564           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10565         fi
10566       fi
10567     else
10568       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10569     fi
10570   else
10571     echo "configure: failed program was:" >&5
10572     cat conftest.c >&5
10573   fi
10574   rm -rf conftest*
10575
10576 fi
10577 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10578 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10579
10580
10581 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10582   if test x"$libltdl_cv_func_dlopen" = xyes ||
10583      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10584         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10585 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10586 if test "${libltdl_cv_need_uscore+set}" = set; then
10587   echo $ECHO_N "(cached) $ECHO_C" >&6
10588 else
10589   libltdl_cv_need_uscore=unknown
10590           save_LIBS="$LIBS"
10591           LIBS="$LIBS $LIBADD_DL"
10592           if test "$cross_compiling" = yes; then :
10593   libltdl_cv_need_uscore=cross
10594 else
10595   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10596   lt_status=$lt_dlunknown
10597   cat > conftest.$ac_ext <<EOF
10598 #line 10598 "configure"
10599 #include "confdefs.h"
10600
10601 #if HAVE_DLFCN_H
10602 #include <dlfcn.h>
10603 #endif
10604
10605 #include <stdio.h>
10606
10607 #ifdef RTLD_GLOBAL
10608 #  define LT_DLGLOBAL           RTLD_GLOBAL
10609 #else
10610 #  ifdef DL_GLOBAL
10611 #    define LT_DLGLOBAL         DL_GLOBAL
10612 #  else
10613 #    define LT_DLGLOBAL         0
10614 #  endif
10615 #endif
10616
10617 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10618    find out it does not work in some platform. */
10619 #ifndef LT_DLLAZY_OR_NOW
10620 #  ifdef RTLD_LAZY
10621 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10622 #  else
10623 #    ifdef DL_LAZY
10624 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10625 #    else
10626 #      ifdef RTLD_NOW
10627 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10628 #      else
10629 #        ifdef DL_NOW
10630 #          define LT_DLLAZY_OR_NOW      DL_NOW
10631 #        else
10632 #          define LT_DLLAZY_OR_NOW      0
10633 #        endif
10634 #      endif
10635 #    endif
10636 #  endif
10637 #endif
10638
10639 #ifdef __cplusplus
10640 extern "C" void exit (int);
10641 #endif
10642
10643 void fnord() { int i=42;}
10644 int main ()
10645 {
10646   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10647   int status = $lt_dlunknown;
10648
10649   if (self)
10650     {
10651       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10652       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10653       /* dlclose (self); */
10654     }
10655   else
10656     puts (dlerror ());
10657
10658     exit (status);
10659 }
10660 EOF
10661   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10662   (eval $ac_link) 2>&5
10663   ac_status=$?
10664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10666     (./conftest; exit; ) >&5 2>/dev/null
10667     lt_status=$?
10668     case x$lt_status in
10669       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10670       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10671       x$lt_dlunknown|x*)  ;;
10672     esac
10673   else :
10674     # compilation failed
10675
10676   fi
10677 fi
10678 rm -fr conftest*
10679
10680           LIBS="$save_LIBS"
10681
10682 fi
10683 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10684 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10685   fi
10686 fi
10687
10688 if test x"$libltdl_cv_need_uscore" = xyes; then
10689
10690 cat >>confdefs.h <<\_ACEOF
10691 #define NEED_USCORE 1
10692 _ACEOF
10693
10694 fi
10695
10696
10697 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10698 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10699 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10700   echo $ECHO_N "(cached) $ECHO_C" >&6
10701 else
10702   # PORTME does your system automatically load deplibs for dlopen?
10703   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10704   # For now, we just catch OSes we know something about -- in the
10705   # future, we'll try test this programmatically.
10706   libltdl_cv_sys_dlopen_deplibs=unknown
10707   case "$host_os" in
10708   aix3*|aix4.1.*|aix4.2.*)
10709     # Unknown whether this is true for these versions of AIX, but
10710     # we want this `case' here to explicitly catch those versions.
10711     libltdl_cv_sys_dlopen_deplibs=unknown
10712     ;;
10713   aix[45]*)
10714     libltdl_cv_sys_dlopen_deplibs=yes
10715     ;;
10716   darwin*)
10717     # Assuming the user has installed a libdl from somewhere, this is true
10718     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10719     libltdl_cv_sys_dlopen_deplibs=yes
10720     ;;
10721   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10722     # GNU and its variants, using gnu ld.so (Glibc)
10723     libltdl_cv_sys_dlopen_deplibs=yes
10724     ;;
10725   hpux10*|hpux11*)
10726     libltdl_cv_sys_dlopen_deplibs=yes
10727     ;;
10728   interix*)
10729     libltdl_cv_sys_dlopen_deplibs=yes
10730     ;;
10731   irix[12345]*|irix6.[01]*)
10732     # Catch all versions of IRIX before 6.2, and indicate that we don't
10733     # know how it worked for any of those versions.
10734     libltdl_cv_sys_dlopen_deplibs=unknown
10735     ;;
10736   irix*)
10737     # The case above catches anything before 6.2, and it's known that
10738     # at 6.2 and later dlopen does load deplibs.
10739     libltdl_cv_sys_dlopen_deplibs=yes
10740     ;;
10741   netbsd*)
10742     libltdl_cv_sys_dlopen_deplibs=yes
10743     ;;
10744   openbsd*)
10745     libltdl_cv_sys_dlopen_deplibs=yes
10746     ;;
10747   osf[1234]*)
10748     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10749     # it did *not* use an RPATH in a shared library to find objects the
10750     # library depends on, so we explicitly say `no'.
10751     libltdl_cv_sys_dlopen_deplibs=no
10752     ;;
10753   osf5.0|osf5.0a|osf5.1)
10754     # dlopen *does* load deplibs and with the right loader patch applied
10755     # it even uses RPATH in a shared library to search for shared objects
10756     # that the library depends on, but there's no easy way to know if that
10757     # patch is installed.  Since this is the case, all we can really
10758     # say is unknown -- it depends on the patch being installed.  If
10759     # it is, this changes to `yes'.  Without it, it would be `no'.
10760     libltdl_cv_sys_dlopen_deplibs=unknown
10761     ;;
10762   osf*)
10763     # the two cases above should catch all versions of osf <= 5.1.  Read
10764     # the comments above for what we know about them.
10765     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10766     # is used to find them so we can finally say `yes'.
10767     libltdl_cv_sys_dlopen_deplibs=yes
10768     ;;
10769   solaris*)
10770     libltdl_cv_sys_dlopen_deplibs=yes
10771     ;;
10772   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10773     libltdl_cv_sys_dlopen_deplibs=yes
10774     ;;
10775   esac
10776
10777 fi
10778 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10779 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10780 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10781
10782 cat >>confdefs.h <<\_ACEOF
10783 #define LTDL_DLOPEN_DEPLIBS 1
10784 _ACEOF
10785
10786 fi
10787
10788
10789 for ac_header in argz.h
10790 do
10791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10793   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10796   echo $ECHO_N "(cached) $ECHO_C" >&6
10797 fi
10798 ac_res=`eval echo '${'$as_ac_Header'}'`
10799                { echo "$as_me:$LINENO: result: $ac_res" >&5
10800 echo "${ECHO_T}$ac_res" >&6; }
10801 else
10802   # Is the header compilable?
10803 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10805 cat >conftest.$ac_ext <<_ACEOF
10806 /* confdefs.h.  */
10807 _ACEOF
10808 cat confdefs.h >>conftest.$ac_ext
10809 cat >>conftest.$ac_ext <<_ACEOF
10810 /* end confdefs.h.  */
10811 $ac_includes_default
10812 #include <$ac_header>
10813 _ACEOF
10814 rm -f conftest.$ac_objext
10815 if { (ac_try="$ac_compile"
10816 case "(($ac_try" in
10817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818   *) ac_try_echo=$ac_try;;
10819 esac
10820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10821   (eval "$ac_compile") 2>conftest.er1
10822   ac_status=$?
10823   grep -v '^ *+' conftest.er1 >conftest.err
10824   rm -f conftest.er1
10825   cat conftest.err >&5
10826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827   (exit $ac_status); } &&
10828          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10829   { (case "(($ac_try" in
10830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10831   *) ac_try_echo=$ac_try;;
10832 esac
10833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10834   (eval "$ac_try") 2>&5
10835   ac_status=$?
10836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837   (exit $ac_status); }; } &&
10838          { ac_try='test -s conftest.$ac_objext'
10839   { (case "(($ac_try" in
10840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841   *) ac_try_echo=$ac_try;;
10842 esac
10843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844   (eval "$ac_try") 2>&5
10845   ac_status=$?
10846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847   (exit $ac_status); }; }; then
10848   ac_header_compiler=yes
10849 else
10850   echo "$as_me: failed program was:" >&5
10851 sed 's/^/| /' conftest.$ac_ext >&5
10852
10853         ac_header_compiler=no
10854 fi
10855
10856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10858 echo "${ECHO_T}$ac_header_compiler" >&6; }
10859
10860 # Is the header present?
10861 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10863 cat >conftest.$ac_ext <<_ACEOF
10864 /* confdefs.h.  */
10865 _ACEOF
10866 cat confdefs.h >>conftest.$ac_ext
10867 cat >>conftest.$ac_ext <<_ACEOF
10868 /* end confdefs.h.  */
10869 #include <$ac_header>
10870 _ACEOF
10871 if { (ac_try="$ac_cpp conftest.$ac_ext"
10872 case "(($ac_try" in
10873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10874   *) ac_try_echo=$ac_try;;
10875 esac
10876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10877   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10878   ac_status=$?
10879   grep -v '^ *+' conftest.er1 >conftest.err
10880   rm -f conftest.er1
10881   cat conftest.err >&5
10882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883   (exit $ac_status); } >/dev/null; then
10884   if test -s conftest.err; then
10885     ac_cpp_err=$ac_c_preproc_warn_flag
10886     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10887   else
10888     ac_cpp_err=
10889   fi
10890 else
10891   ac_cpp_err=yes
10892 fi
10893 if test -z "$ac_cpp_err"; then
10894   ac_header_preproc=yes
10895 else
10896   echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.$ac_ext >&5
10898
10899   ac_header_preproc=no
10900 fi
10901
10902 rm -f conftest.err conftest.$ac_ext
10903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10904 echo "${ECHO_T}$ac_header_preproc" >&6; }
10905
10906 # So?  What about this header?
10907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10908   yes:no: )
10909     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10913     ac_header_preproc=yes
10914     ;;
10915   no:yes:* )
10916     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10918     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10919 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10920     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10922     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10923 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10924     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10926     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10928     ( cat <<\_ASBOX
10929 ## ----------------------------------- ##
10930 ## Report this to llvmbugs@cs.uiuc.edu ##
10931 ## ----------------------------------- ##
10932 _ASBOX
10933      ) | sed "s/^/$as_me: WARNING:     /" >&2
10934     ;;
10935 esac
10936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10939   echo $ECHO_N "(cached) $ECHO_C" >&6
10940 else
10941   eval "$as_ac_Header=\$ac_header_preproc"
10942 fi
10943 ac_res=`eval echo '${'$as_ac_Header'}'`
10944                { echo "$as_me:$LINENO: result: $ac_res" >&5
10945 echo "${ECHO_T}$ac_res" >&6; }
10946
10947 fi
10948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10949   cat >>confdefs.h <<_ACEOF
10950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10951 _ACEOF
10952
10953 fi
10954
10955 done
10956
10957
10958 { echo "$as_me:$LINENO: checking for error_t" >&5
10959 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10960 if test "${ac_cv_type_error_t+set}" = set; then
10961   echo $ECHO_N "(cached) $ECHO_C" >&6
10962 else
10963   cat >conftest.$ac_ext <<_ACEOF
10964 /* confdefs.h.  */
10965 _ACEOF
10966 cat confdefs.h >>conftest.$ac_ext
10967 cat >>conftest.$ac_ext <<_ACEOF
10968 /* end confdefs.h.  */
10969 #if HAVE_ARGZ_H
10970 #  include <argz.h>
10971 #endif
10972
10973 typedef error_t ac__type_new_;
10974 int
10975 main ()
10976 {
10977 if ((ac__type_new_ *) 0)
10978   return 0;
10979 if (sizeof (ac__type_new_))
10980   return 0;
10981   ;
10982   return 0;
10983 }
10984 _ACEOF
10985 rm -f conftest.$ac_objext
10986 if { (ac_try="$ac_compile"
10987 case "(($ac_try" in
10988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989   *) ac_try_echo=$ac_try;;
10990 esac
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992   (eval "$ac_compile") 2>conftest.er1
10993   ac_status=$?
10994   grep -v '^ *+' conftest.er1 >conftest.err
10995   rm -f conftest.er1
10996   cat conftest.err >&5
10997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998   (exit $ac_status); } &&
10999          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11000   { (case "(($ac_try" in
11001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002   *) ac_try_echo=$ac_try;;
11003 esac
11004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005   (eval "$ac_try") 2>&5
11006   ac_status=$?
11007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008   (exit $ac_status); }; } &&
11009          { ac_try='test -s conftest.$ac_objext'
11010   { (case "(($ac_try" in
11011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012   *) ac_try_echo=$ac_try;;
11013 esac
11014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015   (eval "$ac_try") 2>&5
11016   ac_status=$?
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); }; }; then
11019   ac_cv_type_error_t=yes
11020 else
11021   echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.$ac_ext >&5
11023
11024         ac_cv_type_error_t=no
11025 fi
11026
11027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11028 fi
11029 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11030 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11031 if test $ac_cv_type_error_t = yes; then
11032
11033 cat >>confdefs.h <<_ACEOF
11034 #define HAVE_ERROR_T 1
11035 _ACEOF
11036
11037
11038 else
11039
11040 cat >>confdefs.h <<\_ACEOF
11041 #define error_t int
11042 _ACEOF
11043
11044 fi
11045
11046
11047
11048
11049
11050
11051
11052 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11053 do
11054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11055 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11057 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11058   echo $ECHO_N "(cached) $ECHO_C" >&6
11059 else
11060   cat >conftest.$ac_ext <<_ACEOF
11061 /* confdefs.h.  */
11062 _ACEOF
11063 cat confdefs.h >>conftest.$ac_ext
11064 cat >>conftest.$ac_ext <<_ACEOF
11065 /* end confdefs.h.  */
11066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11068 #define $ac_func innocuous_$ac_func
11069
11070 /* System header to define __stub macros and hopefully few prototypes,
11071     which can conflict with char $ac_func (); below.
11072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11073     <limits.h> exists even on freestanding compilers.  */
11074
11075 #ifdef __STDC__
11076 # include <limits.h>
11077 #else
11078 # include <assert.h>
11079 #endif
11080
11081 #undef $ac_func
11082
11083 /* Override any GCC internal prototype to avoid an error.
11084    Use char because int might match the return type of a GCC
11085    builtin and then its argument prototype would still apply.  */
11086 #ifdef __cplusplus
11087 extern "C"
11088 #endif
11089 char $ac_func ();
11090 /* The GNU C library defines this for functions which it implements
11091     to always fail with ENOSYS.  Some functions are actually named
11092     something starting with __ and the normal name is an alias.  */
11093 #if defined __stub_$ac_func || defined __stub___$ac_func
11094 choke me
11095 #endif
11096
11097 int
11098 main ()
11099 {
11100 return $ac_func ();
11101   ;
11102   return 0;
11103 }
11104 _ACEOF
11105 rm -f conftest.$ac_objext conftest$ac_exeext
11106 if { (ac_try="$ac_link"
11107 case "(($ac_try" in
11108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11109   *) ac_try_echo=$ac_try;;
11110 esac
11111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11112   (eval "$ac_link") 2>conftest.er1
11113   ac_status=$?
11114   grep -v '^ *+' conftest.er1 >conftest.err
11115   rm -f conftest.er1
11116   cat conftest.err >&5
11117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118   (exit $ac_status); } &&
11119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11120   { (case "(($ac_try" in
11121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122   *) ac_try_echo=$ac_try;;
11123 esac
11124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125   (eval "$ac_try") 2>&5
11126   ac_status=$?
11127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128   (exit $ac_status); }; } &&
11129          { ac_try='test -s conftest$ac_exeext'
11130   { (case "(($ac_try" in
11131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132   *) ac_try_echo=$ac_try;;
11133 esac
11134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11135   (eval "$ac_try") 2>&5
11136   ac_status=$?
11137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138   (exit $ac_status); }; }; then
11139   eval "$as_ac_var=yes"
11140 else
11141   echo "$as_me: failed program was:" >&5
11142 sed 's/^/| /' conftest.$ac_ext >&5
11143
11144         eval "$as_ac_var=no"
11145 fi
11146
11147 rm -f core conftest.err conftest.$ac_objext \
11148       conftest$ac_exeext conftest.$ac_ext
11149 fi
11150 ac_res=`eval echo '${'$as_ac_var'}'`
11151                { echo "$as_me:$LINENO: result: $ac_res" >&5
11152 echo "${ECHO_T}$ac_res" >&6; }
11153 if test `eval echo '${'$as_ac_var'}'` = yes; then
11154   cat >>confdefs.h <<_ACEOF
11155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11156 _ACEOF
11157
11158 fi
11159 done
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11189                   stdio.h unistd.h
11190 do
11191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11193   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11196   echo $ECHO_N "(cached) $ECHO_C" >&6
11197 fi
11198 ac_res=`eval echo '${'$as_ac_Header'}'`
11199                { echo "$as_me:$LINENO: result: $ac_res" >&5
11200 echo "${ECHO_T}$ac_res" >&6; }
11201 else
11202   # Is the header compilable?
11203 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11205 cat >conftest.$ac_ext <<_ACEOF
11206 /* confdefs.h.  */
11207 _ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h.  */
11211 $ac_includes_default
11212 #include <$ac_header>
11213 _ACEOF
11214 rm -f conftest.$ac_objext
11215 if { (ac_try="$ac_compile"
11216 case "(($ac_try" in
11217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218   *) ac_try_echo=$ac_try;;
11219 esac
11220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221   (eval "$ac_compile") 2>conftest.er1
11222   ac_status=$?
11223   grep -v '^ *+' conftest.er1 >conftest.err
11224   rm -f conftest.er1
11225   cat conftest.err >&5
11226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227   (exit $ac_status); } &&
11228          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11229   { (case "(($ac_try" in
11230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11231   *) ac_try_echo=$ac_try;;
11232 esac
11233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11234   (eval "$ac_try") 2>&5
11235   ac_status=$?
11236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237   (exit $ac_status); }; } &&
11238          { ac_try='test -s conftest.$ac_objext'
11239   { (case "(($ac_try" in
11240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11241   *) ac_try_echo=$ac_try;;
11242 esac
11243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244   (eval "$ac_try") 2>&5
11245   ac_status=$?
11246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247   (exit $ac_status); }; }; then
11248   ac_header_compiler=yes
11249 else
11250   echo "$as_me: failed program was:" >&5
11251 sed 's/^/| /' conftest.$ac_ext >&5
11252
11253         ac_header_compiler=no
11254 fi
11255
11256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11257 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11258 echo "${ECHO_T}$ac_header_compiler" >&6; }
11259
11260 # Is the header present?
11261 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11263 cat >conftest.$ac_ext <<_ACEOF
11264 /* confdefs.h.  */
11265 _ACEOF
11266 cat confdefs.h >>conftest.$ac_ext
11267 cat >>conftest.$ac_ext <<_ACEOF
11268 /* end confdefs.h.  */
11269 #include <$ac_header>
11270 _ACEOF
11271 if { (ac_try="$ac_cpp conftest.$ac_ext"
11272 case "(($ac_try" in
11273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11274   *) ac_try_echo=$ac_try;;
11275 esac
11276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11277   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11278   ac_status=$?
11279   grep -v '^ *+' conftest.er1 >conftest.err
11280   rm -f conftest.er1
11281   cat conftest.err >&5
11282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283   (exit $ac_status); } >/dev/null; then
11284   if test -s conftest.err; then
11285     ac_cpp_err=$ac_c_preproc_warn_flag
11286     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11287   else
11288     ac_cpp_err=
11289   fi
11290 else
11291   ac_cpp_err=yes
11292 fi
11293 if test -z "$ac_cpp_err"; then
11294   ac_header_preproc=yes
11295 else
11296   echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11298
11299   ac_header_preproc=no
11300 fi
11301
11302 rm -f conftest.err conftest.$ac_ext
11303 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11304 echo "${ECHO_T}$ac_header_preproc" >&6; }
11305
11306 # So?  What about this header?
11307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11308   yes:no: )
11309     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11311     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11313     ac_header_preproc=yes
11314     ;;
11315   no:yes:* )
11316     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11318     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11319 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11320     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11322     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11323 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11324     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11326     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11328     ( cat <<\_ASBOX
11329 ## ----------------------------------- ##
11330 ## Report this to llvmbugs@cs.uiuc.edu ##
11331 ## ----------------------------------- ##
11332 _ASBOX
11333      ) | sed "s/^/$as_me: WARNING:     /" >&2
11334     ;;
11335 esac
11336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11339   echo $ECHO_N "(cached) $ECHO_C" >&6
11340 else
11341   eval "$as_ac_Header=\$ac_header_preproc"
11342 fi
11343 ac_res=`eval echo '${'$as_ac_Header'}'`
11344                { echo "$as_me:$LINENO: result: $ac_res" >&5
11345 echo "${ECHO_T}$ac_res" >&6; }
11346
11347 fi
11348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11349   cat >>confdefs.h <<_ACEOF
11350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11351 _ACEOF
11352
11353 fi
11354
11355 done
11356
11357
11358
11359
11360
11361 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11362 do
11363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11365   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11368   echo $ECHO_N "(cached) $ECHO_C" >&6
11369 fi
11370 ac_res=`eval echo '${'$as_ac_Header'}'`
11371                { echo "$as_me:$LINENO: result: $ac_res" >&5
11372 echo "${ECHO_T}$ac_res" >&6; }
11373 else
11374   # Is the header compilable?
11375 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11376 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11377 cat >conftest.$ac_ext <<_ACEOF
11378 /* confdefs.h.  */
11379 _ACEOF
11380 cat confdefs.h >>conftest.$ac_ext
11381 cat >>conftest.$ac_ext <<_ACEOF
11382 /* end confdefs.h.  */
11383 $ac_includes_default
11384 #include <$ac_header>
11385 _ACEOF
11386 rm -f conftest.$ac_objext
11387 if { (ac_try="$ac_compile"
11388 case "(($ac_try" in
11389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11390   *) ac_try_echo=$ac_try;;
11391 esac
11392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11393   (eval "$ac_compile") 2>conftest.er1
11394   ac_status=$?
11395   grep -v '^ *+' conftest.er1 >conftest.err
11396   rm -f conftest.er1
11397   cat conftest.err >&5
11398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399   (exit $ac_status); } &&
11400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11401   { (case "(($ac_try" in
11402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403   *) ac_try_echo=$ac_try;;
11404 esac
11405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11406   (eval "$ac_try") 2>&5
11407   ac_status=$?
11408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409   (exit $ac_status); }; } &&
11410          { ac_try='test -s conftest.$ac_objext'
11411   { (case "(($ac_try" in
11412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11413   *) ac_try_echo=$ac_try;;
11414 esac
11415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11416   (eval "$ac_try") 2>&5
11417   ac_status=$?
11418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419   (exit $ac_status); }; }; then
11420   ac_header_compiler=yes
11421 else
11422   echo "$as_me: failed program was:" >&5
11423 sed 's/^/| /' conftest.$ac_ext >&5
11424
11425         ac_header_compiler=no
11426 fi
11427
11428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11429 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11430 echo "${ECHO_T}$ac_header_compiler" >&6; }
11431
11432 # Is the header present?
11433 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11435 cat >conftest.$ac_ext <<_ACEOF
11436 /* confdefs.h.  */
11437 _ACEOF
11438 cat confdefs.h >>conftest.$ac_ext
11439 cat >>conftest.$ac_ext <<_ACEOF
11440 /* end confdefs.h.  */
11441 #include <$ac_header>
11442 _ACEOF
11443 if { (ac_try="$ac_cpp conftest.$ac_ext"
11444 case "(($ac_try" in
11445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446   *) ac_try_echo=$ac_try;;
11447 esac
11448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11450   ac_status=$?
11451   grep -v '^ *+' conftest.er1 >conftest.err
11452   rm -f conftest.er1
11453   cat conftest.err >&5
11454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455   (exit $ac_status); } >/dev/null; then
11456   if test -s conftest.err; then
11457     ac_cpp_err=$ac_c_preproc_warn_flag
11458     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11459   else
11460     ac_cpp_err=
11461   fi
11462 else
11463   ac_cpp_err=yes
11464 fi
11465 if test -z "$ac_cpp_err"; then
11466   ac_header_preproc=yes
11467 else
11468   echo "$as_me: failed program was:" >&5
11469 sed 's/^/| /' conftest.$ac_ext >&5
11470
11471   ac_header_preproc=no
11472 fi
11473
11474 rm -f conftest.err conftest.$ac_ext
11475 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11476 echo "${ECHO_T}$ac_header_preproc" >&6; }
11477
11478 # So?  What about this header?
11479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11480   yes:no: )
11481     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11483     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11484 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11485     ac_header_preproc=yes
11486     ;;
11487   no:yes:* )
11488     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11489 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11490     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11491 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11492     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11493 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11494     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11495 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11496     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11498     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11499 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11500     ( cat <<\_ASBOX
11501 ## ----------------------------------- ##
11502 ## Report this to llvmbugs@cs.uiuc.edu ##
11503 ## ----------------------------------- ##
11504 _ASBOX
11505      ) | sed "s/^/$as_me: WARNING:     /" >&2
11506     ;;
11507 esac
11508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11511   echo $ECHO_N "(cached) $ECHO_C" >&6
11512 else
11513   eval "$as_ac_Header=\$ac_header_preproc"
11514 fi
11515 ac_res=`eval echo '${'$as_ac_Header'}'`
11516                { echo "$as_me:$LINENO: result: $ac_res" >&5
11517 echo "${ECHO_T}$ac_res" >&6; }
11518
11519 fi
11520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11521   cat >>confdefs.h <<_ACEOF
11522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11523 _ACEOF
11524
11525 fi
11526
11527 done
11528
11529
11530
11531 for ac_header in string.h strings.h
11532 do
11533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11535   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11538   echo $ECHO_N "(cached) $ECHO_C" >&6
11539 fi
11540 ac_res=`eval echo '${'$as_ac_Header'}'`
11541                { echo "$as_me:$LINENO: result: $ac_res" >&5
11542 echo "${ECHO_T}$ac_res" >&6; }
11543 else
11544   # Is the header compilable?
11545 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11547 cat >conftest.$ac_ext <<_ACEOF
11548 /* confdefs.h.  */
11549 _ACEOF
11550 cat confdefs.h >>conftest.$ac_ext
11551 cat >>conftest.$ac_ext <<_ACEOF
11552 /* end confdefs.h.  */
11553 $ac_includes_default
11554 #include <$ac_header>
11555 _ACEOF
11556 rm -f conftest.$ac_objext
11557 if { (ac_try="$ac_compile"
11558 case "(($ac_try" in
11559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11560   *) ac_try_echo=$ac_try;;
11561 esac
11562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11563   (eval "$ac_compile") 2>conftest.er1
11564   ac_status=$?
11565   grep -v '^ *+' conftest.er1 >conftest.err
11566   rm -f conftest.er1
11567   cat conftest.err >&5
11568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569   (exit $ac_status); } &&
11570          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11571   { (case "(($ac_try" in
11572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11573   *) ac_try_echo=$ac_try;;
11574 esac
11575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11576   (eval "$ac_try") 2>&5
11577   ac_status=$?
11578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579   (exit $ac_status); }; } &&
11580          { ac_try='test -s conftest.$ac_objext'
11581   { (case "(($ac_try" in
11582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11583   *) ac_try_echo=$ac_try;;
11584 esac
11585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11586   (eval "$ac_try") 2>&5
11587   ac_status=$?
11588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589   (exit $ac_status); }; }; then
11590   ac_header_compiler=yes
11591 else
11592   echo "$as_me: failed program was:" >&5
11593 sed 's/^/| /' conftest.$ac_ext >&5
11594
11595         ac_header_compiler=no
11596 fi
11597
11598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11600 echo "${ECHO_T}$ac_header_compiler" >&6; }
11601
11602 # Is the header present?
11603 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11605 cat >conftest.$ac_ext <<_ACEOF
11606 /* confdefs.h.  */
11607 _ACEOF
11608 cat confdefs.h >>conftest.$ac_ext
11609 cat >>conftest.$ac_ext <<_ACEOF
11610 /* end confdefs.h.  */
11611 #include <$ac_header>
11612 _ACEOF
11613 if { (ac_try="$ac_cpp conftest.$ac_ext"
11614 case "(($ac_try" in
11615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11616   *) ac_try_echo=$ac_try;;
11617 esac
11618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11619   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11620   ac_status=$?
11621   grep -v '^ *+' conftest.er1 >conftest.err
11622   rm -f conftest.er1
11623   cat conftest.err >&5
11624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625   (exit $ac_status); } >/dev/null; then
11626   if test -s conftest.err; then
11627     ac_cpp_err=$ac_c_preproc_warn_flag
11628     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11629   else
11630     ac_cpp_err=
11631   fi
11632 else
11633   ac_cpp_err=yes
11634 fi
11635 if test -z "$ac_cpp_err"; then
11636   ac_header_preproc=yes
11637 else
11638   echo "$as_me: failed program was:" >&5
11639 sed 's/^/| /' conftest.$ac_ext >&5
11640
11641   ac_header_preproc=no
11642 fi
11643
11644 rm -f conftest.err conftest.$ac_ext
11645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11646 echo "${ECHO_T}$ac_header_preproc" >&6; }
11647
11648 # So?  What about this header?
11649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11650   yes:no: )
11651     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11653     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11654 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11655     ac_header_preproc=yes
11656     ;;
11657   no:yes:* )
11658     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11659 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11660     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11661 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11662     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11663 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11664     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11665 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11666     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11668     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11669 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11670     ( cat <<\_ASBOX
11671 ## ----------------------------------- ##
11672 ## Report this to llvmbugs@cs.uiuc.edu ##
11673 ## ----------------------------------- ##
11674 _ASBOX
11675      ) | sed "s/^/$as_me: WARNING:     /" >&2
11676     ;;
11677 esac
11678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11681   echo $ECHO_N "(cached) $ECHO_C" >&6
11682 else
11683   eval "$as_ac_Header=\$ac_header_preproc"
11684 fi
11685 ac_res=`eval echo '${'$as_ac_Header'}'`
11686                { echo "$as_me:$LINENO: result: $ac_res" >&5
11687 echo "${ECHO_T}$ac_res" >&6; }
11688
11689 fi
11690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11691   cat >>confdefs.h <<_ACEOF
11692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11693 _ACEOF
11694  break
11695 fi
11696
11697 done
11698
11699
11700
11701
11702 for ac_func in strchr index
11703 do
11704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11705 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11707 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11708   echo $ECHO_N "(cached) $ECHO_C" >&6
11709 else
11710   cat >conftest.$ac_ext <<_ACEOF
11711 /* confdefs.h.  */
11712 _ACEOF
11713 cat confdefs.h >>conftest.$ac_ext
11714 cat >>conftest.$ac_ext <<_ACEOF
11715 /* end confdefs.h.  */
11716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11717    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11718 #define $ac_func innocuous_$ac_func
11719
11720 /* System header to define __stub macros and hopefully few prototypes,
11721     which can conflict with char $ac_func (); below.
11722     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11723     <limits.h> exists even on freestanding compilers.  */
11724
11725 #ifdef __STDC__
11726 # include <limits.h>
11727 #else
11728 # include <assert.h>
11729 #endif
11730
11731 #undef $ac_func
11732
11733 /* Override any GCC internal prototype to avoid an error.
11734    Use char because int might match the return type of a GCC
11735    builtin and then its argument prototype would still apply.  */
11736 #ifdef __cplusplus
11737 extern "C"
11738 #endif
11739 char $ac_func ();
11740 /* The GNU C library defines this for functions which it implements
11741     to always fail with ENOSYS.  Some functions are actually named
11742     something starting with __ and the normal name is an alias.  */
11743 #if defined __stub_$ac_func || defined __stub___$ac_func
11744 choke me
11745 #endif
11746
11747 int
11748 main ()
11749 {
11750 return $ac_func ();
11751   ;
11752   return 0;
11753 }
11754 _ACEOF
11755 rm -f conftest.$ac_objext conftest$ac_exeext
11756 if { (ac_try="$ac_link"
11757 case "(($ac_try" in
11758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759   *) ac_try_echo=$ac_try;;
11760 esac
11761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11762   (eval "$ac_link") 2>conftest.er1
11763   ac_status=$?
11764   grep -v '^ *+' conftest.er1 >conftest.err
11765   rm -f conftest.er1
11766   cat conftest.err >&5
11767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768   (exit $ac_status); } &&
11769          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11770   { (case "(($ac_try" in
11771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772   *) ac_try_echo=$ac_try;;
11773 esac
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775   (eval "$ac_try") 2>&5
11776   ac_status=$?
11777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778   (exit $ac_status); }; } &&
11779          { ac_try='test -s conftest$ac_exeext'
11780   { (case "(($ac_try" in
11781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11782   *) ac_try_echo=$ac_try;;
11783 esac
11784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11785   (eval "$ac_try") 2>&5
11786   ac_status=$?
11787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788   (exit $ac_status); }; }; then
11789   eval "$as_ac_var=yes"
11790 else
11791   echo "$as_me: failed program was:" >&5
11792 sed 's/^/| /' conftest.$ac_ext >&5
11793
11794         eval "$as_ac_var=no"
11795 fi
11796
11797 rm -f core conftest.err conftest.$ac_objext \
11798       conftest$ac_exeext conftest.$ac_ext
11799 fi
11800 ac_res=`eval echo '${'$as_ac_var'}'`
11801                { echo "$as_me:$LINENO: result: $ac_res" >&5
11802 echo "${ECHO_T}$ac_res" >&6; }
11803 if test `eval echo '${'$as_ac_var'}'` = yes; then
11804   cat >>confdefs.h <<_ACEOF
11805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11806 _ACEOF
11807  break
11808 fi
11809 done
11810
11811
11812
11813 for ac_func in strrchr rindex
11814 do
11815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11816 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11818 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11819   echo $ECHO_N "(cached) $ECHO_C" >&6
11820 else
11821   cat >conftest.$ac_ext <<_ACEOF
11822 /* confdefs.h.  */
11823 _ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h.  */
11827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11828    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11829 #define $ac_func innocuous_$ac_func
11830
11831 /* System header to define __stub macros and hopefully few prototypes,
11832     which can conflict with char $ac_func (); below.
11833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11834     <limits.h> exists even on freestanding compilers.  */
11835
11836 #ifdef __STDC__
11837 # include <limits.h>
11838 #else
11839 # include <assert.h>
11840 #endif
11841
11842 #undef $ac_func
11843
11844 /* Override any GCC internal prototype to avoid an error.
11845    Use char because int might match the return type of a GCC
11846    builtin and then its argument prototype would still apply.  */
11847 #ifdef __cplusplus
11848 extern "C"
11849 #endif
11850 char $ac_func ();
11851 /* The GNU C library defines this for functions which it implements
11852     to always fail with ENOSYS.  Some functions are actually named
11853     something starting with __ and the normal name is an alias.  */
11854 #if defined __stub_$ac_func || defined __stub___$ac_func
11855 choke me
11856 #endif
11857
11858 int
11859 main ()
11860 {
11861 return $ac_func ();
11862   ;
11863   return 0;
11864 }
11865 _ACEOF
11866 rm -f conftest.$ac_objext conftest$ac_exeext
11867 if { (ac_try="$ac_link"
11868 case "(($ac_try" in
11869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870   *) ac_try_echo=$ac_try;;
11871 esac
11872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11873   (eval "$ac_link") 2>conftest.er1
11874   ac_status=$?
11875   grep -v '^ *+' conftest.er1 >conftest.err
11876   rm -f conftest.er1
11877   cat conftest.err >&5
11878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879   (exit $ac_status); } &&
11880          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11881   { (case "(($ac_try" in
11882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883   *) ac_try_echo=$ac_try;;
11884 esac
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886   (eval "$ac_try") 2>&5
11887   ac_status=$?
11888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889   (exit $ac_status); }; } &&
11890          { ac_try='test -s conftest$ac_exeext'
11891   { (case "(($ac_try" in
11892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11893   *) ac_try_echo=$ac_try;;
11894 esac
11895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11896   (eval "$ac_try") 2>&5
11897   ac_status=$?
11898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899   (exit $ac_status); }; }; then
11900   eval "$as_ac_var=yes"
11901 else
11902   echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.$ac_ext >&5
11904
11905         eval "$as_ac_var=no"
11906 fi
11907
11908 rm -f core conftest.err conftest.$ac_objext \
11909       conftest$ac_exeext conftest.$ac_ext
11910 fi
11911 ac_res=`eval echo '${'$as_ac_var'}'`
11912                { echo "$as_me:$LINENO: result: $ac_res" >&5
11913 echo "${ECHO_T}$ac_res" >&6; }
11914 if test `eval echo '${'$as_ac_var'}'` = yes; then
11915   cat >>confdefs.h <<_ACEOF
11916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11917 _ACEOF
11918  break
11919 fi
11920 done
11921
11922
11923
11924 for ac_func in memcpy bcopy
11925 do
11926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11927 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11929 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11930   echo $ECHO_N "(cached) $ECHO_C" >&6
11931 else
11932   cat >conftest.$ac_ext <<_ACEOF
11933 /* confdefs.h.  */
11934 _ACEOF
11935 cat confdefs.h >>conftest.$ac_ext
11936 cat >>conftest.$ac_ext <<_ACEOF
11937 /* end confdefs.h.  */
11938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11939    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11940 #define $ac_func innocuous_$ac_func
11941
11942 /* System header to define __stub macros and hopefully few prototypes,
11943     which can conflict with char $ac_func (); below.
11944     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11945     <limits.h> exists even on freestanding compilers.  */
11946
11947 #ifdef __STDC__
11948 # include <limits.h>
11949 #else
11950 # include <assert.h>
11951 #endif
11952
11953 #undef $ac_func
11954
11955 /* Override any GCC internal prototype to avoid an error.
11956    Use char because int might match the return type of a GCC
11957    builtin and then its argument prototype would still apply.  */
11958 #ifdef __cplusplus
11959 extern "C"
11960 #endif
11961 char $ac_func ();
11962 /* The GNU C library defines this for functions which it implements
11963     to always fail with ENOSYS.  Some functions are actually named
11964     something starting with __ and the normal name is an alias.  */
11965 #if defined __stub_$ac_func || defined __stub___$ac_func
11966 choke me
11967 #endif
11968
11969 int
11970 main ()
11971 {
11972 return $ac_func ();
11973   ;
11974   return 0;
11975 }
11976 _ACEOF
11977 rm -f conftest.$ac_objext conftest$ac_exeext
11978 if { (ac_try="$ac_link"
11979 case "(($ac_try" in
11980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981   *) ac_try_echo=$ac_try;;
11982 esac
11983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984   (eval "$ac_link") 2>conftest.er1
11985   ac_status=$?
11986   grep -v '^ *+' conftest.er1 >conftest.err
11987   rm -f conftest.er1
11988   cat conftest.err >&5
11989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990   (exit $ac_status); } &&
11991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11992   { (case "(($ac_try" in
11993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994   *) ac_try_echo=$ac_try;;
11995 esac
11996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997   (eval "$ac_try") 2>&5
11998   ac_status=$?
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); }; } &&
12001          { ac_try='test -s conftest$ac_exeext'
12002   { (case "(($ac_try" in
12003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004   *) ac_try_echo=$ac_try;;
12005 esac
12006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007   (eval "$ac_try") 2>&5
12008   ac_status=$?
12009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010   (exit $ac_status); }; }; then
12011   eval "$as_ac_var=yes"
12012 else
12013   echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12015
12016         eval "$as_ac_var=no"
12017 fi
12018
12019 rm -f core conftest.err conftest.$ac_objext \
12020       conftest$ac_exeext conftest.$ac_ext
12021 fi
12022 ac_res=`eval echo '${'$as_ac_var'}'`
12023                { echo "$as_me:$LINENO: result: $ac_res" >&5
12024 echo "${ECHO_T}$ac_res" >&6; }
12025 if test `eval echo '${'$as_ac_var'}'` = yes; then
12026   cat >>confdefs.h <<_ACEOF
12027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12028 _ACEOF
12029  break
12030 fi
12031 done
12032
12033
12034
12035 for ac_func in memmove strcmp
12036 do
12037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12038 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12040 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12041   echo $ECHO_N "(cached) $ECHO_C" >&6
12042 else
12043   cat >conftest.$ac_ext <<_ACEOF
12044 /* confdefs.h.  */
12045 _ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h.  */
12049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12050    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12051 #define $ac_func innocuous_$ac_func
12052
12053 /* System header to define __stub macros and hopefully few prototypes,
12054     which can conflict with char $ac_func (); below.
12055     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12056     <limits.h> exists even on freestanding compilers.  */
12057
12058 #ifdef __STDC__
12059 # include <limits.h>
12060 #else
12061 # include <assert.h>
12062 #endif
12063
12064 #undef $ac_func
12065
12066 /* Override any GCC internal prototype to avoid an error.
12067    Use char because int might match the return type of a GCC
12068    builtin and then its argument prototype would still apply.  */
12069 #ifdef __cplusplus
12070 extern "C"
12071 #endif
12072 char $ac_func ();
12073 /* The GNU C library defines this for functions which it implements
12074     to always fail with ENOSYS.  Some functions are actually named
12075     something starting with __ and the normal name is an alias.  */
12076 #if defined __stub_$ac_func || defined __stub___$ac_func
12077 choke me
12078 #endif
12079
12080 int
12081 main ()
12082 {
12083 return $ac_func ();
12084   ;
12085   return 0;
12086 }
12087 _ACEOF
12088 rm -f conftest.$ac_objext conftest$ac_exeext
12089 if { (ac_try="$ac_link"
12090 case "(($ac_try" in
12091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092   *) ac_try_echo=$ac_try;;
12093 esac
12094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12095   (eval "$ac_link") 2>conftest.er1
12096   ac_status=$?
12097   grep -v '^ *+' conftest.er1 >conftest.err
12098   rm -f conftest.er1
12099   cat conftest.err >&5
12100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101   (exit $ac_status); } &&
12102          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12103   { (case "(($ac_try" in
12104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12105   *) ac_try_echo=$ac_try;;
12106 esac
12107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12108   (eval "$ac_try") 2>&5
12109   ac_status=$?
12110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111   (exit $ac_status); }; } &&
12112          { ac_try='test -s conftest$ac_exeext'
12113   { (case "(($ac_try" in
12114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115   *) ac_try_echo=$ac_try;;
12116 esac
12117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118   (eval "$ac_try") 2>&5
12119   ac_status=$?
12120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121   (exit $ac_status); }; }; then
12122   eval "$as_ac_var=yes"
12123 else
12124   echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12126
12127         eval "$as_ac_var=no"
12128 fi
12129
12130 rm -f core conftest.err conftest.$ac_objext \
12131       conftest$ac_exeext conftest.$ac_ext
12132 fi
12133 ac_res=`eval echo '${'$as_ac_var'}'`
12134                { echo "$as_me:$LINENO: result: $ac_res" >&5
12135 echo "${ECHO_T}$ac_res" >&6; }
12136 if test `eval echo '${'$as_ac_var'}'` = yes; then
12137   cat >>confdefs.h <<_ACEOF
12138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12139 _ACEOF
12140
12141 fi
12142 done
12143
12144
12145
12146
12147 for ac_func in closedir opendir readdir
12148 do
12149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12150 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12153   echo $ECHO_N "(cached) $ECHO_C" >&6
12154 else
12155   cat >conftest.$ac_ext <<_ACEOF
12156 /* confdefs.h.  */
12157 _ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h.  */
12161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12162    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12163 #define $ac_func innocuous_$ac_func
12164
12165 /* System header to define __stub macros and hopefully few prototypes,
12166     which can conflict with char $ac_func (); below.
12167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12168     <limits.h> exists even on freestanding compilers.  */
12169
12170 #ifdef __STDC__
12171 # include <limits.h>
12172 #else
12173 # include <assert.h>
12174 #endif
12175
12176 #undef $ac_func
12177
12178 /* Override any GCC internal prototype to avoid an error.
12179    Use char because int might match the return type of a GCC
12180    builtin and then its argument prototype would still apply.  */
12181 #ifdef __cplusplus
12182 extern "C"
12183 #endif
12184 char $ac_func ();
12185 /* The GNU C library defines this for functions which it implements
12186     to always fail with ENOSYS.  Some functions are actually named
12187     something starting with __ and the normal name is an alias.  */
12188 #if defined __stub_$ac_func || defined __stub___$ac_func
12189 choke me
12190 #endif
12191
12192 int
12193 main ()
12194 {
12195 return $ac_func ();
12196   ;
12197   return 0;
12198 }
12199 _ACEOF
12200 rm -f conftest.$ac_objext conftest$ac_exeext
12201 if { (ac_try="$ac_link"
12202 case "(($ac_try" in
12203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204   *) ac_try_echo=$ac_try;;
12205 esac
12206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207   (eval "$ac_link") 2>conftest.er1
12208   ac_status=$?
12209   grep -v '^ *+' conftest.er1 >conftest.err
12210   rm -f conftest.er1
12211   cat conftest.err >&5
12212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213   (exit $ac_status); } &&
12214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12215   { (case "(($ac_try" in
12216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217   *) ac_try_echo=$ac_try;;
12218 esac
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220   (eval "$ac_try") 2>&5
12221   ac_status=$?
12222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223   (exit $ac_status); }; } &&
12224          { ac_try='test -s conftest$ac_exeext'
12225   { (case "(($ac_try" in
12226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227   *) ac_try_echo=$ac_try;;
12228 esac
12229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230   (eval "$ac_try") 2>&5
12231   ac_status=$?
12232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233   (exit $ac_status); }; }; then
12234   eval "$as_ac_var=yes"
12235 else
12236   echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12238
12239         eval "$as_ac_var=no"
12240 fi
12241
12242 rm -f core conftest.err conftest.$ac_objext \
12243       conftest$ac_exeext conftest.$ac_ext
12244 fi
12245 ac_res=`eval echo '${'$as_ac_var'}'`
12246                { echo "$as_me:$LINENO: result: $ac_res" >&5
12247 echo "${ECHO_T}$ac_res" >&6; }
12248 if test `eval echo '${'$as_ac_var'}'` = yes; then
12249   cat >>confdefs.h <<_ACEOF
12250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12251 _ACEOF
12252
12253 fi
12254 done
12255
12256
12257
12258 if test "$WITH_LLVMGCCDIR" = "default" ; then
12259   LLVMGCC="llvm-gcc${EXEEXT}"
12260   LLVMGXX="llvm-g++${EXEEXT}"
12261   LLVMGCCCOMMAND="$LLVMGCC"
12262   LLVMGXXCOMMAND="$LLVMGXX"
12263   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12264
12265   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12266
12267   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12268 set dummy $LLVMGCC; ac_word=$2
12269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12271 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12272   echo $ECHO_N "(cached) $ECHO_C" >&6
12273 else
12274   case $LLVMGCC in
12275   [\\/]* | ?:[\\/]*)
12276   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12277   ;;
12278   *)
12279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280 for as_dir in $PATH
12281 do
12282   IFS=$as_save_IFS
12283   test -z "$as_dir" && as_dir=.
12284   for ac_exec_ext in '' $ac_executable_extensions; do
12285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12286     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12288     break 2
12289   fi
12290 done
12291 done
12292 IFS=$as_save_IFS
12293
12294   ;;
12295 esac
12296 fi
12297 LLVMGCC=$ac_cv_path_LLVMGCC
12298 if test -n "$LLVMGCC"; then
12299   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12300 echo "${ECHO_T}$LLVMGCC" >&6; }
12301 else
12302   { echo "$as_me:$LINENO: result: no" >&5
12303 echo "${ECHO_T}no" >&6; }
12304 fi
12305
12306
12307   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12308 set dummy $LLVMGXX; ac_word=$2
12309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12311 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12312   echo $ECHO_N "(cached) $ECHO_C" >&6
12313 else
12314   case $LLVMGXX in
12315   [\\/]* | ?:[\\/]*)
12316   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12317   ;;
12318   *)
12319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12320 for as_dir in $PATH
12321 do
12322   IFS=$as_save_IFS
12323   test -z "$as_dir" && as_dir=.
12324   for ac_exec_ext in '' $ac_executable_extensions; do
12325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12326     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
12327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12328     break 2
12329   fi
12330 done
12331 done
12332 IFS=$as_save_IFS
12333
12334   ;;
12335 esac
12336 fi
12337 LLVMGXX=$ac_cv_path_LLVMGXX
12338 if test -n "$LLVMGXX"; then
12339   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12340 echo "${ECHO_T}$LLVMGXX" >&6; }
12341 else
12342   { echo "$as_me:$LINENO: result: no" >&5
12343 echo "${ECHO_T}no" >&6; }
12344 fi
12345
12346
12347 else
12348   if test -z "$LLVMGCC"; then
12349     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
12350     LLVMGCCCOMMAND="$LLVMGCC"
12351   fi
12352   if test -z "$LLVMGXX"; then
12353     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
12354     LLVMGXXCOMMAND="$LLVMGXX"
12355   fi
12356
12357   LLVMGCC=$LLVMGCC
12358
12359   LLVMGXX=$LLVMGXX
12360
12361   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12362
12363   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12364
12365 fi
12366
12367
12368 # Check whether --with-llvmcc was given.
12369 if test "${with_llvmcc+set}" = set; then
12370   withval=$with_llvmcc;
12371 else
12372   with_llvmcc=check
12373 fi
12374
12375 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12376 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12377 if test "$with_llvmcc" != "check"; then
12378    if (test "$with_llvmcc" != "llvm-gcc" &&
12379        test "$with_llvmcc" != "clang" &&
12380        test "$with_llvmcc" != "none"); then
12381       { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12382 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12383    { (exit 1); exit 1; }; }
12384    fi
12385    WITH_LLVMCC="$with_llvmcc"
12386 elif test -n "$LLVMGCC"; then
12387    WITH_LLVMCC=llvm-gcc
12388 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12389    WITH_LLVMCC=clang
12390 else
12391    WITH_LLVMCC=none
12392 fi
12393 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12394 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12395 LLVMCC_OPTION=$WITH_LLVMCC
12396
12397
12398 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12399 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12400
12401 ICC=no
12402 IXX=no
12403 case $CC in
12404   icc*|icpc*)
12405     ICC=yes
12406     IXX=yes
12407     ;;
12408    *)
12409     ;;
12410 esac
12411
12412 if test "$GCC" != "yes" && test "$ICC" != "yes"
12413 then
12414   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12415 echo "$as_me: error: gcc|icc required but not found" >&2;}
12416    { (exit 1); exit 1; }; }
12417 fi
12418
12419 if test "$GXX" != "yes" && test "$IXX" != "yes"
12420 then
12421   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12422 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12423    { (exit 1); exit 1; }; }
12424 fi
12425
12426 if test "$GCC" = "yes"
12427 then
12428   cat >conftest.$ac_ext <<_ACEOF
12429 #if !defined(__GNUC__) || __GNUC__ < 3
12430 #error Unsupported GCC version
12431 #endif
12432
12433 _ACEOF
12434 rm -f conftest.$ac_objext
12435 if { (ac_try="$ac_compile"
12436 case "(($ac_try" in
12437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438   *) ac_try_echo=$ac_try;;
12439 esac
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441   (eval "$ac_compile") 2>conftest.er1
12442   ac_status=$?
12443   grep -v '^ *+' conftest.er1 >conftest.err
12444   rm -f conftest.er1
12445   cat conftest.err >&5
12446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447   (exit $ac_status); } &&
12448          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12449   { (case "(($ac_try" in
12450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451   *) ac_try_echo=$ac_try;;
12452 esac
12453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454   (eval "$ac_try") 2>&5
12455   ac_status=$?
12456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457   (exit $ac_status); }; } &&
12458          { ac_try='test -s conftest.$ac_objext'
12459   { (case "(($ac_try" in
12460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461   *) ac_try_echo=$ac_try;;
12462 esac
12463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464   (eval "$ac_try") 2>&5
12465   ac_status=$?
12466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467   (exit $ac_status); }; }; then
12468   :
12469 else
12470   echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12472
12473         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12474 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12475    { (exit 1); exit 1; }; }
12476 fi
12477
12478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12479 fi
12480
12481 if test -z "$llvm_cv_gnu_make_command"
12482 then
12483   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12484 echo "$as_me: error: GNU Make required but not found" >&2;}
12485    { (exit 1); exit 1; }; }
12486 fi
12487
12488 { echo "$as_me:$LINENO: result: ok" >&5
12489 echo "${ECHO_T}ok" >&6; }
12490
12491 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12492 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12493 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12494
12495 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12496
12497 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12498 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12499
12500
12501
12502 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12503 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12504 if test "${ac_cv_lib_m_sin+set}" = set; then
12505   echo $ECHO_N "(cached) $ECHO_C" >&6
12506 else
12507   ac_check_lib_save_LIBS=$LIBS
12508 LIBS="-lm  $LIBS"
12509 cat >conftest.$ac_ext <<_ACEOF
12510 /* confdefs.h.  */
12511 _ACEOF
12512 cat confdefs.h >>conftest.$ac_ext
12513 cat >>conftest.$ac_ext <<_ACEOF
12514 /* end confdefs.h.  */
12515
12516 /* Override any GCC internal prototype to avoid an error.
12517    Use char because int might match the return type of a GCC
12518    builtin and then its argument prototype would still apply.  */
12519 #ifdef __cplusplus
12520 extern "C"
12521 #endif
12522 char sin ();
12523 int
12524 main ()
12525 {
12526 return sin ();
12527   ;
12528   return 0;
12529 }
12530 _ACEOF
12531 rm -f conftest.$ac_objext conftest$ac_exeext
12532 if { (ac_try="$ac_link"
12533 case "(($ac_try" in
12534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535   *) ac_try_echo=$ac_try;;
12536 esac
12537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12538   (eval "$ac_link") 2>conftest.er1
12539   ac_status=$?
12540   grep -v '^ *+' conftest.er1 >conftest.err
12541   rm -f conftest.er1
12542   cat conftest.err >&5
12543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544   (exit $ac_status); } &&
12545          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12546   { (case "(($ac_try" in
12547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12548   *) ac_try_echo=$ac_try;;
12549 esac
12550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12551   (eval "$ac_try") 2>&5
12552   ac_status=$?
12553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554   (exit $ac_status); }; } &&
12555          { ac_try='test -s conftest$ac_exeext'
12556   { (case "(($ac_try" in
12557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12558   *) ac_try_echo=$ac_try;;
12559 esac
12560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12561   (eval "$ac_try") 2>&5
12562   ac_status=$?
12563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564   (exit $ac_status); }; }; then
12565   ac_cv_lib_m_sin=yes
12566 else
12567   echo "$as_me: failed program was:" >&5
12568 sed 's/^/| /' conftest.$ac_ext >&5
12569
12570         ac_cv_lib_m_sin=no
12571 fi
12572
12573 rm -f core conftest.err conftest.$ac_objext \
12574       conftest$ac_exeext conftest.$ac_ext
12575 LIBS=$ac_check_lib_save_LIBS
12576 fi
12577 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12578 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12579 if test $ac_cv_lib_m_sin = yes; then
12580   cat >>confdefs.h <<_ACEOF
12581 #define HAVE_LIBM 1
12582 _ACEOF
12583
12584   LIBS="-lm $LIBS"
12585
12586 fi
12587
12588 if test "$llvm_cv_os_type" = "MingW" ; then
12589
12590 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12591 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12592 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12593   echo $ECHO_N "(cached) $ECHO_C" >&6
12594 else
12595   ac_check_lib_save_LIBS=$LIBS
12596 LIBS="-limagehlp  $LIBS"
12597 cat >conftest.$ac_ext <<_ACEOF
12598 /* confdefs.h.  */
12599 _ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h.  */
12603
12604
12605 int
12606 main ()
12607 {
12608 return main ();
12609   ;
12610   return 0;
12611 }
12612 _ACEOF
12613 rm -f conftest.$ac_objext conftest$ac_exeext
12614 if { (ac_try="$ac_link"
12615 case "(($ac_try" in
12616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617   *) ac_try_echo=$ac_try;;
12618 esac
12619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620   (eval "$ac_link") 2>conftest.er1
12621   ac_status=$?
12622   grep -v '^ *+' conftest.er1 >conftest.err
12623   rm -f conftest.er1
12624   cat conftest.err >&5
12625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626   (exit $ac_status); } &&
12627          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12628   { (case "(($ac_try" in
12629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12630   *) ac_try_echo=$ac_try;;
12631 esac
12632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12633   (eval "$ac_try") 2>&5
12634   ac_status=$?
12635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636   (exit $ac_status); }; } &&
12637          { ac_try='test -s conftest$ac_exeext'
12638   { (case "(($ac_try" in
12639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640   *) ac_try_echo=$ac_try;;
12641 esac
12642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643   (eval "$ac_try") 2>&5
12644   ac_status=$?
12645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646   (exit $ac_status); }; }; then
12647   ac_cv_lib_imagehlp_main=yes
12648 else
12649   echo "$as_me: failed program was:" >&5
12650 sed 's/^/| /' conftest.$ac_ext >&5
12651
12652         ac_cv_lib_imagehlp_main=no
12653 fi
12654
12655 rm -f core conftest.err conftest.$ac_objext \
12656       conftest$ac_exeext conftest.$ac_ext
12657 LIBS=$ac_check_lib_save_LIBS
12658 fi
12659 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12660 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12661 if test $ac_cv_lib_imagehlp_main = yes; then
12662   cat >>confdefs.h <<_ACEOF
12663 #define HAVE_LIBIMAGEHLP 1
12664 _ACEOF
12665
12666   LIBS="-limagehlp $LIBS"
12667
12668 fi
12669
12670
12671 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12672 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12673 if test "${ac_cv_lib_psapi_main+set}" = set; then
12674   echo $ECHO_N "(cached) $ECHO_C" >&6
12675 else
12676   ac_check_lib_save_LIBS=$LIBS
12677 LIBS="-lpsapi  $LIBS"
12678 cat >conftest.$ac_ext <<_ACEOF
12679 /* confdefs.h.  */
12680 _ACEOF
12681 cat confdefs.h >>conftest.$ac_ext
12682 cat >>conftest.$ac_ext <<_ACEOF
12683 /* end confdefs.h.  */
12684
12685
12686 int
12687 main ()
12688 {
12689 return main ();
12690   ;
12691   return 0;
12692 }
12693 _ACEOF
12694 rm -f conftest.$ac_objext conftest$ac_exeext
12695 if { (ac_try="$ac_link"
12696 case "(($ac_try" in
12697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12698   *) ac_try_echo=$ac_try;;
12699 esac
12700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12701   (eval "$ac_link") 2>conftest.er1
12702   ac_status=$?
12703   grep -v '^ *+' conftest.er1 >conftest.err
12704   rm -f conftest.er1
12705   cat conftest.err >&5
12706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707   (exit $ac_status); } &&
12708          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12709   { (case "(($ac_try" in
12710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12711   *) ac_try_echo=$ac_try;;
12712 esac
12713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12714   (eval "$ac_try") 2>&5
12715   ac_status=$?
12716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717   (exit $ac_status); }; } &&
12718          { ac_try='test -s conftest$ac_exeext'
12719   { (case "(($ac_try" in
12720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12721   *) ac_try_echo=$ac_try;;
12722 esac
12723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12724   (eval "$ac_try") 2>&5
12725   ac_status=$?
12726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727   (exit $ac_status); }; }; then
12728   ac_cv_lib_psapi_main=yes
12729 else
12730   echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12732
12733         ac_cv_lib_psapi_main=no
12734 fi
12735
12736 rm -f core conftest.err conftest.$ac_objext \
12737       conftest$ac_exeext conftest.$ac_ext
12738 LIBS=$ac_check_lib_save_LIBS
12739 fi
12740 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12741 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12742 if test $ac_cv_lib_psapi_main = yes; then
12743   cat >>confdefs.h <<_ACEOF
12744 #define HAVE_LIBPSAPI 1
12745 _ACEOF
12746
12747   LIBS="-lpsapi $LIBS"
12748
12749 fi
12750
12751 fi
12752
12753 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12754 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12755 if test "${ac_cv_search_dlopen+set}" = set; then
12756   echo $ECHO_N "(cached) $ECHO_C" >&6
12757 else
12758   ac_func_search_save_LIBS=$LIBS
12759 cat >conftest.$ac_ext <<_ACEOF
12760 /* confdefs.h.  */
12761 _ACEOF
12762 cat confdefs.h >>conftest.$ac_ext
12763 cat >>conftest.$ac_ext <<_ACEOF
12764 /* end confdefs.h.  */
12765
12766 /* Override any GCC internal prototype to avoid an error.
12767    Use char because int might match the return type of a GCC
12768    builtin and then its argument prototype would still apply.  */
12769 #ifdef __cplusplus
12770 extern "C"
12771 #endif
12772 char dlopen ();
12773 int
12774 main ()
12775 {
12776 return dlopen ();
12777   ;
12778   return 0;
12779 }
12780 _ACEOF
12781 for ac_lib in '' dl; do
12782   if test -z "$ac_lib"; then
12783     ac_res="none required"
12784   else
12785     ac_res=-l$ac_lib
12786     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12787   fi
12788   rm -f conftest.$ac_objext conftest$ac_exeext
12789 if { (ac_try="$ac_link"
12790 case "(($ac_try" in
12791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12792   *) ac_try_echo=$ac_try;;
12793 esac
12794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12795   (eval "$ac_link") 2>conftest.er1
12796   ac_status=$?
12797   grep -v '^ *+' conftest.er1 >conftest.err
12798   rm -f conftest.er1
12799   cat conftest.err >&5
12800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801   (exit $ac_status); } &&
12802          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12803   { (case "(($ac_try" in
12804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805   *) ac_try_echo=$ac_try;;
12806 esac
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808   (eval "$ac_try") 2>&5
12809   ac_status=$?
12810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811   (exit $ac_status); }; } &&
12812          { ac_try='test -s conftest$ac_exeext'
12813   { (case "(($ac_try" in
12814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12815   *) ac_try_echo=$ac_try;;
12816 esac
12817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12818   (eval "$ac_try") 2>&5
12819   ac_status=$?
12820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821   (exit $ac_status); }; }; then
12822   ac_cv_search_dlopen=$ac_res
12823 else
12824   echo "$as_me: failed program was:" >&5
12825 sed 's/^/| /' conftest.$ac_ext >&5
12826
12827
12828 fi
12829
12830 rm -f core conftest.err conftest.$ac_objext \
12831       conftest$ac_exeext
12832   if test "${ac_cv_search_dlopen+set}" = set; then
12833   break
12834 fi
12835 done
12836 if test "${ac_cv_search_dlopen+set}" = set; then
12837   :
12838 else
12839   ac_cv_search_dlopen=no
12840 fi
12841 rm conftest.$ac_ext
12842 LIBS=$ac_func_search_save_LIBS
12843 fi
12844 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12845 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12846 ac_res=$ac_cv_search_dlopen
12847 if test "$ac_res" != no; then
12848   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12849
12850 cat >>confdefs.h <<\_ACEOF
12851 #define HAVE_DLOPEN 1
12852 _ACEOF
12853
12854 else
12855   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12856 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12857 fi
12858
12859
12860 if test "$llvm_cv_enable_libffi" = "yes" ; then
12861   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12862 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12863 if test "${ac_cv_search_ffi_call+set}" = set; then
12864   echo $ECHO_N "(cached) $ECHO_C" >&6
12865 else
12866   ac_func_search_save_LIBS=$LIBS
12867 cat >conftest.$ac_ext <<_ACEOF
12868 /* confdefs.h.  */
12869 _ACEOF
12870 cat confdefs.h >>conftest.$ac_ext
12871 cat >>conftest.$ac_ext <<_ACEOF
12872 /* end confdefs.h.  */
12873
12874 /* Override any GCC internal prototype to avoid an error.
12875    Use char because int might match the return type of a GCC
12876    builtin and then its argument prototype would still apply.  */
12877 #ifdef __cplusplus
12878 extern "C"
12879 #endif
12880 char ffi_call ();
12881 int
12882 main ()
12883 {
12884 return ffi_call ();
12885   ;
12886   return 0;
12887 }
12888 _ACEOF
12889 for ac_lib in '' ffi; do
12890   if test -z "$ac_lib"; then
12891     ac_res="none required"
12892   else
12893     ac_res=-l$ac_lib
12894     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12895   fi
12896   rm -f conftest.$ac_objext conftest$ac_exeext
12897 if { (ac_try="$ac_link"
12898 case "(($ac_try" in
12899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12900   *) ac_try_echo=$ac_try;;
12901 esac
12902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12903   (eval "$ac_link") 2>conftest.er1
12904   ac_status=$?
12905   grep -v '^ *+' conftest.er1 >conftest.err
12906   rm -f conftest.er1
12907   cat conftest.err >&5
12908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909   (exit $ac_status); } &&
12910          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12911   { (case "(($ac_try" in
12912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12913   *) ac_try_echo=$ac_try;;
12914 esac
12915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12916   (eval "$ac_try") 2>&5
12917   ac_status=$?
12918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919   (exit $ac_status); }; } &&
12920          { ac_try='test -s conftest$ac_exeext'
12921   { (case "(($ac_try" in
12922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12923   *) ac_try_echo=$ac_try;;
12924 esac
12925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12926   (eval "$ac_try") 2>&5
12927   ac_status=$?
12928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929   (exit $ac_status); }; }; then
12930   ac_cv_search_ffi_call=$ac_res
12931 else
12932   echo "$as_me: failed program was:" >&5
12933 sed 's/^/| /' conftest.$ac_ext >&5
12934
12935
12936 fi
12937
12938 rm -f core conftest.err conftest.$ac_objext \
12939       conftest$ac_exeext
12940   if test "${ac_cv_search_ffi_call+set}" = set; then
12941   break
12942 fi
12943 done
12944 if test "${ac_cv_search_ffi_call+set}" = set; then
12945   :
12946 else
12947   ac_cv_search_ffi_call=no
12948 fi
12949 rm conftest.$ac_ext
12950 LIBS=$ac_func_search_save_LIBS
12951 fi
12952 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12953 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12954 ac_res=$ac_cv_search_ffi_call
12955 if test "$ac_res" != no; then
12956   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12957
12958 cat >>confdefs.h <<\_ACEOF
12959 #define HAVE_FFI_CALL 1
12960 _ACEOF
12961
12962 else
12963   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12964 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12965    { (exit 1); exit 1; }; }
12966 fi
12967
12968 fi
12969
12970 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12971 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12972 if test "${ac_cv_search_mallinfo+set}" = set; then
12973   echo $ECHO_N "(cached) $ECHO_C" >&6
12974 else
12975   ac_func_search_save_LIBS=$LIBS
12976 cat >conftest.$ac_ext <<_ACEOF
12977 /* confdefs.h.  */
12978 _ACEOF
12979 cat confdefs.h >>conftest.$ac_ext
12980 cat >>conftest.$ac_ext <<_ACEOF
12981 /* end confdefs.h.  */
12982
12983 /* Override any GCC internal prototype to avoid an error.
12984    Use char because int might match the return type of a GCC
12985    builtin and then its argument prototype would still apply.  */
12986 #ifdef __cplusplus
12987 extern "C"
12988 #endif
12989 char mallinfo ();
12990 int
12991 main ()
12992 {
12993 return mallinfo ();
12994   ;
12995   return 0;
12996 }
12997 _ACEOF
12998 for ac_lib in '' malloc; do
12999   if test -z "$ac_lib"; then
13000     ac_res="none required"
13001   else
13002     ac_res=-l$ac_lib
13003     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13004   fi
13005   rm -f conftest.$ac_objext conftest$ac_exeext
13006 if { (ac_try="$ac_link"
13007 case "(($ac_try" in
13008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13009   *) ac_try_echo=$ac_try;;
13010 esac
13011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13012   (eval "$ac_link") 2>conftest.er1
13013   ac_status=$?
13014   grep -v '^ *+' conftest.er1 >conftest.err
13015   rm -f conftest.er1
13016   cat conftest.err >&5
13017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018   (exit $ac_status); } &&
13019          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13020   { (case "(($ac_try" in
13021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022   *) ac_try_echo=$ac_try;;
13023 esac
13024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025   (eval "$ac_try") 2>&5
13026   ac_status=$?
13027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028   (exit $ac_status); }; } &&
13029          { ac_try='test -s conftest$ac_exeext'
13030   { (case "(($ac_try" in
13031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13032   *) ac_try_echo=$ac_try;;
13033 esac
13034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13035   (eval "$ac_try") 2>&5
13036   ac_status=$?
13037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038   (exit $ac_status); }; }; then
13039   ac_cv_search_mallinfo=$ac_res
13040 else
13041   echo "$as_me: failed program was:" >&5
13042 sed 's/^/| /' conftest.$ac_ext >&5
13043
13044
13045 fi
13046
13047 rm -f core conftest.err conftest.$ac_objext \
13048       conftest$ac_exeext
13049   if test "${ac_cv_search_mallinfo+set}" = set; then
13050   break
13051 fi
13052 done
13053 if test "${ac_cv_search_mallinfo+set}" = set; then
13054   :
13055 else
13056   ac_cv_search_mallinfo=no
13057 fi
13058 rm conftest.$ac_ext
13059 LIBS=$ac_func_search_save_LIBS
13060 fi
13061 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13062 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13063 ac_res=$ac_cv_search_mallinfo
13064 if test "$ac_res" != no; then
13065   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13066
13067 cat >>confdefs.h <<\_ACEOF
13068 #define HAVE_MALLINFO 1
13069 _ACEOF
13070
13071 fi
13072
13073
13074 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13075
13076 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13077 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13078 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13079   echo $ECHO_N "(cached) $ECHO_C" >&6
13080 else
13081   ac_check_lib_save_LIBS=$LIBS
13082 LIBS="-lpthread  $LIBS"
13083 cat >conftest.$ac_ext <<_ACEOF
13084 /* confdefs.h.  */
13085 _ACEOF
13086 cat confdefs.h >>conftest.$ac_ext
13087 cat >>conftest.$ac_ext <<_ACEOF
13088 /* end confdefs.h.  */
13089
13090 /* Override any GCC internal prototype to avoid an error.
13091    Use char because int might match the return type of a GCC
13092    builtin and then its argument prototype would still apply.  */
13093 #ifdef __cplusplus
13094 extern "C"
13095 #endif
13096 char pthread_mutex_init ();
13097 int
13098 main ()
13099 {
13100 return pthread_mutex_init ();
13101   ;
13102   return 0;
13103 }
13104 _ACEOF
13105 rm -f conftest.$ac_objext conftest$ac_exeext
13106 if { (ac_try="$ac_link"
13107 case "(($ac_try" in
13108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109   *) ac_try_echo=$ac_try;;
13110 esac
13111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112   (eval "$ac_link") 2>conftest.er1
13113   ac_status=$?
13114   grep -v '^ *+' conftest.er1 >conftest.err
13115   rm -f conftest.er1
13116   cat conftest.err >&5
13117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118   (exit $ac_status); } &&
13119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13120   { (case "(($ac_try" in
13121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122   *) ac_try_echo=$ac_try;;
13123 esac
13124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13125   (eval "$ac_try") 2>&5
13126   ac_status=$?
13127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128   (exit $ac_status); }; } &&
13129          { ac_try='test -s conftest$ac_exeext'
13130   { (case "(($ac_try" in
13131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132   *) ac_try_echo=$ac_try;;
13133 esac
13134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135   (eval "$ac_try") 2>&5
13136   ac_status=$?
13137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138   (exit $ac_status); }; }; then
13139   ac_cv_lib_pthread_pthread_mutex_init=yes
13140 else
13141   echo "$as_me: failed program was:" >&5
13142 sed 's/^/| /' conftest.$ac_ext >&5
13143
13144         ac_cv_lib_pthread_pthread_mutex_init=no
13145 fi
13146
13147 rm -f core conftest.err conftest.$ac_objext \
13148       conftest$ac_exeext conftest.$ac_ext
13149 LIBS=$ac_check_lib_save_LIBS
13150 fi
13151 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13152 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13153 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13154   cat >>confdefs.h <<_ACEOF
13155 #define HAVE_LIBPTHREAD 1
13156 _ACEOF
13157
13158   LIBS="-lpthread $LIBS"
13159
13160 fi
13161
13162   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13163 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13164 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13165   echo $ECHO_N "(cached) $ECHO_C" >&6
13166 else
13167   ac_func_search_save_LIBS=$LIBS
13168 cat >conftest.$ac_ext <<_ACEOF
13169 /* confdefs.h.  */
13170 _ACEOF
13171 cat confdefs.h >>conftest.$ac_ext
13172 cat >>conftest.$ac_ext <<_ACEOF
13173 /* end confdefs.h.  */
13174
13175 /* Override any GCC internal prototype to avoid an error.
13176    Use char because int might match the return type of a GCC
13177    builtin and then its argument prototype would still apply.  */
13178 #ifdef __cplusplus
13179 extern "C"
13180 #endif
13181 char pthread_mutex_lock ();
13182 int
13183 main ()
13184 {
13185 return pthread_mutex_lock ();
13186   ;
13187   return 0;
13188 }
13189 _ACEOF
13190 for ac_lib in '' pthread; do
13191   if test -z "$ac_lib"; then
13192     ac_res="none required"
13193   else
13194     ac_res=-l$ac_lib
13195     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13196   fi
13197   rm -f conftest.$ac_objext conftest$ac_exeext
13198 if { (ac_try="$ac_link"
13199 case "(($ac_try" in
13200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201   *) ac_try_echo=$ac_try;;
13202 esac
13203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13204   (eval "$ac_link") 2>conftest.er1
13205   ac_status=$?
13206   grep -v '^ *+' conftest.er1 >conftest.err
13207   rm -f conftest.er1
13208   cat conftest.err >&5
13209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210   (exit $ac_status); } &&
13211          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13212   { (case "(($ac_try" in
13213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214   *) ac_try_echo=$ac_try;;
13215 esac
13216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13217   (eval "$ac_try") 2>&5
13218   ac_status=$?
13219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220   (exit $ac_status); }; } &&
13221          { ac_try='test -s conftest$ac_exeext'
13222   { (case "(($ac_try" in
13223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224   *) ac_try_echo=$ac_try;;
13225 esac
13226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227   (eval "$ac_try") 2>&5
13228   ac_status=$?
13229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230   (exit $ac_status); }; }; then
13231   ac_cv_search_pthread_mutex_lock=$ac_res
13232 else
13233   echo "$as_me: failed program was:" >&5
13234 sed 's/^/| /' conftest.$ac_ext >&5
13235
13236
13237 fi
13238
13239 rm -f core conftest.err conftest.$ac_objext \
13240       conftest$ac_exeext
13241   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13242   break
13243 fi
13244 done
13245 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13246   :
13247 else
13248   ac_cv_search_pthread_mutex_lock=no
13249 fi
13250 rm conftest.$ac_ext
13251 LIBS=$ac_func_search_save_LIBS
13252 fi
13253 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13254 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13255 ac_res=$ac_cv_search_pthread_mutex_lock
13256 if test "$ac_res" != no; then
13257   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13258
13259 cat >>confdefs.h <<\_ACEOF
13260 #define HAVE_PTHREAD_MUTEX_LOCK 1
13261 _ACEOF
13262
13263 fi
13264
13265   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13266 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13267 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13268   echo $ECHO_N "(cached) $ECHO_C" >&6
13269 else
13270   ac_func_search_save_LIBS=$LIBS
13271 cat >conftest.$ac_ext <<_ACEOF
13272 /* confdefs.h.  */
13273 _ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h.  */
13277
13278 /* Override any GCC internal prototype to avoid an error.
13279    Use char because int might match the return type of a GCC
13280    builtin and then its argument prototype would still apply.  */
13281 #ifdef __cplusplus
13282 extern "C"
13283 #endif
13284 char pthread_rwlock_init ();
13285 int
13286 main ()
13287 {
13288 return pthread_rwlock_init ();
13289   ;
13290   return 0;
13291 }
13292 _ACEOF
13293 for ac_lib in '' pthread; do
13294   if test -z "$ac_lib"; then
13295     ac_res="none required"
13296   else
13297     ac_res=-l$ac_lib
13298     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13299   fi
13300   rm -f conftest.$ac_objext conftest$ac_exeext
13301 if { (ac_try="$ac_link"
13302 case "(($ac_try" in
13303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13304   *) ac_try_echo=$ac_try;;
13305 esac
13306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13307   (eval "$ac_link") 2>conftest.er1
13308   ac_status=$?
13309   grep -v '^ *+' conftest.er1 >conftest.err
13310   rm -f conftest.er1
13311   cat conftest.err >&5
13312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313   (exit $ac_status); } &&
13314          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13315   { (case "(($ac_try" in
13316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317   *) ac_try_echo=$ac_try;;
13318 esac
13319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320   (eval "$ac_try") 2>&5
13321   ac_status=$?
13322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323   (exit $ac_status); }; } &&
13324          { ac_try='test -s conftest$ac_exeext'
13325   { (case "(($ac_try" in
13326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327   *) ac_try_echo=$ac_try;;
13328 esac
13329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330   (eval "$ac_try") 2>&5
13331   ac_status=$?
13332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333   (exit $ac_status); }; }; then
13334   ac_cv_search_pthread_rwlock_init=$ac_res
13335 else
13336   echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.$ac_ext >&5
13338
13339
13340 fi
13341
13342 rm -f core conftest.err conftest.$ac_objext \
13343       conftest$ac_exeext
13344   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13345   break
13346 fi
13347 done
13348 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13349   :
13350 else
13351   ac_cv_search_pthread_rwlock_init=no
13352 fi
13353 rm conftest.$ac_ext
13354 LIBS=$ac_func_search_save_LIBS
13355 fi
13356 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13357 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13358 ac_res=$ac_cv_search_pthread_rwlock_init
13359 if test "$ac_res" != no; then
13360   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13361
13362 cat >>confdefs.h <<\_ACEOF
13363 #define HAVE_PTHREAD_RWLOCK_INIT 1
13364 _ACEOF
13365
13366 fi
13367
13368   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13369 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13370 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13371   echo $ECHO_N "(cached) $ECHO_C" >&6
13372 else
13373   ac_func_search_save_LIBS=$LIBS
13374 cat >conftest.$ac_ext <<_ACEOF
13375 /* confdefs.h.  */
13376 _ACEOF
13377 cat confdefs.h >>conftest.$ac_ext
13378 cat >>conftest.$ac_ext <<_ACEOF
13379 /* end confdefs.h.  */
13380
13381 /* Override any GCC internal prototype to avoid an error.
13382    Use char because int might match the return type of a GCC
13383    builtin and then its argument prototype would still apply.  */
13384 #ifdef __cplusplus
13385 extern "C"
13386 #endif
13387 char pthread_getspecific ();
13388 int
13389 main ()
13390 {
13391 return pthread_getspecific ();
13392   ;
13393   return 0;
13394 }
13395 _ACEOF
13396 for ac_lib in '' pthread; do
13397   if test -z "$ac_lib"; then
13398     ac_res="none required"
13399   else
13400     ac_res=-l$ac_lib
13401     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13402   fi
13403   rm -f conftest.$ac_objext conftest$ac_exeext
13404 if { (ac_try="$ac_link"
13405 case "(($ac_try" in
13406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407   *) ac_try_echo=$ac_try;;
13408 esac
13409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410   (eval "$ac_link") 2>conftest.er1
13411   ac_status=$?
13412   grep -v '^ *+' conftest.er1 >conftest.err
13413   rm -f conftest.er1
13414   cat conftest.err >&5
13415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416   (exit $ac_status); } &&
13417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13418   { (case "(($ac_try" in
13419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420   *) ac_try_echo=$ac_try;;
13421 esac
13422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423   (eval "$ac_try") 2>&5
13424   ac_status=$?
13425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426   (exit $ac_status); }; } &&
13427          { ac_try='test -s conftest$ac_exeext'
13428   { (case "(($ac_try" in
13429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430   *) ac_try_echo=$ac_try;;
13431 esac
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433   (eval "$ac_try") 2>&5
13434   ac_status=$?
13435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436   (exit $ac_status); }; }; then
13437   ac_cv_search_pthread_getspecific=$ac_res
13438 else
13439   echo "$as_me: failed program was:" >&5
13440 sed 's/^/| /' conftest.$ac_ext >&5
13441
13442
13443 fi
13444
13445 rm -f core conftest.err conftest.$ac_objext \
13446       conftest$ac_exeext
13447   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13448   break
13449 fi
13450 done
13451 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13452   :
13453 else
13454   ac_cv_search_pthread_getspecific=no
13455 fi
13456 rm conftest.$ac_ext
13457 LIBS=$ac_func_search_save_LIBS
13458 fi
13459 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13460 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13461 ac_res=$ac_cv_search_pthread_getspecific
13462 if test "$ac_res" != no; then
13463   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13464
13465 cat >>confdefs.h <<\_ACEOF
13466 #define HAVE_PTHREAD_GETSPECIFIC 1
13467 _ACEOF
13468
13469 fi
13470
13471 fi
13472
13473
13474 # Check whether --with-udis86 was given.
13475 if test "${with_udis86+set}" = set; then
13476   withval=$with_udis86;
13477       USE_UDIS86=1
13478
13479       case "$withval" in
13480         /usr/lib|yes) ;;
13481         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13482       esac
13483
13484 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13485 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13486 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13487   echo $ECHO_N "(cached) $ECHO_C" >&6
13488 else
13489   ac_check_lib_save_LIBS=$LIBS
13490 LIBS="-ludis86  $LIBS"
13491 cat >conftest.$ac_ext <<_ACEOF
13492 /* confdefs.h.  */
13493 _ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h.  */
13497
13498 /* Override any GCC internal prototype to avoid an error.
13499    Use char because int might match the return type of a GCC
13500    builtin and then its argument prototype would still apply.  */
13501 #ifdef __cplusplus
13502 extern "C"
13503 #endif
13504 char ud_init ();
13505 int
13506 main ()
13507 {
13508 return ud_init ();
13509   ;
13510   return 0;
13511 }
13512 _ACEOF
13513 rm -f conftest.$ac_objext conftest$ac_exeext
13514 if { (ac_try="$ac_link"
13515 case "(($ac_try" in
13516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517   *) ac_try_echo=$ac_try;;
13518 esac
13519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13520   (eval "$ac_link") 2>conftest.er1
13521   ac_status=$?
13522   grep -v '^ *+' conftest.er1 >conftest.err
13523   rm -f conftest.er1
13524   cat conftest.err >&5
13525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526   (exit $ac_status); } &&
13527          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13528   { (case "(($ac_try" in
13529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13530   *) ac_try_echo=$ac_try;;
13531 esac
13532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13533   (eval "$ac_try") 2>&5
13534   ac_status=$?
13535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536   (exit $ac_status); }; } &&
13537          { ac_try='test -s conftest$ac_exeext'
13538   { (case "(($ac_try" in
13539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13540   *) ac_try_echo=$ac_try;;
13541 esac
13542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13543   (eval "$ac_try") 2>&5
13544   ac_status=$?
13545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546   (exit $ac_status); }; }; then
13547   ac_cv_lib_udis86_ud_init=yes
13548 else
13549   echo "$as_me: failed program was:" >&5
13550 sed 's/^/| /' conftest.$ac_ext >&5
13551
13552         ac_cv_lib_udis86_ud_init=no
13553 fi
13554
13555 rm -f core conftest.err conftest.$ac_objext \
13556       conftest$ac_exeext conftest.$ac_ext
13557 LIBS=$ac_check_lib_save_LIBS
13558 fi
13559 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13560 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13561 if test $ac_cv_lib_udis86_ud_init = yes; then
13562   cat >>confdefs.h <<_ACEOF
13563 #define HAVE_LIBUDIS86 1
13564 _ACEOF
13565
13566   LIBS="-ludis86 $LIBS"
13567
13568 else
13569
13570         echo "Error! You need to have libudis86 around."
13571         exit -1
13572
13573 fi
13574
13575
13576 else
13577   USE_UDIS86=0
13578
13579 fi
13580
13581
13582 cat >>confdefs.h <<_ACEOF
13583 #define USE_UDIS86 $USE_UDIS86
13584 _ACEOF
13585
13586
13587
13588 # Check whether --with-oprofile was given.
13589 if test "${with_oprofile+set}" = set; then
13590   withval=$with_oprofile;
13591       USE_OPROFILE=1
13592
13593       case "$withval" in
13594         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13595         no) llvm_cv_oppath=
13596             USE_OPROFILE=0
13597  ;;
13598         *) llvm_cv_oppath="${withval}/lib/oprofile"
13599            CPPFLAGS="-I${withval}/include";;
13600       esac
13601       if test -n "$llvm_cv_oppath" ; then
13602         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13603                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13604 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13605 if test "${ac_cv_search_bfd_init+set}" = set; then
13606   echo $ECHO_N "(cached) $ECHO_C" >&6
13607 else
13608   ac_func_search_save_LIBS=$LIBS
13609 cat >conftest.$ac_ext <<_ACEOF
13610 /* confdefs.h.  */
13611 _ACEOF
13612 cat confdefs.h >>conftest.$ac_ext
13613 cat >>conftest.$ac_ext <<_ACEOF
13614 /* end confdefs.h.  */
13615
13616 /* Override any GCC internal prototype to avoid an error.
13617    Use char because int might match the return type of a GCC
13618    builtin and then its argument prototype would still apply.  */
13619 #ifdef __cplusplus
13620 extern "C"
13621 #endif
13622 char bfd_init ();
13623 int
13624 main ()
13625 {
13626 return bfd_init ();
13627   ;
13628   return 0;
13629 }
13630 _ACEOF
13631 for ac_lib in '' bfd; do
13632   if test -z "$ac_lib"; then
13633     ac_res="none required"
13634   else
13635     ac_res=-l$ac_lib
13636     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13637   fi
13638   rm -f conftest.$ac_objext conftest$ac_exeext
13639 if { (ac_try="$ac_link"
13640 case "(($ac_try" in
13641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642   *) ac_try_echo=$ac_try;;
13643 esac
13644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13645   (eval "$ac_link") 2>conftest.er1
13646   ac_status=$?
13647   grep -v '^ *+' conftest.er1 >conftest.err
13648   rm -f conftest.er1
13649   cat conftest.err >&5
13650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651   (exit $ac_status); } &&
13652          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13653   { (case "(($ac_try" in
13654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13655   *) ac_try_echo=$ac_try;;
13656 esac
13657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13658   (eval "$ac_try") 2>&5
13659   ac_status=$?
13660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661   (exit $ac_status); }; } &&
13662          { ac_try='test -s conftest$ac_exeext'
13663   { (case "(($ac_try" in
13664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665   *) ac_try_echo=$ac_try;;
13666 esac
13667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13668   (eval "$ac_try") 2>&5
13669   ac_status=$?
13670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671   (exit $ac_status); }; }; then
13672   ac_cv_search_bfd_init=$ac_res
13673 else
13674   echo "$as_me: failed program was:" >&5
13675 sed 's/^/| /' conftest.$ac_ext >&5
13676
13677
13678 fi
13679
13680 rm -f core conftest.err conftest.$ac_objext \
13681       conftest$ac_exeext
13682   if test "${ac_cv_search_bfd_init+set}" = set; then
13683   break
13684 fi
13685 done
13686 if test "${ac_cv_search_bfd_init+set}" = set; then
13687   :
13688 else
13689   ac_cv_search_bfd_init=no
13690 fi
13691 rm conftest.$ac_ext
13692 LIBS=$ac_func_search_save_LIBS
13693 fi
13694 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13695 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13696 ac_res=$ac_cv_search_bfd_init
13697 if test "$ac_res" != no; then
13698   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13699
13700 fi
13701
13702         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13703 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13704 if test "${ac_cv_search_op_open_agent+set}" = set; then
13705   echo $ECHO_N "(cached) $ECHO_C" >&6
13706 else
13707   ac_func_search_save_LIBS=$LIBS
13708 cat >conftest.$ac_ext <<_ACEOF
13709 /* confdefs.h.  */
13710 _ACEOF
13711 cat confdefs.h >>conftest.$ac_ext
13712 cat >>conftest.$ac_ext <<_ACEOF
13713 /* end confdefs.h.  */
13714
13715 /* Override any GCC internal prototype to avoid an error.
13716    Use char because int might match the return type of a GCC
13717    builtin and then its argument prototype would still apply.  */
13718 #ifdef __cplusplus
13719 extern "C"
13720 #endif
13721 char op_open_agent ();
13722 int
13723 main ()
13724 {
13725 return op_open_agent ();
13726   ;
13727   return 0;
13728 }
13729 _ACEOF
13730 for ac_lib in '' opagent; do
13731   if test -z "$ac_lib"; then
13732     ac_res="none required"
13733   else
13734     ac_res=-l$ac_lib
13735     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13736   fi
13737   rm -f conftest.$ac_objext conftest$ac_exeext
13738 if { (ac_try="$ac_link"
13739 case "(($ac_try" in
13740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13741   *) ac_try_echo=$ac_try;;
13742 esac
13743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13744   (eval "$ac_link") 2>conftest.er1
13745   ac_status=$?
13746   grep -v '^ *+' conftest.er1 >conftest.err
13747   rm -f conftest.er1
13748   cat conftest.err >&5
13749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750   (exit $ac_status); } &&
13751          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13752   { (case "(($ac_try" in
13753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13754   *) ac_try_echo=$ac_try;;
13755 esac
13756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757   (eval "$ac_try") 2>&5
13758   ac_status=$?
13759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760   (exit $ac_status); }; } &&
13761          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13771   ac_cv_search_op_open_agent=$ac_res
13772 else
13773   echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13775
13776
13777 fi
13778
13779 rm -f core conftest.err conftest.$ac_objext \
13780       conftest$ac_exeext
13781   if test "${ac_cv_search_op_open_agent+set}" = set; then
13782   break
13783 fi
13784 done
13785 if test "${ac_cv_search_op_open_agent+set}" = set; then
13786   :
13787 else
13788   ac_cv_search_op_open_agent=no
13789 fi
13790 rm conftest.$ac_ext
13791 LIBS=$ac_func_search_save_LIBS
13792 fi
13793 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13794 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13795 ac_res=$ac_cv_search_op_open_agent
13796 if test "$ac_res" != no; then
13797   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13798
13799 else
13800
13801           echo "Error! You need to have libopagent around."
13802           exit -1
13803
13804 fi
13805
13806         if test "${ac_cv_header_opagent_h+set}" = set; then
13807   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13808 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13809 if test "${ac_cv_header_opagent_h+set}" = set; then
13810   echo $ECHO_N "(cached) $ECHO_C" >&6
13811 fi
13812 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13813 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13814 else
13815   # Is the header compilable?
13816 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13817 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13818 cat >conftest.$ac_ext <<_ACEOF
13819 /* confdefs.h.  */
13820 _ACEOF
13821 cat confdefs.h >>conftest.$ac_ext
13822 cat >>conftest.$ac_ext <<_ACEOF
13823 /* end confdefs.h.  */
13824 $ac_includes_default
13825 #include <opagent.h>
13826 _ACEOF
13827 rm -f conftest.$ac_objext
13828 if { (ac_try="$ac_compile"
13829 case "(($ac_try" in
13830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13831   *) ac_try_echo=$ac_try;;
13832 esac
13833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834   (eval "$ac_compile") 2>conftest.er1
13835   ac_status=$?
13836   grep -v '^ *+' conftest.er1 >conftest.err
13837   rm -f conftest.er1
13838   cat conftest.err >&5
13839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840   (exit $ac_status); } &&
13841          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13842   { (case "(($ac_try" in
13843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844   *) ac_try_echo=$ac_try;;
13845 esac
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847   (eval "$ac_try") 2>&5
13848   ac_status=$?
13849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850   (exit $ac_status); }; } &&
13851          { ac_try='test -s conftest.$ac_objext'
13852   { (case "(($ac_try" in
13853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854   *) ac_try_echo=$ac_try;;
13855 esac
13856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857   (eval "$ac_try") 2>&5
13858   ac_status=$?
13859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860   (exit $ac_status); }; }; then
13861   ac_header_compiler=yes
13862 else
13863   echo "$as_me: failed program was:" >&5
13864 sed 's/^/| /' conftest.$ac_ext >&5
13865
13866         ac_header_compiler=no
13867 fi
13868
13869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13871 echo "${ECHO_T}$ac_header_compiler" >&6; }
13872
13873 # Is the header present?
13874 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13875 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13876 cat >conftest.$ac_ext <<_ACEOF
13877 /* confdefs.h.  */
13878 _ACEOF
13879 cat confdefs.h >>conftest.$ac_ext
13880 cat >>conftest.$ac_ext <<_ACEOF
13881 /* end confdefs.h.  */
13882 #include <opagent.h>
13883 _ACEOF
13884 if { (ac_try="$ac_cpp conftest.$ac_ext"
13885 case "(($ac_try" in
13886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13887   *) ac_try_echo=$ac_try;;
13888 esac
13889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13890   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13891   ac_status=$?
13892   grep -v '^ *+' conftest.er1 >conftest.err
13893   rm -f conftest.er1
13894   cat conftest.err >&5
13895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896   (exit $ac_status); } >/dev/null; then
13897   if test -s conftest.err; then
13898     ac_cpp_err=$ac_c_preproc_warn_flag
13899     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13900   else
13901     ac_cpp_err=
13902   fi
13903 else
13904   ac_cpp_err=yes
13905 fi
13906 if test -z "$ac_cpp_err"; then
13907   ac_header_preproc=yes
13908 else
13909   echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13911
13912   ac_header_preproc=no
13913 fi
13914
13915 rm -f conftest.err conftest.$ac_ext
13916 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13917 echo "${ECHO_T}$ac_header_preproc" >&6; }
13918
13919 # So?  What about this header?
13920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13921   yes:no: )
13922     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13923 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13924     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13925 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13926     ac_header_preproc=yes
13927     ;;
13928   no:yes:* )
13929     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13930 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13931     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13932 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13933     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13934 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13935     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13936 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13937     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13938 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13939     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13940 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13941     ( cat <<\_ASBOX
13942 ## ----------------------------------- ##
13943 ## Report this to llvmbugs@cs.uiuc.edu ##
13944 ## ----------------------------------- ##
13945 _ASBOX
13946      ) | sed "s/^/$as_me: WARNING:     /" >&2
13947     ;;
13948 esac
13949 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13950 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13951 if test "${ac_cv_header_opagent_h+set}" = set; then
13952   echo $ECHO_N "(cached) $ECHO_C" >&6
13953 else
13954   ac_cv_header_opagent_h=$ac_header_preproc
13955 fi
13956 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13957 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13958
13959 fi
13960 if test $ac_cv_header_opagent_h = yes; then
13961   :
13962 else
13963
13964           echo "Error! You need to have opagent.h around."
13965           exit -1
13966
13967 fi
13968
13969
13970       fi
13971
13972 else
13973
13974       USE_OPROFILE=0
13975
13976
13977 fi
13978
13979
13980 cat >>confdefs.h <<_ACEOF
13981 #define USE_OPROFILE $USE_OPROFILE
13982 _ACEOF
13983
13984
13985
13986
13987
13988
13989
13990
13991 ac_header_dirent=no
13992 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13993   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13994 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13995 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13997   echo $ECHO_N "(cached) $ECHO_C" >&6
13998 else
13999   cat >conftest.$ac_ext <<_ACEOF
14000 /* confdefs.h.  */
14001 _ACEOF
14002 cat confdefs.h >>conftest.$ac_ext
14003 cat >>conftest.$ac_ext <<_ACEOF
14004 /* end confdefs.h.  */
14005 #include <sys/types.h>
14006 #include <$ac_hdr>
14007
14008 int
14009 main ()
14010 {
14011 if ((DIR *) 0)
14012 return 0;
14013   ;
14014   return 0;
14015 }
14016 _ACEOF
14017 rm -f conftest.$ac_objext
14018 if { (ac_try="$ac_compile"
14019 case "(($ac_try" in
14020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14021   *) ac_try_echo=$ac_try;;
14022 esac
14023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14024   (eval "$ac_compile") 2>conftest.er1
14025   ac_status=$?
14026   grep -v '^ *+' conftest.er1 >conftest.err
14027   rm -f conftest.er1
14028   cat conftest.err >&5
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); } &&
14031          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14032   { (case "(($ac_try" in
14033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034   *) ac_try_echo=$ac_try;;
14035 esac
14036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037   (eval "$ac_try") 2>&5
14038   ac_status=$?
14039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040   (exit $ac_status); }; } &&
14041          { ac_try='test -s conftest.$ac_objext'
14042   { (case "(($ac_try" in
14043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14044   *) ac_try_echo=$ac_try;;
14045 esac
14046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14047   (eval "$ac_try") 2>&5
14048   ac_status=$?
14049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050   (exit $ac_status); }; }; then
14051   eval "$as_ac_Header=yes"
14052 else
14053   echo "$as_me: failed program was:" >&5
14054 sed 's/^/| /' conftest.$ac_ext >&5
14055
14056         eval "$as_ac_Header=no"
14057 fi
14058
14059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14060 fi
14061 ac_res=`eval echo '${'$as_ac_Header'}'`
14062                { echo "$as_me:$LINENO: result: $ac_res" >&5
14063 echo "${ECHO_T}$ac_res" >&6; }
14064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14065   cat >>confdefs.h <<_ACEOF
14066 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14067 _ACEOF
14068
14069 ac_header_dirent=$ac_hdr; break
14070 fi
14071
14072 done
14073 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14074 if test $ac_header_dirent = dirent.h; then
14075   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14076 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14077 if test "${ac_cv_search_opendir+set}" = set; then
14078   echo $ECHO_N "(cached) $ECHO_C" >&6
14079 else
14080   ac_func_search_save_LIBS=$LIBS
14081 cat >conftest.$ac_ext <<_ACEOF
14082 /* confdefs.h.  */
14083 _ACEOF
14084 cat confdefs.h >>conftest.$ac_ext
14085 cat >>conftest.$ac_ext <<_ACEOF
14086 /* end confdefs.h.  */
14087
14088 /* Override any GCC internal prototype to avoid an error.
14089    Use char because int might match the return type of a GCC
14090    builtin and then its argument prototype would still apply.  */
14091 #ifdef __cplusplus
14092 extern "C"
14093 #endif
14094 char opendir ();
14095 int
14096 main ()
14097 {
14098 return opendir ();
14099   ;
14100   return 0;
14101 }
14102 _ACEOF
14103 for ac_lib in '' dir; do
14104   if test -z "$ac_lib"; then
14105     ac_res="none required"
14106   else
14107     ac_res=-l$ac_lib
14108     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14109   fi
14110   rm -f conftest.$ac_objext conftest$ac_exeext
14111 if { (ac_try="$ac_link"
14112 case "(($ac_try" in
14113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14114   *) ac_try_echo=$ac_try;;
14115 esac
14116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14117   (eval "$ac_link") 2>conftest.er1
14118   ac_status=$?
14119   grep -v '^ *+' conftest.er1 >conftest.err
14120   rm -f conftest.er1
14121   cat conftest.err >&5
14122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123   (exit $ac_status); } &&
14124          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14125   { (case "(($ac_try" in
14126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127   *) ac_try_echo=$ac_try;;
14128 esac
14129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130   (eval "$ac_try") 2>&5
14131   ac_status=$?
14132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133   (exit $ac_status); }; } &&
14134          { ac_try='test -s conftest$ac_exeext'
14135   { (case "(($ac_try" in
14136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14137   *) ac_try_echo=$ac_try;;
14138 esac
14139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14140   (eval "$ac_try") 2>&5
14141   ac_status=$?
14142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143   (exit $ac_status); }; }; then
14144   ac_cv_search_opendir=$ac_res
14145 else
14146   echo "$as_me: failed program was:" >&5
14147 sed 's/^/| /' conftest.$ac_ext >&5
14148
14149
14150 fi
14151
14152 rm -f core conftest.err conftest.$ac_objext \
14153       conftest$ac_exeext
14154   if test "${ac_cv_search_opendir+set}" = set; then
14155   break
14156 fi
14157 done
14158 if test "${ac_cv_search_opendir+set}" = set; then
14159   :
14160 else
14161   ac_cv_search_opendir=no
14162 fi
14163 rm conftest.$ac_ext
14164 LIBS=$ac_func_search_save_LIBS
14165 fi
14166 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14167 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14168 ac_res=$ac_cv_search_opendir
14169 if test "$ac_res" != no; then
14170   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14171
14172 fi
14173
14174 else
14175   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14176 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14177 if test "${ac_cv_search_opendir+set}" = set; then
14178   echo $ECHO_N "(cached) $ECHO_C" >&6
14179 else
14180   ac_func_search_save_LIBS=$LIBS
14181 cat >conftest.$ac_ext <<_ACEOF
14182 /* confdefs.h.  */
14183 _ACEOF
14184 cat confdefs.h >>conftest.$ac_ext
14185 cat >>conftest.$ac_ext <<_ACEOF
14186 /* end confdefs.h.  */
14187
14188 /* Override any GCC internal prototype to avoid an error.
14189    Use char because int might match the return type of a GCC
14190    builtin and then its argument prototype would still apply.  */
14191 #ifdef __cplusplus
14192 extern "C"
14193 #endif
14194 char opendir ();
14195 int
14196 main ()
14197 {
14198 return opendir ();
14199   ;
14200   return 0;
14201 }
14202 _ACEOF
14203 for ac_lib in '' x; do
14204   if test -z "$ac_lib"; then
14205     ac_res="none required"
14206   else
14207     ac_res=-l$ac_lib
14208     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14209   fi
14210   rm -f conftest.$ac_objext conftest$ac_exeext
14211 if { (ac_try="$ac_link"
14212 case "(($ac_try" in
14213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14214   *) ac_try_echo=$ac_try;;
14215 esac
14216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14217   (eval "$ac_link") 2>conftest.er1
14218   ac_status=$?
14219   grep -v '^ *+' conftest.er1 >conftest.err
14220   rm -f conftest.er1
14221   cat conftest.err >&5
14222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223   (exit $ac_status); } &&
14224          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14225   { (case "(($ac_try" in
14226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227   *) ac_try_echo=$ac_try;;
14228 esac
14229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14230   (eval "$ac_try") 2>&5
14231   ac_status=$?
14232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233   (exit $ac_status); }; } &&
14234          { ac_try='test -s conftest$ac_exeext'
14235   { (case "(($ac_try" in
14236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14237   *) ac_try_echo=$ac_try;;
14238 esac
14239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14240   (eval "$ac_try") 2>&5
14241   ac_status=$?
14242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243   (exit $ac_status); }; }; then
14244   ac_cv_search_opendir=$ac_res
14245 else
14246   echo "$as_me: failed program was:" >&5
14247 sed 's/^/| /' conftest.$ac_ext >&5
14248
14249
14250 fi
14251
14252 rm -f core conftest.err conftest.$ac_objext \
14253       conftest$ac_exeext
14254   if test "${ac_cv_search_opendir+set}" = set; then
14255   break
14256 fi
14257 done
14258 if test "${ac_cv_search_opendir+set}" = set; then
14259   :
14260 else
14261   ac_cv_search_opendir=no
14262 fi
14263 rm conftest.$ac_ext
14264 LIBS=$ac_func_search_save_LIBS
14265 fi
14266 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14267 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14268 ac_res=$ac_cv_search_opendir
14269 if test "$ac_res" != no; then
14270   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14271
14272 fi
14273
14274 fi
14275
14276 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14277 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14278 if test "${ac_cv_header_mmap_anon+set}" = set; then
14279   echo $ECHO_N "(cached) $ECHO_C" >&6
14280 else
14281    ac_ext=c
14282 ac_cpp='$CPP $CPPFLAGS'
14283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14286
14287   cat >conftest.$ac_ext <<_ACEOF
14288 /* confdefs.h.  */
14289 _ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h.  */
14293 #include <sys/mman.h>
14294 #include <unistd.h>
14295 #include <fcntl.h>
14296 int
14297 main ()
14298 {
14299 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14300   ;
14301   return 0;
14302 }
14303 _ACEOF
14304 rm -f conftest.$ac_objext
14305 if { (ac_try="$ac_compile"
14306 case "(($ac_try" in
14307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14308   *) ac_try_echo=$ac_try;;
14309 esac
14310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14311   (eval "$ac_compile") 2>conftest.er1
14312   ac_status=$?
14313   grep -v '^ *+' conftest.er1 >conftest.err
14314   rm -f conftest.er1
14315   cat conftest.err >&5
14316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317   (exit $ac_status); } &&
14318          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14319   { (case "(($ac_try" in
14320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14321   *) ac_try_echo=$ac_try;;
14322 esac
14323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14324   (eval "$ac_try") 2>&5
14325   ac_status=$?
14326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327   (exit $ac_status); }; } &&
14328          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14338   ac_cv_header_mmap_anon=yes
14339 else
14340   echo "$as_me: failed program was:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14342
14343         ac_cv_header_mmap_anon=no
14344 fi
14345
14346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14347   ac_ext=c
14348 ac_cpp='$CPP $CPPFLAGS'
14349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14352
14353
14354 fi
14355 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14356 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14357 if test "$ac_cv_header_mmap_anon" = yes; then
14358
14359 cat >>confdefs.h <<\_ACEOF
14360 #define HAVE_MMAP_ANONYMOUS 1
14361 _ACEOF
14362
14363 fi
14364
14365 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14366 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14367 if test "${ac_cv_header_stat_broken+set}" = set; then
14368   echo $ECHO_N "(cached) $ECHO_C" >&6
14369 else
14370   cat >conftest.$ac_ext <<_ACEOF
14371 /* confdefs.h.  */
14372 _ACEOF
14373 cat confdefs.h >>conftest.$ac_ext
14374 cat >>conftest.$ac_ext <<_ACEOF
14375 /* end confdefs.h.  */
14376 #include <sys/types.h>
14377 #include <sys/stat.h>
14378
14379 #if defined S_ISBLK && defined S_IFDIR
14380 # if S_ISBLK (S_IFDIR)
14381 You lose.
14382 # endif
14383 #endif
14384
14385 #if defined S_ISBLK && defined S_IFCHR
14386 # if S_ISBLK (S_IFCHR)
14387 You lose.
14388 # endif
14389 #endif
14390
14391 #if defined S_ISLNK && defined S_IFREG
14392 # if S_ISLNK (S_IFREG)
14393 You lose.
14394 # endif
14395 #endif
14396
14397 #if defined S_ISSOCK && defined S_IFREG
14398 # if S_ISSOCK (S_IFREG)
14399 You lose.
14400 # endif
14401 #endif
14402
14403 _ACEOF
14404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14405   $EGREP "You lose" >/dev/null 2>&1; then
14406   ac_cv_header_stat_broken=yes
14407 else
14408   ac_cv_header_stat_broken=no
14409 fi
14410 rm -f conftest*
14411
14412 fi
14413 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14414 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14415 if test $ac_cv_header_stat_broken = yes; then
14416
14417 cat >>confdefs.h <<\_ACEOF
14418 #define STAT_MACROS_BROKEN 1
14419 _ACEOF
14420
14421 fi
14422
14423 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14424 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14425 if test "${ac_cv_header_stdc+set}" = set; then
14426   echo $ECHO_N "(cached) $ECHO_C" >&6
14427 else
14428   cat >conftest.$ac_ext <<_ACEOF
14429 /* confdefs.h.  */
14430 _ACEOF
14431 cat confdefs.h >>conftest.$ac_ext
14432 cat >>conftest.$ac_ext <<_ACEOF
14433 /* end confdefs.h.  */
14434 #include <stdlib.h>
14435 #include <stdarg.h>
14436 #include <string.h>
14437 #include <float.h>
14438
14439 int
14440 main ()
14441 {
14442
14443   ;
14444   return 0;
14445 }
14446 _ACEOF
14447 rm -f conftest.$ac_objext
14448 if { (ac_try="$ac_compile"
14449 case "(($ac_try" in
14450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451   *) ac_try_echo=$ac_try;;
14452 esac
14453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454   (eval "$ac_compile") 2>conftest.er1
14455   ac_status=$?
14456   grep -v '^ *+' conftest.er1 >conftest.err
14457   rm -f conftest.er1
14458   cat conftest.err >&5
14459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460   (exit $ac_status); } &&
14461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14462   { (case "(($ac_try" in
14463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14464   *) ac_try_echo=$ac_try;;
14465 esac
14466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14467   (eval "$ac_try") 2>&5
14468   ac_status=$?
14469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470   (exit $ac_status); }; } &&
14471          { ac_try='test -s conftest.$ac_objext'
14472   { (case "(($ac_try" in
14473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14474   *) ac_try_echo=$ac_try;;
14475 esac
14476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14477   (eval "$ac_try") 2>&5
14478   ac_status=$?
14479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480   (exit $ac_status); }; }; then
14481   ac_cv_header_stdc=yes
14482 else
14483   echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.$ac_ext >&5
14485
14486         ac_cv_header_stdc=no
14487 fi
14488
14489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14490
14491 if test $ac_cv_header_stdc = yes; then
14492   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14493   cat >conftest.$ac_ext <<_ACEOF
14494 /* confdefs.h.  */
14495 _ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h.  */
14499 #include <string.h>
14500
14501 _ACEOF
14502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14503   $EGREP "memchr" >/dev/null 2>&1; then
14504   :
14505 else
14506   ac_cv_header_stdc=no
14507 fi
14508 rm -f conftest*
14509
14510 fi
14511
14512 if test $ac_cv_header_stdc = yes; then
14513   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14514   cat >conftest.$ac_ext <<_ACEOF
14515 /* confdefs.h.  */
14516 _ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h.  */
14520 #include <stdlib.h>
14521
14522 _ACEOF
14523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14524   $EGREP "free" >/dev/null 2>&1; then
14525   :
14526 else
14527   ac_cv_header_stdc=no
14528 fi
14529 rm -f conftest*
14530
14531 fi
14532
14533 if test $ac_cv_header_stdc = yes; then
14534   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14535   if test "$cross_compiling" = yes; then
14536   :
14537 else
14538   cat >conftest.$ac_ext <<_ACEOF
14539 /* confdefs.h.  */
14540 _ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h.  */
14544 #include <ctype.h>
14545 #include <stdlib.h>
14546 #if ((' ' & 0x0FF) == 0x020)
14547 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14548 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14549 #else
14550 # define ISLOWER(c) \
14551                    (('a' <= (c) && (c) <= 'i') \
14552                      || ('j' <= (c) && (c) <= 'r') \
14553                      || ('s' <= (c) && (c) <= 'z'))
14554 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14555 #endif
14556
14557 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14558 int
14559 main ()
14560 {
14561   int i;
14562   for (i = 0; i < 256; i++)
14563     if (XOR (islower (i), ISLOWER (i))
14564         || toupper (i) != TOUPPER (i))
14565       return 2;
14566   return 0;
14567 }
14568 _ACEOF
14569 rm -f conftest$ac_exeext
14570 if { (ac_try="$ac_link"
14571 case "(($ac_try" in
14572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573   *) ac_try_echo=$ac_try;;
14574 esac
14575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576   (eval "$ac_link") 2>&5
14577   ac_status=$?
14578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14580   { (case "(($ac_try" in
14581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582   *) ac_try_echo=$ac_try;;
14583 esac
14584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585   (eval "$ac_try") 2>&5
14586   ac_status=$?
14587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588   (exit $ac_status); }; }; then
14589   :
14590 else
14591   echo "$as_me: program exited with status $ac_status" >&5
14592 echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14594
14595 ( exit $ac_status )
14596 ac_cv_header_stdc=no
14597 fi
14598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14599 fi
14600
14601
14602 fi
14603 fi
14604 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14605 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
14606 if test $ac_cv_header_stdc = yes; then
14607
14608 cat >>confdefs.h <<\_ACEOF
14609 #define STDC_HEADERS 1
14610 _ACEOF
14611
14612 fi
14613
14614 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14615 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14616 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14617   echo $ECHO_N "(cached) $ECHO_C" >&6
14618 else
14619   cat >conftest.$ac_ext <<_ACEOF
14620 /* confdefs.h.  */
14621 _ACEOF
14622 cat confdefs.h >>conftest.$ac_ext
14623 cat >>conftest.$ac_ext <<_ACEOF
14624 /* end confdefs.h.  */
14625 #include <sys/types.h>
14626 #include <sys/wait.h>
14627 #ifndef WEXITSTATUS
14628 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14629 #endif
14630 #ifndef WIFEXITED
14631 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14632 #endif
14633
14634 int
14635 main ()
14636 {
14637   int s;
14638   wait (&s);
14639   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14640   ;
14641   return 0;
14642 }
14643 _ACEOF
14644 rm -f conftest.$ac_objext
14645 if { (ac_try="$ac_compile"
14646 case "(($ac_try" in
14647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648   *) ac_try_echo=$ac_try;;
14649 esac
14650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651   (eval "$ac_compile") 2>conftest.er1
14652   ac_status=$?
14653   grep -v '^ *+' conftest.er1 >conftest.err
14654   rm -f conftest.er1
14655   cat conftest.err >&5
14656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657   (exit $ac_status); } &&
14658          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14659   { (case "(($ac_try" in
14660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14661   *) ac_try_echo=$ac_try;;
14662 esac
14663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14664   (eval "$ac_try") 2>&5
14665   ac_status=$?
14666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667   (exit $ac_status); }; } &&
14668          { ac_try='test -s conftest.$ac_objext'
14669   { (case "(($ac_try" in
14670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14671   *) ac_try_echo=$ac_try;;
14672 esac
14673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14674   (eval "$ac_try") 2>&5
14675   ac_status=$?
14676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677   (exit $ac_status); }; }; then
14678   ac_cv_header_sys_wait_h=yes
14679 else
14680   echo "$as_me: failed program was:" >&5
14681 sed 's/^/| /' conftest.$ac_ext >&5
14682
14683         ac_cv_header_sys_wait_h=no
14684 fi
14685
14686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14687 fi
14688 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14689 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14690 if test $ac_cv_header_sys_wait_h = yes; then
14691
14692 cat >>confdefs.h <<\_ACEOF
14693 #define HAVE_SYS_WAIT_H 1
14694 _ACEOF
14695
14696 fi
14697
14698 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14699 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14700 if test "${ac_cv_header_time+set}" = set; then
14701   echo $ECHO_N "(cached) $ECHO_C" >&6
14702 else
14703   cat >conftest.$ac_ext <<_ACEOF
14704 /* confdefs.h.  */
14705 _ACEOF
14706 cat confdefs.h >>conftest.$ac_ext
14707 cat >>conftest.$ac_ext <<_ACEOF
14708 /* end confdefs.h.  */
14709 #include <sys/types.h>
14710 #include <sys/time.h>
14711 #include <time.h>
14712
14713 int
14714 main ()
14715 {
14716 if ((struct tm *) 0)
14717 return 0;
14718   ;
14719   return 0;
14720 }
14721 _ACEOF
14722 rm -f conftest.$ac_objext
14723 if { (ac_try="$ac_compile"
14724 case "(($ac_try" in
14725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726   *) ac_try_echo=$ac_try;;
14727 esac
14728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729   (eval "$ac_compile") 2>conftest.er1
14730   ac_status=$?
14731   grep -v '^ *+' conftest.er1 >conftest.err
14732   rm -f conftest.er1
14733   cat conftest.err >&5
14734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735   (exit $ac_status); } &&
14736          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14737   { (case "(($ac_try" in
14738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14739   *) ac_try_echo=$ac_try;;
14740 esac
14741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14742   (eval "$ac_try") 2>&5
14743   ac_status=$?
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   (exit $ac_status); }; } &&
14746          { ac_try='test -s conftest.$ac_objext'
14747   { (case "(($ac_try" in
14748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14749   *) ac_try_echo=$ac_try;;
14750 esac
14751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14752   (eval "$ac_try") 2>&5
14753   ac_status=$?
14754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755   (exit $ac_status); }; }; then
14756   ac_cv_header_time=yes
14757 else
14758   echo "$as_me: failed program was:" >&5
14759 sed 's/^/| /' conftest.$ac_ext >&5
14760
14761         ac_cv_header_time=no
14762 fi
14763
14764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14765 fi
14766 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14767 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14768 if test $ac_cv_header_time = yes; then
14769
14770 cat >>confdefs.h <<\_ACEOF
14771 #define TIME_WITH_SYS_TIME 1
14772 _ACEOF
14773
14774 fi
14775
14776
14777
14778
14779
14780
14781
14782
14783 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14784 do
14785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14787   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14790   echo $ECHO_N "(cached) $ECHO_C" >&6
14791 fi
14792 ac_res=`eval echo '${'$as_ac_Header'}'`
14793                { echo "$as_me:$LINENO: result: $ac_res" >&5
14794 echo "${ECHO_T}$ac_res" >&6; }
14795 else
14796   # Is the header compilable?
14797 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14799 cat >conftest.$ac_ext <<_ACEOF
14800 /* confdefs.h.  */
14801 _ACEOF
14802 cat confdefs.h >>conftest.$ac_ext
14803 cat >>conftest.$ac_ext <<_ACEOF
14804 /* end confdefs.h.  */
14805 $ac_includes_default
14806 #include <$ac_header>
14807 _ACEOF
14808 rm -f conftest.$ac_objext
14809 if { (ac_try="$ac_compile"
14810 case "(($ac_try" in
14811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14812   *) ac_try_echo=$ac_try;;
14813 esac
14814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14815   (eval "$ac_compile") 2>conftest.er1
14816   ac_status=$?
14817   grep -v '^ *+' conftest.er1 >conftest.err
14818   rm -f conftest.er1
14819   cat conftest.err >&5
14820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821   (exit $ac_status); } &&
14822          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14823   { (case "(($ac_try" in
14824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825   *) ac_try_echo=$ac_try;;
14826 esac
14827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14828   (eval "$ac_try") 2>&5
14829   ac_status=$?
14830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831   (exit $ac_status); }; } &&
14832          { ac_try='test -s conftest.$ac_objext'
14833   { (case "(($ac_try" in
14834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14835   *) ac_try_echo=$ac_try;;
14836 esac
14837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14838   (eval "$ac_try") 2>&5
14839   ac_status=$?
14840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841   (exit $ac_status); }; }; then
14842   ac_header_compiler=yes
14843 else
14844   echo "$as_me: failed program was:" >&5
14845 sed 's/^/| /' conftest.$ac_ext >&5
14846
14847         ac_header_compiler=no
14848 fi
14849
14850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14852 echo "${ECHO_T}$ac_header_compiler" >&6; }
14853
14854 # Is the header present?
14855 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14857 cat >conftest.$ac_ext <<_ACEOF
14858 /* confdefs.h.  */
14859 _ACEOF
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h.  */
14863 #include <$ac_header>
14864 _ACEOF
14865 if { (ac_try="$ac_cpp conftest.$ac_ext"
14866 case "(($ac_try" in
14867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14868   *) ac_try_echo=$ac_try;;
14869 esac
14870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14871   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14872   ac_status=$?
14873   grep -v '^ *+' conftest.er1 >conftest.err
14874   rm -f conftest.er1
14875   cat conftest.err >&5
14876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877   (exit $ac_status); } >/dev/null; then
14878   if test -s conftest.err; then
14879     ac_cpp_err=$ac_c_preproc_warn_flag
14880     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14881   else
14882     ac_cpp_err=
14883   fi
14884 else
14885   ac_cpp_err=yes
14886 fi
14887 if test -z "$ac_cpp_err"; then
14888   ac_header_preproc=yes
14889 else
14890   echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14892
14893   ac_header_preproc=no
14894 fi
14895
14896 rm -f conftest.err conftest.$ac_ext
14897 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14898 echo "${ECHO_T}$ac_header_preproc" >&6; }
14899
14900 # So?  What about this header?
14901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14902   yes:no: )
14903     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14905     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14907     ac_header_preproc=yes
14908     ;;
14909   no:yes:* )
14910     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14912     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14913 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14914     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14915 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14916     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14917 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14918     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14920     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14921 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14922     ( cat <<\_ASBOX
14923 ## ----------------------------------- ##
14924 ## Report this to llvmbugs@cs.uiuc.edu ##
14925 ## ----------------------------------- ##
14926 _ASBOX
14927      ) | sed "s/^/$as_me: WARNING:     /" >&2
14928     ;;
14929 esac
14930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14933   echo $ECHO_N "(cached) $ECHO_C" >&6
14934 else
14935   eval "$as_ac_Header=\$ac_header_preproc"
14936 fi
14937 ac_res=`eval echo '${'$as_ac_Header'}'`
14938                { echo "$as_me:$LINENO: result: $ac_res" >&5
14939 echo "${ECHO_T}$ac_res" >&6; }
14940
14941 fi
14942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14943   cat >>confdefs.h <<_ACEOF
14944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14945 _ACEOF
14946
14947 fi
14948
14949 done
14950
14951
14952
14953
14954
14955
14956
14957 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14958 do
14959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14961   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14964   echo $ECHO_N "(cached) $ECHO_C" >&6
14965 fi
14966 ac_res=`eval echo '${'$as_ac_Header'}'`
14967                { echo "$as_me:$LINENO: result: $ac_res" >&5
14968 echo "${ECHO_T}$ac_res" >&6; }
14969 else
14970   # Is the header compilable?
14971 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14972 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14973 cat >conftest.$ac_ext <<_ACEOF
14974 /* confdefs.h.  */
14975 _ACEOF
14976 cat confdefs.h >>conftest.$ac_ext
14977 cat >>conftest.$ac_ext <<_ACEOF
14978 /* end confdefs.h.  */
14979 $ac_includes_default
14980 #include <$ac_header>
14981 _ACEOF
14982 rm -f conftest.$ac_objext
14983 if { (ac_try="$ac_compile"
14984 case "(($ac_try" in
14985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14986   *) ac_try_echo=$ac_try;;
14987 esac
14988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14989   (eval "$ac_compile") 2>conftest.er1
14990   ac_status=$?
14991   grep -v '^ *+' conftest.er1 >conftest.err
14992   rm -f conftest.er1
14993   cat conftest.err >&5
14994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995   (exit $ac_status); } &&
14996          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14997   { (case "(($ac_try" in
14998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999   *) ac_try_echo=$ac_try;;
15000 esac
15001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002   (eval "$ac_try") 2>&5
15003   ac_status=$?
15004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005   (exit $ac_status); }; } &&
15006          { ac_try='test -s conftest.$ac_objext'
15007   { (case "(($ac_try" in
15008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15009   *) ac_try_echo=$ac_try;;
15010 esac
15011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15012   (eval "$ac_try") 2>&5
15013   ac_status=$?
15014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015   (exit $ac_status); }; }; then
15016   ac_header_compiler=yes
15017 else
15018   echo "$as_me: failed program was:" >&5
15019 sed 's/^/| /' conftest.$ac_ext >&5
15020
15021         ac_header_compiler=no
15022 fi
15023
15024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15025 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15026 echo "${ECHO_T}$ac_header_compiler" >&6; }
15027
15028 # Is the header present?
15029 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 #include <$ac_header>
15038 _ACEOF
15039 if { (ac_try="$ac_cpp conftest.$ac_ext"
15040 case "(($ac_try" in
15041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15042   *) ac_try_echo=$ac_try;;
15043 esac
15044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15045   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15046   ac_status=$?
15047   grep -v '^ *+' conftest.er1 >conftest.err
15048   rm -f conftest.er1
15049   cat conftest.err >&5
15050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051   (exit $ac_status); } >/dev/null; then
15052   if test -s conftest.err; then
15053     ac_cpp_err=$ac_c_preproc_warn_flag
15054     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15055   else
15056     ac_cpp_err=
15057   fi
15058 else
15059   ac_cpp_err=yes
15060 fi
15061 if test -z "$ac_cpp_err"; then
15062   ac_header_preproc=yes
15063 else
15064   echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15066
15067   ac_header_preproc=no
15068 fi
15069
15070 rm -f conftest.err conftest.$ac_ext
15071 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15072 echo "${ECHO_T}$ac_header_preproc" >&6; }
15073
15074 # So?  What about this header?
15075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15076   yes:no: )
15077     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15078 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15079     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15080 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15081     ac_header_preproc=yes
15082     ;;
15083   no:yes:* )
15084     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15085 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15086     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15087 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15088     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15089 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15090     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15091 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15092     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15094     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15095 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15096     ( cat <<\_ASBOX
15097 ## ----------------------------------- ##
15098 ## Report this to llvmbugs@cs.uiuc.edu ##
15099 ## ----------------------------------- ##
15100 _ASBOX
15101      ) | sed "s/^/$as_me: WARNING:     /" >&2
15102     ;;
15103 esac
15104 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15107   echo $ECHO_N "(cached) $ECHO_C" >&6
15108 else
15109   eval "$as_ac_Header=\$ac_header_preproc"
15110 fi
15111 ac_res=`eval echo '${'$as_ac_Header'}'`
15112                { echo "$as_me:$LINENO: result: $ac_res" >&5
15113 echo "${ECHO_T}$ac_res" >&6; }
15114
15115 fi
15116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15117   cat >>confdefs.h <<_ACEOF
15118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15119 _ACEOF
15120
15121 fi
15122
15123 done
15124
15125
15126
15127 for ac_header in utime.h windows.h
15128 do
15129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15131   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15134   echo $ECHO_N "(cached) $ECHO_C" >&6
15135 fi
15136 ac_res=`eval echo '${'$as_ac_Header'}'`
15137                { echo "$as_me:$LINENO: result: $ac_res" >&5
15138 echo "${ECHO_T}$ac_res" >&6; }
15139 else
15140   # Is the header compilable?
15141 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15142 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15143 cat >conftest.$ac_ext <<_ACEOF
15144 /* confdefs.h.  */
15145 _ACEOF
15146 cat confdefs.h >>conftest.$ac_ext
15147 cat >>conftest.$ac_ext <<_ACEOF
15148 /* end confdefs.h.  */
15149 $ac_includes_default
15150 #include <$ac_header>
15151 _ACEOF
15152 rm -f conftest.$ac_objext
15153 if { (ac_try="$ac_compile"
15154 case "(($ac_try" in
15155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15156   *) ac_try_echo=$ac_try;;
15157 esac
15158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15159   (eval "$ac_compile") 2>conftest.er1
15160   ac_status=$?
15161   grep -v '^ *+' conftest.er1 >conftest.err
15162   rm -f conftest.er1
15163   cat conftest.err >&5
15164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165   (exit $ac_status); } &&
15166          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15167   { (case "(($ac_try" in
15168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15169   *) ac_try_echo=$ac_try;;
15170 esac
15171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15172   (eval "$ac_try") 2>&5
15173   ac_status=$?
15174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175   (exit $ac_status); }; } &&
15176          { ac_try='test -s conftest.$ac_objext'
15177   { (case "(($ac_try" in
15178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15179   *) ac_try_echo=$ac_try;;
15180 esac
15181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15182   (eval "$ac_try") 2>&5
15183   ac_status=$?
15184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185   (exit $ac_status); }; }; then
15186   ac_header_compiler=yes
15187 else
15188   echo "$as_me: failed program was:" >&5
15189 sed 's/^/| /' conftest.$ac_ext >&5
15190
15191         ac_header_compiler=no
15192 fi
15193
15194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15195 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15196 echo "${ECHO_T}$ac_header_compiler" >&6; }
15197
15198 # Is the header present?
15199 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15201 cat >conftest.$ac_ext <<_ACEOF
15202 /* confdefs.h.  */
15203 _ACEOF
15204 cat confdefs.h >>conftest.$ac_ext
15205 cat >>conftest.$ac_ext <<_ACEOF
15206 /* end confdefs.h.  */
15207 #include <$ac_header>
15208 _ACEOF
15209 if { (ac_try="$ac_cpp conftest.$ac_ext"
15210 case "(($ac_try" in
15211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212   *) ac_try_echo=$ac_try;;
15213 esac
15214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15216   ac_status=$?
15217   grep -v '^ *+' conftest.er1 >conftest.err
15218   rm -f conftest.er1
15219   cat conftest.err >&5
15220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221   (exit $ac_status); } >/dev/null; then
15222   if test -s conftest.err; then
15223     ac_cpp_err=$ac_c_preproc_warn_flag
15224     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15225   else
15226     ac_cpp_err=
15227   fi
15228 else
15229   ac_cpp_err=yes
15230 fi
15231 if test -z "$ac_cpp_err"; then
15232   ac_header_preproc=yes
15233 else
15234   echo "$as_me: failed program was:" >&5
15235 sed 's/^/| /' conftest.$ac_ext >&5
15236
15237   ac_header_preproc=no
15238 fi
15239
15240 rm -f conftest.err conftest.$ac_ext
15241 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15242 echo "${ECHO_T}$ac_header_preproc" >&6; }
15243
15244 # So?  What about this header?
15245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15246   yes:no: )
15247     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15248 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15249     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15250 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15251     ac_header_preproc=yes
15252     ;;
15253   no:yes:* )
15254     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15255 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15256     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15257 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15258     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15259 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15260     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15261 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15262     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15264     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15265 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15266     ( cat <<\_ASBOX
15267 ## ----------------------------------- ##
15268 ## Report this to llvmbugs@cs.uiuc.edu ##
15269 ## ----------------------------------- ##
15270 _ASBOX
15271      ) | sed "s/^/$as_me: WARNING:     /" >&2
15272     ;;
15273 esac
15274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15277   echo $ECHO_N "(cached) $ECHO_C" >&6
15278 else
15279   eval "$as_ac_Header=\$ac_header_preproc"
15280 fi
15281 ac_res=`eval echo '${'$as_ac_Header'}'`
15282                { echo "$as_me:$LINENO: result: $ac_res" >&5
15283 echo "${ECHO_T}$ac_res" >&6; }
15284
15285 fi
15286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15287   cat >>confdefs.h <<_ACEOF
15288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15289 _ACEOF
15290
15291 fi
15292
15293 done
15294
15295
15296
15297
15298
15299
15300 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15301 do
15302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15304   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15307   echo $ECHO_N "(cached) $ECHO_C" >&6
15308 fi
15309 ac_res=`eval echo '${'$as_ac_Header'}'`
15310                { echo "$as_me:$LINENO: result: $ac_res" >&5
15311 echo "${ECHO_T}$ac_res" >&6; }
15312 else
15313   # Is the header compilable?
15314 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15316 cat >conftest.$ac_ext <<_ACEOF
15317 /* confdefs.h.  */
15318 _ACEOF
15319 cat confdefs.h >>conftest.$ac_ext
15320 cat >>conftest.$ac_ext <<_ACEOF
15321 /* end confdefs.h.  */
15322 $ac_includes_default
15323 #include <$ac_header>
15324 _ACEOF
15325 rm -f conftest.$ac_objext
15326 if { (ac_try="$ac_compile"
15327 case "(($ac_try" in
15328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329   *) ac_try_echo=$ac_try;;
15330 esac
15331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332   (eval "$ac_compile") 2>conftest.er1
15333   ac_status=$?
15334   grep -v '^ *+' conftest.er1 >conftest.err
15335   rm -f conftest.er1
15336   cat conftest.err >&5
15337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338   (exit $ac_status); } &&
15339          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15340   { (case "(($ac_try" in
15341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15342   *) ac_try_echo=$ac_try;;
15343 esac
15344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15345   (eval "$ac_try") 2>&5
15346   ac_status=$?
15347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348   (exit $ac_status); }; } &&
15349          { ac_try='test -s conftest.$ac_objext'
15350   { (case "(($ac_try" in
15351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352   *) ac_try_echo=$ac_try;;
15353 esac
15354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355   (eval "$ac_try") 2>&5
15356   ac_status=$?
15357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358   (exit $ac_status); }; }; then
15359   ac_header_compiler=yes
15360 else
15361   echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.$ac_ext >&5
15363
15364         ac_header_compiler=no
15365 fi
15366
15367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15368 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15369 echo "${ECHO_T}$ac_header_compiler" >&6; }
15370
15371 # Is the header present?
15372 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15374 cat >conftest.$ac_ext <<_ACEOF
15375 /* confdefs.h.  */
15376 _ACEOF
15377 cat confdefs.h >>conftest.$ac_ext
15378 cat >>conftest.$ac_ext <<_ACEOF
15379 /* end confdefs.h.  */
15380 #include <$ac_header>
15381 _ACEOF
15382 if { (ac_try="$ac_cpp conftest.$ac_ext"
15383 case "(($ac_try" in
15384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15385   *) ac_try_echo=$ac_try;;
15386 esac
15387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15388   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15389   ac_status=$?
15390   grep -v '^ *+' conftest.er1 >conftest.err
15391   rm -f conftest.er1
15392   cat conftest.err >&5
15393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394   (exit $ac_status); } >/dev/null; then
15395   if test -s conftest.err; then
15396     ac_cpp_err=$ac_c_preproc_warn_flag
15397     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15398   else
15399     ac_cpp_err=
15400   fi
15401 else
15402   ac_cpp_err=yes
15403 fi
15404 if test -z "$ac_cpp_err"; then
15405   ac_header_preproc=yes
15406 else
15407   echo "$as_me: failed program was:" >&5
15408 sed 's/^/| /' conftest.$ac_ext >&5
15409
15410   ac_header_preproc=no
15411 fi
15412
15413 rm -f conftest.err conftest.$ac_ext
15414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15415 echo "${ECHO_T}$ac_header_preproc" >&6; }
15416
15417 # So?  What about this header?
15418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15419   yes:no: )
15420     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15422     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15424     ac_header_preproc=yes
15425     ;;
15426   no:yes:* )
15427     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15429     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15430 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15431     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15433     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15434 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15435     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15437     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15439     ( cat <<\_ASBOX
15440 ## ----------------------------------- ##
15441 ## Report this to llvmbugs@cs.uiuc.edu ##
15442 ## ----------------------------------- ##
15443 _ASBOX
15444      ) | sed "s/^/$as_me: WARNING:     /" >&2
15445     ;;
15446 esac
15447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15450   echo $ECHO_N "(cached) $ECHO_C" >&6
15451 else
15452   eval "$as_ac_Header=\$ac_header_preproc"
15453 fi
15454 ac_res=`eval echo '${'$as_ac_Header'}'`
15455                { echo "$as_me:$LINENO: result: $ac_res" >&5
15456 echo "${ECHO_T}$ac_res" >&6; }
15457
15458 fi
15459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15460   cat >>confdefs.h <<_ACEOF
15461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15462 _ACEOF
15463
15464 fi
15465
15466 done
15467
15468
15469
15470
15471
15472 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15473 do
15474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15476   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15479   echo $ECHO_N "(cached) $ECHO_C" >&6
15480 fi
15481 ac_res=`eval echo '${'$as_ac_Header'}'`
15482                { echo "$as_me:$LINENO: result: $ac_res" >&5
15483 echo "${ECHO_T}$ac_res" >&6; }
15484 else
15485   # Is the header compilable?
15486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15488 cat >conftest.$ac_ext <<_ACEOF
15489 /* confdefs.h.  */
15490 _ACEOF
15491 cat confdefs.h >>conftest.$ac_ext
15492 cat >>conftest.$ac_ext <<_ACEOF
15493 /* end confdefs.h.  */
15494 $ac_includes_default
15495 #include <$ac_header>
15496 _ACEOF
15497 rm -f conftest.$ac_objext
15498 if { (ac_try="$ac_compile"
15499 case "(($ac_try" in
15500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501   *) ac_try_echo=$ac_try;;
15502 esac
15503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504   (eval "$ac_compile") 2>conftest.er1
15505   ac_status=$?
15506   grep -v '^ *+' conftest.er1 >conftest.err
15507   rm -f conftest.er1
15508   cat conftest.err >&5
15509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510   (exit $ac_status); } &&
15511          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15512   { (case "(($ac_try" in
15513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514   *) ac_try_echo=$ac_try;;
15515 esac
15516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15517   (eval "$ac_try") 2>&5
15518   ac_status=$?
15519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520   (exit $ac_status); }; } &&
15521          { ac_try='test -s conftest.$ac_objext'
15522   { (case "(($ac_try" in
15523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15524   *) ac_try_echo=$ac_try;;
15525 esac
15526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15527   (eval "$ac_try") 2>&5
15528   ac_status=$?
15529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530   (exit $ac_status); }; }; then
15531   ac_header_compiler=yes
15532 else
15533   echo "$as_me: failed program was:" >&5
15534 sed 's/^/| /' conftest.$ac_ext >&5
15535
15536         ac_header_compiler=no
15537 fi
15538
15539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15541 echo "${ECHO_T}$ac_header_compiler" >&6; }
15542
15543 # Is the header present?
15544 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15546 cat >conftest.$ac_ext <<_ACEOF
15547 /* confdefs.h.  */
15548 _ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h.  */
15552 #include <$ac_header>
15553 _ACEOF
15554 if { (ac_try="$ac_cpp conftest.$ac_ext"
15555 case "(($ac_try" in
15556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557   *) ac_try_echo=$ac_try;;
15558 esac
15559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15561   ac_status=$?
15562   grep -v '^ *+' conftest.er1 >conftest.err
15563   rm -f conftest.er1
15564   cat conftest.err >&5
15565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566   (exit $ac_status); } >/dev/null; then
15567   if test -s conftest.err; then
15568     ac_cpp_err=$ac_c_preproc_warn_flag
15569     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15570   else
15571     ac_cpp_err=
15572   fi
15573 else
15574   ac_cpp_err=yes
15575 fi
15576 if test -z "$ac_cpp_err"; then
15577   ac_header_preproc=yes
15578 else
15579   echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15581
15582   ac_header_preproc=no
15583 fi
15584
15585 rm -f conftest.err conftest.$ac_ext
15586 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15587 echo "${ECHO_T}$ac_header_preproc" >&6; }
15588
15589 # So?  What about this header?
15590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15591   yes:no: )
15592     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15594     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15596     ac_header_preproc=yes
15597     ;;
15598   no:yes:* )
15599     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15601     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15602 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15603     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15605     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15606 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15607     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15609     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15611     ( cat <<\_ASBOX
15612 ## ----------------------------------- ##
15613 ## Report this to llvmbugs@cs.uiuc.edu ##
15614 ## ----------------------------------- ##
15615 _ASBOX
15616      ) | sed "s/^/$as_me: WARNING:     /" >&2
15617     ;;
15618 esac
15619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15622   echo $ECHO_N "(cached) $ECHO_C" >&6
15623 else
15624   eval "$as_ac_Header=\$ac_header_preproc"
15625 fi
15626 ac_res=`eval echo '${'$as_ac_Header'}'`
15627                { echo "$as_me:$LINENO: result: $ac_res" >&5
15628 echo "${ECHO_T}$ac_res" >&6; }
15629
15630 fi
15631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15632   cat >>confdefs.h <<_ACEOF
15633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15634 _ACEOF
15635
15636 fi
15637
15638 done
15639
15640
15641 for ac_header in valgrind/valgrind.h
15642 do
15643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15645   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15648   echo $ECHO_N "(cached) $ECHO_C" >&6
15649 fi
15650 ac_res=`eval echo '${'$as_ac_Header'}'`
15651                { echo "$as_me:$LINENO: result: $ac_res" >&5
15652 echo "${ECHO_T}$ac_res" >&6; }
15653 else
15654   # Is the header compilable?
15655 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15657 cat >conftest.$ac_ext <<_ACEOF
15658 /* confdefs.h.  */
15659 _ACEOF
15660 cat confdefs.h >>conftest.$ac_ext
15661 cat >>conftest.$ac_ext <<_ACEOF
15662 /* end confdefs.h.  */
15663 $ac_includes_default
15664 #include <$ac_header>
15665 _ACEOF
15666 rm -f conftest.$ac_objext
15667 if { (ac_try="$ac_compile"
15668 case "(($ac_try" in
15669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15670   *) ac_try_echo=$ac_try;;
15671 esac
15672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15673   (eval "$ac_compile") 2>conftest.er1
15674   ac_status=$?
15675   grep -v '^ *+' conftest.er1 >conftest.err
15676   rm -f conftest.er1
15677   cat conftest.err >&5
15678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679   (exit $ac_status); } &&
15680          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15681   { (case "(($ac_try" in
15682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683   *) ac_try_echo=$ac_try;;
15684 esac
15685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686   (eval "$ac_try") 2>&5
15687   ac_status=$?
15688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689   (exit $ac_status); }; } &&
15690          { ac_try='test -s conftest.$ac_objext'
15691   { (case "(($ac_try" in
15692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15693   *) ac_try_echo=$ac_try;;
15694 esac
15695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15696   (eval "$ac_try") 2>&5
15697   ac_status=$?
15698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699   (exit $ac_status); }; }; then
15700   ac_header_compiler=yes
15701 else
15702   echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15704
15705         ac_header_compiler=no
15706 fi
15707
15708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15710 echo "${ECHO_T}$ac_header_compiler" >&6; }
15711
15712 # Is the header present?
15713 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15715 cat >conftest.$ac_ext <<_ACEOF
15716 /* confdefs.h.  */
15717 _ACEOF
15718 cat confdefs.h >>conftest.$ac_ext
15719 cat >>conftest.$ac_ext <<_ACEOF
15720 /* end confdefs.h.  */
15721 #include <$ac_header>
15722 _ACEOF
15723 if { (ac_try="$ac_cpp conftest.$ac_ext"
15724 case "(($ac_try" in
15725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15726   *) ac_try_echo=$ac_try;;
15727 esac
15728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15729   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15730   ac_status=$?
15731   grep -v '^ *+' conftest.er1 >conftest.err
15732   rm -f conftest.er1
15733   cat conftest.err >&5
15734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735   (exit $ac_status); } >/dev/null; then
15736   if test -s conftest.err; then
15737     ac_cpp_err=$ac_c_preproc_warn_flag
15738     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15739   else
15740     ac_cpp_err=
15741   fi
15742 else
15743   ac_cpp_err=yes
15744 fi
15745 if test -z "$ac_cpp_err"; then
15746   ac_header_preproc=yes
15747 else
15748   echo "$as_me: failed program was:" >&5
15749 sed 's/^/| /' conftest.$ac_ext >&5
15750
15751   ac_header_preproc=no
15752 fi
15753
15754 rm -f conftest.err conftest.$ac_ext
15755 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15756 echo "${ECHO_T}$ac_header_preproc" >&6; }
15757
15758 # So?  What about this header?
15759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15760   yes:no: )
15761     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15763     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15765     ac_header_preproc=yes
15766     ;;
15767   no:yes:* )
15768     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15770     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15771 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15772     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15774     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15775 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15776     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15778     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15780     ( cat <<\_ASBOX
15781 ## ----------------------------------- ##
15782 ## Report this to llvmbugs@cs.uiuc.edu ##
15783 ## ----------------------------------- ##
15784 _ASBOX
15785      ) | sed "s/^/$as_me: WARNING:     /" >&2
15786     ;;
15787 esac
15788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15791   echo $ECHO_N "(cached) $ECHO_C" >&6
15792 else
15793   eval "$as_ac_Header=\$ac_header_preproc"
15794 fi
15795 ac_res=`eval echo '${'$as_ac_Header'}'`
15796                { echo "$as_me:$LINENO: result: $ac_res" >&5
15797 echo "${ECHO_T}$ac_res" >&6; }
15798
15799 fi
15800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15801   cat >>confdefs.h <<_ACEOF
15802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15803 _ACEOF
15804
15805 fi
15806
15807 done
15808
15809
15810 for ac_header in fenv.h
15811 do
15812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15814   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15817   echo $ECHO_N "(cached) $ECHO_C" >&6
15818 fi
15819 ac_res=`eval echo '${'$as_ac_Header'}'`
15820                { echo "$as_me:$LINENO: result: $ac_res" >&5
15821 echo "${ECHO_T}$ac_res" >&6; }
15822 else
15823   # Is the header compilable?
15824 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15826 cat >conftest.$ac_ext <<_ACEOF
15827 /* confdefs.h.  */
15828 _ACEOF
15829 cat confdefs.h >>conftest.$ac_ext
15830 cat >>conftest.$ac_ext <<_ACEOF
15831 /* end confdefs.h.  */
15832 $ac_includes_default
15833 #include <$ac_header>
15834 _ACEOF
15835 rm -f conftest.$ac_objext
15836 if { (ac_try="$ac_compile"
15837 case "(($ac_try" in
15838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15839   *) ac_try_echo=$ac_try;;
15840 esac
15841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15842   (eval "$ac_compile") 2>conftest.er1
15843   ac_status=$?
15844   grep -v '^ *+' conftest.er1 >conftest.err
15845   rm -f conftest.er1
15846   cat conftest.err >&5
15847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848   (exit $ac_status); } &&
15849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15850   { (case "(($ac_try" in
15851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15852   *) ac_try_echo=$ac_try;;
15853 esac
15854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15855   (eval "$ac_try") 2>&5
15856   ac_status=$?
15857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858   (exit $ac_status); }; } &&
15859          { ac_try='test -s conftest.$ac_objext'
15860   { (case "(($ac_try" in
15861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15862   *) ac_try_echo=$ac_try;;
15863 esac
15864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15865   (eval "$ac_try") 2>&5
15866   ac_status=$?
15867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868   (exit $ac_status); }; }; then
15869   ac_header_compiler=yes
15870 else
15871   echo "$as_me: failed program was:" >&5
15872 sed 's/^/| /' conftest.$ac_ext >&5
15873
15874         ac_header_compiler=no
15875 fi
15876
15877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15878 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15879 echo "${ECHO_T}$ac_header_compiler" >&6; }
15880
15881 # Is the header present?
15882 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15884 cat >conftest.$ac_ext <<_ACEOF
15885 /* confdefs.h.  */
15886 _ACEOF
15887 cat confdefs.h >>conftest.$ac_ext
15888 cat >>conftest.$ac_ext <<_ACEOF
15889 /* end confdefs.h.  */
15890 #include <$ac_header>
15891 _ACEOF
15892 if { (ac_try="$ac_cpp conftest.$ac_ext"
15893 case "(($ac_try" in
15894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15895   *) ac_try_echo=$ac_try;;
15896 esac
15897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15898   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15899   ac_status=$?
15900   grep -v '^ *+' conftest.er1 >conftest.err
15901   rm -f conftest.er1
15902   cat conftest.err >&5
15903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904   (exit $ac_status); } >/dev/null; then
15905   if test -s conftest.err; then
15906     ac_cpp_err=$ac_c_preproc_warn_flag
15907     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15908   else
15909     ac_cpp_err=
15910   fi
15911 else
15912   ac_cpp_err=yes
15913 fi
15914 if test -z "$ac_cpp_err"; then
15915   ac_header_preproc=yes
15916 else
15917   echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15919
15920   ac_header_preproc=no
15921 fi
15922
15923 rm -f conftest.err conftest.$ac_ext
15924 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15925 echo "${ECHO_T}$ac_header_preproc" >&6; }
15926
15927 # So?  What about this header?
15928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15929   yes:no: )
15930     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15932     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15934     ac_header_preproc=yes
15935     ;;
15936   no:yes:* )
15937     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15939     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15940 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15941     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15943     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15944 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15945     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15947     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15949     ( cat <<\_ASBOX
15950 ## ----------------------------------- ##
15951 ## Report this to llvmbugs@cs.uiuc.edu ##
15952 ## ----------------------------------- ##
15953 _ASBOX
15954      ) | sed "s/^/$as_me: WARNING:     /" >&2
15955     ;;
15956 esac
15957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15960   echo $ECHO_N "(cached) $ECHO_C" >&6
15961 else
15962   eval "$as_ac_Header=\$ac_header_preproc"
15963 fi
15964 ac_res=`eval echo '${'$as_ac_Header'}'`
15965                { echo "$as_me:$LINENO: result: $ac_res" >&5
15966 echo "${ECHO_T}$ac_res" >&6; }
15967
15968 fi
15969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15970   cat >>confdefs.h <<_ACEOF
15971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15972 _ACEOF
15973
15974 fi
15975
15976 done
15977
15978 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15979
15980 for ac_header in pthread.h
15981 do
15982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15984   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15987   echo $ECHO_N "(cached) $ECHO_C" >&6
15988 fi
15989 ac_res=`eval echo '${'$as_ac_Header'}'`
15990                { echo "$as_me:$LINENO: result: $ac_res" >&5
15991 echo "${ECHO_T}$ac_res" >&6; }
15992 else
15993   # Is the header compilable?
15994 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15996 cat >conftest.$ac_ext <<_ACEOF
15997 /* confdefs.h.  */
15998 _ACEOF
15999 cat confdefs.h >>conftest.$ac_ext
16000 cat >>conftest.$ac_ext <<_ACEOF
16001 /* end confdefs.h.  */
16002 $ac_includes_default
16003 #include <$ac_header>
16004 _ACEOF
16005 rm -f conftest.$ac_objext
16006 if { (ac_try="$ac_compile"
16007 case "(($ac_try" in
16008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16009   *) ac_try_echo=$ac_try;;
16010 esac
16011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16012   (eval "$ac_compile") 2>conftest.er1
16013   ac_status=$?
16014   grep -v '^ *+' conftest.er1 >conftest.err
16015   rm -f conftest.er1
16016   cat conftest.err >&5
16017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018   (exit $ac_status); } &&
16019          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16020   { (case "(($ac_try" in
16021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022   *) ac_try_echo=$ac_try;;
16023 esac
16024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025   (eval "$ac_try") 2>&5
16026   ac_status=$?
16027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028   (exit $ac_status); }; } &&
16029          { ac_try='test -s conftest.$ac_objext'
16030   { (case "(($ac_try" in
16031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16032   *) ac_try_echo=$ac_try;;
16033 esac
16034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16035   (eval "$ac_try") 2>&5
16036   ac_status=$?
16037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038   (exit $ac_status); }; }; then
16039   ac_header_compiler=yes
16040 else
16041   echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.$ac_ext >&5
16043
16044         ac_header_compiler=no
16045 fi
16046
16047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16049 echo "${ECHO_T}$ac_header_compiler" >&6; }
16050
16051 # Is the header present?
16052 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16054 cat >conftest.$ac_ext <<_ACEOF
16055 /* confdefs.h.  */
16056 _ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h.  */
16060 #include <$ac_header>
16061 _ACEOF
16062 if { (ac_try="$ac_cpp conftest.$ac_ext"
16063 case "(($ac_try" in
16064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065   *) ac_try_echo=$ac_try;;
16066 esac
16067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16068   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16069   ac_status=$?
16070   grep -v '^ *+' conftest.er1 >conftest.err
16071   rm -f conftest.er1
16072   cat conftest.err >&5
16073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074   (exit $ac_status); } >/dev/null; then
16075   if test -s conftest.err; then
16076     ac_cpp_err=$ac_c_preproc_warn_flag
16077     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16078   else
16079     ac_cpp_err=
16080   fi
16081 else
16082   ac_cpp_err=yes
16083 fi
16084 if test -z "$ac_cpp_err"; then
16085   ac_header_preproc=yes
16086 else
16087   echo "$as_me: failed program was:" >&5
16088 sed 's/^/| /' conftest.$ac_ext >&5
16089
16090   ac_header_preproc=no
16091 fi
16092
16093 rm -f conftest.err conftest.$ac_ext
16094 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16095 echo "${ECHO_T}$ac_header_preproc" >&6; }
16096
16097 # So?  What about this header?
16098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16099   yes:no: )
16100     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16101 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16102     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16103 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16104     ac_header_preproc=yes
16105     ;;
16106   no:yes:* )
16107     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16108 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16109     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16110 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16111     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16112 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16113     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16114 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16115     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16117     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16118 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16119     ( cat <<\_ASBOX
16120 ## ----------------------------------- ##
16121 ## Report this to llvmbugs@cs.uiuc.edu ##
16122 ## ----------------------------------- ##
16123 _ASBOX
16124      ) | sed "s/^/$as_me: WARNING:     /" >&2
16125     ;;
16126 esac
16127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16130   echo $ECHO_N "(cached) $ECHO_C" >&6
16131 else
16132   eval "$as_ac_Header=\$ac_header_preproc"
16133 fi
16134 ac_res=`eval echo '${'$as_ac_Header'}'`
16135                { echo "$as_me:$LINENO: result: $ac_res" >&5
16136 echo "${ECHO_T}$ac_res" >&6; }
16137
16138 fi
16139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16140   cat >>confdefs.h <<_ACEOF
16141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16142 _ACEOF
16143  HAVE_PTHREAD=1
16144
16145 else
16146   HAVE_PTHREAD=0
16147
16148 fi
16149
16150 done
16151
16152 else
16153   HAVE_PTHREAD=0
16154
16155 fi
16156
16157 if test "$llvm_cv_enable_libffi" = "yes" ; then
16158
16159
16160 for ac_header in ffi.h ffi/ffi.h
16161 do
16162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16164   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16167   echo $ECHO_N "(cached) $ECHO_C" >&6
16168 fi
16169 ac_res=`eval echo '${'$as_ac_Header'}'`
16170                { echo "$as_me:$LINENO: result: $ac_res" >&5
16171 echo "${ECHO_T}$ac_res" >&6; }
16172 else
16173   # Is the header compilable?
16174 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16176 cat >conftest.$ac_ext <<_ACEOF
16177 /* confdefs.h.  */
16178 _ACEOF
16179 cat confdefs.h >>conftest.$ac_ext
16180 cat >>conftest.$ac_ext <<_ACEOF
16181 /* end confdefs.h.  */
16182 $ac_includes_default
16183 #include <$ac_header>
16184 _ACEOF
16185 rm -f conftest.$ac_objext
16186 if { (ac_try="$ac_compile"
16187 case "(($ac_try" in
16188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189   *) ac_try_echo=$ac_try;;
16190 esac
16191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192   (eval "$ac_compile") 2>conftest.er1
16193   ac_status=$?
16194   grep -v '^ *+' conftest.er1 >conftest.err
16195   rm -f conftest.er1
16196   cat conftest.err >&5
16197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198   (exit $ac_status); } &&
16199          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16200   { (case "(($ac_try" in
16201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202   *) ac_try_echo=$ac_try;;
16203 esac
16204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205   (eval "$ac_try") 2>&5
16206   ac_status=$?
16207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208   (exit $ac_status); }; } &&
16209          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
16216   ac_status=$?
16217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218   (exit $ac_status); }; }; then
16219   ac_header_compiler=yes
16220 else
16221   echo "$as_me: failed program was:" >&5
16222 sed 's/^/| /' conftest.$ac_ext >&5
16223
16224         ac_header_compiler=no
16225 fi
16226
16227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16229 echo "${ECHO_T}$ac_header_compiler" >&6; }
16230
16231 # Is the header present?
16232 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16234 cat >conftest.$ac_ext <<_ACEOF
16235 /* confdefs.h.  */
16236 _ACEOF
16237 cat confdefs.h >>conftest.$ac_ext
16238 cat >>conftest.$ac_ext <<_ACEOF
16239 /* end confdefs.h.  */
16240 #include <$ac_header>
16241 _ACEOF
16242 if { (ac_try="$ac_cpp conftest.$ac_ext"
16243 case "(($ac_try" in
16244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245   *) ac_try_echo=$ac_try;;
16246 esac
16247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16249   ac_status=$?
16250   grep -v '^ *+' conftest.er1 >conftest.err
16251   rm -f conftest.er1
16252   cat conftest.err >&5
16253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254   (exit $ac_status); } >/dev/null; then
16255   if test -s conftest.err; then
16256     ac_cpp_err=$ac_c_preproc_warn_flag
16257     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16258   else
16259     ac_cpp_err=
16260   fi
16261 else
16262   ac_cpp_err=yes
16263 fi
16264 if test -z "$ac_cpp_err"; then
16265   ac_header_preproc=yes
16266 else
16267   echo "$as_me: failed program was:" >&5
16268 sed 's/^/| /' conftest.$ac_ext >&5
16269
16270   ac_header_preproc=no
16271 fi
16272
16273 rm -f conftest.err conftest.$ac_ext
16274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16275 echo "${ECHO_T}$ac_header_preproc" >&6; }
16276
16277 # So?  What about this header?
16278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16279   yes:no: )
16280     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16282     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16284     ac_header_preproc=yes
16285     ;;
16286   no:yes:* )
16287     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16289     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16290 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16291     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16293     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16294 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16297     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16299     ( cat <<\_ASBOX
16300 ## ----------------------------------- ##
16301 ## Report this to llvmbugs@cs.uiuc.edu ##
16302 ## ----------------------------------- ##
16303 _ASBOX
16304      ) | sed "s/^/$as_me: WARNING:     /" >&2
16305     ;;
16306 esac
16307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16310   echo $ECHO_N "(cached) $ECHO_C" >&6
16311 else
16312   eval "$as_ac_Header=\$ac_header_preproc"
16313 fi
16314 ac_res=`eval echo '${'$as_ac_Header'}'`
16315                { echo "$as_me:$LINENO: result: $ac_res" >&5
16316 echo "${ECHO_T}$ac_res" >&6; }
16317
16318 fi
16319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16320   cat >>confdefs.h <<_ACEOF
16321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16322 _ACEOF
16323
16324 fi
16325
16326 done
16327
16328 fi
16329
16330
16331 for ac_header in CrashReporterClient.h
16332 do
16333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16335   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16338   echo $ECHO_N "(cached) $ECHO_C" >&6
16339 fi
16340 ac_res=`eval echo '${'$as_ac_Header'}'`
16341                { echo "$as_me:$LINENO: result: $ac_res" >&5
16342 echo "${ECHO_T}$ac_res" >&6; }
16343 else
16344   # Is the header compilable?
16345 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16347 cat >conftest.$ac_ext <<_ACEOF
16348 /* confdefs.h.  */
16349 _ACEOF
16350 cat confdefs.h >>conftest.$ac_ext
16351 cat >>conftest.$ac_ext <<_ACEOF
16352 /* end confdefs.h.  */
16353 $ac_includes_default
16354 #include <$ac_header>
16355 _ACEOF
16356 rm -f conftest.$ac_objext
16357 if { (ac_try="$ac_compile"
16358 case "(($ac_try" in
16359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16360   *) ac_try_echo=$ac_try;;
16361 esac
16362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16363   (eval "$ac_compile") 2>conftest.er1
16364   ac_status=$?
16365   grep -v '^ *+' conftest.er1 >conftest.err
16366   rm -f conftest.er1
16367   cat conftest.err >&5
16368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369   (exit $ac_status); } &&
16370          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16371   { (case "(($ac_try" in
16372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16373   *) ac_try_echo=$ac_try;;
16374 esac
16375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16376   (eval "$ac_try") 2>&5
16377   ac_status=$?
16378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379   (exit $ac_status); }; } &&
16380          { ac_try='test -s conftest.$ac_objext'
16381   { (case "(($ac_try" in
16382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16383   *) ac_try_echo=$ac_try;;
16384 esac
16385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16386   (eval "$ac_try") 2>&5
16387   ac_status=$?
16388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389   (exit $ac_status); }; }; then
16390   ac_header_compiler=yes
16391 else
16392   echo "$as_me: failed program was:" >&5
16393 sed 's/^/| /' conftest.$ac_ext >&5
16394
16395         ac_header_compiler=no
16396 fi
16397
16398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16400 echo "${ECHO_T}$ac_header_compiler" >&6; }
16401
16402 # Is the header present?
16403 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16405 cat >conftest.$ac_ext <<_ACEOF
16406 /* confdefs.h.  */
16407 _ACEOF
16408 cat confdefs.h >>conftest.$ac_ext
16409 cat >>conftest.$ac_ext <<_ACEOF
16410 /* end confdefs.h.  */
16411 #include <$ac_header>
16412 _ACEOF
16413 if { (ac_try="$ac_cpp conftest.$ac_ext"
16414 case "(($ac_try" in
16415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16416   *) ac_try_echo=$ac_try;;
16417 esac
16418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16419   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16420   ac_status=$?
16421   grep -v '^ *+' conftest.er1 >conftest.err
16422   rm -f conftest.er1
16423   cat conftest.err >&5
16424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425   (exit $ac_status); } >/dev/null; then
16426   if test -s conftest.err; then
16427     ac_cpp_err=$ac_c_preproc_warn_flag
16428     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16429   else
16430     ac_cpp_err=
16431   fi
16432 else
16433   ac_cpp_err=yes
16434 fi
16435 if test -z "$ac_cpp_err"; then
16436   ac_header_preproc=yes
16437 else
16438   echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16440
16441   ac_header_preproc=no
16442 fi
16443
16444 rm -f conftest.err conftest.$ac_ext
16445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16446 echo "${ECHO_T}$ac_header_preproc" >&6; }
16447
16448 # So?  What about this header?
16449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16450   yes:no: )
16451     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16453     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16455     ac_header_preproc=yes
16456     ;;
16457   no:yes:* )
16458     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16460     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16461 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16462     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16464     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16465 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16466     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16468     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16470     ( cat <<\_ASBOX
16471 ## ----------------------------------- ##
16472 ## Report this to llvmbugs@cs.uiuc.edu ##
16473 ## ----------------------------------- ##
16474 _ASBOX
16475      ) | sed "s/^/$as_me: WARNING:     /" >&2
16476     ;;
16477 esac
16478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16481   echo $ECHO_N "(cached) $ECHO_C" >&6
16482 else
16483   eval "$as_ac_Header=\$ac_header_preproc"
16484 fi
16485 ac_res=`eval echo '${'$as_ac_Header'}'`
16486                { echo "$as_me:$LINENO: result: $ac_res" >&5
16487 echo "${ECHO_T}$ac_res" >&6; }
16488
16489 fi
16490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16491   cat >>confdefs.h <<_ACEOF
16492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16493 _ACEOF
16494
16495 fi
16496
16497 done
16498
16499
16500 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16501 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16502 cat >conftest.$ac_ext <<_ACEOF
16503 /* confdefs.h.  */
16504 _ACEOF
16505 cat confdefs.h >>conftest.$ac_ext
16506 cat >>conftest.$ac_ext <<_ACEOF
16507 /* end confdefs.h.  */
16508 extern const char *__crashreporter_info__;
16509       int main() {
16510         __crashreporter_info__ = "test";
16511         return 0;
16512       }
16513
16514 _ACEOF
16515 rm -f conftest.$ac_objext conftest$ac_exeext
16516 if { (ac_try="$ac_link"
16517 case "(($ac_try" in
16518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519   *) ac_try_echo=$ac_try;;
16520 esac
16521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522   (eval "$ac_link") 2>conftest.er1
16523   ac_status=$?
16524   grep -v '^ *+' conftest.er1 >conftest.err
16525   rm -f conftest.er1
16526   cat conftest.err >&5
16527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528   (exit $ac_status); } &&
16529          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16530   { (case "(($ac_try" in
16531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16532   *) ac_try_echo=$ac_try;;
16533 esac
16534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16535   (eval "$ac_try") 2>&5
16536   ac_status=$?
16537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538   (exit $ac_status); }; } &&
16539          { ac_try='test -s conftest$ac_exeext'
16540   { (case "(($ac_try" in
16541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16542   *) ac_try_echo=$ac_try;;
16543 esac
16544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16545   (eval "$ac_try") 2>&5
16546   ac_status=$?
16547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548   (exit $ac_status); }; }; then
16549   { echo "$as_me:$LINENO: result: yes" >&5
16550 echo "${ECHO_T}yes" >&6; }
16551
16552 cat >>confdefs.h <<\_ACEOF
16553 #define HAVE_CRASHREPORTER_INFO 1
16554 _ACEOF
16555
16556 else
16557   echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.$ac_ext >&5
16559
16560         { echo "$as_me:$LINENO: result: no" >&5
16561 echo "${ECHO_T}no" >&6; }
16562
16563 cat >>confdefs.h <<\_ACEOF
16564 #define HAVE_CRASHREPORTER_INFO 0
16565 _ACEOF
16566
16567 fi
16568
16569 rm -f core conftest.err conftest.$ac_objext \
16570       conftest$ac_exeext conftest.$ac_ext
16571
16572
16573
16574
16575   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16576 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16577 if test "${ac_cv_huge_val_sanity+set}" = set; then
16578   echo $ECHO_N "(cached) $ECHO_C" >&6
16579 else
16580
16581     ac_ext=cpp
16582 ac_cpp='$CXXCPP $CPPFLAGS'
16583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16586
16587     ac_save_CXXFLAGS=$CXXFLAGS
16588     CXXFLAGS=-pedantic
16589     if test "$cross_compiling" = yes; then
16590   ac_cv_huge_val_sanity=yes
16591 else
16592   cat >conftest.$ac_ext <<_ACEOF
16593 /* confdefs.h.  */
16594 _ACEOF
16595 cat confdefs.h >>conftest.$ac_ext
16596 cat >>conftest.$ac_ext <<_ACEOF
16597 /* end confdefs.h.  */
16598 #include <math.h>
16599 int
16600 main ()
16601 {
16602 double x = HUGE_VAL; return x != x;
16603   ;
16604   return 0;
16605 }
16606 _ACEOF
16607 rm -f conftest$ac_exeext
16608 if { (ac_try="$ac_link"
16609 case "(($ac_try" in
16610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16611   *) ac_try_echo=$ac_try;;
16612 esac
16613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16614   (eval "$ac_link") 2>&5
16615   ac_status=$?
16616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16618   { (case "(($ac_try" in
16619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16620   *) ac_try_echo=$ac_try;;
16621 esac
16622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16623   (eval "$ac_try") 2>&5
16624   ac_status=$?
16625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626   (exit $ac_status); }; }; then
16627   ac_cv_huge_val_sanity=yes
16628 else
16629   echo "$as_me: program exited with status $ac_status" >&5
16630 echo "$as_me: failed program was:" >&5
16631 sed 's/^/| /' conftest.$ac_ext >&5
16632
16633 ( exit $ac_status )
16634 ac_cv_huge_val_sanity=no
16635 fi
16636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16637 fi
16638
16639
16640     CXXFLAGS=$ac_save_CXXFLAGS
16641     ac_ext=c
16642 ac_cpp='$CPP $CPPFLAGS'
16643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16646
16647
16648 fi
16649 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16650 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16651   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16652
16653
16654 { echo "$as_me:$LINENO: checking for pid_t" >&5
16655 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16656 if test "${ac_cv_type_pid_t+set}" = set; then
16657   echo $ECHO_N "(cached) $ECHO_C" >&6
16658 else
16659   cat >conftest.$ac_ext <<_ACEOF
16660 /* confdefs.h.  */
16661 _ACEOF
16662 cat confdefs.h >>conftest.$ac_ext
16663 cat >>conftest.$ac_ext <<_ACEOF
16664 /* end confdefs.h.  */
16665 $ac_includes_default
16666 typedef pid_t ac__type_new_;
16667 int
16668 main ()
16669 {
16670 if ((ac__type_new_ *) 0)
16671   return 0;
16672 if (sizeof (ac__type_new_))
16673   return 0;
16674   ;
16675   return 0;
16676 }
16677 _ACEOF
16678 rm -f conftest.$ac_objext
16679 if { (ac_try="$ac_compile"
16680 case "(($ac_try" in
16681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682   *) ac_try_echo=$ac_try;;
16683 esac
16684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16685   (eval "$ac_compile") 2>conftest.er1
16686   ac_status=$?
16687   grep -v '^ *+' conftest.er1 >conftest.err
16688   rm -f conftest.er1
16689   cat conftest.err >&5
16690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691   (exit $ac_status); } &&
16692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16693   { (case "(($ac_try" in
16694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695   *) ac_try_echo=$ac_try;;
16696 esac
16697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698   (eval "$ac_try") 2>&5
16699   ac_status=$?
16700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701   (exit $ac_status); }; } &&
16702          { ac_try='test -s conftest.$ac_objext'
16703   { (case "(($ac_try" in
16704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705   *) ac_try_echo=$ac_try;;
16706 esac
16707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16708   (eval "$ac_try") 2>&5
16709   ac_status=$?
16710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711   (exit $ac_status); }; }; then
16712   ac_cv_type_pid_t=yes
16713 else
16714   echo "$as_me: failed program was:" >&5
16715 sed 's/^/| /' conftest.$ac_ext >&5
16716
16717         ac_cv_type_pid_t=no
16718 fi
16719
16720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16721 fi
16722 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16723 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16724 if test $ac_cv_type_pid_t = yes; then
16725   :
16726 else
16727
16728 cat >>confdefs.h <<_ACEOF
16729 #define pid_t int
16730 _ACEOF
16731
16732 fi
16733
16734 { echo "$as_me:$LINENO: checking for size_t" >&5
16735 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16736 if test "${ac_cv_type_size_t+set}" = set; then
16737   echo $ECHO_N "(cached) $ECHO_C" >&6
16738 else
16739   cat >conftest.$ac_ext <<_ACEOF
16740 /* confdefs.h.  */
16741 _ACEOF
16742 cat confdefs.h >>conftest.$ac_ext
16743 cat >>conftest.$ac_ext <<_ACEOF
16744 /* end confdefs.h.  */
16745 $ac_includes_default
16746 typedef size_t ac__type_new_;
16747 int
16748 main ()
16749 {
16750 if ((ac__type_new_ *) 0)
16751   return 0;
16752 if (sizeof (ac__type_new_))
16753   return 0;
16754   ;
16755   return 0;
16756 }
16757 _ACEOF
16758 rm -f conftest.$ac_objext
16759 if { (ac_try="$ac_compile"
16760 case "(($ac_try" in
16761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762   *) ac_try_echo=$ac_try;;
16763 esac
16764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765   (eval "$ac_compile") 2>conftest.er1
16766   ac_status=$?
16767   grep -v '^ *+' conftest.er1 >conftest.err
16768   rm -f conftest.er1
16769   cat conftest.err >&5
16770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771   (exit $ac_status); } &&
16772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16773   { (case "(($ac_try" in
16774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16775   *) ac_try_echo=$ac_try;;
16776 esac
16777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16778   (eval "$ac_try") 2>&5
16779   ac_status=$?
16780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781   (exit $ac_status); }; } &&
16782          { ac_try='test -s conftest.$ac_objext'
16783   { (case "(($ac_try" in
16784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785   *) ac_try_echo=$ac_try;;
16786 esac
16787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788   (eval "$ac_try") 2>&5
16789   ac_status=$?
16790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791   (exit $ac_status); }; }; then
16792   ac_cv_type_size_t=yes
16793 else
16794   echo "$as_me: failed program was:" >&5
16795 sed 's/^/| /' conftest.$ac_ext >&5
16796
16797         ac_cv_type_size_t=no
16798 fi
16799
16800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16801 fi
16802 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16803 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16804 if test $ac_cv_type_size_t = yes; then
16805   :
16806 else
16807
16808 cat >>confdefs.h <<_ACEOF
16809 #define size_t unsigned int
16810 _ACEOF
16811
16812 fi
16813
16814
16815 cat >>confdefs.h <<_ACEOF
16816 #define RETSIGTYPE void
16817 _ACEOF
16818
16819 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16820 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16821 if test "${ac_cv_struct_tm+set}" = set; then
16822   echo $ECHO_N "(cached) $ECHO_C" >&6
16823 else
16824   cat >conftest.$ac_ext <<_ACEOF
16825 /* confdefs.h.  */
16826 _ACEOF
16827 cat confdefs.h >>conftest.$ac_ext
16828 cat >>conftest.$ac_ext <<_ACEOF
16829 /* end confdefs.h.  */
16830 #include <sys/types.h>
16831 #include <time.h>
16832
16833 int
16834 main ()
16835 {
16836 struct tm *tp; tp->tm_sec;
16837   ;
16838   return 0;
16839 }
16840 _ACEOF
16841 rm -f conftest.$ac_objext
16842 if { (ac_try="$ac_compile"
16843 case "(($ac_try" in
16844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16845   *) ac_try_echo=$ac_try;;
16846 esac
16847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848   (eval "$ac_compile") 2>conftest.er1
16849   ac_status=$?
16850   grep -v '^ *+' conftest.er1 >conftest.err
16851   rm -f conftest.er1
16852   cat conftest.err >&5
16853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854   (exit $ac_status); } &&
16855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16856   { (case "(($ac_try" in
16857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858   *) ac_try_echo=$ac_try;;
16859 esac
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861   (eval "$ac_try") 2>&5
16862   ac_status=$?
16863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864   (exit $ac_status); }; } &&
16865          { ac_try='test -s conftest.$ac_objext'
16866   { (case "(($ac_try" in
16867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868   *) ac_try_echo=$ac_try;;
16869 esac
16870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871   (eval "$ac_try") 2>&5
16872   ac_status=$?
16873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874   (exit $ac_status); }; }; then
16875   ac_cv_struct_tm=time.h
16876 else
16877   echo "$as_me: failed program was:" >&5
16878 sed 's/^/| /' conftest.$ac_ext >&5
16879
16880         ac_cv_struct_tm=sys/time.h
16881 fi
16882
16883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16884 fi
16885 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16886 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16887 if test $ac_cv_struct_tm = sys/time.h; then
16888
16889 cat >>confdefs.h <<\_ACEOF
16890 #define TM_IN_SYS_TIME 1
16891 _ACEOF
16892
16893 fi
16894
16895 { echo "$as_me:$LINENO: checking for int64_t" >&5
16896 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16897 if test "${ac_cv_type_int64_t+set}" = set; then
16898   echo $ECHO_N "(cached) $ECHO_C" >&6
16899 else
16900   cat >conftest.$ac_ext <<_ACEOF
16901 /* confdefs.h.  */
16902 _ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h.  */
16906 $ac_includes_default
16907 typedef int64_t ac__type_new_;
16908 int
16909 main ()
16910 {
16911 if ((ac__type_new_ *) 0)
16912   return 0;
16913 if (sizeof (ac__type_new_))
16914   return 0;
16915   ;
16916   return 0;
16917 }
16918 _ACEOF
16919 rm -f conftest.$ac_objext
16920 if { (ac_try="$ac_compile"
16921 case "(($ac_try" in
16922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923   *) ac_try_echo=$ac_try;;
16924 esac
16925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16926   (eval "$ac_compile") 2>conftest.er1
16927   ac_status=$?
16928   grep -v '^ *+' conftest.er1 >conftest.err
16929   rm -f conftest.er1
16930   cat conftest.err >&5
16931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932   (exit $ac_status); } &&
16933          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16934   { (case "(($ac_try" in
16935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16936   *) ac_try_echo=$ac_try;;
16937 esac
16938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16939   (eval "$ac_try") 2>&5
16940   ac_status=$?
16941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942   (exit $ac_status); }; } &&
16943          { ac_try='test -s conftest.$ac_objext'
16944   { (case "(($ac_try" in
16945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946   *) ac_try_echo=$ac_try;;
16947 esac
16948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949   (eval "$ac_try") 2>&5
16950   ac_status=$?
16951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952   (exit $ac_status); }; }; then
16953   ac_cv_type_int64_t=yes
16954 else
16955   echo "$as_me: failed program was:" >&5
16956 sed 's/^/| /' conftest.$ac_ext >&5
16957
16958         ac_cv_type_int64_t=no
16959 fi
16960
16961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16962 fi
16963 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16964 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16965 if test $ac_cv_type_int64_t = yes; then
16966
16967 cat >>confdefs.h <<_ACEOF
16968 #define HAVE_INT64_T 1
16969 _ACEOF
16970
16971
16972 else
16973   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16974 echo "$as_me: error: Type int64_t required but not found" >&2;}
16975    { (exit 1); exit 1; }; }
16976 fi
16977
16978 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16979 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16980 if test "${ac_cv_type_uint64_t+set}" = set; then
16981   echo $ECHO_N "(cached) $ECHO_C" >&6
16982 else
16983   cat >conftest.$ac_ext <<_ACEOF
16984 /* confdefs.h.  */
16985 _ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h.  */
16989 $ac_includes_default
16990 typedef uint64_t ac__type_new_;
16991 int
16992 main ()
16993 {
16994 if ((ac__type_new_ *) 0)
16995   return 0;
16996 if (sizeof (ac__type_new_))
16997   return 0;
16998   ;
16999   return 0;
17000 }
17001 _ACEOF
17002 rm -f conftest.$ac_objext
17003 if { (ac_try="$ac_compile"
17004 case "(($ac_try" in
17005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006   *) ac_try_echo=$ac_try;;
17007 esac
17008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17009   (eval "$ac_compile") 2>conftest.er1
17010   ac_status=$?
17011   grep -v '^ *+' conftest.er1 >conftest.err
17012   rm -f conftest.er1
17013   cat conftest.err >&5
17014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015   (exit $ac_status); } &&
17016          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17017   { (case "(($ac_try" in
17018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019   *) ac_try_echo=$ac_try;;
17020 esac
17021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17022   (eval "$ac_try") 2>&5
17023   ac_status=$?
17024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025   (exit $ac_status); }; } &&
17026          { ac_try='test -s conftest.$ac_objext'
17027   { (case "(($ac_try" in
17028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029   *) ac_try_echo=$ac_try;;
17030 esac
17031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032   (eval "$ac_try") 2>&5
17033   ac_status=$?
17034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035   (exit $ac_status); }; }; then
17036   ac_cv_type_uint64_t=yes
17037 else
17038   echo "$as_me: failed program was:" >&5
17039 sed 's/^/| /' conftest.$ac_ext >&5
17040
17041         ac_cv_type_uint64_t=no
17042 fi
17043
17044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17045 fi
17046 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17047 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17048 if test $ac_cv_type_uint64_t = yes; then
17049
17050 cat >>confdefs.h <<_ACEOF
17051 #define HAVE_UINT64_T 1
17052 _ACEOF
17053
17054
17055 else
17056   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17057 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17058 if test "${ac_cv_type_u_int64_t+set}" = set; then
17059   echo $ECHO_N "(cached) $ECHO_C" >&6
17060 else
17061   cat >conftest.$ac_ext <<_ACEOF
17062 /* confdefs.h.  */
17063 _ACEOF
17064 cat confdefs.h >>conftest.$ac_ext
17065 cat >>conftest.$ac_ext <<_ACEOF
17066 /* end confdefs.h.  */
17067 $ac_includes_default
17068 typedef u_int64_t ac__type_new_;
17069 int
17070 main ()
17071 {
17072 if ((ac__type_new_ *) 0)
17073   return 0;
17074 if (sizeof (ac__type_new_))
17075   return 0;
17076   ;
17077   return 0;
17078 }
17079 _ACEOF
17080 rm -f conftest.$ac_objext
17081 if { (ac_try="$ac_compile"
17082 case "(($ac_try" in
17083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084   *) ac_try_echo=$ac_try;;
17085 esac
17086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17087   (eval "$ac_compile") 2>conftest.er1
17088   ac_status=$?
17089   grep -v '^ *+' conftest.er1 >conftest.err
17090   rm -f conftest.er1
17091   cat conftest.err >&5
17092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093   (exit $ac_status); } &&
17094          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17095   { (case "(($ac_try" in
17096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17097   *) ac_try_echo=$ac_try;;
17098 esac
17099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17100   (eval "$ac_try") 2>&5
17101   ac_status=$?
17102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103   (exit $ac_status); }; } &&
17104          { ac_try='test -s conftest.$ac_objext'
17105   { (case "(($ac_try" in
17106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107   *) ac_try_echo=$ac_try;;
17108 esac
17109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110   (eval "$ac_try") 2>&5
17111   ac_status=$?
17112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113   (exit $ac_status); }; }; then
17114   ac_cv_type_u_int64_t=yes
17115 else
17116   echo "$as_me: failed program was:" >&5
17117 sed 's/^/| /' conftest.$ac_ext >&5
17118
17119         ac_cv_type_u_int64_t=no
17120 fi
17121
17122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17123 fi
17124 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17125 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17126 if test $ac_cv_type_u_int64_t = yes; then
17127
17128 cat >>confdefs.h <<_ACEOF
17129 #define HAVE_U_INT64_T 1
17130 _ACEOF
17131
17132
17133 else
17134   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17135 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17136    { (exit 1); exit 1; }; }
17137 fi
17138
17139 fi
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17151 do
17152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17153 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17155 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17156   echo $ECHO_N "(cached) $ECHO_C" >&6
17157 else
17158   cat >conftest.$ac_ext <<_ACEOF
17159 /* confdefs.h.  */
17160 _ACEOF
17161 cat confdefs.h >>conftest.$ac_ext
17162 cat >>conftest.$ac_ext <<_ACEOF
17163 /* end confdefs.h.  */
17164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17165    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17166 #define $ac_func innocuous_$ac_func
17167
17168 /* System header to define __stub macros and hopefully few prototypes,
17169     which can conflict with char $ac_func (); below.
17170     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17171     <limits.h> exists even on freestanding compilers.  */
17172
17173 #ifdef __STDC__
17174 # include <limits.h>
17175 #else
17176 # include <assert.h>
17177 #endif
17178
17179 #undef $ac_func
17180
17181 /* Override any GCC internal prototype to avoid an error.
17182    Use char because int might match the return type of a GCC
17183    builtin and then its argument prototype would still apply.  */
17184 #ifdef __cplusplus
17185 extern "C"
17186 #endif
17187 char $ac_func ();
17188 /* The GNU C library defines this for functions which it implements
17189     to always fail with ENOSYS.  Some functions are actually named
17190     something starting with __ and the normal name is an alias.  */
17191 #if defined __stub_$ac_func || defined __stub___$ac_func
17192 choke me
17193 #endif
17194
17195 int
17196 main ()
17197 {
17198 return $ac_func ();
17199   ;
17200   return 0;
17201 }
17202 _ACEOF
17203 rm -f conftest.$ac_objext conftest$ac_exeext
17204 if { (ac_try="$ac_link"
17205 case "(($ac_try" in
17206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207   *) ac_try_echo=$ac_try;;
17208 esac
17209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17210   (eval "$ac_link") 2>conftest.er1
17211   ac_status=$?
17212   grep -v '^ *+' conftest.er1 >conftest.err
17213   rm -f conftest.er1
17214   cat conftest.err >&5
17215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216   (exit $ac_status); } &&
17217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17218   { (case "(($ac_try" in
17219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220   *) ac_try_echo=$ac_try;;
17221 esac
17222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223   (eval "$ac_try") 2>&5
17224   ac_status=$?
17225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226   (exit $ac_status); }; } &&
17227          { ac_try='test -s conftest$ac_exeext'
17228   { (case "(($ac_try" in
17229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17230   *) ac_try_echo=$ac_try;;
17231 esac
17232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17233   (eval "$ac_try") 2>&5
17234   ac_status=$?
17235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236   (exit $ac_status); }; }; then
17237   eval "$as_ac_var=yes"
17238 else
17239   echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17241
17242         eval "$as_ac_var=no"
17243 fi
17244
17245 rm -f core conftest.err conftest.$ac_objext \
17246       conftest$ac_exeext conftest.$ac_ext
17247 fi
17248 ac_res=`eval echo '${'$as_ac_var'}'`
17249                { echo "$as_me:$LINENO: result: $ac_res" >&5
17250 echo "${ECHO_T}$ac_res" >&6; }
17251 if test `eval echo '${'$as_ac_var'}'` = yes; then
17252   cat >>confdefs.h <<_ACEOF
17253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17254 _ACEOF
17255
17256 fi
17257 done
17258
17259
17260
17261
17262
17263 for ac_func in powf fmodf strtof round
17264 do
17265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17266 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17268 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17269   echo $ECHO_N "(cached) $ECHO_C" >&6
17270 else
17271   cat >conftest.$ac_ext <<_ACEOF
17272 /* confdefs.h.  */
17273 _ACEOF
17274 cat confdefs.h >>conftest.$ac_ext
17275 cat >>conftest.$ac_ext <<_ACEOF
17276 /* end confdefs.h.  */
17277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17278    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17279 #define $ac_func innocuous_$ac_func
17280
17281 /* System header to define __stub macros and hopefully few prototypes,
17282     which can conflict with char $ac_func (); below.
17283     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17284     <limits.h> exists even on freestanding compilers.  */
17285
17286 #ifdef __STDC__
17287 # include <limits.h>
17288 #else
17289 # include <assert.h>
17290 #endif
17291
17292 #undef $ac_func
17293
17294 /* Override any GCC internal prototype to avoid an error.
17295    Use char because int might match the return type of a GCC
17296    builtin and then its argument prototype would still apply.  */
17297 #ifdef __cplusplus
17298 extern "C"
17299 #endif
17300 char $ac_func ();
17301 /* The GNU C library defines this for functions which it implements
17302     to always fail with ENOSYS.  Some functions are actually named
17303     something starting with __ and the normal name is an alias.  */
17304 #if defined __stub_$ac_func || defined __stub___$ac_func
17305 choke me
17306 #endif
17307
17308 int
17309 main ()
17310 {
17311 return $ac_func ();
17312   ;
17313   return 0;
17314 }
17315 _ACEOF
17316 rm -f conftest.$ac_objext conftest$ac_exeext
17317 if { (ac_try="$ac_link"
17318 case "(($ac_try" in
17319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320   *) ac_try_echo=$ac_try;;
17321 esac
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323   (eval "$ac_link") 2>conftest.er1
17324   ac_status=$?
17325   grep -v '^ *+' conftest.er1 >conftest.err
17326   rm -f conftest.er1
17327   cat conftest.err >&5
17328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329   (exit $ac_status); } &&
17330          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17331   { (case "(($ac_try" in
17332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333   *) ac_try_echo=$ac_try;;
17334 esac
17335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336   (eval "$ac_try") 2>&5
17337   ac_status=$?
17338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339   (exit $ac_status); }; } &&
17340          { ac_try='test -s conftest$ac_exeext'
17341   { (case "(($ac_try" in
17342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343   *) ac_try_echo=$ac_try;;
17344 esac
17345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17346   (eval "$ac_try") 2>&5
17347   ac_status=$?
17348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349   (exit $ac_status); }; }; then
17350   eval "$as_ac_var=yes"
17351 else
17352   echo "$as_me: failed program was:" >&5
17353 sed 's/^/| /' conftest.$ac_ext >&5
17354
17355         eval "$as_ac_var=no"
17356 fi
17357
17358 rm -f core conftest.err conftest.$ac_objext \
17359       conftest$ac_exeext conftest.$ac_ext
17360 fi
17361 ac_res=`eval echo '${'$as_ac_var'}'`
17362                { echo "$as_me:$LINENO: result: $ac_res" >&5
17363 echo "${ECHO_T}$ac_res" >&6; }
17364 if test `eval echo '${'$as_ac_var'}'` = yes; then
17365   cat >>confdefs.h <<_ACEOF
17366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17367 _ACEOF
17368
17369 fi
17370 done
17371
17372
17373
17374
17375
17376
17377 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17378 do
17379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17380 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17382 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17383   echo $ECHO_N "(cached) $ECHO_C" >&6
17384 else
17385   cat >conftest.$ac_ext <<_ACEOF
17386 /* confdefs.h.  */
17387 _ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h.  */
17391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17392    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17393 #define $ac_func innocuous_$ac_func
17394
17395 /* System header to define __stub macros and hopefully few prototypes,
17396     which can conflict with char $ac_func (); below.
17397     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17398     <limits.h> exists even on freestanding compilers.  */
17399
17400 #ifdef __STDC__
17401 # include <limits.h>
17402 #else
17403 # include <assert.h>
17404 #endif
17405
17406 #undef $ac_func
17407
17408 /* Override any GCC internal prototype to avoid an error.
17409    Use char because int might match the return type of a GCC
17410    builtin and then its argument prototype would still apply.  */
17411 #ifdef __cplusplus
17412 extern "C"
17413 #endif
17414 char $ac_func ();
17415 /* The GNU C library defines this for functions which it implements
17416     to always fail with ENOSYS.  Some functions are actually named
17417     something starting with __ and the normal name is an alias.  */
17418 #if defined __stub_$ac_func || defined __stub___$ac_func
17419 choke me
17420 #endif
17421
17422 int
17423 main ()
17424 {
17425 return $ac_func ();
17426   ;
17427   return 0;
17428 }
17429 _ACEOF
17430 rm -f conftest.$ac_objext conftest$ac_exeext
17431 if { (ac_try="$ac_link"
17432 case "(($ac_try" in
17433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17434   *) ac_try_echo=$ac_try;;
17435 esac
17436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17437   (eval "$ac_link") 2>conftest.er1
17438   ac_status=$?
17439   grep -v '^ *+' conftest.er1 >conftest.err
17440   rm -f conftest.er1
17441   cat conftest.err >&5
17442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443   (exit $ac_status); } &&
17444          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17445   { (case "(($ac_try" in
17446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447   *) ac_try_echo=$ac_try;;
17448 esac
17449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17450   (eval "$ac_try") 2>&5
17451   ac_status=$?
17452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453   (exit $ac_status); }; } &&
17454          { ac_try='test -s conftest$ac_exeext'
17455   { (case "(($ac_try" in
17456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17457   *) ac_try_echo=$ac_try;;
17458 esac
17459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17460   (eval "$ac_try") 2>&5
17461   ac_status=$?
17462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463   (exit $ac_status); }; }; then
17464   eval "$as_ac_var=yes"
17465 else
17466   echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17468
17469         eval "$as_ac_var=no"
17470 fi
17471
17472 rm -f core conftest.err conftest.$ac_objext \
17473       conftest$ac_exeext conftest.$ac_ext
17474 fi
17475 ac_res=`eval echo '${'$as_ac_var'}'`
17476                { echo "$as_me:$LINENO: result: $ac_res" >&5
17477 echo "${ECHO_T}$ac_res" >&6; }
17478 if test `eval echo '${'$as_ac_var'}'` = yes; then
17479   cat >>confdefs.h <<_ACEOF
17480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17481 _ACEOF
17482
17483 fi
17484 done
17485
17486
17487
17488
17489 for ac_func in isatty mkdtemp mkstemp
17490 do
17491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17492 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17495   echo $ECHO_N "(cached) $ECHO_C" >&6
17496 else
17497   cat >conftest.$ac_ext <<_ACEOF
17498 /* confdefs.h.  */
17499 _ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h.  */
17503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17505 #define $ac_func innocuous_$ac_func
17506
17507 /* System header to define __stub macros and hopefully few prototypes,
17508     which can conflict with char $ac_func (); below.
17509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17510     <limits.h> exists even on freestanding compilers.  */
17511
17512 #ifdef __STDC__
17513 # include <limits.h>
17514 #else
17515 # include <assert.h>
17516 #endif
17517
17518 #undef $ac_func
17519
17520 /* Override any GCC internal prototype to avoid an error.
17521    Use char because int might match the return type of a GCC
17522    builtin and then its argument prototype would still apply.  */
17523 #ifdef __cplusplus
17524 extern "C"
17525 #endif
17526 char $ac_func ();
17527 /* The GNU C library defines this for functions which it implements
17528     to always fail with ENOSYS.  Some functions are actually named
17529     something starting with __ and the normal name is an alias.  */
17530 #if defined __stub_$ac_func || defined __stub___$ac_func
17531 choke me
17532 #endif
17533
17534 int
17535 main ()
17536 {
17537 return $ac_func ();
17538   ;
17539   return 0;
17540 }
17541 _ACEOF
17542 rm -f conftest.$ac_objext conftest$ac_exeext
17543 if { (ac_try="$ac_link"
17544 case "(($ac_try" in
17545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17546   *) ac_try_echo=$ac_try;;
17547 esac
17548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17549   (eval "$ac_link") 2>conftest.er1
17550   ac_status=$?
17551   grep -v '^ *+' conftest.er1 >conftest.err
17552   rm -f conftest.er1
17553   cat conftest.err >&5
17554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555   (exit $ac_status); } &&
17556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17557   { (case "(($ac_try" in
17558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17559   *) ac_try_echo=$ac_try;;
17560 esac
17561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17562   (eval "$ac_try") 2>&5
17563   ac_status=$?
17564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565   (exit $ac_status); }; } &&
17566          { ac_try='test -s conftest$ac_exeext'
17567   { (case "(($ac_try" in
17568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17569   *) ac_try_echo=$ac_try;;
17570 esac
17571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17572   (eval "$ac_try") 2>&5
17573   ac_status=$?
17574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575   (exit $ac_status); }; }; then
17576   eval "$as_ac_var=yes"
17577 else
17578   echo "$as_me: failed program was:" >&5
17579 sed 's/^/| /' conftest.$ac_ext >&5
17580
17581         eval "$as_ac_var=no"
17582 fi
17583
17584 rm -f core conftest.err conftest.$ac_objext \
17585       conftest$ac_exeext conftest.$ac_ext
17586 fi
17587 ac_res=`eval echo '${'$as_ac_var'}'`
17588                { echo "$as_me:$LINENO: result: $ac_res" >&5
17589 echo "${ECHO_T}$ac_res" >&6; }
17590 if test `eval echo '${'$as_ac_var'}'` = yes; then
17591   cat >>confdefs.h <<_ACEOF
17592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17593 _ACEOF
17594
17595 fi
17596 done
17597
17598
17599
17600
17601
17602
17603
17604 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17605 do
17606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17610   echo $ECHO_N "(cached) $ECHO_C" >&6
17611 else
17612   cat >conftest.$ac_ext <<_ACEOF
17613 /* confdefs.h.  */
17614 _ACEOF
17615 cat confdefs.h >>conftest.$ac_ext
17616 cat >>conftest.$ac_ext <<_ACEOF
17617 /* end confdefs.h.  */
17618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17619    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17620 #define $ac_func innocuous_$ac_func
17621
17622 /* System header to define __stub macros and hopefully few prototypes,
17623     which can conflict with char $ac_func (); below.
17624     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17625     <limits.h> exists even on freestanding compilers.  */
17626
17627 #ifdef __STDC__
17628 # include <limits.h>
17629 #else
17630 # include <assert.h>
17631 #endif
17632
17633 #undef $ac_func
17634
17635 /* Override any GCC internal prototype to avoid an error.
17636    Use char because int might match the return type of a GCC
17637    builtin and then its argument prototype would still apply.  */
17638 #ifdef __cplusplus
17639 extern "C"
17640 #endif
17641 char $ac_func ();
17642 /* The GNU C library defines this for functions which it implements
17643     to always fail with ENOSYS.  Some functions are actually named
17644     something starting with __ and the normal name is an alias.  */
17645 #if defined __stub_$ac_func || defined __stub___$ac_func
17646 choke me
17647 #endif
17648
17649 int
17650 main ()
17651 {
17652 return $ac_func ();
17653   ;
17654   return 0;
17655 }
17656 _ACEOF
17657 rm -f conftest.$ac_objext conftest$ac_exeext
17658 if { (ac_try="$ac_link"
17659 case "(($ac_try" in
17660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661   *) ac_try_echo=$ac_try;;
17662 esac
17663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17664   (eval "$ac_link") 2>conftest.er1
17665   ac_status=$?
17666   grep -v '^ *+' conftest.er1 >conftest.err
17667   rm -f conftest.er1
17668   cat conftest.err >&5
17669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670   (exit $ac_status); } &&
17671          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17672   { (case "(($ac_try" in
17673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674   *) ac_try_echo=$ac_try;;
17675 esac
17676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677   (eval "$ac_try") 2>&5
17678   ac_status=$?
17679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680   (exit $ac_status); }; } &&
17681          { ac_try='test -s conftest$ac_exeext'
17682   { (case "(($ac_try" in
17683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17684   *) ac_try_echo=$ac_try;;
17685 esac
17686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17687   (eval "$ac_try") 2>&5
17688   ac_status=$?
17689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690   (exit $ac_status); }; }; then
17691   eval "$as_ac_var=yes"
17692 else
17693   echo "$as_me: failed program was:" >&5
17694 sed 's/^/| /' conftest.$ac_ext >&5
17695
17696         eval "$as_ac_var=no"
17697 fi
17698
17699 rm -f core conftest.err conftest.$ac_objext \
17700       conftest$ac_exeext conftest.$ac_ext
17701 fi
17702 ac_res=`eval echo '${'$as_ac_var'}'`
17703                { echo "$as_me:$LINENO: result: $ac_res" >&5
17704 echo "${ECHO_T}$ac_res" >&6; }
17705 if test `eval echo '${'$as_ac_var'}'` = yes; then
17706   cat >>confdefs.h <<_ACEOF
17707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17708 _ACEOF
17709
17710 fi
17711 done
17712
17713
17714
17715
17716 for ac_func in strerror strerror_r setenv
17717 do
17718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17719 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17721 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17722   echo $ECHO_N "(cached) $ECHO_C" >&6
17723 else
17724   cat >conftest.$ac_ext <<_ACEOF
17725 /* confdefs.h.  */
17726 _ACEOF
17727 cat confdefs.h >>conftest.$ac_ext
17728 cat >>conftest.$ac_ext <<_ACEOF
17729 /* end confdefs.h.  */
17730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17731    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17732 #define $ac_func innocuous_$ac_func
17733
17734 /* System header to define __stub macros and hopefully few prototypes,
17735     which can conflict with char $ac_func (); below.
17736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17737     <limits.h> exists even on freestanding compilers.  */
17738
17739 #ifdef __STDC__
17740 # include <limits.h>
17741 #else
17742 # include <assert.h>
17743 #endif
17744
17745 #undef $ac_func
17746
17747 /* Override any GCC internal prototype to avoid an error.
17748    Use char because int might match the return type of a GCC
17749    builtin and then its argument prototype would still apply.  */
17750 #ifdef __cplusplus
17751 extern "C"
17752 #endif
17753 char $ac_func ();
17754 /* The GNU C library defines this for functions which it implements
17755     to always fail with ENOSYS.  Some functions are actually named
17756     something starting with __ and the normal name is an alias.  */
17757 #if defined __stub_$ac_func || defined __stub___$ac_func
17758 choke me
17759 #endif
17760
17761 int
17762 main ()
17763 {
17764 return $ac_func ();
17765   ;
17766   return 0;
17767 }
17768 _ACEOF
17769 rm -f conftest.$ac_objext conftest$ac_exeext
17770 if { (ac_try="$ac_link"
17771 case "(($ac_try" in
17772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17773   *) ac_try_echo=$ac_try;;
17774 esac
17775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17776   (eval "$ac_link") 2>conftest.er1
17777   ac_status=$?
17778   grep -v '^ *+' conftest.er1 >conftest.err
17779   rm -f conftest.er1
17780   cat conftest.err >&5
17781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782   (exit $ac_status); } &&
17783          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17784   { (case "(($ac_try" in
17785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17786   *) ac_try_echo=$ac_try;;
17787 esac
17788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17789   (eval "$ac_try") 2>&5
17790   ac_status=$?
17791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792   (exit $ac_status); }; } &&
17793          { ac_try='test -s conftest$ac_exeext'
17794   { (case "(($ac_try" in
17795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17796   *) ac_try_echo=$ac_try;;
17797 esac
17798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17799   (eval "$ac_try") 2>&5
17800   ac_status=$?
17801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802   (exit $ac_status); }; }; then
17803   eval "$as_ac_var=yes"
17804 else
17805   echo "$as_me: failed program was:" >&5
17806 sed 's/^/| /' conftest.$ac_ext >&5
17807
17808         eval "$as_ac_var=no"
17809 fi
17810
17811 rm -f core conftest.err conftest.$ac_objext \
17812       conftest$ac_exeext conftest.$ac_ext
17813 fi
17814 ac_res=`eval echo '${'$as_ac_var'}'`
17815                { echo "$as_me:$LINENO: result: $ac_res" >&5
17816 echo "${ECHO_T}$ac_res" >&6; }
17817 if test `eval echo '${'$as_ac_var'}'` = yes; then
17818   cat >>confdefs.h <<_ACEOF
17819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17820 _ACEOF
17821
17822 fi
17823 done
17824
17825
17826
17827
17828
17829 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17830 do
17831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17832 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17835   echo $ECHO_N "(cached) $ECHO_C" >&6
17836 else
17837   cat >conftest.$ac_ext <<_ACEOF
17838 /* confdefs.h.  */
17839 _ACEOF
17840 cat confdefs.h >>conftest.$ac_ext
17841 cat >>conftest.$ac_ext <<_ACEOF
17842 /* end confdefs.h.  */
17843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17844    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17845 #define $ac_func innocuous_$ac_func
17846
17847 /* System header to define __stub macros and hopefully few prototypes,
17848     which can conflict with char $ac_func (); below.
17849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17850     <limits.h> exists even on freestanding compilers.  */
17851
17852 #ifdef __STDC__
17853 # include <limits.h>
17854 #else
17855 # include <assert.h>
17856 #endif
17857
17858 #undef $ac_func
17859
17860 /* Override any GCC internal prototype to avoid an error.
17861    Use char because int might match the return type of a GCC
17862    builtin and then its argument prototype would still apply.  */
17863 #ifdef __cplusplus
17864 extern "C"
17865 #endif
17866 char $ac_func ();
17867 /* The GNU C library defines this for functions which it implements
17868     to always fail with ENOSYS.  Some functions are actually named
17869     something starting with __ and the normal name is an alias.  */
17870 #if defined __stub_$ac_func || defined __stub___$ac_func
17871 choke me
17872 #endif
17873
17874 int
17875 main ()
17876 {
17877 return $ac_func ();
17878   ;
17879   return 0;
17880 }
17881 _ACEOF
17882 rm -f conftest.$ac_objext conftest$ac_exeext
17883 if { (ac_try="$ac_link"
17884 case "(($ac_try" in
17885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886   *) ac_try_echo=$ac_try;;
17887 esac
17888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17889   (eval "$ac_link") 2>conftest.er1
17890   ac_status=$?
17891   grep -v '^ *+' conftest.er1 >conftest.err
17892   rm -f conftest.er1
17893   cat conftest.err >&5
17894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895   (exit $ac_status); } &&
17896          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17897   { (case "(($ac_try" in
17898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17899   *) ac_try_echo=$ac_try;;
17900 esac
17901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17902   (eval "$ac_try") 2>&5
17903   ac_status=$?
17904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905   (exit $ac_status); }; } &&
17906          { ac_try='test -s conftest$ac_exeext'
17907   { (case "(($ac_try" in
17908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17909   *) ac_try_echo=$ac_try;;
17910 esac
17911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17912   (eval "$ac_try") 2>&5
17913   ac_status=$?
17914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915   (exit $ac_status); }; }; then
17916   eval "$as_ac_var=yes"
17917 else
17918   echo "$as_me: failed program was:" >&5
17919 sed 's/^/| /' conftest.$ac_ext >&5
17920
17921         eval "$as_ac_var=no"
17922 fi
17923
17924 rm -f core conftest.err conftest.$ac_objext \
17925       conftest$ac_exeext conftest.$ac_ext
17926 fi
17927 ac_res=`eval echo '${'$as_ac_var'}'`
17928                { echo "$as_me:$LINENO: result: $ac_res" >&5
17929 echo "${ECHO_T}$ac_res" >&6; }
17930 if test `eval echo '${'$as_ac_var'}'` = yes; then
17931   cat >>confdefs.h <<_ACEOF
17932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17933 _ACEOF
17934
17935 fi
17936 done
17937
17938
17939
17940
17941
17942
17943 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17944 do
17945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17946 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17948 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17949   echo $ECHO_N "(cached) $ECHO_C" >&6
17950 else
17951   cat >conftest.$ac_ext <<_ACEOF
17952 /* confdefs.h.  */
17953 _ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h.  */
17957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17958    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17959 #define $ac_func innocuous_$ac_func
17960
17961 /* System header to define __stub macros and hopefully few prototypes,
17962     which can conflict with char $ac_func (); below.
17963     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17964     <limits.h> exists even on freestanding compilers.  */
17965
17966 #ifdef __STDC__
17967 # include <limits.h>
17968 #else
17969 # include <assert.h>
17970 #endif
17971
17972 #undef $ac_func
17973
17974 /* Override any GCC internal prototype to avoid an error.
17975    Use char because int might match the return type of a GCC
17976    builtin and then its argument prototype would still apply.  */
17977 #ifdef __cplusplus
17978 extern "C"
17979 #endif
17980 char $ac_func ();
17981 /* The GNU C library defines this for functions which it implements
17982     to always fail with ENOSYS.  Some functions are actually named
17983     something starting with __ and the normal name is an alias.  */
17984 #if defined __stub_$ac_func || defined __stub___$ac_func
17985 choke me
17986 #endif
17987
17988 int
17989 main ()
17990 {
17991 return $ac_func ();
17992   ;
17993   return 0;
17994 }
17995 _ACEOF
17996 rm -f conftest.$ac_objext conftest$ac_exeext
17997 if { (ac_try="$ac_link"
17998 case "(($ac_try" in
17999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000   *) ac_try_echo=$ac_try;;
18001 esac
18002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003   (eval "$ac_link") 2>conftest.er1
18004   ac_status=$?
18005   grep -v '^ *+' conftest.er1 >conftest.err
18006   rm -f conftest.er1
18007   cat conftest.err >&5
18008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009   (exit $ac_status); } &&
18010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18011   { (case "(($ac_try" in
18012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013   *) ac_try_echo=$ac_try;;
18014 esac
18015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016   (eval "$ac_try") 2>&5
18017   ac_status=$?
18018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019   (exit $ac_status); }; } &&
18020          { ac_try='test -s conftest$ac_exeext'
18021   { (case "(($ac_try" in
18022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023   *) ac_try_echo=$ac_try;;
18024 esac
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026   (eval "$ac_try") 2>&5
18027   ac_status=$?
18028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029   (exit $ac_status); }; }; then
18030   eval "$as_ac_var=yes"
18031 else
18032   echo "$as_me: failed program was:" >&5
18033 sed 's/^/| /' conftest.$ac_ext >&5
18034
18035         eval "$as_ac_var=no"
18036 fi
18037
18038 rm -f core conftest.err conftest.$ac_objext \
18039       conftest$ac_exeext conftest.$ac_ext
18040 fi
18041 ac_res=`eval echo '${'$as_ac_var'}'`
18042                { echo "$as_me:$LINENO: result: $ac_res" >&5
18043 echo "${ECHO_T}$ac_res" >&6; }
18044 if test `eval echo '${'$as_ac_var'}'` = yes; then
18045   cat >>confdefs.h <<_ACEOF
18046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18047 _ACEOF
18048
18049 fi
18050 done
18051
18052 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18053 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18054 if test "${llvm_cv_c_printf_a+set}" = set; then
18055   echo $ECHO_N "(cached) $ECHO_C" >&6
18056 else
18057   ac_ext=c
18058 ac_cpp='$CPP $CPPFLAGS'
18059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18062
18063  if test "$cross_compiling" = yes; then
18064   llvmac_cv_c_printf_a=no
18065 else
18066   cat >conftest.$ac_ext <<_ACEOF
18067
18068   /* confdefs.h.  */
18069 _ACEOF
18070 cat confdefs.h >>conftest.$ac_ext
18071 cat >>conftest.$ac_ext <<_ACEOF
18072 /* end confdefs.h.  */
18073
18074 #include <stdio.h>
18075 #include <stdlib.h>
18076
18077 int
18078 main ()
18079 {
18080
18081 volatile double A, B;
18082 char Buffer[100];
18083 A = 1;
18084 A /= 10.0;
18085 sprintf(Buffer, "%a", A);
18086 B = atof(Buffer);
18087 if (A != B)
18088   return (1);
18089 if (A != 0x1.999999999999ap-4)
18090   return (1);
18091 return (0);
18092   ;
18093   return 0;
18094 }
18095 _ACEOF
18096 rm -f conftest$ac_exeext
18097 if { (ac_try="$ac_link"
18098 case "(($ac_try" in
18099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18100   *) ac_try_echo=$ac_try;;
18101 esac
18102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18103   (eval "$ac_link") 2>&5
18104   ac_status=$?
18105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18107   { (case "(($ac_try" in
18108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109   *) ac_try_echo=$ac_try;;
18110 esac
18111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18112   (eval "$ac_try") 2>&5
18113   ac_status=$?
18114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115   (exit $ac_status); }; }; then
18116   llvm_cv_c_printf_a=yes
18117 else
18118   echo "$as_me: program exited with status $ac_status" >&5
18119 echo "$as_me: failed program was:" >&5
18120 sed 's/^/| /' conftest.$ac_ext >&5
18121
18122 ( exit $ac_status )
18123 llvmac_cv_c_printf_a=no
18124 fi
18125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18126 fi
18127
18128
18129  ac_ext=c
18130 ac_cpp='$CPP $CPPFLAGS'
18131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18134
18135 fi
18136 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18137 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18138  if test "$llvm_cv_c_printf_a" = "yes"; then
18139
18140 cat >>confdefs.h <<\_ACEOF
18141 #define HAVE_PRINTF_A 1
18142 _ACEOF
18143
18144  fi
18145
18146
18147 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18148 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18149 if test "${ac_cv_func_rand48+set}" = set; then
18150   echo $ECHO_N "(cached) $ECHO_C" >&6
18151 else
18152   ac_ext=cpp
18153 ac_cpp='$CXXCPP $CPPFLAGS'
18154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18157
18158    cat >conftest.$ac_ext <<_ACEOF
18159 /* confdefs.h.  */
18160 _ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h.  */
18164 #include <stdlib.h>
18165 int
18166 main ()
18167 {
18168 srand48(0);lrand48();drand48();
18169   ;
18170   return 0;
18171 }
18172 _ACEOF
18173 rm -f conftest.$ac_objext
18174 if { (ac_try="$ac_compile"
18175 case "(($ac_try" in
18176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18177   *) ac_try_echo=$ac_try;;
18178 esac
18179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18180   (eval "$ac_compile") 2>conftest.er1
18181   ac_status=$?
18182   grep -v '^ *+' conftest.er1 >conftest.err
18183   rm -f conftest.er1
18184   cat conftest.err >&5
18185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186   (exit $ac_status); } &&
18187          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18188   { (case "(($ac_try" in
18189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18190   *) ac_try_echo=$ac_try;;
18191 esac
18192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18193   (eval "$ac_try") 2>&5
18194   ac_status=$?
18195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196   (exit $ac_status); }; } &&
18197          { ac_try='test -s conftest.$ac_objext'
18198   { (case "(($ac_try" in
18199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18200   *) ac_try_echo=$ac_try;;
18201 esac
18202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18203   (eval "$ac_try") 2>&5
18204   ac_status=$?
18205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206   (exit $ac_status); }; }; then
18207   ac_cv_func_rand48=yes
18208 else
18209   echo "$as_me: failed program was:" >&5
18210 sed 's/^/| /' conftest.$ac_ext >&5
18211
18212         ac_cv_func_rand48=no
18213 fi
18214
18215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18216   ac_ext=c
18217 ac_cpp='$CPP $CPPFLAGS'
18218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18221
18222 fi
18223 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18224 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18225
18226 if test "$ac_cv_func_rand48" = "yes" ; then
18227
18228 cat >>confdefs.h <<\_ACEOF
18229 #define HAVE_RAND48 1
18230 _ACEOF
18231
18232 fi
18233
18234
18235 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18236 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18237 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18238   echo $ECHO_N "(cached) $ECHO_C" >&6
18239 else
18240   cat >conftest.$ac_ext <<_ACEOF
18241 /* confdefs.h.  */
18242 _ACEOF
18243 cat confdefs.h >>conftest.$ac_ext
18244 cat >>conftest.$ac_ext <<_ACEOF
18245 /* end confdefs.h.  */
18246 $ac_includes_default
18247 int
18248 main ()
18249 {
18250 #ifndef strerror_s
18251   char *p = (char *) strerror_s;
18252   return !p;
18253 #endif
18254
18255   ;
18256   return 0;
18257 }
18258 _ACEOF
18259 rm -f conftest.$ac_objext
18260 if { (ac_try="$ac_compile"
18261 case "(($ac_try" in
18262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18263   *) ac_try_echo=$ac_try;;
18264 esac
18265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18266   (eval "$ac_compile") 2>conftest.er1
18267   ac_status=$?
18268   grep -v '^ *+' conftest.er1 >conftest.err
18269   rm -f conftest.er1
18270   cat conftest.err >&5
18271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272   (exit $ac_status); } &&
18273          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18274   { (case "(($ac_try" in
18275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276   *) ac_try_echo=$ac_try;;
18277 esac
18278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279   (eval "$ac_try") 2>&5
18280   ac_status=$?
18281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282   (exit $ac_status); }; } &&
18283          { ac_try='test -s conftest.$ac_objext'
18284   { (case "(($ac_try" in
18285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18286   *) ac_try_echo=$ac_try;;
18287 esac
18288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18289   (eval "$ac_try") 2>&5
18290   ac_status=$?
18291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292   (exit $ac_status); }; }; then
18293   ac_cv_have_decl_strerror_s=yes
18294 else
18295   echo "$as_me: failed program was:" >&5
18296 sed 's/^/| /' conftest.$ac_ext >&5
18297
18298         ac_cv_have_decl_strerror_s=no
18299 fi
18300
18301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18302 fi
18303 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18304 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18305 if test $ac_cv_have_decl_strerror_s = yes; then
18306
18307 cat >>confdefs.h <<_ACEOF
18308 #define HAVE_DECL_STRERROR_S 1
18309 _ACEOF
18310
18311
18312 else
18313   cat >>confdefs.h <<_ACEOF
18314 #define HAVE_DECL_STRERROR_S 0
18315 _ACEOF
18316
18317
18318 fi
18319
18320
18321
18322 if test "$llvm_cv_os_type" = "MingW" ; then
18323   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18324 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18325 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18326   echo $ECHO_N "(cached) $ECHO_C" >&6
18327 else
18328   ac_check_lib_save_LIBS=$LIBS
18329 LIBS="-lgcc  $LIBS"
18330 cat >conftest.$ac_ext <<_ACEOF
18331 /* confdefs.h.  */
18332 _ACEOF
18333 cat confdefs.h >>conftest.$ac_ext
18334 cat >>conftest.$ac_ext <<_ACEOF
18335 /* end confdefs.h.  */
18336
18337 /* Override any GCC internal prototype to avoid an error.
18338    Use char because int might match the return type of a GCC
18339    builtin and then its argument prototype would still apply.  */
18340 #ifdef __cplusplus
18341 extern "C"
18342 #endif
18343 char _alloca ();
18344 int
18345 main ()
18346 {
18347 return _alloca ();
18348   ;
18349   return 0;
18350 }
18351 _ACEOF
18352 rm -f conftest.$ac_objext conftest$ac_exeext
18353 if { (ac_try="$ac_link"
18354 case "(($ac_try" in
18355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356   *) ac_try_echo=$ac_try;;
18357 esac
18358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18359   (eval "$ac_link") 2>conftest.er1
18360   ac_status=$?
18361   grep -v '^ *+' conftest.er1 >conftest.err
18362   rm -f conftest.er1
18363   cat conftest.err >&5
18364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365   (exit $ac_status); } &&
18366          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18367   { (case "(($ac_try" in
18368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369   *) ac_try_echo=$ac_try;;
18370 esac
18371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372   (eval "$ac_try") 2>&5
18373   ac_status=$?
18374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375   (exit $ac_status); }; } &&
18376          { ac_try='test -s conftest$ac_exeext'
18377   { (case "(($ac_try" in
18378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379   *) ac_try_echo=$ac_try;;
18380 esac
18381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382   (eval "$ac_try") 2>&5
18383   ac_status=$?
18384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385   (exit $ac_status); }; }; then
18386   ac_cv_lib_gcc__alloca=yes
18387 else
18388   echo "$as_me: failed program was:" >&5
18389 sed 's/^/| /' conftest.$ac_ext >&5
18390
18391         ac_cv_lib_gcc__alloca=no
18392 fi
18393
18394 rm -f core conftest.err conftest.$ac_objext \
18395       conftest$ac_exeext conftest.$ac_ext
18396 LIBS=$ac_check_lib_save_LIBS
18397 fi
18398 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18399 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18400 if test $ac_cv_lib_gcc__alloca = yes; then
18401
18402 cat >>confdefs.h <<\_ACEOF
18403 #define HAVE__ALLOCA 1
18404 _ACEOF
18405
18406 fi
18407
18408   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18409 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18410 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18411   echo $ECHO_N "(cached) $ECHO_C" >&6
18412 else
18413   ac_check_lib_save_LIBS=$LIBS
18414 LIBS="-lgcc  $LIBS"
18415 cat >conftest.$ac_ext <<_ACEOF
18416 /* confdefs.h.  */
18417 _ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h.  */
18421
18422 /* Override any GCC internal prototype to avoid an error.
18423    Use char because int might match the return type of a GCC
18424    builtin and then its argument prototype would still apply.  */
18425 #ifdef __cplusplus
18426 extern "C"
18427 #endif
18428 char __alloca ();
18429 int
18430 main ()
18431 {
18432 return __alloca ();
18433   ;
18434   return 0;
18435 }
18436 _ACEOF
18437 rm -f conftest.$ac_objext conftest$ac_exeext
18438 if { (ac_try="$ac_link"
18439 case "(($ac_try" in
18440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18441   *) ac_try_echo=$ac_try;;
18442 esac
18443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18444   (eval "$ac_link") 2>conftest.er1
18445   ac_status=$?
18446   grep -v '^ *+' conftest.er1 >conftest.err
18447   rm -f conftest.er1
18448   cat conftest.err >&5
18449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450   (exit $ac_status); } &&
18451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18452   { (case "(($ac_try" in
18453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454   *) ac_try_echo=$ac_try;;
18455 esac
18456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457   (eval "$ac_try") 2>&5
18458   ac_status=$?
18459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460   (exit $ac_status); }; } &&
18461          { ac_try='test -s conftest$ac_exeext'
18462   { (case "(($ac_try" in
18463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18464   *) ac_try_echo=$ac_try;;
18465 esac
18466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18467   (eval "$ac_try") 2>&5
18468   ac_status=$?
18469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470   (exit $ac_status); }; }; then
18471   ac_cv_lib_gcc___alloca=yes
18472 else
18473   echo "$as_me: failed program was:" >&5
18474 sed 's/^/| /' conftest.$ac_ext >&5
18475
18476         ac_cv_lib_gcc___alloca=no
18477 fi
18478
18479 rm -f core conftest.err conftest.$ac_objext \
18480       conftest$ac_exeext conftest.$ac_ext
18481 LIBS=$ac_check_lib_save_LIBS
18482 fi
18483 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18484 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18485 if test $ac_cv_lib_gcc___alloca = yes; then
18486
18487 cat >>confdefs.h <<\_ACEOF
18488 #define HAVE___ALLOCA 1
18489 _ACEOF
18490
18491 fi
18492
18493   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18494 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18495 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18496   echo $ECHO_N "(cached) $ECHO_C" >&6
18497 else
18498   ac_check_lib_save_LIBS=$LIBS
18499 LIBS="-lgcc  $LIBS"
18500 cat >conftest.$ac_ext <<_ACEOF
18501 /* confdefs.h.  */
18502 _ACEOF
18503 cat confdefs.h >>conftest.$ac_ext
18504 cat >>conftest.$ac_ext <<_ACEOF
18505 /* end confdefs.h.  */
18506
18507 /* Override any GCC internal prototype to avoid an error.
18508    Use char because int might match the return type of a GCC
18509    builtin and then its argument prototype would still apply.  */
18510 #ifdef __cplusplus
18511 extern "C"
18512 #endif
18513 char __chkstk ();
18514 int
18515 main ()
18516 {
18517 return __chkstk ();
18518   ;
18519   return 0;
18520 }
18521 _ACEOF
18522 rm -f conftest.$ac_objext conftest$ac_exeext
18523 if { (ac_try="$ac_link"
18524 case "(($ac_try" in
18525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526   *) ac_try_echo=$ac_try;;
18527 esac
18528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529   (eval "$ac_link") 2>conftest.er1
18530   ac_status=$?
18531   grep -v '^ *+' conftest.er1 >conftest.err
18532   rm -f conftest.er1
18533   cat conftest.err >&5
18534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535   (exit $ac_status); } &&
18536          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18537   { (case "(($ac_try" in
18538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539   *) ac_try_echo=$ac_try;;
18540 esac
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542   (eval "$ac_try") 2>&5
18543   ac_status=$?
18544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545   (exit $ac_status); }; } &&
18546          { ac_try='test -s conftest$ac_exeext'
18547   { (case "(($ac_try" in
18548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18549   *) ac_try_echo=$ac_try;;
18550 esac
18551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18552   (eval "$ac_try") 2>&5
18553   ac_status=$?
18554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555   (exit $ac_status); }; }; then
18556   ac_cv_lib_gcc___chkstk=yes
18557 else
18558   echo "$as_me: failed program was:" >&5
18559 sed 's/^/| /' conftest.$ac_ext >&5
18560
18561         ac_cv_lib_gcc___chkstk=no
18562 fi
18563
18564 rm -f core conftest.err conftest.$ac_objext \
18565       conftest$ac_exeext conftest.$ac_ext
18566 LIBS=$ac_check_lib_save_LIBS
18567 fi
18568 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18569 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18570 if test $ac_cv_lib_gcc___chkstk = yes; then
18571
18572 cat >>confdefs.h <<\_ACEOF
18573 #define HAVE___CHKSTK 1
18574 _ACEOF
18575
18576 fi
18577
18578   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18579 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18580 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18581   echo $ECHO_N "(cached) $ECHO_C" >&6
18582 else
18583   ac_check_lib_save_LIBS=$LIBS
18584 LIBS="-lgcc  $LIBS"
18585 cat >conftest.$ac_ext <<_ACEOF
18586 /* confdefs.h.  */
18587 _ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h.  */
18591
18592 /* Override any GCC internal prototype to avoid an error.
18593    Use char because int might match the return type of a GCC
18594    builtin and then its argument prototype would still apply.  */
18595 #ifdef __cplusplus
18596 extern "C"
18597 #endif
18598 char ___chkstk ();
18599 int
18600 main ()
18601 {
18602 return ___chkstk ();
18603   ;
18604   return 0;
18605 }
18606 _ACEOF
18607 rm -f conftest.$ac_objext conftest$ac_exeext
18608 if { (ac_try="$ac_link"
18609 case "(($ac_try" in
18610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18611   *) ac_try_echo=$ac_try;;
18612 esac
18613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18614   (eval "$ac_link") 2>conftest.er1
18615   ac_status=$?
18616   grep -v '^ *+' conftest.er1 >conftest.err
18617   rm -f conftest.er1
18618   cat conftest.err >&5
18619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620   (exit $ac_status); } &&
18621          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18622   { (case "(($ac_try" in
18623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624   *) ac_try_echo=$ac_try;;
18625 esac
18626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627   (eval "$ac_try") 2>&5
18628   ac_status=$?
18629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630   (exit $ac_status); }; } &&
18631          { ac_try='test -s conftest$ac_exeext'
18632   { (case "(($ac_try" in
18633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634   *) ac_try_echo=$ac_try;;
18635 esac
18636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18637   (eval "$ac_try") 2>&5
18638   ac_status=$?
18639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640   (exit $ac_status); }; }; then
18641   ac_cv_lib_gcc____chkstk=yes
18642 else
18643   echo "$as_me: failed program was:" >&5
18644 sed 's/^/| /' conftest.$ac_ext >&5
18645
18646         ac_cv_lib_gcc____chkstk=no
18647 fi
18648
18649 rm -f core conftest.err conftest.$ac_objext \
18650       conftest$ac_exeext conftest.$ac_ext
18651 LIBS=$ac_check_lib_save_LIBS
18652 fi
18653 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18654 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18655 if test $ac_cv_lib_gcc____chkstk = yes; then
18656
18657 cat >>confdefs.h <<\_ACEOF
18658 #define HAVE____CHKSTK 1
18659 _ACEOF
18660
18661 fi
18662
18663
18664   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18665 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18666 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18667   echo $ECHO_N "(cached) $ECHO_C" >&6
18668 else
18669   ac_check_lib_save_LIBS=$LIBS
18670 LIBS="-lgcc  $LIBS"
18671 cat >conftest.$ac_ext <<_ACEOF
18672 /* confdefs.h.  */
18673 _ACEOF
18674 cat confdefs.h >>conftest.$ac_ext
18675 cat >>conftest.$ac_ext <<_ACEOF
18676 /* end confdefs.h.  */
18677
18678 /* Override any GCC internal prototype to avoid an error.
18679    Use char because int might match the return type of a GCC
18680    builtin and then its argument prototype would still apply.  */
18681 #ifdef __cplusplus
18682 extern "C"
18683 #endif
18684 char __ashldi3 ();
18685 int
18686 main ()
18687 {
18688 return __ashldi3 ();
18689   ;
18690   return 0;
18691 }
18692 _ACEOF
18693 rm -f conftest.$ac_objext conftest$ac_exeext
18694 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
18701   ac_status=$?
18702   grep -v '^ *+' conftest.er1 >conftest.err
18703   rm -f conftest.er1
18704   cat conftest.err >&5
18705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706   (exit $ac_status); } &&
18707          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18708   { (case "(($ac_try" in
18709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18710   *) ac_try_echo=$ac_try;;
18711 esac
18712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18713   (eval "$ac_try") 2>&5
18714   ac_status=$?
18715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716   (exit $ac_status); }; } &&
18717          { ac_try='test -s conftest$ac_exeext'
18718   { (case "(($ac_try" in
18719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18720   *) ac_try_echo=$ac_try;;
18721 esac
18722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18723   (eval "$ac_try") 2>&5
18724   ac_status=$?
18725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726   (exit $ac_status); }; }; then
18727   ac_cv_lib_gcc___ashldi3=yes
18728 else
18729   echo "$as_me: failed program was:" >&5
18730 sed 's/^/| /' conftest.$ac_ext >&5
18731
18732         ac_cv_lib_gcc___ashldi3=no
18733 fi
18734
18735 rm -f core conftest.err conftest.$ac_objext \
18736       conftest$ac_exeext conftest.$ac_ext
18737 LIBS=$ac_check_lib_save_LIBS
18738 fi
18739 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18740 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18741 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18742
18743 cat >>confdefs.h <<\_ACEOF
18744 #define HAVE___ASHLDI3 1
18745 _ACEOF
18746
18747 fi
18748
18749   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18750 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18751 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18752   echo $ECHO_N "(cached) $ECHO_C" >&6
18753 else
18754   ac_check_lib_save_LIBS=$LIBS
18755 LIBS="-lgcc  $LIBS"
18756 cat >conftest.$ac_ext <<_ACEOF
18757 /* confdefs.h.  */
18758 _ACEOF
18759 cat confdefs.h >>conftest.$ac_ext
18760 cat >>conftest.$ac_ext <<_ACEOF
18761 /* end confdefs.h.  */
18762
18763 /* Override any GCC internal prototype to avoid an error.
18764    Use char because int might match the return type of a GCC
18765    builtin and then its argument prototype would still apply.  */
18766 #ifdef __cplusplus
18767 extern "C"
18768 #endif
18769 char __ashrdi3 ();
18770 int
18771 main ()
18772 {
18773 return __ashrdi3 ();
18774   ;
18775   return 0;
18776 }
18777 _ACEOF
18778 rm -f conftest.$ac_objext conftest$ac_exeext
18779 if { (ac_try="$ac_link"
18780 case "(($ac_try" in
18781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18782   *) ac_try_echo=$ac_try;;
18783 esac
18784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18785   (eval "$ac_link") 2>conftest.er1
18786   ac_status=$?
18787   grep -v '^ *+' conftest.er1 >conftest.err
18788   rm -f conftest.er1
18789   cat conftest.err >&5
18790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791   (exit $ac_status); } &&
18792          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18793   { (case "(($ac_try" in
18794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18795   *) ac_try_echo=$ac_try;;
18796 esac
18797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18798   (eval "$ac_try") 2>&5
18799   ac_status=$?
18800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801   (exit $ac_status); }; } &&
18802          { ac_try='test -s conftest$ac_exeext'
18803   { (case "(($ac_try" in
18804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805   *) ac_try_echo=$ac_try;;
18806 esac
18807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18808   (eval "$ac_try") 2>&5
18809   ac_status=$?
18810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811   (exit $ac_status); }; }; then
18812   ac_cv_lib_gcc___ashrdi3=yes
18813 else
18814   echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18816
18817         ac_cv_lib_gcc___ashrdi3=no
18818 fi
18819
18820 rm -f core conftest.err conftest.$ac_objext \
18821       conftest$ac_exeext conftest.$ac_ext
18822 LIBS=$ac_check_lib_save_LIBS
18823 fi
18824 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18825 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18826 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18827
18828 cat >>confdefs.h <<\_ACEOF
18829 #define HAVE___ASHRDI3 1
18830 _ACEOF
18831
18832 fi
18833
18834   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18835 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18836 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18837   echo $ECHO_N "(cached) $ECHO_C" >&6
18838 else
18839   ac_check_lib_save_LIBS=$LIBS
18840 LIBS="-lgcc  $LIBS"
18841 cat >conftest.$ac_ext <<_ACEOF
18842 /* confdefs.h.  */
18843 _ACEOF
18844 cat confdefs.h >>conftest.$ac_ext
18845 cat >>conftest.$ac_ext <<_ACEOF
18846 /* end confdefs.h.  */
18847
18848 /* Override any GCC internal prototype to avoid an error.
18849    Use char because int might match the return type of a GCC
18850    builtin and then its argument prototype would still apply.  */
18851 #ifdef __cplusplus
18852 extern "C"
18853 #endif
18854 char __divdi3 ();
18855 int
18856 main ()
18857 {
18858 return __divdi3 ();
18859   ;
18860   return 0;
18861 }
18862 _ACEOF
18863 rm -f conftest.$ac_objext conftest$ac_exeext
18864 if { (ac_try="$ac_link"
18865 case "(($ac_try" in
18866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18867   *) ac_try_echo=$ac_try;;
18868 esac
18869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18870   (eval "$ac_link") 2>conftest.er1
18871   ac_status=$?
18872   grep -v '^ *+' conftest.er1 >conftest.err
18873   rm -f conftest.er1
18874   cat conftest.err >&5
18875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876   (exit $ac_status); } &&
18877          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18878   { (case "(($ac_try" in
18879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18880   *) ac_try_echo=$ac_try;;
18881 esac
18882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18883   (eval "$ac_try") 2>&5
18884   ac_status=$?
18885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886   (exit $ac_status); }; } &&
18887          { ac_try='test -s conftest$ac_exeext'
18888   { (case "(($ac_try" in
18889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890   *) ac_try_echo=$ac_try;;
18891 esac
18892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18893   (eval "$ac_try") 2>&5
18894   ac_status=$?
18895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896   (exit $ac_status); }; }; then
18897   ac_cv_lib_gcc___divdi3=yes
18898 else
18899   echo "$as_me: failed program was:" >&5
18900 sed 's/^/| /' conftest.$ac_ext >&5
18901
18902         ac_cv_lib_gcc___divdi3=no
18903 fi
18904
18905 rm -f core conftest.err conftest.$ac_objext \
18906       conftest$ac_exeext conftest.$ac_ext
18907 LIBS=$ac_check_lib_save_LIBS
18908 fi
18909 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18910 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18911 if test $ac_cv_lib_gcc___divdi3 = yes; then
18912
18913 cat >>confdefs.h <<\_ACEOF
18914 #define HAVE___DIVDI3 1
18915 _ACEOF
18916
18917 fi
18918
18919   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18920 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18921 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18922   echo $ECHO_N "(cached) $ECHO_C" >&6
18923 else
18924   ac_check_lib_save_LIBS=$LIBS
18925 LIBS="-lgcc  $LIBS"
18926 cat >conftest.$ac_ext <<_ACEOF
18927 /* confdefs.h.  */
18928 _ACEOF
18929 cat confdefs.h >>conftest.$ac_ext
18930 cat >>conftest.$ac_ext <<_ACEOF
18931 /* end confdefs.h.  */
18932
18933 /* Override any GCC internal prototype to avoid an error.
18934    Use char because int might match the return type of a GCC
18935    builtin and then its argument prototype would still apply.  */
18936 #ifdef __cplusplus
18937 extern "C"
18938 #endif
18939 char __fixdfdi ();
18940 int
18941 main ()
18942 {
18943 return __fixdfdi ();
18944   ;
18945   return 0;
18946 }
18947 _ACEOF
18948 rm -f conftest.$ac_objext conftest$ac_exeext
18949 if { (ac_try="$ac_link"
18950 case "(($ac_try" in
18951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18952   *) ac_try_echo=$ac_try;;
18953 esac
18954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18955   (eval "$ac_link") 2>conftest.er1
18956   ac_status=$?
18957   grep -v '^ *+' conftest.er1 >conftest.err
18958   rm -f conftest.er1
18959   cat conftest.err >&5
18960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961   (exit $ac_status); } &&
18962          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18963   { (case "(($ac_try" in
18964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965   *) ac_try_echo=$ac_try;;
18966 esac
18967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968   (eval "$ac_try") 2>&5
18969   ac_status=$?
18970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971   (exit $ac_status); }; } &&
18972          { ac_try='test -s conftest$ac_exeext'
18973   { (case "(($ac_try" in
18974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18975   *) ac_try_echo=$ac_try;;
18976 esac
18977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18978   (eval "$ac_try") 2>&5
18979   ac_status=$?
18980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981   (exit $ac_status); }; }; then
18982   ac_cv_lib_gcc___fixdfdi=yes
18983 else
18984   echo "$as_me: failed program was:" >&5
18985 sed 's/^/| /' conftest.$ac_ext >&5
18986
18987         ac_cv_lib_gcc___fixdfdi=no
18988 fi
18989
18990 rm -f core conftest.err conftest.$ac_objext \
18991       conftest$ac_exeext conftest.$ac_ext
18992 LIBS=$ac_check_lib_save_LIBS
18993 fi
18994 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18995 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18996 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18997
18998 cat >>confdefs.h <<\_ACEOF
18999 #define HAVE___FIXDFDI 1
19000 _ACEOF
19001
19002 fi
19003
19004   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19005 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19006 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19007   echo $ECHO_N "(cached) $ECHO_C" >&6
19008 else
19009   ac_check_lib_save_LIBS=$LIBS
19010 LIBS="-lgcc  $LIBS"
19011 cat >conftest.$ac_ext <<_ACEOF
19012 /* confdefs.h.  */
19013 _ACEOF
19014 cat confdefs.h >>conftest.$ac_ext
19015 cat >>conftest.$ac_ext <<_ACEOF
19016 /* end confdefs.h.  */
19017
19018 /* Override any GCC internal prototype to avoid an error.
19019    Use char because int might match the return type of a GCC
19020    builtin and then its argument prototype would still apply.  */
19021 #ifdef __cplusplus
19022 extern "C"
19023 #endif
19024 char __fixsfdi ();
19025 int
19026 main ()
19027 {
19028 return __fixsfdi ();
19029   ;
19030   return 0;
19031 }
19032 _ACEOF
19033 rm -f conftest.$ac_objext conftest$ac_exeext
19034 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
19041   ac_status=$?
19042   grep -v '^ *+' conftest.er1 >conftest.err
19043   rm -f conftest.er1
19044   cat conftest.err >&5
19045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046   (exit $ac_status); } &&
19047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19048   { (case "(($ac_try" in
19049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050   *) ac_try_echo=$ac_try;;
19051 esac
19052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053   (eval "$ac_try") 2>&5
19054   ac_status=$?
19055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056   (exit $ac_status); }; } &&
19057          { ac_try='test -s conftest$ac_exeext'
19058   { (case "(($ac_try" in
19059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19060   *) ac_try_echo=$ac_try;;
19061 esac
19062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19063   (eval "$ac_try") 2>&5
19064   ac_status=$?
19065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066   (exit $ac_status); }; }; then
19067   ac_cv_lib_gcc___fixsfdi=yes
19068 else
19069   echo "$as_me: failed program was:" >&5
19070 sed 's/^/| /' conftest.$ac_ext >&5
19071
19072         ac_cv_lib_gcc___fixsfdi=no
19073 fi
19074
19075 rm -f core conftest.err conftest.$ac_objext \
19076       conftest$ac_exeext conftest.$ac_ext
19077 LIBS=$ac_check_lib_save_LIBS
19078 fi
19079 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19080 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19081 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19082
19083 cat >>confdefs.h <<\_ACEOF
19084 #define HAVE___FIXSFDI 1
19085 _ACEOF
19086
19087 fi
19088
19089   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19090 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19091 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19092   echo $ECHO_N "(cached) $ECHO_C" >&6
19093 else
19094   ac_check_lib_save_LIBS=$LIBS
19095 LIBS="-lgcc  $LIBS"
19096 cat >conftest.$ac_ext <<_ACEOF
19097 /* confdefs.h.  */
19098 _ACEOF
19099 cat confdefs.h >>conftest.$ac_ext
19100 cat >>conftest.$ac_ext <<_ACEOF
19101 /* end confdefs.h.  */
19102
19103 /* Override any GCC internal prototype to avoid an error.
19104    Use char because int might match the return type of a GCC
19105    builtin and then its argument prototype would still apply.  */
19106 #ifdef __cplusplus
19107 extern "C"
19108 #endif
19109 char __floatdidf ();
19110 int
19111 main ()
19112 {
19113 return __floatdidf ();
19114   ;
19115   return 0;
19116 }
19117 _ACEOF
19118 rm -f conftest.$ac_objext conftest$ac_exeext
19119 if { (ac_try="$ac_link"
19120 case "(($ac_try" in
19121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19122   *) ac_try_echo=$ac_try;;
19123 esac
19124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19125   (eval "$ac_link") 2>conftest.er1
19126   ac_status=$?
19127   grep -v '^ *+' conftest.er1 >conftest.err
19128   rm -f conftest.er1
19129   cat conftest.err >&5
19130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131   (exit $ac_status); } &&
19132          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19133   { (case "(($ac_try" in
19134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19135   *) ac_try_echo=$ac_try;;
19136 esac
19137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19138   (eval "$ac_try") 2>&5
19139   ac_status=$?
19140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141   (exit $ac_status); }; } &&
19142          { ac_try='test -s conftest$ac_exeext'
19143   { (case "(($ac_try" in
19144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19145   *) ac_try_echo=$ac_try;;
19146 esac
19147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19148   (eval "$ac_try") 2>&5
19149   ac_status=$?
19150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151   (exit $ac_status); }; }; then
19152   ac_cv_lib_gcc___floatdidf=yes
19153 else
19154   echo "$as_me: failed program was:" >&5
19155 sed 's/^/| /' conftest.$ac_ext >&5
19156
19157         ac_cv_lib_gcc___floatdidf=no
19158 fi
19159
19160 rm -f core conftest.err conftest.$ac_objext \
19161       conftest$ac_exeext conftest.$ac_ext
19162 LIBS=$ac_check_lib_save_LIBS
19163 fi
19164 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19165 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19166 if test $ac_cv_lib_gcc___floatdidf = yes; then
19167
19168 cat >>confdefs.h <<\_ACEOF
19169 #define HAVE___FLOATDIDF 1
19170 _ACEOF
19171
19172 fi
19173
19174   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19175 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19176 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19177   echo $ECHO_N "(cached) $ECHO_C" >&6
19178 else
19179   ac_check_lib_save_LIBS=$LIBS
19180 LIBS="-lgcc  $LIBS"
19181 cat >conftest.$ac_ext <<_ACEOF
19182 /* confdefs.h.  */
19183 _ACEOF
19184 cat confdefs.h >>conftest.$ac_ext
19185 cat >>conftest.$ac_ext <<_ACEOF
19186 /* end confdefs.h.  */
19187
19188 /* Override any GCC internal prototype to avoid an error.
19189    Use char because int might match the return type of a GCC
19190    builtin and then its argument prototype would still apply.  */
19191 #ifdef __cplusplus
19192 extern "C"
19193 #endif
19194 char __lshrdi3 ();
19195 int
19196 main ()
19197 {
19198 return __lshrdi3 ();
19199   ;
19200   return 0;
19201 }
19202 _ACEOF
19203 rm -f conftest.$ac_objext conftest$ac_exeext
19204 if { (ac_try="$ac_link"
19205 case "(($ac_try" in
19206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207   *) ac_try_echo=$ac_try;;
19208 esac
19209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210   (eval "$ac_link") 2>conftest.er1
19211   ac_status=$?
19212   grep -v '^ *+' conftest.er1 >conftest.err
19213   rm -f conftest.er1
19214   cat conftest.err >&5
19215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216   (exit $ac_status); } &&
19217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19218   { (case "(($ac_try" in
19219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19220   *) ac_try_echo=$ac_try;;
19221 esac
19222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19223   (eval "$ac_try") 2>&5
19224   ac_status=$?
19225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226   (exit $ac_status); }; } &&
19227          { ac_try='test -s conftest$ac_exeext'
19228   { (case "(($ac_try" in
19229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19230   *) ac_try_echo=$ac_try;;
19231 esac
19232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19233   (eval "$ac_try") 2>&5
19234   ac_status=$?
19235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236   (exit $ac_status); }; }; then
19237   ac_cv_lib_gcc___lshrdi3=yes
19238 else
19239   echo "$as_me: failed program was:" >&5
19240 sed 's/^/| /' conftest.$ac_ext >&5
19241
19242         ac_cv_lib_gcc___lshrdi3=no
19243 fi
19244
19245 rm -f core conftest.err conftest.$ac_objext \
19246       conftest$ac_exeext conftest.$ac_ext
19247 LIBS=$ac_check_lib_save_LIBS
19248 fi
19249 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19250 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19251 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19252
19253 cat >>confdefs.h <<\_ACEOF
19254 #define HAVE___LSHRDI3 1
19255 _ACEOF
19256
19257 fi
19258
19259   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19260 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19261 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19262   echo $ECHO_N "(cached) $ECHO_C" >&6
19263 else
19264   ac_check_lib_save_LIBS=$LIBS
19265 LIBS="-lgcc  $LIBS"
19266 cat >conftest.$ac_ext <<_ACEOF
19267 /* confdefs.h.  */
19268 _ACEOF
19269 cat confdefs.h >>conftest.$ac_ext
19270 cat >>conftest.$ac_ext <<_ACEOF
19271 /* end confdefs.h.  */
19272
19273 /* Override any GCC internal prototype to avoid an error.
19274    Use char because int might match the return type of a GCC
19275    builtin and then its argument prototype would still apply.  */
19276 #ifdef __cplusplus
19277 extern "C"
19278 #endif
19279 char __moddi3 ();
19280 int
19281 main ()
19282 {
19283 return __moddi3 ();
19284   ;
19285   return 0;
19286 }
19287 _ACEOF
19288 rm -f conftest.$ac_objext conftest$ac_exeext
19289 if { (ac_try="$ac_link"
19290 case "(($ac_try" in
19291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19292   *) ac_try_echo=$ac_try;;
19293 esac
19294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19295   (eval "$ac_link") 2>conftest.er1
19296   ac_status=$?
19297   grep -v '^ *+' conftest.er1 >conftest.err
19298   rm -f conftest.er1
19299   cat conftest.err >&5
19300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301   (exit $ac_status); } &&
19302          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19303   { (case "(($ac_try" in
19304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305   *) ac_try_echo=$ac_try;;
19306 esac
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308   (eval "$ac_try") 2>&5
19309   ac_status=$?
19310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311   (exit $ac_status); }; } &&
19312          { ac_try='test -s conftest$ac_exeext'
19313   { (case "(($ac_try" in
19314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19315   *) ac_try_echo=$ac_try;;
19316 esac
19317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19318   (eval "$ac_try") 2>&5
19319   ac_status=$?
19320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321   (exit $ac_status); }; }; then
19322   ac_cv_lib_gcc___moddi3=yes
19323 else
19324   echo "$as_me: failed program was:" >&5
19325 sed 's/^/| /' conftest.$ac_ext >&5
19326
19327         ac_cv_lib_gcc___moddi3=no
19328 fi
19329
19330 rm -f core conftest.err conftest.$ac_objext \
19331       conftest$ac_exeext conftest.$ac_ext
19332 LIBS=$ac_check_lib_save_LIBS
19333 fi
19334 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19335 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19336 if test $ac_cv_lib_gcc___moddi3 = yes; then
19337
19338 cat >>confdefs.h <<\_ACEOF
19339 #define HAVE___MODDI3 1
19340 _ACEOF
19341
19342 fi
19343
19344   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19345 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19346 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19347   echo $ECHO_N "(cached) $ECHO_C" >&6
19348 else
19349   ac_check_lib_save_LIBS=$LIBS
19350 LIBS="-lgcc  $LIBS"
19351 cat >conftest.$ac_ext <<_ACEOF
19352 /* confdefs.h.  */
19353 _ACEOF
19354 cat confdefs.h >>conftest.$ac_ext
19355 cat >>conftest.$ac_ext <<_ACEOF
19356 /* end confdefs.h.  */
19357
19358 /* Override any GCC internal prototype to avoid an error.
19359    Use char because int might match the return type of a GCC
19360    builtin and then its argument prototype would still apply.  */
19361 #ifdef __cplusplus
19362 extern "C"
19363 #endif
19364 char __udivdi3 ();
19365 int
19366 main ()
19367 {
19368 return __udivdi3 ();
19369   ;
19370   return 0;
19371 }
19372 _ACEOF
19373 rm -f conftest.$ac_objext conftest$ac_exeext
19374 if { (ac_try="$ac_link"
19375 case "(($ac_try" in
19376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19377   *) ac_try_echo=$ac_try;;
19378 esac
19379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19380   (eval "$ac_link") 2>conftest.er1
19381   ac_status=$?
19382   grep -v '^ *+' conftest.er1 >conftest.err
19383   rm -f conftest.er1
19384   cat conftest.err >&5
19385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386   (exit $ac_status); } &&
19387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19388   { (case "(($ac_try" in
19389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390   *) ac_try_echo=$ac_try;;
19391 esac
19392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19393   (eval "$ac_try") 2>&5
19394   ac_status=$?
19395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396   (exit $ac_status); }; } &&
19397          { ac_try='test -s conftest$ac_exeext'
19398   { (case "(($ac_try" in
19399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19400   *) ac_try_echo=$ac_try;;
19401 esac
19402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19403   (eval "$ac_try") 2>&5
19404   ac_status=$?
19405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406   (exit $ac_status); }; }; then
19407   ac_cv_lib_gcc___udivdi3=yes
19408 else
19409   echo "$as_me: failed program was:" >&5
19410 sed 's/^/| /' conftest.$ac_ext >&5
19411
19412         ac_cv_lib_gcc___udivdi3=no
19413 fi
19414
19415 rm -f core conftest.err conftest.$ac_objext \
19416       conftest$ac_exeext conftest.$ac_ext
19417 LIBS=$ac_check_lib_save_LIBS
19418 fi
19419 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19420 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19421 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19422
19423 cat >>confdefs.h <<\_ACEOF
19424 #define HAVE___UDIVDI3 1
19425 _ACEOF
19426
19427 fi
19428
19429   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19430 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19431 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19432   echo $ECHO_N "(cached) $ECHO_C" >&6
19433 else
19434   ac_check_lib_save_LIBS=$LIBS
19435 LIBS="-lgcc  $LIBS"
19436 cat >conftest.$ac_ext <<_ACEOF
19437 /* confdefs.h.  */
19438 _ACEOF
19439 cat confdefs.h >>conftest.$ac_ext
19440 cat >>conftest.$ac_ext <<_ACEOF
19441 /* end confdefs.h.  */
19442
19443 /* Override any GCC internal prototype to avoid an error.
19444    Use char because int might match the return type of a GCC
19445    builtin and then its argument prototype would still apply.  */
19446 #ifdef __cplusplus
19447 extern "C"
19448 #endif
19449 char __umoddi3 ();
19450 int
19451 main ()
19452 {
19453 return __umoddi3 ();
19454   ;
19455   return 0;
19456 }
19457 _ACEOF
19458 rm -f conftest.$ac_objext conftest$ac_exeext
19459 if { (ac_try="$ac_link"
19460 case "(($ac_try" in
19461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19462   *) ac_try_echo=$ac_try;;
19463 esac
19464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19465   (eval "$ac_link") 2>conftest.er1
19466   ac_status=$?
19467   grep -v '^ *+' conftest.er1 >conftest.err
19468   rm -f conftest.er1
19469   cat conftest.err >&5
19470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471   (exit $ac_status); } &&
19472          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19473   { (case "(($ac_try" in
19474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19475   *) ac_try_echo=$ac_try;;
19476 esac
19477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19478   (eval "$ac_try") 2>&5
19479   ac_status=$?
19480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481   (exit $ac_status); }; } &&
19482          { ac_try='test -s conftest$ac_exeext'
19483   { (case "(($ac_try" in
19484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19485   *) ac_try_echo=$ac_try;;
19486 esac
19487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19488   (eval "$ac_try") 2>&5
19489   ac_status=$?
19490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491   (exit $ac_status); }; }; then
19492   ac_cv_lib_gcc___umoddi3=yes
19493 else
19494   echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19496
19497         ac_cv_lib_gcc___umoddi3=no
19498 fi
19499
19500 rm -f core conftest.err conftest.$ac_objext \
19501       conftest$ac_exeext conftest.$ac_ext
19502 LIBS=$ac_check_lib_save_LIBS
19503 fi
19504 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19505 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19506 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19507
19508 cat >>confdefs.h <<\_ACEOF
19509 #define HAVE___UMODDI3 1
19510 _ACEOF
19511
19512 fi
19513
19514
19515   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19516 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19517 if test "${ac_cv_lib_gcc___main+set}" = set; then
19518   echo $ECHO_N "(cached) $ECHO_C" >&6
19519 else
19520   ac_check_lib_save_LIBS=$LIBS
19521 LIBS="-lgcc  $LIBS"
19522 cat >conftest.$ac_ext <<_ACEOF
19523 /* confdefs.h.  */
19524 _ACEOF
19525 cat confdefs.h >>conftest.$ac_ext
19526 cat >>conftest.$ac_ext <<_ACEOF
19527 /* end confdefs.h.  */
19528
19529 /* Override any GCC internal prototype to avoid an error.
19530    Use char because int might match the return type of a GCC
19531    builtin and then its argument prototype would still apply.  */
19532 #ifdef __cplusplus
19533 extern "C"
19534 #endif
19535 char __main ();
19536 int
19537 main ()
19538 {
19539 return __main ();
19540   ;
19541   return 0;
19542 }
19543 _ACEOF
19544 rm -f conftest.$ac_objext conftest$ac_exeext
19545 if { (ac_try="$ac_link"
19546 case "(($ac_try" in
19547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19548   *) ac_try_echo=$ac_try;;
19549 esac
19550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19551   (eval "$ac_link") 2>conftest.er1
19552   ac_status=$?
19553   grep -v '^ *+' conftest.er1 >conftest.err
19554   rm -f conftest.er1
19555   cat conftest.err >&5
19556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557   (exit $ac_status); } &&
19558          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19559   { (case "(($ac_try" in
19560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561   *) ac_try_echo=$ac_try;;
19562 esac
19563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19564   (eval "$ac_try") 2>&5
19565   ac_status=$?
19566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567   (exit $ac_status); }; } &&
19568          { ac_try='test -s conftest$ac_exeext'
19569   { (case "(($ac_try" in
19570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19571   *) ac_try_echo=$ac_try;;
19572 esac
19573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19574   (eval "$ac_try") 2>&5
19575   ac_status=$?
19576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577   (exit $ac_status); }; }; then
19578   ac_cv_lib_gcc___main=yes
19579 else
19580   echo "$as_me: failed program was:" >&5
19581 sed 's/^/| /' conftest.$ac_ext >&5
19582
19583         ac_cv_lib_gcc___main=no
19584 fi
19585
19586 rm -f core conftest.err conftest.$ac_objext \
19587       conftest$ac_exeext conftest.$ac_ext
19588 LIBS=$ac_check_lib_save_LIBS
19589 fi
19590 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19591 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19592 if test $ac_cv_lib_gcc___main = yes; then
19593
19594 cat >>confdefs.h <<\_ACEOF
19595 #define HAVE___MAIN 1
19596 _ACEOF
19597
19598 fi
19599
19600   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19601 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19602 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19603   echo $ECHO_N "(cached) $ECHO_C" >&6
19604 else
19605   ac_check_lib_save_LIBS=$LIBS
19606 LIBS="-lgcc  $LIBS"
19607 cat >conftest.$ac_ext <<_ACEOF
19608 /* confdefs.h.  */
19609 _ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h.  */
19613
19614 /* Override any GCC internal prototype to avoid an error.
19615    Use char because int might match the return type of a GCC
19616    builtin and then its argument prototype would still apply.  */
19617 #ifdef __cplusplus
19618 extern "C"
19619 #endif
19620 char __cmpdi2 ();
19621 int
19622 main ()
19623 {
19624 return __cmpdi2 ();
19625   ;
19626   return 0;
19627 }
19628 _ACEOF
19629 rm -f conftest.$ac_objext conftest$ac_exeext
19630 if { (ac_try="$ac_link"
19631 case "(($ac_try" in
19632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633   *) ac_try_echo=$ac_try;;
19634 esac
19635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636   (eval "$ac_link") 2>conftest.er1
19637   ac_status=$?
19638   grep -v '^ *+' conftest.er1 >conftest.err
19639   rm -f conftest.er1
19640   cat conftest.err >&5
19641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642   (exit $ac_status); } &&
19643          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19644   { (case "(($ac_try" in
19645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646   *) ac_try_echo=$ac_try;;
19647 esac
19648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649   (eval "$ac_try") 2>&5
19650   ac_status=$?
19651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652   (exit $ac_status); }; } &&
19653          { ac_try='test -s conftest$ac_exeext'
19654   { (case "(($ac_try" in
19655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19656   *) ac_try_echo=$ac_try;;
19657 esac
19658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19659   (eval "$ac_try") 2>&5
19660   ac_status=$?
19661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662   (exit $ac_status); }; }; then
19663   ac_cv_lib_gcc___cmpdi2=yes
19664 else
19665   echo "$as_me: failed program was:" >&5
19666 sed 's/^/| /' conftest.$ac_ext >&5
19667
19668         ac_cv_lib_gcc___cmpdi2=no
19669 fi
19670
19671 rm -f core conftest.err conftest.$ac_objext \
19672       conftest$ac_exeext conftest.$ac_ext
19673 LIBS=$ac_check_lib_save_LIBS
19674 fi
19675 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19676 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19677 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19678
19679 cat >>confdefs.h <<\_ACEOF
19680 #define HAVE___CMPDI2 1
19681 _ACEOF
19682
19683 fi
19684
19685 fi
19686
19687 if test "$llvm_cv_os_type" = "MingW" ; then
19688   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19689 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19690   cat >conftest.$ac_ext <<_ACEOF
19691 #include <windows.h>
19692 #include <imagehlp.h>
19693 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19694 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19695 _ACEOF
19696 rm -f conftest.$ac_objext
19697 if { (ac_try="$ac_compile"
19698 case "(($ac_try" in
19699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19700   *) ac_try_echo=$ac_try;;
19701 esac
19702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19703   (eval "$ac_compile") 2>conftest.er1
19704   ac_status=$?
19705   grep -v '^ *+' conftest.er1 >conftest.err
19706   rm -f conftest.er1
19707   cat conftest.err >&5
19708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709   (exit $ac_status); } &&
19710          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19711   { (case "(($ac_try" in
19712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19713   *) ac_try_echo=$ac_try;;
19714 esac
19715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19716   (eval "$ac_try") 2>&5
19717   ac_status=$?
19718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719   (exit $ac_status); }; } &&
19720          { ac_try='test -s conftest.$ac_objext'
19721   { (case "(($ac_try" in
19722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19723   *) ac_try_echo=$ac_try;;
19724 esac
19725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19726   (eval "$ac_try") 2>&5
19727   ac_status=$?
19728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729   (exit $ac_status); }; }; then
19730
19731   { echo "$as_me:$LINENO: result: yes" >&5
19732 echo "${ECHO_T}yes" >&6; }
19733   llvm_cv_win32_elmcb_pcstr="PCSTR"
19734
19735 else
19736   echo "$as_me: failed program was:" >&5
19737 sed 's/^/| /' conftest.$ac_ext >&5
19738
19739
19740   { echo "$as_me:$LINENO: result: no" >&5
19741 echo "${ECHO_T}no" >&6; }
19742   llvm_cv_win32_elmcb_pcstr="PSTR"
19743
19744 fi
19745
19746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19747
19748 cat >>confdefs.h <<_ACEOF
19749 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19750 _ACEOF
19751
19752 fi
19753
19754
19755 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19756 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19757 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19758   echo $ECHO_N "(cached) $ECHO_C" >&6
19759 else
19760   ac_ext=cpp
19761 ac_cpp='$CXXCPP $CPPFLAGS'
19762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19765
19766    cat >conftest.$ac_ext <<_ACEOF
19767 /* confdefs.h.  */
19768 _ACEOF
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h.  */
19772 #include <math.h>
19773 int
19774 main ()
19775 {
19776 float f; isnan(f);
19777   ;
19778   return 0;
19779 }
19780 _ACEOF
19781 rm -f conftest.$ac_objext
19782 if { (ac_try="$ac_compile"
19783 case "(($ac_try" in
19784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785   *) ac_try_echo=$ac_try;;
19786 esac
19787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19788   (eval "$ac_compile") 2>conftest.er1
19789   ac_status=$?
19790   grep -v '^ *+' conftest.er1 >conftest.err
19791   rm -f conftest.er1
19792   cat conftest.err >&5
19793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794   (exit $ac_status); } &&
19795          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19796   { (case "(($ac_try" in
19797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19798   *) ac_try_echo=$ac_try;;
19799 esac
19800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19801   (eval "$ac_try") 2>&5
19802   ac_status=$?
19803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804   (exit $ac_status); }; } &&
19805          { ac_try='test -s conftest.$ac_objext'
19806   { (case "(($ac_try" in
19807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19808   *) ac_try_echo=$ac_try;;
19809 esac
19810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19811   (eval "$ac_try") 2>&5
19812   ac_status=$?
19813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814   (exit $ac_status); }; }; then
19815   ac_cv_func_isnan_in_math_h=yes
19816 else
19817   echo "$as_me: failed program was:" >&5
19818 sed 's/^/| /' conftest.$ac_ext >&5
19819
19820         ac_cv_func_isnan_in_math_h=no
19821 fi
19822
19823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19824   ac_ext=c
19825 ac_cpp='$CPP $CPPFLAGS'
19826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19829
19830 fi
19831 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19832 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19833
19834
19835 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19836
19837 cat >>confdefs.h <<\_ACEOF
19838 #define HAVE_ISNAN_IN_MATH_H 1
19839 _ACEOF
19840
19841 fi
19842
19843 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19844 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19845 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19846   echo $ECHO_N "(cached) $ECHO_C" >&6
19847 else
19848   ac_ext=cpp
19849 ac_cpp='$CXXCPP $CPPFLAGS'
19850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19853
19854    cat >conftest.$ac_ext <<_ACEOF
19855 /* confdefs.h.  */
19856 _ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h.  */
19860 #include <cmath>
19861 int
19862 main ()
19863 {
19864 float f; isnan(f);
19865   ;
19866   return 0;
19867 }
19868 _ACEOF
19869 rm -f conftest.$ac_objext
19870 if { (ac_try="$ac_compile"
19871 case "(($ac_try" in
19872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873   *) ac_try_echo=$ac_try;;
19874 esac
19875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876   (eval "$ac_compile") 2>conftest.er1
19877   ac_status=$?
19878   grep -v '^ *+' conftest.er1 >conftest.err
19879   rm -f conftest.er1
19880   cat conftest.err >&5
19881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882   (exit $ac_status); } &&
19883          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19884   { (case "(($ac_try" in
19885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886   *) ac_try_echo=$ac_try;;
19887 esac
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889   (eval "$ac_try") 2>&5
19890   ac_status=$?
19891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892   (exit $ac_status); }; } &&
19893          { ac_try='test -s conftest.$ac_objext'
19894   { (case "(($ac_try" in
19895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896   *) ac_try_echo=$ac_try;;
19897 esac
19898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899   (eval "$ac_try") 2>&5
19900   ac_status=$?
19901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902   (exit $ac_status); }; }; then
19903   ac_cv_func_isnan_in_cmath=yes
19904 else
19905   echo "$as_me: failed program was:" >&5
19906 sed 's/^/| /' conftest.$ac_ext >&5
19907
19908         ac_cv_func_isnan_in_cmath=no
19909 fi
19910
19911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19912   ac_ext=c
19913 ac_cpp='$CPP $CPPFLAGS'
19914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19917
19918 fi
19919 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19920 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19921
19922 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19923
19924 cat >>confdefs.h <<\_ACEOF
19925 #define HAVE_ISNAN_IN_CMATH 1
19926 _ACEOF
19927
19928 fi
19929
19930 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19931 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19932 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19933   echo $ECHO_N "(cached) $ECHO_C" >&6
19934 else
19935   ac_ext=cpp
19936 ac_cpp='$CXXCPP $CPPFLAGS'
19937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19940
19941    cat >conftest.$ac_ext <<_ACEOF
19942 /* confdefs.h.  */
19943 _ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h.  */
19947 #include <cmath>
19948 int
19949 main ()
19950 {
19951 float f; std::isnan(f);
19952   ;
19953   return 0;
19954 }
19955 _ACEOF
19956 rm -f conftest.$ac_objext
19957 if { (ac_try="$ac_compile"
19958 case "(($ac_try" in
19959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19960   *) ac_try_echo=$ac_try;;
19961 esac
19962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19963   (eval "$ac_compile") 2>conftest.er1
19964   ac_status=$?
19965   grep -v '^ *+' conftest.er1 >conftest.err
19966   rm -f conftest.er1
19967   cat conftest.err >&5
19968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969   (exit $ac_status); } &&
19970          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19971   { (case "(($ac_try" in
19972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973   *) ac_try_echo=$ac_try;;
19974 esac
19975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19976   (eval "$ac_try") 2>&5
19977   ac_status=$?
19978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979   (exit $ac_status); }; } &&
19980          { ac_try='test -s conftest.$ac_objext'
19981   { (case "(($ac_try" in
19982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983   *) ac_try_echo=$ac_try;;
19984 esac
19985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986   (eval "$ac_try") 2>&5
19987   ac_status=$?
19988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989   (exit $ac_status); }; }; then
19990   ac_cv_func_std_isnan_in_cmath=yes
19991 else
19992   echo "$as_me: failed program was:" >&5
19993 sed 's/^/| /' conftest.$ac_ext >&5
19994
19995         ac_cv_func_std_isnan_in_cmath=no
19996 fi
19997
19998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19999   ac_ext=c
20000 ac_cpp='$CPP $CPPFLAGS'
20001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20004
20005 fi
20006 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20007 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20008
20009 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20010
20011 cat >>confdefs.h <<\_ACEOF
20012 #define HAVE_STD_ISNAN_IN_CMATH 1
20013 _ACEOF
20014
20015 fi
20016
20017
20018 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20019 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20020 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20021   echo $ECHO_N "(cached) $ECHO_C" >&6
20022 else
20023   ac_ext=cpp
20024 ac_cpp='$CXXCPP $CPPFLAGS'
20025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20028
20029    cat >conftest.$ac_ext <<_ACEOF
20030 /* confdefs.h.  */
20031 _ACEOF
20032 cat confdefs.h >>conftest.$ac_ext
20033 cat >>conftest.$ac_ext <<_ACEOF
20034 /* end confdefs.h.  */
20035 #include <math.h>
20036 int
20037 main ()
20038 {
20039 float f; isinf(f);
20040   ;
20041   return 0;
20042 }
20043 _ACEOF
20044 rm -f conftest.$ac_objext
20045 if { (ac_try="$ac_compile"
20046 case "(($ac_try" in
20047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20048   *) ac_try_echo=$ac_try;;
20049 esac
20050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20051   (eval "$ac_compile") 2>conftest.er1
20052   ac_status=$?
20053   grep -v '^ *+' conftest.er1 >conftest.err
20054   rm -f conftest.er1
20055   cat conftest.err >&5
20056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057   (exit $ac_status); } &&
20058          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20059   { (case "(($ac_try" in
20060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061   *) ac_try_echo=$ac_try;;
20062 esac
20063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20064   (eval "$ac_try") 2>&5
20065   ac_status=$?
20066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067   (exit $ac_status); }; } &&
20068          { ac_try='test -s conftest.$ac_objext'
20069   { (case "(($ac_try" in
20070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20071   *) ac_try_echo=$ac_try;;
20072 esac
20073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20074   (eval "$ac_try") 2>&5
20075   ac_status=$?
20076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077   (exit $ac_status); }; }; then
20078   ac_cv_func_isinf_in_math_h=yes
20079 else
20080   echo "$as_me: failed program was:" >&5
20081 sed 's/^/| /' conftest.$ac_ext >&5
20082
20083         ac_cv_func_isinf_in_math_h=no
20084 fi
20085
20086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20087   ac_ext=c
20088 ac_cpp='$CPP $CPPFLAGS'
20089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20092
20093 fi
20094 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20095 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20096
20097 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20098
20099 cat >>confdefs.h <<\_ACEOF
20100 #define HAVE_ISINF_IN_MATH_H 1
20101 _ACEOF
20102
20103 fi
20104
20105 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20106 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20107 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20108   echo $ECHO_N "(cached) $ECHO_C" >&6
20109 else
20110   ac_ext=cpp
20111 ac_cpp='$CXXCPP $CPPFLAGS'
20112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20115
20116    cat >conftest.$ac_ext <<_ACEOF
20117 /* confdefs.h.  */
20118 _ACEOF
20119 cat confdefs.h >>conftest.$ac_ext
20120 cat >>conftest.$ac_ext <<_ACEOF
20121 /* end confdefs.h.  */
20122 #include <cmath>
20123 int
20124 main ()
20125 {
20126 float f; isinf(f);
20127   ;
20128   return 0;
20129 }
20130 _ACEOF
20131 rm -f conftest.$ac_objext
20132 if { (ac_try="$ac_compile"
20133 case "(($ac_try" in
20134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20135   *) ac_try_echo=$ac_try;;
20136 esac
20137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20138   (eval "$ac_compile") 2>conftest.er1
20139   ac_status=$?
20140   grep -v '^ *+' conftest.er1 >conftest.err
20141   rm -f conftest.er1
20142   cat conftest.err >&5
20143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144   (exit $ac_status); } &&
20145          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20146   { (case "(($ac_try" in
20147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148   *) ac_try_echo=$ac_try;;
20149 esac
20150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151   (eval "$ac_try") 2>&5
20152   ac_status=$?
20153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154   (exit $ac_status); }; } &&
20155          { ac_try='test -s conftest.$ac_objext'
20156   { (case "(($ac_try" in
20157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158   *) ac_try_echo=$ac_try;;
20159 esac
20160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161   (eval "$ac_try") 2>&5
20162   ac_status=$?
20163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164   (exit $ac_status); }; }; then
20165   ac_cv_func_isinf_in_cmath=yes
20166 else
20167   echo "$as_me: failed program was:" >&5
20168 sed 's/^/| /' conftest.$ac_ext >&5
20169
20170         ac_cv_func_isinf_in_cmath=no
20171 fi
20172
20173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20174   ac_ext=c
20175 ac_cpp='$CPP $CPPFLAGS'
20176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20179
20180 fi
20181 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20182 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20183
20184 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20185
20186 cat >>confdefs.h <<\_ACEOF
20187 #define HAVE_ISINF_IN_CMATH 1
20188 _ACEOF
20189
20190 fi
20191
20192 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20193 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20194 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20195   echo $ECHO_N "(cached) $ECHO_C" >&6
20196 else
20197   ac_ext=cpp
20198 ac_cpp='$CXXCPP $CPPFLAGS'
20199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20202
20203    cat >conftest.$ac_ext <<_ACEOF
20204 /* confdefs.h.  */
20205 _ACEOF
20206 cat confdefs.h >>conftest.$ac_ext
20207 cat >>conftest.$ac_ext <<_ACEOF
20208 /* end confdefs.h.  */
20209 #include <cmath>
20210 int
20211 main ()
20212 {
20213 float f; std::isinf(f)}
20214   ;
20215   return 0;
20216 }
20217 _ACEOF
20218 rm -f conftest.$ac_objext
20219 if { (ac_try="$ac_compile"
20220 case "(($ac_try" in
20221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222   *) ac_try_echo=$ac_try;;
20223 esac
20224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225   (eval "$ac_compile") 2>conftest.er1
20226   ac_status=$?
20227   grep -v '^ *+' conftest.er1 >conftest.err
20228   rm -f conftest.er1
20229   cat conftest.err >&5
20230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231   (exit $ac_status); } &&
20232          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20233   { (case "(($ac_try" in
20234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20235   *) ac_try_echo=$ac_try;;
20236 esac
20237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20238   (eval "$ac_try") 2>&5
20239   ac_status=$?
20240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241   (exit $ac_status); }; } &&
20242          { ac_try='test -s conftest.$ac_objext'
20243   { (case "(($ac_try" in
20244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245   *) ac_try_echo=$ac_try;;
20246 esac
20247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248   (eval "$ac_try") 2>&5
20249   ac_status=$?
20250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251   (exit $ac_status); }; }; then
20252   ac_cv_func_std_isinf_in_cmath=yes
20253 else
20254   echo "$as_me: failed program was:" >&5
20255 sed 's/^/| /' conftest.$ac_ext >&5
20256
20257         ac_cv_func_std_isinf_in_cmath=no
20258 fi
20259
20260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20261   ac_ext=c
20262 ac_cpp='$CPP $CPPFLAGS'
20263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20266
20267 fi
20268 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20269 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20270
20271 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20272
20273 cat >>confdefs.h <<\_ACEOF
20274 #define HAVE_STD_ISINF_IN_CMATH 1
20275 _ACEOF
20276
20277 fi
20278
20279 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20280 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20281 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20282   echo $ECHO_N "(cached) $ECHO_C" >&6
20283 else
20284   ac_ext=cpp
20285 ac_cpp='$CXXCPP $CPPFLAGS'
20286 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20287 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20288 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20289
20290    cat >conftest.$ac_ext <<_ACEOF
20291 /* confdefs.h.  */
20292 _ACEOF
20293 cat confdefs.h >>conftest.$ac_ext
20294 cat >>conftest.$ac_ext <<_ACEOF
20295 /* end confdefs.h.  */
20296 #include <ieeefp.h>
20297 int
20298 main ()
20299 {
20300 float f; finite(f);
20301   ;
20302   return 0;
20303 }
20304 _ACEOF
20305 rm -f conftest.$ac_objext
20306 if { (ac_try="$ac_compile"
20307 case "(($ac_try" in
20308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309   *) ac_try_echo=$ac_try;;
20310 esac
20311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20312   (eval "$ac_compile") 2>conftest.er1
20313   ac_status=$?
20314   grep -v '^ *+' conftest.er1 >conftest.err
20315   rm -f conftest.er1
20316   cat conftest.err >&5
20317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318   (exit $ac_status); } &&
20319          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20320   { (case "(($ac_try" in
20321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20322   *) ac_try_echo=$ac_try;;
20323 esac
20324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20325   (eval "$ac_try") 2>&5
20326   ac_status=$?
20327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328   (exit $ac_status); }; } &&
20329          { ac_try='test -s conftest.$ac_objext'
20330   { (case "(($ac_try" in
20331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332   *) ac_try_echo=$ac_try;;
20333 esac
20334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335   (eval "$ac_try") 2>&5
20336   ac_status=$?
20337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338   (exit $ac_status); }; }; then
20339   ac_cv_func_finite_in_ieeefp_h=yes
20340 else
20341   echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20343
20344         ac_cv_func_finite_in_ieeefp_h=no
20345 fi
20346
20347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20348   ac_ext=c
20349 ac_cpp='$CPP $CPPFLAGS'
20350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20353
20354 fi
20355 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20356 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20357
20358 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20359
20360 cat >>confdefs.h <<\_ACEOF
20361 #define HAVE_FINITE_IN_IEEEFP_H 1
20362 _ACEOF
20363
20364 fi
20365
20366
20367
20368 if test "$llvm_cv_platform_type" = "Unix" ; then
20369
20370
20371 for ac_header in stdlib.h unistd.h
20372 do
20373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20375   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20378   echo $ECHO_N "(cached) $ECHO_C" >&6
20379 fi
20380 ac_res=`eval echo '${'$as_ac_Header'}'`
20381                { echo "$as_me:$LINENO: result: $ac_res" >&5
20382 echo "${ECHO_T}$ac_res" >&6; }
20383 else
20384   # Is the header compilable?
20385 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20387 cat >conftest.$ac_ext <<_ACEOF
20388 /* confdefs.h.  */
20389 _ACEOF
20390 cat confdefs.h >>conftest.$ac_ext
20391 cat >>conftest.$ac_ext <<_ACEOF
20392 /* end confdefs.h.  */
20393 $ac_includes_default
20394 #include <$ac_header>
20395 _ACEOF
20396 rm -f conftest.$ac_objext
20397 if { (ac_try="$ac_compile"
20398 case "(($ac_try" in
20399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400   *) ac_try_echo=$ac_try;;
20401 esac
20402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403   (eval "$ac_compile") 2>conftest.er1
20404   ac_status=$?
20405   grep -v '^ *+' conftest.er1 >conftest.err
20406   rm -f conftest.er1
20407   cat conftest.err >&5
20408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409   (exit $ac_status); } &&
20410          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20411   { (case "(($ac_try" in
20412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413   *) ac_try_echo=$ac_try;;
20414 esac
20415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416   (eval "$ac_try") 2>&5
20417   ac_status=$?
20418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419   (exit $ac_status); }; } &&
20420          { ac_try='test -s conftest.$ac_objext'
20421   { (case "(($ac_try" in
20422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423   *) ac_try_echo=$ac_try;;
20424 esac
20425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20426   (eval "$ac_try") 2>&5
20427   ac_status=$?
20428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429   (exit $ac_status); }; }; then
20430   ac_header_compiler=yes
20431 else
20432   echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20434
20435         ac_header_compiler=no
20436 fi
20437
20438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20440 echo "${ECHO_T}$ac_header_compiler" >&6; }
20441
20442 # Is the header present?
20443 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20445 cat >conftest.$ac_ext <<_ACEOF
20446 /* confdefs.h.  */
20447 _ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h.  */
20451 #include <$ac_header>
20452 _ACEOF
20453 if { (ac_try="$ac_cpp conftest.$ac_ext"
20454 case "(($ac_try" in
20455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20456   *) ac_try_echo=$ac_try;;
20457 esac
20458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20459   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20460   ac_status=$?
20461   grep -v '^ *+' conftest.er1 >conftest.err
20462   rm -f conftest.er1
20463   cat conftest.err >&5
20464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465   (exit $ac_status); } >/dev/null; then
20466   if test -s conftest.err; then
20467     ac_cpp_err=$ac_c_preproc_warn_flag
20468     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20469   else
20470     ac_cpp_err=
20471   fi
20472 else
20473   ac_cpp_err=yes
20474 fi
20475 if test -z "$ac_cpp_err"; then
20476   ac_header_preproc=yes
20477 else
20478   echo "$as_me: failed program was:" >&5
20479 sed 's/^/| /' conftest.$ac_ext >&5
20480
20481   ac_header_preproc=no
20482 fi
20483
20484 rm -f conftest.err conftest.$ac_ext
20485 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20486 echo "${ECHO_T}$ac_header_preproc" >&6; }
20487
20488 # So?  What about this header?
20489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20490   yes:no: )
20491     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20495     ac_header_preproc=yes
20496     ;;
20497   no:yes:* )
20498     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20500     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20501 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20502     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20504     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20505 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20506     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20508     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20510     ( cat <<\_ASBOX
20511 ## ----------------------------------- ##
20512 ## Report this to llvmbugs@cs.uiuc.edu ##
20513 ## ----------------------------------- ##
20514 _ASBOX
20515      ) | sed "s/^/$as_me: WARNING:     /" >&2
20516     ;;
20517 esac
20518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20521   echo $ECHO_N "(cached) $ECHO_C" >&6
20522 else
20523   eval "$as_ac_Header=\$ac_header_preproc"
20524 fi
20525 ac_res=`eval echo '${'$as_ac_Header'}'`
20526                { echo "$as_me:$LINENO: result: $ac_res" >&5
20527 echo "${ECHO_T}$ac_res" >&6; }
20528
20529 fi
20530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20531   cat >>confdefs.h <<_ACEOF
20532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20533 _ACEOF
20534
20535 fi
20536
20537 done
20538
20539
20540 for ac_func in getpagesize
20541 do
20542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20543 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20545 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20546   echo $ECHO_N "(cached) $ECHO_C" >&6
20547 else
20548   cat >conftest.$ac_ext <<_ACEOF
20549 /* confdefs.h.  */
20550 _ACEOF
20551 cat confdefs.h >>conftest.$ac_ext
20552 cat >>conftest.$ac_ext <<_ACEOF
20553 /* end confdefs.h.  */
20554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20555    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20556 #define $ac_func innocuous_$ac_func
20557
20558 /* System header to define __stub macros and hopefully few prototypes,
20559     which can conflict with char $ac_func (); below.
20560     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20561     <limits.h> exists even on freestanding compilers.  */
20562
20563 #ifdef __STDC__
20564 # include <limits.h>
20565 #else
20566 # include <assert.h>
20567 #endif
20568
20569 #undef $ac_func
20570
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 $ac_func ();
20578 /* The GNU C library defines this for functions which it implements
20579     to always fail with ENOSYS.  Some functions are actually named
20580     something starting with __ and the normal name is an alias.  */
20581 #if defined __stub_$ac_func || defined __stub___$ac_func
20582 choke me
20583 #endif
20584
20585 int
20586 main ()
20587 {
20588 return $ac_func ();
20589   ;
20590   return 0;
20591 }
20592 _ACEOF
20593 rm -f conftest.$ac_objext conftest$ac_exeext
20594 if { (ac_try="$ac_link"
20595 case "(($ac_try" in
20596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20597   *) ac_try_echo=$ac_try;;
20598 esac
20599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20600   (eval "$ac_link") 2>conftest.er1
20601   ac_status=$?
20602   grep -v '^ *+' conftest.er1 >conftest.err
20603   rm -f conftest.er1
20604   cat conftest.err >&5
20605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606   (exit $ac_status); } &&
20607          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20608   { (case "(($ac_try" in
20609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20610   *) ac_try_echo=$ac_try;;
20611 esac
20612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20613   (eval "$ac_try") 2>&5
20614   ac_status=$?
20615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616   (exit $ac_status); }; } &&
20617          { ac_try='test -s conftest$ac_exeext'
20618   { (case "(($ac_try" in
20619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20620   *) ac_try_echo=$ac_try;;
20621 esac
20622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20623   (eval "$ac_try") 2>&5
20624   ac_status=$?
20625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626   (exit $ac_status); }; }; then
20627   eval "$as_ac_var=yes"
20628 else
20629   echo "$as_me: failed program was:" >&5
20630 sed 's/^/| /' conftest.$ac_ext >&5
20631
20632         eval "$as_ac_var=no"
20633 fi
20634
20635 rm -f core conftest.err conftest.$ac_objext \
20636       conftest$ac_exeext conftest.$ac_ext
20637 fi
20638 ac_res=`eval echo '${'$as_ac_var'}'`
20639                { echo "$as_me:$LINENO: result: $ac_res" >&5
20640 echo "${ECHO_T}$ac_res" >&6; }
20641 if test `eval echo '${'$as_ac_var'}'` = yes; then
20642   cat >>confdefs.h <<_ACEOF
20643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20644 _ACEOF
20645
20646 fi
20647 done
20648
20649 { echo "$as_me:$LINENO: checking for working mmap" >&5
20650 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20651 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20652   echo $ECHO_N "(cached) $ECHO_C" >&6
20653 else
20654   if test "$cross_compiling" = yes; then
20655   ac_cv_func_mmap_fixed_mapped=no
20656 else
20657   cat >conftest.$ac_ext <<_ACEOF
20658 /* confdefs.h.  */
20659 _ACEOF
20660 cat confdefs.h >>conftest.$ac_ext
20661 cat >>conftest.$ac_ext <<_ACEOF
20662 /* end confdefs.h.  */
20663 $ac_includes_default
20664 /* malloc might have been renamed as rpl_malloc. */
20665 #undef malloc
20666
20667 /* Thanks to Mike Haertel and Jim Avera for this test.
20668    Here is a matrix of mmap possibilities:
20669         mmap private not fixed
20670         mmap private fixed at somewhere currently unmapped
20671         mmap private fixed at somewhere already mapped
20672         mmap shared not fixed
20673         mmap shared fixed at somewhere currently unmapped
20674         mmap shared fixed at somewhere already mapped
20675    For private mappings, we should verify that changes cannot be read()
20676    back from the file, nor mmap's back from the file at a different
20677    address.  (There have been systems where private was not correctly
20678    implemented like the infamous i386 svr4.0, and systems where the
20679    VM page cache was not coherent with the file system buffer cache
20680    like early versions of FreeBSD and possibly contemporary NetBSD.)
20681    For shared mappings, we should conversely verify that changes get
20682    propagated back to all the places they're supposed to be.
20683
20684    Grep wants private fixed already mapped.
20685    The main things grep needs to know about mmap are:
20686    * does it exist and is it safe to write into the mmap'd area
20687    * how to use it (BSD variants)  */
20688
20689 #include <fcntl.h>
20690 #include <sys/mman.h>
20691
20692 #if !STDC_HEADERS && !HAVE_STDLIB_H
20693 char *malloc ();
20694 #endif
20695
20696 /* This mess was copied from the GNU getpagesize.h.  */
20697 #if !HAVE_GETPAGESIZE
20698 /* Assume that all systems that can run configure have sys/param.h.  */
20699 # if !HAVE_SYS_PARAM_H
20700 #  define HAVE_SYS_PARAM_H 1
20701 # endif
20702
20703 # ifdef _SC_PAGESIZE
20704 #  define getpagesize() sysconf(_SC_PAGESIZE)
20705 # else /* no _SC_PAGESIZE */
20706 #  if HAVE_SYS_PARAM_H
20707 #   include <sys/param.h>
20708 #   ifdef EXEC_PAGESIZE
20709 #    define getpagesize() EXEC_PAGESIZE
20710 #   else /* no EXEC_PAGESIZE */
20711 #    ifdef NBPG
20712 #     define getpagesize() NBPG * CLSIZE
20713 #     ifndef CLSIZE
20714 #      define CLSIZE 1
20715 #     endif /* no CLSIZE */
20716 #    else /* no NBPG */
20717 #     ifdef NBPC
20718 #      define getpagesize() NBPC
20719 #     else /* no NBPC */
20720 #      ifdef PAGESIZE
20721 #       define getpagesize() PAGESIZE
20722 #      endif /* PAGESIZE */
20723 #     endif /* no NBPC */
20724 #    endif /* no NBPG */
20725 #   endif /* no EXEC_PAGESIZE */
20726 #  else /* no HAVE_SYS_PARAM_H */
20727 #   define getpagesize() 8192   /* punt totally */
20728 #  endif /* no HAVE_SYS_PARAM_H */
20729 # endif /* no _SC_PAGESIZE */
20730
20731 #endif /* no HAVE_GETPAGESIZE */
20732
20733 int
20734 main ()
20735 {
20736   char *data, *data2, *data3;
20737   int i, pagesize;
20738   int fd;
20739
20740   pagesize = getpagesize ();
20741
20742   /* First, make a file with some known garbage in it. */
20743   data = (char *) malloc (pagesize);
20744   if (!data)
20745     return 1;
20746   for (i = 0; i < pagesize; ++i)
20747     *(data + i) = rand ();
20748   umask (0);
20749   fd = creat ("conftest.mmap", 0600);
20750   if (fd < 0)
20751     return 1;
20752   if (write (fd, data, pagesize) != pagesize)
20753     return 1;
20754   close (fd);
20755
20756   /* Next, try to mmap the file at a fixed address which already has
20757      something else allocated at it.  If we can, also make sure that
20758      we see the same garbage.  */
20759   fd = open ("conftest.mmap", O_RDWR);
20760   if (fd < 0)
20761     return 1;
20762   data2 = (char *) malloc (2 * pagesize);
20763   if (!data2)
20764     return 1;
20765   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20766   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20767                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20768     return 1;
20769   for (i = 0; i < pagesize; ++i)
20770     if (*(data + i) != *(data2 + i))
20771       return 1;
20772
20773   /* Finally, make sure that changes to the mapped area do not
20774      percolate back to the file as seen by read().  (This is a bug on
20775      some variants of i386 svr4.0.)  */
20776   for (i = 0; i < pagesize; ++i)
20777     *(data2 + i) = *(data2 + i) + 1;
20778   data3 = (char *) malloc (pagesize);
20779   if (!data3)
20780     return 1;
20781   if (read (fd, data3, pagesize) != pagesize)
20782     return 1;
20783   for (i = 0; i < pagesize; ++i)
20784     if (*(data + i) != *(data3 + i))
20785       return 1;
20786   close (fd);
20787   return 0;
20788 }
20789 _ACEOF
20790 rm -f conftest$ac_exeext
20791 if { (ac_try="$ac_link"
20792 case "(($ac_try" in
20793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20794   *) ac_try_echo=$ac_try;;
20795 esac
20796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20797   (eval "$ac_link") 2>&5
20798   ac_status=$?
20799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20801   { (case "(($ac_try" in
20802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803   *) ac_try_echo=$ac_try;;
20804 esac
20805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20806   (eval "$ac_try") 2>&5
20807   ac_status=$?
20808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809   (exit $ac_status); }; }; then
20810   ac_cv_func_mmap_fixed_mapped=yes
20811 else
20812   echo "$as_me: program exited with status $ac_status" >&5
20813 echo "$as_me: failed program was:" >&5
20814 sed 's/^/| /' conftest.$ac_ext >&5
20815
20816 ( exit $ac_status )
20817 ac_cv_func_mmap_fixed_mapped=no
20818 fi
20819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20820 fi
20821
20822
20823 fi
20824 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20825 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20826 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20827
20828 cat >>confdefs.h <<\_ACEOF
20829 #define HAVE_MMAP 1
20830 _ACEOF
20831
20832 fi
20833 rm -f conftest.mmap
20834
20835   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20836 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20837 if test "${ac_cv_func_mmap_file+set}" = set; then
20838   echo $ECHO_N "(cached) $ECHO_C" >&6
20839 else
20840    ac_ext=c
20841 ac_cpp='$CPP $CPPFLAGS'
20842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20845
20846   if test "$cross_compiling" = yes; then
20847   ac_cv_func_mmap_file=no
20848 else
20849   cat >conftest.$ac_ext <<_ACEOF
20850
20851     /* confdefs.h.  */
20852 _ACEOF
20853 cat confdefs.h >>conftest.$ac_ext
20854 cat >>conftest.$ac_ext <<_ACEOF
20855 /* end confdefs.h.  */
20856
20857 #include <sys/types.h>
20858 #include <sys/mman.h>
20859 #include <fcntl.h>
20860
20861 int
20862 main ()
20863 {
20864
20865   int fd;
20866   fd = creat ("foo",0777);
20867   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20868   unlink ("foo");
20869   return (fd != (int) MAP_FAILED);
20870   ;
20871   return 0;
20872 }
20873 _ACEOF
20874 rm -f conftest$ac_exeext
20875 if { (ac_try="$ac_link"
20876 case "(($ac_try" in
20877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878   *) ac_try_echo=$ac_try;;
20879 esac
20880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20881   (eval "$ac_link") 2>&5
20882   ac_status=$?
20883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20885   { (case "(($ac_try" in
20886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887   *) ac_try_echo=$ac_try;;
20888 esac
20889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20890   (eval "$ac_try") 2>&5
20891   ac_status=$?
20892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893   (exit $ac_status); }; }; then
20894   ac_cv_func_mmap_file=yes
20895 else
20896   echo "$as_me: program exited with status $ac_status" >&5
20897 echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20899
20900 ( exit $ac_status )
20901 ac_cv_func_mmap_file=no
20902 fi
20903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20904 fi
20905
20906
20907   ac_ext=c
20908 ac_cpp='$CPP $CPPFLAGS'
20909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20912
20913
20914 fi
20915 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20916 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20917 if test "$ac_cv_func_mmap_file" = yes; then
20918
20919 cat >>confdefs.h <<\_ACEOF
20920 #define HAVE_MMAP_FILE
20921 _ACEOF
20922
20923    MMAP_FILE=yes
20924
20925 fi
20926
20927   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20928 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20929 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20930   echo $ECHO_N "(cached) $ECHO_C" >&6
20931 else
20932   if test "$llvm_cv_os_type" = "Interix" ; then
20933    ac_cv_need_dev_zero_for_mmap=yes
20934  else
20935    ac_cv_need_dev_zero_for_mmap=no
20936  fi
20937
20938 fi
20939 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20940 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20941 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20942
20943 cat >>confdefs.h <<\_ACEOF
20944 #define NEED_DEV_ZERO_FOR_MMAP 1
20945 _ACEOF
20946
20947 fi
20948
20949   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20950   then
20951     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20952 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20953   fi
20954   if test "$ac_cv_func_mmap_file" = "no"
20955   then
20956     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20957 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20958   fi
20959 fi
20960
20961 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20962 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20963 ac_ext=cpp
20964 ac_cpp='$CXXCPP $CPPFLAGS'
20965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20968
20969 cat >conftest.$ac_ext <<_ACEOF
20970 /* confdefs.h.  */
20971 _ACEOF
20972 cat confdefs.h >>conftest.$ac_ext
20973 cat >>conftest.$ac_ext <<_ACEOF
20974 /* end confdefs.h.  */
20975 int main() {
20976         volatile unsigned long val = 1;
20977         __sync_synchronize();
20978         __sync_val_compare_and_swap(&val, 1, 0);
20979         __sync_add_and_fetch(&val, 1);
20980         __sync_sub_and_fetch(&val, 1);
20981         return 0;
20982       }
20983
20984 _ACEOF
20985 rm -f conftest.$ac_objext conftest$ac_exeext
20986 if { (ac_try="$ac_link"
20987 case "(($ac_try" in
20988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20989   *) ac_try_echo=$ac_try;;
20990 esac
20991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20992   (eval "$ac_link") 2>conftest.er1
20993   ac_status=$?
20994   grep -v '^ *+' conftest.er1 >conftest.err
20995   rm -f conftest.er1
20996   cat conftest.err >&5
20997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998   (exit $ac_status); } &&
20999          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21000   { (case "(($ac_try" in
21001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002   *) ac_try_echo=$ac_try;;
21003 esac
21004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21005   (eval "$ac_try") 2>&5
21006   ac_status=$?
21007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008   (exit $ac_status); }; } &&
21009          { ac_try='test -s conftest$ac_exeext'
21010   { (case "(($ac_try" in
21011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012   *) ac_try_echo=$ac_try;;
21013 esac
21014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21015   (eval "$ac_try") 2>&5
21016   ac_status=$?
21017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018   (exit $ac_status); }; }; then
21019   ac_ext=c
21020 ac_cpp='$CPP $CPPFLAGS'
21021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21024
21025   { echo "$as_me:$LINENO: result: yes" >&5
21026 echo "${ECHO_T}yes" >&6; }
21027
21028 cat >>confdefs.h <<\_ACEOF
21029 #define LLVM_HAS_ATOMICS 1
21030 _ACEOF
21031
21032 else
21033   echo "$as_me: failed program was:" >&5
21034 sed 's/^/| /' conftest.$ac_ext >&5
21035
21036         { echo "$as_me:$LINENO: result: no" >&5
21037 echo "${ECHO_T}no" >&6; }
21038
21039 cat >>confdefs.h <<\_ACEOF
21040 #define LLVM_HAS_ATOMICS 0
21041 _ACEOF
21042
21043   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21044 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21045 fi
21046
21047 rm -f core conftest.err conftest.$ac_objext \
21048       conftest$ac_exeext conftest.$ac_ext
21049
21050
21051 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21052   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21053 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21054 if test "${llvm_cv_linux_mixed+set}" = set; then
21055   echo $ECHO_N "(cached) $ECHO_C" >&6
21056 else
21057    ac_ext=c
21058 ac_cpp='$CPP $CPPFLAGS'
21059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21062
21063   cat >conftest.$ac_ext <<_ACEOF
21064 /* confdefs.h.  */
21065 _ACEOF
21066 cat confdefs.h >>conftest.$ac_ext
21067 cat >>conftest.$ac_ext <<_ACEOF
21068 /* end confdefs.h.  */
21069 #ifndef __x86_64__
21070        error: Not x86-64 even if uname says so!
21071       #endif
21072
21073 int
21074 main ()
21075 {
21076
21077   ;
21078   return 0;
21079 }
21080 _ACEOF
21081 rm -f conftest.$ac_objext
21082 if { (ac_try="$ac_compile"
21083 case "(($ac_try" in
21084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21085   *) ac_try_echo=$ac_try;;
21086 esac
21087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21088   (eval "$ac_compile") 2>conftest.er1
21089   ac_status=$?
21090   grep -v '^ *+' conftest.er1 >conftest.err
21091   rm -f conftest.er1
21092   cat conftest.err >&5
21093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094   (exit $ac_status); } &&
21095          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21096   { (case "(($ac_try" in
21097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21098   *) ac_try_echo=$ac_try;;
21099 esac
21100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21101   (eval "$ac_try") 2>&5
21102   ac_status=$?
21103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104   (exit $ac_status); }; } &&
21105          { ac_try='test -s conftest.$ac_objext'
21106   { (case "(($ac_try" in
21107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108   *) ac_try_echo=$ac_try;;
21109 esac
21110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21111   (eval "$ac_try") 2>&5
21112   ac_status=$?
21113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114   (exit $ac_status); }; }; then
21115   llvm_cv_linux_mixed=no
21116 else
21117   echo "$as_me: failed program was:" >&5
21118 sed 's/^/| /' conftest.$ac_ext >&5
21119
21120         llvm_cv_linux_mixed=yes
21121 fi
21122
21123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21124   ac_ext=c
21125 ac_cpp='$CPP $CPPFLAGS'
21126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21129
21130
21131 fi
21132 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21133 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21134
21135   if test "$llvm_cv_linux_mixed" = "yes"; then
21136     llvm_cv_target_arch="x86"
21137     ARCH="x86"
21138   fi
21139 fi
21140
21141
21142 for ac_func in __dso_handle
21143 do
21144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21145 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21147 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21148   echo $ECHO_N "(cached) $ECHO_C" >&6
21149 else
21150   cat >conftest.$ac_ext <<_ACEOF
21151 /* confdefs.h.  */
21152 _ACEOF
21153 cat confdefs.h >>conftest.$ac_ext
21154 cat >>conftest.$ac_ext <<_ACEOF
21155 /* end confdefs.h.  */
21156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21157    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21158 #define $ac_func innocuous_$ac_func
21159
21160 /* System header to define __stub macros and hopefully few prototypes,
21161     which can conflict with char $ac_func (); below.
21162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21163     <limits.h> exists even on freestanding compilers.  */
21164
21165 #ifdef __STDC__
21166 # include <limits.h>
21167 #else
21168 # include <assert.h>
21169 #endif
21170
21171 #undef $ac_func
21172
21173 /* Override any GCC internal prototype to avoid an error.
21174    Use char because int might match the return type of a GCC
21175    builtin and then its argument prototype would still apply.  */
21176 #ifdef __cplusplus
21177 extern "C"
21178 #endif
21179 char $ac_func ();
21180 /* The GNU C library defines this for functions which it implements
21181     to always fail with ENOSYS.  Some functions are actually named
21182     something starting with __ and the normal name is an alias.  */
21183 #if defined __stub_$ac_func || defined __stub___$ac_func
21184 choke me
21185 #endif
21186
21187 int
21188 main ()
21189 {
21190 return $ac_func ();
21191   ;
21192   return 0;
21193 }
21194 _ACEOF
21195 rm -f conftest.$ac_objext conftest$ac_exeext
21196 if { (ac_try="$ac_link"
21197 case "(($ac_try" in
21198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21199   *) ac_try_echo=$ac_try;;
21200 esac
21201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21202   (eval "$ac_link") 2>conftest.er1
21203   ac_status=$?
21204   grep -v '^ *+' conftest.er1 >conftest.err
21205   rm -f conftest.er1
21206   cat conftest.err >&5
21207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208   (exit $ac_status); } &&
21209          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21210   { (case "(($ac_try" in
21211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21212   *) ac_try_echo=$ac_try;;
21213 esac
21214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21215   (eval "$ac_try") 2>&5
21216   ac_status=$?
21217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218   (exit $ac_status); }; } &&
21219          { ac_try='test -s conftest$ac_exeext'
21220   { (case "(($ac_try" in
21221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21222   *) ac_try_echo=$ac_try;;
21223 esac
21224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21225   (eval "$ac_try") 2>&5
21226   ac_status=$?
21227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228   (exit $ac_status); }; }; then
21229   eval "$as_ac_var=yes"
21230 else
21231   echo "$as_me: failed program was:" >&5
21232 sed 's/^/| /' conftest.$ac_ext >&5
21233
21234         eval "$as_ac_var=no"
21235 fi
21236
21237 rm -f core conftest.err conftest.$ac_objext \
21238       conftest$ac_exeext conftest.$ac_ext
21239 fi
21240 ac_res=`eval echo '${'$as_ac_var'}'`
21241                { echo "$as_me:$LINENO: result: $ac_res" >&5
21242 echo "${ECHO_T}$ac_res" >&6; }
21243 if test `eval echo '${'$as_ac_var'}'` = yes; then
21244   cat >>confdefs.h <<_ACEOF
21245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21246 _ACEOF
21247
21248 fi
21249 done
21250
21251
21252 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
21253 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
21254 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
21255   echo $ECHO_N "(cached) $ECHO_C" >&6
21256 else
21257   llvm_cv_llvmgcc_dragonegg="no"
21258 if test -n "$LLVMGCC" ; then
21259   cp /dev/null conftest.c
21260   $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
21261   if test $? -eq 0 ; then
21262     llvm_cv_llvmgcc_dragonegg="yes"
21263   fi
21264   rm conftest.c
21265 fi
21266 fi
21267 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
21268 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
21269
21270 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
21271   LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
21272   LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0"
21273 else
21274   LLVMCC_EMITIR_FLAG="-emit-llvm"
21275   LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
21276 fi
21277
21278
21279
21280 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
21281 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
21282 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
21283   echo $ECHO_N "(cached) $ECHO_C" >&6
21284 else
21285   llvm_cv_llvmgcc_sanity="no"
21286 if test -n "$LLVMGCC" ; then
21287   cp /dev/null conftest.c
21288   $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
21289       grep 'target datalayout =' > /dev/null 2>&1
21290   if test $? -eq 0 ; then
21291     llvm_cv_llvmgcc_sanity="yes"
21292   fi
21293   rm conftest.c
21294 fi
21295 fi
21296 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
21297 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
21298
21299 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
21300   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
21301 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
21302   llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
21303   LLVMCC1=$llvmcc1path
21304
21305   llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
21306   LLVMCC1PLUS=$llvmcc1pluspath
21307
21308   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
21309   LLVMGCCDIR=$llvmgccdir
21310
21311   llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
21312   LLVMGCC_LANGS=$llvmgcclangs
21313
21314   LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
21315
21316
21317   { echo "$as_me:$LINENO: result: ok" >&5
21318 echo "${ECHO_T}ok" >&6; }
21319 fi
21320
21321 SHLIBEXT=$libltdl_cv_shlibext
21322
21323
21324 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21325
21326
21327 # Translate the various configuration directories and other basic
21328 # information into substitutions that will end up in Makefile.config.in
21329 # that these configured values can be used by the makefiles
21330 if test "${prefix}" = "NONE" ; then
21331   prefix="/usr/local"
21332 fi
21333 eval LLVM_PREFIX="${prefix}";
21334 eval LLVM_BINDIR="${prefix}/bin";
21335 eval LLVM_LIBDIR="${prefix}/lib";
21336 eval LLVM_DATADIR="${prefix}/share/llvm";
21337 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21338 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21339 eval LLVM_INCLUDEDIR="${prefix}/include";
21340 eval LLVM_INFODIR="${prefix}/info";
21341 eval LLVM_MANDIR="${prefix}/man";
21342 LLVM_CONFIGTIME=`date`
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354 # Place the various directores into the config.h file as #defines so that we
21355 # can know about the installation paths within LLVM.
21356
21357 cat >>confdefs.h <<_ACEOF
21358 #define LLVM_PREFIX "$LLVM_PREFIX"
21359 _ACEOF
21360
21361
21362 cat >>confdefs.h <<_ACEOF
21363 #define LLVM_BINDIR "$LLVM_BINDIR"
21364 _ACEOF
21365
21366
21367 cat >>confdefs.h <<_ACEOF
21368 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21369 _ACEOF
21370
21371
21372 cat >>confdefs.h <<_ACEOF
21373 #define LLVM_DATADIR "$LLVM_DATADIR"
21374 _ACEOF
21375
21376
21377 cat >>confdefs.h <<_ACEOF
21378 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21379 _ACEOF
21380
21381
21382 cat >>confdefs.h <<_ACEOF
21383 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21384 _ACEOF
21385
21386
21387 cat >>confdefs.h <<_ACEOF
21388 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21389 _ACEOF
21390
21391
21392 cat >>confdefs.h <<_ACEOF
21393 #define LLVM_INFODIR "$LLVM_INFODIR"
21394 _ACEOF
21395
21396
21397 cat >>confdefs.h <<_ACEOF
21398 #define LLVM_MANDIR "$LLVM_MANDIR"
21399 _ACEOF
21400
21401
21402 cat >>confdefs.h <<_ACEOF
21403 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21404 _ACEOF
21405
21406
21407 cat >>confdefs.h <<_ACEOF
21408 #define LLVM_HOSTTRIPLE "$host"
21409 _ACEOF
21410
21411
21412 # Determine which bindings to build.
21413 if test "$BINDINGS_TO_BUILD" = auto ; then
21414   BINDINGS_TO_BUILD=""
21415   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21416     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21417   fi
21418 fi
21419 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21420
21421
21422 # This isn't really configurey, but it avoids having to repeat the list in
21423 # other files.
21424 ALL_BINDINGS=ocaml
21425
21426
21427 # Do any work necessary to ensure that bindings have what they need.
21428 binding_prereqs_failed=0
21429 for a_binding in $BINDINGS_TO_BUILD ; do
21430   case "$a_binding" in
21431   ocaml)
21432     if test "x$OCAMLC" = x ; then
21433       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21434 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21435       binding_prereqs_failed=1
21436     fi
21437     if test "x$OCAMLDEP" = x ; then
21438       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21439 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21440       binding_prereqs_failed=1
21441     fi
21442     if test "x$OCAMLOPT" = x ; then
21443       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21444 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21445           fi
21446     if test "x$with_ocaml_libdir" != xauto ; then
21447       OCAML_LIBDIR=$with_ocaml_libdir
21448
21449     else
21450       ocaml_stdlib="`"$OCAMLC" -where`"
21451       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21452       then
21453         # ocaml stdlib is beneath our prefix; use stdlib
21454         OCAML_LIBDIR=$ocaml_stdlib
21455
21456       else
21457         # ocaml stdlib is outside our prefix; use libdir/ocaml
21458         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21459
21460       fi
21461     fi
21462     ;;
21463   esac
21464 done
21465 if test "$binding_prereqs_failed" = 1 ; then
21466   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21467 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21468    { (exit 1); exit 1; }; }
21469 fi
21470
21471 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21472 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21473 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21474   echo $ECHO_N "(cached) $ECHO_C" >&6
21475 else
21476    ac_ext=cpp
21477 ac_cpp='$CXXCPP $CPPFLAGS'
21478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21481
21482   oldcxxflags="$CXXFLAGS"
21483   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
21484   cat >conftest.$ac_ext <<_ACEOF
21485 /* confdefs.h.  */
21486 _ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h.  */
21490
21491 int
21492 main ()
21493 {
21494
21495   ;
21496   return 0;
21497 }
21498 _ACEOF
21499 rm -f conftest.$ac_objext
21500 if { (ac_try="$ac_compile"
21501 case "(($ac_try" in
21502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21503   *) ac_try_echo=$ac_try;;
21504 esac
21505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21506   (eval "$ac_compile") 2>conftest.er1
21507   ac_status=$?
21508   grep -v '^ *+' conftest.er1 >conftest.err
21509   rm -f conftest.er1
21510   cat conftest.err >&5
21511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512   (exit $ac_status); } &&
21513          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21514   { (case "(($ac_try" in
21515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21516   *) ac_try_echo=$ac_try;;
21517 esac
21518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21519   (eval "$ac_try") 2>&5
21520   ac_status=$?
21521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522   (exit $ac_status); }; } &&
21523          { ac_try='test -s conftest.$ac_objext'
21524   { (case "(($ac_try" in
21525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21526   *) ac_try_echo=$ac_try;;
21527 esac
21528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21529   (eval "$ac_try") 2>&5
21530   ac_status=$?
21531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532   (exit $ac_status); }; }; then
21533   llvm_cv_cxx_visibility_inlines_hidden=yes
21534 else
21535   echo "$as_me: failed program was:" >&5
21536 sed 's/^/| /' conftest.$ac_ext >&5
21537
21538         llvm_cv_cxx_visibility_inlines_hidden=no
21539 fi
21540
21541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21542   CXXFLAGS="$oldcxxflags"
21543   ac_ext=c
21544 ac_cpp='$CPP $CPPFLAGS'
21545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21548
21549
21550 fi
21551 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21552 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21553 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21554   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21555
21556 else
21557   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21558
21559 fi
21560
21561
21562 if test "$llvm_cv_link_use_r" = "yes" ; then
21563   RPATH="-Wl,-R"
21564 else
21565   RPATH="-Wl,-rpath"
21566 fi
21567
21568
21569 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21570   RDYNAMIC="-Wl,-export-dynamic"
21571 else
21572   RDYNAMIC=""
21573 fi
21574
21575
21576
21577 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21578
21579
21580
21581
21582
21583
21584 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21585
21586 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21587
21588 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21589
21590 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21591
21592 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21593
21594
21595 ac_config_files="$ac_config_files Makefile.config"
21596
21597
21598 ac_config_files="$ac_config_files llvm.spec"
21599
21600
21601 ac_config_files="$ac_config_files docs/doxygen.cfg"
21602
21603 if test -f ${srcdir}/tools/clang/README.txt; then
21604   ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21605
21606 fi
21607
21608 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
21609
21610
21611 ac_config_commands="$ac_config_commands setup"
21612
21613 ac_config_commands="$ac_config_commands Makefile"
21614
21615
21616 ac_config_commands="$ac_config_commands Makefile.common"
21617
21618
21619 ac_config_commands="$ac_config_commands examples/Makefile"
21620
21621
21622 ac_config_commands="$ac_config_commands lib/Makefile"
21623
21624
21625 ac_config_commands="$ac_config_commands runtime/Makefile"
21626
21627
21628 ac_config_commands="$ac_config_commands test/Makefile"
21629
21630
21631 ac_config_commands="$ac_config_commands test/Makefile.tests"
21632
21633
21634 ac_config_commands="$ac_config_commands unittests/Makefile"
21635
21636
21637 ac_config_commands="$ac_config_commands tools/Makefile"
21638
21639
21640 ac_config_commands="$ac_config_commands utils/Makefile"
21641
21642
21643 ac_config_commands="$ac_config_commands projects/Makefile"
21644
21645
21646 ac_config_commands="$ac_config_commands bindings/Makefile"
21647
21648
21649 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21650
21651
21652
21653 cat >confcache <<\_ACEOF
21654 # This file is a shell script that caches the results of configure
21655 # tests run on this system so they can be shared between configure
21656 # scripts and configure runs, see configure's option --config-cache.
21657 # It is not useful on other systems.  If it contains results you don't
21658 # want to keep, you may remove or edit it.
21659 #
21660 # config.status only pays attention to the cache file if you give it
21661 # the --recheck option to rerun configure.
21662 #
21663 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21664 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21665 # following values.
21666
21667 _ACEOF
21668
21669 # The following way of writing the cache mishandles newlines in values,
21670 # but we know of no workaround that is simple, portable, and efficient.
21671 # So, we kill variables containing newlines.
21672 # Ultrix sh set writes to stderr and can't be redirected directly,
21673 # and sets the high bit in the cache file unless we assign to the vars.
21674 (
21675   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21676     eval ac_val=\$$ac_var
21677     case $ac_val in #(
21678     *${as_nl}*)
21679       case $ac_var in #(
21680       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21681 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21682       esac
21683       case $ac_var in #(
21684       _ | IFS | as_nl) ;; #(
21685       *) $as_unset $ac_var ;;
21686       esac ;;
21687     esac
21688   done
21689
21690   (set) 2>&1 |
21691     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21692     *${as_nl}ac_space=\ *)
21693       # `set' does not quote correctly, so add quotes (double-quote
21694       # substitution turns \\\\ into \\, and sed turns \\ into \).
21695       sed -n \
21696         "s/'/'\\\\''/g;
21697           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21698       ;; #(
21699     *)
21700       # `set' quotes correctly as required by POSIX, so do not add quotes.
21701       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21702       ;;
21703     esac |
21704     sort
21705 ) |
21706   sed '
21707      /^ac_cv_env_/b end
21708      t clear
21709      :clear
21710      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21711      t end
21712      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21713      :end' >>confcache
21714 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21715   if test -w "$cache_file"; then
21716     test "x$cache_file" != "x/dev/null" &&
21717       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21718 echo "$as_me: updating cache $cache_file" >&6;}
21719     cat confcache >$cache_file
21720   else
21721     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21722 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21723   fi
21724 fi
21725 rm -f confcache
21726
21727 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21728 # Let make expand exec_prefix.
21729 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21730
21731 DEFS=-DHAVE_CONFIG_H
21732
21733 ac_libobjs=
21734 ac_ltlibobjs=
21735 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21736   # 1. Remove the extension, and $U if already installed.
21737   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21738   ac_i=`echo "$ac_i" | sed "$ac_script"`
21739   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21740   #    will be set to the directory where LIBOBJS objects are built.
21741   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21742   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21743 done
21744 LIBOBJS=$ac_libobjs
21745
21746 LTLIBOBJS=$ac_ltlibobjs
21747
21748
21749 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21750   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21751 Usually this means the macro was only invoked conditionally." >&5
21752 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21753 Usually this means the macro was only invoked conditionally." >&2;}
21754    { (exit 1); exit 1; }; }
21755 fi
21756 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21757   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21758 Usually this means the macro was only invoked conditionally." >&5
21759 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21760 Usually this means the macro was only invoked conditionally." >&2;}
21761    { (exit 1); exit 1; }; }
21762 fi
21763
21764 : ${CONFIG_STATUS=./config.status}
21765 ac_clean_files_save=$ac_clean_files
21766 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21767 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21768 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21769 cat >$CONFIG_STATUS <<_ACEOF
21770 #! $SHELL
21771 # Generated by $as_me.
21772 # Run this file to recreate the current configuration.
21773 # Compiler output produced by configure, useful for debugging
21774 # configure, is in config.log if it exists.
21775
21776 debug=false
21777 ac_cs_recheck=false
21778 ac_cs_silent=false
21779 SHELL=\${CONFIG_SHELL-$SHELL}
21780 _ACEOF
21781
21782 cat >>$CONFIG_STATUS <<\_ACEOF
21783 ## --------------------- ##
21784 ## M4sh Initialization.  ##
21785 ## --------------------- ##
21786
21787 # Be Bourne compatible
21788 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21789   emulate sh
21790   NULLCMD=:
21791   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21792   # is contrary to our usage.  Disable this feature.
21793   alias -g '${1+"$@"}'='"$@"'
21794   setopt NO_GLOB_SUBST
21795 else
21796   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21797 fi
21798 BIN_SH=xpg4; export BIN_SH # for Tru64
21799 DUALCASE=1; export DUALCASE # for MKS sh
21800
21801
21802 # PATH needs CR
21803 # Avoid depending upon Character Ranges.
21804 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21805 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21806 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21807 as_cr_digits='0123456789'
21808 as_cr_alnum=$as_cr_Letters$as_cr_digits
21809
21810 # The user is always right.
21811 if test "${PATH_SEPARATOR+set}" != set; then
21812   echo "#! /bin/sh" >conf$$.sh
21813   echo  "exit 0"   >>conf$$.sh
21814   chmod +x conf$$.sh
21815   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21816     PATH_SEPARATOR=';'
21817   else
21818     PATH_SEPARATOR=:
21819   fi
21820   rm -f conf$$.sh
21821 fi
21822
21823 # Support unset when possible.
21824 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21825   as_unset=unset
21826 else
21827   as_unset=false
21828 fi
21829
21830
21831 # IFS
21832 # We need space, tab and new line, in precisely that order.  Quoting is
21833 # there to prevent editors from complaining about space-tab.
21834 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21835 # splitting by setting IFS to empty value.)
21836 as_nl='
21837 '
21838 IFS=" ""        $as_nl"
21839
21840 # Find who we are.  Look in the path if we contain no directory separator.
21841 case $0 in
21842   *[\\/]* ) as_myself=$0 ;;
21843   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21844 for as_dir in $PATH
21845 do
21846   IFS=$as_save_IFS
21847   test -z "$as_dir" && as_dir=.
21848   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21849 done
21850 IFS=$as_save_IFS
21851
21852      ;;
21853 esac
21854 # We did not find ourselves, most probably we were run as `sh COMMAND'
21855 # in which case we are not to be found in the path.
21856 if test "x$as_myself" = x; then
21857   as_myself=$0
21858 fi
21859 if test ! -f "$as_myself"; then
21860   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21861   { (exit 1); exit 1; }
21862 fi
21863
21864 # Work around bugs in pre-3.0 UWIN ksh.
21865 for as_var in ENV MAIL MAILPATH
21866 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21867 done
21868 PS1='$ '
21869 PS2='> '
21870 PS4='+ '
21871
21872 # NLS nuisances.
21873 for as_var in \
21874   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21875   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21876   LC_TELEPHONE LC_TIME
21877 do
21878   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21879     eval $as_var=C; export $as_var
21880   else
21881     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21882   fi
21883 done
21884
21885 # Required to use basename.
21886 if expr a : '\(a\)' >/dev/null 2>&1 &&
21887    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21888   as_expr=expr
21889 else
21890   as_expr=false
21891 fi
21892
21893 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21894   as_basename=basename
21895 else
21896   as_basename=false
21897 fi
21898
21899
21900 # Name of the executable.
21901 as_me=`$as_basename -- "$0" ||
21902 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21903          X"$0" : 'X\(//\)$' \| \
21904          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21905 echo X/"$0" |
21906     sed '/^.*\/\([^/][^/]*\)\/*$/{
21907             s//\1/
21908             q
21909           }
21910           /^X\/\(\/\/\)$/{
21911             s//\1/
21912             q
21913           }
21914           /^X\/\(\/\).*/{
21915             s//\1/
21916             q
21917           }
21918           s/.*/./; q'`
21919
21920 # CDPATH.
21921 $as_unset CDPATH
21922
21923
21924
21925   as_lineno_1=$LINENO
21926   as_lineno_2=$LINENO
21927   test "x$as_lineno_1" != "x$as_lineno_2" &&
21928   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21929
21930   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21931   # uniformly replaced by the line number.  The first 'sed' inserts a
21932   # line-number line after each line using $LINENO; the second 'sed'
21933   # does the real work.  The second script uses 'N' to pair each
21934   # line-number line with the line containing $LINENO, and appends
21935   # trailing '-' during substitution so that $LINENO is not a special
21936   # case at line end.
21937   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21938   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21939   # E. McMahon (1931-1989) for sed's syntax.  :-)
21940   sed -n '
21941     p
21942     /[$]LINENO/=
21943   ' <$as_myself |
21944     sed '
21945       s/[$]LINENO.*/&-/
21946       t lineno
21947       b
21948       :lineno
21949       N
21950       :loop
21951       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21952       t loop
21953       s/-\n.*//
21954     ' >$as_me.lineno &&
21955   chmod +x "$as_me.lineno" ||
21956     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21957    { (exit 1); exit 1; }; }
21958
21959   # Don't try to exec as it changes $[0], causing all sort of problems
21960   # (the dirname of $[0] is not the place where we might find the
21961   # original and so on.  Autoconf is especially sensitive to this).
21962   . "./$as_me.lineno"
21963   # Exit status is that of the last command.
21964   exit
21965 }
21966
21967
21968 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21969   as_dirname=dirname
21970 else
21971   as_dirname=false
21972 fi
21973
21974 ECHO_C= ECHO_N= ECHO_T=
21975 case `echo -n x` in
21976 -n*)
21977   case `echo 'x\c'` in
21978   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21979   *)   ECHO_C='\c';;
21980   esac;;
21981 *)
21982   ECHO_N='-n';;
21983 esac
21984
21985 if expr a : '\(a\)' >/dev/null 2>&1 &&
21986    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21987   as_expr=expr
21988 else
21989   as_expr=false
21990 fi
21991
21992 rm -f conf$$ conf$$.exe conf$$.file
21993 if test -d conf$$.dir; then
21994   rm -f conf$$.dir/conf$$.file
21995 else
21996   rm -f conf$$.dir
21997   mkdir conf$$.dir
21998 fi
21999 echo >conf$$.file
22000 if ln -s conf$$.file conf$$ 2>/dev/null; then
22001   as_ln_s='ln -s'
22002   # ... but there are two gotchas:
22003   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22004   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22005   # In both cases, we have to default to `cp -p'.
22006   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22007     as_ln_s='cp -p'
22008 elif ln conf$$.file conf$$ 2>/dev/null; then
22009   as_ln_s=ln
22010 else
22011   as_ln_s='cp -p'
22012 fi
22013 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22014 rmdir conf$$.dir 2>/dev/null
22015
22016 if mkdir -p . 2>/dev/null; then
22017   as_mkdir_p=:
22018 else
22019   test -d ./-p && rmdir ./-p
22020   as_mkdir_p=false
22021 fi
22022
22023 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
22024 # systems may use methods other than mode bits to determine executability.
22025 cat >conf$$.file <<_ASEOF
22026 #! /bin/sh
22027 exit 0
22028 _ASEOF
22029 chmod +x conf$$.file
22030 if test -x conf$$.file >/dev/null 2>&1; then
22031   as_executable_p="test -x"
22032 else
22033   as_executable_p=:
22034 fi
22035 rm -f conf$$.file
22036
22037 # Sed expression to map a string onto a valid CPP name.
22038 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22039
22040 # Sed expression to map a string onto a valid variable name.
22041 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22042
22043
22044 exec 6>&1
22045
22046 # Save the log message, to keep $[0] and so on meaningful, and to
22047 # report actual input values of CONFIG_FILES etc. instead of their
22048 # values after options handling.
22049 ac_log="
22050 This file was extended by llvm $as_me 3.0svn, which was
22051 generated by GNU Autoconf 2.60.  Invocation command line was
22052
22053   CONFIG_FILES    = $CONFIG_FILES
22054   CONFIG_HEADERS  = $CONFIG_HEADERS
22055   CONFIG_LINKS    = $CONFIG_LINKS
22056   CONFIG_COMMANDS = $CONFIG_COMMANDS
22057   $ $0 $@
22058
22059 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22060 "
22061
22062 _ACEOF
22063
22064 cat >>$CONFIG_STATUS <<_ACEOF
22065 # Files that config.status was made for.
22066 config_files="$ac_config_files"
22067 config_headers="$ac_config_headers"
22068 config_commands="$ac_config_commands"
22069
22070 _ACEOF
22071
22072 cat >>$CONFIG_STATUS <<\_ACEOF
22073 ac_cs_usage="\
22074 \`$as_me' instantiates files from templates according to the
22075 current configuration.
22076
22077 Usage: $0 [OPTIONS] [FILE]...
22078
22079   -h, --help       print this help, then exit
22080   -V, --version    print version number, then exit
22081   -q, --quiet      do not print progress messages
22082   -d, --debug      don't remove temporary files
22083       --recheck    update $as_me by reconfiguring in the same conditions
22084   --file=FILE[:TEMPLATE]
22085                    instantiate the configuration file FILE
22086   --header=FILE[:TEMPLATE]
22087                    instantiate the configuration header FILE
22088
22089 Configuration files:
22090 $config_files
22091
22092 Configuration headers:
22093 $config_headers
22094
22095 Configuration commands:
22096 $config_commands
22097
22098 Report bugs to <bug-autoconf@gnu.org>."
22099
22100 _ACEOF
22101 cat >>$CONFIG_STATUS <<_ACEOF
22102 ac_cs_version="\\
22103 llvm config.status 3.0svn
22104 configured by $0, generated by GNU Autoconf 2.60,
22105   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22106
22107 Copyright (C) 2006 Free Software Foundation, Inc.
22108 This config.status script is free software; the Free Software Foundation
22109 gives unlimited permission to copy, distribute and modify it."
22110
22111 ac_pwd='$ac_pwd'
22112 srcdir='$srcdir'
22113 INSTALL='$INSTALL'
22114 _ACEOF
22115
22116 cat >>$CONFIG_STATUS <<\_ACEOF
22117 # If no file are specified by the user, then we need to provide default
22118 # value.  By we need to know if files were specified by the user.
22119 ac_need_defaults=:
22120 while test $# != 0
22121 do
22122   case $1 in
22123   --*=*)
22124     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22125     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22126     ac_shift=:
22127     ;;
22128   *)
22129     ac_option=$1
22130     ac_optarg=$2
22131     ac_shift=shift
22132     ;;
22133   esac
22134
22135   case $ac_option in
22136   # Handling of the options.
22137   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22138     ac_cs_recheck=: ;;
22139   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22140     echo "$ac_cs_version"; exit ;;
22141   --debug | --debu | --deb | --de | --d | -d )
22142     debug=: ;;
22143   --file | --fil | --fi | --f )
22144     $ac_shift
22145     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22146     ac_need_defaults=false;;
22147   --header | --heade | --head | --hea )
22148     $ac_shift
22149     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22150     ac_need_defaults=false;;
22151   --he | --h)
22152     # Conflict between --help and --header
22153     { echo "$as_me: error: ambiguous option: $1
22154 Try \`$0 --help' for more information." >&2
22155    { (exit 1); exit 1; }; };;
22156   --help | --hel | -h )
22157     echo "$ac_cs_usage"; exit ;;
22158   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22159   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22160     ac_cs_silent=: ;;
22161
22162   # This is an error.
22163   -*) { echo "$as_me: error: unrecognized option: $1
22164 Try \`$0 --help' for more information." >&2
22165    { (exit 1); exit 1; }; } ;;
22166
22167   *) ac_config_targets="$ac_config_targets $1"
22168      ac_need_defaults=false ;;
22169
22170   esac
22171   shift
22172 done
22173
22174 ac_configure_extra_args=
22175
22176 if $ac_cs_silent; then
22177   exec 6>/dev/null
22178   ac_configure_extra_args="$ac_configure_extra_args --silent"
22179 fi
22180
22181 _ACEOF
22182 cat >>$CONFIG_STATUS <<_ACEOF
22183 if \$ac_cs_recheck; then
22184   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22185   CONFIG_SHELL=$SHELL
22186   export CONFIG_SHELL
22187   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22188 fi
22189
22190 _ACEOF
22191 cat >>$CONFIG_STATUS <<\_ACEOF
22192 exec 5>>config.log
22193 {
22194   echo
22195   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22196 ## Running $as_me. ##
22197 _ASBOX
22198   echo "$ac_log"
22199 } >&5
22200
22201 _ACEOF
22202 cat >>$CONFIG_STATUS <<_ACEOF
22203 #
22204 # INIT-COMMANDS
22205 #
22206 llvm_src="${srcdir}"
22207
22208 _ACEOF
22209
22210 cat >>$CONFIG_STATUS <<\_ACEOF
22211
22212 # Handling of arguments.
22213 for ac_config_target in $ac_config_targets
22214 do
22215   case $ac_config_target in
22216     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22217     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22218     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22219     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22220     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22221     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22222     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22223     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22224     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22225     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22226     "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
22227     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
22228     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22229     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22230     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22231     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22232     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22233     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22234     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22235     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22236     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22237     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22238     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22239     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22240     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22241     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22242
22243   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22244 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22245    { (exit 1); exit 1; }; };;
22246   esac
22247 done
22248
22249
22250 # If the user did not use the arguments to specify the items to instantiate,
22251 # then the envvar interface is used.  Set only those that are not.
22252 # We use the long form for the default assignment because of an extremely
22253 # bizarre bug on SunOS 4.1.3.
22254 if $ac_need_defaults; then
22255   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22256   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22257   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22258 fi
22259
22260 # Have a temporary directory for convenience.  Make it in the build tree
22261 # simply because there is no reason against having it here, and in addition,
22262 # creating and moving files from /tmp can sometimes cause problems.
22263 # Hook for its removal unless debugging.
22264 # Note that there is a small window in which the directory will not be cleaned:
22265 # after its creation but before its name has been assigned to `$tmp'.
22266 $debug ||
22267 {
22268   tmp=
22269   trap 'exit_status=$?
22270   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22271 ' 0
22272   trap '{ (exit 1); exit 1; }' 1 2 13 15
22273 }
22274 # Create a (secure) tmp directory for tmp files.
22275
22276 {
22277   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22278   test -n "$tmp" && test -d "$tmp"
22279 }  ||
22280 {
22281   tmp=./conf$$-$RANDOM
22282   (umask 077 && mkdir "$tmp")
22283 } ||
22284 {
22285    echo "$me: cannot create a temporary directory in ." >&2
22286    { (exit 1); exit 1; }
22287 }
22288
22289 #
22290 # Set up the sed scripts for CONFIG_FILES section.
22291 #
22292
22293 # No need to generate the scripts if there are no CONFIG_FILES.
22294 # This happens for instance when ./config.status config.h
22295 if test -n "$CONFIG_FILES"; then
22296
22297 _ACEOF
22298
22299
22300
22301 ac_delim='%!_!# '
22302 for ac_last_try in false false false false false :; do
22303   cat >conf$$subs.sed <<_ACEOF
22304 SHELL!$SHELL$ac_delim
22305 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22306 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22307 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22308 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22309 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22310 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22311 exec_prefix!$exec_prefix$ac_delim
22312 prefix!$prefix$ac_delim
22313 program_transform_name!$program_transform_name$ac_delim
22314 bindir!$bindir$ac_delim
22315 sbindir!$sbindir$ac_delim
22316 libexecdir!$libexecdir$ac_delim
22317 datarootdir!$datarootdir$ac_delim
22318 datadir!$datadir$ac_delim
22319 sysconfdir!$sysconfdir$ac_delim
22320 sharedstatedir!$sharedstatedir$ac_delim
22321 localstatedir!$localstatedir$ac_delim
22322 includedir!$includedir$ac_delim
22323 oldincludedir!$oldincludedir$ac_delim
22324 docdir!$docdir$ac_delim
22325 infodir!$infodir$ac_delim
22326 htmldir!$htmldir$ac_delim
22327 dvidir!$dvidir$ac_delim
22328 pdfdir!$pdfdir$ac_delim
22329 psdir!$psdir$ac_delim
22330 libdir!$libdir$ac_delim
22331 localedir!$localedir$ac_delim
22332 mandir!$mandir$ac_delim
22333 DEFS!$DEFS$ac_delim
22334 ECHO_C!$ECHO_C$ac_delim
22335 ECHO_N!$ECHO_N$ac_delim
22336 ECHO_T!$ECHO_T$ac_delim
22337 LIBS!$LIBS$ac_delim
22338 build_alias!$build_alias$ac_delim
22339 host_alias!$host_alias$ac_delim
22340 target_alias!$target_alias$ac_delim
22341 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22342 CC!$CC$ac_delim
22343 CFLAGS!$CFLAGS$ac_delim
22344 LDFLAGS!$LDFLAGS$ac_delim
22345 CPPFLAGS!$CPPFLAGS$ac_delim
22346 ac_ct_CC!$ac_ct_CC$ac_delim
22347 EXEEXT!$EXEEXT$ac_delim
22348 OBJEXT!$OBJEXT$ac_delim
22349 CXX!$CXX$ac_delim
22350 CXXFLAGS!$CXXFLAGS$ac_delim
22351 ac_ct_CXX!$ac_ct_CXX$ac_delim
22352 CPP!$CPP$ac_delim
22353 subdirs!$subdirs$ac_delim
22354 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22355 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22356 build!$build$ac_delim
22357 build_cpu!$build_cpu$ac_delim
22358 build_vendor!$build_vendor$ac_delim
22359 build_os!$build_os$ac_delim
22360 host!$host$ac_delim
22361 host_cpu!$host_cpu$ac_delim
22362 host_vendor!$host_vendor$ac_delim
22363 host_os!$host_os$ac_delim
22364 target!$target$ac_delim
22365 target_cpu!$target_cpu$ac_delim
22366 target_vendor!$target_vendor$ac_delim
22367 target_os!$target_os$ac_delim
22368 OS!$OS$ac_delim
22369 HOST_OS!$HOST_OS$ac_delim
22370 TARGET_OS!$TARGET_OS$ac_delim
22371 LINKALL!$LINKALL$ac_delim
22372 NOLINKALL!$NOLINKALL$ac_delim
22373 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22374 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22375 ARCH!$ARCH$ac_delim
22376 ENDIAN!$ENDIAN$ac_delim
22377 GREP!$GREP$ac_delim
22378 EGREP!$EGREP$ac_delim
22379 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22380 BUILD_CC!$BUILD_CC$ac_delim
22381 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22382 BUILD_CXX!$BUILD_CXX$ac_delim
22383 CVSBUILD!$CVSBUILD$ac_delim
22384 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22385 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22386 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22387 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22388 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22389 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22390 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22391 JIT!$JIT$ac_delim
22392 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22393 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22394 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22395 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
22396 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22397 ENABLE_PIC!$ENABLE_PIC$ac_delim
22398 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22399 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22400 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22401 _ACEOF
22402
22403   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22404     break
22405   elif $ac_last_try; then
22406     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22407 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22408    { (exit 1); exit 1; }; }
22409   else
22410     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22411   fi
22412 done
22413
22414 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22415 if test -n "$ac_eof"; then
22416   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22417   ac_eof=`expr $ac_eof + 1`
22418 fi
22419
22420 cat >>$CONFIG_STATUS <<_ACEOF
22421 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22422 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22423 _ACEOF
22424 sed '
22425 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22426 s/^/s,@/; s/!/@,|#_!!_#|/
22427 :n
22428 t n
22429 s/'"$ac_delim"'$/,g/; t
22430 s/$/\\/; p
22431 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22432 ' >>$CONFIG_STATUS <conf$$subs.sed
22433 rm -f conf$$subs.sed
22434 cat >>$CONFIG_STATUS <<_ACEOF
22435 CEOF$ac_eof
22436 _ACEOF
22437
22438
22439 ac_delim='%!_!# '
22440 for ac_last_try in false false false false false :; do
22441   cat >conf$$subs.sed <<_ACEOF
22442 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22443 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22444 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22445 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22446 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22447 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
22448 CLANGPATH!$CLANGPATH$ac_delim
22449 CLANGXXPATH!$CLANGXXPATH$ac_delim
22450 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
22451 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22452 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22453 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22454 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22455 NM!$NM$ac_delim
22456 ifGNUmake!$ifGNUmake$ac_delim
22457 LN_S!$LN_S$ac_delim
22458 CMP!$CMP$ac_delim
22459 CP!$CP$ac_delim
22460 DATE!$DATE$ac_delim
22461 FIND!$FIND$ac_delim
22462 MKDIR!$MKDIR$ac_delim
22463 MV!$MV$ac_delim
22464 RANLIB!$RANLIB$ac_delim
22465 AR!$AR$ac_delim
22466 RM!$RM$ac_delim
22467 SED!$SED$ac_delim
22468 TAR!$TAR$ac_delim
22469 BINPWD!$BINPWD$ac_delim
22470 GRAPHVIZ!$GRAPHVIZ$ac_delim
22471 DOT!$DOT$ac_delim
22472 FDP!$FDP$ac_delim
22473 NEATO!$NEATO$ac_delim
22474 TWOPI!$TWOPI$ac_delim
22475 CIRCO!$CIRCO$ac_delim
22476 GV!$GV$ac_delim
22477 DOTTY!$DOTTY$ac_delim
22478 XDOT_PY!$XDOT_PY$ac_delim
22479 PERL!$PERL$ac_delim
22480 HAVE_PERL!$HAVE_PERL$ac_delim
22481 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22482 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22483 INSTALL_DATA!$INSTALL_DATA$ac_delim
22484 BZIP2!$BZIP2$ac_delim
22485 CAT!$CAT$ac_delim
22486 DOXYGEN!$DOXYGEN$ac_delim
22487 GROFF!$GROFF$ac_delim
22488 GZIPBIN!$GZIPBIN$ac_delim
22489 POD2HTML!$POD2HTML$ac_delim
22490 POD2MAN!$POD2MAN$ac_delim
22491 PDFROFF!$PDFROFF$ac_delim
22492 RUNTEST!$RUNTEST$ac_delim
22493 TCLSH!$TCLSH$ac_delim
22494 ZIP!$ZIP$ac_delim
22495 OCAMLC!$OCAMLC$ac_delim
22496 OCAMLOPT!$OCAMLOPT$ac_delim
22497 OCAMLDEP!$OCAMLDEP$ac_delim
22498 OCAMLDOC!$OCAMLDOC$ac_delim
22499 GAS!$GAS$ac_delim
22500 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22501 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22502 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22503 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22504 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22505 LIBADD_DL!$LIBADD_DL$ac_delim
22506 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
22507 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
22508 LLVMGCC!$LLVMGCC$ac_delim
22509 LLVMGXX!$LLVMGXX$ac_delim
22510 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
22511 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22512 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22513 USE_UDIS86!$USE_UDIS86$ac_delim
22514 USE_OPROFILE!$USE_OPROFILE$ac_delim
22515 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22516 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22517 MMAP_FILE!$MMAP_FILE$ac_delim
22518 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
22519 LLVMCC1!$LLVMCC1$ac_delim
22520 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
22521 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
22522 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
22523 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
22524 LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
22525 SHLIBEXT!$SHLIBEXT$ac_delim
22526 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22527 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22528 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22529 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22530 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22531 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22532 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22533 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22534 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22535 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22536 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22537 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22538 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22539 _ACEOF
22540
22541   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22542     break
22543   elif $ac_last_try; then
22544     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22545 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22546    { (exit 1); exit 1; }; }
22547   else
22548     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22549   fi
22550 done
22551
22552 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22553 if test -n "$ac_eof"; then
22554   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22555   ac_eof=`expr $ac_eof + 1`
22556 fi
22557
22558 cat >>$CONFIG_STATUS <<_ACEOF
22559 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22560 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22561 _ACEOF
22562 sed '
22563 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22564 s/^/s,@/; s/!/@,|#_!!_#|/
22565 :n
22566 t n
22567 s/'"$ac_delim"'$/,g/; t
22568 s/$/\\/; p
22569 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22570 ' >>$CONFIG_STATUS <conf$$subs.sed
22571 rm -f conf$$subs.sed
22572 cat >>$CONFIG_STATUS <<_ACEOF
22573 CEOF$ac_eof
22574 _ACEOF
22575
22576
22577 ac_delim='%!_!# '
22578 for ac_last_try in false false false false false :; do
22579   cat >conf$$subs.sed <<_ACEOF
22580 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22581 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22582 RPATH!$RPATH$ac_delim
22583 RDYNAMIC!$RDYNAMIC$ac_delim
22584 LIBOBJS!$LIBOBJS$ac_delim
22585 LTLIBOBJS!$LTLIBOBJS$ac_delim
22586 _ACEOF
22587
22588   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
22589     break
22590   elif $ac_last_try; then
22591     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22592 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22593    { (exit 1); exit 1; }; }
22594   else
22595     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22596   fi
22597 done
22598
22599 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22600 if test -n "$ac_eof"; then
22601   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22602   ac_eof=`expr $ac_eof + 1`
22603 fi
22604
22605 cat >>$CONFIG_STATUS <<_ACEOF
22606 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22607 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22608 _ACEOF
22609 sed '
22610 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22611 s/^/s,@/; s/!/@,|#_!!_#|/
22612 :n
22613 t n
22614 s/'"$ac_delim"'$/,g/; t
22615 s/$/\\/; p
22616 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22617 ' >>$CONFIG_STATUS <conf$$subs.sed
22618 rm -f conf$$subs.sed
22619 cat >>$CONFIG_STATUS <<_ACEOF
22620 :end
22621 s/|#_!!_#|//g
22622 CEOF$ac_eof
22623 _ACEOF
22624
22625
22626 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22627 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22628 # trailing colons and then remove the whole line if VPATH becomes empty
22629 # (actually we leave an empty line to preserve line numbers).
22630 if test "x$srcdir" = x.; then
22631   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22632 s/:*\$(srcdir):*/:/
22633 s/:*\${srcdir}:*/:/
22634 s/:*@srcdir@:*/:/
22635 s/^\([^=]*=[     ]*\):*/\1/
22636 s/:*$//
22637 s/^[^=]*=[       ]*$//
22638 }'
22639 fi
22640
22641 cat >>$CONFIG_STATUS <<\_ACEOF
22642 fi # test -n "$CONFIG_FILES"
22643
22644
22645 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22646 do
22647   case $ac_tag in
22648   :[FHLC]) ac_mode=$ac_tag; continue;;
22649   esac
22650   case $ac_mode$ac_tag in
22651   :[FHL]*:*);;
22652   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22653 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22654    { (exit 1); exit 1; }; };;
22655   :[FH]-) ac_tag=-:-;;
22656   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22657   esac
22658   ac_save_IFS=$IFS
22659   IFS=:
22660   set x $ac_tag
22661   IFS=$ac_save_IFS
22662   shift
22663   ac_file=$1
22664   shift
22665
22666   case $ac_mode in
22667   :L) ac_source=$1;;
22668   :[FH])
22669     ac_file_inputs=
22670     for ac_f
22671     do
22672       case $ac_f in
22673       -) ac_f="$tmp/stdin";;
22674       *) # Look for the file first in the build tree, then in the source tree
22675          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22676          # because $ac_f cannot contain `:'.
22677          test -f "$ac_f" ||
22678            case $ac_f in
22679            [\\/$]*) false;;
22680            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22681            esac ||
22682            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22683 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22684    { (exit 1); exit 1; }; };;
22685       esac
22686       ac_file_inputs="$ac_file_inputs $ac_f"
22687     done
22688
22689     # Let's still pretend it is `configure' which instantiates (i.e., don't
22690     # use $as_me), people would be surprised to read:
22691     #    /* config.h.  Generated by config.status.  */
22692     configure_input="Generated from "`IFS=:
22693           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22694     if test x"$ac_file" != x-; then
22695       configure_input="$ac_file.  $configure_input"
22696       { echo "$as_me:$LINENO: creating $ac_file" >&5
22697 echo "$as_me: creating $ac_file" >&6;}
22698     fi
22699
22700     case $ac_tag in
22701     *:-:* | *:-) cat >"$tmp/stdin";;
22702     esac
22703     ;;
22704   esac
22705
22706   ac_dir=`$as_dirname -- "$ac_file" ||
22707 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22708          X"$ac_file" : 'X\(//\)[^/]' \| \
22709          X"$ac_file" : 'X\(//\)$' \| \
22710          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22711 echo X"$ac_file" |
22712     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22713             s//\1/
22714             q
22715           }
22716           /^X\(\/\/\)[^/].*/{
22717             s//\1/
22718             q
22719           }
22720           /^X\(\/\/\)$/{
22721             s//\1/
22722             q
22723           }
22724           /^X\(\/\).*/{
22725             s//\1/
22726             q
22727           }
22728           s/.*/./; q'`
22729   { as_dir="$ac_dir"
22730   case $as_dir in #(
22731   -*) as_dir=./$as_dir;;
22732   esac
22733   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22734     as_dirs=
22735     while :; do
22736       case $as_dir in #(
22737       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22738       *) as_qdir=$as_dir;;
22739       esac
22740       as_dirs="'$as_qdir' $as_dirs"
22741       as_dir=`$as_dirname -- "$as_dir" ||
22742 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22743          X"$as_dir" : 'X\(//\)[^/]' \| \
22744          X"$as_dir" : 'X\(//\)$' \| \
22745          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22746 echo X"$as_dir" |
22747     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22748             s//\1/
22749             q
22750           }
22751           /^X\(\/\/\)[^/].*/{
22752             s//\1/
22753             q
22754           }
22755           /^X\(\/\/\)$/{
22756             s//\1/
22757             q
22758           }
22759           /^X\(\/\).*/{
22760             s//\1/
22761             q
22762           }
22763           s/.*/./; q'`
22764       test -d "$as_dir" && break
22765     done
22766     test -z "$as_dirs" || eval "mkdir $as_dirs"
22767   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22768 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22769    { (exit 1); exit 1; }; }; }
22770   ac_builddir=.
22771
22772 case "$ac_dir" in
22773 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22774 *)
22775   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22776   # A ".." for each directory in $ac_dir_suffix.
22777   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22778   case $ac_top_builddir_sub in
22779   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22780   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22781   esac ;;
22782 esac
22783 ac_abs_top_builddir=$ac_pwd
22784 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22785 # for backward compatibility:
22786 ac_top_builddir=$ac_top_build_prefix
22787
22788 case $srcdir in
22789   .)  # We are building in place.
22790     ac_srcdir=.
22791     ac_top_srcdir=$ac_top_builddir_sub
22792     ac_abs_top_srcdir=$ac_pwd ;;
22793   [\\/]* | ?:[\\/]* )  # Absolute name.
22794     ac_srcdir=$srcdir$ac_dir_suffix;
22795     ac_top_srcdir=$srcdir
22796     ac_abs_top_srcdir=$srcdir ;;
22797   *) # Relative name.
22798     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22799     ac_top_srcdir=$ac_top_build_prefix$srcdir
22800     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22801 esac
22802 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22803
22804
22805   case $ac_mode in
22806   :F)
22807   #
22808   # CONFIG_FILE
22809   #
22810
22811   case $INSTALL in
22812   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22813   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22814   esac
22815 _ACEOF
22816
22817 cat >>$CONFIG_STATUS <<\_ACEOF
22818 # If the template does not know about datarootdir, expand it.
22819 # FIXME: This hack should be removed a few years after 2.60.
22820 ac_datarootdir_hack=; ac_datarootdir_seen=
22821
22822 case `sed -n '/datarootdir/ {
22823   p
22824   q
22825 }
22826 /@datadir@/p
22827 /@docdir@/p
22828 /@infodir@/p
22829 /@localedir@/p
22830 /@mandir@/p
22831 ' $ac_file_inputs` in
22832 *datarootdir*) ac_datarootdir_seen=yes;;
22833 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22834   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22835 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22836 _ACEOF
22837 cat >>$CONFIG_STATUS <<_ACEOF
22838   ac_datarootdir_hack='
22839   s&@datadir@&$datadir&g
22840   s&@docdir@&$docdir&g
22841   s&@infodir@&$infodir&g
22842   s&@localedir@&$localedir&g
22843   s&@mandir@&$mandir&g
22844     s&\\\${datarootdir}&$datarootdir&g' ;;
22845 esac
22846 _ACEOF
22847
22848 # Neutralize VPATH when `$srcdir' = `.'.
22849 # Shell code in configure.ac might set extrasub.
22850 # FIXME: do we really want to maintain this feature?
22851 cat >>$CONFIG_STATUS <<_ACEOF
22852   sed "$ac_vpsub
22853 $extrasub
22854 _ACEOF
22855 cat >>$CONFIG_STATUS <<\_ACEOF
22856 :t
22857 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22858 s&@configure_input@&$configure_input&;t t
22859 s&@top_builddir@&$ac_top_builddir_sub&;t t
22860 s&@srcdir@&$ac_srcdir&;t t
22861 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22862 s&@top_srcdir@&$ac_top_srcdir&;t t
22863 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22864 s&@builddir@&$ac_builddir&;t t
22865 s&@abs_builddir@&$ac_abs_builddir&;t t
22866 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22867 s&@INSTALL@&$ac_INSTALL&;t t
22868 $ac_datarootdir_hack
22869 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
22870
22871 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22872   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22873   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22874   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22875 which seems to be undefined.  Please make sure it is defined." >&5
22876 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22877 which seems to be undefined.  Please make sure it is defined." >&2;}
22878
22879   rm -f "$tmp/stdin"
22880   case $ac_file in
22881   -) cat "$tmp/out"; rm -f "$tmp/out";;
22882   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22883   esac
22884  ;;
22885   :H)
22886   #
22887   # CONFIG_HEADER
22888   #
22889 _ACEOF
22890
22891 # Transform confdefs.h into a sed script `conftest.defines', that
22892 # substitutes the proper values into config.h.in to produce config.h.
22893 rm -f conftest.defines conftest.tail
22894 # First, append a space to every undef/define line, to ease matching.
22895 echo 's/$/ /' >conftest.defines
22896 # Then, protect against being on the right side of a sed subst, or in
22897 # an unquoted here document, in config.status.  If some macros were
22898 # called several times there might be several #defines for the same
22899 # symbol, which is useless.  But do not sort them, since the last
22900 # AC_DEFINE must be honored.
22901 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22902 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22903 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22904 # PARAMS is the parameter list in the macro definition--in most cases, it's
22905 # just an empty string.
22906 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22907 ac_dB='\\)[      (].*,\\1define\\2'
22908 ac_dC=' '
22909 ac_dD=' ,'
22910
22911 uniq confdefs.h |
22912   sed -n '
22913         t rset
22914         :rset
22915         s/^[     ]*#[    ]*define[       ][      ]*//
22916         t ok
22917         d
22918         :ok
22919         s/[\\&,]/\\&/g
22920         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22921         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22922   ' >>conftest.defines
22923
22924 # Remove the space that was appended to ease matching.
22925 # Then replace #undef with comments.  This is necessary, for
22926 # example, in the case of _POSIX_SOURCE, which is predefined and required
22927 # on some systems where configure will not decide to define it.
22928 # (The regexp can be short, since the line contains either #define or #undef.)
22929 echo 's/ $//
22930 s,^[     #]*u.*,/* & */,' >>conftest.defines
22931
22932 # Break up conftest.defines:
22933 ac_max_sed_lines=50
22934
22935 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22936 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22937 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22938 # et cetera.
22939 ac_in='$ac_file_inputs'
22940 ac_out='"$tmp/out1"'
22941 ac_nxt='"$tmp/out2"'
22942
22943 while :
22944 do
22945   # Write a here document:
22946     cat >>$CONFIG_STATUS <<_ACEOF
22947     # First, check the format of the line:
22948     cat >"\$tmp/defines.sed" <<\\CEOF
22949 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22950 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22951 b
22952 :def
22953 _ACEOF
22954   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22955   echo 'CEOF
22956     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22957   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22958   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22959   grep . conftest.tail >/dev/null || break
22960   rm -f conftest.defines
22961   mv conftest.tail conftest.defines
22962 done
22963 rm -f conftest.defines conftest.tail
22964
22965 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22966 cat >>$CONFIG_STATUS <<\_ACEOF
22967   if test x"$ac_file" != x-; then
22968     echo "/* $configure_input  */" >"$tmp/config.h"
22969     cat "$ac_result" >>"$tmp/config.h"
22970     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22971       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22972 echo "$as_me: $ac_file is unchanged" >&6;}
22973     else
22974       rm -f $ac_file
22975       mv "$tmp/config.h" $ac_file
22976     fi
22977   else
22978     echo "/* $configure_input  */"
22979     cat "$ac_result"
22980   fi
22981   rm -f "$tmp/out12"
22982  ;;
22983
22984   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22985 echo "$as_me: executing $ac_file commands" >&6;}
22986  ;;
22987   esac
22988
22989
22990   case $ac_file$ac_mode in
22991     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22992    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22993     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22994    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22995     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22996    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22997     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22998    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22999     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23000    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23001     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23002    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23003     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23004    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23005     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23006    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23007     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23008    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23009     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23010    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23011     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23012    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23013     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23014    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23015     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23016    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23017
23018   esac
23019 done # for ac_tag
23020
23021
23022 { (exit 0); exit 0; }
23023 _ACEOF
23024 chmod +x $CONFIG_STATUS
23025 ac_clean_files=$ac_clean_files_save
23026
23027
23028 # configure is writing to config.log, and then calls config.status.
23029 # config.status does its own redirection, appending to config.log.
23030 # Unfortunately, on DOS this fails, as config.log is still kept open
23031 # by configure, so config.status won't be able to write to it; its
23032 # output is simply discarded.  So we exec the FD to /dev/null,
23033 # effectively closing config.log, so it can be properly (re)opened and
23034 # appended to by config.status.  When coming back to configure, we
23035 # need to make the FD available again.
23036 if test "$no_create" != yes; then
23037   ac_cs_success=:
23038   ac_config_status_args=
23039   test "$silent" = yes &&
23040     ac_config_status_args="$ac_config_status_args --quiet"
23041   exec 5>/dev/null
23042   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23043   exec 5>>config.log
23044   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23045   # would make configure fail if this is the last instruction.
23046   $ac_cs_success || { (exit 1); exit 1; }
23047 fi
23048
23049 #
23050 # CONFIG_SUBDIRS section.
23051 #
23052 if test "$no_recursion" != yes; then
23053
23054   # Remove --cache-file and --srcdir arguments so they do not pile up.
23055   ac_sub_configure_args=
23056   ac_prev=
23057   eval "set x $ac_configure_args"
23058   shift
23059   for ac_arg
23060   do
23061     if test -n "$ac_prev"; then
23062       ac_prev=
23063       continue
23064     fi
23065     case $ac_arg in
23066     -cache-file | --cache-file | --cache-fil | --cache-fi \
23067     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23068       ac_prev=cache_file ;;
23069     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23070     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23071     | --c=*)
23072       ;;
23073     --config-cache | -C)
23074       ;;
23075     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23076       ac_prev=srcdir ;;
23077     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23078       ;;
23079     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23080       ac_prev=prefix ;;
23081     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23082       ;;
23083     *)
23084       case $ac_arg in
23085       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23086       esac
23087       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23088     esac
23089   done
23090
23091   # Always prepend --prefix to ensure using the same prefix
23092   # in subdir configurations.
23093   ac_arg="--prefix=$prefix"
23094   case $ac_arg in
23095   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23096   esac
23097   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23098
23099   ac_popdir=`pwd`
23100   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23101
23102     # Do not complain, so a configure script can configure whichever
23103     # parts of a large source tree are present.
23104     test -d "$srcdir/$ac_dir" || continue
23105
23106     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23107     echo "$as_me:$LINENO: $ac_msg" >&5
23108     echo "$ac_msg" >&6
23109     { as_dir="$ac_dir"
23110   case $as_dir in #(
23111   -*) as_dir=./$as_dir;;
23112   esac
23113   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23114     as_dirs=
23115     while :; do
23116       case $as_dir in #(
23117       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23118       *) as_qdir=$as_dir;;
23119       esac
23120       as_dirs="'$as_qdir' $as_dirs"
23121       as_dir=`$as_dirname -- "$as_dir" ||
23122 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23123          X"$as_dir" : 'X\(//\)[^/]' \| \
23124          X"$as_dir" : 'X\(//\)$' \| \
23125          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23126 echo X"$as_dir" |
23127     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23128             s//\1/
23129             q
23130           }
23131           /^X\(\/\/\)[^/].*/{
23132             s//\1/
23133             q
23134           }
23135           /^X\(\/\/\)$/{
23136             s//\1/
23137             q
23138           }
23139           /^X\(\/\).*/{
23140             s//\1/
23141             q
23142           }
23143           s/.*/./; q'`
23144       test -d "$as_dir" && break
23145     done
23146     test -z "$as_dirs" || eval "mkdir $as_dirs"
23147   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23148 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23149    { (exit 1); exit 1; }; }; }
23150     ac_builddir=.
23151
23152 case "$ac_dir" in
23153 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23154 *)
23155   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23156   # A ".." for each directory in $ac_dir_suffix.
23157   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23158   case $ac_top_builddir_sub in
23159   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23160   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23161   esac ;;
23162 esac
23163 ac_abs_top_builddir=$ac_pwd
23164 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23165 # for backward compatibility:
23166 ac_top_builddir=$ac_top_build_prefix
23167
23168 case $srcdir in
23169   .)  # We are building in place.
23170     ac_srcdir=.
23171     ac_top_srcdir=$ac_top_builddir_sub
23172     ac_abs_top_srcdir=$ac_pwd ;;
23173   [\\/]* | ?:[\\/]* )  # Absolute name.
23174     ac_srcdir=$srcdir$ac_dir_suffix;
23175     ac_top_srcdir=$srcdir
23176     ac_abs_top_srcdir=$srcdir ;;
23177   *) # Relative name.
23178     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23179     ac_top_srcdir=$ac_top_build_prefix$srcdir
23180     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23181 esac
23182 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23183
23184
23185     cd "$ac_dir"
23186
23187     # Check for guested configure; otherwise get Cygnus style configure.
23188     if test -f "$ac_srcdir/configure.gnu"; then
23189       ac_sub_configure=$ac_srcdir/configure.gnu
23190     elif test -f "$ac_srcdir/configure"; then
23191       ac_sub_configure=$ac_srcdir/configure
23192     elif test -f "$ac_srcdir/configure.in"; then
23193       # This should be Cygnus configure.
23194       ac_sub_configure=$ac_aux_dir/configure
23195     else
23196       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23197 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23198       ac_sub_configure=
23199     fi
23200
23201     # The recursion is here.
23202     if test -n "$ac_sub_configure"; then
23203       # Make the cache file name correct relative to the subdirectory.
23204       case $cache_file in
23205       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23206       *) # Relative name.
23207         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23208       esac
23209
23210       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23211 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23212       # The eval makes quoting arguments work.
23213       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23214            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23215         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23216 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23217    { (exit 1); exit 1; }; }
23218     fi
23219
23220     cd "$ac_popdir"
23221   done
23222 fi
23223