01357a928d0cc1fa44d7e2956439514052103ed2
[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.2svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2012 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.2svn'
565 PACKAGE_STRING='LLVM 3.2svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
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 HOST_ARCH
678 ENDIAN
679 GREP
680 EGREP
681 LLVM_CROSS_COMPILING
682 BUILD_CC
683 BUILD_EXEEXT
684 BUILD_CXX
685 CVSBUILD
686 ENABLE_LIBCPP
687 ENABLE_CXX11
688 ENABLE_OPTIMIZED
689 ENABLE_PROFILING
690 DISABLE_ASSERTIONS
691 ENABLE_EXPENSIVE_CHECKS
692 EXPENSIVE_CHECKS
693 DEBUG_RUNTIME
694 DEBUG_SYMBOLS
695 JIT
696 TARGET_HAS_JIT
697 ENABLE_DOCS
698 ENABLE_DOXYGEN
699 LLVM_ENABLE_THREADS
700 ENABLE_PTHREADS
701 ENABLE_PIC
702 ENABLE_SHARED
703 ENABLE_EMBED_STDCXX
704 ENABLE_TIMESTAMPS
705 TARGETS_TO_BUILD
706 LLVM_ENUM_TARGETS
707 LLVM_ENUM_ASM_PRINTERS
708 LLVM_ENUM_ASM_PARSERS
709 LLVM_ENUM_DISASSEMBLERS
710 OPTIMIZE_OPTION
711 EXTRA_OPTIONS
712 EXTRA_LD_OPTIONS
713 CLANG_SRC_ROOT
714 BINUTILS_INCDIR
715 INTERNAL_PREFIX
716 NM
717 ifGNUmake
718 LN_S
719 CMP
720 CP
721 DATE
722 FIND
723 MKDIR
724 MV
725 RANLIB
726 AR
727 RM
728 SED
729 TAR
730 BINPWD
731 GRAPHVIZ
732 DOT
733 FDP
734 NEATO
735 TWOPI
736 CIRCO
737 GV
738 DOTTY
739 XDOT_PY
740 INSTALL_PROGRAM
741 INSTALL_SCRIPT
742 INSTALL_DATA
743 BZIP2
744 CAT
745 DOXYGEN
746 GROFF
747 GZIPBIN
748 PDFROFF
749 ZIP
750 OCAMLC
751 OCAMLOPT
752 OCAMLDEP
753 OCAMLDOC
754 GAS
755 HAVE_LINK_VERSION_SCRIPT
756 INSTALL_LTDL_TRUE
757 INSTALL_LTDL_FALSE
758 CONVENIENCE_LTDL_TRUE
759 CONVENIENCE_LTDL_FALSE
760 LIBADD_DL
761 NO_VARIADIC_MACROS
762 NO_MISSING_FIELD_INITIALIZERS
763 COVERED_SWITCH_DEFAULT
764 USE_UDIS86
765 USE_OPROFILE
766 USE_INTEL_JITEVENTS
767 INTEL_JITEVENTS_INCDIR
768 INTEL_JITEVENTS_LIBDIR
769 XML2CONFIG
770 LIBXML2_LIBS
771 LIBXML2_INC
772 HAVE_PTHREAD
773 HUGE_VAL_SANITY
774 MMAP_FILE
775 SHLIBEXT
776 SHLIBPATH_VAR
777 LLVM_PREFIX
778 LLVM_BINDIR
779 LLVM_LIBDIR
780 LLVM_DATADIR
781 LLVM_DOCSDIR
782 LLVM_ETCDIR
783 LLVM_INCLUDEDIR
784 LLVM_INFODIR
785 LLVM_MANDIR
786 LLVM_CONFIGTIME
787 BINDINGS_TO_BUILD
788 ALL_BINDINGS
789 OCAML_LIBDIR
790 ENABLE_VISIBILITY_INLINES_HIDDEN
791 RPATH
792 RDYNAMIC
793 LIBOBJS
794 LTLIBOBJS'
795 ac_subst_files=''
796       ac_precious_vars='build_alias
797 host_alias
798 target_alias
799 CC
800 CFLAGS
801 LDFLAGS
802 CPPFLAGS
803 CXX
804 CXXFLAGS
805 CCC
806 CPP'
807 ac_subdirs_all='projects/llvm-gcc
808 projects/test-suite
809 projects/llvm-test
810 projects/poolalloc
811 projects/llvm-poolalloc
812 projects/sample
813 projects/privbracket
814 projects/llvm-stacker
815 projects/llvm-reopt
816 projects/llvm-java
817 projects/llvm-tv
818 projects/safecode
819 projects/llvm-kernel
820 tools/polly'
821
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
827 cache_file=/dev/null
828 exec_prefix=NONE
829 no_create=
830 no_recursion=
831 prefix=NONE
832 program_prefix=NONE
833 program_suffix=NONE
834 program_transform_name=s,x,x,
835 silent=
836 site=
837 srcdir=
838 verbose=
839 x_includes=NONE
840 x_libraries=NONE
841
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir='${datarootdir}/info'
860 htmldir='${docdir}'
861 dvidir='${docdir}'
862 pdfdir='${docdir}'
863 psdir='${docdir}'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
867
868 ac_prev=
869 ac_dashdash=
870 for ac_option
871 do
872   # If the previous option needs an argument, assign it.
873   if test -n "$ac_prev"; then
874     eval $ac_prev=\$ac_option
875     ac_prev=
876     continue
877   fi
878
879   case $ac_option in
880   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881   *)    ac_optarg=yes ;;
882   esac
883
884   # Accept the important Cygnus configure options, so we can diagnose typos.
885
886   case $ac_dashdash$ac_option in
887   --)
888     ac_dashdash=yes ;;
889
890   -bindir | --bindir | --bindi | --bind | --bin | --bi)
891     ac_prev=bindir ;;
892   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893     bindir=$ac_optarg ;;
894
895   -build | --build | --buil | --bui | --bu)
896     ac_prev=build_alias ;;
897   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898     build_alias=$ac_optarg ;;
899
900   -cache-file | --cache-file | --cache-fil | --cache-fi \
901   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902     ac_prev=cache_file ;;
903   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905     cache_file=$ac_optarg ;;
906
907   --config-cache | -C)
908     cache_file=config.cache ;;
909
910   -datadir | --datadir | --datadi | --datad)
911     ac_prev=datadir ;;
912   -datadir=* | --datadir=* | --datadi=* | --datad=*)
913     datadir=$ac_optarg ;;
914
915   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916   | --dataroo | --dataro | --datar)
917     ac_prev=datarootdir ;;
918   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920     datarootdir=$ac_optarg ;;
921
922   -disable-* | --disable-*)
923     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924     # Reject names that are not valid shell variable names.
925     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
926       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927    { (exit 1); exit 1; }; }
928     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
929     eval enable_$ac_feature=no ;;
930
931   -docdir | --docdir | --docdi | --doc | --do)
932     ac_prev=docdir ;;
933   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934     docdir=$ac_optarg ;;
935
936   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937     ac_prev=dvidir ;;
938   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939     dvidir=$ac_optarg ;;
940
941   -enable-* | --enable-*)
942     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943     # Reject names that are not valid shell variable names.
944     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
945       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
946    { (exit 1); exit 1; }; }
947     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
948     eval enable_$ac_feature=\$ac_optarg ;;
949
950   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952   | --exec | --exe | --ex)
953     ac_prev=exec_prefix ;;
954   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956   | --exec=* | --exe=* | --ex=*)
957     exec_prefix=$ac_optarg ;;
958
959   -gas | --gas | --ga | --g)
960     # Obsolete; use --with-gas.
961     with_gas=yes ;;
962
963   -help | --help | --hel | --he | -h)
964     ac_init_help=long ;;
965   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966     ac_init_help=recursive ;;
967   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968     ac_init_help=short ;;
969
970   -host | --host | --hos | --ho)
971     ac_prev=host_alias ;;
972   -host=* | --host=* | --hos=* | --ho=*)
973     host_alias=$ac_optarg ;;
974
975   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976     ac_prev=htmldir ;;
977   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978   | --ht=*)
979     htmldir=$ac_optarg ;;
980
981   -includedir | --includedir | --includedi | --included | --include \
982   | --includ | --inclu | --incl | --inc)
983     ac_prev=includedir ;;
984   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985   | --includ=* | --inclu=* | --incl=* | --inc=*)
986     includedir=$ac_optarg ;;
987
988   -infodir | --infodir | --infodi | --infod | --info | --inf)
989     ac_prev=infodir ;;
990   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991     infodir=$ac_optarg ;;
992
993   -libdir | --libdir | --libdi | --libd)
994     ac_prev=libdir ;;
995   -libdir=* | --libdir=* | --libdi=* | --libd=*)
996     libdir=$ac_optarg ;;
997
998   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999   | --libexe | --libex | --libe)
1000     ac_prev=libexecdir ;;
1001   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002   | --libexe=* | --libex=* | --libe=*)
1003     libexecdir=$ac_optarg ;;
1004
1005   -localedir | --localedir | --localedi | --localed | --locale)
1006     ac_prev=localedir ;;
1007   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008     localedir=$ac_optarg ;;
1009
1010   -localstatedir | --localstatedir | --localstatedi | --localstated \
1011   | --localstate | --localstat | --localsta | --localst | --locals)
1012     ac_prev=localstatedir ;;
1013   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015     localstatedir=$ac_optarg ;;
1016
1017   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018     ac_prev=mandir ;;
1019   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020     mandir=$ac_optarg ;;
1021
1022   -nfp | --nfp | --nf)
1023     # Obsolete; use --without-fp.
1024     with_fp=no ;;
1025
1026   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027   | --no-cr | --no-c | -n)
1028     no_create=yes ;;
1029
1030   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032     no_recursion=yes ;;
1033
1034   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036   | --oldin | --oldi | --old | --ol | --o)
1037     ac_prev=oldincludedir ;;
1038   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041     oldincludedir=$ac_optarg ;;
1042
1043   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044     ac_prev=prefix ;;
1045   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046     prefix=$ac_optarg ;;
1047
1048   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049   | --program-pre | --program-pr | --program-p)
1050     ac_prev=program_prefix ;;
1051   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053     program_prefix=$ac_optarg ;;
1054
1055   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056   | --program-suf | --program-su | --program-s)
1057     ac_prev=program_suffix ;;
1058   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060     program_suffix=$ac_optarg ;;
1061
1062   -program-transform-name | --program-transform-name \
1063   | --program-transform-nam | --program-transform-na \
1064   | --program-transform-n | --program-transform- \
1065   | --program-transform | --program-transfor \
1066   | --program-transfo | --program-transf \
1067   | --program-trans | --program-tran \
1068   | --progr-tra | --program-tr | --program-t)
1069     ac_prev=program_transform_name ;;
1070   -program-transform-name=* | --program-transform-name=* \
1071   | --program-transform-nam=* | --program-transform-na=* \
1072   | --program-transform-n=* | --program-transform-=* \
1073   | --program-transform=* | --program-transfor=* \
1074   | --program-transfo=* | --program-transf=* \
1075   | --program-trans=* | --program-tran=* \
1076   | --progr-tra=* | --program-tr=* | --program-t=*)
1077     program_transform_name=$ac_optarg ;;
1078
1079   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080     ac_prev=pdfdir ;;
1081   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082     pdfdir=$ac_optarg ;;
1083
1084   -psdir | --psdir | --psdi | --psd | --ps)
1085     ac_prev=psdir ;;
1086   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087     psdir=$ac_optarg ;;
1088
1089   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090   | -silent | --silent | --silen | --sile | --sil)
1091     silent=yes ;;
1092
1093   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094     ac_prev=sbindir ;;
1095   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096   | --sbi=* | --sb=*)
1097     sbindir=$ac_optarg ;;
1098
1099   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101   | --sharedst | --shareds | --shared | --share | --shar \
1102   | --sha | --sh)
1103     ac_prev=sharedstatedir ;;
1104   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107   | --sha=* | --sh=*)
1108     sharedstatedir=$ac_optarg ;;
1109
1110   -site | --site | --sit)
1111     ac_prev=site ;;
1112   -site=* | --site=* | --sit=*)
1113     site=$ac_optarg ;;
1114
1115   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116     ac_prev=srcdir ;;
1117   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118     srcdir=$ac_optarg ;;
1119
1120   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121   | --syscon | --sysco | --sysc | --sys | --sy)
1122     ac_prev=sysconfdir ;;
1123   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125     sysconfdir=$ac_optarg ;;
1126
1127   -target | --target | --targe | --targ | --tar | --ta | --t)
1128     ac_prev=target_alias ;;
1129   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130     target_alias=$ac_optarg ;;
1131
1132   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133     verbose=yes ;;
1134
1135   -version | --version | --versio | --versi | --vers | -V)
1136     ac_init_version=: ;;
1137
1138   -with-* | --with-*)
1139     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140     # Reject names that are not valid shell variable names.
1141     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1142       { echo "$as_me: error: invalid package name: $ac_package" >&2
1143    { (exit 1); exit 1; }; }
1144     ac_package=`echo $ac_package| sed 's/-/_/g'`
1145     eval with_$ac_package=\$ac_optarg ;;
1146
1147   -without-* | --without-*)
1148     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149     # Reject names that are not valid shell variable names.
1150     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151       { echo "$as_me: error: invalid package name: $ac_package" >&2
1152    { (exit 1); exit 1; }; }
1153     ac_package=`echo $ac_package | sed 's/-/_/g'`
1154     eval with_$ac_package=no ;;
1155
1156   --x)
1157     # Obsolete; use --with-x.
1158     with_x=yes ;;
1159
1160   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161   | --x-incl | --x-inc | --x-in | --x-i)
1162     ac_prev=x_includes ;;
1163   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165     x_includes=$ac_optarg ;;
1166
1167   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169     ac_prev=x_libraries ;;
1170   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172     x_libraries=$ac_optarg ;;
1173
1174   -*) { echo "$as_me: error: unrecognized option: $ac_option
1175 Try \`$0 --help' for more information." >&2
1176    { (exit 1); exit 1; }; }
1177     ;;
1178
1179   *=*)
1180     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181     # Reject names that are not valid shell variable names.
1182     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1183       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1184    { (exit 1); exit 1; }; }
1185     eval $ac_envvar=\$ac_optarg
1186     export $ac_envvar ;;
1187
1188   *)
1189     # FIXME: should be removed in autoconf 3.0.
1190     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194     ;;
1195
1196   esac
1197 done
1198
1199 if test -n "$ac_prev"; then
1200   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201   { echo "$as_me: error: missing argument to $ac_option" >&2
1202    { (exit 1); exit 1; }; }
1203 fi
1204
1205 # Be sure to have absolute directory names.
1206 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207                 datadir sysconfdir sharedstatedir localstatedir includedir \
1208                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209                 libdir localedir mandir
1210 do
1211   eval ac_val=\$$ac_var
1212   case $ac_val in
1213     [\\/$]* | ?:[\\/]* )  continue;;
1214     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215   esac
1216   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1217    { (exit 1); exit 1; }; }
1218 done
1219
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1223 build=$build_alias
1224 host=$host_alias
1225 target=$target_alias
1226
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229   if test "x$build_alias" = x; then
1230     cross_compiling=maybe
1231     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1232     If a cross compiler is detected then cross compile mode will be used." >&2
1233   elif test "x$build_alias" != "x$host_alias"; then
1234     cross_compiling=yes
1235   fi
1236 fi
1237
1238 ac_tool_prefix=
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241 test "$silent" = yes && exec 6>/dev/null
1242
1243
1244 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di=`ls -di .` &&
1246 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247   { echo "$as_me: error: Working directory cannot be determined" >&2
1248    { (exit 1); exit 1; }; }
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250   { echo "$as_me: error: pwd does not report name of working directory" >&2
1251    { (exit 1); exit 1; }; }
1252
1253
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256   ac_srcdir_defaulted=yes
1257   # Try the directory containing this script, then the parent directory.
1258   ac_confdir=`$as_dirname -- "$0" ||
1259 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260          X"$0" : 'X\(//\)[^/]' \| \
1261          X"$0" : 'X\(//\)$' \| \
1262          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263 echo X"$0" |
1264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)[^/].*/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\/\)$/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\).*/{
1277             s//\1/
1278             q
1279           }
1280           s/.*/./; q'`
1281   srcdir=$ac_confdir
1282   if test ! -r "$srcdir/$ac_unique_file"; then
1283     srcdir=..
1284   fi
1285 else
1286   ac_srcdir_defaulted=no
1287 fi
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1291    { (exit 1); exit 1; }; }
1292 fi
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1296    { (exit 1); exit 1; }; }
1297         pwd)`
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300   srcdir=.
1301 fi
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1305 case $srcdir in
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 esac
1308 for ac_var in $ac_precious_vars; do
1309   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310   eval ac_env_${ac_var}_value=\$${ac_var}
1311   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 done
1314
1315 #
1316 # Report the --help message.
1317 #
1318 if test "$ac_init_help" = "long"; then
1319   # Omit some internal or obsolete options to make the list less imposing.
1320   # This message is too long to be a string in the A/UX 3.1 sh.
1321   cat <<_ACEOF
1322 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1323
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE.  See below for descriptions of some of the useful variables.
1328
1329 Defaults for the options are specified in brackets.
1330
1331 Configuration:
1332   -h, --help              display this help and exit
1333       --help=short        display options specific to this package
1334       --help=recursive    display the short help of all the included packages
1335   -V, --version           display version information and exit
1336   -q, --quiet, --silent   do not print \`checking...' messages
1337       --cache-file=FILE   cache test results in FILE [disabled]
1338   -C, --config-cache      alias for \`--cache-file=config.cache'
1339   -n, --no-create         do not create output files
1340       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1341
1342 Installation directories:
1343   --prefix=PREFIX         install architecture-independent files in PREFIX
1344                           [$ac_default_prefix]
1345   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1346                           [PREFIX]
1347
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1352
1353 For better control, use the options below.
1354
1355 Fine tuning of the installation directories:
1356   --bindir=DIR           user executables [EPREFIX/bin]
1357   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1358   --libexecdir=DIR       program executables [EPREFIX/libexec]
1359   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1360   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1361   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1362   --libdir=DIR           object code libraries [EPREFIX/lib]
1363   --includedir=DIR       C header files [PREFIX/include]
1364   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1365   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1366   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1367   --infodir=DIR          info documentation [DATAROOTDIR/info]
1368   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1369   --mandir=DIR           man documentation [DATAROOTDIR/man]
1370   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1371   --htmldir=DIR          html documentation [DOCDIR]
1372   --dvidir=DIR           dvi documentation [DOCDIR]
1373   --pdfdir=DIR           pdf documentation [DOCDIR]
1374   --psdir=DIR            ps documentation [DOCDIR]
1375 _ACEOF
1376
1377   cat <<\_ACEOF
1378
1379 System types:
1380   --build=BUILD     configure for building on BUILD [guessed]
1381   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1382   --target=TARGET   configure for building compilers for TARGET [HOST]
1383 _ACEOF
1384 fi
1385
1386 if test -n "$ac_init_help"; then
1387   case $ac_init_help in
1388      short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1389    esac
1390   cat <<\_ACEOF
1391
1392 Optional Features:
1393   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1394   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1395   --enable-polly          Use polly if available (default is YES)
1396   --enable-libcpp         Use libc++ if available (default is NO)
1397   --enable-cxx11          Use c++11 if available (default is NO)
1398   --enable-optimized      Compile with optimizations enabled (default is NO)
1399   --enable-profiling      Compile with profiling enabled (default is NO)
1400   --enable-assertions     Compile with assertion checks enabled (default is
1401                           YES)
1402   --enable-expensive-checks
1403                           Compile with expensive debug checks enabled (default
1404                           is NO)
1405   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1406                           NO)
1407   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1408                           optimization is on and YES if it's off)
1409   --enable-jit            Enable Just In Time Compiling (default is YES)
1410   --enable-docs           Build documents (default is YES)
1411   --enable-doxygen        Build doxygen documentation (default is NO)
1412   --enable-threads        Use threads if available (default is YES)
1413   --enable-pthreads       Use pthreads if available (default is YES)
1414   --enable-pic            Build LLVM with Position Independent Code (default
1415                           is YES)
1416   --enable-shared         Build a shared library and link tools against it
1417                           (default is NO)
1418   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1419                           Win32 DLL (default is NO)
1420   --enable-timestamps     Enable embedding timestamp information in build
1421                           (default is YES)
1422   --enable-targets        Build specific host targets: all or
1423                           target1,target2,... Valid targets are: host, x86,
1424                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1425                           xcore, msp430, nvptx, and cpp (default=all)
1426   --enable-bindings       Build specific language bindings:
1427                           all,auto,none,{binding-name} (default=auto)
1428   --enable-libffi         Check for the presence of libffi (default is NO)
1429   --enable-ltdl-install   install libltdl
1430
1431 Optional Packages:
1432   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1433   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1434   --with-optimize-option  Select the compiler options to use for optimized
1435                           builds
1436   --with-extra-options    Specify additional options to compile LLVM with
1437   --with-extra-ld-options Specify additional options to link LLVM with
1438   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1439                           is stdlib)
1440   --with-clang-srcdir     Directory to the out-of-tree Clang source
1441   --with-clang-resource-dir
1442                           Relative directory from the Clang binary for
1443                           resource files
1444   --with-c-include-dirs   Colon separated list of directories clang will
1445                           search for headers
1446   --with-gcc-toolchain    Directory where gcc is installed.
1447   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1448   --with-binutils-include Specify path to binutils/include/ containing
1449                           plugin-api.h file for gold plugin.
1450   --with-bug-report-url   Specify the URL where bug reports should be
1451                           submitted (default=http://llvm.org/bugs/)
1452   --with-internal-prefix  Installation directory for internal files
1453   --with-udis86=<path>    Use udis86 external x86 disassembler library
1454   --with-oprofile=<prefix>
1455                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1456   --with-intel-jitevents=<vtune-amplifier-dir>
1457                           Specify location of run-time support library for
1458                           Intel JIT API
1459                           (default=/opt/intel/vtune_amplifier_xe_2011)
1460
1461 Some influential environment variables:
1462   CC          C compiler command
1463   CFLAGS      C compiler flags
1464   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1465               nonstandard directory <lib dir>
1466   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467               you have headers in a nonstandard directory <include dir>
1468   CXX         C++ compiler command
1469   CXXFLAGS    C++ compiler flags
1470   CPP         C preprocessor
1471
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1474
1475 Report bugs to <http://llvm.org/bugs/>.
1476 _ACEOF
1477 ac_status=$?
1478 fi
1479
1480 if test "$ac_init_help" = "recursive"; then
1481   # If there are subdirs, report their specific --help.
1482   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483     test -d "$ac_dir" || continue
1484     ac_builddir=.
1485
1486 case "$ac_dir" in
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *)
1489   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1490   # A ".." for each directory in $ac_dir_suffix.
1491   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1492   case $ac_top_builddir_sub in
1493   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495   esac ;;
1496 esac
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1501
1502 case $srcdir in
1503   .)  # We are building in place.
1504     ac_srcdir=.
1505     ac_top_srcdir=$ac_top_builddir_sub
1506     ac_abs_top_srcdir=$ac_pwd ;;
1507   [\\/]* | ?:[\\/]* )  # Absolute name.
1508     ac_srcdir=$srcdir$ac_dir_suffix;
1509     ac_top_srcdir=$srcdir
1510     ac_abs_top_srcdir=$srcdir ;;
1511   *) # Relative name.
1512     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513     ac_top_srcdir=$ac_top_build_prefix$srcdir
1514     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 esac
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518     cd "$ac_dir" || { ac_status=$?; continue; }
1519     # Check for guested configure.
1520     if test -f "$ac_srcdir/configure.gnu"; then
1521       echo &&
1522       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523     elif test -f "$ac_srcdir/configure"; then
1524       echo &&
1525       $SHELL "$ac_srcdir/configure" --help=recursive
1526     else
1527       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528     fi || ac_status=$?
1529     cd "$ac_pwd" || { ac_status=$?; break; }
1530   done
1531 fi
1532
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1535   cat <<\_ACEOF
1536 LLVM configure 3.2svn
1537 generated by GNU Autoconf 2.60
1538
1539 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1540 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1543
1544 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1545 _ACEOF
1546   exit
1547 fi
1548 cat >config.log <<_ACEOF
1549 This file contains any messages produced by compilers while
1550 running configure, to aid debugging if configure makes a mistake.
1551
1552 It was created by LLVM $as_me 3.2svn, which was
1553 generated by GNU Autoconf 2.60.  Invocation command line was
1554
1555   $ $0 $@
1556
1557 _ACEOF
1558 exec 5>>config.log
1559 {
1560 cat <<_ASUNAME
1561 ## --------- ##
1562 ## Platform. ##
1563 ## --------- ##
1564
1565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1570
1571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1573
1574 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1575 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1578 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1579 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1580 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1581
1582 _ASUNAME
1583
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 for as_dir in $PATH
1586 do
1587   IFS=$as_save_IFS
1588   test -z "$as_dir" && as_dir=.
1589   echo "PATH: $as_dir"
1590 done
1591 IFS=$as_save_IFS
1592
1593 } >&5
1594
1595 cat >&5 <<_ACEOF
1596
1597
1598 ## ----------- ##
1599 ## Core tests. ##
1600 ## ----------- ##
1601
1602 _ACEOF
1603
1604
1605 # Keep a trace of the command line.
1606 # Strip out --no-create and --no-recursion so they do not pile up.
1607 # Strip out --silent because we don't want to record it for future runs.
1608 # Also quote any args containing shell meta-characters.
1609 # Make two passes to allow for proper duplicate-argument suppression.
1610 ac_configure_args=
1611 ac_configure_args0=
1612 ac_configure_args1=
1613 ac_must_keep_next=false
1614 for ac_pass in 1 2
1615 do
1616   for ac_arg
1617   do
1618     case $ac_arg in
1619     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621     | -silent | --silent | --silen | --sile | --sil)
1622       continue ;;
1623     *\'*)
1624       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1625     esac
1626     case $ac_pass in
1627     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1628     2)
1629       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1630       if test $ac_must_keep_next = true; then
1631         ac_must_keep_next=false # Got value, back to normal.
1632       else
1633         case $ac_arg in
1634           *=* | --config-cache | -C | -disable-* | --disable-* \
1635           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637           | -with-* | --with-* | -without-* | --without-* | --x)
1638             case "$ac_configure_args0 " in
1639               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640             esac
1641             ;;
1642           -* ) ac_must_keep_next=true ;;
1643         esac
1644       fi
1645       ac_configure_args="$ac_configure_args '$ac_arg'"
1646       ;;
1647     esac
1648   done
1649 done
1650 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1652
1653 # When interrupted or exit'd, cleanup temporary files, and complete
1654 # config.log.  We remove comments because anyway the quotes in there
1655 # would cause problems or look ugly.
1656 # WARNING: Use '\'' to represent an apostrophe within the trap.
1657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658 trap 'exit_status=$?
1659   # Save into config.log some information that might help in debugging.
1660   {
1661     echo
1662
1663     cat <<\_ASBOX
1664 ## ---------------- ##
1665 ## Cache variables. ##
1666 ## ---------------- ##
1667 _ASBOX
1668     echo
1669     # The following way of writing the cache mishandles newlines in values,
1670 (
1671   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672     eval ac_val=\$$ac_var
1673     case $ac_val in #(
1674     *${as_nl}*)
1675       case $ac_var in #(
1676       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1678       esac
1679       case $ac_var in #(
1680       _ | IFS | as_nl) ;; #(
1681       *) $as_unset $ac_var ;;
1682       esac ;;
1683     esac
1684   done
1685   (set) 2>&1 |
1686     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687     *${as_nl}ac_space=\ *)
1688       sed -n \
1689         "s/'\''/'\''\\\\'\'''\''/g;
1690           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691       ;; #(
1692     *)
1693       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1694       ;;
1695     esac |
1696     sort
1697 )
1698     echo
1699
1700     cat <<\_ASBOX
1701 ## ----------------- ##
1702 ## Output variables. ##
1703 ## ----------------- ##
1704 _ASBOX
1705     echo
1706     for ac_var in $ac_subst_vars
1707     do
1708       eval ac_val=\$$ac_var
1709       case $ac_val in
1710       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1711       esac
1712       echo "$ac_var='\''$ac_val'\''"
1713     done | sort
1714     echo
1715
1716     if test -n "$ac_subst_files"; then
1717       cat <<\_ASBOX
1718 ## ------------------- ##
1719 ## File substitutions. ##
1720 ## ------------------- ##
1721 _ASBOX
1722       echo
1723       for ac_var in $ac_subst_files
1724       do
1725         eval ac_val=\$$ac_var
1726         case $ac_val in
1727         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728         esac
1729         echo "$ac_var='\''$ac_val'\''"
1730       done | sort
1731       echo
1732     fi
1733
1734     if test -s confdefs.h; then
1735       cat <<\_ASBOX
1736 ## ----------- ##
1737 ## confdefs.h. ##
1738 ## ----------- ##
1739 _ASBOX
1740       echo
1741       cat confdefs.h
1742       echo
1743     fi
1744     test "$ac_signal" != 0 &&
1745       echo "$as_me: caught signal $ac_signal"
1746     echo "$as_me: exit $exit_status"
1747   } >&5
1748   rm -f core *.core core.conftest.* &&
1749     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1750     exit $exit_status
1751 ' 0
1752 for ac_signal in 1 2 13 15; do
1753   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1754 done
1755 ac_signal=0
1756
1757 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1758 rm -f -r conftest* confdefs.h
1759
1760 # Predefined preprocessor variables.
1761
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_NAME "$PACKAGE_NAME"
1764 _ACEOF
1765
1766
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769 _ACEOF
1770
1771
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1774 _ACEOF
1775
1776
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_STRING "$PACKAGE_STRING"
1779 _ACEOF
1780
1781
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784 _ACEOF
1785
1786
1787 # Let the site file select an alternate cache file if it wants to.
1788 # Prefer explicitly selected file to automatically selected ones.
1789 if test -n "$CONFIG_SITE"; then
1790   set x "$CONFIG_SITE"
1791 elif test "x$prefix" != xNONE; then
1792   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1793 else
1794   set x "$ac_default_prefix/share/config.site" \
1795         "$ac_default_prefix/etc/config.site"
1796 fi
1797 shift
1798 for ac_site_file
1799 do
1800   if test -r "$ac_site_file"; then
1801     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802 echo "$as_me: loading site script $ac_site_file" >&6;}
1803     sed 's/^/| /' "$ac_site_file" >&5
1804     . "$ac_site_file"
1805   fi
1806 done
1807
1808 if test -r "$cache_file"; then
1809   # Some versions of bash will fail to source /dev/null (special
1810   # files actually), so we avoid doing that.
1811   if test -f "$cache_file"; then
1812     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813 echo "$as_me: loading cache $cache_file" >&6;}
1814     case $cache_file in
1815       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816       *)                      . "./$cache_file";;
1817     esac
1818   fi
1819 else
1820   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821 echo "$as_me: creating cache $cache_file" >&6;}
1822   >$cache_file
1823 fi
1824
1825 # Check that the precious variables saved in the cache have kept the same
1826 # value.
1827 ac_cache_corrupted=false
1828 for ac_var in $ac_precious_vars; do
1829   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830   eval ac_new_set=\$ac_env_${ac_var}_set
1831   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832   eval ac_new_val=\$ac_env_${ac_var}_value
1833   case $ac_old_set,$ac_new_set in
1834     set,)
1835       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1837       ac_cache_corrupted=: ;;
1838     ,set)
1839       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1841       ac_cache_corrupted=: ;;
1842     ,);;
1843     *)
1844       if test "x$ac_old_val" != "x$ac_new_val"; then
1845         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1848 echo "$as_me:   former value:  $ac_old_val" >&2;}
1849         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1850 echo "$as_me:   current value: $ac_new_val" >&2;}
1851         ac_cache_corrupted=:
1852       fi;;
1853   esac
1854   # Pass precious variables to config.status.
1855   if test "$ac_new_set" = set; then
1856     case $ac_new_val in
1857     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1858     *) ac_arg=$ac_var=$ac_new_val ;;
1859     esac
1860     case " $ac_configure_args " in
1861       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1862       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1863     esac
1864   fi
1865 done
1866 if $ac_cache_corrupted; then
1867   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871    { (exit 1); exit 1; }; }
1872 fi
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898 ac_ext=c
1899 ac_cpp='$CPP $CPPFLAGS'
1900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903
1904
1905
1906 cat >>confdefs.h <<\_ACEOF
1907 #define LLVM_VERSION_MAJOR 3
1908 _ACEOF
1909
1910
1911 cat >>confdefs.h <<\_ACEOF
1912 #define LLVM_VERSION_MINOR 2
1913 _ACEOF
1914
1915
1916 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1917
1918
1919
1920
1921
1922
1923
1924 ac_aux_dir=
1925 for ac_dir in autoconf "$srcdir"/autoconf; do
1926   if test -f "$ac_dir/install-sh"; then
1927     ac_aux_dir=$ac_dir
1928     ac_install_sh="$ac_aux_dir/install-sh -c"
1929     break
1930   elif test -f "$ac_dir/install.sh"; then
1931     ac_aux_dir=$ac_dir
1932     ac_install_sh="$ac_aux_dir/install.sh -c"
1933     break
1934   elif test -f "$ac_dir/shtool"; then
1935     ac_aux_dir=$ac_dir
1936     ac_install_sh="$ac_aux_dir/shtool install -c"
1937     break
1938   fi
1939 done
1940 if test -z "$ac_aux_dir"; then
1941   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1942 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1943    { (exit 1); exit 1; }; }
1944 fi
1945
1946 # These three variables are undocumented and unsupported,
1947 # and are intended to be withdrawn in a future Autoconf release.
1948 # They can cause serious problems if a builder's source tree is in a directory
1949 # whose full name contains unusual characters.
1950 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1951 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1952 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1953
1954
1955
1956 if test ${srcdir} != "." ; then
1957   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1958     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1959 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1960    { (exit 1); exit 1; }; }
1961   fi
1962 fi
1963
1964 ac_ext=c
1965 ac_cpp='$CPP $CPPFLAGS'
1966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1969 if test -n "$ac_tool_prefix"; then
1970   for ac_prog in clang llvm-gcc gcc
1971   do
1972     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1973 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1976 if test "${ac_cv_prog_CC+set}" = set; then
1977   echo $ECHO_N "(cached) $ECHO_C" >&6
1978 else
1979   if test -n "$CC"; then
1980   ac_cv_prog_CC="$CC" # Let the user override the test.
1981 else
1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 for as_dir in $PATH
1984 do
1985   IFS=$as_save_IFS
1986   test -z "$as_dir" && as_dir=.
1987   for ac_exec_ext in '' $ac_executable_extensions; do
1988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1989     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1991     break 2
1992   fi
1993 done
1994 done
1995 IFS=$as_save_IFS
1996
1997 fi
1998 fi
1999 CC=$ac_cv_prog_CC
2000 if test -n "$CC"; then
2001   { echo "$as_me:$LINENO: result: $CC" >&5
2002 echo "${ECHO_T}$CC" >&6; }
2003 else
2004   { echo "$as_me:$LINENO: result: no" >&5
2005 echo "${ECHO_T}no" >&6; }
2006 fi
2007
2008
2009     test -n "$CC" && break
2010   done
2011 fi
2012 if test -z "$CC"; then
2013   ac_ct_CC=$CC
2014   for ac_prog in clang llvm-gcc gcc
2015 do
2016   # Extract the first word of "$ac_prog", so it can be a program name with args.
2017 set dummy $ac_prog; ac_word=$2
2018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2020 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2021   echo $ECHO_N "(cached) $ECHO_C" >&6
2022 else
2023   if test -n "$ac_ct_CC"; then
2024   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2025 else
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 for as_dir in $PATH
2028 do
2029   IFS=$as_save_IFS
2030   test -z "$as_dir" && as_dir=.
2031   for ac_exec_ext in '' $ac_executable_extensions; do
2032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2033     ac_cv_prog_ac_ct_CC="$ac_prog"
2034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2035     break 2
2036   fi
2037 done
2038 done
2039 IFS=$as_save_IFS
2040
2041 fi
2042 fi
2043 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2044 if test -n "$ac_ct_CC"; then
2045   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2046 echo "${ECHO_T}$ac_ct_CC" >&6; }
2047 else
2048   { echo "$as_me:$LINENO: result: no" >&5
2049 echo "${ECHO_T}no" >&6; }
2050 fi
2051
2052
2053   test -n "$ac_ct_CC" && break
2054 done
2055
2056   if test "x$ac_ct_CC" = x; then
2057     CC=""
2058   else
2059     case $cross_compiling:$ac_tool_warned in
2060 yes:)
2061 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2062 whose name does not start with the host triplet.  If you think this
2063 configuration is useful to you, please write to autoconf@gnu.org." >&5
2064 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2065 whose name does not start with the host triplet.  If you think this
2066 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2067 ac_tool_warned=yes ;;
2068 esac
2069     CC=$ac_ct_CC
2070   fi
2071 fi
2072
2073
2074 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2075 See \`config.log' for more details." >&5
2076 echo "$as_me: error: no acceptable C compiler found in \$PATH
2077 See \`config.log' for more details." >&2;}
2078    { (exit 1); exit 1; }; }
2079
2080 # Provide some information about the compiler.
2081 echo "$as_me:$LINENO: checking for C compiler version" >&5
2082 ac_compiler=`set X $ac_compile; echo $2`
2083 { (ac_try="$ac_compiler --version >&5"
2084 case "(($ac_try" in
2085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086   *) ac_try_echo=$ac_try;;
2087 esac
2088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2089   (eval "$ac_compiler --version >&5") 2>&5
2090   ac_status=$?
2091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092   (exit $ac_status); }
2093 { (ac_try="$ac_compiler -v >&5"
2094 case "(($ac_try" in
2095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096   *) ac_try_echo=$ac_try;;
2097 esac
2098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099   (eval "$ac_compiler -v >&5") 2>&5
2100   ac_status=$?
2101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102   (exit $ac_status); }
2103 { (ac_try="$ac_compiler -V >&5"
2104 case "(($ac_try" in
2105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106   *) ac_try_echo=$ac_try;;
2107 esac
2108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2109   (eval "$ac_compiler -V >&5") 2>&5
2110   ac_status=$?
2111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112   (exit $ac_status); }
2113
2114 cat >conftest.$ac_ext <<_ACEOF
2115 /* confdefs.h.  */
2116 _ACEOF
2117 cat confdefs.h >>conftest.$ac_ext
2118 cat >>conftest.$ac_ext <<_ACEOF
2119 /* end confdefs.h.  */
2120
2121 int
2122 main ()
2123 {
2124
2125   ;
2126   return 0;
2127 }
2128 _ACEOF
2129 ac_clean_files_save=$ac_clean_files
2130 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2131 # Try to create an executable without -o first, disregard a.out.
2132 # It will help us diagnose broken compilers, and finding out an intuition
2133 # of exeext.
2134 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2135 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2136 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2137 #
2138 # List of possible output files, starting from the most likely.
2139 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2140 # only as a last resort.  b.out is created by i960 compilers.
2141 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2142 #
2143 # The IRIX 6 linker writes into existing files which may not be
2144 # executable, retaining their permissions.  Remove them first so a
2145 # subsequent execution test works.
2146 ac_rmfiles=
2147 for ac_file in $ac_files
2148 do
2149   case $ac_file in
2150     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2151     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2152   esac
2153 done
2154 rm -f $ac_rmfiles
2155
2156 if { (ac_try="$ac_link_default"
2157 case "(($ac_try" in
2158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2159   *) ac_try_echo=$ac_try;;
2160 esac
2161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2162   (eval "$ac_link_default") 2>&5
2163   ac_status=$?
2164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165   (exit $ac_status); }; then
2166   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2167 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2168 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2169 # so that the user can short-circuit this test for compilers unknown to
2170 # Autoconf.
2171 for ac_file in $ac_files
2172 do
2173   test -f "$ac_file" || continue
2174   case $ac_file in
2175     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2176         ;;
2177     [ab].out )
2178         # We found the default executable, but exeext='' is most
2179         # certainly right.
2180         break;;
2181     *.* )
2182         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2183         then :; else
2184            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2185         fi
2186         # We set ac_cv_exeext here because the later test for it is not
2187         # safe: cross compilers may not add the suffix if given an `-o'
2188         # argument, so we may need to know it at that point already.
2189         # Even if this section looks crufty: it has the advantage of
2190         # actually working.
2191         break;;
2192     * )
2193         break;;
2194   esac
2195 done
2196 test "$ac_cv_exeext" = no && ac_cv_exeext=
2197
2198 else
2199   echo "$as_me: failed program was:" >&5
2200 sed 's/^/| /' conftest.$ac_ext >&5
2201
2202 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2203 See \`config.log' for more details." >&5
2204 echo "$as_me: error: C compiler cannot create executables
2205 See \`config.log' for more details." >&2;}
2206    { (exit 77); exit 77; }; }
2207 fi
2208
2209 ac_exeext=$ac_cv_exeext
2210 { echo "$as_me:$LINENO: result: $ac_file" >&5
2211 echo "${ECHO_T}$ac_file" >&6; }
2212
2213 # Check that the compiler produces executables we can run.  If not, either
2214 # the compiler is broken, or we cross compile.
2215 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2216 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2217 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2218 # If not cross compiling, check that we can run a simple program.
2219 if test "$cross_compiling" != yes; then
2220   if { ac_try='./$ac_file'
2221   { (case "(($ac_try" in
2222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2223   *) ac_try_echo=$ac_try;;
2224 esac
2225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2226   (eval "$ac_try") 2>&5
2227   ac_status=$?
2228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229   (exit $ac_status); }; }; then
2230     cross_compiling=no
2231   else
2232     if test "$cross_compiling" = maybe; then
2233         cross_compiling=yes
2234     else
2235         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2236 If you meant to cross compile, use \`--host'.
2237 See \`config.log' for more details." >&5
2238 echo "$as_me: error: cannot run C compiled programs.
2239 If you meant to cross compile, use \`--host'.
2240 See \`config.log' for more details." >&2;}
2241    { (exit 1); exit 1; }; }
2242     fi
2243   fi
2244 fi
2245 { echo "$as_me:$LINENO: result: yes" >&5
2246 echo "${ECHO_T}yes" >&6; }
2247
2248 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2249 ac_clean_files=$ac_clean_files_save
2250 # Check that the compiler produces executables we can run.  If not, either
2251 # the compiler is broken, or we cross compile.
2252 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2253 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2254 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2255 echo "${ECHO_T}$cross_compiling" >&6; }
2256
2257 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2258 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2259 if { (ac_try="$ac_link"
2260 case "(($ac_try" in
2261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262   *) ac_try_echo=$ac_try;;
2263 esac
2264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2265   (eval "$ac_link") 2>&5
2266   ac_status=$?
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); }; then
2269   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2270 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2271 # work properly (i.e., refer to `conftest.exe'), while it won't with
2272 # `rm'.
2273 for ac_file in conftest.exe conftest conftest.*; do
2274   test -f "$ac_file" || continue
2275   case $ac_file in
2276     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2277     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2278           break;;
2279     * ) break;;
2280   esac
2281 done
2282 else
2283   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2286 See \`config.log' for more details." >&2;}
2287    { (exit 1); exit 1; }; }
2288 fi
2289
2290 rm -f conftest$ac_cv_exeext
2291 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2292 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2293
2294 rm -f conftest.$ac_ext
2295 EXEEXT=$ac_cv_exeext
2296 ac_exeext=$EXEEXT
2297 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2298 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2299 if test "${ac_cv_objext+set}" = set; then
2300   echo $ECHO_N "(cached) $ECHO_C" >&6
2301 else
2302   cat >conftest.$ac_ext <<_ACEOF
2303 /* confdefs.h.  */
2304 _ACEOF
2305 cat confdefs.h >>conftest.$ac_ext
2306 cat >>conftest.$ac_ext <<_ACEOF
2307 /* end confdefs.h.  */
2308
2309 int
2310 main ()
2311 {
2312
2313   ;
2314   return 0;
2315 }
2316 _ACEOF
2317 rm -f conftest.o conftest.obj
2318 if { (ac_try="$ac_compile"
2319 case "(($ac_try" in
2320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2321   *) ac_try_echo=$ac_try;;
2322 esac
2323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2324   (eval "$ac_compile") 2>&5
2325   ac_status=$?
2326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327   (exit $ac_status); }; then
2328   for ac_file in conftest.o conftest.obj conftest.*; do
2329   test -f "$ac_file" || continue;
2330   case $ac_file in
2331     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2332     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2333        break;;
2334   esac
2335 done
2336 else
2337   echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2339
2340 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2341 See \`config.log' for more details." >&5
2342 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2343 See \`config.log' for more details." >&2;}
2344    { (exit 1); exit 1; }; }
2345 fi
2346
2347 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2348 fi
2349 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2350 echo "${ECHO_T}$ac_cv_objext" >&6; }
2351 OBJEXT=$ac_cv_objext
2352 ac_objext=$OBJEXT
2353 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2354 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2355 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2356   echo $ECHO_N "(cached) $ECHO_C" >&6
2357 else
2358   cat >conftest.$ac_ext <<_ACEOF
2359 /* confdefs.h.  */
2360 _ACEOF
2361 cat confdefs.h >>conftest.$ac_ext
2362 cat >>conftest.$ac_ext <<_ACEOF
2363 /* end confdefs.h.  */
2364
2365 int
2366 main ()
2367 {
2368 #ifndef __GNUC__
2369        choke me
2370 #endif
2371
2372   ;
2373   return 0;
2374 }
2375 _ACEOF
2376 rm -f conftest.$ac_objext
2377 if { (ac_try="$ac_compile"
2378 case "(($ac_try" in
2379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380   *) ac_try_echo=$ac_try;;
2381 esac
2382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2383   (eval "$ac_compile") 2>conftest.er1
2384   ac_status=$?
2385   grep -v '^ *+' conftest.er1 >conftest.err
2386   rm -f conftest.er1
2387   cat conftest.err >&5
2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); } &&
2390          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2391   { (case "(($ac_try" in
2392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393   *) ac_try_echo=$ac_try;;
2394 esac
2395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2396   (eval "$ac_try") 2>&5
2397   ac_status=$?
2398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399   (exit $ac_status); }; } &&
2400          { ac_try='test -s conftest.$ac_objext'
2401   { (case "(($ac_try" in
2402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403   *) ac_try_echo=$ac_try;;
2404 esac
2405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406   (eval "$ac_try") 2>&5
2407   ac_status=$?
2408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409   (exit $ac_status); }; }; then
2410   ac_compiler_gnu=yes
2411 else
2412   echo "$as_me: failed program was:" >&5
2413 sed 's/^/| /' conftest.$ac_ext >&5
2414
2415         ac_compiler_gnu=no
2416 fi
2417
2418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2419 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2420
2421 fi
2422 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2423 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2424 GCC=`test $ac_compiler_gnu = yes && echo yes`
2425 ac_test_CFLAGS=${CFLAGS+set}
2426 ac_save_CFLAGS=$CFLAGS
2427 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2428 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2429 if test "${ac_cv_prog_cc_g+set}" = set; then
2430   echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432   ac_save_c_werror_flag=$ac_c_werror_flag
2433    ac_c_werror_flag=yes
2434    ac_cv_prog_cc_g=no
2435    CFLAGS="-g"
2436    cat >conftest.$ac_ext <<_ACEOF
2437 /* confdefs.h.  */
2438 _ACEOF
2439 cat confdefs.h >>conftest.$ac_ext
2440 cat >>conftest.$ac_ext <<_ACEOF
2441 /* end confdefs.h.  */
2442
2443 int
2444 main ()
2445 {
2446
2447   ;
2448   return 0;
2449 }
2450 _ACEOF
2451 rm -f conftest.$ac_objext
2452 if { (ac_try="$ac_compile"
2453 case "(($ac_try" in
2454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455   *) ac_try_echo=$ac_try;;
2456 esac
2457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458   (eval "$ac_compile") 2>conftest.er1
2459   ac_status=$?
2460   grep -v '^ *+' conftest.er1 >conftest.err
2461   rm -f conftest.er1
2462   cat conftest.err >&5
2463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464   (exit $ac_status); } &&
2465          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2466   { (case "(($ac_try" in
2467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468   *) ac_try_echo=$ac_try;;
2469 esac
2470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471   (eval "$ac_try") 2>&5
2472   ac_status=$?
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); }; } &&
2475          { ac_try='test -s conftest.$ac_objext'
2476   { (case "(($ac_try" in
2477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478   *) ac_try_echo=$ac_try;;
2479 esac
2480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481   (eval "$ac_try") 2>&5
2482   ac_status=$?
2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484   (exit $ac_status); }; }; then
2485   ac_cv_prog_cc_g=yes
2486 else
2487   echo "$as_me: failed program was:" >&5
2488 sed 's/^/| /' conftest.$ac_ext >&5
2489
2490         CFLAGS=""
2491       cat >conftest.$ac_ext <<_ACEOF
2492 /* confdefs.h.  */
2493 _ACEOF
2494 cat confdefs.h >>conftest.$ac_ext
2495 cat >>conftest.$ac_ext <<_ACEOF
2496 /* end confdefs.h.  */
2497
2498 int
2499 main ()
2500 {
2501
2502   ;
2503   return 0;
2504 }
2505 _ACEOF
2506 rm -f conftest.$ac_objext
2507 if { (ac_try="$ac_compile"
2508 case "(($ac_try" in
2509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510   *) ac_try_echo=$ac_try;;
2511 esac
2512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2513   (eval "$ac_compile") 2>conftest.er1
2514   ac_status=$?
2515   grep -v '^ *+' conftest.er1 >conftest.err
2516   rm -f conftest.er1
2517   cat conftest.err >&5
2518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519   (exit $ac_status); } &&
2520          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2521   { (case "(($ac_try" in
2522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523   *) ac_try_echo=$ac_try;;
2524 esac
2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526   (eval "$ac_try") 2>&5
2527   ac_status=$?
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); }; } &&
2530          { ac_try='test -s conftest.$ac_objext'
2531   { (case "(($ac_try" in
2532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533   *) ac_try_echo=$ac_try;;
2534 esac
2535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536   (eval "$ac_try") 2>&5
2537   ac_status=$?
2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539   (exit $ac_status); }; }; then
2540   :
2541 else
2542   echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2544
2545         ac_c_werror_flag=$ac_save_c_werror_flag
2546          CFLAGS="-g"
2547          cat >conftest.$ac_ext <<_ACEOF
2548 /* confdefs.h.  */
2549 _ACEOF
2550 cat confdefs.h >>conftest.$ac_ext
2551 cat >>conftest.$ac_ext <<_ACEOF
2552 /* end confdefs.h.  */
2553
2554 int
2555 main ()
2556 {
2557
2558   ;
2559   return 0;
2560 }
2561 _ACEOF
2562 rm -f conftest.$ac_objext
2563 if { (ac_try="$ac_compile"
2564 case "(($ac_try" in
2565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566   *) ac_try_echo=$ac_try;;
2567 esac
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569   (eval "$ac_compile") 2>conftest.er1
2570   ac_status=$?
2571   grep -v '^ *+' conftest.er1 >conftest.err
2572   rm -f conftest.er1
2573   cat conftest.err >&5
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); } &&
2576          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2577   { (case "(($ac_try" in
2578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579   *) ac_try_echo=$ac_try;;
2580 esac
2581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582   (eval "$ac_try") 2>&5
2583   ac_status=$?
2584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585   (exit $ac_status); }; } &&
2586          { ac_try='test -s conftest.$ac_objext'
2587   { (case "(($ac_try" in
2588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589   *) ac_try_echo=$ac_try;;
2590 esac
2591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592   (eval "$ac_try") 2>&5
2593   ac_status=$?
2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); }; }; then
2596   ac_cv_prog_cc_g=yes
2597 else
2598   echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2600
2601
2602 fi
2603
2604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605 fi
2606
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608 fi
2609
2610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611    ac_c_werror_flag=$ac_save_c_werror_flag
2612 fi
2613 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2614 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2615 if test "$ac_test_CFLAGS" = set; then
2616   CFLAGS=$ac_save_CFLAGS
2617 elif test $ac_cv_prog_cc_g = yes; then
2618   if test "$GCC" = yes; then
2619     CFLAGS="-g -O2"
2620   else
2621     CFLAGS="-g"
2622   fi
2623 else
2624   if test "$GCC" = yes; then
2625     CFLAGS="-O2"
2626   else
2627     CFLAGS=
2628   fi
2629 fi
2630 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2631 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2632 if test "${ac_cv_prog_cc_c89+set}" = set; then
2633   echo $ECHO_N "(cached) $ECHO_C" >&6
2634 else
2635   ac_cv_prog_cc_c89=no
2636 ac_save_CC=$CC
2637 cat >conftest.$ac_ext <<_ACEOF
2638 /* confdefs.h.  */
2639 _ACEOF
2640 cat confdefs.h >>conftest.$ac_ext
2641 cat >>conftest.$ac_ext <<_ACEOF
2642 /* end confdefs.h.  */
2643 #include <stdarg.h>
2644 #include <stdio.h>
2645 #include <sys/types.h>
2646 #include <sys/stat.h>
2647 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2648 struct buf { int x; };
2649 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2650 static char *e (p, i)
2651      char **p;
2652      int i;
2653 {
2654   return p[i];
2655 }
2656 static char *f (char * (*g) (char **, int), char **p, ...)
2657 {
2658   char *s;
2659   va_list v;
2660   va_start (v,p);
2661   s = g (p, va_arg (v,int));
2662   va_end (v);
2663   return s;
2664 }
2665
2666 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2667    function prototypes and stuff, but not '\xHH' hex character constants.
2668    These don't provoke an error unfortunately, instead are silently treated
2669    as 'x'.  The following induces an error, until -std is added to get
2670    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2671    array size at least.  It's necessary to write '\x00'==0 to get something
2672    that's true only with -std.  */
2673 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2674
2675 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2676    inside strings and character constants.  */
2677 #define FOO(x) 'x'
2678 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2679
2680 int test (int i, double x);
2681 struct s1 {int (*f) (int a);};
2682 struct s2 {int (*f) (double a);};
2683 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2684 int argc;
2685 char **argv;
2686 int
2687 main ()
2688 {
2689 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2690   ;
2691   return 0;
2692 }
2693 _ACEOF
2694 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2695         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2696 do
2697   CC="$ac_save_CC $ac_arg"
2698   rm -f conftest.$ac_objext
2699 if { (ac_try="$ac_compile"
2700 case "(($ac_try" in
2701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702   *) ac_try_echo=$ac_try;;
2703 esac
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705   (eval "$ac_compile") 2>conftest.er1
2706   ac_status=$?
2707   grep -v '^ *+' conftest.er1 >conftest.err
2708   rm -f conftest.er1
2709   cat conftest.err >&5
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); } &&
2712          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2713   { (case "(($ac_try" in
2714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715   *) ac_try_echo=$ac_try;;
2716 esac
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718   (eval "$ac_try") 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }; } &&
2722          { ac_try='test -s conftest.$ac_objext'
2723   { (case "(($ac_try" in
2724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725   *) ac_try_echo=$ac_try;;
2726 esac
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728   (eval "$ac_try") 2>&5
2729   ac_status=$?
2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); }; }; then
2732   ac_cv_prog_cc_c89=$ac_arg
2733 else
2734   echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.$ac_ext >&5
2736
2737
2738 fi
2739
2740 rm -f core conftest.err conftest.$ac_objext
2741   test "x$ac_cv_prog_cc_c89" != "xno" && break
2742 done
2743 rm -f conftest.$ac_ext
2744 CC=$ac_save_CC
2745
2746 fi
2747 # AC_CACHE_VAL
2748 case "x$ac_cv_prog_cc_c89" in
2749   x)
2750     { echo "$as_me:$LINENO: result: none needed" >&5
2751 echo "${ECHO_T}none needed" >&6; } ;;
2752   xno)
2753     { echo "$as_me:$LINENO: result: unsupported" >&5
2754 echo "${ECHO_T}unsupported" >&6; } ;;
2755   *)
2756     CC="$CC $ac_cv_prog_cc_c89"
2757     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2758 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2759 esac
2760
2761
2762 ac_ext=c
2763 ac_cpp='$CPP $CPPFLAGS'
2764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2767
2768 ac_ext=cpp
2769 ac_cpp='$CXXCPP $CPPFLAGS'
2770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2773 if test -z "$CXX"; then
2774   if test -n "$CCC"; then
2775     CXX=$CCC
2776   else
2777     if test -n "$ac_tool_prefix"; then
2778   for ac_prog in clang++ llvm-g++ g++
2779   do
2780     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2781 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2784 if test "${ac_cv_prog_CXX+set}" = set; then
2785   echo $ECHO_N "(cached) $ECHO_C" >&6
2786 else
2787   if test -n "$CXX"; then
2788   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2792 do
2793   IFS=$as_save_IFS
2794   test -z "$as_dir" && as_dir=.
2795   for ac_exec_ext in '' $ac_executable_extensions; do
2796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2797     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799     break 2
2800   fi
2801 done
2802 done
2803 IFS=$as_save_IFS
2804
2805 fi
2806 fi
2807 CXX=$ac_cv_prog_CXX
2808 if test -n "$CXX"; then
2809   { echo "$as_me:$LINENO: result: $CXX" >&5
2810 echo "${ECHO_T}$CXX" >&6; }
2811 else
2812   { echo "$as_me:$LINENO: result: no" >&5
2813 echo "${ECHO_T}no" >&6; }
2814 fi
2815
2816
2817     test -n "$CXX" && break
2818   done
2819 fi
2820 if test -z "$CXX"; then
2821   ac_ct_CXX=$CXX
2822   for ac_prog in clang++ llvm-g++ g++
2823 do
2824   # Extract the first word of "$ac_prog", so it can be a program name with args.
2825 set dummy $ac_prog; ac_word=$2
2826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2828 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2829   echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831   if test -n "$ac_ct_CXX"; then
2832   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837   IFS=$as_save_IFS
2838   test -z "$as_dir" && as_dir=.
2839   for ac_exec_ext in '' $ac_executable_extensions; do
2840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2841     ac_cv_prog_ac_ct_CXX="$ac_prog"
2842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843     break 2
2844   fi
2845 done
2846 done
2847 IFS=$as_save_IFS
2848
2849 fi
2850 fi
2851 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2852 if test -n "$ac_ct_CXX"; then
2853   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2854 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2855 else
2856   { echo "$as_me:$LINENO: result: no" >&5
2857 echo "${ECHO_T}no" >&6; }
2858 fi
2859
2860
2861   test -n "$ac_ct_CXX" && break
2862 done
2863
2864   if test "x$ac_ct_CXX" = x; then
2865     CXX="g++"
2866   else
2867     case $cross_compiling:$ac_tool_warned in
2868 yes:)
2869 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2870 whose name does not start with the host triplet.  If you think this
2871 configuration is useful to you, please write to autoconf@gnu.org." >&5
2872 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2873 whose name does not start with the host triplet.  If you think this
2874 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2875 ac_tool_warned=yes ;;
2876 esac
2877     CXX=$ac_ct_CXX
2878   fi
2879 fi
2880
2881   fi
2882 fi
2883 # Provide some information about the compiler.
2884 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2885 ac_compiler=`set X $ac_compile; echo $2`
2886 { (ac_try="$ac_compiler --version >&5"
2887 case "(($ac_try" in
2888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889   *) ac_try_echo=$ac_try;;
2890 esac
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892   (eval "$ac_compiler --version >&5") 2>&5
2893   ac_status=$?
2894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895   (exit $ac_status); }
2896 { (ac_try="$ac_compiler -v >&5"
2897 case "(($ac_try" in
2898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899   *) ac_try_echo=$ac_try;;
2900 esac
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902   (eval "$ac_compiler -v >&5") 2>&5
2903   ac_status=$?
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); }
2906 { (ac_try="$ac_compiler -V >&5"
2907 case "(($ac_try" in
2908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909   *) ac_try_echo=$ac_try;;
2910 esac
2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912   (eval "$ac_compiler -V >&5") 2>&5
2913   ac_status=$?
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); }
2916
2917 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2918 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2919 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2920   echo $ECHO_N "(cached) $ECHO_C" >&6
2921 else
2922   cat >conftest.$ac_ext <<_ACEOF
2923 /* confdefs.h.  */
2924 _ACEOF
2925 cat confdefs.h >>conftest.$ac_ext
2926 cat >>conftest.$ac_ext <<_ACEOF
2927 /* end confdefs.h.  */
2928
2929 int
2930 main ()
2931 {
2932 #ifndef __GNUC__
2933        choke me
2934 #endif
2935
2936   ;
2937   return 0;
2938 }
2939 _ACEOF
2940 rm -f conftest.$ac_objext
2941 if { (ac_try="$ac_compile"
2942 case "(($ac_try" in
2943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944   *) ac_try_echo=$ac_try;;
2945 esac
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947   (eval "$ac_compile") 2>conftest.er1
2948   ac_status=$?
2949   grep -v '^ *+' conftest.er1 >conftest.err
2950   rm -f conftest.er1
2951   cat conftest.err >&5
2952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953   (exit $ac_status); } &&
2954          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2955   { (case "(($ac_try" in
2956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957   *) ac_try_echo=$ac_try;;
2958 esac
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960   (eval "$ac_try") 2>&5
2961   ac_status=$?
2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963   (exit $ac_status); }; } &&
2964          { ac_try='test -s conftest.$ac_objext'
2965   { (case "(($ac_try" in
2966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967   *) ac_try_echo=$ac_try;;
2968 esac
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970   (eval "$ac_try") 2>&5
2971   ac_status=$?
2972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973   (exit $ac_status); }; }; then
2974   ac_compiler_gnu=yes
2975 else
2976   echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2978
2979         ac_compiler_gnu=no
2980 fi
2981
2982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2983 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2984
2985 fi
2986 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2987 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2988 GXX=`test $ac_compiler_gnu = yes && echo yes`
2989 ac_test_CXXFLAGS=${CXXFLAGS+set}
2990 ac_save_CXXFLAGS=$CXXFLAGS
2991 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2992 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2993 if test "${ac_cv_prog_cxx_g+set}" = set; then
2994   echo $ECHO_N "(cached) $ECHO_C" >&6
2995 else
2996   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2997    ac_cxx_werror_flag=yes
2998    ac_cv_prog_cxx_g=no
2999    CXXFLAGS="-g"
3000    cat >conftest.$ac_ext <<_ACEOF
3001 /* confdefs.h.  */
3002 _ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>conftest.$ac_ext <<_ACEOF
3005 /* end confdefs.h.  */
3006
3007 int
3008 main ()
3009 {
3010
3011   ;
3012   return 0;
3013 }
3014 _ACEOF
3015 rm -f conftest.$ac_objext
3016 if { (ac_try="$ac_compile"
3017 case "(($ac_try" in
3018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019   *) ac_try_echo=$ac_try;;
3020 esac
3021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022   (eval "$ac_compile") 2>conftest.er1
3023   ac_status=$?
3024   grep -v '^ *+' conftest.er1 >conftest.err
3025   rm -f conftest.er1
3026   cat conftest.err >&5
3027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028   (exit $ac_status); } &&
3029          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3030   { (case "(($ac_try" in
3031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032   *) ac_try_echo=$ac_try;;
3033 esac
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035   (eval "$ac_try") 2>&5
3036   ac_status=$?
3037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038   (exit $ac_status); }; } &&
3039          { ac_try='test -s conftest.$ac_objext'
3040   { (case "(($ac_try" in
3041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042   *) ac_try_echo=$ac_try;;
3043 esac
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045   (eval "$ac_try") 2>&5
3046   ac_status=$?
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); }; }; then
3049   ac_cv_prog_cxx_g=yes
3050 else
3051   echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3053
3054         CXXFLAGS=""
3055       cat >conftest.$ac_ext <<_ACEOF
3056 /* confdefs.h.  */
3057 _ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h.  */
3061
3062 int
3063 main ()
3064 {
3065
3066   ;
3067   return 0;
3068 }
3069 _ACEOF
3070 rm -f conftest.$ac_objext
3071 if { (ac_try="$ac_compile"
3072 case "(($ac_try" in
3073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074   *) ac_try_echo=$ac_try;;
3075 esac
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077   (eval "$ac_compile") 2>conftest.er1
3078   ac_status=$?
3079   grep -v '^ *+' conftest.er1 >conftest.err
3080   rm -f conftest.er1
3081   cat conftest.err >&5
3082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083   (exit $ac_status); } &&
3084          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3085   { (case "(($ac_try" in
3086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087   *) ac_try_echo=$ac_try;;
3088 esac
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090   (eval "$ac_try") 2>&5
3091   ac_status=$?
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); }; } &&
3094          { ac_try='test -s conftest.$ac_objext'
3095   { (case "(($ac_try" in
3096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097   *) ac_try_echo=$ac_try;;
3098 esac
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100   (eval "$ac_try") 2>&5
3101   ac_status=$?
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); }; }; then
3104   :
3105 else
3106   echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3108
3109         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3110          CXXFLAGS="-g"
3111          cat >conftest.$ac_ext <<_ACEOF
3112 /* confdefs.h.  */
3113 _ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h.  */
3117
3118 int
3119 main ()
3120 {
3121
3122   ;
3123   return 0;
3124 }
3125 _ACEOF
3126 rm -f conftest.$ac_objext
3127 if { (ac_try="$ac_compile"
3128 case "(($ac_try" in
3129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130   *) ac_try_echo=$ac_try;;
3131 esac
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133   (eval "$ac_compile") 2>conftest.er1
3134   ac_status=$?
3135   grep -v '^ *+' conftest.er1 >conftest.err
3136   rm -f conftest.er1
3137   cat conftest.err >&5
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); } &&
3140          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3141   { (case "(($ac_try" in
3142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143   *) ac_try_echo=$ac_try;;
3144 esac
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146   (eval "$ac_try") 2>&5
3147   ac_status=$?
3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149   (exit $ac_status); }; } &&
3150          { ac_try='test -s conftest.$ac_objext'
3151   { (case "(($ac_try" in
3152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153   *) ac_try_echo=$ac_try;;
3154 esac
3155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156   (eval "$ac_try") 2>&5
3157   ac_status=$?
3158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159   (exit $ac_status); }; }; then
3160   ac_cv_prog_cxx_g=yes
3161 else
3162   echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3164
3165
3166 fi
3167
3168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3169 fi
3170
3171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3172 fi
3173
3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3175    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3176 fi
3177 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3178 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3179 if test "$ac_test_CXXFLAGS" = set; then
3180   CXXFLAGS=$ac_save_CXXFLAGS
3181 elif test $ac_cv_prog_cxx_g = yes; then
3182   if test "$GXX" = yes; then
3183     CXXFLAGS="-g -O2"
3184   else
3185     CXXFLAGS="-g"
3186   fi
3187 else
3188   if test "$GXX" = yes; then
3189     CXXFLAGS="-O2"
3190   else
3191     CXXFLAGS=
3192   fi
3193 fi
3194 ac_ext=c
3195 ac_cpp='$CPP $CPPFLAGS'
3196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3199
3200 ac_ext=c
3201 ac_cpp='$CPP $CPPFLAGS'
3202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3205 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3206 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3207 # On Suns, sometimes $CPP names a directory.
3208 if test -n "$CPP" && test -d "$CPP"; then
3209   CPP=
3210 fi
3211 if test -z "$CPP"; then
3212   if test "${ac_cv_prog_CPP+set}" = set; then
3213   echo $ECHO_N "(cached) $ECHO_C" >&6
3214 else
3215       # Double quotes because CPP needs to be expanded
3216     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3217     do
3218       ac_preproc_ok=false
3219 for ac_c_preproc_warn_flag in '' yes
3220 do
3221   # Use a header file that comes with gcc, so configuring glibc
3222   # with a fresh cross-compiler works.
3223   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3224   # <limits.h> exists even on freestanding compilers.
3225   # On the NeXT, cc -E runs the code through the compiler's parser,
3226   # not just through cpp. "Syntax error" is here to catch this case.
3227   cat >conftest.$ac_ext <<_ACEOF
3228 /* confdefs.h.  */
3229 _ACEOF
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h.  */
3233 #ifdef __STDC__
3234 # include <limits.h>
3235 #else
3236 # include <assert.h>
3237 #endif
3238                      Syntax error
3239 _ACEOF
3240 if { (ac_try="$ac_cpp conftest.$ac_ext"
3241 case "(($ac_try" in
3242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243   *) ac_try_echo=$ac_try;;
3244 esac
3245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3247   ac_status=$?
3248   grep -v '^ *+' conftest.er1 >conftest.err
3249   rm -f conftest.er1
3250   cat conftest.err >&5
3251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252   (exit $ac_status); } >/dev/null; then
3253   if test -s conftest.err; then
3254     ac_cpp_err=$ac_c_preproc_warn_flag
3255     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3256   else
3257     ac_cpp_err=
3258   fi
3259 else
3260   ac_cpp_err=yes
3261 fi
3262 if test -z "$ac_cpp_err"; then
3263   :
3264 else
3265   echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3267
3268   # Broken: fails on valid input.
3269 continue
3270 fi
3271
3272 rm -f conftest.err conftest.$ac_ext
3273
3274   # OK, works on sane cases.  Now check whether nonexistent headers
3275   # can be detected and how.
3276   cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h.  */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h.  */
3282 #include <ac_nonexistent.h>
3283 _ACEOF
3284 if { (ac_try="$ac_cpp conftest.$ac_ext"
3285 case "(($ac_try" in
3286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287   *) ac_try_echo=$ac_try;;
3288 esac
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3291   ac_status=$?
3292   grep -v '^ *+' conftest.er1 >conftest.err
3293   rm -f conftest.er1
3294   cat conftest.err >&5
3295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296   (exit $ac_status); } >/dev/null; then
3297   if test -s conftest.err; then
3298     ac_cpp_err=$ac_c_preproc_warn_flag
3299     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3300   else
3301     ac_cpp_err=
3302   fi
3303 else
3304   ac_cpp_err=yes
3305 fi
3306 if test -z "$ac_cpp_err"; then
3307   # Broken: success on invalid input.
3308 continue
3309 else
3310   echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3312
3313   # Passes both tests.
3314 ac_preproc_ok=:
3315 break
3316 fi
3317
3318 rm -f conftest.err conftest.$ac_ext
3319
3320 done
3321 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3322 rm -f conftest.err conftest.$ac_ext
3323 if $ac_preproc_ok; then
3324   break
3325 fi
3326
3327     done
3328     ac_cv_prog_CPP=$CPP
3329
3330 fi
3331   CPP=$ac_cv_prog_CPP
3332 else
3333   ac_cv_prog_CPP=$CPP
3334 fi
3335 { echo "$as_me:$LINENO: result: $CPP" >&5
3336 echo "${ECHO_T}$CPP" >&6; }
3337 ac_preproc_ok=false
3338 for ac_c_preproc_warn_flag in '' yes
3339 do
3340   # Use a header file that comes with gcc, so configuring glibc
3341   # with a fresh cross-compiler works.
3342   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3343   # <limits.h> exists even on freestanding compilers.
3344   # On the NeXT, cc -E runs the code through the compiler's parser,
3345   # not just through cpp. "Syntax error" is here to catch this case.
3346   cat >conftest.$ac_ext <<_ACEOF
3347 /* confdefs.h.  */
3348 _ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h.  */
3352 #ifdef __STDC__
3353 # include <limits.h>
3354 #else
3355 # include <assert.h>
3356 #endif
3357                      Syntax error
3358 _ACEOF
3359 if { (ac_try="$ac_cpp conftest.$ac_ext"
3360 case "(($ac_try" in
3361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362   *) ac_try_echo=$ac_try;;
3363 esac
3364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3365   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3366   ac_status=$?
3367   grep -v '^ *+' conftest.er1 >conftest.err
3368   rm -f conftest.er1
3369   cat conftest.err >&5
3370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371   (exit $ac_status); } >/dev/null; then
3372   if test -s conftest.err; then
3373     ac_cpp_err=$ac_c_preproc_warn_flag
3374     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3375   else
3376     ac_cpp_err=
3377   fi
3378 else
3379   ac_cpp_err=yes
3380 fi
3381 if test -z "$ac_cpp_err"; then
3382   :
3383 else
3384   echo "$as_me: failed program was:" >&5
3385 sed 's/^/| /' conftest.$ac_ext >&5
3386
3387   # Broken: fails on valid input.
3388 continue
3389 fi
3390
3391 rm -f conftest.err conftest.$ac_ext
3392
3393   # OK, works on sane cases.  Now check whether nonexistent headers
3394   # can be detected and how.
3395   cat >conftest.$ac_ext <<_ACEOF
3396 /* confdefs.h.  */
3397 _ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h.  */
3401 #include <ac_nonexistent.h>
3402 _ACEOF
3403 if { (ac_try="$ac_cpp conftest.$ac_ext"
3404 case "(($ac_try" in
3405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406   *) ac_try_echo=$ac_try;;
3407 esac
3408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3410   ac_status=$?
3411   grep -v '^ *+' conftest.er1 >conftest.err
3412   rm -f conftest.er1
3413   cat conftest.err >&5
3414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415   (exit $ac_status); } >/dev/null; then
3416   if test -s conftest.err; then
3417     ac_cpp_err=$ac_c_preproc_warn_flag
3418     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3419   else
3420     ac_cpp_err=
3421   fi
3422 else
3423   ac_cpp_err=yes
3424 fi
3425 if test -z "$ac_cpp_err"; then
3426   # Broken: success on invalid input.
3427 continue
3428 else
3429   echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3431
3432   # Passes both tests.
3433 ac_preproc_ok=:
3434 break
3435 fi
3436
3437 rm -f conftest.err conftest.$ac_ext
3438
3439 done
3440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3441 rm -f conftest.err conftest.$ac_ext
3442 if $ac_preproc_ok; then
3443   :
3444 else
3445   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3446 See \`config.log' for more details." >&5
3447 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3448 See \`config.log' for more details." >&2;}
3449    { (exit 1); exit 1; }; }
3450 fi
3451
3452 ac_ext=c
3453 ac_cpp='$CPP $CPPFLAGS'
3454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457
3458
3459
3460
3461 if test -d ${srcdir}/projects/llvm-gcc ; then
3462   subdirs="$subdirs projects/llvm-gcc"
3463
3464 fi
3465
3466 if test -d ${srcdir}/projects/test-suite ; then
3467   subdirs="$subdirs projects/test-suite"
3468
3469 fi
3470
3471 if test -d ${srcdir}/projects/llvm-test ; then
3472   subdirs="$subdirs projects/llvm-test"
3473
3474 fi
3475
3476 if test -d ${srcdir}/projects/poolalloc ; then
3477   subdirs="$subdirs projects/poolalloc"
3478
3479 fi
3480
3481 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3482   subdirs="$subdirs projects/llvm-poolalloc"
3483
3484 fi
3485
3486 for i in `ls ${srcdir}/projects`
3487 do
3488   if test -d ${srcdir}/projects/${i} ; then
3489     case ${i} in
3490       sample)       subdirs="$subdirs projects/sample"
3491     ;;
3492       privbracket)  subdirs="$subdirs projects/privbracket"
3493  ;;
3494       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3495  ;;
3496       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3497 ;;
3498       llvm-java)    subdirs="$subdirs projects/llvm-java"
3499  ;;
3500       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3501    ;;
3502       safecode)     subdirs="$subdirs projects/safecode"
3503  ;;
3504       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3505  ;;
3506       compiler-rt)       ;;
3507       llvm-gcc)       ;;
3508       test-suite)     ;;
3509       llvm-test)      ;;
3510       poolalloc)      ;;
3511       llvm-poolalloc) ;;
3512       *)
3513         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3514 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3515         ;;
3516     esac
3517   fi
3518 done
3519
3520 # Check whether --enable-polly was given.
3521 if test "${enable_polly+set}" = set; then
3522   enableval=$enable_polly;
3523 else
3524   enableval=default
3525 fi
3526
3527 case "$enableval" in
3528   yes) ENABLE_POLLY=1
3529  ;;
3530   no)  ENABLE_POLLY=0
3531  ;;
3532   default) ENABLE_POLLY=1
3533  ;;
3534   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3535 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3536    { (exit 1); exit 1; }; } ;;
3537 esac
3538
3539
3540 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3541   LLVM_HAS_POLLY=1
3542
3543   subdirs="$subdirs tools/polly"
3544
3545 fi
3546
3547
3548 # Make sure we can run config.sub.
3549 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3550   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3551 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3552    { (exit 1); exit 1; }; }
3553
3554 { echo "$as_me:$LINENO: checking build system type" >&5
3555 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3556 if test "${ac_cv_build+set}" = set; then
3557   echo $ECHO_N "(cached) $ECHO_C" >&6
3558 else
3559   ac_build_alias=$build_alias
3560 test "x$ac_build_alias" = x &&
3561   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3562 test "x$ac_build_alias" = x &&
3563   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3564 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3565    { (exit 1); exit 1; }; }
3566 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3567   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3568 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3569    { (exit 1); exit 1; }; }
3570
3571 fi
3572 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3573 echo "${ECHO_T}$ac_cv_build" >&6; }
3574 case $ac_cv_build in
3575 *-*-*) ;;
3576 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3577 echo "$as_me: error: invalid value of canonical build" >&2;}
3578    { (exit 1); exit 1; }; };;
3579 esac
3580 build=$ac_cv_build
3581 ac_save_IFS=$IFS; IFS='-'
3582 set x $ac_cv_build
3583 shift
3584 build_cpu=$1
3585 build_vendor=$2
3586 shift; shift
3587 # Remember, the first character of IFS is used to create $*,
3588 # except with old shells:
3589 build_os=$*
3590 IFS=$ac_save_IFS
3591 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3592
3593
3594 { echo "$as_me:$LINENO: checking host system type" >&5
3595 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3596 if test "${ac_cv_host+set}" = set; then
3597   echo $ECHO_N "(cached) $ECHO_C" >&6
3598 else
3599   if test "x$host_alias" = x; then
3600   ac_cv_host=$ac_cv_build
3601 else
3602   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3603     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3604 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3605    { (exit 1); exit 1; }; }
3606 fi
3607
3608 fi
3609 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3610 echo "${ECHO_T}$ac_cv_host" >&6; }
3611 case $ac_cv_host in
3612 *-*-*) ;;
3613 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3614 echo "$as_me: error: invalid value of canonical host" >&2;}
3615    { (exit 1); exit 1; }; };;
3616 esac
3617 host=$ac_cv_host
3618 ac_save_IFS=$IFS; IFS='-'
3619 set x $ac_cv_host
3620 shift
3621 host_cpu=$1
3622 host_vendor=$2
3623 shift; shift
3624 # Remember, the first character of IFS is used to create $*,
3625 # except with old shells:
3626 host_os=$*
3627 IFS=$ac_save_IFS
3628 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3629
3630
3631 { echo "$as_me:$LINENO: checking target system type" >&5
3632 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3633 if test "${ac_cv_target+set}" = set; then
3634   echo $ECHO_N "(cached) $ECHO_C" >&6
3635 else
3636   if test "x$target_alias" = x; then
3637   ac_cv_target=$ac_cv_host
3638 else
3639   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3640     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3641 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3642    { (exit 1); exit 1; }; }
3643 fi
3644
3645 fi
3646 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3647 echo "${ECHO_T}$ac_cv_target" >&6; }
3648 case $ac_cv_target in
3649 *-*-*) ;;
3650 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3651 echo "$as_me: error: invalid value of canonical target" >&2;}
3652    { (exit 1); exit 1; }; };;
3653 esac
3654 target=$ac_cv_target
3655 ac_save_IFS=$IFS; IFS='-'
3656 set x $ac_cv_target
3657 shift
3658 target_cpu=$1
3659 target_vendor=$2
3660 shift; shift
3661 # Remember, the first character of IFS is used to create $*,
3662 # except with old shells:
3663 target_os=$*
3664 IFS=$ac_save_IFS
3665 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3666
3667
3668 # The aliases save the names the user supplied, while $host etc.
3669 # will get canonicalized.
3670 test -n "$target_alias" &&
3671   test "$program_prefix$program_suffix$program_transform_name" = \
3672     NONENONEs,x,x, &&
3673   program_prefix=${target_alias}-
3674
3675 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3676 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3677 if test "${llvm_cv_os_type+set}" = set; then
3678   echo $ECHO_N "(cached) $ECHO_C" >&6
3679 else
3680   case $host in
3681   *-*-aix*)
3682     llvm_cv_link_all_option="-Wl,--whole-archive"
3683     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3684     llvm_cv_os_type="AIX"
3685     llvm_cv_platform_type="Unix" ;;
3686   *-*-irix*)
3687     llvm_cv_link_all_option="-Wl,--whole-archive"
3688     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3689     llvm_cv_os_type="IRIX"
3690     llvm_cv_platform_type="Unix" ;;
3691   *-*-cygwin*)
3692     llvm_cv_link_all_option="-Wl,--whole-archive"
3693     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3694     llvm_cv_os_type="Cygwin"
3695     llvm_cv_platform_type="Unix" ;;
3696   *-*-darwin*)
3697     llvm_cv_link_all_option="-Wl,-all_load"
3698     llvm_cv_no_link_all_option="-Wl,-noall_load"
3699     llvm_cv_os_type="Darwin"
3700     llvm_cv_platform_type="Unix" ;;
3701   *-*-minix*)
3702     llvm_cv_link_all_option="-Wl,-all_load"
3703     llvm_cv_no_link_all_option="-Wl,-noall_load"
3704     llvm_cv_os_type="Minix"
3705     llvm_cv_platform_type="Unix" ;;
3706   *-*-freebsd* | *-*-kfreebsd-gnu)
3707     llvm_cv_link_all_option="-Wl,--whole-archive"
3708     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709     llvm_cv_os_type="FreeBSD"
3710     llvm_cv_platform_type="Unix" ;;
3711   *-*-openbsd*)
3712     llvm_cv_link_all_option="-Wl,--whole-archive"
3713     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714     llvm_cv_os_type="OpenBSD"
3715     llvm_cv_platform_type="Unix" ;;
3716   *-*-netbsd*)
3717     llvm_cv_link_all_option="-Wl,--whole-archive"
3718     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719     llvm_cv_os_type="NetBSD"
3720     llvm_cv_platform_type="Unix" ;;
3721   *-*-dragonfly*)
3722     llvm_cv_link_all_option="-Wl,--whole-archive"
3723     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724     llvm_cv_os_type="DragonFly"
3725     llvm_cv_platform_type="Unix" ;;
3726   *-*-hpux*)
3727     llvm_cv_link_all_option="-Wl,--whole-archive"
3728     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729     llvm_cv_os_type="HP-UX"
3730     llvm_cv_platform_type="Unix" ;;
3731   *-*-interix*)
3732     llvm_cv_link_all_option="-Wl,--whole-archive"
3733     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3734     llvm_cv_os_type="Interix"
3735     llvm_cv_platform_type="Unix" ;;
3736   *-*-linux*)
3737     llvm_cv_link_all_option="-Wl,--whole-archive"
3738     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3739     llvm_cv_os_type="Linux"
3740     llvm_cv_platform_type="Unix" ;;
3741   *-*-gnu*)
3742     llvm_cv_link_all_option="-Wl,--whole-archive"
3743     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3744     llvm_cv_os_type="GNU"
3745     llvm_cv_platform_type="Unix" ;;
3746   *-*-solaris*)
3747     llvm_cv_link_all_option="-Wl,-z,allextract"
3748     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3749     llvm_cv_os_type="SunOS"
3750     llvm_cv_platform_type="Unix" ;;
3751   *-*-auroraux*)
3752     llvm_cv_link_all_option="-Wl,-z,allextract"
3753     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3754     llvm_cv_os_type="AuroraUX"
3755     llvm_cv_platform_type="Unix" ;;
3756   *-*-win32*)
3757     llvm_cv_link_all_option="-Wl,--whole-archive"
3758     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3759     llvm_cv_os_type="Win32"
3760     llvm_cv_platform_type="Win32" ;;
3761   *-*-mingw*)
3762     llvm_cv_link_all_option="-Wl,--whole-archive"
3763     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3764     llvm_cv_os_type="MingW"
3765     llvm_cv_platform_type="Win32" ;;
3766   *-*-haiku*)
3767     llvm_cv_link_all_option="-Wl,--whole-archive"
3768     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3769     llvm_cv_os_type="Haiku"
3770     llvm_cv_platform_type="Unix" ;;
3771   *-unknown-eabi*)
3772     llvm_cv_link_all_option="-Wl,--whole-archive"
3773     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3774     llvm_cv_os_type="Freestanding"
3775     llvm_cv_platform_type="Unix" ;;
3776   *-unknown-elf*)
3777     llvm_cv_link_all_option="-Wl,--whole-archive"
3778     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3779     llvm_cv_os_type="Freestanding"
3780     llvm_cv_platform_type="Unix" ;;
3781   *)
3782     llvm_cv_link_all_option=""
3783     llvm_cv_no_link_all_option=""
3784     llvm_cv_os_type="Unknown"
3785     llvm_cv_platform_type="Unknown" ;;
3786 esac
3787 fi
3788 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3789 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3790
3791 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3792 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3793 if test "${llvm_cv_target_os_type+set}" = set; then
3794   echo $ECHO_N "(cached) $ECHO_C" >&6
3795 else
3796   case $target in
3797   *-*-aix*)
3798     llvm_cv_target_os_type="AIX" ;;
3799   *-*-irix*)
3800     llvm_cv_target_os_type="IRIX" ;;
3801   *-*-cygwin*)
3802     llvm_cv_target_os_type="Cygwin" ;;
3803   *-*-darwin*)
3804     llvm_cv_target_os_type="Darwin" ;;
3805   *-*-minix*)
3806     llvm_cv_target_os_type="Minix" ;;
3807   *-*-freebsd* | *-*-kfreebsd-gnu)
3808     llvm_cv_target_os_type="FreeBSD" ;;
3809   *-*-openbsd*)
3810     llvm_cv_target_os_type="OpenBSD" ;;
3811   *-*-netbsd*)
3812     llvm_cv_target_os_type="NetBSD" ;;
3813   *-*-dragonfly*)
3814     llvm_cv_target_os_type="DragonFly" ;;
3815   *-*-hpux*)
3816     llvm_cv_target_os_type="HP-UX" ;;
3817   *-*-interix*)
3818     llvm_cv_target_os_type="Interix" ;;
3819   *-*-linux*)
3820     llvm_cv_target_os_type="Linux" ;;
3821   *-*-gnu*)
3822     llvm_cv_target_os_type="GNU" ;;
3823   *-*-solaris*)
3824     llvm_cv_target_os_type="SunOS" ;;
3825   *-*-auroraux*)
3826     llvm_cv_target_os_type="AuroraUX" ;;
3827   *-*-win32*)
3828     llvm_cv_target_os_type="Win32" ;;
3829   *-*-mingw*)
3830     llvm_cv_target_os_type="MingW" ;;
3831   *-*-haiku*)
3832     llvm_cv_target_os_type="Haiku" ;;
3833   *-*-rtems*)
3834     llvm_cv_target_os_type="RTEMS" ;;
3835   *-*-nacl*)
3836     llvm_cv_target_os_type="NativeClient" ;;
3837   *-unknown-eabi*)
3838     llvm_cv_target_os_type="Freestanding" ;;
3839   *)
3840     llvm_cv_target_os_type="Unknown" ;;
3841 esac
3842 fi
3843 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3844 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3845
3846 if test "$llvm_cv_os_type" = "Unknown" ; then
3847   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3848 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3849    { (exit 1); exit 1; }; }
3850 fi
3851
3852 OS=$llvm_cv_os_type
3853
3854 HOST_OS=$llvm_cv_os_type
3855
3856 TARGET_OS=$llvm_cv_target_os_type
3857
3858
3859 LINKALL=$llvm_cv_link_all_option
3860
3861 NOLINKALL=$llvm_cv_no_link_all_option
3862
3863
3864 case $llvm_cv_platform_type in
3865   Unix)
3866
3867 cat >>confdefs.h <<\_ACEOF
3868 #define LLVM_ON_UNIX 1
3869 _ACEOF
3870
3871     LLVM_ON_UNIX=1
3872
3873     LLVM_ON_WIN32=0
3874
3875     ;;
3876   Win32)
3877
3878 cat >>confdefs.h <<\_ACEOF
3879 #define LLVM_ON_WIN32 1
3880 _ACEOF
3881
3882     LLVM_ON_UNIX=0
3883
3884     LLVM_ON_WIN32=1
3885
3886     ;;
3887 esac
3888
3889 { echo "$as_me:$LINENO: checking target architecture" >&5
3890 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3891 if test "${llvm_cv_target_arch+set}" = set; then
3892   echo $ECHO_N "(cached) $ECHO_C" >&6
3893 else
3894   case $target in
3895   i?86-*)                 llvm_cv_target_arch="x86" ;;
3896   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3897   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3898   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3899   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3900   mips-*)                 llvm_cv_target_arch="Mips" ;;
3901   mipsel-*)               llvm_cv_target_arch="Mips" ;;
3902   xcore-*)                llvm_cv_target_arch="XCore" ;;
3903   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3904   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3905   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3906   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3907   *)                      llvm_cv_target_arch="Unknown" ;;
3908 esac
3909 fi
3910 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3911 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3912
3913 if test "$llvm_cv_target_arch" = "Unknown" ; then
3914   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3915 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3916 fi
3917
3918 case "$llvm_cv_target_arch" in
3919     x86)     LLVM_NATIVE_ARCH="X86" ;;
3920     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3921     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3922 esac
3923
3924 ARCH=$llvm_cv_target_arch
3925
3926
3927 case $host in
3928   i?86-*)                 host_arch="x86" ;;
3929   amd64-* | x86_64-*)     host_arch="x86_64" ;;
3930   sparc*-*)               host_arch="Sparc" ;;
3931   powerpc*-*)             host_arch="PowerPC" ;;
3932   arm*-*)                 host_arch="ARM" ;;
3933   mips-*)                 host_arch="Mips" ;;
3934   mipsel-*)               host_arch="Mips" ;;
3935   xcore-*)                host_arch="XCore" ;;
3936   msp430-*)               host_arch="MSP430" ;;
3937   hexagon-*)              host_arch="Hexagon" ;;
3938   mblaze-*)               host_arch="MBlaze" ;;
3939   *)                      host_arch="Unknown" ;;
3940 esac
3941
3942 if test "$host_arch" = "Unknown" ; then
3943   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3944 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3945 fi
3946
3947 HOST_ARCH=$host_arch
3948
3949
3950
3951
3952 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3953 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3954 if test "${ac_cv_path_GREP+set}" = set; then
3955   echo $ECHO_N "(cached) $ECHO_C" >&6
3956 else
3957   # Extract the first word of "grep ggrep" to use in msg output
3958 if test -z "$GREP"; then
3959 set dummy grep ggrep; ac_prog_name=$2
3960 if test "${ac_cv_path_GREP+set}" = set; then
3961   echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3963   ac_path_GREP_found=false
3964 # Loop through the user's path and test for each of PROGNAME-LIST
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3967 do
3968   IFS=$as_save_IFS
3969   test -z "$as_dir" && as_dir=.
3970   for ac_prog in grep ggrep; do
3971   for ac_exec_ext in '' $ac_executable_extensions; do
3972     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3973     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3974     # Check for GNU ac_path_GREP and select it if it is found.
3975   # Check for GNU $ac_path_GREP
3976 case `"$ac_path_GREP" --version 2>&1` in
3977 *GNU*)
3978   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3979 *)
3980   ac_count=0
3981   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3982   while :
3983   do
3984     cat "conftest.in" "conftest.in" >"conftest.tmp"
3985     mv "conftest.tmp" "conftest.in"
3986     cp "conftest.in" "conftest.nl"
3987     echo 'GREP' >> "conftest.nl"
3988     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3989     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3990     ac_count=`expr $ac_count + 1`
3991     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3992       # Best one so far, save it but keep looking for a better one
3993       ac_cv_path_GREP="$ac_path_GREP"
3994       ac_path_GREP_max=$ac_count
3995     fi
3996     # 10*(2^10) chars as input seems more than enough
3997     test $ac_count -gt 10 && break
3998   done
3999   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4000 esac
4001
4002
4003     $ac_path_GREP_found && break 3
4004   done
4005 done
4006
4007 done
4008 IFS=$as_save_IFS
4009
4010
4011 fi
4012
4013 GREP="$ac_cv_path_GREP"
4014 if test -z "$GREP"; then
4015   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4016 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4017    { (exit 1); exit 1; }; }
4018 fi
4019
4020 else
4021   ac_cv_path_GREP=$GREP
4022 fi
4023
4024
4025 fi
4026 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4027 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4028  GREP="$ac_cv_path_GREP"
4029
4030
4031 { echo "$as_me:$LINENO: checking for egrep" >&5
4032 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4033 if test "${ac_cv_path_EGREP+set}" = set; then
4034   echo $ECHO_N "(cached) $ECHO_C" >&6
4035 else
4036   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4037    then ac_cv_path_EGREP="$GREP -E"
4038    else
4039      # Extract the first word of "egrep" to use in msg output
4040 if test -z "$EGREP"; then
4041 set dummy egrep; ac_prog_name=$2
4042 if test "${ac_cv_path_EGREP+set}" = set; then
4043   echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045   ac_path_EGREP_found=false
4046 # Loop through the user's path and test for each of PROGNAME-LIST
4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4049 do
4050   IFS=$as_save_IFS
4051   test -z "$as_dir" && as_dir=.
4052   for ac_prog in egrep; do
4053   for ac_exec_ext in '' $ac_executable_extensions; do
4054     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4055     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4056     # Check for GNU ac_path_EGREP and select it if it is found.
4057   # Check for GNU $ac_path_EGREP
4058 case `"$ac_path_EGREP" --version 2>&1` in
4059 *GNU*)
4060   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4061 *)
4062   ac_count=0
4063   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4064   while :
4065   do
4066     cat "conftest.in" "conftest.in" >"conftest.tmp"
4067     mv "conftest.tmp" "conftest.in"
4068     cp "conftest.in" "conftest.nl"
4069     echo 'EGREP' >> "conftest.nl"
4070     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4071     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4072     ac_count=`expr $ac_count + 1`
4073     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4074       # Best one so far, save it but keep looking for a better one
4075       ac_cv_path_EGREP="$ac_path_EGREP"
4076       ac_path_EGREP_max=$ac_count
4077     fi
4078     # 10*(2^10) chars as input seems more than enough
4079     test $ac_count -gt 10 && break
4080   done
4081   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4082 esac
4083
4084
4085     $ac_path_EGREP_found && break 3
4086   done
4087 done
4088
4089 done
4090 IFS=$as_save_IFS
4091
4092
4093 fi
4094
4095 EGREP="$ac_cv_path_EGREP"
4096 if test -z "$EGREP"; then
4097   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4098 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4099    { (exit 1); exit 1; }; }
4100 fi
4101
4102 else
4103   ac_cv_path_EGREP=$EGREP
4104 fi
4105
4106
4107    fi
4108 fi
4109 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4110 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4111  EGREP="$ac_cv_path_EGREP"
4112
4113
4114 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4115 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4116 if test "${ac_cv_header_stdc+set}" = set; then
4117   echo $ECHO_N "(cached) $ECHO_C" >&6
4118 else
4119   cat >conftest.$ac_ext <<_ACEOF
4120 /* confdefs.h.  */
4121 _ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h.  */
4125 #include <stdlib.h>
4126 #include <stdarg.h>
4127 #include <string.h>
4128 #include <float.h>
4129
4130 int
4131 main ()
4132 {
4133
4134   ;
4135   return 0;
4136 }
4137 _ACEOF
4138 rm -f conftest.$ac_objext
4139 if { (ac_try="$ac_compile"
4140 case "(($ac_try" in
4141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142   *) ac_try_echo=$ac_try;;
4143 esac
4144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145   (eval "$ac_compile") 2>conftest.er1
4146   ac_status=$?
4147   grep -v '^ *+' conftest.er1 >conftest.err
4148   rm -f conftest.er1
4149   cat conftest.err >&5
4150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151   (exit $ac_status); } &&
4152          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4153   { (case "(($ac_try" in
4154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155   *) ac_try_echo=$ac_try;;
4156 esac
4157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158   (eval "$ac_try") 2>&5
4159   ac_status=$?
4160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161   (exit $ac_status); }; } &&
4162          { ac_try='test -s conftest.$ac_objext'
4163   { (case "(($ac_try" in
4164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165   *) ac_try_echo=$ac_try;;
4166 esac
4167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168   (eval "$ac_try") 2>&5
4169   ac_status=$?
4170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171   (exit $ac_status); }; }; then
4172   ac_cv_header_stdc=yes
4173 else
4174   echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4176
4177         ac_cv_header_stdc=no
4178 fi
4179
4180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181
4182 if test $ac_cv_header_stdc = yes; then
4183   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4184   cat >conftest.$ac_ext <<_ACEOF
4185 /* confdefs.h.  */
4186 _ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h.  */
4190 #include <string.h>
4191
4192 _ACEOF
4193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4194   $EGREP "memchr" >/dev/null 2>&1; then
4195   :
4196 else
4197   ac_cv_header_stdc=no
4198 fi
4199 rm -f conftest*
4200
4201 fi
4202
4203 if test $ac_cv_header_stdc = yes; then
4204   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4205   cat >conftest.$ac_ext <<_ACEOF
4206 /* confdefs.h.  */
4207 _ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h.  */
4211 #include <stdlib.h>
4212
4213 _ACEOF
4214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4215   $EGREP "free" >/dev/null 2>&1; then
4216   :
4217 else
4218   ac_cv_header_stdc=no
4219 fi
4220 rm -f conftest*
4221
4222 fi
4223
4224 if test $ac_cv_header_stdc = yes; then
4225   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4226   if test "$cross_compiling" = yes; then
4227   :
4228 else
4229   cat >conftest.$ac_ext <<_ACEOF
4230 /* confdefs.h.  */
4231 _ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h.  */
4235 #include <ctype.h>
4236 #include <stdlib.h>
4237 #if ((' ' & 0x0FF) == 0x020)
4238 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4239 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4240 #else
4241 # define ISLOWER(c) \
4242                    (('a' <= (c) && (c) <= 'i') \
4243                      || ('j' <= (c) && (c) <= 'r') \
4244                      || ('s' <= (c) && (c) <= 'z'))
4245 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4246 #endif
4247
4248 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4249 int
4250 main ()
4251 {
4252   int i;
4253   for (i = 0; i < 256; i++)
4254     if (XOR (islower (i), ISLOWER (i))
4255         || toupper (i) != TOUPPER (i))
4256       return 2;
4257   return 0;
4258 }
4259 _ACEOF
4260 rm -f conftest$ac_exeext
4261 if { (ac_try="$ac_link"
4262 case "(($ac_try" in
4263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264   *) ac_try_echo=$ac_try;;
4265 esac
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267   (eval "$ac_link") 2>&5
4268   ac_status=$?
4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4271   { (case "(($ac_try" in
4272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273   *) ac_try_echo=$ac_try;;
4274 esac
4275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276   (eval "$ac_try") 2>&5
4277   ac_status=$?
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); }; }; then
4280   :
4281 else
4282   echo "$as_me: program exited with status $ac_status" >&5
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4285
4286 ( exit $ac_status )
4287 ac_cv_header_stdc=no
4288 fi
4289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4290 fi
4291
4292
4293 fi
4294 fi
4295 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4296 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4297 if test $ac_cv_header_stdc = yes; then
4298
4299 cat >>confdefs.h <<\_ACEOF
4300 #define STDC_HEADERS 1
4301 _ACEOF
4302
4303 fi
4304
4305 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4316                   inttypes.h stdint.h unistd.h
4317 do
4318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4322   echo $ECHO_N "(cached) $ECHO_C" >&6
4323 else
4324   cat >conftest.$ac_ext <<_ACEOF
4325 /* confdefs.h.  */
4326 _ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h.  */
4330 $ac_includes_default
4331
4332 #include <$ac_header>
4333 _ACEOF
4334 rm -f conftest.$ac_objext
4335 if { (ac_try="$ac_compile"
4336 case "(($ac_try" in
4337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338   *) ac_try_echo=$ac_try;;
4339 esac
4340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4341   (eval "$ac_compile") 2>conftest.er1
4342   ac_status=$?
4343   grep -v '^ *+' conftest.er1 >conftest.err
4344   rm -f conftest.er1
4345   cat conftest.err >&5
4346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347   (exit $ac_status); } &&
4348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4349   { (case "(($ac_try" in
4350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351   *) ac_try_echo=$ac_try;;
4352 esac
4353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4354   (eval "$ac_try") 2>&5
4355   ac_status=$?
4356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357   (exit $ac_status); }; } &&
4358          { ac_try='test -s conftest.$ac_objext'
4359   { (case "(($ac_try" in
4360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361   *) ac_try_echo=$ac_try;;
4362 esac
4363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364   (eval "$ac_try") 2>&5
4365   ac_status=$?
4366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367   (exit $ac_status); }; }; then
4368   eval "$as_ac_Header=yes"
4369 else
4370   echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4372
4373         eval "$as_ac_Header=no"
4374 fi
4375
4376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377 fi
4378 ac_res=`eval echo '${'$as_ac_Header'}'`
4379                { echo "$as_me:$LINENO: result: $ac_res" >&5
4380 echo "${ECHO_T}$ac_res" >&6; }
4381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4382   cat >>confdefs.h <<_ACEOF
4383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4384 _ACEOF
4385
4386 fi
4387
4388 done
4389
4390
4391 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4392 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4393 if test "${ac_cv_c_bigendian+set}" = set; then
4394   echo $ECHO_N "(cached) $ECHO_C" >&6
4395 else
4396   # See if sys/param.h defines the BYTE_ORDER macro.
4397 cat >conftest.$ac_ext <<_ACEOF
4398 /* confdefs.h.  */
4399 _ACEOF
4400 cat confdefs.h >>conftest.$ac_ext
4401 cat >>conftest.$ac_ext <<_ACEOF
4402 /* end confdefs.h.  */
4403 #include <sys/types.h>
4404 #include <sys/param.h>
4405
4406 int
4407 main ()
4408 {
4409 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4410  bogus endian macros
4411 #endif
4412
4413   ;
4414   return 0;
4415 }
4416 _ACEOF
4417 rm -f conftest.$ac_objext
4418 if { (ac_try="$ac_compile"
4419 case "(($ac_try" in
4420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421   *) ac_try_echo=$ac_try;;
4422 esac
4423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424   (eval "$ac_compile") 2>conftest.er1
4425   ac_status=$?
4426   grep -v '^ *+' conftest.er1 >conftest.err
4427   rm -f conftest.er1
4428   cat conftest.err >&5
4429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); } &&
4431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4432   { (case "(($ac_try" in
4433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434   *) ac_try_echo=$ac_try;;
4435 esac
4436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4437   (eval "$ac_try") 2>&5
4438   ac_status=$?
4439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440   (exit $ac_status); }; } &&
4441          { ac_try='test -s conftest.$ac_objext'
4442   { (case "(($ac_try" in
4443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444   *) ac_try_echo=$ac_try;;
4445 esac
4446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4447   (eval "$ac_try") 2>&5
4448   ac_status=$?
4449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450   (exit $ac_status); }; }; then
4451   # It does; now see whether it defined to BIG_ENDIAN or not.
4452 cat >conftest.$ac_ext <<_ACEOF
4453 /* confdefs.h.  */
4454 _ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h.  */
4458 #include <sys/types.h>
4459 #include <sys/param.h>
4460
4461 int
4462 main ()
4463 {
4464 #if BYTE_ORDER != BIG_ENDIAN
4465  not big endian
4466 #endif
4467
4468   ;
4469   return 0;
4470 }
4471 _ACEOF
4472 rm -f conftest.$ac_objext
4473 if { (ac_try="$ac_compile"
4474 case "(($ac_try" in
4475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476   *) ac_try_echo=$ac_try;;
4477 esac
4478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4479   (eval "$ac_compile") 2>conftest.er1
4480   ac_status=$?
4481   grep -v '^ *+' conftest.er1 >conftest.err
4482   rm -f conftest.er1
4483   cat conftest.err >&5
4484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485   (exit $ac_status); } &&
4486          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4487   { (case "(($ac_try" in
4488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489   *) ac_try_echo=$ac_try;;
4490 esac
4491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4492   (eval "$ac_try") 2>&5
4493   ac_status=$?
4494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495   (exit $ac_status); }; } &&
4496          { ac_try='test -s conftest.$ac_objext'
4497   { (case "(($ac_try" in
4498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499   *) ac_try_echo=$ac_try;;
4500 esac
4501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502   (eval "$ac_try") 2>&5
4503   ac_status=$?
4504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505   (exit $ac_status); }; }; then
4506   ac_cv_c_bigendian=yes
4507 else
4508   echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4510
4511         ac_cv_c_bigendian=no
4512 fi
4513
4514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4515 else
4516   echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4518
4519         # It does not; compile a test program.
4520 if test "$cross_compiling" = yes; then
4521   # try to guess the endianness by grepping values into an object file
4522   ac_cv_c_bigendian=unknown
4523   cat >conftest.$ac_ext <<_ACEOF
4524 /* confdefs.h.  */
4525 _ACEOF
4526 cat confdefs.h >>conftest.$ac_ext
4527 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h.  */
4529 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4530 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4531 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4532 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4533 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4534 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4535 int
4536 main ()
4537 {
4538  _ascii (); _ebcdic ();
4539   ;
4540   return 0;
4541 }
4542 _ACEOF
4543 rm -f conftest.$ac_objext
4544 if { (ac_try="$ac_compile"
4545 case "(($ac_try" in
4546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547   *) ac_try_echo=$ac_try;;
4548 esac
4549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550   (eval "$ac_compile") 2>conftest.er1
4551   ac_status=$?
4552   grep -v '^ *+' conftest.er1 >conftest.err
4553   rm -f conftest.er1
4554   cat conftest.err >&5
4555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556   (exit $ac_status); } &&
4557          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4558   { (case "(($ac_try" in
4559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560   *) ac_try_echo=$ac_try;;
4561 esac
4562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4563   (eval "$ac_try") 2>&5
4564   ac_status=$?
4565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566   (exit $ac_status); }; } &&
4567          { ac_try='test -s conftest.$ac_objext'
4568   { (case "(($ac_try" in
4569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570   *) ac_try_echo=$ac_try;;
4571 esac
4572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4573   (eval "$ac_try") 2>&5
4574   ac_status=$?
4575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576   (exit $ac_status); }; }; then
4577   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4578   ac_cv_c_bigendian=yes
4579 fi
4580 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4581   if test "$ac_cv_c_bigendian" = unknown; then
4582     ac_cv_c_bigendian=no
4583   else
4584     # finding both strings is unlikely to happen, but who knows?
4585     ac_cv_c_bigendian=unknown
4586   fi
4587 fi
4588 else
4589   echo "$as_me: failed program was:" >&5
4590 sed 's/^/| /' conftest.$ac_ext >&5
4591
4592
4593 fi
4594
4595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4596 else
4597   cat >conftest.$ac_ext <<_ACEOF
4598 /* confdefs.h.  */
4599 _ACEOF
4600 cat confdefs.h >>conftest.$ac_ext
4601 cat >>conftest.$ac_ext <<_ACEOF
4602 /* end confdefs.h.  */
4603 $ac_includes_default
4604 int
4605 main ()
4606 {
4607
4608   /* Are we little or big endian?  From Harbison&Steele.  */
4609   union
4610   {
4611     long int l;
4612     char c[sizeof (long int)];
4613   } u;
4614   u.l = 1;
4615   return u.c[sizeof (long int) - 1] == 1;
4616
4617   ;
4618   return 0;
4619 }
4620 _ACEOF
4621 rm -f conftest$ac_exeext
4622 if { (ac_try="$ac_link"
4623 case "(($ac_try" in
4624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625   *) ac_try_echo=$ac_try;;
4626 esac
4627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4628   (eval "$ac_link") 2>&5
4629   ac_status=$?
4630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4632   { (case "(($ac_try" in
4633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634   *) ac_try_echo=$ac_try;;
4635 esac
4636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637   (eval "$ac_try") 2>&5
4638   ac_status=$?
4639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640   (exit $ac_status); }; }; then
4641   ac_cv_c_bigendian=no
4642 else
4643   echo "$as_me: program exited with status $ac_status" >&5
4644 echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.$ac_ext >&5
4646
4647 ( exit $ac_status )
4648 ac_cv_c_bigendian=yes
4649 fi
4650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4651 fi
4652
4653
4654 fi
4655
4656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4657 fi
4658 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4659 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4660 case $ac_cv_c_bigendian in
4661   yes)
4662     ENDIAN=big
4663  ;;
4664   no)
4665     ENDIAN=little
4666  ;;
4667   *)
4668     { { echo "$as_me:$LINENO: error: unknown endianness
4669 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4670 echo "$as_me: error: unknown endianness
4671 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4672    { (exit 1); exit 1; }; } ;;
4673 esac
4674
4675
4676 if test "$cross_compiling" = yes; then
4677   LLVM_CROSS_COMPILING=1
4678
4679
4680 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4681 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4682 if test "${ac_cv_build_exeext+set}" = set; then
4683   echo $ECHO_N "(cached) $ECHO_C" >&6
4684 else
4685   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4686   ac_cv_build_exeext=.exe
4687 else
4688   ac_build_prefix=${build_alias}-
4689
4690   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4691 set dummy ${ac_build_prefix}gcc; ac_word=$2
4692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4694 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4695   echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697   if test -n "$BUILD_CC"; then
4698   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4699 else
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH
4702 do
4703   IFS=$as_save_IFS
4704   test -z "$as_dir" && as_dir=.
4705   for ac_exec_ext in '' $ac_executable_extensions; do
4706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4707     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709     break 2
4710   fi
4711 done
4712 done
4713 IFS=$as_save_IFS
4714
4715 fi
4716 fi
4717 BUILD_CC=$ac_cv_prog_BUILD_CC
4718 if test -n "$BUILD_CC"; then
4719   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4720 echo "${ECHO_T}$BUILD_CC" >&6; }
4721 else
4722   { echo "$as_me:$LINENO: result: no" >&5
4723 echo "${ECHO_T}no" >&6; }
4724 fi
4725
4726
4727   if test -z "$BUILD_CC"; then
4728      # Extract the first word of "gcc", so it can be a program name with args.
4729 set dummy gcc; ac_word=$2
4730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4732 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4733   echo $ECHO_N "(cached) $ECHO_C" >&6
4734 else
4735   if test -n "$BUILD_CC"; then
4736   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4737 else
4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 for as_dir in $PATH
4740 do
4741   IFS=$as_save_IFS
4742   test -z "$as_dir" && as_dir=.
4743   for ac_exec_ext in '' $ac_executable_extensions; do
4744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4745     ac_cv_prog_BUILD_CC="gcc"
4746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4747     break 2
4748   fi
4749 done
4750 done
4751 IFS=$as_save_IFS
4752
4753 fi
4754 fi
4755 BUILD_CC=$ac_cv_prog_BUILD_CC
4756 if test -n "$BUILD_CC"; then
4757   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4758 echo "${ECHO_T}$BUILD_CC" >&6; }
4759 else
4760   { echo "$as_me:$LINENO: result: no" >&5
4761 echo "${ECHO_T}no" >&6; }
4762 fi
4763
4764
4765      if test -z "$BUILD_CC"; then
4766        # Extract the first word of "cc", so it can be a program name with args.
4767 set dummy cc; ac_word=$2
4768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4770 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4771   echo $ECHO_N "(cached) $ECHO_C" >&6
4772 else
4773   if test -n "$BUILD_CC"; then
4774   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4775 else
4776   ac_prog_rejected=no
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH
4779 do
4780   IFS=$as_save_IFS
4781   test -z "$as_dir" && as_dir=.
4782   for ac_exec_ext in '' $ac_executable_extensions; do
4783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4784     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4785        ac_prog_rejected=yes
4786        continue
4787      fi
4788     ac_cv_prog_BUILD_CC="cc"
4789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4790     break 2
4791   fi
4792 done
4793 done
4794 IFS=$as_save_IFS
4795
4796 if test $ac_prog_rejected = yes; then
4797   # We found a bogon in the path, so make sure we never use it.
4798   set dummy $ac_cv_prog_BUILD_CC
4799   shift
4800   if test $# != 0; then
4801     # We chose a different compiler from the bogus one.
4802     # However, it has the same basename, so the bogon will be chosen
4803     # first if we set BUILD_CC to just the basename; use the full file name.
4804     shift
4805     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4806   fi
4807 fi
4808 fi
4809 fi
4810 BUILD_CC=$ac_cv_prog_BUILD_CC
4811 if test -n "$BUILD_CC"; then
4812   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4813 echo "${ECHO_T}$BUILD_CC" >&6; }
4814 else
4815   { echo "$as_me:$LINENO: result: no" >&5
4816 echo "${ECHO_T}no" >&6; }
4817 fi
4818
4819
4820      fi
4821   fi
4822   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4823 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4824    { (exit 1); exit 1; }; }
4825   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4826   rm -f conftest*
4827   echo 'int main () { return 0; }' > conftest.$ac_ext
4828   ac_cv_build_exeext=
4829   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4830   (eval $ac_build_link) 2>&5
4831   ac_status=$?
4832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833   (exit $ac_status); }; then
4834     for file in conftest.*; do
4835       case $file in
4836       *.c | *.o | *.obj | *.dSYM) ;;
4837       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4838       esac
4839     done
4840   else
4841     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4842 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4843    { (exit 1); exit 1; }; }
4844   fi
4845   rm -f conftest*
4846   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4847 fi
4848 fi
4849
4850 BUILD_EXEEXT=""
4851 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4852 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4853 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4854 ac_build_exeext=$BUILD_EXEEXT
4855
4856   ac_build_prefix=${build_alias}-
4857   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4858 set dummy ${ac_build_prefix}g++; ac_word=$2
4859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4861 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4862   echo $ECHO_N "(cached) $ECHO_C" >&6
4863 else
4864   if test -n "$BUILD_CXX"; then
4865   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4866 else
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH
4869 do
4870   IFS=$as_save_IFS
4871   test -z "$as_dir" && as_dir=.
4872   for ac_exec_ext in '' $ac_executable_extensions; do
4873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4874     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4876     break 2
4877   fi
4878 done
4879 done
4880 IFS=$as_save_IFS
4881
4882 fi
4883 fi
4884 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4885 if test -n "$BUILD_CXX"; then
4886   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4887 echo "${ECHO_T}$BUILD_CXX" >&6; }
4888 else
4889   { echo "$as_me:$LINENO: result: no" >&5
4890 echo "${ECHO_T}no" >&6; }
4891 fi
4892
4893
4894   if test -z "$BUILD_CXX"; then
4895      # Extract the first word of "g++", so it can be a program name with args.
4896 set dummy g++; ac_word=$2
4897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4899 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4900   echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902   if test -n "$BUILD_CXX"; then
4903   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4907 do
4908   IFS=$as_save_IFS
4909   test -z "$as_dir" && as_dir=.
4910   for ac_exec_ext in '' $ac_executable_extensions; do
4911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4912     ac_cv_prog_BUILD_CXX="g++"
4913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4914     break 2
4915   fi
4916 done
4917 done
4918 IFS=$as_save_IFS
4919
4920 fi
4921 fi
4922 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4923 if test -n "$BUILD_CXX"; then
4924   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4925 echo "${ECHO_T}$BUILD_CXX" >&6; }
4926 else
4927   { echo "$as_me:$LINENO: result: no" >&5
4928 echo "${ECHO_T}no" >&6; }
4929 fi
4930
4931
4932      if test -z "$BUILD_CXX"; then
4933        # Extract the first word of "c++", so it can be a program name with args.
4934 set dummy c++; ac_word=$2
4935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4937 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4938   echo $ECHO_N "(cached) $ECHO_C" >&6
4939 else
4940   if test -n "$BUILD_CXX"; then
4941   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4942 else
4943   ac_prog_rejected=no
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 for as_dir in $PATH
4946 do
4947   IFS=$as_save_IFS
4948   test -z "$as_dir" && as_dir=.
4949   for ac_exec_ext in '' $ac_executable_extensions; do
4950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4951     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4952        ac_prog_rejected=yes
4953        continue
4954      fi
4955     ac_cv_prog_BUILD_CXX="c++"
4956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4957     break 2
4958   fi
4959 done
4960 done
4961 IFS=$as_save_IFS
4962
4963 if test $ac_prog_rejected = yes; then
4964   # We found a bogon in the path, so make sure we never use it.
4965   set dummy $ac_cv_prog_BUILD_CXX
4966   shift
4967   if test $# != 0; then
4968     # We chose a different compiler from the bogus one.
4969     # However, it has the same basename, so the bogon will be chosen
4970     # first if we set BUILD_CXX to just the basename; use the full file name.
4971     shift
4972     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4973   fi
4974 fi
4975 fi
4976 fi
4977 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4978 if test -n "$BUILD_CXX"; then
4979   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4980 echo "${ECHO_T}$BUILD_CXX" >&6; }
4981 else
4982   { echo "$as_me:$LINENO: result: no" >&5
4983 echo "${ECHO_T}no" >&6; }
4984 fi
4985
4986
4987      fi
4988   fi
4989 else
4990   LLVM_CROSS_COMPILING=0
4991
4992 fi
4993
4994 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4995   cvsbuild="yes"
4996   optimize="no"
4997   CVSBUILD=CVSBUILD=1
4998
4999 else
5000   cvsbuild="no"
5001   optimize="yes"
5002 fi
5003
5004
5005 # Check whether --enable-libcpp was given.
5006 if test "${enable_libcpp+set}" = set; then
5007   enableval=$enable_libcpp;
5008 else
5009   enableval=default
5010 fi
5011
5012 case "$enableval" in
5013   yes) ENABLE_LIBCPP=1
5014  ;;
5015   no)  ENABLE_LIBCPP=0
5016  ;;
5017   default) ENABLE_LIBCPP=0
5018 ;;
5019   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5020 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5021    { (exit 1); exit 1; }; } ;;
5022 esac
5023
5024 # Check whether --enable-cxx11 was given.
5025 if test "${enable_cxx11+set}" = set; then
5026   enableval=$enable_cxx11;
5027 else
5028   enableval=default
5029 fi
5030
5031 case "$enableval" in
5032   yes) ENABLE_CXX11=1
5033  ;;
5034   no)  ENABLE_CXX11=0
5035  ;;
5036   default) ENABLE_CXX11=0
5037 ;;
5038   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5039 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5040    { (exit 1); exit 1; }; } ;;
5041 esac
5042
5043 # Check whether --enable-optimized was given.
5044 if test "${enable_optimized+set}" = set; then
5045   enableval=$enable_optimized;
5046 else
5047   enableval=$optimize
5048 fi
5049
5050 if test ${enableval} = "no" ; then
5051   ENABLE_OPTIMIZED=
5052
5053 else
5054   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5055
5056 fi
5057
5058 # Check whether --enable-profiling was given.
5059 if test "${enable_profiling+set}" = set; then
5060   enableval=$enable_profiling;
5061 else
5062   enableval="no"
5063 fi
5064
5065 if test ${enableval} = "no" ; then
5066   ENABLE_PROFILING=
5067
5068 else
5069   ENABLE_PROFILING=ENABLE_PROFILING=1
5070
5071 fi
5072
5073 # Check whether --enable-assertions was given.
5074 if test "${enable_assertions+set}" = set; then
5075   enableval=$enable_assertions;
5076 else
5077   enableval="yes"
5078 fi
5079
5080 if test ${enableval} = "yes" ; then
5081   DISABLE_ASSERTIONS=
5082
5083 else
5084   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5085
5086 fi
5087
5088 # Check whether --enable-expensive-checks was given.
5089 if test "${enable_expensive_checks+set}" = set; then
5090   enableval=$enable_expensive_checks;
5091 else
5092   enableval="no"
5093 fi
5094
5095 if test ${enableval} = "yes" ; then
5096   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5097
5098   EXPENSIVE_CHECKS=yes
5099
5100 else
5101   ENABLE_EXPENSIVE_CHECKS=
5102
5103   EXPENSIVE_CHECKS=no
5104
5105 fi
5106
5107 # Check whether --enable-debug-runtime was given.
5108 if test "${enable_debug_runtime+set}" = set; then
5109   enableval=$enable_debug_runtime;
5110 else
5111   enableval=no
5112 fi
5113
5114 if test ${enableval} = "no" ; then
5115   DEBUG_RUNTIME=
5116
5117 else
5118   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5119
5120 fi
5121
5122 # Check whether --enable-debug-symbols was given.
5123 if test "${enable_debug_symbols+set}" = set; then
5124   enableval=$enable_debug_symbols;
5125 else
5126   enableval=no
5127 fi
5128
5129 if test ${enableval} = "no" ; then
5130   DEBUG_SYMBOLS=
5131
5132 else
5133   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5134
5135 fi
5136
5137 # Check whether --enable-jit was given.
5138 if test "${enable_jit+set}" = set; then
5139   enableval=$enable_jit;
5140 else
5141   enableval=default
5142 fi
5143
5144 if test ${enableval} = "no"
5145 then
5146   JIT=
5147
5148 else
5149   case "$llvm_cv_target_arch" in
5150     x86)         TARGET_HAS_JIT=1
5151  ;;
5152     Sparc)       TARGET_HAS_JIT=0
5153  ;;
5154     PowerPC)     TARGET_HAS_JIT=1
5155  ;;
5156     x86_64)      TARGET_HAS_JIT=1
5157  ;;
5158     ARM)         TARGET_HAS_JIT=1
5159  ;;
5160     Mips)        TARGET_HAS_JIT=1
5161  ;;
5162     XCore)       TARGET_HAS_JIT=0
5163  ;;
5164     MSP430)      TARGET_HAS_JIT=0
5165  ;;
5166     Hexagon)     TARGET_HAS_JIT=0
5167  ;;
5168     MBlaze)      TARGET_HAS_JIT=0
5169  ;;
5170     NVPTX)       TARGET_HAS_JIT=0
5171  ;;
5172     *)           TARGET_HAS_JIT=0
5173  ;;
5174   esac
5175 fi
5176
5177 # Check whether --enable-docs was given.
5178 if test "${enable_docs+set}" = set; then
5179   enableval=$enable_docs;
5180 else
5181   enableval=default
5182 fi
5183
5184 case "$enableval" in
5185   yes) ENABLE_DOCS=1
5186  ;;
5187   no)  ENABLE_DOCS=0
5188  ;;
5189   default) ENABLE_DOCS=1
5190  ;;
5191   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5192 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5193    { (exit 1); exit 1; }; } ;;
5194 esac
5195
5196 # Check whether --enable-doxygen was given.
5197 if test "${enable_doxygen+set}" = set; then
5198   enableval=$enable_doxygen;
5199 else
5200   enableval=default
5201 fi
5202
5203 case "$enableval" in
5204   yes) ENABLE_DOXYGEN=1
5205  ;;
5206   no)  ENABLE_DOXYGEN=0
5207  ;;
5208   default) ENABLE_DOXYGEN=0
5209  ;;
5210   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5211 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5212    { (exit 1); exit 1; }; } ;;
5213 esac
5214
5215 # Check whether --enable-threads was given.
5216 if test "${enable_threads+set}" = set; then
5217   enableval=$enable_threads;
5218 else
5219   enableval=default
5220 fi
5221
5222 case "$enableval" in
5223   yes) LLVM_ENABLE_THREADS=1
5224  ;;
5225   no)  LLVM_ENABLE_THREADS=0
5226  ;;
5227   default) LLVM_ENABLE_THREADS=1
5228  ;;
5229   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5230 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5231    { (exit 1); exit 1; }; } ;;
5232 esac
5233
5234 cat >>confdefs.h <<_ACEOF
5235 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5236 _ACEOF
5237
5238
5239 # Check whether --enable-pthreads was given.
5240 if test "${enable_pthreads+set}" = set; then
5241   enableval=$enable_pthreads;
5242 else
5243   enableval=default
5244 fi
5245
5246 case "$enableval" in
5247   yes) ENABLE_PTHREADS=1
5248  ;;
5249   no)  ENABLE_PTHREADS=0
5250  ;;
5251   default) ENABLE_PTHREADS=1
5252  ;;
5253   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5254 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5255    { (exit 1); exit 1; }; } ;;
5256 esac
5257
5258 # Check whether --enable-pic was given.
5259 if test "${enable_pic+set}" = set; then
5260   enableval=$enable_pic;
5261 else
5262   enableval=default
5263 fi
5264
5265 case "$enableval" in
5266   yes) ENABLE_PIC=1
5267  ;;
5268   no)  ENABLE_PIC=0
5269  ;;
5270   default) ENABLE_PIC=1
5271  ;;
5272   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5273 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5274    { (exit 1); exit 1; }; } ;;
5275 esac
5276
5277 cat >>confdefs.h <<_ACEOF
5278 #define ENABLE_PIC $ENABLE_PIC
5279 _ACEOF
5280
5281
5282 # Check whether --enable-shared was given.
5283 if test "${enable_shared+set}" = set; then
5284   enableval=$enable_shared;
5285 else
5286   enableval=default
5287 fi
5288
5289 case "$enableval" in
5290   yes) ENABLE_SHARED=1
5291  ;;
5292   no)  ENABLE_SHARED=0
5293  ;;
5294   default) ENABLE_SHARED=0
5295  ;;
5296   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5297 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5298    { (exit 1); exit 1; }; } ;;
5299 esac
5300
5301 # Check whether --enable-embed-stdcxx was given.
5302 if test "${enable_embed_stdcxx+set}" = set; then
5303   enableval=$enable_embed_stdcxx;
5304 else
5305   enableval=default
5306 fi
5307
5308 case "$enableval" in
5309   yes) ENABLE_EMBED_STDCXX=1
5310  ;;
5311   no)  ENABLE_EMBED_STDCXX=0
5312  ;;
5313   default) ENABLE_EMBED_STDCXX=0
5314  ;;
5315   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5316 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5317    { (exit 1); exit 1; }; } ;;
5318 esac
5319
5320 # Check whether --enable-timestamps was given.
5321 if test "${enable_timestamps+set}" = set; then
5322   enableval=$enable_timestamps;
5323 else
5324   enableval=default
5325 fi
5326
5327 case "$enableval" in
5328   yes) ENABLE_TIMESTAMPS=1
5329  ;;
5330   no)  ENABLE_TIMESTAMPS=0
5331  ;;
5332   default) ENABLE_TIMESTAMPS=1
5333  ;;
5334   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5335 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5336    { (exit 1); exit 1; }; } ;;
5337 esac
5338
5339 cat >>confdefs.h <<_ACEOF
5340 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5341 _ACEOF
5342
5343
5344 TARGETS_TO_BUILD=""
5345 # Check whether --enable-targets was given.
5346 if test "${enable_targets+set}" = set; then
5347   enableval=$enable_targets;
5348 else
5349   enableval=all
5350 fi
5351
5352 if test "$enableval" = host-only ; then
5353   enableval=host
5354 fi
5355 case "$enableval" in
5356   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5357   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5358       case "$a_target" in
5359         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5360         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5361         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5362         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5363         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5364         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5365         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5366         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5367         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5368         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5369         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5370         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5371         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5372         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5373         host) case "$llvm_cv_target_arch" in
5374             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5375             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5376             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5377             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5378             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5379             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5380             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5381             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5382             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5383             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5384             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5385             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5386             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5387 echo "$as_me: error: Can not set target to build" >&2;}
5388    { (exit 1); exit 1; }; } ;;
5389           esac ;;
5390         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5391 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5392    { (exit 1); exit 1; }; } ;;
5393       esac
5394   done
5395   ;;
5396 esac
5397 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5398
5399
5400 for a_target in $TARGETS_TO_BUILD; do
5401   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5402
5403 cat >>confdefs.h <<_ACEOF
5404 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5405 _ACEOF
5406
5407     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5408     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5409     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5410     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5411     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5412       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5413     fi
5414     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5415       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5416     fi
5417
5418 cat >>confdefs.h <<_ACEOF
5419 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5420 _ACEOF
5421
5422
5423 cat >>confdefs.h <<_ACEOF
5424 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5425 _ACEOF
5426
5427
5428 cat >>confdefs.h <<_ACEOF
5429 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5430 _ACEOF
5431
5432
5433 cat >>confdefs.h <<_ACEOF
5434 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5435 _ACEOF
5436
5437     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5438
5439 cat >>confdefs.h <<_ACEOF
5440 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5441 _ACEOF
5442
5443     fi
5444     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5445
5446 cat >>confdefs.h <<_ACEOF
5447 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5448 _ACEOF
5449
5450     fi
5451   fi
5452 done
5453
5454 LLVM_ENUM_TARGETS=""
5455 LLVM_ENUM_ASM_PRINTERS=""
5456 LLVM_ENUM_ASM_PARSERS=""
5457 LLVM_ENUM_DISASSEMBLERS=""
5458 for target_to_build in $TARGETS_TO_BUILD; do
5459   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5460   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5461     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5462   fi
5463   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5464     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5465   fi
5466   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5467     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5468   fi
5469 done
5470
5471
5472
5473
5474
5475
5476 # Check whether --with-optimize-option was given.
5477 if test "${with_optimize_option+set}" = set; then
5478   withval=$with_optimize_option;
5479 else
5480   withval=default
5481 fi
5482
5483 { echo "$as_me:$LINENO: checking optimization flags" >&5
5484 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5485 case "$withval" in
5486   default)
5487     case "$llvm_cv_os_type" in
5488     FreeBSD) optimize_option=-O2 ;;
5489     MingW) optimize_option=-O2 ;;
5490     *)     optimize_option=-O3 ;;
5491     esac ;;
5492   *) optimize_option="$withval" ;;
5493 esac
5494 OPTIMIZE_OPTION=$optimize_option
5495
5496 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5497 echo "${ECHO_T}$optimize_option" >&6; }
5498
5499
5500 # Check whether --with-extra-options was given.
5501 if test "${with_extra_options+set}" = set; then
5502   withval=$with_extra_options;
5503 else
5504   withval=default
5505 fi
5506
5507 case "$withval" in
5508   default) EXTRA_OPTIONS= ;;
5509   *) EXTRA_OPTIONS=$withval ;;
5510 esac
5511 EXTRA_OPTIONS=$EXTRA_OPTIONS
5512
5513
5514
5515 # Check whether --with-extra-ld-options was given.
5516 if test "${with_extra_ld_options+set}" = set; then
5517   withval=$with_extra_ld_options;
5518 else
5519   withval=default
5520 fi
5521
5522 case "$withval" in
5523   default) EXTRA_LD_OPTIONS= ;;
5524   *) EXTRA_LD_OPTIONS=$withval ;;
5525 esac
5526 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5527
5528
5529 # Check whether --enable-bindings was given.
5530 if test "${enable_bindings+set}" = set; then
5531   enableval=$enable_bindings;
5532 else
5533   enableval=default
5534 fi
5535
5536 BINDINGS_TO_BUILD=""
5537 case "$enableval" in
5538   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5539   all ) BINDINGS_TO_BUILD="ocaml" ;;
5540   none | no) BINDINGS_TO_BUILD="" ;;
5541   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5542       case "$a_binding" in
5543         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5544         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5545 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5546    { (exit 1); exit 1; }; } ;;
5547       esac
5548   done
5549   ;;
5550 esac
5551
5552
5553 # Check whether --with-ocaml-libdir was given.
5554 if test "${with_ocaml_libdir+set}" = set; then
5555   withval=$with_ocaml_libdir;
5556 else
5557   withval=auto
5558 fi
5559
5560 case "$withval" in
5561   auto) with_ocaml_libdir="$withval" ;;
5562   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5563   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5564 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5565    { (exit 1); exit 1; }; } ;;
5566 esac
5567
5568
5569 # Check whether --with-clang-srcdir was given.
5570 if test "${with_clang_srcdir+set}" = set; then
5571   withval=$with_clang_srcdir;
5572 else
5573   withval="-"
5574 fi
5575
5576 case "$withval" in
5577   -) clang_src_root="" ;;
5578   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5579   *) clang_src_root="$ac_pwd/$withval" ;;
5580 esac
5581 CLANG_SRC_ROOT=$clang_src_root
5582
5583
5584
5585 # Check whether --with-clang-resource-dir was given.
5586 if test "${with_clang_resource_dir+set}" = set; then
5587   withval=$with_clang_resource_dir;
5588 else
5589   withval=""
5590 fi
5591
5592
5593 cat >>confdefs.h <<_ACEOF
5594 #define CLANG_RESOURCE_DIR "$withval"
5595 _ACEOF
5596
5597
5598
5599 # Check whether --with-c-include-dirs was given.
5600 if test "${with_c_include_dirs+set}" = set; then
5601   withval=$with_c_include_dirs;
5602 else
5603   withval=""
5604 fi
5605
5606
5607 cat >>confdefs.h <<_ACEOF
5608 #define C_INCLUDE_DIRS "$withval"
5609 _ACEOF
5610
5611
5612 # Clang normally uses the system c++ headers and libraries. With this option,
5613 # clang will use the ones provided by a gcc installation instead. This option should
5614 # be passed the same value that was used with --prefix when configuring gcc.
5615
5616 # Check whether --with-gcc-toolchain was given.
5617 if test "${with_gcc_toolchain+set}" = set; then
5618   withval=$with_gcc_toolchain;
5619 else
5620   withval=""
5621 fi
5622
5623
5624 cat >>confdefs.h <<_ACEOF
5625 #define GCC_INSTALL_PREFIX "$withval"
5626 _ACEOF
5627
5628
5629
5630 # Check whether --with-default-sysroot was given.
5631 if test "${with_default_sysroot+set}" = set; then
5632   withval=$with_default_sysroot;
5633 else
5634   withval=""
5635 fi
5636
5637
5638 cat >>confdefs.h <<_ACEOF
5639 #define DEFAULT_SYSROOT "$withval"
5640 _ACEOF
5641
5642
5643
5644 # Check whether --with-binutils-include was given.
5645 if test "${with_binutils_include+set}" = set; then
5646   withval=$with_binutils_include;
5647 else
5648   withval=default
5649 fi
5650
5651 case "$withval" in
5652   default) WITH_BINUTILS_INCDIR=default ;;
5653   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5654   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5655 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5656    { (exit 1); exit 1; }; } ;;
5657 esac
5658 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5659   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5660
5661   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5662      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5663      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5664 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5665    { (exit 1); exit 1; }; };
5666   fi
5667 fi
5668
5669
5670 # Check whether --with-bug-report-url was given.
5671 if test "${with_bug_report_url+set}" = set; then
5672   withval=$with_bug_report_url;
5673 else
5674   withval="http://llvm.org/bugs/"
5675 fi
5676
5677
5678 cat >>confdefs.h <<_ACEOF
5679 #define BUG_REPORT_URL "$withval"
5680 _ACEOF
5681
5682
5683 # Check whether --enable-libffi was given.
5684 if test "${enable_libffi+set}" = set; then
5685   enableval=$enable_libffi; case "$enableval" in
5686     yes) llvm_cv_enable_libffi="yes" ;;
5687     no)  llvm_cv_enable_libffi="no"  ;;
5688     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5689 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5690    { (exit 1); exit 1; }; } ;;
5691   esac
5692 else
5693   llvm_cv_enable_libffi=no
5694 fi
5695
5696
5697
5698 # Check whether --with-internal-prefix was given.
5699 if test "${with_internal_prefix+set}" = set; then
5700   withval=$with_internal_prefix;
5701 else
5702   withval=""
5703 fi
5704
5705 INTERNAL_PREFIX=$withval
5706
5707
5708
5709 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5710 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5711 if test "${lt_cv_path_NM+set}" = set; then
5712   echo $ECHO_N "(cached) $ECHO_C" >&6
5713 else
5714   if test -n "$NM"; then
5715   # Let the user override the test.
5716   lt_cv_path_NM="$NM"
5717 else
5718   lt_nm_to_check="${ac_tool_prefix}nm"
5719   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5720     lt_nm_to_check="$lt_nm_to_check nm"
5721   fi
5722   for lt_tmp_nm in $lt_nm_to_check; do
5723     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5724     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5725       IFS="$lt_save_ifs"
5726       test -z "$ac_dir" && ac_dir=.
5727       tmp_nm="$ac_dir/$lt_tmp_nm"
5728       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5729         # Check to see if the nm accepts a BSD-compat flag.
5730         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5731         #   nm: unknown option "B" ignored
5732         # Tru64's nm complains that /dev/null is an invalid object file
5733         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5734         */dev/null* | *'Invalid file or object type'*)
5735           lt_cv_path_NM="$tmp_nm -B"
5736           break
5737           ;;
5738         *)
5739           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5740           */dev/null*)
5741             lt_cv_path_NM="$tmp_nm -p"
5742             break
5743             ;;
5744           *)
5745             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5746             continue # so that we can try to find one that supports BSD flags
5747             ;;
5748           esac
5749           ;;
5750         esac
5751       fi
5752     done
5753     IFS="$lt_save_ifs"
5754   done
5755   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5756 fi
5757 fi
5758 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5759 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5760 NM="$lt_cv_path_NM"
5761
5762
5763
5764 { echo "$as_me:$LINENO: checking for GNU make" >&5
5765 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5766 if test "${llvm_cv_gnu_make_command+set}" = set; then
5767   echo $ECHO_N "(cached) $ECHO_C" >&6
5768 else
5769   llvm_cv_gnu_make_command=''
5770  for a in "$MAKE" make gmake gnumake ; do
5771   if test -z "$a" ; then continue ; fi ;
5772   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5773   then
5774    llvm_cv_gnu_make_command=$a ;
5775    break;
5776   fi
5777  done
5778 fi
5779 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5780 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5781  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5782    ifGNUmake='' ;
5783  else
5784    ifGNUmake='#' ;
5785    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5786 echo "${ECHO_T}\"Not found\"" >&6; };
5787  fi
5788
5789
5790 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5791 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5792 LN_S=$as_ln_s
5793 if test "$LN_S" = "ln -s"; then
5794   { echo "$as_me:$LINENO: result: yes" >&5
5795 echo "${ECHO_T}yes" >&6; }
5796 else
5797   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5798 echo "${ECHO_T}no, using $LN_S" >&6; }
5799 fi
5800
5801 # Extract the first word of "cmp", so it can be a program name with args.
5802 set dummy cmp; ac_word=$2
5803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5805 if test "${ac_cv_path_CMP+set}" = set; then
5806   echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
5808   case $CMP in
5809   [\\/]* | ?:[\\/]*)
5810   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5811   ;;
5812   *)
5813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 for as_dir in $PATH
5815 do
5816   IFS=$as_save_IFS
5817   test -z "$as_dir" && as_dir=.
5818   for ac_exec_ext in '' $ac_executable_extensions; do
5819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5820     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5822     break 2
5823   fi
5824 done
5825 done
5826 IFS=$as_save_IFS
5827
5828   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5829   ;;
5830 esac
5831 fi
5832 CMP=$ac_cv_path_CMP
5833 if test -n "$CMP"; then
5834   { echo "$as_me:$LINENO: result: $CMP" >&5
5835 echo "${ECHO_T}$CMP" >&6; }
5836 else
5837   { echo "$as_me:$LINENO: result: no" >&5
5838 echo "${ECHO_T}no" >&6; }
5839 fi
5840
5841
5842 # Extract the first word of "cp", so it can be a program name with args.
5843 set dummy cp; ac_word=$2
5844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5846 if test "${ac_cv_path_CP+set}" = set; then
5847   echo $ECHO_N "(cached) $ECHO_C" >&6
5848 else
5849   case $CP in
5850   [\\/]* | ?:[\\/]*)
5851   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5852   ;;
5853   *)
5854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 for as_dir in $PATH
5856 do
5857   IFS=$as_save_IFS
5858   test -z "$as_dir" && as_dir=.
5859   for ac_exec_ext in '' $ac_executable_extensions; do
5860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5861     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5863     break 2
5864   fi
5865 done
5866 done
5867 IFS=$as_save_IFS
5868
5869   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5870   ;;
5871 esac
5872 fi
5873 CP=$ac_cv_path_CP
5874 if test -n "$CP"; then
5875   { echo "$as_me:$LINENO: result: $CP" >&5
5876 echo "${ECHO_T}$CP" >&6; }
5877 else
5878   { echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6; }
5880 fi
5881
5882
5883 # Extract the first word of "date", so it can be a program name with args.
5884 set dummy date; ac_word=$2
5885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5887 if test "${ac_cv_path_DATE+set}" = set; then
5888   echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890   case $DATE in
5891   [\\/]* | ?:[\\/]*)
5892   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5893   ;;
5894   *)
5895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5897 do
5898   IFS=$as_save_IFS
5899   test -z "$as_dir" && as_dir=.
5900   for ac_exec_ext in '' $ac_executable_extensions; do
5901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5902     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5904     break 2
5905   fi
5906 done
5907 done
5908 IFS=$as_save_IFS
5909
5910   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5911   ;;
5912 esac
5913 fi
5914 DATE=$ac_cv_path_DATE
5915 if test -n "$DATE"; then
5916   { echo "$as_me:$LINENO: result: $DATE" >&5
5917 echo "${ECHO_T}$DATE" >&6; }
5918 else
5919   { echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6; }
5921 fi
5922
5923
5924 # Extract the first word of "find", so it can be a program name with args.
5925 set dummy find; ac_word=$2
5926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5928 if test "${ac_cv_path_FIND+set}" = set; then
5929   echo $ECHO_N "(cached) $ECHO_C" >&6
5930 else
5931   case $FIND in
5932   [\\/]* | ?:[\\/]*)
5933   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5934   ;;
5935   *)
5936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH
5938 do
5939   IFS=$as_save_IFS
5940   test -z "$as_dir" && as_dir=.
5941   for ac_exec_ext in '' $ac_executable_extensions; do
5942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5943     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5945     break 2
5946   fi
5947 done
5948 done
5949 IFS=$as_save_IFS
5950
5951   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5952   ;;
5953 esac
5954 fi
5955 FIND=$ac_cv_path_FIND
5956 if test -n "$FIND"; then
5957   { echo "$as_me:$LINENO: result: $FIND" >&5
5958 echo "${ECHO_T}$FIND" >&6; }
5959 else
5960   { echo "$as_me:$LINENO: result: no" >&5
5961 echo "${ECHO_T}no" >&6; }
5962 fi
5963
5964
5965 # Extract the first word of "grep", so it can be a program name with args.
5966 set dummy grep; ac_word=$2
5967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5969 if test "${ac_cv_path_GREP+set}" = set; then
5970   echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972   case $GREP in
5973   [\\/]* | ?:[\\/]*)
5974   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5975   ;;
5976   *)
5977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 for as_dir in $PATH
5979 do
5980   IFS=$as_save_IFS
5981   test -z "$as_dir" && as_dir=.
5982   for ac_exec_ext in '' $ac_executable_extensions; do
5983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5984     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5986     break 2
5987   fi
5988 done
5989 done
5990 IFS=$as_save_IFS
5991
5992   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5993   ;;
5994 esac
5995 fi
5996 GREP=$ac_cv_path_GREP
5997 if test -n "$GREP"; then
5998   { echo "$as_me:$LINENO: result: $GREP" >&5
5999 echo "${ECHO_T}$GREP" >&6; }
6000 else
6001   { echo "$as_me:$LINENO: result: no" >&5
6002 echo "${ECHO_T}no" >&6; }
6003 fi
6004
6005
6006 # Extract the first word of "mkdir", so it can be a program name with args.
6007 set dummy mkdir; ac_word=$2
6008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6010 if test "${ac_cv_path_MKDIR+set}" = set; then
6011   echo $ECHO_N "(cached) $ECHO_C" >&6
6012 else
6013   case $MKDIR in
6014   [\\/]* | ?:[\\/]*)
6015   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6016   ;;
6017   *)
6018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 for as_dir in $PATH
6020 do
6021   IFS=$as_save_IFS
6022   test -z "$as_dir" && as_dir=.
6023   for ac_exec_ext in '' $ac_executable_extensions; do
6024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6025     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6027     break 2
6028   fi
6029 done
6030 done
6031 IFS=$as_save_IFS
6032
6033   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6034   ;;
6035 esac
6036 fi
6037 MKDIR=$ac_cv_path_MKDIR
6038 if test -n "$MKDIR"; then
6039   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6040 echo "${ECHO_T}$MKDIR" >&6; }
6041 else
6042   { echo "$as_me:$LINENO: result: no" >&5
6043 echo "${ECHO_T}no" >&6; }
6044 fi
6045
6046
6047 # Extract the first word of "mv", so it can be a program name with args.
6048 set dummy mv; ac_word=$2
6049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6051 if test "${ac_cv_path_MV+set}" = set; then
6052   echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054   case $MV in
6055   [\\/]* | ?:[\\/]*)
6056   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6057   ;;
6058   *)
6059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6061 do
6062   IFS=$as_save_IFS
6063   test -z "$as_dir" && as_dir=.
6064   for ac_exec_ext in '' $ac_executable_extensions; do
6065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6066     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6068     break 2
6069   fi
6070 done
6071 done
6072 IFS=$as_save_IFS
6073
6074   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6075   ;;
6076 esac
6077 fi
6078 MV=$ac_cv_path_MV
6079 if test -n "$MV"; then
6080   { echo "$as_me:$LINENO: result: $MV" >&5
6081 echo "${ECHO_T}$MV" >&6; }
6082 else
6083   { echo "$as_me:$LINENO: result: no" >&5
6084 echo "${ECHO_T}no" >&6; }
6085 fi
6086
6087
6088 if test -n "$ac_tool_prefix"; then
6089   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6090 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6093 if test "${ac_cv_prog_RANLIB+set}" = set; then
6094   echo $ECHO_N "(cached) $ECHO_C" >&6
6095 else
6096   if test -n "$RANLIB"; then
6097   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6098 else
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 for as_dir in $PATH
6101 do
6102   IFS=$as_save_IFS
6103   test -z "$as_dir" && as_dir=.
6104   for ac_exec_ext in '' $ac_executable_extensions; do
6105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6106     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6108     break 2
6109   fi
6110 done
6111 done
6112 IFS=$as_save_IFS
6113
6114 fi
6115 fi
6116 RANLIB=$ac_cv_prog_RANLIB
6117 if test -n "$RANLIB"; then
6118   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6119 echo "${ECHO_T}$RANLIB" >&6; }
6120 else
6121   { echo "$as_me:$LINENO: result: no" >&5
6122 echo "${ECHO_T}no" >&6; }
6123 fi
6124
6125
6126 fi
6127 if test -z "$ac_cv_prog_RANLIB"; then
6128   ac_ct_RANLIB=$RANLIB
6129   # Extract the first word of "ranlib", so it can be a program name with args.
6130 set dummy ranlib; ac_word=$2
6131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6133 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6134   echo $ECHO_N "(cached) $ECHO_C" >&6
6135 else
6136   if test -n "$ac_ct_RANLIB"; then
6137   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6138 else
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140 for as_dir in $PATH
6141 do
6142   IFS=$as_save_IFS
6143   test -z "$as_dir" && as_dir=.
6144   for ac_exec_ext in '' $ac_executable_extensions; do
6145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6146     ac_cv_prog_ac_ct_RANLIB="ranlib"
6147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6148     break 2
6149   fi
6150 done
6151 done
6152 IFS=$as_save_IFS
6153
6154 fi
6155 fi
6156 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6157 if test -n "$ac_ct_RANLIB"; then
6158   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6159 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6160 else
6161   { echo "$as_me:$LINENO: result: no" >&5
6162 echo "${ECHO_T}no" >&6; }
6163 fi
6164
6165   if test "x$ac_ct_RANLIB" = x; then
6166     RANLIB=":"
6167   else
6168     case $cross_compiling:$ac_tool_warned in
6169 yes:)
6170 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6171 whose name does not start with the host triplet.  If you think this
6172 configuration is useful to you, please write to autoconf@gnu.org." >&5
6173 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6174 whose name does not start with the host triplet.  If you think this
6175 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6176 ac_tool_warned=yes ;;
6177 esac
6178     RANLIB=$ac_ct_RANLIB
6179   fi
6180 else
6181   RANLIB="$ac_cv_prog_RANLIB"
6182 fi
6183
6184 if test -n "$ac_tool_prefix"; then
6185   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6186 set dummy ${ac_tool_prefix}ar; ac_word=$2
6187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6189 if test "${ac_cv_prog_AR+set}" = set; then
6190   echo $ECHO_N "(cached) $ECHO_C" >&6
6191 else
6192   if test -n "$AR"; then
6193   ac_cv_prog_AR="$AR" # Let the user override the test.
6194 else
6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196 for as_dir in $PATH
6197 do
6198   IFS=$as_save_IFS
6199   test -z "$as_dir" && as_dir=.
6200   for ac_exec_ext in '' $ac_executable_extensions; do
6201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6202     ac_cv_prog_AR="${ac_tool_prefix}ar"
6203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6204     break 2
6205   fi
6206 done
6207 done
6208 IFS=$as_save_IFS
6209
6210 fi
6211 fi
6212 AR=$ac_cv_prog_AR
6213 if test -n "$AR"; then
6214   { echo "$as_me:$LINENO: result: $AR" >&5
6215 echo "${ECHO_T}$AR" >&6; }
6216 else
6217   { echo "$as_me:$LINENO: result: no" >&5
6218 echo "${ECHO_T}no" >&6; }
6219 fi
6220
6221
6222 fi
6223 if test -z "$ac_cv_prog_AR"; then
6224   ac_ct_AR=$AR
6225   # Extract the first word of "ar", so it can be a program name with args.
6226 set dummy ar; ac_word=$2
6227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6229 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6230   echo $ECHO_N "(cached) $ECHO_C" >&6
6231 else
6232   if test -n "$ac_ct_AR"; then
6233   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6234 else
6235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 for as_dir in $PATH
6237 do
6238   IFS=$as_save_IFS
6239   test -z "$as_dir" && as_dir=.
6240   for ac_exec_ext in '' $ac_executable_extensions; do
6241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6242     ac_cv_prog_ac_ct_AR="ar"
6243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6244     break 2
6245   fi
6246 done
6247 done
6248 IFS=$as_save_IFS
6249
6250 fi
6251 fi
6252 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6253 if test -n "$ac_ct_AR"; then
6254   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6255 echo "${ECHO_T}$ac_ct_AR" >&6; }
6256 else
6257   { echo "$as_me:$LINENO: result: no" >&5
6258 echo "${ECHO_T}no" >&6; }
6259 fi
6260
6261   if test "x$ac_ct_AR" = x; then
6262     AR="false"
6263   else
6264     case $cross_compiling:$ac_tool_warned in
6265 yes:)
6266 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6267 whose name does not start with the host triplet.  If you think this
6268 configuration is useful to you, please write to autoconf@gnu.org." >&5
6269 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6270 whose name does not start with the host triplet.  If you think this
6271 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6272 ac_tool_warned=yes ;;
6273 esac
6274     AR=$ac_ct_AR
6275   fi
6276 else
6277   AR="$ac_cv_prog_AR"
6278 fi
6279
6280 # Extract the first word of "rm", so it can be a program name with args.
6281 set dummy rm; ac_word=$2
6282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6284 if test "${ac_cv_path_RM+set}" = set; then
6285   echo $ECHO_N "(cached) $ECHO_C" >&6
6286 else
6287   case $RM in
6288   [\\/]* | ?:[\\/]*)
6289   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6290   ;;
6291   *)
6292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 for as_dir in $PATH
6294 do
6295   IFS=$as_save_IFS
6296   test -z "$as_dir" && as_dir=.
6297   for ac_exec_ext in '' $ac_executable_extensions; do
6298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6299     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6301     break 2
6302   fi
6303 done
6304 done
6305 IFS=$as_save_IFS
6306
6307   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6308   ;;
6309 esac
6310 fi
6311 RM=$ac_cv_path_RM
6312 if test -n "$RM"; then
6313   { echo "$as_me:$LINENO: result: $RM" >&5
6314 echo "${ECHO_T}$RM" >&6; }
6315 else
6316   { echo "$as_me:$LINENO: result: no" >&5
6317 echo "${ECHO_T}no" >&6; }
6318 fi
6319
6320
6321 # Extract the first word of "sed", so it can be a program name with args.
6322 set dummy sed; ac_word=$2
6323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6325 if test "${ac_cv_path_SED+set}" = set; then
6326   echo $ECHO_N "(cached) $ECHO_C" >&6
6327 else
6328   case $SED in
6329   [\\/]* | ?:[\\/]*)
6330   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6331   ;;
6332   *)
6333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 for as_dir in $PATH
6335 do
6336   IFS=$as_save_IFS
6337   test -z "$as_dir" && as_dir=.
6338   for ac_exec_ext in '' $ac_executable_extensions; do
6339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6340     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6342     break 2
6343   fi
6344 done
6345 done
6346 IFS=$as_save_IFS
6347
6348   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6349   ;;
6350 esac
6351 fi
6352 SED=$ac_cv_path_SED
6353 if test -n "$SED"; then
6354   { echo "$as_me:$LINENO: result: $SED" >&5
6355 echo "${ECHO_T}$SED" >&6; }
6356 else
6357   { echo "$as_me:$LINENO: result: no" >&5
6358 echo "${ECHO_T}no" >&6; }
6359 fi
6360
6361
6362 # Extract the first word of "tar", so it can be a program name with args.
6363 set dummy tar; ac_word=$2
6364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6366 if test "${ac_cv_path_TAR+set}" = set; then
6367   echo $ECHO_N "(cached) $ECHO_C" >&6
6368 else
6369   case $TAR in
6370   [\\/]* | ?:[\\/]*)
6371   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6372   ;;
6373   *)
6374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 for as_dir in $PATH
6376 do
6377   IFS=$as_save_IFS
6378   test -z "$as_dir" && as_dir=.
6379   for ac_exec_ext in '' $ac_executable_extensions; do
6380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6381     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6383     break 2
6384   fi
6385 done
6386 done
6387 IFS=$as_save_IFS
6388
6389   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6390   ;;
6391 esac
6392 fi
6393 TAR=$ac_cv_path_TAR
6394 if test -n "$TAR"; then
6395   { echo "$as_me:$LINENO: result: $TAR" >&5
6396 echo "${ECHO_T}$TAR" >&6; }
6397 else
6398   { echo "$as_me:$LINENO: result: no" >&5
6399 echo "${ECHO_T}no" >&6; }
6400 fi
6401
6402
6403 # Extract the first word of "pwd", so it can be a program name with args.
6404 set dummy pwd; ac_word=$2
6405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6407 if test "${ac_cv_path_BINPWD+set}" = set; then
6408   echo $ECHO_N "(cached) $ECHO_C" >&6
6409 else
6410   case $BINPWD in
6411   [\\/]* | ?:[\\/]*)
6412   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6413   ;;
6414   *)
6415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 for as_dir in $PATH
6417 do
6418   IFS=$as_save_IFS
6419   test -z "$as_dir" && as_dir=.
6420   for ac_exec_ext in '' $ac_executable_extensions; do
6421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6422     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6424     break 2
6425   fi
6426 done
6427 done
6428 IFS=$as_save_IFS
6429
6430   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6431   ;;
6432 esac
6433 fi
6434 BINPWD=$ac_cv_path_BINPWD
6435 if test -n "$BINPWD"; then
6436   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6437 echo "${ECHO_T}$BINPWD" >&6; }
6438 else
6439   { echo "$as_me:$LINENO: result: no" >&5
6440 echo "${ECHO_T}no" >&6; }
6441 fi
6442
6443
6444
6445 # Extract the first word of "Graphviz", so it can be a program name with args.
6446 set dummy Graphviz; ac_word=$2
6447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6449 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6450   echo $ECHO_N "(cached) $ECHO_C" >&6
6451 else
6452   case $GRAPHVIZ in
6453   [\\/]* | ?:[\\/]*)
6454   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6455   ;;
6456   *)
6457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6459 do
6460   IFS=$as_save_IFS
6461   test -z "$as_dir" && as_dir=.
6462   for ac_exec_ext in '' $ac_executable_extensions; do
6463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6464     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6466     break 2
6467   fi
6468 done
6469 done
6470 IFS=$as_save_IFS
6471
6472   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6473   ;;
6474 esac
6475 fi
6476 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6477 if test -n "$GRAPHVIZ"; then
6478   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6479 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6480 else
6481   { echo "$as_me:$LINENO: result: no" >&5
6482 echo "${ECHO_T}no" >&6; }
6483 fi
6484
6485
6486 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6487
6488 cat >>confdefs.h <<\_ACEOF
6489 #define HAVE_GRAPHVIZ 1
6490 _ACEOF
6491
6492     if test "$llvm_cv_os_type" = "MingW" ; then
6493     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6494   fi
6495
6496 cat >>confdefs.h <<_ACEOF
6497 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6498 _ACEOF
6499
6500 fi
6501 # Extract the first word of "dot", so it can be a program name with args.
6502 set dummy dot; ac_word=$2
6503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6505 if test "${ac_cv_path_DOT+set}" = set; then
6506   echo $ECHO_N "(cached) $ECHO_C" >&6
6507 else
6508   case $DOT in
6509   [\\/]* | ?:[\\/]*)
6510   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6511   ;;
6512   *)
6513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 for as_dir in $PATH
6515 do
6516   IFS=$as_save_IFS
6517   test -z "$as_dir" && as_dir=.
6518   for ac_exec_ext in '' $ac_executable_extensions; do
6519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6520     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6522     break 2
6523   fi
6524 done
6525 done
6526 IFS=$as_save_IFS
6527
6528   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6529   ;;
6530 esac
6531 fi
6532 DOT=$ac_cv_path_DOT
6533 if test -n "$DOT"; then
6534   { echo "$as_me:$LINENO: result: $DOT" >&5
6535 echo "${ECHO_T}$DOT" >&6; }
6536 else
6537   { echo "$as_me:$LINENO: result: no" >&5
6538 echo "${ECHO_T}no" >&6; }
6539 fi
6540
6541
6542 if test "$DOT" != "echo dot" ; then
6543
6544 cat >>confdefs.h <<\_ACEOF
6545 #define HAVE_DOT 1
6546 _ACEOF
6547
6548     if test "$llvm_cv_os_type" = "MingW" ; then
6549     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6550   fi
6551
6552 cat >>confdefs.h <<_ACEOF
6553 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6554 _ACEOF
6555
6556 fi
6557 # Extract the first word of "fdp", so it can be a program name with args.
6558 set dummy fdp; ac_word=$2
6559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6561 if test "${ac_cv_path_FDP+set}" = set; then
6562   echo $ECHO_N "(cached) $ECHO_C" >&6
6563 else
6564   case $FDP in
6565   [\\/]* | ?:[\\/]*)
6566   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6567   ;;
6568   *)
6569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 for as_dir in $PATH
6571 do
6572   IFS=$as_save_IFS
6573   test -z "$as_dir" && as_dir=.
6574   for ac_exec_ext in '' $ac_executable_extensions; do
6575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6576     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6578     break 2
6579   fi
6580 done
6581 done
6582 IFS=$as_save_IFS
6583
6584   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6585   ;;
6586 esac
6587 fi
6588 FDP=$ac_cv_path_FDP
6589 if test -n "$FDP"; then
6590   { echo "$as_me:$LINENO: result: $FDP" >&5
6591 echo "${ECHO_T}$FDP" >&6; }
6592 else
6593   { echo "$as_me:$LINENO: result: no" >&5
6594 echo "${ECHO_T}no" >&6; }
6595 fi
6596
6597
6598 if test "$FDP" != "echo fdp" ; then
6599
6600 cat >>confdefs.h <<\_ACEOF
6601 #define HAVE_FDP 1
6602 _ACEOF
6603
6604     if test "$llvm_cv_os_type" = "MingW" ; then
6605     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6606   fi
6607
6608 cat >>confdefs.h <<_ACEOF
6609 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6610 _ACEOF
6611
6612 fi
6613 # Extract the first word of "neato", so it can be a program name with args.
6614 set dummy neato; ac_word=$2
6615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6617 if test "${ac_cv_path_NEATO+set}" = set; then
6618   echo $ECHO_N "(cached) $ECHO_C" >&6
6619 else
6620   case $NEATO in
6621   [\\/]* | ?:[\\/]*)
6622   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6623   ;;
6624   *)
6625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 for as_dir in $PATH
6627 do
6628   IFS=$as_save_IFS
6629   test -z "$as_dir" && as_dir=.
6630   for ac_exec_ext in '' $ac_executable_extensions; do
6631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6632     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634     break 2
6635   fi
6636 done
6637 done
6638 IFS=$as_save_IFS
6639
6640   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6641   ;;
6642 esac
6643 fi
6644 NEATO=$ac_cv_path_NEATO
6645 if test -n "$NEATO"; then
6646   { echo "$as_me:$LINENO: result: $NEATO" >&5
6647 echo "${ECHO_T}$NEATO" >&6; }
6648 else
6649   { echo "$as_me:$LINENO: result: no" >&5
6650 echo "${ECHO_T}no" >&6; }
6651 fi
6652
6653
6654 if test "$NEATO" != "echo neato" ; then
6655
6656 cat >>confdefs.h <<\_ACEOF
6657 #define HAVE_NEATO 1
6658 _ACEOF
6659
6660     if test "$llvm_cv_os_type" = "MingW" ; then
6661     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6662   fi
6663
6664 cat >>confdefs.h <<_ACEOF
6665 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6666 _ACEOF
6667
6668 fi
6669 # Extract the first word of "twopi", so it can be a program name with args.
6670 set dummy twopi; ac_word=$2
6671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6673 if test "${ac_cv_path_TWOPI+set}" = set; then
6674   echo $ECHO_N "(cached) $ECHO_C" >&6
6675 else
6676   case $TWOPI in
6677   [\\/]* | ?:[\\/]*)
6678   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6679   ;;
6680   *)
6681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH
6683 do
6684   IFS=$as_save_IFS
6685   test -z "$as_dir" && as_dir=.
6686   for ac_exec_ext in '' $ac_executable_extensions; do
6687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6688     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6690     break 2
6691   fi
6692 done
6693 done
6694 IFS=$as_save_IFS
6695
6696   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6697   ;;
6698 esac
6699 fi
6700 TWOPI=$ac_cv_path_TWOPI
6701 if test -n "$TWOPI"; then
6702   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6703 echo "${ECHO_T}$TWOPI" >&6; }
6704 else
6705   { echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6; }
6707 fi
6708
6709
6710 if test "$TWOPI" != "echo twopi" ; then
6711
6712 cat >>confdefs.h <<\_ACEOF
6713 #define HAVE_TWOPI 1
6714 _ACEOF
6715
6716     if test "$llvm_cv_os_type" = "MingW" ; then
6717     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6718   fi
6719
6720 cat >>confdefs.h <<_ACEOF
6721 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6722 _ACEOF
6723
6724 fi
6725 # Extract the first word of "circo", so it can be a program name with args.
6726 set dummy circo; ac_word=$2
6727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6729 if test "${ac_cv_path_CIRCO+set}" = set; then
6730   echo $ECHO_N "(cached) $ECHO_C" >&6
6731 else
6732   case $CIRCO in
6733   [\\/]* | ?:[\\/]*)
6734   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6735   ;;
6736   *)
6737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 for as_dir in $PATH
6739 do
6740   IFS=$as_save_IFS
6741   test -z "$as_dir" && as_dir=.
6742   for ac_exec_ext in '' $ac_executable_extensions; do
6743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6744     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746     break 2
6747   fi
6748 done
6749 done
6750 IFS=$as_save_IFS
6751
6752   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6753   ;;
6754 esac
6755 fi
6756 CIRCO=$ac_cv_path_CIRCO
6757 if test -n "$CIRCO"; then
6758   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6759 echo "${ECHO_T}$CIRCO" >&6; }
6760 else
6761   { echo "$as_me:$LINENO: result: no" >&5
6762 echo "${ECHO_T}no" >&6; }
6763 fi
6764
6765
6766 if test "$CIRCO" != "echo circo" ; then
6767
6768 cat >>confdefs.h <<\_ACEOF
6769 #define HAVE_CIRCO 1
6770 _ACEOF
6771
6772     if test "$llvm_cv_os_type" = "MingW" ; then
6773     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6774   fi
6775
6776 cat >>confdefs.h <<_ACEOF
6777 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6778 _ACEOF
6779
6780 fi
6781 for ac_prog in gv gsview32
6782 do
6783   # Extract the first word of "$ac_prog", so it can be a program name with args.
6784 set dummy $ac_prog; ac_word=$2
6785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6787 if test "${ac_cv_path_GV+set}" = set; then
6788   echo $ECHO_N "(cached) $ECHO_C" >&6
6789 else
6790   case $GV in
6791   [\\/]* | ?:[\\/]*)
6792   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6793   ;;
6794   *)
6795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 for as_dir in $PATH
6797 do
6798   IFS=$as_save_IFS
6799   test -z "$as_dir" && as_dir=.
6800   for ac_exec_ext in '' $ac_executable_extensions; do
6801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6802     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804     break 2
6805   fi
6806 done
6807 done
6808 IFS=$as_save_IFS
6809
6810   ;;
6811 esac
6812 fi
6813 GV=$ac_cv_path_GV
6814 if test -n "$GV"; then
6815   { echo "$as_me:$LINENO: result: $GV" >&5
6816 echo "${ECHO_T}$GV" >&6; }
6817 else
6818   { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6820 fi
6821
6822
6823   test -n "$GV" && break
6824 done
6825 test -n "$GV" || GV="echo gv"
6826
6827 if test "$GV" != "echo gv" ; then
6828
6829 cat >>confdefs.h <<\_ACEOF
6830 #define HAVE_GV 1
6831 _ACEOF
6832
6833     if test "$llvm_cv_os_type" = "MingW" ; then
6834     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6835   fi
6836
6837 cat >>confdefs.h <<_ACEOF
6838 #define LLVM_PATH_GV "$GV${EXEEXT}"
6839 _ACEOF
6840
6841 fi
6842 # Extract the first word of "dotty", so it can be a program name with args.
6843 set dummy dotty; ac_word=$2
6844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6846 if test "${ac_cv_path_DOTTY+set}" = set; then
6847   echo $ECHO_N "(cached) $ECHO_C" >&6
6848 else
6849   case $DOTTY in
6850   [\\/]* | ?:[\\/]*)
6851   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6852   ;;
6853   *)
6854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 for as_dir in $PATH
6856 do
6857   IFS=$as_save_IFS
6858   test -z "$as_dir" && as_dir=.
6859   for ac_exec_ext in '' $ac_executable_extensions; do
6860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6861     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6863     break 2
6864   fi
6865 done
6866 done
6867 IFS=$as_save_IFS
6868
6869   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6870   ;;
6871 esac
6872 fi
6873 DOTTY=$ac_cv_path_DOTTY
6874 if test -n "$DOTTY"; then
6875   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6876 echo "${ECHO_T}$DOTTY" >&6; }
6877 else
6878   { echo "$as_me:$LINENO: result: no" >&5
6879 echo "${ECHO_T}no" >&6; }
6880 fi
6881
6882
6883 if test "$DOTTY" != "echo dotty" ; then
6884
6885 cat >>confdefs.h <<\_ACEOF
6886 #define HAVE_DOTTY 1
6887 _ACEOF
6888
6889     if test "$llvm_cv_os_type" = "MingW" ; then
6890     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6891   fi
6892
6893 cat >>confdefs.h <<_ACEOF
6894 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6895 _ACEOF
6896
6897 fi
6898 # Extract the first word of "xdot.py", so it can be a program name with args.
6899 set dummy xdot.py; ac_word=$2
6900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6902 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6903   echo $ECHO_N "(cached) $ECHO_C" >&6
6904 else
6905   case $XDOT_PY in
6906   [\\/]* | ?:[\\/]*)
6907   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6908   ;;
6909   *)
6910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 for as_dir in $PATH
6912 do
6913   IFS=$as_save_IFS
6914   test -z "$as_dir" && as_dir=.
6915   for ac_exec_ext in '' $ac_executable_extensions; do
6916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6917     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6919     break 2
6920   fi
6921 done
6922 done
6923 IFS=$as_save_IFS
6924
6925   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6926   ;;
6927 esac
6928 fi
6929 XDOT_PY=$ac_cv_path_XDOT_PY
6930 if test -n "$XDOT_PY"; then
6931   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6932 echo "${ECHO_T}$XDOT_PY" >&6; }
6933 else
6934   { echo "$as_me:$LINENO: result: no" >&5
6935 echo "${ECHO_T}no" >&6; }
6936 fi
6937
6938
6939 if test "$XDOT_PY" != "echo xdot.py" ; then
6940
6941 cat >>confdefs.h <<\_ACEOF
6942 #define HAVE_XDOT_PY 1
6943 _ACEOF
6944
6945     if test "$llvm_cv_os_type" = "MingW" ; then
6946     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6947   fi
6948
6949 cat >>confdefs.h <<_ACEOF
6950 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6951 _ACEOF
6952
6953 fi
6954
6955 # Find a good install program.  We prefer a C program (faster),
6956 # so one script is as good as another.  But avoid the broken or
6957 # incompatible versions:
6958 # SysV /etc/install, /usr/sbin/install
6959 # SunOS /usr/etc/install
6960 # IRIX /sbin/install
6961 # AIX /bin/install
6962 # AmigaOS /C/install, which installs bootblocks on floppy discs
6963 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6964 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6965 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6966 # OS/2's system install, which has a completely different semantic
6967 # ./install, which can be erroneously created by make from ./install.sh.
6968 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6969 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6970 if test -z "$INSTALL"; then
6971 if test "${ac_cv_path_install+set}" = set; then
6972   echo $ECHO_N "(cached) $ECHO_C" >&6
6973 else
6974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 for as_dir in $PATH
6976 do
6977   IFS=$as_save_IFS
6978   test -z "$as_dir" && as_dir=.
6979   # Account for people who put trailing slashes in PATH elements.
6980 case $as_dir/ in
6981   ./ | .// | /cC/* | \
6982   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6983   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6984   /usr/ucb/* ) ;;
6985   *)
6986     # OSF1 and SCO ODT 3.0 have their own names for install.
6987     # Don't use installbsd from OSF since it installs stuff as root
6988     # by default.
6989     for ac_prog in ginstall scoinst install; do
6990       for ac_exec_ext in '' $ac_executable_extensions; do
6991         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6992           if test $ac_prog = install &&
6993             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6994             # AIX install.  It has an incompatible calling convention.
6995             :
6996           elif test $ac_prog = install &&
6997             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6998             # program-specific install script used by HP pwplus--don't use.
6999             :
7000           else
7001             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7002             break 3
7003           fi
7004         fi
7005       done
7006     done
7007     ;;
7008 esac
7009 done
7010 IFS=$as_save_IFS
7011
7012
7013 fi
7014   if test "${ac_cv_path_install+set}" = set; then
7015     INSTALL=$ac_cv_path_install
7016   else
7017     # As a last resort, use the slow shell script.  Don't cache a
7018     # value for INSTALL within a source directory, because that will
7019     # break other packages using the cache if that directory is
7020     # removed, or if the value is a relative name.
7021     INSTALL=$ac_install_sh
7022   fi
7023 fi
7024 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7025 echo "${ECHO_T}$INSTALL" >&6; }
7026
7027 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7028 # It thinks the first close brace ends the variable substitution.
7029 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7030
7031 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7032
7033 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7034
7035 case "$INSTALL" in
7036  [\\/$]* | ?:[\\/]* ) ;;
7037  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7038 esac
7039
7040 # Extract the first word of "bzip2", so it can be a program name with args.
7041 set dummy bzip2; 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_BZIP2+set}" = set; then
7045   echo $ECHO_N "(cached) $ECHO_C" >&6
7046 else
7047   case $BZIP2 in
7048   [\\/]* | ?:[\\/]*)
7049   ac_cv_path_BZIP2="$BZIP2" # 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_BZIP2="$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   ;;
7068 esac
7069 fi
7070 BZIP2=$ac_cv_path_BZIP2
7071 if test -n "$BZIP2"; then
7072   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7073 echo "${ECHO_T}$BZIP2" >&6; }
7074 else
7075   { echo "$as_me:$LINENO: result: no" >&5
7076 echo "${ECHO_T}no" >&6; }
7077 fi
7078
7079
7080 # Extract the first word of "cat", so it can be a program name with args.
7081 set dummy cat; ac_word=$2
7082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7084 if test "${ac_cv_path_CAT+set}" = set; then
7085   echo $ECHO_N "(cached) $ECHO_C" >&6
7086 else
7087   case $CAT in
7088   [\\/]* | ?:[\\/]*)
7089   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7090   ;;
7091   *)
7092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 for as_dir in $PATH
7094 do
7095   IFS=$as_save_IFS
7096   test -z "$as_dir" && as_dir=.
7097   for ac_exec_ext in '' $ac_executable_extensions; do
7098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7099     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7101     break 2
7102   fi
7103 done
7104 done
7105 IFS=$as_save_IFS
7106
7107   ;;
7108 esac
7109 fi
7110 CAT=$ac_cv_path_CAT
7111 if test -n "$CAT"; then
7112   { echo "$as_me:$LINENO: result: $CAT" >&5
7113 echo "${ECHO_T}$CAT" >&6; }
7114 else
7115   { echo "$as_me:$LINENO: result: no" >&5
7116 echo "${ECHO_T}no" >&6; }
7117 fi
7118
7119
7120 # Extract the first word of "doxygen", so it can be a program name with args.
7121 set dummy doxygen; ac_word=$2
7122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7124 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7125   echo $ECHO_N "(cached) $ECHO_C" >&6
7126 else
7127   case $DOXYGEN in
7128   [\\/]* | ?:[\\/]*)
7129   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7130   ;;
7131   *)
7132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 for as_dir in $PATH
7134 do
7135   IFS=$as_save_IFS
7136   test -z "$as_dir" && as_dir=.
7137   for ac_exec_ext in '' $ac_executable_extensions; do
7138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7139     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7141     break 2
7142   fi
7143 done
7144 done
7145 IFS=$as_save_IFS
7146
7147   ;;
7148 esac
7149 fi
7150 DOXYGEN=$ac_cv_path_DOXYGEN
7151 if test -n "$DOXYGEN"; then
7152   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7153 echo "${ECHO_T}$DOXYGEN" >&6; }
7154 else
7155   { echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6; }
7157 fi
7158
7159
7160 # Extract the first word of "groff", so it can be a program name with args.
7161 set dummy groff; ac_word=$2
7162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7164 if test "${ac_cv_path_GROFF+set}" = set; then
7165   echo $ECHO_N "(cached) $ECHO_C" >&6
7166 else
7167   case $GROFF in
7168   [\\/]* | ?:[\\/]*)
7169   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7170   ;;
7171   *)
7172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH
7174 do
7175   IFS=$as_save_IFS
7176   test -z "$as_dir" && as_dir=.
7177   for ac_exec_ext in '' $ac_executable_extensions; do
7178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7179     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7181     break 2
7182   fi
7183 done
7184 done
7185 IFS=$as_save_IFS
7186
7187   ;;
7188 esac
7189 fi
7190 GROFF=$ac_cv_path_GROFF
7191 if test -n "$GROFF"; then
7192   { echo "$as_me:$LINENO: result: $GROFF" >&5
7193 echo "${ECHO_T}$GROFF" >&6; }
7194 else
7195   { echo "$as_me:$LINENO: result: no" >&5
7196 echo "${ECHO_T}no" >&6; }
7197 fi
7198
7199
7200 # Extract the first word of "gzip", so it can be a program name with args.
7201 set dummy gzip; ac_word=$2
7202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7204 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7205   echo $ECHO_N "(cached) $ECHO_C" >&6
7206 else
7207   case $GZIPBIN in
7208   [\\/]* | ?:[\\/]*)
7209   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7210   ;;
7211   *)
7212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7214 do
7215   IFS=$as_save_IFS
7216   test -z "$as_dir" && as_dir=.
7217   for ac_exec_ext in '' $ac_executable_extensions; do
7218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7219     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7221     break 2
7222   fi
7223 done
7224 done
7225 IFS=$as_save_IFS
7226
7227   ;;
7228 esac
7229 fi
7230 GZIPBIN=$ac_cv_path_GZIPBIN
7231 if test -n "$GZIPBIN"; then
7232   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7233 echo "${ECHO_T}$GZIPBIN" >&6; }
7234 else
7235   { echo "$as_me:$LINENO: result: no" >&5
7236 echo "${ECHO_T}no" >&6; }
7237 fi
7238
7239
7240 # Extract the first word of "pdfroff", so it can be a program name with args.
7241 set dummy pdfroff; ac_word=$2
7242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7244 if test "${ac_cv_path_PDFROFF+set}" = set; then
7245   echo $ECHO_N "(cached) $ECHO_C" >&6
7246 else
7247   case $PDFROFF in
7248   [\\/]* | ?:[\\/]*)
7249   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7250   ;;
7251   *)
7252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 for as_dir in $PATH
7254 do
7255   IFS=$as_save_IFS
7256   test -z "$as_dir" && as_dir=.
7257   for ac_exec_ext in '' $ac_executable_extensions; do
7258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7259     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7261     break 2
7262   fi
7263 done
7264 done
7265 IFS=$as_save_IFS
7266
7267   ;;
7268 esac
7269 fi
7270 PDFROFF=$ac_cv_path_PDFROFF
7271 if test -n "$PDFROFF"; then
7272   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7273 echo "${ECHO_T}$PDFROFF" >&6; }
7274 else
7275   { echo "$as_me:$LINENO: result: no" >&5
7276 echo "${ECHO_T}no" >&6; }
7277 fi
7278
7279
7280 # Extract the first word of "zip", so it can be a program name with args.
7281 set dummy zip; ac_word=$2
7282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7284 if test "${ac_cv_path_ZIP+set}" = set; then
7285   echo $ECHO_N "(cached) $ECHO_C" >&6
7286 else
7287   case $ZIP in
7288   [\\/]* | ?:[\\/]*)
7289   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7290   ;;
7291   *)
7292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 for as_dir in $PATH
7294 do
7295   IFS=$as_save_IFS
7296   test -z "$as_dir" && as_dir=.
7297   for ac_exec_ext in '' $ac_executable_extensions; do
7298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7299     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7301     break 2
7302   fi
7303 done
7304 done
7305 IFS=$as_save_IFS
7306
7307   ;;
7308 esac
7309 fi
7310 ZIP=$ac_cv_path_ZIP
7311 if test -n "$ZIP"; then
7312   { echo "$as_me:$LINENO: result: $ZIP" >&5
7313 echo "${ECHO_T}$ZIP" >&6; }
7314 else
7315   { echo "$as_me:$LINENO: result: no" >&5
7316 echo "${ECHO_T}no" >&6; }
7317 fi
7318
7319
7320 for ac_prog in ocamlc
7321 do
7322   # Extract the first word of "$ac_prog", so it can be a program name with args.
7323 set dummy $ac_prog; ac_word=$2
7324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7326 if test "${ac_cv_path_OCAMLC+set}" = set; then
7327   echo $ECHO_N "(cached) $ECHO_C" >&6
7328 else
7329   case $OCAMLC in
7330   [\\/]* | ?:[\\/]*)
7331   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7332   ;;
7333   *)
7334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 for as_dir in $PATH
7336 do
7337   IFS=$as_save_IFS
7338   test -z "$as_dir" && as_dir=.
7339   for ac_exec_ext in '' $ac_executable_extensions; do
7340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7341     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7343     break 2
7344   fi
7345 done
7346 done
7347 IFS=$as_save_IFS
7348
7349   ;;
7350 esac
7351 fi
7352 OCAMLC=$ac_cv_path_OCAMLC
7353 if test -n "$OCAMLC"; then
7354   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7355 echo "${ECHO_T}$OCAMLC" >&6; }
7356 else
7357   { echo "$as_me:$LINENO: result: no" >&5
7358 echo "${ECHO_T}no" >&6; }
7359 fi
7360
7361
7362   test -n "$OCAMLC" && break
7363 done
7364
7365 for ac_prog in ocamlopt
7366 do
7367   # Extract the first word of "$ac_prog", so it can be a program name with args.
7368 set dummy $ac_prog; ac_word=$2
7369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7371 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7372   echo $ECHO_N "(cached) $ECHO_C" >&6
7373 else
7374   case $OCAMLOPT in
7375   [\\/]* | ?:[\\/]*)
7376   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7377   ;;
7378   *)
7379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 for as_dir in $PATH
7381 do
7382   IFS=$as_save_IFS
7383   test -z "$as_dir" && as_dir=.
7384   for ac_exec_ext in '' $ac_executable_extensions; do
7385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7386     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7388     break 2
7389   fi
7390 done
7391 done
7392 IFS=$as_save_IFS
7393
7394   ;;
7395 esac
7396 fi
7397 OCAMLOPT=$ac_cv_path_OCAMLOPT
7398 if test -n "$OCAMLOPT"; then
7399   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7400 echo "${ECHO_T}$OCAMLOPT" >&6; }
7401 else
7402   { echo "$as_me:$LINENO: result: no" >&5
7403 echo "${ECHO_T}no" >&6; }
7404 fi
7405
7406
7407   test -n "$OCAMLOPT" && break
7408 done
7409
7410 for ac_prog in ocamldep
7411 do
7412   # Extract the first word of "$ac_prog", so it can be a program name with args.
7413 set dummy $ac_prog; ac_word=$2
7414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7417   echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419   case $OCAMLDEP in
7420   [\\/]* | ?:[\\/]*)
7421   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7422   ;;
7423   *)
7424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 for as_dir in $PATH
7426 do
7427   IFS=$as_save_IFS
7428   test -z "$as_dir" && as_dir=.
7429   for ac_exec_ext in '' $ac_executable_extensions; do
7430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7431     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7433     break 2
7434   fi
7435 done
7436 done
7437 IFS=$as_save_IFS
7438
7439   ;;
7440 esac
7441 fi
7442 OCAMLDEP=$ac_cv_path_OCAMLDEP
7443 if test -n "$OCAMLDEP"; then
7444   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7445 echo "${ECHO_T}$OCAMLDEP" >&6; }
7446 else
7447   { echo "$as_me:$LINENO: result: no" >&5
7448 echo "${ECHO_T}no" >&6; }
7449 fi
7450
7451
7452   test -n "$OCAMLDEP" && break
7453 done
7454
7455 for ac_prog in ocamldoc
7456 do
7457   # Extract the first word of "$ac_prog", so it can be a program name with args.
7458 set dummy $ac_prog; ac_word=$2
7459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7461 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7462   echo $ECHO_N "(cached) $ECHO_C" >&6
7463 else
7464   case $OCAMLDOC in
7465   [\\/]* | ?:[\\/]*)
7466   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7467   ;;
7468   *)
7469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 for as_dir in $PATH
7471 do
7472   IFS=$as_save_IFS
7473   test -z "$as_dir" && as_dir=.
7474   for ac_exec_ext in '' $ac_executable_extensions; do
7475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7476     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7478     break 2
7479   fi
7480 done
7481 done
7482 IFS=$as_save_IFS
7483
7484   ;;
7485 esac
7486 fi
7487 OCAMLDOC=$ac_cv_path_OCAMLDOC
7488 if test -n "$OCAMLDOC"; then
7489   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7490 echo "${ECHO_T}$OCAMLDOC" >&6; }
7491 else
7492   { echo "$as_me:$LINENO: result: no" >&5
7493 echo "${ECHO_T}no" >&6; }
7494 fi
7495
7496
7497   test -n "$OCAMLDOC" && break
7498 done
7499
7500 for ac_prog in gas as
7501 do
7502   # Extract the first word of "$ac_prog", so it can be a program name with args.
7503 set dummy $ac_prog; ac_word=$2
7504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7506 if test "${ac_cv_path_GAS+set}" = set; then
7507   echo $ECHO_N "(cached) $ECHO_C" >&6
7508 else
7509   case $GAS in
7510   [\\/]* | ?:[\\/]*)
7511   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7512   ;;
7513   *)
7514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 for as_dir in $PATH
7516 do
7517   IFS=$as_save_IFS
7518   test -z "$as_dir" && as_dir=.
7519   for ac_exec_ext in '' $ac_executable_extensions; do
7520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7521     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7523     break 2
7524   fi
7525 done
7526 done
7527 IFS=$as_save_IFS
7528
7529   ;;
7530 esac
7531 fi
7532 GAS=$ac_cv_path_GAS
7533 if test -n "$GAS"; then
7534   { echo "$as_me:$LINENO: result: $GAS" >&5
7535 echo "${ECHO_T}$GAS" >&6; }
7536 else
7537   { echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6; }
7539 fi
7540
7541
7542   test -n "$GAS" && break
7543 done
7544
7545
7546 { echo "$as_me:$LINENO: checking for linker version" >&5
7547 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7548 if test "${llvm_cv_link_version+set}" = set; then
7549   echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551
7552    version_string="$(ld -v 2>&1 | head -1)"
7553
7554    # Check for ld64.
7555    if (echo "$version_string" | grep -q "ld64"); then
7556      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7557    else
7558      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7559    fi
7560
7561 fi
7562 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7563 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7564
7565 cat >>confdefs.h <<_ACEOF
7566 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7567 _ACEOF
7568
7569
7570
7571 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7572 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7573 if test "${llvm_cv_link_use_r+set}" = set; then
7574   echo $ECHO_N "(cached) $ECHO_C" >&6
7575 else
7576    ac_ext=c
7577 ac_cpp='$CPP $CPPFLAGS'
7578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7581
7582   oldcflags="$CFLAGS"
7583   CFLAGS="$CFLAGS -Wl,-R."
7584   cat >conftest.$ac_ext <<_ACEOF
7585 /* confdefs.h.  */
7586 _ACEOF
7587 cat confdefs.h >>conftest.$ac_ext
7588 cat >>conftest.$ac_ext <<_ACEOF
7589 /* end confdefs.h.  */
7590
7591 int
7592 main ()
7593 {
7594
7595   ;
7596   return 0;
7597 }
7598 _ACEOF
7599 rm -f conftest.$ac_objext conftest$ac_exeext
7600 if { (ac_try="$ac_link"
7601 case "(($ac_try" in
7602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7603   *) ac_try_echo=$ac_try;;
7604 esac
7605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7606   (eval "$ac_link") 2>conftest.er1
7607   ac_status=$?
7608   grep -v '^ *+' conftest.er1 >conftest.err
7609   rm -f conftest.er1
7610   cat conftest.err >&5
7611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612   (exit $ac_status); } &&
7613          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7614   { (case "(($ac_try" in
7615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616   *) ac_try_echo=$ac_try;;
7617 esac
7618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7619   (eval "$ac_try") 2>&5
7620   ac_status=$?
7621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622   (exit $ac_status); }; } &&
7623          { ac_try='test -s conftest$ac_exeext'
7624   { (case "(($ac_try" in
7625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7626   *) ac_try_echo=$ac_try;;
7627 esac
7628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7629   (eval "$ac_try") 2>&5
7630   ac_status=$?
7631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632   (exit $ac_status); }; }; then
7633   llvm_cv_link_use_r=yes
7634 else
7635   echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.$ac_ext >&5
7637
7638         llvm_cv_link_use_r=no
7639 fi
7640
7641 rm -f core conftest.err conftest.$ac_objext \
7642       conftest$ac_exeext conftest.$ac_ext
7643   CFLAGS="$oldcflags"
7644   ac_ext=c
7645 ac_cpp='$CPP $CPPFLAGS'
7646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7649
7650
7651 fi
7652 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7653 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7654 if test "$llvm_cv_link_use_r" = yes ; then
7655
7656 cat >>confdefs.h <<\_ACEOF
7657 #define HAVE_LINK_R 1
7658 _ACEOF
7659
7660   fi
7661
7662
7663 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7664 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7665 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7666   echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668    ac_ext=c
7669 ac_cpp='$CPP $CPPFLAGS'
7670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7673
7674   oldcflags="$CFLAGS"
7675   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7676   cat >conftest.$ac_ext <<_ACEOF
7677 /* confdefs.h.  */
7678 _ACEOF
7679 cat confdefs.h >>conftest.$ac_ext
7680 cat >>conftest.$ac_ext <<_ACEOF
7681 /* end confdefs.h.  */
7682
7683 int
7684 main ()
7685 {
7686
7687   ;
7688   return 0;
7689 }
7690 _ACEOF
7691 rm -f conftest.$ac_objext conftest$ac_exeext
7692 if { (ac_try="$ac_link"
7693 case "(($ac_try" in
7694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695   *) ac_try_echo=$ac_try;;
7696 esac
7697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698   (eval "$ac_link") 2>conftest.er1
7699   ac_status=$?
7700   grep -v '^ *+' conftest.er1 >conftest.err
7701   rm -f conftest.er1
7702   cat conftest.err >&5
7703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704   (exit $ac_status); } &&
7705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7706   { (case "(($ac_try" in
7707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7708   *) ac_try_echo=$ac_try;;
7709 esac
7710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7711   (eval "$ac_try") 2>&5
7712   ac_status=$?
7713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714   (exit $ac_status); }; } &&
7715          { ac_try='test -s conftest$ac_exeext'
7716   { (case "(($ac_try" in
7717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7718   *) ac_try_echo=$ac_try;;
7719 esac
7720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7721   (eval "$ac_try") 2>&5
7722   ac_status=$?
7723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724   (exit $ac_status); }; }; then
7725   llvm_cv_link_use_export_dynamic=yes
7726 else
7727   echo "$as_me: failed program was:" >&5
7728 sed 's/^/| /' conftest.$ac_ext >&5
7729
7730         llvm_cv_link_use_export_dynamic=no
7731 fi
7732
7733 rm -f core conftest.err conftest.$ac_objext \
7734       conftest$ac_exeext conftest.$ac_ext
7735   CFLAGS="$oldcflags"
7736   ac_ext=c
7737 ac_cpp='$CPP $CPPFLAGS'
7738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7741
7742
7743 fi
7744 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7745 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7746 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7747
7748 cat >>confdefs.h <<\_ACEOF
7749 #define HAVE_LINK_EXPORT_DYNAMIC 1
7750 _ACEOF
7751
7752   fi
7753
7754
7755 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7756 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7757 if test "${llvm_cv_link_use_version_script+set}" = set; then
7758   echo $ECHO_N "(cached) $ECHO_C" >&6
7759 else
7760    ac_ext=c
7761 ac_cpp='$CPP $CPPFLAGS'
7762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7765
7766   oldcflags="$CFLAGS"
7767
7768   # The following code is from the autoconf manual,
7769   # "11.13: Limitations of Usual Tools".
7770   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7771   # Use mktemp if possible; otherwise fall back on mkdir,
7772   # with $RANDOM to make collisions less likely.
7773   : ${TMPDIR=/tmp}
7774   {
7775     tmp=`
7776       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7777     ` &&
7778     test -n "$tmp" && test -d "$tmp"
7779   } || {
7780     tmp=$TMPDIR/foo$$-$RANDOM
7781     (umask 077 && mkdir "$tmp")
7782   } || exit $?
7783
7784   echo "{" > "$tmp/export.map"
7785   echo "  global: main;" >> "$tmp/export.map"
7786   echo "  local: *;" >> "$tmp/export.map"
7787   echo "};" >> "$tmp/export.map"
7788
7789   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7790   cat >conftest.$ac_ext <<_ACEOF
7791 /* confdefs.h.  */
7792 _ACEOF
7793 cat confdefs.h >>conftest.$ac_ext
7794 cat >>conftest.$ac_ext <<_ACEOF
7795 /* end confdefs.h.  */
7796
7797 int
7798 main ()
7799 {
7800
7801   ;
7802   return 0;
7803 }
7804 _ACEOF
7805 rm -f conftest.$ac_objext conftest$ac_exeext
7806 if { (ac_try="$ac_link"
7807 case "(($ac_try" in
7808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7809   *) ac_try_echo=$ac_try;;
7810 esac
7811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7812   (eval "$ac_link") 2>conftest.er1
7813   ac_status=$?
7814   grep -v '^ *+' conftest.er1 >conftest.err
7815   rm -f conftest.er1
7816   cat conftest.err >&5
7817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818   (exit $ac_status); } &&
7819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7820   { (case "(($ac_try" in
7821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7822   *) ac_try_echo=$ac_try;;
7823 esac
7824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7825   (eval "$ac_try") 2>&5
7826   ac_status=$?
7827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828   (exit $ac_status); }; } &&
7829          { ac_try='test -s conftest$ac_exeext'
7830   { (case "(($ac_try" in
7831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7832   *) ac_try_echo=$ac_try;;
7833 esac
7834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7835   (eval "$ac_try") 2>&5
7836   ac_status=$?
7837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838   (exit $ac_status); }; }; then
7839   llvm_cv_link_use_version_script=yes
7840 else
7841   echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7843
7844         llvm_cv_link_use_version_script=no
7845 fi
7846
7847 rm -f core conftest.err conftest.$ac_objext \
7848       conftest$ac_exeext conftest.$ac_ext
7849   rm "$tmp/export.map"
7850   rmdir "$tmp"
7851   CFLAGS="$oldcflags"
7852   ac_ext=c
7853 ac_cpp='$CPP $CPPFLAGS'
7854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7857
7858
7859 fi
7860 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7861 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7862 if test "$llvm_cv_link_use_version_script" = yes ; then
7863   HAVE_LINK_VERSION_SCRIPT=1
7864
7865   fi
7866
7867
7868
7869
7870 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7871 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7872 if test "${ac_cv_c_const+set}" = set; then
7873   echo $ECHO_N "(cached) $ECHO_C" >&6
7874 else
7875   cat >conftest.$ac_ext <<_ACEOF
7876 /* confdefs.h.  */
7877 _ACEOF
7878 cat confdefs.h >>conftest.$ac_ext
7879 cat >>conftest.$ac_ext <<_ACEOF
7880 /* end confdefs.h.  */
7881
7882 int
7883 main ()
7884 {
7885 /* FIXME: Include the comments suggested by Paul. */
7886 #ifndef __cplusplus
7887   /* Ultrix mips cc rejects this.  */
7888   typedef int charset[2];
7889   const charset x;
7890   /* SunOS 4.1.1 cc rejects this.  */
7891   char const *const *ccp;
7892   char **p;
7893   /* NEC SVR4.0.2 mips cc rejects this.  */
7894   struct point {int x, y;};
7895   static struct point const zero = {0,0};
7896   /* AIX XL C 1.02.0.0 rejects this.
7897      It does not let you subtract one const X* pointer from another in
7898      an arm of an if-expression whose if-part is not a constant
7899      expression */
7900   const char *g = "string";
7901   ccp = &g + (g ? g-g : 0);
7902   /* HPUX 7.0 cc rejects these. */
7903   ++ccp;
7904   p = (char**) ccp;
7905   ccp = (char const *const *) p;
7906   { /* SCO 3.2v4 cc rejects this.  */
7907     char *t;
7908     char const *s = 0 ? (char *) 0 : (char const *) 0;
7909
7910     *t++ = 0;
7911     if (s) return 0;
7912   }
7913   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7914     int x[] = {25, 17};
7915     const int *foo = &x[0];
7916     ++foo;
7917   }
7918   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7919     typedef const int *iptr;
7920     iptr p = 0;
7921     ++p;
7922   }
7923   { /* AIX XL C 1.02.0.0 rejects this saying
7924        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7925     struct s { int j; const int *ap[3]; };
7926     struct s *b; b->j = 5;
7927   }
7928   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7929     const int foo = 10;
7930     if (!foo) return 0;
7931   }
7932   return !x[0] && !zero.x;
7933 #endif
7934
7935   ;
7936   return 0;
7937 }
7938 _ACEOF
7939 rm -f conftest.$ac_objext
7940 if { (ac_try="$ac_compile"
7941 case "(($ac_try" in
7942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7943   *) ac_try_echo=$ac_try;;
7944 esac
7945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7946   (eval "$ac_compile") 2>conftest.er1
7947   ac_status=$?
7948   grep -v '^ *+' conftest.er1 >conftest.err
7949   rm -f conftest.er1
7950   cat conftest.err >&5
7951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952   (exit $ac_status); } &&
7953          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7954   { (case "(($ac_try" in
7955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7956   *) ac_try_echo=$ac_try;;
7957 esac
7958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7959   (eval "$ac_try") 2>&5
7960   ac_status=$?
7961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962   (exit $ac_status); }; } &&
7963          { ac_try='test -s conftest.$ac_objext'
7964   { (case "(($ac_try" in
7965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7966   *) ac_try_echo=$ac_try;;
7967 esac
7968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7969   (eval "$ac_try") 2>&5
7970   ac_status=$?
7971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972   (exit $ac_status); }; }; then
7973   ac_cv_c_const=yes
7974 else
7975   echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.$ac_ext >&5
7977
7978         ac_cv_c_const=no
7979 fi
7980
7981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7982 fi
7983 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7984 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7985 if test $ac_cv_c_const = no; then
7986
7987 cat >>confdefs.h <<\_ACEOF
7988 #define const
7989 _ACEOF
7990
7991 fi
7992
7993
7994
7995
7996
7997
7998 ac_header_dirent=no
7999 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8000   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8001 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8002 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8004   echo $ECHO_N "(cached) $ECHO_C" >&6
8005 else
8006   cat >conftest.$ac_ext <<_ACEOF
8007 /* confdefs.h.  */
8008 _ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h.  */
8012 #include <sys/types.h>
8013 #include <$ac_hdr>
8014
8015 int
8016 main ()
8017 {
8018 if ((DIR *) 0)
8019 return 0;
8020   ;
8021   return 0;
8022 }
8023 _ACEOF
8024 rm -f conftest.$ac_objext
8025 if { (ac_try="$ac_compile"
8026 case "(($ac_try" in
8027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028   *) ac_try_echo=$ac_try;;
8029 esac
8030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8031   (eval "$ac_compile") 2>conftest.er1
8032   ac_status=$?
8033   grep -v '^ *+' conftest.er1 >conftest.err
8034   rm -f conftest.er1
8035   cat conftest.err >&5
8036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037   (exit $ac_status); } &&
8038          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8039   { (case "(($ac_try" in
8040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041   *) ac_try_echo=$ac_try;;
8042 esac
8043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044   (eval "$ac_try") 2>&5
8045   ac_status=$?
8046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047   (exit $ac_status); }; } &&
8048          { ac_try='test -s conftest.$ac_objext'
8049   { (case "(($ac_try" in
8050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051   *) ac_try_echo=$ac_try;;
8052 esac
8053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054   (eval "$ac_try") 2>&5
8055   ac_status=$?
8056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057   (exit $ac_status); }; }; then
8058   eval "$as_ac_Header=yes"
8059 else
8060   echo "$as_me: failed program was:" >&5
8061 sed 's/^/| /' conftest.$ac_ext >&5
8062
8063         eval "$as_ac_Header=no"
8064 fi
8065
8066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8067 fi
8068 ac_res=`eval echo '${'$as_ac_Header'}'`
8069                { echo "$as_me:$LINENO: result: $ac_res" >&5
8070 echo "${ECHO_T}$ac_res" >&6; }
8071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8072   cat >>confdefs.h <<_ACEOF
8073 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8074 _ACEOF
8075
8076 ac_header_dirent=$ac_hdr; break
8077 fi
8078
8079 done
8080 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8081 if test $ac_header_dirent = dirent.h; then
8082   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8083 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8084 if test "${ac_cv_search_opendir+set}" = set; then
8085   echo $ECHO_N "(cached) $ECHO_C" >&6
8086 else
8087   ac_func_search_save_LIBS=$LIBS
8088 cat >conftest.$ac_ext <<_ACEOF
8089 /* confdefs.h.  */
8090 _ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h.  */
8094
8095 /* Override any GCC internal prototype to avoid an error.
8096    Use char because int might match the return type of a GCC
8097    builtin and then its argument prototype would still apply.  */
8098 #ifdef __cplusplus
8099 extern "C"
8100 #endif
8101 char opendir ();
8102 int
8103 main ()
8104 {
8105 return opendir ();
8106   ;
8107   return 0;
8108 }
8109 _ACEOF
8110 for ac_lib in '' dir; do
8111   if test -z "$ac_lib"; then
8112     ac_res="none required"
8113   else
8114     ac_res=-l$ac_lib
8115     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8116   fi
8117   rm -f conftest.$ac_objext conftest$ac_exeext
8118 if { (ac_try="$ac_link"
8119 case "(($ac_try" in
8120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121   *) ac_try_echo=$ac_try;;
8122 esac
8123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124   (eval "$ac_link") 2>conftest.er1
8125   ac_status=$?
8126   grep -v '^ *+' conftest.er1 >conftest.err
8127   rm -f conftest.er1
8128   cat conftest.err >&5
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); } &&
8131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8132   { (case "(($ac_try" in
8133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134   *) ac_try_echo=$ac_try;;
8135 esac
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137   (eval "$ac_try") 2>&5
8138   ac_status=$?
8139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140   (exit $ac_status); }; } &&
8141          { ac_try='test -s conftest$ac_exeext'
8142   { (case "(($ac_try" in
8143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144   *) ac_try_echo=$ac_try;;
8145 esac
8146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147   (eval "$ac_try") 2>&5
8148   ac_status=$?
8149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150   (exit $ac_status); }; }; then
8151   ac_cv_search_opendir=$ac_res
8152 else
8153   echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.$ac_ext >&5
8155
8156
8157 fi
8158
8159 rm -f core conftest.err conftest.$ac_objext \
8160       conftest$ac_exeext
8161   if test "${ac_cv_search_opendir+set}" = set; then
8162   break
8163 fi
8164 done
8165 if test "${ac_cv_search_opendir+set}" = set; then
8166   :
8167 else
8168   ac_cv_search_opendir=no
8169 fi
8170 rm conftest.$ac_ext
8171 LIBS=$ac_func_search_save_LIBS
8172 fi
8173 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8174 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8175 ac_res=$ac_cv_search_opendir
8176 if test "$ac_res" != no; then
8177   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8178
8179 fi
8180
8181 else
8182   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8183 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8184 if test "${ac_cv_search_opendir+set}" = set; then
8185   echo $ECHO_N "(cached) $ECHO_C" >&6
8186 else
8187   ac_func_search_save_LIBS=$LIBS
8188 cat >conftest.$ac_ext <<_ACEOF
8189 /* confdefs.h.  */
8190 _ACEOF
8191 cat confdefs.h >>conftest.$ac_ext
8192 cat >>conftest.$ac_ext <<_ACEOF
8193 /* end confdefs.h.  */
8194
8195 /* Override any GCC internal prototype to avoid an error.
8196    Use char because int might match the return type of a GCC
8197    builtin and then its argument prototype would still apply.  */
8198 #ifdef __cplusplus
8199 extern "C"
8200 #endif
8201 char opendir ();
8202 int
8203 main ()
8204 {
8205 return opendir ();
8206   ;
8207   return 0;
8208 }
8209 _ACEOF
8210 for ac_lib in '' x; do
8211   if test -z "$ac_lib"; then
8212     ac_res="none required"
8213   else
8214     ac_res=-l$ac_lib
8215     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8216   fi
8217   rm -f conftest.$ac_objext conftest$ac_exeext
8218 if { (ac_try="$ac_link"
8219 case "(($ac_try" in
8220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221   *) ac_try_echo=$ac_try;;
8222 esac
8223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8224   (eval "$ac_link") 2>conftest.er1
8225   ac_status=$?
8226   grep -v '^ *+' conftest.er1 >conftest.err
8227   rm -f conftest.er1
8228   cat conftest.err >&5
8229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230   (exit $ac_status); } &&
8231          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8232   { (case "(($ac_try" in
8233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234   *) ac_try_echo=$ac_try;;
8235 esac
8236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237   (eval "$ac_try") 2>&5
8238   ac_status=$?
8239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240   (exit $ac_status); }; } &&
8241          { ac_try='test -s conftest$ac_exeext'
8242   { (case "(($ac_try" in
8243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244   *) ac_try_echo=$ac_try;;
8245 esac
8246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247   (eval "$ac_try") 2>&5
8248   ac_status=$?
8249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250   (exit $ac_status); }; }; then
8251   ac_cv_search_opendir=$ac_res
8252 else
8253   echo "$as_me: failed program was:" >&5
8254 sed 's/^/| /' conftest.$ac_ext >&5
8255
8256
8257 fi
8258
8259 rm -f core conftest.err conftest.$ac_objext \
8260       conftest$ac_exeext
8261   if test "${ac_cv_search_opendir+set}" = set; then
8262   break
8263 fi
8264 done
8265 if test "${ac_cv_search_opendir+set}" = set; then
8266   :
8267 else
8268   ac_cv_search_opendir=no
8269 fi
8270 rm conftest.$ac_ext
8271 LIBS=$ac_func_search_save_LIBS
8272 fi
8273 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8274 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8275 ac_res=$ac_cv_search_opendir
8276 if test "$ac_res" != no; then
8277   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8278
8279 fi
8280
8281 fi
8282
8283
8284 for ac_header in dlfcn.h
8285 do
8286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8288   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8291   echo $ECHO_N "(cached) $ECHO_C" >&6
8292 fi
8293 ac_res=`eval echo '${'$as_ac_Header'}'`
8294                { echo "$as_me:$LINENO: result: $ac_res" >&5
8295 echo "${ECHO_T}$ac_res" >&6; }
8296 else
8297   # Is the header compilable?
8298 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8299 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8300 cat >conftest.$ac_ext <<_ACEOF
8301 /* confdefs.h.  */
8302 _ACEOF
8303 cat confdefs.h >>conftest.$ac_ext
8304 cat >>conftest.$ac_ext <<_ACEOF
8305 /* end confdefs.h.  */
8306 $ac_includes_default
8307 #include <$ac_header>
8308 _ACEOF
8309 rm -f conftest.$ac_objext
8310 if { (ac_try="$ac_compile"
8311 case "(($ac_try" in
8312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313   *) ac_try_echo=$ac_try;;
8314 esac
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316   (eval "$ac_compile") 2>conftest.er1
8317   ac_status=$?
8318   grep -v '^ *+' conftest.er1 >conftest.err
8319   rm -f conftest.er1
8320   cat conftest.err >&5
8321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322   (exit $ac_status); } &&
8323          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8324   { (case "(($ac_try" in
8325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326   *) ac_try_echo=$ac_try;;
8327 esac
8328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8329   (eval "$ac_try") 2>&5
8330   ac_status=$?
8331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332   (exit $ac_status); }; } &&
8333          { ac_try='test -s conftest.$ac_objext'
8334   { (case "(($ac_try" in
8335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336   *) ac_try_echo=$ac_try;;
8337 esac
8338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339   (eval "$ac_try") 2>&5
8340   ac_status=$?
8341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342   (exit $ac_status); }; }; then
8343   ac_header_compiler=yes
8344 else
8345   echo "$as_me: failed program was:" >&5
8346 sed 's/^/| /' conftest.$ac_ext >&5
8347
8348         ac_header_compiler=no
8349 fi
8350
8351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8352 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8353 echo "${ECHO_T}$ac_header_compiler" >&6; }
8354
8355 # Is the header present?
8356 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8358 cat >conftest.$ac_ext <<_ACEOF
8359 /* confdefs.h.  */
8360 _ACEOF
8361 cat confdefs.h >>conftest.$ac_ext
8362 cat >>conftest.$ac_ext <<_ACEOF
8363 /* end confdefs.h.  */
8364 #include <$ac_header>
8365 _ACEOF
8366 if { (ac_try="$ac_cpp conftest.$ac_ext"
8367 case "(($ac_try" in
8368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369   *) ac_try_echo=$ac_try;;
8370 esac
8371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8373   ac_status=$?
8374   grep -v '^ *+' conftest.er1 >conftest.err
8375   rm -f conftest.er1
8376   cat conftest.err >&5
8377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378   (exit $ac_status); } >/dev/null; then
8379   if test -s conftest.err; then
8380     ac_cpp_err=$ac_c_preproc_warn_flag
8381     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8382   else
8383     ac_cpp_err=
8384   fi
8385 else
8386   ac_cpp_err=yes
8387 fi
8388 if test -z "$ac_cpp_err"; then
8389   ac_header_preproc=yes
8390 else
8391   echo "$as_me: failed program was:" >&5
8392 sed 's/^/| /' conftest.$ac_ext >&5
8393
8394   ac_header_preproc=no
8395 fi
8396
8397 rm -f conftest.err conftest.$ac_ext
8398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8399 echo "${ECHO_T}$ac_header_preproc" >&6; }
8400
8401 # So?  What about this header?
8402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8403   yes:no: )
8404     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8406     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8408     ac_header_preproc=yes
8409     ;;
8410   no:yes:* )
8411     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8413     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8414 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8415     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8417     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8418 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8419     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8421     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8423     ( cat <<\_ASBOX
8424 ## ------------------------------------ ##
8425 ## Report this to http://llvm.org/bugs/ ##
8426 ## ------------------------------------ ##
8427 _ASBOX
8428      ) | sed "s/^/$as_me: WARNING:     /" >&2
8429     ;;
8430 esac
8431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8434   echo $ECHO_N "(cached) $ECHO_C" >&6
8435 else
8436   eval "$as_ac_Header=\$ac_header_preproc"
8437 fi
8438 ac_res=`eval echo '${'$as_ac_Header'}'`
8439                { echo "$as_me:$LINENO: result: $ac_res" >&5
8440 echo "${ECHO_T}$ac_res" >&6; }
8441
8442 fi
8443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8444   cat >>confdefs.h <<_ACEOF
8445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8446 _ACEOF
8447
8448 fi
8449
8450 done
8451
8452 # Check whether --enable-ltdl-install was given.
8453 if test "${enable_ltdl_install+set}" = set; then
8454   enableval=$enable_ltdl_install;
8455 fi
8456
8457
8458
8459
8460 if test x"${enable_ltdl_install-no}" != xno; then
8461   INSTALL_LTDL_TRUE=
8462   INSTALL_LTDL_FALSE='#'
8463 else
8464   INSTALL_LTDL_TRUE='#'
8465   INSTALL_LTDL_FALSE=
8466 fi
8467
8468
8469
8470 if test x"${enable_ltdl_convenience-no}" != xno; then
8471   CONVENIENCE_LTDL_TRUE=
8472   CONVENIENCE_LTDL_FALSE='#'
8473 else
8474   CONVENIENCE_LTDL_TRUE='#'
8475   CONVENIENCE_LTDL_FALSE=
8476 fi
8477
8478
8479 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8480 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8481 library_names_spec=
8482 libname_spec='lib$name'
8483 soname_spec=
8484 shrext_cmds=".so"
8485 postinstall_cmds=
8486 postuninstall_cmds=
8487 finish_cmds=
8488 finish_eval=
8489 shlibpath_var=
8490 shlibpath_overrides_runpath=unknown
8491 version_type=none
8492 dynamic_linker="$host_os ld.so"
8493 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8494 if test "$GCC" = yes; then
8495   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8496   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8497     # if the path contains ";" then we assume it to be the separator
8498     # otherwise default to the standard path separator (i.e. ":") - it is
8499     # assumed that no part of a normal pathname contains ";" but that should
8500     # okay in the real world where ";" in dirpaths is itself problematic.
8501     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8502   else
8503     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8504   fi
8505 else
8506   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8507 fi
8508 need_lib_prefix=unknown
8509 hardcode_into_libs=no
8510
8511 # when you set need_version to no, make sure it does not cause -set_version
8512 # flags to be left without arguments
8513 need_version=unknown
8514
8515 case $host_os in
8516 aix3*)
8517   version_type=linux
8518   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8519   shlibpath_var=LIBPATH
8520
8521   # AIX 3 has no versioning support, so we append a major version to the name.
8522   soname_spec='${libname}${release}${shared_ext}$major'
8523   ;;
8524
8525 aix4* | aix5*)
8526   version_type=linux
8527   need_lib_prefix=no
8528   need_version=no
8529   hardcode_into_libs=yes
8530   if test "$host_cpu" = ia64; then
8531     # AIX 5 supports IA64
8532     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8533     shlibpath_var=LD_LIBRARY_PATH
8534   else
8535     # With GCC up to 2.95.x, collect2 would create an import file
8536     # for dependence libraries.  The import file would start with
8537     # the line `#! .'.  This would cause the generated library to
8538     # depend on `.', always an invalid library.  This was fixed in
8539     # development snapshots of GCC prior to 3.0.
8540     case $host_os in
8541       aix4 | aix4.[01] | aix4.[01].*)
8542       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8543            echo ' yes '
8544            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8545         :
8546       else
8547         can_build_shared=no
8548       fi
8549       ;;
8550     esac
8551     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8552     # soname into executable. Probably we can add versioning support to
8553     # collect2, so additional links can be useful in future.
8554     if test "$aix_use_runtimelinking" = yes; then
8555       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8556       # instead of lib<name>.a to let people know that these are not
8557       # typical AIX shared libraries.
8558       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8559     else
8560       # We preserve .a as extension for shared libraries through AIX4.2
8561       # and later when we are not doing run time linking.
8562       library_names_spec='${libname}${release}.a $libname.a'
8563       soname_spec='${libname}${release}${shared_ext}$major'
8564     fi
8565     shlibpath_var=LIBPATH
8566   fi
8567   ;;
8568
8569 amigaos*)
8570   library_names_spec='$libname.ixlibrary $libname.a'
8571   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8572   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'
8573   ;;
8574
8575 beos*)
8576   library_names_spec='${libname}${shared_ext}'
8577   dynamic_linker="$host_os ld.so"
8578   shlibpath_var=LIBRARY_PATH
8579   ;;
8580
8581 bsdi[45]*)
8582   version_type=linux
8583   need_version=no
8584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8585   soname_spec='${libname}${release}${shared_ext}$major'
8586   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8587   shlibpath_var=LD_LIBRARY_PATH
8588   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8589   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8590   # the default ld.so.conf also contains /usr/contrib/lib and
8591   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8592   # libtool to hard-code these into programs
8593   ;;
8594
8595 cygwin* | mingw* | pw32*)
8596   version_type=windows
8597   shrext_cmds=".dll"
8598   need_version=no
8599   need_lib_prefix=no
8600
8601   case $GCC,$host_os in
8602   yes,cygwin* | yes,mingw* | yes,pw32*)
8603     library_names_spec='$libname.dll.a'
8604     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8605     postinstall_cmds='base_file=`basename \${file}`~
8606       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8607       dldir=$destdir/`dirname \$dlpath`~
8608       test -d \$dldir || mkdir -p \$dldir~
8609       $install_prog $dir/$dlname \$dldir/$dlname~
8610       chmod a+x \$dldir/$dlname'
8611     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8612       dlpath=$dir/\$dldll~
8613        $rm \$dlpath'
8614     shlibpath_overrides_runpath=yes
8615
8616     case $host_os in
8617     cygwin*)
8618       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8619       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8620       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8621       ;;
8622     mingw*)
8623       # MinGW DLLs use traditional 'lib' prefix
8624       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8625       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8626       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8627         # It is most probably a Windows format PATH printed by
8628         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8629         # path with ; separators, and with drive letters. We can handle the
8630         # drive letters (cygwin fileutils understands them), so leave them,
8631         # especially as we might pass files found there to a mingw objdump,
8632         # which wouldn't understand a cygwinified path. Ahh.
8633         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8634       else
8635         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8636       fi
8637       ;;
8638     pw32*)
8639       # pw32 DLLs use 'pw' prefix rather than 'lib'
8640       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8641       ;;
8642     esac
8643     ;;
8644
8645   *)
8646     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8647     ;;
8648   esac
8649   dynamic_linker='Win32 ld.exe'
8650   # FIXME: first we should search . and the directory the executable is in
8651   shlibpath_var=PATH
8652   ;;
8653
8654 darwin* | rhapsody*)
8655   dynamic_linker="$host_os dyld"
8656   version_type=darwin
8657   need_lib_prefix=no
8658   need_version=no
8659   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8660   soname_spec='${libname}${release}${major}$shared_ext'
8661   shlibpath_overrides_runpath=yes
8662   shlibpath_var=DYLD_LIBRARY_PATH
8663   shrext_cmds='.dylib'
8664   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8665   if test "$GCC" = yes; then
8666     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"`
8667   else
8668     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8669   fi
8670   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8671   ;;
8672
8673 dgux*)
8674   version_type=linux
8675   need_lib_prefix=no
8676   need_version=no
8677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8678   soname_spec='${libname}${release}${shared_ext}$major'
8679   shlibpath_var=LD_LIBRARY_PATH
8680   ;;
8681
8682 freebsd1.*)
8683   dynamic_linker=no
8684   ;;
8685
8686 kfreebsd*-gnu)
8687   version_type=linux
8688   need_lib_prefix=no
8689   need_version=no
8690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8691   soname_spec='${libname}${release}${shared_ext}$major'
8692   shlibpath_var=LD_LIBRARY_PATH
8693   shlibpath_overrides_runpath=no
8694   hardcode_into_libs=yes
8695   dynamic_linker='GNU ld.so'
8696   ;;
8697
8698 freebsd* | dragonfly*)
8699   # DragonFly does not have aout.  When/if they implement a new
8700   # versioning mechanism, adjust this.
8701   if test -x /usr/bin/objformat; then
8702     objformat=`/usr/bin/objformat`
8703   else
8704     case $host_os in
8705     freebsd[123].*) objformat=aout ;;
8706     *) objformat=elf ;;
8707     esac
8708   fi
8709   version_type=freebsd-$objformat
8710   case $version_type in
8711     freebsd-elf*)
8712       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8713       need_version=no
8714       need_lib_prefix=no
8715       ;;
8716     freebsd-*)
8717       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8718       need_version=yes
8719       ;;
8720   esac
8721   shlibpath_var=LD_LIBRARY_PATH
8722   case $host_os in
8723   freebsd2.*)
8724     shlibpath_overrides_runpath=yes
8725     ;;
8726   freebsd3.[01]* | freebsdelf3.[01]*)
8727     shlibpath_overrides_runpath=yes
8728     hardcode_into_libs=yes
8729     ;;
8730   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8731   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8732     shlibpath_overrides_runpath=no
8733     hardcode_into_libs=yes
8734     ;;
8735   freebsd*) # from 4.6 on
8736     shlibpath_overrides_runpath=yes
8737     hardcode_into_libs=yes
8738     ;;
8739   esac
8740   ;;
8741
8742 gnu*)
8743   version_type=linux
8744   need_lib_prefix=no
8745   need_version=no
8746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8747   soname_spec='${libname}${release}${shared_ext}$major'
8748   shlibpath_var=LD_LIBRARY_PATH
8749   hardcode_into_libs=yes
8750   ;;
8751
8752 hpux9* | hpux10* | hpux11*)
8753   # Give a soname corresponding to the major version so that dld.sl refuses to
8754   # link against other versions.
8755   version_type=sunos
8756   need_lib_prefix=no
8757   need_version=no
8758   case $host_cpu in
8759   ia64*)
8760     shrext_cmds='.so'
8761     hardcode_into_libs=yes
8762     dynamic_linker="$host_os dld.so"
8763     shlibpath_var=LD_LIBRARY_PATH
8764     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8765     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8766     soname_spec='${libname}${release}${shared_ext}$major'
8767     if test "X$HPUX_IA64_MODE" = X32; then
8768       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8769     else
8770       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8771     fi
8772     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8773     ;;
8774    hppa*64*)
8775      shrext_cmds='.sl'
8776      hardcode_into_libs=yes
8777      dynamic_linker="$host_os dld.sl"
8778      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8779      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8780      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8781      soname_spec='${libname}${release}${shared_ext}$major'
8782      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8783      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8784      ;;
8785    *)
8786     shrext_cmds='.sl'
8787     dynamic_linker="$host_os dld.sl"
8788     shlibpath_var=SHLIB_PATH
8789     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8790     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8791     soname_spec='${libname}${release}${shared_ext}$major'
8792     ;;
8793   esac
8794   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8795   postinstall_cmds='chmod 555 $lib'
8796   ;;
8797
8798 interix3*)
8799   version_type=linux
8800   need_lib_prefix=no
8801   need_version=no
8802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8803   soname_spec='${libname}${release}${shared_ext}$major'
8804   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8805   shlibpath_var=LD_LIBRARY_PATH
8806   shlibpath_overrides_runpath=no
8807   hardcode_into_libs=yes
8808   ;;
8809
8810 irix5* | irix6* | nonstopux*)
8811   case $host_os in
8812     nonstopux*) version_type=nonstopux ;;
8813     *)
8814         if test "$lt_cv_prog_gnu_ld" = yes; then
8815                 version_type=linux
8816         else
8817                 version_type=irix
8818         fi ;;
8819   esac
8820   need_lib_prefix=no
8821   need_version=no
8822   soname_spec='${libname}${release}${shared_ext}$major'
8823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8824   case $host_os in
8825   irix5* | nonstopux*)
8826     libsuff= shlibsuff=
8827     ;;
8828   *)
8829     case $LD in # libtool.m4 will add one of these switches to LD
8830     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8831       libsuff= shlibsuff= libmagic=32-bit;;
8832     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8833       libsuff=32 shlibsuff=N32 libmagic=N32;;
8834     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8835       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8836     *) libsuff= shlibsuff= libmagic=never-match;;
8837     esac
8838     ;;
8839   esac
8840   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8841   shlibpath_overrides_runpath=no
8842   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8843   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8844   hardcode_into_libs=yes
8845   ;;
8846
8847 # No shared lib support for Linux oldld, aout, or coff.
8848 linux*oldld* | linux*aout* | linux*coff*)
8849   dynamic_linker=no
8850   ;;
8851
8852 # This must be Linux ELF.
8853 linux*)
8854   version_type=linux
8855   need_lib_prefix=no
8856   need_version=no
8857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8858   soname_spec='${libname}${release}${shared_ext}$major'
8859   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8860   shlibpath_var=LD_LIBRARY_PATH
8861   shlibpath_overrides_runpath=no
8862   # This implies no fast_install, which is unacceptable.
8863   # Some rework will be needed to allow for fast_install
8864   # before this can be enabled.
8865   hardcode_into_libs=yes
8866
8867   # Append ld.so.conf contents to the search path
8868   if test -f /etc/ld.so.conf; then
8869     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' ' '`
8870     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8871   fi
8872
8873   # We used to test for /lib/ld.so.1 and disable shared libraries on
8874   # powerpc, because MkLinux only supported shared libraries with the
8875   # GNU dynamic linker.  Since this was broken with cross compilers,
8876   # most powerpc-linux boxes support dynamic linking these days and
8877   # people can always --disable-shared, the test was removed, and we
8878   # assume the GNU/Linux dynamic linker is in use.
8879   dynamic_linker='GNU/Linux ld.so'
8880   ;;
8881
8882 knetbsd*-gnu)
8883   version_type=linux
8884   need_lib_prefix=no
8885   need_version=no
8886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8887   soname_spec='${libname}${release}${shared_ext}$major'
8888   shlibpath_var=LD_LIBRARY_PATH
8889   shlibpath_overrides_runpath=no
8890   hardcode_into_libs=yes
8891   dynamic_linker='GNU ld.so'
8892   ;;
8893
8894 netbsd*)
8895   version_type=sunos
8896   need_lib_prefix=no
8897   need_version=no
8898   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8899     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8900     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8901     dynamic_linker='NetBSD (a.out) ld.so'
8902   else
8903     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8904     soname_spec='${libname}${release}${shared_ext}$major'
8905     dynamic_linker='NetBSD ld.elf_so'
8906   fi
8907   shlibpath_var=LD_LIBRARY_PATH
8908   shlibpath_overrides_runpath=yes
8909   hardcode_into_libs=yes
8910   ;;
8911
8912 newsos6)
8913   version_type=linux
8914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8915   shlibpath_var=LD_LIBRARY_PATH
8916   shlibpath_overrides_runpath=yes
8917   ;;
8918
8919 nto-qnx*)
8920   version_type=linux
8921   need_lib_prefix=no
8922   need_version=no
8923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8924   soname_spec='${libname}${release}${shared_ext}$major'
8925   shlibpath_var=LD_LIBRARY_PATH
8926   shlibpath_overrides_runpath=yes
8927   ;;
8928
8929 openbsd*)
8930   version_type=sunos
8931   sys_lib_dlsearch_path_spec="/usr/lib"
8932   need_lib_prefix=no
8933   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8934   case $host_os in
8935     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8936     *)                         need_version=no  ;;
8937   esac
8938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8939   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8940   shlibpath_var=LD_LIBRARY_PATH
8941   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8942     case $host_os in
8943       openbsd2.[89] | openbsd2.[89].*)
8944         shlibpath_overrides_runpath=no
8945         ;;
8946       *)
8947         shlibpath_overrides_runpath=yes
8948         ;;
8949       esac
8950   else
8951     shlibpath_overrides_runpath=yes
8952   fi
8953   ;;
8954
8955 os2*)
8956   libname_spec='$name'
8957   shrext_cmds=".dll"
8958   need_lib_prefix=no
8959   library_names_spec='$libname${shared_ext} $libname.a'
8960   dynamic_linker='OS/2 ld.exe'
8961   shlibpath_var=LIBPATH
8962   ;;
8963
8964 osf3* | osf4* | osf5*)
8965   version_type=osf
8966   need_lib_prefix=no
8967   need_version=no
8968   soname_spec='${libname}${release}${shared_ext}$major'
8969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8970   shlibpath_var=LD_LIBRARY_PATH
8971   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8972   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8973   ;;
8974
8975 solaris*)
8976   version_type=linux
8977   need_lib_prefix=no
8978   need_version=no
8979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8980   soname_spec='${libname}${release}${shared_ext}$major'
8981   shlibpath_var=LD_LIBRARY_PATH
8982   shlibpath_overrides_runpath=yes
8983   hardcode_into_libs=yes
8984   # ldd complains unless libraries are executable
8985   postinstall_cmds='chmod +x $lib'
8986   ;;
8987
8988 sunos4*)
8989   version_type=sunos
8990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8991   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8992   shlibpath_var=LD_LIBRARY_PATH
8993   shlibpath_overrides_runpath=yes
8994   if test "$with_gnu_ld" = yes; then
8995     need_lib_prefix=no
8996   fi
8997   need_version=yes
8998   ;;
8999
9000 sysv4 | sysv4.3*)
9001   version_type=linux
9002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9003   soname_spec='${libname}${release}${shared_ext}$major'
9004   shlibpath_var=LD_LIBRARY_PATH
9005   case $host_vendor in
9006     sni)
9007       shlibpath_overrides_runpath=no
9008       need_lib_prefix=no
9009       export_dynamic_flag_spec='${wl}-Blargedynsym'
9010       runpath_var=LD_RUN_PATH
9011       ;;
9012     siemens)
9013       need_lib_prefix=no
9014       ;;
9015     motorola)
9016       need_lib_prefix=no
9017       need_version=no
9018       shlibpath_overrides_runpath=no
9019       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9020       ;;
9021   esac
9022   ;;
9023
9024 sysv4*MP*)
9025   if test -d /usr/nec ;then
9026     version_type=linux
9027     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9028     soname_spec='$libname${shared_ext}.$major'
9029     shlibpath_var=LD_LIBRARY_PATH
9030   fi
9031   ;;
9032
9033 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9034   version_type=freebsd-elf
9035   need_lib_prefix=no
9036   need_version=no
9037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9038   soname_spec='${libname}${release}${shared_ext}$major'
9039   shlibpath_var=LD_LIBRARY_PATH
9040   hardcode_into_libs=yes
9041   if test "$with_gnu_ld" = yes; then
9042     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9043     shlibpath_overrides_runpath=no
9044   else
9045     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9046     shlibpath_overrides_runpath=yes
9047     case $host_os in
9048       sco3.2v5*)
9049         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9050         ;;
9051     esac
9052   fi
9053   sys_lib_dlsearch_path_spec='/usr/lib'
9054   ;;
9055
9056 uts4*)
9057   version_type=linux
9058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059   soname_spec='${libname}${release}${shared_ext}$major'
9060   shlibpath_var=LD_LIBRARY_PATH
9061   ;;
9062
9063 *)
9064   dynamic_linker=no
9065   ;;
9066 esac
9067 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9068 echo "${ECHO_T}$dynamic_linker" >&6; }
9069 test "$dynamic_linker" = no && can_build_shared=no
9070
9071 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9072 if test "$GCC" = yes; then
9073   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9074 fi
9075
9076
9077 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9078 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9079 if test "${libltdl_cv_shlibext+set}" = set; then
9080   echo $ECHO_N "(cached) $ECHO_C" >&6
9081 else
9082
9083 module=yes
9084 eval libltdl_cv_shlibext=$shrext_cmds
9085
9086 fi
9087 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9088 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9089 if test -n "$libltdl_cv_shlibext"; then
9090
9091 cat >>confdefs.h <<_ACEOF
9092 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9093 _ACEOF
9094
9095 fi
9096
9097
9098 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9099 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9100 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9101   echo $ECHO_N "(cached) $ECHO_C" >&6
9102 else
9103   libltdl_cv_shlibpath_var="$shlibpath_var"
9104 fi
9105 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9106 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9107 if test -n "$libltdl_cv_shlibpath_var"; then
9108
9109 cat >>confdefs.h <<_ACEOF
9110 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9111 _ACEOF
9112
9113 fi
9114
9115
9116 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9117 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9118 if test "${libltdl_cv_sys_search_path+set}" = set; then
9119   echo $ECHO_N "(cached) $ECHO_C" >&6
9120 else
9121   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9122 fi
9123 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9124 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9125 if test -n "$libltdl_cv_sys_search_path"; then
9126   sys_search_path=
9127   for dir in $libltdl_cv_sys_search_path; do
9128     if test -z "$sys_search_path"; then
9129       sys_search_path="$dir"
9130     else
9131       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9132     fi
9133   done
9134
9135 cat >>confdefs.h <<_ACEOF
9136 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9137 _ACEOF
9138
9139 fi
9140
9141 { echo "$as_me:$LINENO: checking for objdir" >&5
9142 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9143 if test "${libltdl_cv_objdir+set}" = set; then
9144   echo $ECHO_N "(cached) $ECHO_C" >&6
9145 else
9146   libltdl_cv_objdir="$objdir"
9147   if test -n "$objdir"; then
9148     :
9149   else
9150     rm -f .libs 2>/dev/null
9151     mkdir .libs 2>/dev/null
9152     if test -d .libs; then
9153       libltdl_cv_objdir=.libs
9154     else
9155       # MS-DOS does not allow filenames that begin with a dot.
9156       libltdl_cv_objdir=_libs
9157     fi
9158   rmdir .libs 2>/dev/null
9159   fi
9160
9161 fi
9162 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9163 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9164
9165 cat >>confdefs.h <<_ACEOF
9166 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9167 _ACEOF
9168
9169
9170
9171
9172
9173
9174 # Check for command to grab the raw symbol name followed by C symbol from nm.
9175 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9176 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9177 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9178   echo $ECHO_N "(cached) $ECHO_C" >&6
9179 else
9180
9181 # These are sane defaults that work on at least a few old systems.
9182 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9183
9184 # Character class describing NM global symbol codes.
9185 symcode='[BCDEGRST]'
9186
9187 # Regexp to match symbols that can be accessed directly from C.
9188 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9189
9190 # Transform an extracted symbol line into a proper C declaration
9191 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9192
9193 # Transform an extracted symbol line into symbol name and symbol address
9194 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'"
9195
9196 # Define system-specific variables.
9197 case $host_os in
9198 aix*)
9199   symcode='[BCDT]'
9200   ;;
9201 cygwin* | mingw* | pw32*)
9202   symcode='[ABCDGISTW]'
9203   ;;
9204 hpux*) # Its linker distinguishes data from code symbols
9205   if test "$host_cpu" = ia64; then
9206     symcode='[ABCDEGRST]'
9207   fi
9208   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9209   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'"
9210   ;;
9211 linux*)
9212   if test "$host_cpu" = ia64; then
9213     symcode='[ABCDGIRSTW]'
9214     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9215     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'"
9216   fi
9217   ;;
9218 irix* | nonstopux*)
9219   symcode='[BCDEGRST]'
9220   ;;
9221 osf*)
9222   symcode='[BCDEGQRST]'
9223   ;;
9224 solaris*)
9225   symcode='[BDRT]'
9226   ;;
9227 sco3.2v5*)
9228   symcode='[DT]'
9229   ;;
9230 sysv4.2uw2*)
9231   symcode='[DT]'
9232   ;;
9233 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9234   symcode='[ABDT]'
9235   ;;
9236 sysv4)
9237   symcode='[DFNSTU]'
9238   ;;
9239 esac
9240
9241 # Handle CRLF in mingw tool chain
9242 opt_cr=
9243 case $build_os in
9244 mingw*)
9245   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9246   ;;
9247 esac
9248
9249 # If we're using GNU nm, then use its standard symbol codes.
9250 case `$NM -V 2>&1` in
9251 *GNU* | *'with BFD'*)
9252   symcode='[ABCDGIRSTW]' ;;
9253 esac
9254
9255 # Try without a prefix undercore, then with it.
9256 for ac_symprfx in "" "_"; do
9257
9258   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9259   symxfrm="\\1 $ac_symprfx\\2 \\2"
9260
9261   # Write the raw and C identifiers.
9262   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9263
9264   # Check to see that the pipe works correctly.
9265   pipe_works=no
9266
9267   rm -f conftest*
9268   cat > conftest.$ac_ext <<EOF
9269 #ifdef __cplusplus
9270 extern "C" {
9271 #endif
9272 char nm_test_var;
9273 void nm_test_func(){}
9274 #ifdef __cplusplus
9275 }
9276 #endif
9277 int main(){nm_test_var='a';nm_test_func();return(0);}
9278 EOF
9279
9280   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9281   (eval $ac_compile) 2>&5
9282   ac_status=$?
9283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284   (exit $ac_status); }; then
9285     # Now try to grab the symbols.
9286     nlist=conftest.nm
9287     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9288   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9289   ac_status=$?
9290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291   (exit $ac_status); } && test -s "$nlist"; then
9292       # Try sorting and uniquifying the output.
9293       if sort "$nlist" | uniq > "$nlist"T; then
9294         mv -f "$nlist"T "$nlist"
9295       else
9296         rm -f "$nlist"T
9297       fi
9298
9299       # Make sure that we snagged all the symbols we need.
9300       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9301         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9302           cat <<EOF > conftest.$ac_ext
9303 #ifdef __cplusplus
9304 extern "C" {
9305 #endif
9306
9307 EOF
9308           # Now generate the symbol file.
9309           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9310
9311           cat <<EOF >> conftest.$ac_ext
9312 #if defined (__STDC__) && __STDC__
9313 # define lt_ptr_t void *
9314 #else
9315 # define lt_ptr_t char *
9316 # define const
9317 #endif
9318
9319 /* The mapping between symbol names and symbols. */
9320 const struct {
9321   const char *name;
9322   lt_ptr_t address;
9323 }
9324 lt_preloaded_symbols[] =
9325 {
9326 EOF
9327           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9328           cat <<\EOF >> conftest.$ac_ext
9329   {0, (lt_ptr_t) 0}
9330 };
9331
9332 #ifdef __cplusplus
9333 }
9334 #endif
9335 EOF
9336           # Now try linking the two files.
9337           mv conftest.$ac_objext conftstm.$ac_objext
9338           lt_save_LIBS="$LIBS"
9339           lt_save_CFLAGS="$CFLAGS"
9340           LIBS="conftstm.$ac_objext"
9341           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9342           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9343   (eval $ac_link) 2>&5
9344   ac_status=$?
9345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9347             pipe_works=yes
9348           fi
9349           LIBS="$lt_save_LIBS"
9350           CFLAGS="$lt_save_CFLAGS"
9351         else
9352           echo "cannot find nm_test_func in $nlist" >&5
9353         fi
9354       else
9355         echo "cannot find nm_test_var in $nlist" >&5
9356       fi
9357     else
9358       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9359     fi
9360   else
9361     echo "$progname: failed program was:" >&5
9362     cat conftest.$ac_ext >&5
9363   fi
9364   rm -f conftest* conftst*
9365
9366   # Do not use the global_symbol_pipe unless it works.
9367   if test "$pipe_works" = yes; then
9368     break
9369   else
9370     lt_cv_sys_global_symbol_pipe=
9371   fi
9372 done
9373
9374 fi
9375
9376 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9377   lt_cv_sys_global_symbol_to_cdecl=
9378 fi
9379 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9380   { echo "$as_me:$LINENO: result: failed" >&5
9381 echo "${ECHO_T}failed" >&6; }
9382 else
9383   { echo "$as_me:$LINENO: result: ok" >&5
9384 echo "${ECHO_T}ok" >&6; }
9385 fi
9386
9387
9388 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9389 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9390 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9391   echo $ECHO_N "(cached) $ECHO_C" >&6
9392 else
9393   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9394     libltdl_cv_preloaded_symbols=yes
9395   else
9396     libltdl_cv_preloaded_symbols=no
9397   fi
9398
9399 fi
9400 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9401 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9402 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9403
9404 cat >>confdefs.h <<\_ACEOF
9405 #define HAVE_PRELOADED_SYMBOLS 1
9406 _ACEOF
9407
9408 fi
9409
9410 LIBADD_DL=
9411
9412 ac_ext=c
9413 ac_cpp='$CPP $CPPFLAGS'
9414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9417
9418
9419 { echo "$as_me:$LINENO: checking for shl_load" >&5
9420 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9421 if test "${ac_cv_func_shl_load+set}" = set; then
9422   echo $ECHO_N "(cached) $ECHO_C" >&6
9423 else
9424   cat >conftest.$ac_ext <<_ACEOF
9425 /* confdefs.h.  */
9426 _ACEOF
9427 cat confdefs.h >>conftest.$ac_ext
9428 cat >>conftest.$ac_ext <<_ACEOF
9429 /* end confdefs.h.  */
9430 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9431    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9432 #define shl_load innocuous_shl_load
9433
9434 /* System header to define __stub macros and hopefully few prototypes,
9435     which can conflict with char shl_load (); below.
9436     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9437     <limits.h> exists even on freestanding compilers.  */
9438
9439 #ifdef __STDC__
9440 # include <limits.h>
9441 #else
9442 # include <assert.h>
9443 #endif
9444
9445 #undef shl_load
9446
9447 /* Override any GCC internal prototype to avoid an error.
9448    Use char because int might match the return type of a GCC
9449    builtin and then its argument prototype would still apply.  */
9450 #ifdef __cplusplus
9451 extern "C"
9452 #endif
9453 char shl_load ();
9454 /* The GNU C library defines this for functions which it implements
9455     to always fail with ENOSYS.  Some functions are actually named
9456     something starting with __ and the normal name is an alias.  */
9457 #if defined __stub_shl_load || defined __stub___shl_load
9458 choke me
9459 #endif
9460
9461 int
9462 main ()
9463 {
9464 return shl_load ();
9465   ;
9466   return 0;
9467 }
9468 _ACEOF
9469 rm -f conftest.$ac_objext conftest$ac_exeext
9470 if { (ac_try="$ac_link"
9471 case "(($ac_try" in
9472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473   *) ac_try_echo=$ac_try;;
9474 esac
9475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9476   (eval "$ac_link") 2>conftest.er1
9477   ac_status=$?
9478   grep -v '^ *+' conftest.er1 >conftest.err
9479   rm -f conftest.er1
9480   cat conftest.err >&5
9481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482   (exit $ac_status); } &&
9483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9484   { (case "(($ac_try" in
9485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486   *) ac_try_echo=$ac_try;;
9487 esac
9488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9489   (eval "$ac_try") 2>&5
9490   ac_status=$?
9491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492   (exit $ac_status); }; } &&
9493          { ac_try='test -s conftest$ac_exeext'
9494   { (case "(($ac_try" in
9495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9496   *) ac_try_echo=$ac_try;;
9497 esac
9498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9499   (eval "$ac_try") 2>&5
9500   ac_status=$?
9501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502   (exit $ac_status); }; }; then
9503   ac_cv_func_shl_load=yes
9504 else
9505   echo "$as_me: failed program was:" >&5
9506 sed 's/^/| /' conftest.$ac_ext >&5
9507
9508         ac_cv_func_shl_load=no
9509 fi
9510
9511 rm -f core conftest.err conftest.$ac_objext \
9512       conftest$ac_exeext conftest.$ac_ext
9513 fi
9514 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9515 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9516 if test $ac_cv_func_shl_load = yes; then
9517
9518 cat >>confdefs.h <<\_ACEOF
9519 #define HAVE_SHL_LOAD 1
9520 _ACEOF
9521
9522 else
9523   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9524 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9525 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9526   echo $ECHO_N "(cached) $ECHO_C" >&6
9527 else
9528   ac_check_lib_save_LIBS=$LIBS
9529 LIBS="-ldld  $LIBS"
9530 cat >conftest.$ac_ext <<_ACEOF
9531 /* confdefs.h.  */
9532 _ACEOF
9533 cat confdefs.h >>conftest.$ac_ext
9534 cat >>conftest.$ac_ext <<_ACEOF
9535 /* end confdefs.h.  */
9536
9537 /* Override any GCC internal prototype to avoid an error.
9538    Use char because int might match the return type of a GCC
9539    builtin and then its argument prototype would still apply.  */
9540 #ifdef __cplusplus
9541 extern "C"
9542 #endif
9543 char shl_load ();
9544 int
9545 main ()
9546 {
9547 return shl_load ();
9548   ;
9549   return 0;
9550 }
9551 _ACEOF
9552 rm -f conftest.$ac_objext conftest$ac_exeext
9553 if { (ac_try="$ac_link"
9554 case "(($ac_try" in
9555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9556   *) ac_try_echo=$ac_try;;
9557 esac
9558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9559   (eval "$ac_link") 2>conftest.er1
9560   ac_status=$?
9561   grep -v '^ *+' conftest.er1 >conftest.err
9562   rm -f conftest.er1
9563   cat conftest.err >&5
9564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565   (exit $ac_status); } &&
9566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9567   { (case "(($ac_try" in
9568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9569   *) ac_try_echo=$ac_try;;
9570 esac
9571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572   (eval "$ac_try") 2>&5
9573   ac_status=$?
9574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575   (exit $ac_status); }; } &&
9576          { ac_try='test -s conftest$ac_exeext'
9577   { (case "(($ac_try" in
9578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579   *) ac_try_echo=$ac_try;;
9580 esac
9581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582   (eval "$ac_try") 2>&5
9583   ac_status=$?
9584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585   (exit $ac_status); }; }; then
9586   ac_cv_lib_dld_shl_load=yes
9587 else
9588   echo "$as_me: failed program was:" >&5
9589 sed 's/^/| /' conftest.$ac_ext >&5
9590
9591         ac_cv_lib_dld_shl_load=no
9592 fi
9593
9594 rm -f core conftest.err conftest.$ac_objext \
9595       conftest$ac_exeext conftest.$ac_ext
9596 LIBS=$ac_check_lib_save_LIBS
9597 fi
9598 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9599 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9600 if test $ac_cv_lib_dld_shl_load = yes; then
9601
9602 cat >>confdefs.h <<\_ACEOF
9603 #define HAVE_SHL_LOAD 1
9604 _ACEOF
9605
9606         LIBADD_DL="$LIBADD_DL -ldld"
9607 else
9608   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9609 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9610 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9611   echo $ECHO_N "(cached) $ECHO_C" >&6
9612 else
9613   ac_check_lib_save_LIBS=$LIBS
9614 LIBS="-ldl  $LIBS"
9615 cat >conftest.$ac_ext <<_ACEOF
9616 /* confdefs.h.  */
9617 _ACEOF
9618 cat confdefs.h >>conftest.$ac_ext
9619 cat >>conftest.$ac_ext <<_ACEOF
9620 /* end confdefs.h.  */
9621
9622 /* Override any GCC internal prototype to avoid an error.
9623    Use char because int might match the return type of a GCC
9624    builtin and then its argument prototype would still apply.  */
9625 #ifdef __cplusplus
9626 extern "C"
9627 #endif
9628 char dlopen ();
9629 int
9630 main ()
9631 {
9632 return dlopen ();
9633   ;
9634   return 0;
9635 }
9636 _ACEOF
9637 rm -f conftest.$ac_objext conftest$ac_exeext
9638 if { (ac_try="$ac_link"
9639 case "(($ac_try" in
9640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641   *) ac_try_echo=$ac_try;;
9642 esac
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644   (eval "$ac_link") 2>conftest.er1
9645   ac_status=$?
9646   grep -v '^ *+' conftest.er1 >conftest.err
9647   rm -f conftest.er1
9648   cat conftest.err >&5
9649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650   (exit $ac_status); } &&
9651          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9652   { (case "(($ac_try" in
9653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9654   *) ac_try_echo=$ac_try;;
9655 esac
9656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9657   (eval "$ac_try") 2>&5
9658   ac_status=$?
9659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660   (exit $ac_status); }; } &&
9661          { ac_try='test -s conftest$ac_exeext'
9662   { (case "(($ac_try" in
9663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9664   *) ac_try_echo=$ac_try;;
9665 esac
9666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9667   (eval "$ac_try") 2>&5
9668   ac_status=$?
9669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670   (exit $ac_status); }; }; then
9671   ac_cv_lib_dl_dlopen=yes
9672 else
9673   echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.$ac_ext >&5
9675
9676         ac_cv_lib_dl_dlopen=no
9677 fi
9678
9679 rm -f core conftest.err conftest.$ac_objext \
9680       conftest$ac_exeext conftest.$ac_ext
9681 LIBS=$ac_check_lib_save_LIBS
9682 fi
9683 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9684 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9685 if test $ac_cv_lib_dl_dlopen = yes; then
9686
9687 cat >>confdefs.h <<\_ACEOF
9688 #define HAVE_LIBDL 1
9689 _ACEOF
9690
9691                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9692 else
9693   cat >conftest.$ac_ext <<_ACEOF
9694 /* confdefs.h.  */
9695 _ACEOF
9696 cat confdefs.h >>conftest.$ac_ext
9697 cat >>conftest.$ac_ext <<_ACEOF
9698 /* end confdefs.h.  */
9699 #if HAVE_DLFCN_H
9700 #  include <dlfcn.h>
9701 #endif
9702
9703 int
9704 main ()
9705 {
9706 dlopen(0, 0);
9707   ;
9708   return 0;
9709 }
9710 _ACEOF
9711 rm -f conftest.$ac_objext conftest$ac_exeext
9712 if { (ac_try="$ac_link"
9713 case "(($ac_try" in
9714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715   *) ac_try_echo=$ac_try;;
9716 esac
9717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718   (eval "$ac_link") 2>conftest.er1
9719   ac_status=$?
9720   grep -v '^ *+' conftest.er1 >conftest.err
9721   rm -f conftest.er1
9722   cat conftest.err >&5
9723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724   (exit $ac_status); } &&
9725          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9726   { (case "(($ac_try" in
9727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728   *) ac_try_echo=$ac_try;;
9729 esac
9730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731   (eval "$ac_try") 2>&5
9732   ac_status=$?
9733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734   (exit $ac_status); }; } &&
9735          { ac_try='test -s conftest$ac_exeext'
9736   { (case "(($ac_try" in
9737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738   *) ac_try_echo=$ac_try;;
9739 esac
9740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741   (eval "$ac_try") 2>&5
9742   ac_status=$?
9743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744   (exit $ac_status); }; }; then
9745
9746 cat >>confdefs.h <<\_ACEOF
9747 #define HAVE_LIBDL 1
9748 _ACEOF
9749  libltdl_cv_func_dlopen="yes"
9750 else
9751   echo "$as_me: failed program was:" >&5
9752 sed 's/^/| /' conftest.$ac_ext >&5
9753
9754         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9755 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9756 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9757   echo $ECHO_N "(cached) $ECHO_C" >&6
9758 else
9759   ac_check_lib_save_LIBS=$LIBS
9760 LIBS="-lsvld  $LIBS"
9761 cat >conftest.$ac_ext <<_ACEOF
9762 /* confdefs.h.  */
9763 _ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h.  */
9767
9768 /* Override any GCC internal prototype to avoid an error.
9769    Use char because int might match the return type of a GCC
9770    builtin and then its argument prototype would still apply.  */
9771 #ifdef __cplusplus
9772 extern "C"
9773 #endif
9774 char dlopen ();
9775 int
9776 main ()
9777 {
9778 return dlopen ();
9779   ;
9780   return 0;
9781 }
9782 _ACEOF
9783 rm -f conftest.$ac_objext conftest$ac_exeext
9784 if { (ac_try="$ac_link"
9785 case "(($ac_try" in
9786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9787   *) ac_try_echo=$ac_try;;
9788 esac
9789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9790   (eval "$ac_link") 2>conftest.er1
9791   ac_status=$?
9792   grep -v '^ *+' conftest.er1 >conftest.err
9793   rm -f conftest.er1
9794   cat conftest.err >&5
9795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796   (exit $ac_status); } &&
9797          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9798   { (case "(($ac_try" in
9799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800   *) ac_try_echo=$ac_try;;
9801 esac
9802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803   (eval "$ac_try") 2>&5
9804   ac_status=$?
9805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806   (exit $ac_status); }; } &&
9807          { ac_try='test -s conftest$ac_exeext'
9808   { (case "(($ac_try" in
9809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9810   *) ac_try_echo=$ac_try;;
9811 esac
9812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9813   (eval "$ac_try") 2>&5
9814   ac_status=$?
9815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816   (exit $ac_status); }; }; then
9817   ac_cv_lib_svld_dlopen=yes
9818 else
9819   echo "$as_me: failed program was:" >&5
9820 sed 's/^/| /' conftest.$ac_ext >&5
9821
9822         ac_cv_lib_svld_dlopen=no
9823 fi
9824
9825 rm -f core conftest.err conftest.$ac_objext \
9826       conftest$ac_exeext conftest.$ac_ext
9827 LIBS=$ac_check_lib_save_LIBS
9828 fi
9829 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9830 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9831 if test $ac_cv_lib_svld_dlopen = yes; then
9832
9833 cat >>confdefs.h <<\_ACEOF
9834 #define HAVE_LIBDL 1
9835 _ACEOF
9836
9837                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9838 else
9839   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9840 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9841 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9842   echo $ECHO_N "(cached) $ECHO_C" >&6
9843 else
9844   ac_check_lib_save_LIBS=$LIBS
9845 LIBS="-ldld  $LIBS"
9846 cat >conftest.$ac_ext <<_ACEOF
9847 /* confdefs.h.  */
9848 _ACEOF
9849 cat confdefs.h >>conftest.$ac_ext
9850 cat >>conftest.$ac_ext <<_ACEOF
9851 /* end confdefs.h.  */
9852
9853 /* Override any GCC internal prototype to avoid an error.
9854    Use char because int might match the return type of a GCC
9855    builtin and then its argument prototype would still apply.  */
9856 #ifdef __cplusplus
9857 extern "C"
9858 #endif
9859 char dld_link ();
9860 int
9861 main ()
9862 {
9863 return dld_link ();
9864   ;
9865   return 0;
9866 }
9867 _ACEOF
9868 rm -f conftest.$ac_objext conftest$ac_exeext
9869 if { (ac_try="$ac_link"
9870 case "(($ac_try" in
9871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872   *) ac_try_echo=$ac_try;;
9873 esac
9874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875   (eval "$ac_link") 2>conftest.er1
9876   ac_status=$?
9877   grep -v '^ *+' conftest.er1 >conftest.err
9878   rm -f conftest.er1
9879   cat conftest.err >&5
9880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881   (exit $ac_status); } &&
9882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9883   { (case "(($ac_try" in
9884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9885   *) ac_try_echo=$ac_try;;
9886 esac
9887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9888   (eval "$ac_try") 2>&5
9889   ac_status=$?
9890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891   (exit $ac_status); }; } &&
9892          { ac_try='test -s conftest$ac_exeext'
9893   { (case "(($ac_try" in
9894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895   *) ac_try_echo=$ac_try;;
9896 esac
9897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898   (eval "$ac_try") 2>&5
9899   ac_status=$?
9900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901   (exit $ac_status); }; }; then
9902   ac_cv_lib_dld_dld_link=yes
9903 else
9904   echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9906
9907         ac_cv_lib_dld_dld_link=no
9908 fi
9909
9910 rm -f core conftest.err conftest.$ac_objext \
9911       conftest$ac_exeext conftest.$ac_ext
9912 LIBS=$ac_check_lib_save_LIBS
9913 fi
9914 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9915 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9916 if test $ac_cv_lib_dld_dld_link = yes; then
9917
9918 cat >>confdefs.h <<\_ACEOF
9919 #define HAVE_DLD 1
9920 _ACEOF
9921
9922                 LIBADD_DL="$LIBADD_DL -ldld"
9923 else
9924   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9925 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9926 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9927   echo $ECHO_N "(cached) $ECHO_C" >&6
9928 else
9929   cat >conftest.$ac_ext <<_ACEOF
9930 /* confdefs.h.  */
9931 _ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h.  */
9935 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9936    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9937 #define _dyld_func_lookup innocuous__dyld_func_lookup
9938
9939 /* System header to define __stub macros and hopefully few prototypes,
9940     which can conflict with char _dyld_func_lookup (); below.
9941     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9942     <limits.h> exists even on freestanding compilers.  */
9943
9944 #ifdef __STDC__
9945 # include <limits.h>
9946 #else
9947 # include <assert.h>
9948 #endif
9949
9950 #undef _dyld_func_lookup
9951
9952 /* Override any GCC internal prototype to avoid an error.
9953    Use char because int might match the return type of a GCC
9954    builtin and then its argument prototype would still apply.  */
9955 #ifdef __cplusplus
9956 extern "C"
9957 #endif
9958 char _dyld_func_lookup ();
9959 /* The GNU C library defines this for functions which it implements
9960     to always fail with ENOSYS.  Some functions are actually named
9961     something starting with __ and the normal name is an alias.  */
9962 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9963 choke me
9964 #endif
9965
9966 int
9967 main ()
9968 {
9969 return _dyld_func_lookup ();
9970   ;
9971   return 0;
9972 }
9973 _ACEOF
9974 rm -f conftest.$ac_objext conftest$ac_exeext
9975 if { (ac_try="$ac_link"
9976 case "(($ac_try" in
9977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978   *) ac_try_echo=$ac_try;;
9979 esac
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981   (eval "$ac_link") 2>conftest.er1
9982   ac_status=$?
9983   grep -v '^ *+' conftest.er1 >conftest.err
9984   rm -f conftest.er1
9985   cat conftest.err >&5
9986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987   (exit $ac_status); } &&
9988          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9989   { (case "(($ac_try" in
9990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991   *) ac_try_echo=$ac_try;;
9992 esac
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994   (eval "$ac_try") 2>&5
9995   ac_status=$?
9996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997   (exit $ac_status); }; } &&
9998          { ac_try='test -s conftest$ac_exeext'
9999   { (case "(($ac_try" in
10000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10001   *) ac_try_echo=$ac_try;;
10002 esac
10003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10004   (eval "$ac_try") 2>&5
10005   ac_status=$?
10006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007   (exit $ac_status); }; }; then
10008   ac_cv_func__dyld_func_lookup=yes
10009 else
10010   echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10012
10013         ac_cv_func__dyld_func_lookup=no
10014 fi
10015
10016 rm -f core conftest.err conftest.$ac_objext \
10017       conftest$ac_exeext conftest.$ac_ext
10018 fi
10019 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10020 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10021 if test $ac_cv_func__dyld_func_lookup = yes; then
10022
10023 cat >>confdefs.h <<\_ACEOF
10024 #define HAVE_DYLD 1
10025 _ACEOF
10026
10027 fi
10028
10029
10030 fi
10031
10032
10033 fi
10034
10035
10036 fi
10037
10038 rm -f core conftest.err conftest.$ac_objext \
10039       conftest$ac_exeext conftest.$ac_ext
10040
10041 fi
10042
10043
10044 fi
10045
10046
10047 fi
10048
10049
10050 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10051 then
10052   lt_save_LIBS="$LIBS"
10053   LIBS="$LIBS $LIBADD_DL"
10054
10055 for ac_func in dlerror
10056 do
10057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10058 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10060 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10061   echo $ECHO_N "(cached) $ECHO_C" >&6
10062 else
10063   cat >conftest.$ac_ext <<_ACEOF
10064 /* confdefs.h.  */
10065 _ACEOF
10066 cat confdefs.h >>conftest.$ac_ext
10067 cat >>conftest.$ac_ext <<_ACEOF
10068 /* end confdefs.h.  */
10069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10070    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10071 #define $ac_func innocuous_$ac_func
10072
10073 /* System header to define __stub macros and hopefully few prototypes,
10074     which can conflict with char $ac_func (); below.
10075     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10076     <limits.h> exists even on freestanding compilers.  */
10077
10078 #ifdef __STDC__
10079 # include <limits.h>
10080 #else
10081 # include <assert.h>
10082 #endif
10083
10084 #undef $ac_func
10085
10086 /* Override any GCC internal prototype to avoid an error.
10087    Use char because int might match the return type of a GCC
10088    builtin and then its argument prototype would still apply.  */
10089 #ifdef __cplusplus
10090 extern "C"
10091 #endif
10092 char $ac_func ();
10093 /* The GNU C library defines this for functions which it implements
10094     to always fail with ENOSYS.  Some functions are actually named
10095     something starting with __ and the normal name is an alias.  */
10096 #if defined __stub_$ac_func || defined __stub___$ac_func
10097 choke me
10098 #endif
10099
10100 int
10101 main ()
10102 {
10103 return $ac_func ();
10104   ;
10105   return 0;
10106 }
10107 _ACEOF
10108 rm -f conftest.$ac_objext conftest$ac_exeext
10109 if { (ac_try="$ac_link"
10110 case "(($ac_try" in
10111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112   *) ac_try_echo=$ac_try;;
10113 esac
10114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115   (eval "$ac_link") 2>conftest.er1
10116   ac_status=$?
10117   grep -v '^ *+' conftest.er1 >conftest.err
10118   rm -f conftest.er1
10119   cat conftest.err >&5
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); } &&
10122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10123   { (case "(($ac_try" in
10124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125   *) ac_try_echo=$ac_try;;
10126 esac
10127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128   (eval "$ac_try") 2>&5
10129   ac_status=$?
10130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131   (exit $ac_status); }; } &&
10132          { ac_try='test -s conftest$ac_exeext'
10133   { (case "(($ac_try" in
10134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135   *) ac_try_echo=$ac_try;;
10136 esac
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138   (eval "$ac_try") 2>&5
10139   ac_status=$?
10140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141   (exit $ac_status); }; }; then
10142   eval "$as_ac_var=yes"
10143 else
10144   echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10146
10147         eval "$as_ac_var=no"
10148 fi
10149
10150 rm -f core conftest.err conftest.$ac_objext \
10151       conftest$ac_exeext conftest.$ac_ext
10152 fi
10153 ac_res=`eval echo '${'$as_ac_var'}'`
10154                { echo "$as_me:$LINENO: result: $ac_res" >&5
10155 echo "${ECHO_T}$ac_res" >&6; }
10156 if test `eval echo '${'$as_ac_var'}'` = yes; then
10157   cat >>confdefs.h <<_ACEOF
10158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10159 _ACEOF
10160
10161 fi
10162 done
10163
10164   LIBS="$lt_save_LIBS"
10165 fi
10166 ac_ext=c
10167 ac_cpp='$CPP $CPPFLAGS'
10168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10171
10172
10173
10174 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10175 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10176 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10177   echo $ECHO_N "(cached) $ECHO_C" >&6
10178 else
10179   ac_cv_sys_symbol_underscore=no
10180   cat > conftest.$ac_ext <<EOF
10181 void nm_test_func(){}
10182 int main(){nm_test_func;return 0;}
10183 EOF
10184   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10185   (eval $ac_compile) 2>&5
10186   ac_status=$?
10187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188   (exit $ac_status); }; then
10189     # Now try to grab the symbols.
10190     ac_nlist=conftest.nm
10191     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10192   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10193   ac_status=$?
10194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195   (exit $ac_status); } && test -s "$ac_nlist"; then
10196       # See whether the symbols have a leading underscore.
10197       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10198         ac_cv_sys_symbol_underscore=yes
10199       else
10200         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10201           :
10202         else
10203           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10204         fi
10205       fi
10206     else
10207       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10208     fi
10209   else
10210     echo "configure: failed program was:" >&5
10211     cat conftest.c >&5
10212   fi
10213   rm -rf conftest*
10214
10215 fi
10216 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10217 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10218
10219
10220 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10221   if test x"$libltdl_cv_func_dlopen" = xyes ||
10222      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10223         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10224 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10225 if test "${libltdl_cv_need_uscore+set}" = set; then
10226   echo $ECHO_N "(cached) $ECHO_C" >&6
10227 else
10228   libltdl_cv_need_uscore=unknown
10229           save_LIBS="$LIBS"
10230           LIBS="$LIBS $LIBADD_DL"
10231           if test "$cross_compiling" = yes; then :
10232   libltdl_cv_need_uscore=cross
10233 else
10234   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10235   lt_status=$lt_dlunknown
10236   cat > conftest.$ac_ext <<EOF
10237 #line 10237 "configure"
10238 #include "confdefs.h"
10239
10240 #if HAVE_DLFCN_H
10241 #include <dlfcn.h>
10242 #endif
10243
10244 #include <stdio.h>
10245
10246 #ifdef RTLD_GLOBAL
10247 #  define LT_DLGLOBAL           RTLD_GLOBAL
10248 #else
10249 #  ifdef DL_GLOBAL
10250 #    define LT_DLGLOBAL         DL_GLOBAL
10251 #  else
10252 #    define LT_DLGLOBAL         0
10253 #  endif
10254 #endif
10255
10256 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10257    find out it does not work in some platform. */
10258 #ifndef LT_DLLAZY_OR_NOW
10259 #  ifdef RTLD_LAZY
10260 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10261 #  else
10262 #    ifdef DL_LAZY
10263 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10264 #    else
10265 #      ifdef RTLD_NOW
10266 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10267 #      else
10268 #        ifdef DL_NOW
10269 #          define LT_DLLAZY_OR_NOW      DL_NOW
10270 #        else
10271 #          define LT_DLLAZY_OR_NOW      0
10272 #        endif
10273 #      endif
10274 #    endif
10275 #  endif
10276 #endif
10277
10278 #ifdef __cplusplus
10279 extern "C" void exit (int);
10280 #endif
10281
10282 void fnord() { int i=42;}
10283 int main ()
10284 {
10285   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10286   int status = $lt_dlunknown;
10287
10288   if (self)
10289     {
10290       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10291       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10292       /* dlclose (self); */
10293     }
10294   else
10295     puts (dlerror ());
10296
10297     exit (status);
10298 }
10299 EOF
10300   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10301   (eval $ac_link) 2>&5
10302   ac_status=$?
10303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10305     (./conftest; exit; ) >&5 2>/dev/null
10306     lt_status=$?
10307     case x$lt_status in
10308       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10309       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10310       x$lt_dlunknown|x*)  ;;
10311     esac
10312   else :
10313     # compilation failed
10314
10315   fi
10316 fi
10317 rm -fr conftest*
10318
10319           LIBS="$save_LIBS"
10320
10321 fi
10322 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10323 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10324   fi
10325 fi
10326
10327 if test x"$libltdl_cv_need_uscore" = xyes; then
10328
10329 cat >>confdefs.h <<\_ACEOF
10330 #define NEED_USCORE 1
10331 _ACEOF
10332
10333 fi
10334
10335
10336 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10337 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10338 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10339   echo $ECHO_N "(cached) $ECHO_C" >&6
10340 else
10341   # PORTME does your system automatically load deplibs for dlopen?
10342   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10343   # For now, we just catch OSes we know something about -- in the
10344   # future, we'll try test this programmatically.
10345   libltdl_cv_sys_dlopen_deplibs=unknown
10346   case "$host_os" in
10347   aix3*|aix4.1.*|aix4.2.*)
10348     # Unknown whether this is true for these versions of AIX, but
10349     # we want this `case' here to explicitly catch those versions.
10350     libltdl_cv_sys_dlopen_deplibs=unknown
10351     ;;
10352   aix[45]*)
10353     libltdl_cv_sys_dlopen_deplibs=yes
10354     ;;
10355   darwin*)
10356     # Assuming the user has installed a libdl from somewhere, this is true
10357     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10358     libltdl_cv_sys_dlopen_deplibs=yes
10359     ;;
10360   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10361     # GNU and its variants, using gnu ld.so (Glibc)
10362     libltdl_cv_sys_dlopen_deplibs=yes
10363     ;;
10364   hpux10*|hpux11*)
10365     libltdl_cv_sys_dlopen_deplibs=yes
10366     ;;
10367   interix*)
10368     libltdl_cv_sys_dlopen_deplibs=yes
10369     ;;
10370   irix[12345]*|irix6.[01]*)
10371     # Catch all versions of IRIX before 6.2, and indicate that we don't
10372     # know how it worked for any of those versions.
10373     libltdl_cv_sys_dlopen_deplibs=unknown
10374     ;;
10375   irix*)
10376     # The case above catches anything before 6.2, and it's known that
10377     # at 6.2 and later dlopen does load deplibs.
10378     libltdl_cv_sys_dlopen_deplibs=yes
10379     ;;
10380   netbsd*)
10381     libltdl_cv_sys_dlopen_deplibs=yes
10382     ;;
10383   openbsd*)
10384     libltdl_cv_sys_dlopen_deplibs=yes
10385     ;;
10386   osf[1234]*)
10387     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10388     # it did *not* use an RPATH in a shared library to find objects the
10389     # library depends on, so we explicitly say `no'.
10390     libltdl_cv_sys_dlopen_deplibs=no
10391     ;;
10392   osf5.0|osf5.0a|osf5.1)
10393     # dlopen *does* load deplibs and with the right loader patch applied
10394     # it even uses RPATH in a shared library to search for shared objects
10395     # that the library depends on, but there's no easy way to know if that
10396     # patch is installed.  Since this is the case, all we can really
10397     # say is unknown -- it depends on the patch being installed.  If
10398     # it is, this changes to `yes'.  Without it, it would be `no'.
10399     libltdl_cv_sys_dlopen_deplibs=unknown
10400     ;;
10401   osf*)
10402     # the two cases above should catch all versions of osf <= 5.1.  Read
10403     # the comments above for what we know about them.
10404     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10405     # is used to find them so we can finally say `yes'.
10406     libltdl_cv_sys_dlopen_deplibs=yes
10407     ;;
10408   solaris*)
10409     libltdl_cv_sys_dlopen_deplibs=yes
10410     ;;
10411   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10412     libltdl_cv_sys_dlopen_deplibs=yes
10413     ;;
10414   esac
10415
10416 fi
10417 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10418 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10419 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10420
10421 cat >>confdefs.h <<\_ACEOF
10422 #define LTDL_DLOPEN_DEPLIBS 1
10423 _ACEOF
10424
10425 fi
10426
10427
10428 for ac_header in argz.h
10429 do
10430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10432   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10435   echo $ECHO_N "(cached) $ECHO_C" >&6
10436 fi
10437 ac_res=`eval echo '${'$as_ac_Header'}'`
10438                { echo "$as_me:$LINENO: result: $ac_res" >&5
10439 echo "${ECHO_T}$ac_res" >&6; }
10440 else
10441   # Is the header compilable?
10442 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10444 cat >conftest.$ac_ext <<_ACEOF
10445 /* confdefs.h.  */
10446 _ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h.  */
10450 $ac_includes_default
10451 #include <$ac_header>
10452 _ACEOF
10453 rm -f conftest.$ac_objext
10454 if { (ac_try="$ac_compile"
10455 case "(($ac_try" in
10456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10457   *) ac_try_echo=$ac_try;;
10458 esac
10459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10460   (eval "$ac_compile") 2>conftest.er1
10461   ac_status=$?
10462   grep -v '^ *+' conftest.er1 >conftest.err
10463   rm -f conftest.er1
10464   cat conftest.err >&5
10465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466   (exit $ac_status); } &&
10467          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10468   { (case "(($ac_try" in
10469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470   *) ac_try_echo=$ac_try;;
10471 esac
10472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10473   (eval "$ac_try") 2>&5
10474   ac_status=$?
10475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476   (exit $ac_status); }; } &&
10477          { ac_try='test -s conftest.$ac_objext'
10478   { (case "(($ac_try" in
10479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10480   *) ac_try_echo=$ac_try;;
10481 esac
10482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10483   (eval "$ac_try") 2>&5
10484   ac_status=$?
10485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486   (exit $ac_status); }; }; then
10487   ac_header_compiler=yes
10488 else
10489   echo "$as_me: failed program was:" >&5
10490 sed 's/^/| /' conftest.$ac_ext >&5
10491
10492         ac_header_compiler=no
10493 fi
10494
10495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10496 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10497 echo "${ECHO_T}$ac_header_compiler" >&6; }
10498
10499 # Is the header present?
10500 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10501 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10502 cat >conftest.$ac_ext <<_ACEOF
10503 /* confdefs.h.  */
10504 _ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h.  */
10508 #include <$ac_header>
10509 _ACEOF
10510 if { (ac_try="$ac_cpp conftest.$ac_ext"
10511 case "(($ac_try" in
10512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513   *) ac_try_echo=$ac_try;;
10514 esac
10515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10517   ac_status=$?
10518   grep -v '^ *+' conftest.er1 >conftest.err
10519   rm -f conftest.er1
10520   cat conftest.err >&5
10521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522   (exit $ac_status); } >/dev/null; then
10523   if test -s conftest.err; then
10524     ac_cpp_err=$ac_c_preproc_warn_flag
10525     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10526   else
10527     ac_cpp_err=
10528   fi
10529 else
10530   ac_cpp_err=yes
10531 fi
10532 if test -z "$ac_cpp_err"; then
10533   ac_header_preproc=yes
10534 else
10535   echo "$as_me: failed program was:" >&5
10536 sed 's/^/| /' conftest.$ac_ext >&5
10537
10538   ac_header_preproc=no
10539 fi
10540
10541 rm -f conftest.err conftest.$ac_ext
10542 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10543 echo "${ECHO_T}$ac_header_preproc" >&6; }
10544
10545 # So?  What about this header?
10546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10547   yes:no: )
10548     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10550     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10552     ac_header_preproc=yes
10553     ;;
10554   no:yes:* )
10555     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10557     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10558 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10559     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10561     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10562 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10563     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10565     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10567     ( cat <<\_ASBOX
10568 ## ------------------------------------ ##
10569 ## Report this to http://llvm.org/bugs/ ##
10570 ## ------------------------------------ ##
10571 _ASBOX
10572      ) | sed "s/^/$as_me: WARNING:     /" >&2
10573     ;;
10574 esac
10575 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10578   echo $ECHO_N "(cached) $ECHO_C" >&6
10579 else
10580   eval "$as_ac_Header=\$ac_header_preproc"
10581 fi
10582 ac_res=`eval echo '${'$as_ac_Header'}'`
10583                { echo "$as_me:$LINENO: result: $ac_res" >&5
10584 echo "${ECHO_T}$ac_res" >&6; }
10585
10586 fi
10587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10588   cat >>confdefs.h <<_ACEOF
10589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10590 _ACEOF
10591
10592 fi
10593
10594 done
10595
10596
10597 { echo "$as_me:$LINENO: checking for error_t" >&5
10598 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10599 if test "${ac_cv_type_error_t+set}" = set; then
10600   echo $ECHO_N "(cached) $ECHO_C" >&6
10601 else
10602   cat >conftest.$ac_ext <<_ACEOF
10603 /* confdefs.h.  */
10604 _ACEOF
10605 cat confdefs.h >>conftest.$ac_ext
10606 cat >>conftest.$ac_ext <<_ACEOF
10607 /* end confdefs.h.  */
10608 #if HAVE_ARGZ_H
10609 #  include <argz.h>
10610 #endif
10611
10612 typedef error_t ac__type_new_;
10613 int
10614 main ()
10615 {
10616 if ((ac__type_new_ *) 0)
10617   return 0;
10618 if (sizeof (ac__type_new_))
10619   return 0;
10620   ;
10621   return 0;
10622 }
10623 _ACEOF
10624 rm -f conftest.$ac_objext
10625 if { (ac_try="$ac_compile"
10626 case "(($ac_try" in
10627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628   *) ac_try_echo=$ac_try;;
10629 esac
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631   (eval "$ac_compile") 2>conftest.er1
10632   ac_status=$?
10633   grep -v '^ *+' conftest.er1 >conftest.err
10634   rm -f conftest.er1
10635   cat conftest.err >&5
10636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637   (exit $ac_status); } &&
10638          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10639   { (case "(($ac_try" in
10640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641   *) ac_try_echo=$ac_try;;
10642 esac
10643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644   (eval "$ac_try") 2>&5
10645   ac_status=$?
10646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647   (exit $ac_status); }; } &&
10648          { ac_try='test -s conftest.$ac_objext'
10649   { (case "(($ac_try" in
10650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651   *) ac_try_echo=$ac_try;;
10652 esac
10653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10654   (eval "$ac_try") 2>&5
10655   ac_status=$?
10656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657   (exit $ac_status); }; }; then
10658   ac_cv_type_error_t=yes
10659 else
10660   echo "$as_me: failed program was:" >&5
10661 sed 's/^/| /' conftest.$ac_ext >&5
10662
10663         ac_cv_type_error_t=no
10664 fi
10665
10666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10667 fi
10668 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10669 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10670 if test $ac_cv_type_error_t = yes; then
10671
10672 cat >>confdefs.h <<_ACEOF
10673 #define HAVE_ERROR_T 1
10674 _ACEOF
10675
10676
10677 else
10678
10679 cat >>confdefs.h <<\_ACEOF
10680 #define error_t int
10681 _ACEOF
10682
10683 fi
10684
10685
10686
10687
10688
10689
10690
10691 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10692 do
10693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10694 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10697   echo $ECHO_N "(cached) $ECHO_C" >&6
10698 else
10699   cat >conftest.$ac_ext <<_ACEOF
10700 /* confdefs.h.  */
10701 _ACEOF
10702 cat confdefs.h >>conftest.$ac_ext
10703 cat >>conftest.$ac_ext <<_ACEOF
10704 /* end confdefs.h.  */
10705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10706    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10707 #define $ac_func innocuous_$ac_func
10708
10709 /* System header to define __stub macros and hopefully few prototypes,
10710     which can conflict with char $ac_func (); below.
10711     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10712     <limits.h> exists even on freestanding compilers.  */
10713
10714 #ifdef __STDC__
10715 # include <limits.h>
10716 #else
10717 # include <assert.h>
10718 #endif
10719
10720 #undef $ac_func
10721
10722 /* Override any GCC internal prototype to avoid an error.
10723    Use char because int might match the return type of a GCC
10724    builtin and then its argument prototype would still apply.  */
10725 #ifdef __cplusplus
10726 extern "C"
10727 #endif
10728 char $ac_func ();
10729 /* The GNU C library defines this for functions which it implements
10730     to always fail with ENOSYS.  Some functions are actually named
10731     something starting with __ and the normal name is an alias.  */
10732 #if defined __stub_$ac_func || defined __stub___$ac_func
10733 choke me
10734 #endif
10735
10736 int
10737 main ()
10738 {
10739 return $ac_func ();
10740   ;
10741   return 0;
10742 }
10743 _ACEOF
10744 rm -f conftest.$ac_objext conftest$ac_exeext
10745 if { (ac_try="$ac_link"
10746 case "(($ac_try" in
10747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748   *) ac_try_echo=$ac_try;;
10749 esac
10750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751   (eval "$ac_link") 2>conftest.er1
10752   ac_status=$?
10753   grep -v '^ *+' conftest.er1 >conftest.err
10754   rm -f conftest.er1
10755   cat conftest.err >&5
10756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757   (exit $ac_status); } &&
10758          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10759   { (case "(($ac_try" in
10760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10761   *) ac_try_echo=$ac_try;;
10762 esac
10763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10764   (eval "$ac_try") 2>&5
10765   ac_status=$?
10766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767   (exit $ac_status); }; } &&
10768          { ac_try='test -s conftest$ac_exeext'
10769   { (case "(($ac_try" in
10770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10771   *) ac_try_echo=$ac_try;;
10772 esac
10773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10774   (eval "$ac_try") 2>&5
10775   ac_status=$?
10776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777   (exit $ac_status); }; }; then
10778   eval "$as_ac_var=yes"
10779 else
10780   echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10782
10783         eval "$as_ac_var=no"
10784 fi
10785
10786 rm -f core conftest.err conftest.$ac_objext \
10787       conftest$ac_exeext conftest.$ac_ext
10788 fi
10789 ac_res=`eval echo '${'$as_ac_var'}'`
10790                { echo "$as_me:$LINENO: result: $ac_res" >&5
10791 echo "${ECHO_T}$ac_res" >&6; }
10792 if test `eval echo '${'$as_ac_var'}'` = yes; then
10793   cat >>confdefs.h <<_ACEOF
10794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10795 _ACEOF
10796
10797 fi
10798 done
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10828                   stdio.h unistd.h
10829 do
10830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10832   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10835   echo $ECHO_N "(cached) $ECHO_C" >&6
10836 fi
10837 ac_res=`eval echo '${'$as_ac_Header'}'`
10838                { echo "$as_me:$LINENO: result: $ac_res" >&5
10839 echo "${ECHO_T}$ac_res" >&6; }
10840 else
10841   # Is the header compilable?
10842 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10844 cat >conftest.$ac_ext <<_ACEOF
10845 /* confdefs.h.  */
10846 _ACEOF
10847 cat confdefs.h >>conftest.$ac_ext
10848 cat >>conftest.$ac_ext <<_ACEOF
10849 /* end confdefs.h.  */
10850 $ac_includes_default
10851 #include <$ac_header>
10852 _ACEOF
10853 rm -f conftest.$ac_objext
10854 if { (ac_try="$ac_compile"
10855 case "(($ac_try" in
10856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857   *) ac_try_echo=$ac_try;;
10858 esac
10859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860   (eval "$ac_compile") 2>conftest.er1
10861   ac_status=$?
10862   grep -v '^ *+' conftest.er1 >conftest.err
10863   rm -f conftest.er1
10864   cat conftest.err >&5
10865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866   (exit $ac_status); } &&
10867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10868   { (case "(($ac_try" in
10869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870   *) ac_try_echo=$ac_try;;
10871 esac
10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873   (eval "$ac_try") 2>&5
10874   ac_status=$?
10875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876   (exit $ac_status); }; } &&
10877          { ac_try='test -s conftest.$ac_objext'
10878   { (case "(($ac_try" in
10879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880   *) ac_try_echo=$ac_try;;
10881 esac
10882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883   (eval "$ac_try") 2>&5
10884   ac_status=$?
10885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886   (exit $ac_status); }; }; then
10887   ac_header_compiler=yes
10888 else
10889   echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10891
10892         ac_header_compiler=no
10893 fi
10894
10895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10897 echo "${ECHO_T}$ac_header_compiler" >&6; }
10898
10899 # Is the header present?
10900 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10902 cat >conftest.$ac_ext <<_ACEOF
10903 /* confdefs.h.  */
10904 _ACEOF
10905 cat confdefs.h >>conftest.$ac_ext
10906 cat >>conftest.$ac_ext <<_ACEOF
10907 /* end confdefs.h.  */
10908 #include <$ac_header>
10909 _ACEOF
10910 if { (ac_try="$ac_cpp conftest.$ac_ext"
10911 case "(($ac_try" in
10912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913   *) ac_try_echo=$ac_try;;
10914 esac
10915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10916   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10917   ac_status=$?
10918   grep -v '^ *+' conftest.er1 >conftest.err
10919   rm -f conftest.er1
10920   cat conftest.err >&5
10921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922   (exit $ac_status); } >/dev/null; then
10923   if test -s conftest.err; then
10924     ac_cpp_err=$ac_c_preproc_warn_flag
10925     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10926   else
10927     ac_cpp_err=
10928   fi
10929 else
10930   ac_cpp_err=yes
10931 fi
10932 if test -z "$ac_cpp_err"; then
10933   ac_header_preproc=yes
10934 else
10935   echo "$as_me: failed program was:" >&5
10936 sed 's/^/| /' conftest.$ac_ext >&5
10937
10938   ac_header_preproc=no
10939 fi
10940
10941 rm -f conftest.err conftest.$ac_ext
10942 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10943 echo "${ECHO_T}$ac_header_preproc" >&6; }
10944
10945 # So?  What about this header?
10946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10947   yes:no: )
10948     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10950     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10952     ac_header_preproc=yes
10953     ;;
10954   no:yes:* )
10955     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10957     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10958 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10959     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10960 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10961     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10962 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10963     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10965     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10966 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10967     ( cat <<\_ASBOX
10968 ## ------------------------------------ ##
10969 ## Report this to http://llvm.org/bugs/ ##
10970 ## ------------------------------------ ##
10971 _ASBOX
10972      ) | sed "s/^/$as_me: WARNING:     /" >&2
10973     ;;
10974 esac
10975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10978   echo $ECHO_N "(cached) $ECHO_C" >&6
10979 else
10980   eval "$as_ac_Header=\$ac_header_preproc"
10981 fi
10982 ac_res=`eval echo '${'$as_ac_Header'}'`
10983                { echo "$as_me:$LINENO: result: $ac_res" >&5
10984 echo "${ECHO_T}$ac_res" >&6; }
10985
10986 fi
10987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10988   cat >>confdefs.h <<_ACEOF
10989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10990 _ACEOF
10991
10992 fi
10993
10994 done
10995
10996
10997
10998
10999
11000 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11001 do
11002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11004   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11007   echo $ECHO_N "(cached) $ECHO_C" >&6
11008 fi
11009 ac_res=`eval echo '${'$as_ac_Header'}'`
11010                { echo "$as_me:$LINENO: result: $ac_res" >&5
11011 echo "${ECHO_T}$ac_res" >&6; }
11012 else
11013   # Is the header compilable?
11014 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11015 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11016 cat >conftest.$ac_ext <<_ACEOF
11017 /* confdefs.h.  */
11018 _ACEOF
11019 cat confdefs.h >>conftest.$ac_ext
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h.  */
11022 $ac_includes_default
11023 #include <$ac_header>
11024 _ACEOF
11025 rm -f conftest.$ac_objext
11026 if { (ac_try="$ac_compile"
11027 case "(($ac_try" in
11028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029   *) ac_try_echo=$ac_try;;
11030 esac
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032   (eval "$ac_compile") 2>conftest.er1
11033   ac_status=$?
11034   grep -v '^ *+' conftest.er1 >conftest.err
11035   rm -f conftest.er1
11036   cat conftest.err >&5
11037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038   (exit $ac_status); } &&
11039          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11040   { (case "(($ac_try" in
11041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042   *) ac_try_echo=$ac_try;;
11043 esac
11044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045   (eval "$ac_try") 2>&5
11046   ac_status=$?
11047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048   (exit $ac_status); }; } &&
11049          { ac_try='test -s conftest.$ac_objext'
11050   { (case "(($ac_try" in
11051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052   *) ac_try_echo=$ac_try;;
11053 esac
11054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055   (eval "$ac_try") 2>&5
11056   ac_status=$?
11057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058   (exit $ac_status); }; }; then
11059   ac_header_compiler=yes
11060 else
11061   echo "$as_me: failed program was:" >&5
11062 sed 's/^/| /' conftest.$ac_ext >&5
11063
11064         ac_header_compiler=no
11065 fi
11066
11067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11069 echo "${ECHO_T}$ac_header_compiler" >&6; }
11070
11071 # Is the header present?
11072 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11074 cat >conftest.$ac_ext <<_ACEOF
11075 /* confdefs.h.  */
11076 _ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h.  */
11080 #include <$ac_header>
11081 _ACEOF
11082 if { (ac_try="$ac_cpp conftest.$ac_ext"
11083 case "(($ac_try" in
11084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085   *) ac_try_echo=$ac_try;;
11086 esac
11087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11088   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11089   ac_status=$?
11090   grep -v '^ *+' conftest.er1 >conftest.err
11091   rm -f conftest.er1
11092   cat conftest.err >&5
11093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094   (exit $ac_status); } >/dev/null; then
11095   if test -s conftest.err; then
11096     ac_cpp_err=$ac_c_preproc_warn_flag
11097     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11098   else
11099     ac_cpp_err=
11100   fi
11101 else
11102   ac_cpp_err=yes
11103 fi
11104 if test -z "$ac_cpp_err"; then
11105   ac_header_preproc=yes
11106 else
11107   echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11109
11110   ac_header_preproc=no
11111 fi
11112
11113 rm -f conftest.err conftest.$ac_ext
11114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11115 echo "${ECHO_T}$ac_header_preproc" >&6; }
11116
11117 # So?  What about this header?
11118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11119   yes:no: )
11120     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11122     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11124     ac_header_preproc=yes
11125     ;;
11126   no:yes:* )
11127     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11129     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11130 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11131     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11133     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11134 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11135     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11137     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11139     ( cat <<\_ASBOX
11140 ## ------------------------------------ ##
11141 ## Report this to http://llvm.org/bugs/ ##
11142 ## ------------------------------------ ##
11143 _ASBOX
11144      ) | sed "s/^/$as_me: WARNING:     /" >&2
11145     ;;
11146 esac
11147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11150   echo $ECHO_N "(cached) $ECHO_C" >&6
11151 else
11152   eval "$as_ac_Header=\$ac_header_preproc"
11153 fi
11154 ac_res=`eval echo '${'$as_ac_Header'}'`
11155                { echo "$as_me:$LINENO: result: $ac_res" >&5
11156 echo "${ECHO_T}$ac_res" >&6; }
11157
11158 fi
11159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11160   cat >>confdefs.h <<_ACEOF
11161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11162 _ACEOF
11163
11164 fi
11165
11166 done
11167
11168
11169
11170 for ac_header in string.h strings.h
11171 do
11172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11174   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11177   echo $ECHO_N "(cached) $ECHO_C" >&6
11178 fi
11179 ac_res=`eval echo '${'$as_ac_Header'}'`
11180                { echo "$as_me:$LINENO: result: $ac_res" >&5
11181 echo "${ECHO_T}$ac_res" >&6; }
11182 else
11183   # Is the header compilable?
11184 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11186 cat >conftest.$ac_ext <<_ACEOF
11187 /* confdefs.h.  */
11188 _ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h.  */
11192 $ac_includes_default
11193 #include <$ac_header>
11194 _ACEOF
11195 rm -f conftest.$ac_objext
11196 if { (ac_try="$ac_compile"
11197 case "(($ac_try" in
11198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199   *) ac_try_echo=$ac_try;;
11200 esac
11201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11202   (eval "$ac_compile") 2>conftest.er1
11203   ac_status=$?
11204   grep -v '^ *+' conftest.er1 >conftest.err
11205   rm -f conftest.er1
11206   cat conftest.err >&5
11207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208   (exit $ac_status); } &&
11209          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11210   { (case "(($ac_try" in
11211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212   *) ac_try_echo=$ac_try;;
11213 esac
11214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11215   (eval "$ac_try") 2>&5
11216   ac_status=$?
11217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218   (exit $ac_status); }; } &&
11219          { ac_try='test -s conftest.$ac_objext'
11220   { (case "(($ac_try" in
11221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222   *) ac_try_echo=$ac_try;;
11223 esac
11224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225   (eval "$ac_try") 2>&5
11226   ac_status=$?
11227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228   (exit $ac_status); }; }; then
11229   ac_header_compiler=yes
11230 else
11231   echo "$as_me: failed program was:" >&5
11232 sed 's/^/| /' conftest.$ac_ext >&5
11233
11234         ac_header_compiler=no
11235 fi
11236
11237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11238 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11239 echo "${ECHO_T}$ac_header_compiler" >&6; }
11240
11241 # Is the header present?
11242 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11244 cat >conftest.$ac_ext <<_ACEOF
11245 /* confdefs.h.  */
11246 _ACEOF
11247 cat confdefs.h >>conftest.$ac_ext
11248 cat >>conftest.$ac_ext <<_ACEOF
11249 /* end confdefs.h.  */
11250 #include <$ac_header>
11251 _ACEOF
11252 if { (ac_try="$ac_cpp conftest.$ac_ext"
11253 case "(($ac_try" in
11254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255   *) ac_try_echo=$ac_try;;
11256 esac
11257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11259   ac_status=$?
11260   grep -v '^ *+' conftest.er1 >conftest.err
11261   rm -f conftest.er1
11262   cat conftest.err >&5
11263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); } >/dev/null; then
11265   if test -s conftest.err; then
11266     ac_cpp_err=$ac_c_preproc_warn_flag
11267     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11268   else
11269     ac_cpp_err=
11270   fi
11271 else
11272   ac_cpp_err=yes
11273 fi
11274 if test -z "$ac_cpp_err"; then
11275   ac_header_preproc=yes
11276 else
11277   echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11279
11280   ac_header_preproc=no
11281 fi
11282
11283 rm -f conftest.err conftest.$ac_ext
11284 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11285 echo "${ECHO_T}$ac_header_preproc" >&6; }
11286
11287 # So?  What about this header?
11288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11289   yes:no: )
11290     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11292     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11294     ac_header_preproc=yes
11295     ;;
11296   no:yes:* )
11297     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11299     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11300 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11301     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11303     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11304 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11305     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11307     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11309     ( cat <<\_ASBOX
11310 ## ------------------------------------ ##
11311 ## Report this to http://llvm.org/bugs/ ##
11312 ## ------------------------------------ ##
11313 _ASBOX
11314      ) | sed "s/^/$as_me: WARNING:     /" >&2
11315     ;;
11316 esac
11317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11320   echo $ECHO_N "(cached) $ECHO_C" >&6
11321 else
11322   eval "$as_ac_Header=\$ac_header_preproc"
11323 fi
11324 ac_res=`eval echo '${'$as_ac_Header'}'`
11325                { echo "$as_me:$LINENO: result: $ac_res" >&5
11326 echo "${ECHO_T}$ac_res" >&6; }
11327
11328 fi
11329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11330   cat >>confdefs.h <<_ACEOF
11331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11332 _ACEOF
11333  break
11334 fi
11335
11336 done
11337
11338
11339
11340
11341 for ac_func in strchr index
11342 do
11343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11344 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11347   echo $ECHO_N "(cached) $ECHO_C" >&6
11348 else
11349   cat >conftest.$ac_ext <<_ACEOF
11350 /* confdefs.h.  */
11351 _ACEOF
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h.  */
11355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11356    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11357 #define $ac_func innocuous_$ac_func
11358
11359 /* System header to define __stub macros and hopefully few prototypes,
11360     which can conflict with char $ac_func (); below.
11361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11362     <limits.h> exists even on freestanding compilers.  */
11363
11364 #ifdef __STDC__
11365 # include <limits.h>
11366 #else
11367 # include <assert.h>
11368 #endif
11369
11370 #undef $ac_func
11371
11372 /* Override any GCC internal prototype to avoid an error.
11373    Use char because int might match the return type of a GCC
11374    builtin and then its argument prototype would still apply.  */
11375 #ifdef __cplusplus
11376 extern "C"
11377 #endif
11378 char $ac_func ();
11379 /* The GNU C library defines this for functions which it implements
11380     to always fail with ENOSYS.  Some functions are actually named
11381     something starting with __ and the normal name is an alias.  */
11382 #if defined __stub_$ac_func || defined __stub___$ac_func
11383 choke me
11384 #endif
11385
11386 int
11387 main ()
11388 {
11389 return $ac_func ();
11390   ;
11391   return 0;
11392 }
11393 _ACEOF
11394 rm -f conftest.$ac_objext conftest$ac_exeext
11395 if { (ac_try="$ac_link"
11396 case "(($ac_try" in
11397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398   *) ac_try_echo=$ac_try;;
11399 esac
11400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11401   (eval "$ac_link") 2>conftest.er1
11402   ac_status=$?
11403   grep -v '^ *+' conftest.er1 >conftest.err
11404   rm -f conftest.er1
11405   cat conftest.err >&5
11406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407   (exit $ac_status); } &&
11408          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11409   { (case "(($ac_try" in
11410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11411   *) ac_try_echo=$ac_try;;
11412 esac
11413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11414   (eval "$ac_try") 2>&5
11415   ac_status=$?
11416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417   (exit $ac_status); }; } &&
11418          { ac_try='test -s conftest$ac_exeext'
11419   { (case "(($ac_try" in
11420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421   *) ac_try_echo=$ac_try;;
11422 esac
11423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11424   (eval "$ac_try") 2>&5
11425   ac_status=$?
11426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427   (exit $ac_status); }; }; then
11428   eval "$as_ac_var=yes"
11429 else
11430   echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11432
11433         eval "$as_ac_var=no"
11434 fi
11435
11436 rm -f core conftest.err conftest.$ac_objext \
11437       conftest$ac_exeext conftest.$ac_ext
11438 fi
11439 ac_res=`eval echo '${'$as_ac_var'}'`
11440                { echo "$as_me:$LINENO: result: $ac_res" >&5
11441 echo "${ECHO_T}$ac_res" >&6; }
11442 if test `eval echo '${'$as_ac_var'}'` = yes; then
11443   cat >>confdefs.h <<_ACEOF
11444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11445 _ACEOF
11446  break
11447 fi
11448 done
11449
11450
11451
11452 for ac_func in strrchr rindex
11453 do
11454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11455 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11457 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11458   echo $ECHO_N "(cached) $ECHO_C" >&6
11459 else
11460   cat >conftest.$ac_ext <<_ACEOF
11461 /* confdefs.h.  */
11462 _ACEOF
11463 cat confdefs.h >>conftest.$ac_ext
11464 cat >>conftest.$ac_ext <<_ACEOF
11465 /* end confdefs.h.  */
11466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11467    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11468 #define $ac_func innocuous_$ac_func
11469
11470 /* System header to define __stub macros and hopefully few prototypes,
11471     which can conflict with char $ac_func (); below.
11472     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11473     <limits.h> exists even on freestanding compilers.  */
11474
11475 #ifdef __STDC__
11476 # include <limits.h>
11477 #else
11478 # include <assert.h>
11479 #endif
11480
11481 #undef $ac_func
11482
11483 /* Override any GCC internal prototype to avoid an error.
11484    Use char because int might match the return type of a GCC
11485    builtin and then its argument prototype would still apply.  */
11486 #ifdef __cplusplus
11487 extern "C"
11488 #endif
11489 char $ac_func ();
11490 /* The GNU C library defines this for functions which it implements
11491     to always fail with ENOSYS.  Some functions are actually named
11492     something starting with __ and the normal name is an alias.  */
11493 #if defined __stub_$ac_func || defined __stub___$ac_func
11494 choke me
11495 #endif
11496
11497 int
11498 main ()
11499 {
11500 return $ac_func ();
11501   ;
11502   return 0;
11503 }
11504 _ACEOF
11505 rm -f conftest.$ac_objext conftest$ac_exeext
11506 if { (ac_try="$ac_link"
11507 case "(($ac_try" in
11508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509   *) ac_try_echo=$ac_try;;
11510 esac
11511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512   (eval "$ac_link") 2>conftest.er1
11513   ac_status=$?
11514   grep -v '^ *+' conftest.er1 >conftest.err
11515   rm -f conftest.er1
11516   cat conftest.err >&5
11517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518   (exit $ac_status); } &&
11519          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11520   { (case "(($ac_try" in
11521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522   *) ac_try_echo=$ac_try;;
11523 esac
11524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525   (eval "$ac_try") 2>&5
11526   ac_status=$?
11527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528   (exit $ac_status); }; } &&
11529          { ac_try='test -s conftest$ac_exeext'
11530   { (case "(($ac_try" in
11531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11532   *) ac_try_echo=$ac_try;;
11533 esac
11534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11535   (eval "$ac_try") 2>&5
11536   ac_status=$?
11537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538   (exit $ac_status); }; }; then
11539   eval "$as_ac_var=yes"
11540 else
11541   echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.$ac_ext >&5
11543
11544         eval "$as_ac_var=no"
11545 fi
11546
11547 rm -f core conftest.err conftest.$ac_objext \
11548       conftest$ac_exeext conftest.$ac_ext
11549 fi
11550 ac_res=`eval echo '${'$as_ac_var'}'`
11551                { echo "$as_me:$LINENO: result: $ac_res" >&5
11552 echo "${ECHO_T}$ac_res" >&6; }
11553 if test `eval echo '${'$as_ac_var'}'` = yes; then
11554   cat >>confdefs.h <<_ACEOF
11555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11556 _ACEOF
11557  break
11558 fi
11559 done
11560
11561
11562
11563 for ac_func in memcpy bcopy
11564 do
11565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11566 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11568 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11569   echo $ECHO_N "(cached) $ECHO_C" >&6
11570 else
11571   cat >conftest.$ac_ext <<_ACEOF
11572 /* confdefs.h.  */
11573 _ACEOF
11574 cat confdefs.h >>conftest.$ac_ext
11575 cat >>conftest.$ac_ext <<_ACEOF
11576 /* end confdefs.h.  */
11577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11579 #define $ac_func innocuous_$ac_func
11580
11581 /* System header to define __stub macros and hopefully few prototypes,
11582     which can conflict with char $ac_func (); below.
11583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11584     <limits.h> exists even on freestanding compilers.  */
11585
11586 #ifdef __STDC__
11587 # include <limits.h>
11588 #else
11589 # include <assert.h>
11590 #endif
11591
11592 #undef $ac_func
11593
11594 /* Override any GCC internal prototype to avoid an error.
11595    Use char because int might match the return type of a GCC
11596    builtin and then its argument prototype would still apply.  */
11597 #ifdef __cplusplus
11598 extern "C"
11599 #endif
11600 char $ac_func ();
11601 /* The GNU C library defines this for functions which it implements
11602     to always fail with ENOSYS.  Some functions are actually named
11603     something starting with __ and the normal name is an alias.  */
11604 #if defined __stub_$ac_func || defined __stub___$ac_func
11605 choke me
11606 #endif
11607
11608 int
11609 main ()
11610 {
11611 return $ac_func ();
11612   ;
11613   return 0;
11614 }
11615 _ACEOF
11616 rm -f conftest.$ac_objext conftest$ac_exeext
11617 if { (ac_try="$ac_link"
11618 case "(($ac_try" in
11619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620   *) ac_try_echo=$ac_try;;
11621 esac
11622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11623   (eval "$ac_link") 2>conftest.er1
11624   ac_status=$?
11625   grep -v '^ *+' conftest.er1 >conftest.err
11626   rm -f conftest.er1
11627   cat conftest.err >&5
11628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629   (exit $ac_status); } &&
11630          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11631   { (case "(($ac_try" in
11632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11633   *) ac_try_echo=$ac_try;;
11634 esac
11635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11636   (eval "$ac_try") 2>&5
11637   ac_status=$?
11638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639   (exit $ac_status); }; } &&
11640          { ac_try='test -s conftest$ac_exeext'
11641   { (case "(($ac_try" in
11642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11643   *) ac_try_echo=$ac_try;;
11644 esac
11645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11646   (eval "$ac_try") 2>&5
11647   ac_status=$?
11648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649   (exit $ac_status); }; }; then
11650   eval "$as_ac_var=yes"
11651 else
11652   echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11654
11655         eval "$as_ac_var=no"
11656 fi
11657
11658 rm -f core conftest.err conftest.$ac_objext \
11659       conftest$ac_exeext conftest.$ac_ext
11660 fi
11661 ac_res=`eval echo '${'$as_ac_var'}'`
11662                { echo "$as_me:$LINENO: result: $ac_res" >&5
11663 echo "${ECHO_T}$ac_res" >&6; }
11664 if test `eval echo '${'$as_ac_var'}'` = yes; then
11665   cat >>confdefs.h <<_ACEOF
11666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11667 _ACEOF
11668  break
11669 fi
11670 done
11671
11672
11673
11674 for ac_func in memmove strcmp
11675 do
11676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11677 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11679 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11680   echo $ECHO_N "(cached) $ECHO_C" >&6
11681 else
11682   cat >conftest.$ac_ext <<_ACEOF
11683 /* confdefs.h.  */
11684 _ACEOF
11685 cat confdefs.h >>conftest.$ac_ext
11686 cat >>conftest.$ac_ext <<_ACEOF
11687 /* end confdefs.h.  */
11688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11689    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11690 #define $ac_func innocuous_$ac_func
11691
11692 /* System header to define __stub macros and hopefully few prototypes,
11693     which can conflict with char $ac_func (); below.
11694     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11695     <limits.h> exists even on freestanding compilers.  */
11696
11697 #ifdef __STDC__
11698 # include <limits.h>
11699 #else
11700 # include <assert.h>
11701 #endif
11702
11703 #undef $ac_func
11704
11705 /* Override any GCC internal prototype to avoid an error.
11706    Use char because int might match the return type of a GCC
11707    builtin and then its argument prototype would still apply.  */
11708 #ifdef __cplusplus
11709 extern "C"
11710 #endif
11711 char $ac_func ();
11712 /* The GNU C library defines this for functions which it implements
11713     to always fail with ENOSYS.  Some functions are actually named
11714     something starting with __ and the normal name is an alias.  */
11715 #if defined __stub_$ac_func || defined __stub___$ac_func
11716 choke me
11717 #endif
11718
11719 int
11720 main ()
11721 {
11722 return $ac_func ();
11723   ;
11724   return 0;
11725 }
11726 _ACEOF
11727 rm -f conftest.$ac_objext conftest$ac_exeext
11728 if { (ac_try="$ac_link"
11729 case "(($ac_try" in
11730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731   *) ac_try_echo=$ac_try;;
11732 esac
11733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734   (eval "$ac_link") 2>conftest.er1
11735   ac_status=$?
11736   grep -v '^ *+' conftest.er1 >conftest.err
11737   rm -f conftest.er1
11738   cat conftest.err >&5
11739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740   (exit $ac_status); } &&
11741          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11742   { (case "(($ac_try" in
11743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11744   *) ac_try_echo=$ac_try;;
11745 esac
11746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11747   (eval "$ac_try") 2>&5
11748   ac_status=$?
11749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750   (exit $ac_status); }; } &&
11751          { ac_try='test -s conftest$ac_exeext'
11752   { (case "(($ac_try" in
11753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11754   *) ac_try_echo=$ac_try;;
11755 esac
11756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11757   (eval "$ac_try") 2>&5
11758   ac_status=$?
11759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760   (exit $ac_status); }; }; then
11761   eval "$as_ac_var=yes"
11762 else
11763   echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11765
11766         eval "$as_ac_var=no"
11767 fi
11768
11769 rm -f core conftest.err conftest.$ac_objext \
11770       conftest$ac_exeext conftest.$ac_ext
11771 fi
11772 ac_res=`eval echo '${'$as_ac_var'}'`
11773                { echo "$as_me:$LINENO: result: $ac_res" >&5
11774 echo "${ECHO_T}$ac_res" >&6; }
11775 if test `eval echo '${'$as_ac_var'}'` = yes; then
11776   cat >>confdefs.h <<_ACEOF
11777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11778 _ACEOF
11779
11780 fi
11781 done
11782
11783
11784
11785
11786 for ac_func in closedir opendir readdir
11787 do
11788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11789 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11791 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11792   echo $ECHO_N "(cached) $ECHO_C" >&6
11793 else
11794   cat >conftest.$ac_ext <<_ACEOF
11795 /* confdefs.h.  */
11796 _ACEOF
11797 cat confdefs.h >>conftest.$ac_ext
11798 cat >>conftest.$ac_ext <<_ACEOF
11799 /* end confdefs.h.  */
11800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11801    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11802 #define $ac_func innocuous_$ac_func
11803
11804 /* System header to define __stub macros and hopefully few prototypes,
11805     which can conflict with char $ac_func (); below.
11806     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11807     <limits.h> exists even on freestanding compilers.  */
11808
11809 #ifdef __STDC__
11810 # include <limits.h>
11811 #else
11812 # include <assert.h>
11813 #endif
11814
11815 #undef $ac_func
11816
11817 /* Override any GCC internal prototype to avoid an error.
11818    Use char because int might match the return type of a GCC
11819    builtin and then its argument prototype would still apply.  */
11820 #ifdef __cplusplus
11821 extern "C"
11822 #endif
11823 char $ac_func ();
11824 /* The GNU C library defines this for functions which it implements
11825     to always fail with ENOSYS.  Some functions are actually named
11826     something starting with __ and the normal name is an alias.  */
11827 #if defined __stub_$ac_func || defined __stub___$ac_func
11828 choke me
11829 #endif
11830
11831 int
11832 main ()
11833 {
11834 return $ac_func ();
11835   ;
11836   return 0;
11837 }
11838 _ACEOF
11839 rm -f conftest.$ac_objext conftest$ac_exeext
11840 if { (ac_try="$ac_link"
11841 case "(($ac_try" in
11842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843   *) ac_try_echo=$ac_try;;
11844 esac
11845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11846   (eval "$ac_link") 2>conftest.er1
11847   ac_status=$?
11848   grep -v '^ *+' conftest.er1 >conftest.err
11849   rm -f conftest.er1
11850   cat conftest.err >&5
11851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852   (exit $ac_status); } &&
11853          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11854   { (case "(($ac_try" in
11855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11856   *) ac_try_echo=$ac_try;;
11857 esac
11858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11859   (eval "$ac_try") 2>&5
11860   ac_status=$?
11861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862   (exit $ac_status); }; } &&
11863          { ac_try='test -s conftest$ac_exeext'
11864   { (case "(($ac_try" in
11865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11866   *) ac_try_echo=$ac_try;;
11867 esac
11868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11869   (eval "$ac_try") 2>&5
11870   ac_status=$?
11871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872   (exit $ac_status); }; }; then
11873   eval "$as_ac_var=yes"
11874 else
11875   echo "$as_me: failed program was:" >&5
11876 sed 's/^/| /' conftest.$ac_ext >&5
11877
11878         eval "$as_ac_var=no"
11879 fi
11880
11881 rm -f core conftest.err conftest.$ac_objext \
11882       conftest$ac_exeext conftest.$ac_ext
11883 fi
11884 ac_res=`eval echo '${'$as_ac_var'}'`
11885                { echo "$as_me:$LINENO: result: $ac_res" >&5
11886 echo "${ECHO_T}$ac_res" >&6; }
11887 if test `eval echo '${'$as_ac_var'}'` = yes; then
11888   cat >>confdefs.h <<_ACEOF
11889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11890 _ACEOF
11891
11892 fi
11893 done
11894
11895
11896
11897 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11898 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11899
11900 ICC=no
11901 IXX=no
11902 case $CC in
11903   icc*|icpc*)
11904     ICC=yes
11905     IXX=yes
11906     ;;
11907    *)
11908     ;;
11909 esac
11910
11911 if test "$GCC" != "yes" && test "$ICC" != "yes"
11912 then
11913   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11914 echo "$as_me: error: gcc|icc required but not found" >&2;}
11915    { (exit 1); exit 1; }; }
11916 fi
11917
11918 if test "$GXX" != "yes" && test "$IXX" != "yes"
11919 then
11920   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11921 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11922    { (exit 1); exit 1; }; }
11923 fi
11924
11925 if test "$GCC" = "yes"
11926 then
11927   cat >conftest.$ac_ext <<_ACEOF
11928 #if !defined(__GNUC__) || __GNUC__ < 3
11929 #error Unsupported GCC version
11930 #endif
11931
11932 _ACEOF
11933 rm -f conftest.$ac_objext
11934 if { (ac_try="$ac_compile"
11935 case "(($ac_try" in
11936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11937   *) ac_try_echo=$ac_try;;
11938 esac
11939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11940   (eval "$ac_compile") 2>conftest.er1
11941   ac_status=$?
11942   grep -v '^ *+' conftest.er1 >conftest.err
11943   rm -f conftest.er1
11944   cat conftest.err >&5
11945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946   (exit $ac_status); } &&
11947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11948   { (case "(($ac_try" in
11949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950   *) ac_try_echo=$ac_try;;
11951 esac
11952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11953   (eval "$ac_try") 2>&5
11954   ac_status=$?
11955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956   (exit $ac_status); }; } &&
11957          { ac_try='test -s conftest.$ac_objext'
11958   { (case "(($ac_try" in
11959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11960   *) ac_try_echo=$ac_try;;
11961 esac
11962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11963   (eval "$ac_try") 2>&5
11964   ac_status=$?
11965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966   (exit $ac_status); }; }; then
11967   :
11968 else
11969   echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11971
11972         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11973 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11974    { (exit 1); exit 1; }; }
11975 fi
11976
11977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11978 fi
11979
11980 if test -z "$llvm_cv_gnu_make_command"
11981 then
11982   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11983 echo "$as_me: error: GNU Make required but not found" >&2;}
11984    { (exit 1); exit 1; }; }
11985 fi
11986
11987 { echo "$as_me:$LINENO: result: ok" >&5
11988 echo "${ECHO_T}ok" >&6; }
11989
11990 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11991 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11992 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11993
11994 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11995
11996 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11997
11998 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
11999 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12000
12001
12002
12003 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12004 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12005 if test "${ac_cv_lib_m_sin+set}" = set; then
12006   echo $ECHO_N "(cached) $ECHO_C" >&6
12007 else
12008   ac_check_lib_save_LIBS=$LIBS
12009 LIBS="-lm  $LIBS"
12010 cat >conftest.$ac_ext <<_ACEOF
12011 /* confdefs.h.  */
12012 _ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h.  */
12016
12017 /* Override any GCC internal prototype to avoid an error.
12018    Use char because int might match the return type of a GCC
12019    builtin and then its argument prototype would still apply.  */
12020 #ifdef __cplusplus
12021 extern "C"
12022 #endif
12023 char sin ();
12024 int
12025 main ()
12026 {
12027 return sin ();
12028   ;
12029   return 0;
12030 }
12031 _ACEOF
12032 rm -f conftest.$ac_objext conftest$ac_exeext
12033 if { (ac_try="$ac_link"
12034 case "(($ac_try" in
12035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036   *) ac_try_echo=$ac_try;;
12037 esac
12038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039   (eval "$ac_link") 2>conftest.er1
12040   ac_status=$?
12041   grep -v '^ *+' conftest.er1 >conftest.err
12042   rm -f conftest.er1
12043   cat conftest.err >&5
12044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045   (exit $ac_status); } &&
12046          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12047   { (case "(($ac_try" in
12048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049   *) ac_try_echo=$ac_try;;
12050 esac
12051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12052   (eval "$ac_try") 2>&5
12053   ac_status=$?
12054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055   (exit $ac_status); }; } &&
12056          { ac_try='test -s conftest$ac_exeext'
12057   { (case "(($ac_try" in
12058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12059   *) ac_try_echo=$ac_try;;
12060 esac
12061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12062   (eval "$ac_try") 2>&5
12063   ac_status=$?
12064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065   (exit $ac_status); }; }; then
12066   ac_cv_lib_m_sin=yes
12067 else
12068   echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12070
12071         ac_cv_lib_m_sin=no
12072 fi
12073
12074 rm -f core conftest.err conftest.$ac_objext \
12075       conftest$ac_exeext conftest.$ac_ext
12076 LIBS=$ac_check_lib_save_LIBS
12077 fi
12078 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12079 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12080 if test $ac_cv_lib_m_sin = yes; then
12081   cat >>confdefs.h <<_ACEOF
12082 #define HAVE_LIBM 1
12083 _ACEOF
12084
12085   LIBS="-lm $LIBS"
12086
12087 fi
12088
12089 if test "$llvm_cv_os_type" = "MingW" ; then
12090
12091 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12092 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12093 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12094   echo $ECHO_N "(cached) $ECHO_C" >&6
12095 else
12096   ac_check_lib_save_LIBS=$LIBS
12097 LIBS="-limagehlp  $LIBS"
12098 cat >conftest.$ac_ext <<_ACEOF
12099 /* confdefs.h.  */
12100 _ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h.  */
12104
12105
12106 int
12107 main ()
12108 {
12109 return main ();
12110   ;
12111   return 0;
12112 }
12113 _ACEOF
12114 rm -f conftest.$ac_objext conftest$ac_exeext
12115 if { (ac_try="$ac_link"
12116 case "(($ac_try" in
12117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118   *) ac_try_echo=$ac_try;;
12119 esac
12120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121   (eval "$ac_link") 2>conftest.er1
12122   ac_status=$?
12123   grep -v '^ *+' conftest.er1 >conftest.err
12124   rm -f conftest.er1
12125   cat conftest.err >&5
12126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127   (exit $ac_status); } &&
12128          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12129   { (case "(($ac_try" in
12130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131   *) ac_try_echo=$ac_try;;
12132 esac
12133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134   (eval "$ac_try") 2>&5
12135   ac_status=$?
12136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137   (exit $ac_status); }; } &&
12138          { ac_try='test -s conftest$ac_exeext'
12139   { (case "(($ac_try" in
12140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141   *) ac_try_echo=$ac_try;;
12142 esac
12143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144   (eval "$ac_try") 2>&5
12145   ac_status=$?
12146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147   (exit $ac_status); }; }; then
12148   ac_cv_lib_imagehlp_main=yes
12149 else
12150   echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12152
12153         ac_cv_lib_imagehlp_main=no
12154 fi
12155
12156 rm -f core conftest.err conftest.$ac_objext \
12157       conftest$ac_exeext conftest.$ac_ext
12158 LIBS=$ac_check_lib_save_LIBS
12159 fi
12160 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12161 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12162 if test $ac_cv_lib_imagehlp_main = yes; then
12163   cat >>confdefs.h <<_ACEOF
12164 #define HAVE_LIBIMAGEHLP 1
12165 _ACEOF
12166
12167   LIBS="-limagehlp $LIBS"
12168
12169 fi
12170
12171
12172 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12173 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12174 if test "${ac_cv_lib_psapi_main+set}" = set; then
12175   echo $ECHO_N "(cached) $ECHO_C" >&6
12176 else
12177   ac_check_lib_save_LIBS=$LIBS
12178 LIBS="-lpsapi  $LIBS"
12179 cat >conftest.$ac_ext <<_ACEOF
12180 /* confdefs.h.  */
12181 _ACEOF
12182 cat confdefs.h >>conftest.$ac_ext
12183 cat >>conftest.$ac_ext <<_ACEOF
12184 /* end confdefs.h.  */
12185
12186
12187 int
12188 main ()
12189 {
12190 return main ();
12191   ;
12192   return 0;
12193 }
12194 _ACEOF
12195 rm -f conftest.$ac_objext conftest$ac_exeext
12196 if { (ac_try="$ac_link"
12197 case "(($ac_try" in
12198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199   *) ac_try_echo=$ac_try;;
12200 esac
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202   (eval "$ac_link") 2>conftest.er1
12203   ac_status=$?
12204   grep -v '^ *+' conftest.er1 >conftest.err
12205   rm -f conftest.er1
12206   cat conftest.err >&5
12207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208   (exit $ac_status); } &&
12209          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12210   { (case "(($ac_try" in
12211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212   *) ac_try_echo=$ac_try;;
12213 esac
12214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12215   (eval "$ac_try") 2>&5
12216   ac_status=$?
12217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218   (exit $ac_status); }; } &&
12219          { ac_try='test -s conftest$ac_exeext'
12220   { (case "(($ac_try" in
12221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222   *) ac_try_echo=$ac_try;;
12223 esac
12224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12225   (eval "$ac_try") 2>&5
12226   ac_status=$?
12227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228   (exit $ac_status); }; }; then
12229   ac_cv_lib_psapi_main=yes
12230 else
12231   echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12233
12234         ac_cv_lib_psapi_main=no
12235 fi
12236
12237 rm -f core conftest.err conftest.$ac_objext \
12238       conftest$ac_exeext conftest.$ac_ext
12239 LIBS=$ac_check_lib_save_LIBS
12240 fi
12241 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12242 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12243 if test $ac_cv_lib_psapi_main = yes; then
12244   cat >>confdefs.h <<_ACEOF
12245 #define HAVE_LIBPSAPI 1
12246 _ACEOF
12247
12248   LIBS="-lpsapi $LIBS"
12249
12250 fi
12251
12252 fi
12253
12254 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12255 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12256 if test "${ac_cv_search_dlopen+set}" = set; then
12257   echo $ECHO_N "(cached) $ECHO_C" >&6
12258 else
12259   ac_func_search_save_LIBS=$LIBS
12260 cat >conftest.$ac_ext <<_ACEOF
12261 /* confdefs.h.  */
12262 _ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h.  */
12266
12267 /* Override any GCC internal prototype to avoid an error.
12268    Use char because int might match the return type of a GCC
12269    builtin and then its argument prototype would still apply.  */
12270 #ifdef __cplusplus
12271 extern "C"
12272 #endif
12273 char dlopen ();
12274 int
12275 main ()
12276 {
12277 return dlopen ();
12278   ;
12279   return 0;
12280 }
12281 _ACEOF
12282 for ac_lib in '' dl; do
12283   if test -z "$ac_lib"; then
12284     ac_res="none required"
12285   else
12286     ac_res=-l$ac_lib
12287     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12288   fi
12289   rm -f conftest.$ac_objext conftest$ac_exeext
12290 if { (ac_try="$ac_link"
12291 case "(($ac_try" in
12292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293   *) ac_try_echo=$ac_try;;
12294 esac
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296   (eval "$ac_link") 2>conftest.er1
12297   ac_status=$?
12298   grep -v '^ *+' conftest.er1 >conftest.err
12299   rm -f conftest.er1
12300   cat conftest.err >&5
12301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302   (exit $ac_status); } &&
12303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12304   { (case "(($ac_try" in
12305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306   *) ac_try_echo=$ac_try;;
12307 esac
12308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309   (eval "$ac_try") 2>&5
12310   ac_status=$?
12311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312   (exit $ac_status); }; } &&
12313          { ac_try='test -s conftest$ac_exeext'
12314   { (case "(($ac_try" in
12315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12316   *) ac_try_echo=$ac_try;;
12317 esac
12318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12319   (eval "$ac_try") 2>&5
12320   ac_status=$?
12321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322   (exit $ac_status); }; }; then
12323   ac_cv_search_dlopen=$ac_res
12324 else
12325   echo "$as_me: failed program was:" >&5
12326 sed 's/^/| /' conftest.$ac_ext >&5
12327
12328
12329 fi
12330
12331 rm -f core conftest.err conftest.$ac_objext \
12332       conftest$ac_exeext
12333   if test "${ac_cv_search_dlopen+set}" = set; then
12334   break
12335 fi
12336 done
12337 if test "${ac_cv_search_dlopen+set}" = set; then
12338   :
12339 else
12340   ac_cv_search_dlopen=no
12341 fi
12342 rm conftest.$ac_ext
12343 LIBS=$ac_func_search_save_LIBS
12344 fi
12345 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12346 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12347 ac_res=$ac_cv_search_dlopen
12348 if test "$ac_res" != no; then
12349   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12350
12351 cat >>confdefs.h <<\_ACEOF
12352 #define HAVE_DLOPEN 1
12353 _ACEOF
12354
12355 else
12356   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12357 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12358 fi
12359
12360
12361 if test "$llvm_cv_enable_libffi" = "yes" ; then
12362   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12363 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12364 if test "${ac_cv_search_ffi_call+set}" = set; then
12365   echo $ECHO_N "(cached) $ECHO_C" >&6
12366 else
12367   ac_func_search_save_LIBS=$LIBS
12368 cat >conftest.$ac_ext <<_ACEOF
12369 /* confdefs.h.  */
12370 _ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h.  */
12374
12375 /* Override any GCC internal prototype to avoid an error.
12376    Use char because int might match the return type of a GCC
12377    builtin and then its argument prototype would still apply.  */
12378 #ifdef __cplusplus
12379 extern "C"
12380 #endif
12381 char ffi_call ();
12382 int
12383 main ()
12384 {
12385 return ffi_call ();
12386   ;
12387   return 0;
12388 }
12389 _ACEOF
12390 for ac_lib in '' ffi; do
12391   if test -z "$ac_lib"; then
12392     ac_res="none required"
12393   else
12394     ac_res=-l$ac_lib
12395     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12396   fi
12397   rm -f conftest.$ac_objext conftest$ac_exeext
12398 if { (ac_try="$ac_link"
12399 case "(($ac_try" in
12400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401   *) ac_try_echo=$ac_try;;
12402 esac
12403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404   (eval "$ac_link") 2>conftest.er1
12405   ac_status=$?
12406   grep -v '^ *+' conftest.er1 >conftest.err
12407   rm -f conftest.er1
12408   cat conftest.err >&5
12409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410   (exit $ac_status); } &&
12411          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12412   { (case "(($ac_try" in
12413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12414   *) ac_try_echo=$ac_try;;
12415 esac
12416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12417   (eval "$ac_try") 2>&5
12418   ac_status=$?
12419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420   (exit $ac_status); }; } &&
12421          { ac_try='test -s conftest$ac_exeext'
12422   { (case "(($ac_try" in
12423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12424   *) ac_try_echo=$ac_try;;
12425 esac
12426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12427   (eval "$ac_try") 2>&5
12428   ac_status=$?
12429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430   (exit $ac_status); }; }; then
12431   ac_cv_search_ffi_call=$ac_res
12432 else
12433   echo "$as_me: failed program was:" >&5
12434 sed 's/^/| /' conftest.$ac_ext >&5
12435
12436
12437 fi
12438
12439 rm -f core conftest.err conftest.$ac_objext \
12440       conftest$ac_exeext
12441   if test "${ac_cv_search_ffi_call+set}" = set; then
12442   break
12443 fi
12444 done
12445 if test "${ac_cv_search_ffi_call+set}" = set; then
12446   :
12447 else
12448   ac_cv_search_ffi_call=no
12449 fi
12450 rm conftest.$ac_ext
12451 LIBS=$ac_func_search_save_LIBS
12452 fi
12453 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12454 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12455 ac_res=$ac_cv_search_ffi_call
12456 if test "$ac_res" != no; then
12457   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12458
12459 cat >>confdefs.h <<\_ACEOF
12460 #define HAVE_FFI_CALL 1
12461 _ACEOF
12462
12463 else
12464   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12465 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12466    { (exit 1); exit 1; }; }
12467 fi
12468
12469 fi
12470
12471 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12472 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12473 if test "${ac_cv_search_mallinfo+set}" = set; then
12474   echo $ECHO_N "(cached) $ECHO_C" >&6
12475 else
12476   ac_func_search_save_LIBS=$LIBS
12477 cat >conftest.$ac_ext <<_ACEOF
12478 /* confdefs.h.  */
12479 _ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h.  */
12483
12484 /* Override any GCC internal prototype to avoid an error.
12485    Use char because int might match the return type of a GCC
12486    builtin and then its argument prototype would still apply.  */
12487 #ifdef __cplusplus
12488 extern "C"
12489 #endif
12490 char mallinfo ();
12491 int
12492 main ()
12493 {
12494 return mallinfo ();
12495   ;
12496   return 0;
12497 }
12498 _ACEOF
12499 for ac_lib in '' malloc; do
12500   if test -z "$ac_lib"; then
12501     ac_res="none required"
12502   else
12503     ac_res=-l$ac_lib
12504     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12505   fi
12506   rm -f conftest.$ac_objext conftest$ac_exeext
12507 if { (ac_try="$ac_link"
12508 case "(($ac_try" in
12509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510   *) ac_try_echo=$ac_try;;
12511 esac
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513   (eval "$ac_link") 2>conftest.er1
12514   ac_status=$?
12515   grep -v '^ *+' conftest.er1 >conftest.err
12516   rm -f conftest.er1
12517   cat conftest.err >&5
12518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519   (exit $ac_status); } &&
12520          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12521   { (case "(($ac_try" in
12522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523   *) ac_try_echo=$ac_try;;
12524 esac
12525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526   (eval "$ac_try") 2>&5
12527   ac_status=$?
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); }; } &&
12530          { ac_try='test -s conftest$ac_exeext'
12531   { (case "(($ac_try" in
12532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533   *) ac_try_echo=$ac_try;;
12534 esac
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536   (eval "$ac_try") 2>&5
12537   ac_status=$?
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); }; }; then
12540   ac_cv_search_mallinfo=$ac_res
12541 else
12542   echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12544
12545
12546 fi
12547
12548 rm -f core conftest.err conftest.$ac_objext \
12549       conftest$ac_exeext
12550   if test "${ac_cv_search_mallinfo+set}" = set; then
12551   break
12552 fi
12553 done
12554 if test "${ac_cv_search_mallinfo+set}" = set; then
12555   :
12556 else
12557   ac_cv_search_mallinfo=no
12558 fi
12559 rm conftest.$ac_ext
12560 LIBS=$ac_func_search_save_LIBS
12561 fi
12562 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12563 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12564 ac_res=$ac_cv_search_mallinfo
12565 if test "$ac_res" != no; then
12566   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12567
12568 cat >>confdefs.h <<\_ACEOF
12569 #define HAVE_MALLINFO 1
12570 _ACEOF
12571
12572 fi
12573
12574
12575 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12576
12577 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12578 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12579 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12580   echo $ECHO_N "(cached) $ECHO_C" >&6
12581 else
12582   ac_check_lib_save_LIBS=$LIBS
12583 LIBS="-lpthread  $LIBS"
12584 cat >conftest.$ac_ext <<_ACEOF
12585 /* confdefs.h.  */
12586 _ACEOF
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h.  */
12590
12591 /* Override any GCC internal prototype to avoid an error.
12592    Use char because int might match the return type of a GCC
12593    builtin and then its argument prototype would still apply.  */
12594 #ifdef __cplusplus
12595 extern "C"
12596 #endif
12597 char pthread_mutex_init ();
12598 int
12599 main ()
12600 {
12601 return pthread_mutex_init ();
12602   ;
12603   return 0;
12604 }
12605 _ACEOF
12606 rm -f conftest.$ac_objext conftest$ac_exeext
12607 if { (ac_try="$ac_link"
12608 case "(($ac_try" in
12609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610   *) ac_try_echo=$ac_try;;
12611 esac
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613   (eval "$ac_link") 2>conftest.er1
12614   ac_status=$?
12615   grep -v '^ *+' conftest.er1 >conftest.err
12616   rm -f conftest.er1
12617   cat conftest.err >&5
12618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619   (exit $ac_status); } &&
12620          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12621   { (case "(($ac_try" in
12622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623   *) ac_try_echo=$ac_try;;
12624 esac
12625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12626   (eval "$ac_try") 2>&5
12627   ac_status=$?
12628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629   (exit $ac_status); }; } &&
12630          { ac_try='test -s conftest$ac_exeext'
12631   { (case "(($ac_try" in
12632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633   *) ac_try_echo=$ac_try;;
12634 esac
12635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636   (eval "$ac_try") 2>&5
12637   ac_status=$?
12638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639   (exit $ac_status); }; }; then
12640   ac_cv_lib_pthread_pthread_mutex_init=yes
12641 else
12642   echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.$ac_ext >&5
12644
12645         ac_cv_lib_pthread_pthread_mutex_init=no
12646 fi
12647
12648 rm -f core conftest.err conftest.$ac_objext \
12649       conftest$ac_exeext conftest.$ac_ext
12650 LIBS=$ac_check_lib_save_LIBS
12651 fi
12652 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12653 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12654 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12655   cat >>confdefs.h <<_ACEOF
12656 #define HAVE_LIBPTHREAD 1
12657 _ACEOF
12658
12659   LIBS="-lpthread $LIBS"
12660
12661 fi
12662
12663   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12664 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12665 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12666   echo $ECHO_N "(cached) $ECHO_C" >&6
12667 else
12668   ac_func_search_save_LIBS=$LIBS
12669 cat >conftest.$ac_ext <<_ACEOF
12670 /* confdefs.h.  */
12671 _ACEOF
12672 cat confdefs.h >>conftest.$ac_ext
12673 cat >>conftest.$ac_ext <<_ACEOF
12674 /* end confdefs.h.  */
12675
12676 /* Override any GCC internal prototype to avoid an error.
12677    Use char because int might match the return type of a GCC
12678    builtin and then its argument prototype would still apply.  */
12679 #ifdef __cplusplus
12680 extern "C"
12681 #endif
12682 char pthread_mutex_lock ();
12683 int
12684 main ()
12685 {
12686 return pthread_mutex_lock ();
12687   ;
12688   return 0;
12689 }
12690 _ACEOF
12691 for ac_lib in '' pthread; do
12692   if test -z "$ac_lib"; then
12693     ac_res="none required"
12694   else
12695     ac_res=-l$ac_lib
12696     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12697   fi
12698   rm -f conftest.$ac_objext conftest$ac_exeext
12699 if { (ac_try="$ac_link"
12700 case "(($ac_try" in
12701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702   *) ac_try_echo=$ac_try;;
12703 esac
12704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705   (eval "$ac_link") 2>conftest.er1
12706   ac_status=$?
12707   grep -v '^ *+' conftest.er1 >conftest.err
12708   rm -f conftest.er1
12709   cat conftest.err >&5
12710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711   (exit $ac_status); } &&
12712          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12713   { (case "(($ac_try" in
12714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12715   *) ac_try_echo=$ac_try;;
12716 esac
12717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718   (eval "$ac_try") 2>&5
12719   ac_status=$?
12720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721   (exit $ac_status); }; } &&
12722          { ac_try='test -s conftest$ac_exeext'
12723   { (case "(($ac_try" in
12724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725   *) ac_try_echo=$ac_try;;
12726 esac
12727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728   (eval "$ac_try") 2>&5
12729   ac_status=$?
12730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731   (exit $ac_status); }; }; then
12732   ac_cv_search_pthread_mutex_lock=$ac_res
12733 else
12734   echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.$ac_ext >&5
12736
12737
12738 fi
12739
12740 rm -f core conftest.err conftest.$ac_objext \
12741       conftest$ac_exeext
12742   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12743   break
12744 fi
12745 done
12746 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12747   :
12748 else
12749   ac_cv_search_pthread_mutex_lock=no
12750 fi
12751 rm conftest.$ac_ext
12752 LIBS=$ac_func_search_save_LIBS
12753 fi
12754 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12755 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12756 ac_res=$ac_cv_search_pthread_mutex_lock
12757 if test "$ac_res" != no; then
12758   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12759
12760 cat >>confdefs.h <<\_ACEOF
12761 #define HAVE_PTHREAD_MUTEX_LOCK 1
12762 _ACEOF
12763
12764 fi
12765
12766   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12767 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12768 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12769   echo $ECHO_N "(cached) $ECHO_C" >&6
12770 else
12771   ac_func_search_save_LIBS=$LIBS
12772 cat >conftest.$ac_ext <<_ACEOF
12773 /* confdefs.h.  */
12774 _ACEOF
12775 cat confdefs.h >>conftest.$ac_ext
12776 cat >>conftest.$ac_ext <<_ACEOF
12777 /* end confdefs.h.  */
12778
12779 /* Override any GCC internal prototype to avoid an error.
12780    Use char because int might match the return type of a GCC
12781    builtin and then its argument prototype would still apply.  */
12782 #ifdef __cplusplus
12783 extern "C"
12784 #endif
12785 char pthread_rwlock_init ();
12786 int
12787 main ()
12788 {
12789 return pthread_rwlock_init ();
12790   ;
12791   return 0;
12792 }
12793 _ACEOF
12794 for ac_lib in '' pthread; do
12795   if test -z "$ac_lib"; then
12796     ac_res="none required"
12797   else
12798     ac_res=-l$ac_lib
12799     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12800   fi
12801   rm -f conftest.$ac_objext conftest$ac_exeext
12802 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12809   ac_status=$?
12810   grep -v '^ *+' conftest.er1 >conftest.err
12811   rm -f conftest.er1
12812   cat conftest.err >&5
12813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814   (exit $ac_status); } &&
12815          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12816   { (case "(($ac_try" in
12817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12818   *) ac_try_echo=$ac_try;;
12819 esac
12820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821   (eval "$ac_try") 2>&5
12822   ac_status=$?
12823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824   (exit $ac_status); }; } &&
12825          { ac_try='test -s conftest$ac_exeext'
12826   { (case "(($ac_try" in
12827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12828   *) ac_try_echo=$ac_try;;
12829 esac
12830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12831   (eval "$ac_try") 2>&5
12832   ac_status=$?
12833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834   (exit $ac_status); }; }; then
12835   ac_cv_search_pthread_rwlock_init=$ac_res
12836 else
12837   echo "$as_me: failed program was:" >&5
12838 sed 's/^/| /' conftest.$ac_ext >&5
12839
12840
12841 fi
12842
12843 rm -f core conftest.err conftest.$ac_objext \
12844       conftest$ac_exeext
12845   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12846   break
12847 fi
12848 done
12849 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12850   :
12851 else
12852   ac_cv_search_pthread_rwlock_init=no
12853 fi
12854 rm conftest.$ac_ext
12855 LIBS=$ac_func_search_save_LIBS
12856 fi
12857 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12858 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12859 ac_res=$ac_cv_search_pthread_rwlock_init
12860 if test "$ac_res" != no; then
12861   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12862
12863 cat >>confdefs.h <<\_ACEOF
12864 #define HAVE_PTHREAD_RWLOCK_INIT 1
12865 _ACEOF
12866
12867 fi
12868
12869   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12870 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12871 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12872   echo $ECHO_N "(cached) $ECHO_C" >&6
12873 else
12874   ac_func_search_save_LIBS=$LIBS
12875 cat >conftest.$ac_ext <<_ACEOF
12876 /* confdefs.h.  */
12877 _ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h.  */
12881
12882 /* Override any GCC internal prototype to avoid an error.
12883    Use char because int might match the return type of a GCC
12884    builtin and then its argument prototype would still apply.  */
12885 #ifdef __cplusplus
12886 extern "C"
12887 #endif
12888 char pthread_getspecific ();
12889 int
12890 main ()
12891 {
12892 return pthread_getspecific ();
12893   ;
12894   return 0;
12895 }
12896 _ACEOF
12897 for ac_lib in '' pthread; do
12898   if test -z "$ac_lib"; then
12899     ac_res="none required"
12900   else
12901     ac_res=-l$ac_lib
12902     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12903   fi
12904   rm -f conftest.$ac_objext conftest$ac_exeext
12905 if { (ac_try="$ac_link"
12906 case "(($ac_try" in
12907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908   *) ac_try_echo=$ac_try;;
12909 esac
12910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911   (eval "$ac_link") 2>conftest.er1
12912   ac_status=$?
12913   grep -v '^ *+' conftest.er1 >conftest.err
12914   rm -f conftest.er1
12915   cat conftest.err >&5
12916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917   (exit $ac_status); } &&
12918          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12919   { (case "(($ac_try" in
12920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12921   *) ac_try_echo=$ac_try;;
12922 esac
12923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12924   (eval "$ac_try") 2>&5
12925   ac_status=$?
12926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927   (exit $ac_status); }; } &&
12928          { ac_try='test -s conftest$ac_exeext'
12929   { (case "(($ac_try" in
12930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931   *) ac_try_echo=$ac_try;;
12932 esac
12933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934   (eval "$ac_try") 2>&5
12935   ac_status=$?
12936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937   (exit $ac_status); }; }; then
12938   ac_cv_search_pthread_getspecific=$ac_res
12939 else
12940   echo "$as_me: failed program was:" >&5
12941 sed 's/^/| /' conftest.$ac_ext >&5
12942
12943
12944 fi
12945
12946 rm -f core conftest.err conftest.$ac_objext \
12947       conftest$ac_exeext
12948   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12949   break
12950 fi
12951 done
12952 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12953   :
12954 else
12955   ac_cv_search_pthread_getspecific=no
12956 fi
12957 rm conftest.$ac_ext
12958 LIBS=$ac_func_search_save_LIBS
12959 fi
12960 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12961 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12962 ac_res=$ac_cv_search_pthread_getspecific
12963 if test "$ac_res" != no; then
12964   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12965
12966 cat >>confdefs.h <<\_ACEOF
12967 #define HAVE_PTHREAD_GETSPECIFIC 1
12968 _ACEOF
12969
12970 fi
12971
12972 fi
12973
12974
12975 # Check whether --with-udis86 was given.
12976 if test "${with_udis86+set}" = set; then
12977   withval=$with_udis86;
12978       USE_UDIS86=1
12979
12980       case "$withval" in
12981         /usr/lib|yes) ;;
12982         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
12983       esac
12984
12985 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
12986 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
12987 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
12988   echo $ECHO_N "(cached) $ECHO_C" >&6
12989 else
12990   ac_check_lib_save_LIBS=$LIBS
12991 LIBS="-ludis86  $LIBS"
12992 cat >conftest.$ac_ext <<_ACEOF
12993 /* confdefs.h.  */
12994 _ACEOF
12995 cat confdefs.h >>conftest.$ac_ext
12996 cat >>conftest.$ac_ext <<_ACEOF
12997 /* end confdefs.h.  */
12998
12999 /* Override any GCC internal prototype to avoid an error.
13000    Use char because int might match the return type of a GCC
13001    builtin and then its argument prototype would still apply.  */
13002 #ifdef __cplusplus
13003 extern "C"
13004 #endif
13005 char ud_init ();
13006 int
13007 main ()
13008 {
13009 return ud_init ();
13010   ;
13011   return 0;
13012 }
13013 _ACEOF
13014 rm -f conftest.$ac_objext conftest$ac_exeext
13015 if { (ac_try="$ac_link"
13016 case "(($ac_try" in
13017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13018   *) ac_try_echo=$ac_try;;
13019 esac
13020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13021   (eval "$ac_link") 2>conftest.er1
13022   ac_status=$?
13023   grep -v '^ *+' conftest.er1 >conftest.err
13024   rm -f conftest.er1
13025   cat conftest.err >&5
13026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027   (exit $ac_status); } &&
13028          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13029   { (case "(($ac_try" in
13030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13031   *) ac_try_echo=$ac_try;;
13032 esac
13033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13034   (eval "$ac_try") 2>&5
13035   ac_status=$?
13036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037   (exit $ac_status); }; } &&
13038          { ac_try='test -s conftest$ac_exeext'
13039   { (case "(($ac_try" in
13040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13041   *) ac_try_echo=$ac_try;;
13042 esac
13043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13044   (eval "$ac_try") 2>&5
13045   ac_status=$?
13046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047   (exit $ac_status); }; }; then
13048   ac_cv_lib_udis86_ud_init=yes
13049 else
13050   echo "$as_me: failed program was:" >&5
13051 sed 's/^/| /' conftest.$ac_ext >&5
13052
13053         ac_cv_lib_udis86_ud_init=no
13054 fi
13055
13056 rm -f core conftest.err conftest.$ac_objext \
13057       conftest$ac_exeext conftest.$ac_ext
13058 LIBS=$ac_check_lib_save_LIBS
13059 fi
13060 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13061 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13062 if test $ac_cv_lib_udis86_ud_init = yes; then
13063   cat >>confdefs.h <<_ACEOF
13064 #define HAVE_LIBUDIS86 1
13065 _ACEOF
13066
13067   LIBS="-ludis86 $LIBS"
13068
13069 else
13070
13071         echo "Error! You need to have libudis86 around."
13072         exit -1
13073
13074 fi
13075
13076
13077 else
13078   USE_UDIS86=0
13079
13080 fi
13081
13082
13083 cat >>confdefs.h <<_ACEOF
13084 #define USE_UDIS86 $USE_UDIS86
13085 _ACEOF
13086
13087
13088
13089 # Check whether --with-oprofile was given.
13090 if test "${with_oprofile+set}" = set; then
13091   withval=$with_oprofile;
13092       USE_OPROFILE=1
13093
13094       case "$withval" in
13095         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13096         no) llvm_cv_oppath=
13097             USE_OPROFILE=0
13098  ;;
13099         *) llvm_cv_oppath="${withval}/lib/oprofile"
13100            CPPFLAGS="-I${withval}/include";;
13101       esac
13102       case $llvm_cv_os_type in
13103         Linux)
13104           if test -n "$llvm_cv_oppath" ; then
13105             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13106                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13107 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13108 if test "${ac_cv_search_bfd_init+set}" = set; then
13109   echo $ECHO_N "(cached) $ECHO_C" >&6
13110 else
13111   ac_func_search_save_LIBS=$LIBS
13112 cat >conftest.$ac_ext <<_ACEOF
13113 /* confdefs.h.  */
13114 _ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h.  */
13118
13119 /* Override any GCC internal prototype to avoid an error.
13120    Use char because int might match the return type of a GCC
13121    builtin and then its argument prototype would still apply.  */
13122 #ifdef __cplusplus
13123 extern "C"
13124 #endif
13125 char bfd_init ();
13126 int
13127 main ()
13128 {
13129 return bfd_init ();
13130   ;
13131   return 0;
13132 }
13133 _ACEOF
13134 for ac_lib in '' bfd; do
13135   if test -z "$ac_lib"; then
13136     ac_res="none required"
13137   else
13138     ac_res=-l$ac_lib
13139     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13140   fi
13141   rm -f conftest.$ac_objext conftest$ac_exeext
13142 if { (ac_try="$ac_link"
13143 case "(($ac_try" in
13144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145   *) ac_try_echo=$ac_try;;
13146 esac
13147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13148   (eval "$ac_link") 2>conftest.er1
13149   ac_status=$?
13150   grep -v '^ *+' conftest.er1 >conftest.err
13151   rm -f conftest.er1
13152   cat conftest.err >&5
13153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154   (exit $ac_status); } &&
13155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13156   { (case "(($ac_try" in
13157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158   *) ac_try_echo=$ac_try;;
13159 esac
13160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161   (eval "$ac_try") 2>&5
13162   ac_status=$?
13163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164   (exit $ac_status); }; } &&
13165          { ac_try='test -s conftest$ac_exeext'
13166   { (case "(($ac_try" in
13167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13168   *) ac_try_echo=$ac_try;;
13169 esac
13170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13171   (eval "$ac_try") 2>&5
13172   ac_status=$?
13173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174   (exit $ac_status); }; }; then
13175   ac_cv_search_bfd_init=$ac_res
13176 else
13177   echo "$as_me: failed program was:" >&5
13178 sed 's/^/| /' conftest.$ac_ext >&5
13179
13180
13181 fi
13182
13183 rm -f core conftest.err conftest.$ac_objext \
13184       conftest$ac_exeext
13185   if test "${ac_cv_search_bfd_init+set}" = set; then
13186   break
13187 fi
13188 done
13189 if test "${ac_cv_search_bfd_init+set}" = set; then
13190   :
13191 else
13192   ac_cv_search_bfd_init=no
13193 fi
13194 rm conftest.$ac_ext
13195 LIBS=$ac_func_search_save_LIBS
13196 fi
13197 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13198 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13199 ac_res=$ac_cv_search_bfd_init
13200 if test "$ac_res" != no; then
13201   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13202
13203 fi
13204
13205             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13206 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13207 if test "${ac_cv_search_op_open_agent+set}" = set; then
13208   echo $ECHO_N "(cached) $ECHO_C" >&6
13209 else
13210   ac_func_search_save_LIBS=$LIBS
13211 cat >conftest.$ac_ext <<_ACEOF
13212 /* confdefs.h.  */
13213 _ACEOF
13214 cat confdefs.h >>conftest.$ac_ext
13215 cat >>conftest.$ac_ext <<_ACEOF
13216 /* end confdefs.h.  */
13217
13218 /* Override any GCC internal prototype to avoid an error.
13219    Use char because int might match the return type of a GCC
13220    builtin and then its argument prototype would still apply.  */
13221 #ifdef __cplusplus
13222 extern "C"
13223 #endif
13224 char op_open_agent ();
13225 int
13226 main ()
13227 {
13228 return op_open_agent ();
13229   ;
13230   return 0;
13231 }
13232 _ACEOF
13233 for ac_lib in '' opagent; do
13234   if test -z "$ac_lib"; then
13235     ac_res="none required"
13236   else
13237     ac_res=-l$ac_lib
13238     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13239   fi
13240   rm -f conftest.$ac_objext conftest$ac_exeext
13241 if { (ac_try="$ac_link"
13242 case "(($ac_try" in
13243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244   *) ac_try_echo=$ac_try;;
13245 esac
13246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247   (eval "$ac_link") 2>conftest.er1
13248   ac_status=$?
13249   grep -v '^ *+' conftest.er1 >conftest.err
13250   rm -f conftest.er1
13251   cat conftest.err >&5
13252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253   (exit $ac_status); } &&
13254          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13255   { (case "(($ac_try" in
13256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257   *) ac_try_echo=$ac_try;;
13258 esac
13259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13260   (eval "$ac_try") 2>&5
13261   ac_status=$?
13262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263   (exit $ac_status); }; } &&
13264          { ac_try='test -s conftest$ac_exeext'
13265   { (case "(($ac_try" in
13266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13267   *) ac_try_echo=$ac_try;;
13268 esac
13269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13270   (eval "$ac_try") 2>&5
13271   ac_status=$?
13272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273   (exit $ac_status); }; }; then
13274   ac_cv_search_op_open_agent=$ac_res
13275 else
13276   echo "$as_me: failed program was:" >&5
13277 sed 's/^/| /' conftest.$ac_ext >&5
13278
13279
13280 fi
13281
13282 rm -f core conftest.err conftest.$ac_objext \
13283       conftest$ac_exeext
13284   if test "${ac_cv_search_op_open_agent+set}" = set; then
13285   break
13286 fi
13287 done
13288 if test "${ac_cv_search_op_open_agent+set}" = set; then
13289   :
13290 else
13291   ac_cv_search_op_open_agent=no
13292 fi
13293 rm conftest.$ac_ext
13294 LIBS=$ac_func_search_save_LIBS
13295 fi
13296 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13297 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13298 ac_res=$ac_cv_search_op_open_agent
13299 if test "$ac_res" != no; then
13300   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13301
13302 else
13303
13304               echo "Error! You need to have libopagent around."
13305               exit -1
13306
13307 fi
13308
13309             if test "${ac_cv_header_opagent_h+set}" = set; then
13310   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13311 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13312 if test "${ac_cv_header_opagent_h+set}" = set; then
13313   echo $ECHO_N "(cached) $ECHO_C" >&6
13314 fi
13315 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13316 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13317 else
13318   # Is the header compilable?
13319 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13320 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13321 cat >conftest.$ac_ext <<_ACEOF
13322 /* confdefs.h.  */
13323 _ACEOF
13324 cat confdefs.h >>conftest.$ac_ext
13325 cat >>conftest.$ac_ext <<_ACEOF
13326 /* end confdefs.h.  */
13327 $ac_includes_default
13328 #include <opagent.h>
13329 _ACEOF
13330 rm -f conftest.$ac_objext
13331 if { (ac_try="$ac_compile"
13332 case "(($ac_try" in
13333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334   *) ac_try_echo=$ac_try;;
13335 esac
13336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337   (eval "$ac_compile") 2>conftest.er1
13338   ac_status=$?
13339   grep -v '^ *+' conftest.er1 >conftest.err
13340   rm -f conftest.er1
13341   cat conftest.err >&5
13342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343   (exit $ac_status); } &&
13344          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13345   { (case "(($ac_try" in
13346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347   *) ac_try_echo=$ac_try;;
13348 esac
13349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350   (eval "$ac_try") 2>&5
13351   ac_status=$?
13352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353   (exit $ac_status); }; } &&
13354          { ac_try='test -s conftest.$ac_objext'
13355   { (case "(($ac_try" in
13356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13357   *) ac_try_echo=$ac_try;;
13358 esac
13359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13360   (eval "$ac_try") 2>&5
13361   ac_status=$?
13362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363   (exit $ac_status); }; }; then
13364   ac_header_compiler=yes
13365 else
13366   echo "$as_me: failed program was:" >&5
13367 sed 's/^/| /' conftest.$ac_ext >&5
13368
13369         ac_header_compiler=no
13370 fi
13371
13372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13373 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13374 echo "${ECHO_T}$ac_header_compiler" >&6; }
13375
13376 # Is the header present?
13377 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13378 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13379 cat >conftest.$ac_ext <<_ACEOF
13380 /* confdefs.h.  */
13381 _ACEOF
13382 cat confdefs.h >>conftest.$ac_ext
13383 cat >>conftest.$ac_ext <<_ACEOF
13384 /* end confdefs.h.  */
13385 #include <opagent.h>
13386 _ACEOF
13387 if { (ac_try="$ac_cpp conftest.$ac_ext"
13388 case "(($ac_try" in
13389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390   *) ac_try_echo=$ac_try;;
13391 esac
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13394   ac_status=$?
13395   grep -v '^ *+' conftest.er1 >conftest.err
13396   rm -f conftest.er1
13397   cat conftest.err >&5
13398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399   (exit $ac_status); } >/dev/null; then
13400   if test -s conftest.err; then
13401     ac_cpp_err=$ac_c_preproc_warn_flag
13402     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13403   else
13404     ac_cpp_err=
13405   fi
13406 else
13407   ac_cpp_err=yes
13408 fi
13409 if test -z "$ac_cpp_err"; then
13410   ac_header_preproc=yes
13411 else
13412   echo "$as_me: failed program was:" >&5
13413 sed 's/^/| /' conftest.$ac_ext >&5
13414
13415   ac_header_preproc=no
13416 fi
13417
13418 rm -f conftest.err conftest.$ac_ext
13419 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13420 echo "${ECHO_T}$ac_header_preproc" >&6; }
13421
13422 # So?  What about this header?
13423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13424   yes:no: )
13425     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13426 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13427     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13428 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13429     ac_header_preproc=yes
13430     ;;
13431   no:yes:* )
13432     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13433 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13434     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13435 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13436     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13437 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13438     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13439 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13440     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13441 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13442     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13443 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13444     ( cat <<\_ASBOX
13445 ## ------------------------------------ ##
13446 ## Report this to http://llvm.org/bugs/ ##
13447 ## ------------------------------------ ##
13448 _ASBOX
13449      ) | sed "s/^/$as_me: WARNING:     /" >&2
13450     ;;
13451 esac
13452 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13453 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13454 if test "${ac_cv_header_opagent_h+set}" = set; then
13455   echo $ECHO_N "(cached) $ECHO_C" >&6
13456 else
13457   ac_cv_header_opagent_h=$ac_header_preproc
13458 fi
13459 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13460 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13461
13462 fi
13463 if test $ac_cv_header_opagent_h = yes; then
13464   :
13465 else
13466
13467               echo "Error! You need to have opagent.h around."
13468               exit -1
13469
13470 fi
13471
13472
13473           fi ;;
13474         *)
13475           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13476 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13477    { (exit 1); exit 1; }; } ;;
13478       esac
13479
13480 else
13481
13482       USE_OPROFILE=0
13483
13484
13485 fi
13486
13487
13488 cat >>confdefs.h <<_ACEOF
13489 #define LLVM_USE_OPROFILE $USE_OPROFILE
13490 _ACEOF
13491
13492
13493
13494 # Check whether --with-intel-jitevents was given.
13495 if test "${with_intel_jitevents+set}" = set; then
13496   withval=$with_intel_jitevents;
13497       case $llvm_cv_os_type in
13498         Linux|Win32|Cygwin|MingW) ;;
13499         *)
13500           { { echo "$as_me:$LINENO: error:
13501             Intel JIT API support is available on Linux and Windows only.\"" >&5
13502 echo "$as_me: error:
13503             Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13504    { (exit 1); exit 1; }; } ;;
13505       esac
13506
13507       USE_INTEL_JITEVENTS=1
13508
13509       case "$llvm_cv_target_arch" in
13510         x86)    llvm_intel_jitevents_archdir="lib32";;
13511         x86_64) llvm_intel_jitevents_archdir="lib64";;
13512         *)      echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13513                 exit -1;;
13514       esac
13515       INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13516       INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13517       case "$withval" in
13518         /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13519                                   INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13520         *) ;;
13521       esac
13522
13523
13524
13525
13526       LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13527       CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13528
13529       { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13530 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13531 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13532   echo $ECHO_N "(cached) $ECHO_C" >&6
13533 else
13534   ac_func_search_save_LIBS=$LIBS
13535 cat >conftest.$ac_ext <<_ACEOF
13536 /* confdefs.h.  */
13537 _ACEOF
13538 cat confdefs.h >>conftest.$ac_ext
13539 cat >>conftest.$ac_ext <<_ACEOF
13540 /* end confdefs.h.  */
13541
13542 /* Override any GCC internal prototype to avoid an error.
13543    Use char because int might match the return type of a GCC
13544    builtin and then its argument prototype would still apply.  */
13545 #ifdef __cplusplus
13546 extern "C"
13547 #endif
13548 char iJIT_IsProfilingActive ();
13549 int
13550 main ()
13551 {
13552 return iJIT_IsProfilingActive ();
13553   ;
13554   return 0;
13555 }
13556 _ACEOF
13557 for ac_lib in '' jitprofiling; do
13558   if test -z "$ac_lib"; then
13559     ac_res="none required"
13560   else
13561     ac_res=-l$ac_lib
13562     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13563   fi
13564   rm -f conftest.$ac_objext conftest$ac_exeext
13565 if { (ac_try="$ac_link"
13566 case "(($ac_try" in
13567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13568   *) ac_try_echo=$ac_try;;
13569 esac
13570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13571   (eval "$ac_link") 2>conftest.er1
13572   ac_status=$?
13573   grep -v '^ *+' conftest.er1 >conftest.err
13574   rm -f conftest.er1
13575   cat conftest.err >&5
13576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577   (exit $ac_status); } &&
13578          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13579   { (case "(($ac_try" in
13580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13581   *) ac_try_echo=$ac_try;;
13582 esac
13583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13584   (eval "$ac_try") 2>&5
13585   ac_status=$?
13586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587   (exit $ac_status); }; } &&
13588          { ac_try='test -s conftest$ac_exeext'
13589   { (case "(($ac_try" in
13590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13591   *) ac_try_echo=$ac_try;;
13592 esac
13593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13594   (eval "$ac_try") 2>&5
13595   ac_status=$?
13596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597   (exit $ac_status); }; }; then
13598   ac_cv_search_iJIT_IsProfilingActive=$ac_res
13599 else
13600   echo "$as_me: failed program was:" >&5
13601 sed 's/^/| /' conftest.$ac_ext >&5
13602
13603
13604 fi
13605
13606 rm -f core conftest.err conftest.$ac_objext \
13607       conftest$ac_exeext
13608   if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13609   break
13610 fi
13611 done
13612 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13613   :
13614 else
13615   ac_cv_search_iJIT_IsProfilingActive=no
13616 fi
13617 rm conftest.$ac_ext
13618 LIBS=$ac_func_search_save_LIBS
13619 fi
13620 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13621 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13622 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13623 if test "$ac_res" != no; then
13624   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13625
13626 else
13627
13628         echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13629         exit -1
13630
13631 fi
13632
13633       if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13634   { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13635 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13636 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13637   echo $ECHO_N "(cached) $ECHO_C" >&6
13638 fi
13639 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13640 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13641 else
13642   # Is the header compilable?
13643 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13644 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13645 cat >conftest.$ac_ext <<_ACEOF
13646 /* confdefs.h.  */
13647 _ACEOF
13648 cat confdefs.h >>conftest.$ac_ext
13649 cat >>conftest.$ac_ext <<_ACEOF
13650 /* end confdefs.h.  */
13651 $ac_includes_default
13652 #include <jitprofiling.h>
13653 _ACEOF
13654 rm -f conftest.$ac_objext
13655 if { (ac_try="$ac_compile"
13656 case "(($ac_try" in
13657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13658   *) ac_try_echo=$ac_try;;
13659 esac
13660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13661   (eval "$ac_compile") 2>conftest.er1
13662   ac_status=$?
13663   grep -v '^ *+' conftest.er1 >conftest.err
13664   rm -f conftest.er1
13665   cat conftest.err >&5
13666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667   (exit $ac_status); } &&
13668          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13669   { (case "(($ac_try" in
13670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671   *) ac_try_echo=$ac_try;;
13672 esac
13673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674   (eval "$ac_try") 2>&5
13675   ac_status=$?
13676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677   (exit $ac_status); }; } &&
13678          { ac_try='test -s conftest.$ac_objext'
13679   { (case "(($ac_try" in
13680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13681   *) ac_try_echo=$ac_try;;
13682 esac
13683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13684   (eval "$ac_try") 2>&5
13685   ac_status=$?
13686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687   (exit $ac_status); }; }; then
13688   ac_header_compiler=yes
13689 else
13690   echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13692
13693         ac_header_compiler=no
13694 fi
13695
13696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13698 echo "${ECHO_T}$ac_header_compiler" >&6; }
13699
13700 # Is the header present?
13701 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13702 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13703 cat >conftest.$ac_ext <<_ACEOF
13704 /* confdefs.h.  */
13705 _ACEOF
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h.  */
13709 #include <jitprofiling.h>
13710 _ACEOF
13711 if { (ac_try="$ac_cpp conftest.$ac_ext"
13712 case "(($ac_try" in
13713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13714   *) ac_try_echo=$ac_try;;
13715 esac
13716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13717   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13718   ac_status=$?
13719   grep -v '^ *+' conftest.er1 >conftest.err
13720   rm -f conftest.er1
13721   cat conftest.err >&5
13722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723   (exit $ac_status); } >/dev/null; then
13724   if test -s conftest.err; then
13725     ac_cpp_err=$ac_c_preproc_warn_flag
13726     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13727   else
13728     ac_cpp_err=
13729   fi
13730 else
13731   ac_cpp_err=yes
13732 fi
13733 if test -z "$ac_cpp_err"; then
13734   ac_header_preproc=yes
13735 else
13736   echo "$as_me: failed program was:" >&5
13737 sed 's/^/| /' conftest.$ac_ext >&5
13738
13739   ac_header_preproc=no
13740 fi
13741
13742 rm -f conftest.err conftest.$ac_ext
13743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13744 echo "${ECHO_T}$ac_header_preproc" >&6; }
13745
13746 # So?  What about this header?
13747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13748   yes:no: )
13749     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13750 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13751     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13752 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13753     ac_header_preproc=yes
13754     ;;
13755   no:yes:* )
13756     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13757 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13758     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&5
13759 echo "$as_me: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&2;}
13760     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13761 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13762     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&5
13763 echo "$as_me: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13764     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13765 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13766     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13767 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13768     ( cat <<\_ASBOX
13769 ## ------------------------------------ ##
13770 ## Report this to http://llvm.org/bugs/ ##
13771 ## ------------------------------------ ##
13772 _ASBOX
13773      ) | sed "s/^/$as_me: WARNING:     /" >&2
13774     ;;
13775 esac
13776 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13777 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13778 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13779   echo $ECHO_N "(cached) $ECHO_C" >&6
13780 else
13781   ac_cv_header_jitprofiling_h=$ac_header_preproc
13782 fi
13783 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13784 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13785
13786 fi
13787 if test $ac_cv_header_jitprofiling_h = yes; then
13788   :
13789 else
13790
13791         echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13792         exit -1
13793
13794 fi
13795
13796
13797
13798
13799 else
13800
13801       USE_INTEL_JITEVENTS=0
13802
13803
13804 fi
13805
13806
13807 cat >>confdefs.h <<_ACEOF
13808 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13809 _ACEOF
13810
13811
13812 for ac_prog in xml2-config
13813 do
13814   # Extract the first word of "$ac_prog", so it can be a program name with args.
13815 set dummy $ac_prog; ac_word=$2
13816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13818 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13819   echo $ECHO_N "(cached) $ECHO_C" >&6
13820 else
13821   if test -n "$XML2CONFIG"; then
13822   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13823 else
13824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13825 for as_dir in $PATH
13826 do
13827   IFS=$as_save_IFS
13828   test -z "$as_dir" && as_dir=.
13829   for ac_exec_ext in '' $ac_executable_extensions; do
13830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13831     ac_cv_prog_XML2CONFIG="$ac_prog"
13832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13833     break 2
13834   fi
13835 done
13836 done
13837 IFS=$as_save_IFS
13838
13839 fi
13840 fi
13841 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13842 if test -n "$XML2CONFIG"; then
13843   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13844 echo "${ECHO_T}$XML2CONFIG" >&6; }
13845 else
13846   { echo "$as_me:$LINENO: result: no" >&5
13847 echo "${ECHO_T}no" >&6; }
13848 fi
13849
13850
13851   test -n "$XML2CONFIG" && break
13852 done
13853
13854
13855 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13856 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13857 if test "x$XML2CONFIG" = "x"; then
13858  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13859 echo "${ECHO_T}xml2-config not found" >&6; }
13860 else
13861  LIBXML2_INC=`$XML2CONFIG --cflags`
13862  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13863 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13864  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13865 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13866 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13867   echo $ECHO_N "(cached) $ECHO_C" >&6
13868 else
13869   ac_check_lib_save_LIBS=$LIBS
13870 LIBS="-lxml2  $LIBS"
13871 cat >conftest.$ac_ext <<_ACEOF
13872 /* confdefs.h.  */
13873 _ACEOF
13874 cat confdefs.h >>conftest.$ac_ext
13875 cat >>conftest.$ac_ext <<_ACEOF
13876 /* end confdefs.h.  */
13877
13878 /* Override any GCC internal prototype to avoid an error.
13879    Use char because int might match the return type of a GCC
13880    builtin and then its argument prototype would still apply.  */
13881 #ifdef __cplusplus
13882 extern "C"
13883 #endif
13884 char xmlReadFile ();
13885 int
13886 main ()
13887 {
13888 return xmlReadFile ();
13889   ;
13890   return 0;
13891 }
13892 _ACEOF
13893 rm -f conftest.$ac_objext conftest$ac_exeext
13894 if { (ac_try="$ac_link"
13895 case "(($ac_try" in
13896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897   *) ac_try_echo=$ac_try;;
13898 esac
13899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900   (eval "$ac_link") 2>conftest.er1
13901   ac_status=$?
13902   grep -v '^ *+' conftest.er1 >conftest.err
13903   rm -f conftest.er1
13904   cat conftest.err >&5
13905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906   (exit $ac_status); } &&
13907          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13908   { (case "(($ac_try" in
13909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13910   *) ac_try_echo=$ac_try;;
13911 esac
13912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13913   (eval "$ac_try") 2>&5
13914   ac_status=$?
13915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916   (exit $ac_status); }; } &&
13917          { ac_try='test -s conftest$ac_exeext'
13918   { (case "(($ac_try" in
13919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13920   *) ac_try_echo=$ac_try;;
13921 esac
13922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13923   (eval "$ac_try") 2>&5
13924   ac_status=$?
13925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926   (exit $ac_status); }; }; then
13927   ac_cv_lib_xml2_xmlReadFile=yes
13928 else
13929   echo "$as_me: failed program was:" >&5
13930 sed 's/^/| /' conftest.$ac_ext >&5
13931
13932         ac_cv_lib_xml2_xmlReadFile=no
13933 fi
13934
13935 rm -f core conftest.err conftest.$ac_objext \
13936       conftest$ac_exeext conftest.$ac_ext
13937 LIBS=$ac_check_lib_save_LIBS
13938 fi
13939 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13940 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13941 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13942
13943 cat >>confdefs.h <<\_ACEOF
13944 #define CLANG_HAVE_LIBXML 1
13945 _ACEOF
13946
13947                                 LIBXML2_LIBS="-lxml2"
13948 fi
13949
13950 fi
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960 ac_header_dirent=no
13961 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13962   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13963 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13964 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13966   echo $ECHO_N "(cached) $ECHO_C" >&6
13967 else
13968   cat >conftest.$ac_ext <<_ACEOF
13969 /* confdefs.h.  */
13970 _ACEOF
13971 cat confdefs.h >>conftest.$ac_ext
13972 cat >>conftest.$ac_ext <<_ACEOF
13973 /* end confdefs.h.  */
13974 #include <sys/types.h>
13975 #include <$ac_hdr>
13976
13977 int
13978 main ()
13979 {
13980 if ((DIR *) 0)
13981 return 0;
13982   ;
13983   return 0;
13984 }
13985 _ACEOF
13986 rm -f conftest.$ac_objext
13987 if { (ac_try="$ac_compile"
13988 case "(($ac_try" in
13989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990   *) ac_try_echo=$ac_try;;
13991 esac
13992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13993   (eval "$ac_compile") 2>conftest.er1
13994   ac_status=$?
13995   grep -v '^ *+' conftest.er1 >conftest.err
13996   rm -f conftest.er1
13997   cat conftest.err >&5
13998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999   (exit $ac_status); } &&
14000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14001   { (case "(($ac_try" in
14002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14003   *) ac_try_echo=$ac_try;;
14004 esac
14005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14006   (eval "$ac_try") 2>&5
14007   ac_status=$?
14008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009   (exit $ac_status); }; } &&
14010          { ac_try='test -s conftest.$ac_objext'
14011   { (case "(($ac_try" in
14012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14013   *) ac_try_echo=$ac_try;;
14014 esac
14015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14016   (eval "$ac_try") 2>&5
14017   ac_status=$?
14018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019   (exit $ac_status); }; }; then
14020   eval "$as_ac_Header=yes"
14021 else
14022   echo "$as_me: failed program was:" >&5
14023 sed 's/^/| /' conftest.$ac_ext >&5
14024
14025         eval "$as_ac_Header=no"
14026 fi
14027
14028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14029 fi
14030 ac_res=`eval echo '${'$as_ac_Header'}'`
14031                { echo "$as_me:$LINENO: result: $ac_res" >&5
14032 echo "${ECHO_T}$ac_res" >&6; }
14033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14034   cat >>confdefs.h <<_ACEOF
14035 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14036 _ACEOF
14037
14038 ac_header_dirent=$ac_hdr; break
14039 fi
14040
14041 done
14042 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14043 if test $ac_header_dirent = dirent.h; then
14044   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14045 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14046 if test "${ac_cv_search_opendir+set}" = set; then
14047   echo $ECHO_N "(cached) $ECHO_C" >&6
14048 else
14049   ac_func_search_save_LIBS=$LIBS
14050 cat >conftest.$ac_ext <<_ACEOF
14051 /* confdefs.h.  */
14052 _ACEOF
14053 cat confdefs.h >>conftest.$ac_ext
14054 cat >>conftest.$ac_ext <<_ACEOF
14055 /* end confdefs.h.  */
14056
14057 /* Override any GCC internal prototype to avoid an error.
14058    Use char because int might match the return type of a GCC
14059    builtin and then its argument prototype would still apply.  */
14060 #ifdef __cplusplus
14061 extern "C"
14062 #endif
14063 char opendir ();
14064 int
14065 main ()
14066 {
14067 return opendir ();
14068   ;
14069   return 0;
14070 }
14071 _ACEOF
14072 for ac_lib in '' dir; do
14073   if test -z "$ac_lib"; then
14074     ac_res="none required"
14075   else
14076     ac_res=-l$ac_lib
14077     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14078   fi
14079   rm -f conftest.$ac_objext conftest$ac_exeext
14080 if { (ac_try="$ac_link"
14081 case "(($ac_try" in
14082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083   *) ac_try_echo=$ac_try;;
14084 esac
14085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086   (eval "$ac_link") 2>conftest.er1
14087   ac_status=$?
14088   grep -v '^ *+' conftest.er1 >conftest.err
14089   rm -f conftest.er1
14090   cat conftest.err >&5
14091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092   (exit $ac_status); } &&
14093          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14094   { (case "(($ac_try" in
14095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096   *) ac_try_echo=$ac_try;;
14097 esac
14098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099   (eval "$ac_try") 2>&5
14100   ac_status=$?
14101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102   (exit $ac_status); }; } &&
14103          { ac_try='test -s conftest$ac_exeext'
14104   { (case "(($ac_try" in
14105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14106   *) ac_try_echo=$ac_try;;
14107 esac
14108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14109   (eval "$ac_try") 2>&5
14110   ac_status=$?
14111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112   (exit $ac_status); }; }; then
14113   ac_cv_search_opendir=$ac_res
14114 else
14115   echo "$as_me: failed program was:" >&5
14116 sed 's/^/| /' conftest.$ac_ext >&5
14117
14118
14119 fi
14120
14121 rm -f core conftest.err conftest.$ac_objext \
14122       conftest$ac_exeext
14123   if test "${ac_cv_search_opendir+set}" = set; then
14124   break
14125 fi
14126 done
14127 if test "${ac_cv_search_opendir+set}" = set; then
14128   :
14129 else
14130   ac_cv_search_opendir=no
14131 fi
14132 rm conftest.$ac_ext
14133 LIBS=$ac_func_search_save_LIBS
14134 fi
14135 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14136 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14137 ac_res=$ac_cv_search_opendir
14138 if test "$ac_res" != no; then
14139   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14140
14141 fi
14142
14143 else
14144   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14145 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14146 if test "${ac_cv_search_opendir+set}" = set; then
14147   echo $ECHO_N "(cached) $ECHO_C" >&6
14148 else
14149   ac_func_search_save_LIBS=$LIBS
14150 cat >conftest.$ac_ext <<_ACEOF
14151 /* confdefs.h.  */
14152 _ACEOF
14153 cat confdefs.h >>conftest.$ac_ext
14154 cat >>conftest.$ac_ext <<_ACEOF
14155 /* end confdefs.h.  */
14156
14157 /* Override any GCC internal prototype to avoid an error.
14158    Use char because int might match the return type of a GCC
14159    builtin and then its argument prototype would still apply.  */
14160 #ifdef __cplusplus
14161 extern "C"
14162 #endif
14163 char opendir ();
14164 int
14165 main ()
14166 {
14167 return opendir ();
14168   ;
14169   return 0;
14170 }
14171 _ACEOF
14172 for ac_lib in '' x; do
14173   if test -z "$ac_lib"; then
14174     ac_res="none required"
14175   else
14176     ac_res=-l$ac_lib
14177     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14178   fi
14179   rm -f conftest.$ac_objext conftest$ac_exeext
14180 if { (ac_try="$ac_link"
14181 case "(($ac_try" in
14182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14183   *) ac_try_echo=$ac_try;;
14184 esac
14185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14186   (eval "$ac_link") 2>conftest.er1
14187   ac_status=$?
14188   grep -v '^ *+' conftest.er1 >conftest.err
14189   rm -f conftest.er1
14190   cat conftest.err >&5
14191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192   (exit $ac_status); } &&
14193          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14194   { (case "(($ac_try" in
14195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196   *) ac_try_echo=$ac_try;;
14197 esac
14198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199   (eval "$ac_try") 2>&5
14200   ac_status=$?
14201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202   (exit $ac_status); }; } &&
14203          { ac_try='test -s conftest$ac_exeext'
14204   { (case "(($ac_try" in
14205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206   *) ac_try_echo=$ac_try;;
14207 esac
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209   (eval "$ac_try") 2>&5
14210   ac_status=$?
14211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212   (exit $ac_status); }; }; then
14213   ac_cv_search_opendir=$ac_res
14214 else
14215   echo "$as_me: failed program was:" >&5
14216 sed 's/^/| /' conftest.$ac_ext >&5
14217
14218
14219 fi
14220
14221 rm -f core conftest.err conftest.$ac_objext \
14222       conftest$ac_exeext
14223   if test "${ac_cv_search_opendir+set}" = set; then
14224   break
14225 fi
14226 done
14227 if test "${ac_cv_search_opendir+set}" = set; then
14228   :
14229 else
14230   ac_cv_search_opendir=no
14231 fi
14232 rm conftest.$ac_ext
14233 LIBS=$ac_func_search_save_LIBS
14234 fi
14235 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14236 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14237 ac_res=$ac_cv_search_opendir
14238 if test "$ac_res" != no; then
14239   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14240
14241 fi
14242
14243 fi
14244
14245 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14246 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14247 if test "${ac_cv_header_mmap_anon+set}" = set; then
14248   echo $ECHO_N "(cached) $ECHO_C" >&6
14249 else
14250    ac_ext=c
14251 ac_cpp='$CPP $CPPFLAGS'
14252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14255
14256   cat >conftest.$ac_ext <<_ACEOF
14257 /* confdefs.h.  */
14258 _ACEOF
14259 cat confdefs.h >>conftest.$ac_ext
14260 cat >>conftest.$ac_ext <<_ACEOF
14261 /* end confdefs.h.  */
14262 #include <sys/mman.h>
14263 #include <unistd.h>
14264 #include <fcntl.h>
14265 int
14266 main ()
14267 {
14268 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14269   ;
14270   return 0;
14271 }
14272 _ACEOF
14273 rm -f conftest.$ac_objext
14274 if { (ac_try="$ac_compile"
14275 case "(($ac_try" in
14276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14277   *) ac_try_echo=$ac_try;;
14278 esac
14279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14280   (eval "$ac_compile") 2>conftest.er1
14281   ac_status=$?
14282   grep -v '^ *+' conftest.er1 >conftest.err
14283   rm -f conftest.er1
14284   cat conftest.err >&5
14285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286   (exit $ac_status); } &&
14287          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14288   { (case "(($ac_try" in
14289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14290   *) ac_try_echo=$ac_try;;
14291 esac
14292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14293   (eval "$ac_try") 2>&5
14294   ac_status=$?
14295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296   (exit $ac_status); }; } &&
14297          { ac_try='test -s conftest.$ac_objext'
14298   { (case "(($ac_try" in
14299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14300   *) ac_try_echo=$ac_try;;
14301 esac
14302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303   (eval "$ac_try") 2>&5
14304   ac_status=$?
14305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306   (exit $ac_status); }; }; then
14307   ac_cv_header_mmap_anon=yes
14308 else
14309   echo "$as_me: failed program was:" >&5
14310 sed 's/^/| /' conftest.$ac_ext >&5
14311
14312         ac_cv_header_mmap_anon=no
14313 fi
14314
14315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14316   ac_ext=c
14317 ac_cpp='$CPP $CPPFLAGS'
14318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14321
14322
14323 fi
14324 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14325 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14326 if test "$ac_cv_header_mmap_anon" = yes; then
14327
14328 cat >>confdefs.h <<\_ACEOF
14329 #define HAVE_MMAP_ANONYMOUS 1
14330 _ACEOF
14331
14332 fi
14333
14334 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14335 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14336 if test "${ac_cv_header_stat_broken+set}" = set; then
14337   echo $ECHO_N "(cached) $ECHO_C" >&6
14338 else
14339   cat >conftest.$ac_ext <<_ACEOF
14340 /* confdefs.h.  */
14341 _ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h.  */
14345 #include <sys/types.h>
14346 #include <sys/stat.h>
14347
14348 #if defined S_ISBLK && defined S_IFDIR
14349 # if S_ISBLK (S_IFDIR)
14350 You lose.
14351 # endif
14352 #endif
14353
14354 #if defined S_ISBLK && defined S_IFCHR
14355 # if S_ISBLK (S_IFCHR)
14356 You lose.
14357 # endif
14358 #endif
14359
14360 #if defined S_ISLNK && defined S_IFREG
14361 # if S_ISLNK (S_IFREG)
14362 You lose.
14363 # endif
14364 #endif
14365
14366 #if defined S_ISSOCK && defined S_IFREG
14367 # if S_ISSOCK (S_IFREG)
14368 You lose.
14369 # endif
14370 #endif
14371
14372 _ACEOF
14373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14374   $EGREP "You lose" >/dev/null 2>&1; then
14375   ac_cv_header_stat_broken=yes
14376 else
14377   ac_cv_header_stat_broken=no
14378 fi
14379 rm -f conftest*
14380
14381 fi
14382 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14383 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14384 if test $ac_cv_header_stat_broken = yes; then
14385
14386 cat >>confdefs.h <<\_ACEOF
14387 #define STAT_MACROS_BROKEN 1
14388 _ACEOF
14389
14390 fi
14391
14392 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14393 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14394 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14395   echo $ECHO_N "(cached) $ECHO_C" >&6
14396 else
14397   cat >conftest.$ac_ext <<_ACEOF
14398 /* confdefs.h.  */
14399 _ACEOF
14400 cat confdefs.h >>conftest.$ac_ext
14401 cat >>conftest.$ac_ext <<_ACEOF
14402 /* end confdefs.h.  */
14403 #include <sys/types.h>
14404 #include <sys/wait.h>
14405 #ifndef WEXITSTATUS
14406 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14407 #endif
14408 #ifndef WIFEXITED
14409 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14410 #endif
14411
14412 int
14413 main ()
14414 {
14415   int s;
14416   wait (&s);
14417   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14418   ;
14419   return 0;
14420 }
14421 _ACEOF
14422 rm -f conftest.$ac_objext
14423 if { (ac_try="$ac_compile"
14424 case "(($ac_try" in
14425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14426   *) ac_try_echo=$ac_try;;
14427 esac
14428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14429   (eval "$ac_compile") 2>conftest.er1
14430   ac_status=$?
14431   grep -v '^ *+' conftest.er1 >conftest.err
14432   rm -f conftest.er1
14433   cat conftest.err >&5
14434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435   (exit $ac_status); } &&
14436          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14437   { (case "(($ac_try" in
14438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14439   *) ac_try_echo=$ac_try;;
14440 esac
14441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14442   (eval "$ac_try") 2>&5
14443   ac_status=$?
14444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445   (exit $ac_status); }; } &&
14446          { ac_try='test -s conftest.$ac_objext'
14447   { (case "(($ac_try" in
14448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14449   *) ac_try_echo=$ac_try;;
14450 esac
14451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14452   (eval "$ac_try") 2>&5
14453   ac_status=$?
14454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455   (exit $ac_status); }; }; then
14456   ac_cv_header_sys_wait_h=yes
14457 else
14458   echo "$as_me: failed program was:" >&5
14459 sed 's/^/| /' conftest.$ac_ext >&5
14460
14461         ac_cv_header_sys_wait_h=no
14462 fi
14463
14464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14465 fi
14466 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14467 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14468 if test $ac_cv_header_sys_wait_h = yes; then
14469
14470 cat >>confdefs.h <<\_ACEOF
14471 #define HAVE_SYS_WAIT_H 1
14472 _ACEOF
14473
14474 fi
14475
14476 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14477 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14478 if test "${ac_cv_header_time+set}" = set; then
14479   echo $ECHO_N "(cached) $ECHO_C" >&6
14480 else
14481   cat >conftest.$ac_ext <<_ACEOF
14482 /* confdefs.h.  */
14483 _ACEOF
14484 cat confdefs.h >>conftest.$ac_ext
14485 cat >>conftest.$ac_ext <<_ACEOF
14486 /* end confdefs.h.  */
14487 #include <sys/types.h>
14488 #include <sys/time.h>
14489 #include <time.h>
14490
14491 int
14492 main ()
14493 {
14494 if ((struct tm *) 0)
14495 return 0;
14496   ;
14497   return 0;
14498 }
14499 _ACEOF
14500 rm -f conftest.$ac_objext
14501 if { (ac_try="$ac_compile"
14502 case "(($ac_try" in
14503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14504   *) ac_try_echo=$ac_try;;
14505 esac
14506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14507   (eval "$ac_compile") 2>conftest.er1
14508   ac_status=$?
14509   grep -v '^ *+' conftest.er1 >conftest.err
14510   rm -f conftest.er1
14511   cat conftest.err >&5
14512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513   (exit $ac_status); } &&
14514          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14515   { (case "(($ac_try" in
14516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14517   *) ac_try_echo=$ac_try;;
14518 esac
14519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14520   (eval "$ac_try") 2>&5
14521   ac_status=$?
14522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523   (exit $ac_status); }; } &&
14524          { ac_try='test -s conftest.$ac_objext'
14525   { (case "(($ac_try" in
14526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14527   *) ac_try_echo=$ac_try;;
14528 esac
14529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530   (eval "$ac_try") 2>&5
14531   ac_status=$?
14532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533   (exit $ac_status); }; }; then
14534   ac_cv_header_time=yes
14535 else
14536   echo "$as_me: failed program was:" >&5
14537 sed 's/^/| /' conftest.$ac_ext >&5
14538
14539         ac_cv_header_time=no
14540 fi
14541
14542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14543 fi
14544 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14545 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14546 if test $ac_cv_header_time = yes; then
14547
14548 cat >>confdefs.h <<\_ACEOF
14549 #define TIME_WITH_SYS_TIME 1
14550 _ACEOF
14551
14552 fi
14553
14554
14555
14556
14557
14558
14559
14560
14561 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14562 do
14563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14565   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14568   echo $ECHO_N "(cached) $ECHO_C" >&6
14569 fi
14570 ac_res=`eval echo '${'$as_ac_Header'}'`
14571                { echo "$as_me:$LINENO: result: $ac_res" >&5
14572 echo "${ECHO_T}$ac_res" >&6; }
14573 else
14574   # Is the header compilable?
14575 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14577 cat >conftest.$ac_ext <<_ACEOF
14578 /* confdefs.h.  */
14579 _ACEOF
14580 cat confdefs.h >>conftest.$ac_ext
14581 cat >>conftest.$ac_ext <<_ACEOF
14582 /* end confdefs.h.  */
14583 $ac_includes_default
14584 #include <$ac_header>
14585 _ACEOF
14586 rm -f conftest.$ac_objext
14587 if { (ac_try="$ac_compile"
14588 case "(($ac_try" in
14589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590   *) ac_try_echo=$ac_try;;
14591 esac
14592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14593   (eval "$ac_compile") 2>conftest.er1
14594   ac_status=$?
14595   grep -v '^ *+' conftest.er1 >conftest.err
14596   rm -f conftest.er1
14597   cat conftest.err >&5
14598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599   (exit $ac_status); } &&
14600          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14601   { (case "(($ac_try" in
14602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603   *) ac_try_echo=$ac_try;;
14604 esac
14605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14606   (eval "$ac_try") 2>&5
14607   ac_status=$?
14608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609   (exit $ac_status); }; } &&
14610          { ac_try='test -s conftest.$ac_objext'
14611   { (case "(($ac_try" in
14612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613   *) ac_try_echo=$ac_try;;
14614 esac
14615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616   (eval "$ac_try") 2>&5
14617   ac_status=$?
14618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619   (exit $ac_status); }; }; then
14620   ac_header_compiler=yes
14621 else
14622   echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14624
14625         ac_header_compiler=no
14626 fi
14627
14628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14629 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14630 echo "${ECHO_T}$ac_header_compiler" >&6; }
14631
14632 # Is the header present?
14633 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14634 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14635 cat >conftest.$ac_ext <<_ACEOF
14636 /* confdefs.h.  */
14637 _ACEOF
14638 cat confdefs.h >>conftest.$ac_ext
14639 cat >>conftest.$ac_ext <<_ACEOF
14640 /* end confdefs.h.  */
14641 #include <$ac_header>
14642 _ACEOF
14643 if { (ac_try="$ac_cpp conftest.$ac_ext"
14644 case "(($ac_try" in
14645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646   *) ac_try_echo=$ac_try;;
14647 esac
14648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14650   ac_status=$?
14651   grep -v '^ *+' conftest.er1 >conftest.err
14652   rm -f conftest.er1
14653   cat conftest.err >&5
14654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655   (exit $ac_status); } >/dev/null; then
14656   if test -s conftest.err; then
14657     ac_cpp_err=$ac_c_preproc_warn_flag
14658     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14659   else
14660     ac_cpp_err=
14661   fi
14662 else
14663   ac_cpp_err=yes
14664 fi
14665 if test -z "$ac_cpp_err"; then
14666   ac_header_preproc=yes
14667 else
14668   echo "$as_me: failed program was:" >&5
14669 sed 's/^/| /' conftest.$ac_ext >&5
14670
14671   ac_header_preproc=no
14672 fi
14673
14674 rm -f conftest.err conftest.$ac_ext
14675 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14676 echo "${ECHO_T}$ac_header_preproc" >&6; }
14677
14678 # So?  What about this header?
14679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14680   yes:no: )
14681     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14683     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14685     ac_header_preproc=yes
14686     ;;
14687   no:yes:* )
14688     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14690     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14691 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14692     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14694     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14695 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14696     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14698     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14700     ( cat <<\_ASBOX
14701 ## ------------------------------------ ##
14702 ## Report this to http://llvm.org/bugs/ ##
14703 ## ------------------------------------ ##
14704 _ASBOX
14705      ) | sed "s/^/$as_me: WARNING:     /" >&2
14706     ;;
14707 esac
14708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14711   echo $ECHO_N "(cached) $ECHO_C" >&6
14712 else
14713   eval "$as_ac_Header=\$ac_header_preproc"
14714 fi
14715 ac_res=`eval echo '${'$as_ac_Header'}'`
14716                { echo "$as_me:$LINENO: result: $ac_res" >&5
14717 echo "${ECHO_T}$ac_res" >&6; }
14718
14719 fi
14720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14721   cat >>confdefs.h <<_ACEOF
14722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14723 _ACEOF
14724
14725 fi
14726
14727 done
14728
14729
14730
14731
14732
14733
14734
14735 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14736 do
14737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14739   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14742   echo $ECHO_N "(cached) $ECHO_C" >&6
14743 fi
14744 ac_res=`eval echo '${'$as_ac_Header'}'`
14745                { echo "$as_me:$LINENO: result: $ac_res" >&5
14746 echo "${ECHO_T}$ac_res" >&6; }
14747 else
14748   # Is the header compilable?
14749 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14751 cat >conftest.$ac_ext <<_ACEOF
14752 /* confdefs.h.  */
14753 _ACEOF
14754 cat confdefs.h >>conftest.$ac_ext
14755 cat >>conftest.$ac_ext <<_ACEOF
14756 /* end confdefs.h.  */
14757 $ac_includes_default
14758 #include <$ac_header>
14759 _ACEOF
14760 rm -f conftest.$ac_objext
14761 if { (ac_try="$ac_compile"
14762 case "(($ac_try" in
14763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14764   *) ac_try_echo=$ac_try;;
14765 esac
14766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14767   (eval "$ac_compile") 2>conftest.er1
14768   ac_status=$?
14769   grep -v '^ *+' conftest.er1 >conftest.err
14770   rm -f conftest.er1
14771   cat conftest.err >&5
14772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773   (exit $ac_status); } &&
14774          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14775   { (case "(($ac_try" in
14776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14777   *) ac_try_echo=$ac_try;;
14778 esac
14779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14780   (eval "$ac_try") 2>&5
14781   ac_status=$?
14782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783   (exit $ac_status); }; } &&
14784          { ac_try='test -s conftest.$ac_objext'
14785   { (case "(($ac_try" in
14786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787   *) ac_try_echo=$ac_try;;
14788 esac
14789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14790   (eval "$ac_try") 2>&5
14791   ac_status=$?
14792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793   (exit $ac_status); }; }; then
14794   ac_header_compiler=yes
14795 else
14796   echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14798
14799         ac_header_compiler=no
14800 fi
14801
14802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14804 echo "${ECHO_T}$ac_header_compiler" >&6; }
14805
14806 # Is the header present?
14807 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14809 cat >conftest.$ac_ext <<_ACEOF
14810 /* confdefs.h.  */
14811 _ACEOF
14812 cat confdefs.h >>conftest.$ac_ext
14813 cat >>conftest.$ac_ext <<_ACEOF
14814 /* end confdefs.h.  */
14815 #include <$ac_header>
14816 _ACEOF
14817 if { (ac_try="$ac_cpp conftest.$ac_ext"
14818 case "(($ac_try" in
14819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14820   *) ac_try_echo=$ac_try;;
14821 esac
14822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14823   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14824   ac_status=$?
14825   grep -v '^ *+' conftest.er1 >conftest.err
14826   rm -f conftest.er1
14827   cat conftest.err >&5
14828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829   (exit $ac_status); } >/dev/null; then
14830   if test -s conftest.err; then
14831     ac_cpp_err=$ac_c_preproc_warn_flag
14832     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14833   else
14834     ac_cpp_err=
14835   fi
14836 else
14837   ac_cpp_err=yes
14838 fi
14839 if test -z "$ac_cpp_err"; then
14840   ac_header_preproc=yes
14841 else
14842   echo "$as_me: failed program was:" >&5
14843 sed 's/^/| /' conftest.$ac_ext >&5
14844
14845   ac_header_preproc=no
14846 fi
14847
14848 rm -f conftest.err conftest.$ac_ext
14849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14850 echo "${ECHO_T}$ac_header_preproc" >&6; }
14851
14852 # So?  What about this header?
14853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14854   yes:no: )
14855     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14857     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14858 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14859     ac_header_preproc=yes
14860     ;;
14861   no:yes:* )
14862     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14864     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14865 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14866     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14867 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14868     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14869 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14870     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14872     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14873 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14874     ( cat <<\_ASBOX
14875 ## ------------------------------------ ##
14876 ## Report this to http://llvm.org/bugs/ ##
14877 ## ------------------------------------ ##
14878 _ASBOX
14879      ) | sed "s/^/$as_me: WARNING:     /" >&2
14880     ;;
14881 esac
14882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14885   echo $ECHO_N "(cached) $ECHO_C" >&6
14886 else
14887   eval "$as_ac_Header=\$ac_header_preproc"
14888 fi
14889 ac_res=`eval echo '${'$as_ac_Header'}'`
14890                { echo "$as_me:$LINENO: result: $ac_res" >&5
14891 echo "${ECHO_T}$ac_res" >&6; }
14892
14893 fi
14894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14895   cat >>confdefs.h <<_ACEOF
14896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14897 _ACEOF
14898
14899 fi
14900
14901 done
14902
14903
14904
14905 for ac_header in utime.h windows.h
14906 do
14907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14909   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14912   echo $ECHO_N "(cached) $ECHO_C" >&6
14913 fi
14914 ac_res=`eval echo '${'$as_ac_Header'}'`
14915                { echo "$as_me:$LINENO: result: $ac_res" >&5
14916 echo "${ECHO_T}$ac_res" >&6; }
14917 else
14918   # Is the header compilable?
14919 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14921 cat >conftest.$ac_ext <<_ACEOF
14922 /* confdefs.h.  */
14923 _ACEOF
14924 cat confdefs.h >>conftest.$ac_ext
14925 cat >>conftest.$ac_ext <<_ACEOF
14926 /* end confdefs.h.  */
14927 $ac_includes_default
14928 #include <$ac_header>
14929 _ACEOF
14930 rm -f conftest.$ac_objext
14931 if { (ac_try="$ac_compile"
14932 case "(($ac_try" in
14933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14934   *) ac_try_echo=$ac_try;;
14935 esac
14936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14937   (eval "$ac_compile") 2>conftest.er1
14938   ac_status=$?
14939   grep -v '^ *+' conftest.er1 >conftest.err
14940   rm -f conftest.er1
14941   cat conftest.err >&5
14942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943   (exit $ac_status); } &&
14944          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14945   { (case "(($ac_try" in
14946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14947   *) ac_try_echo=$ac_try;;
14948 esac
14949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14950   (eval "$ac_try") 2>&5
14951   ac_status=$?
14952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953   (exit $ac_status); }; } &&
14954          { ac_try='test -s conftest.$ac_objext'
14955   { (case "(($ac_try" in
14956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957   *) ac_try_echo=$ac_try;;
14958 esac
14959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960   (eval "$ac_try") 2>&5
14961   ac_status=$?
14962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963   (exit $ac_status); }; }; then
14964   ac_header_compiler=yes
14965 else
14966   echo "$as_me: failed program was:" >&5
14967 sed 's/^/| /' conftest.$ac_ext >&5
14968
14969         ac_header_compiler=no
14970 fi
14971
14972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14974 echo "${ECHO_T}$ac_header_compiler" >&6; }
14975
14976 # Is the header present?
14977 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14979 cat >conftest.$ac_ext <<_ACEOF
14980 /* confdefs.h.  */
14981 _ACEOF
14982 cat confdefs.h >>conftest.$ac_ext
14983 cat >>conftest.$ac_ext <<_ACEOF
14984 /* end confdefs.h.  */
14985 #include <$ac_header>
14986 _ACEOF
14987 if { (ac_try="$ac_cpp conftest.$ac_ext"
14988 case "(($ac_try" in
14989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990   *) ac_try_echo=$ac_try;;
14991 esac
14992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14994   ac_status=$?
14995   grep -v '^ *+' conftest.er1 >conftest.err
14996   rm -f conftest.er1
14997   cat conftest.err >&5
14998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999   (exit $ac_status); } >/dev/null; then
15000   if test -s conftest.err; then
15001     ac_cpp_err=$ac_c_preproc_warn_flag
15002     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15003   else
15004     ac_cpp_err=
15005   fi
15006 else
15007   ac_cpp_err=yes
15008 fi
15009 if test -z "$ac_cpp_err"; then
15010   ac_header_preproc=yes
15011 else
15012   echo "$as_me: failed program was:" >&5
15013 sed 's/^/| /' conftest.$ac_ext >&5
15014
15015   ac_header_preproc=no
15016 fi
15017
15018 rm -f conftest.err conftest.$ac_ext
15019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15020 echo "${ECHO_T}$ac_header_preproc" >&6; }
15021
15022 # So?  What about this header?
15023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15024   yes:no: )
15025     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15029     ac_header_preproc=yes
15030     ;;
15031   no:yes:* )
15032     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15034     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15035 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15036     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15038     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15039 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15040     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15042     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15044     ( cat <<\_ASBOX
15045 ## ------------------------------------ ##
15046 ## Report this to http://llvm.org/bugs/ ##
15047 ## ------------------------------------ ##
15048 _ASBOX
15049      ) | sed "s/^/$as_me: WARNING:     /" >&2
15050     ;;
15051 esac
15052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15055   echo $ECHO_N "(cached) $ECHO_C" >&6
15056 else
15057   eval "$as_ac_Header=\$ac_header_preproc"
15058 fi
15059 ac_res=`eval echo '${'$as_ac_Header'}'`
15060                { echo "$as_me:$LINENO: result: $ac_res" >&5
15061 echo "${ECHO_T}$ac_res" >&6; }
15062
15063 fi
15064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15065   cat >>confdefs.h <<_ACEOF
15066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15067 _ACEOF
15068
15069 fi
15070
15071 done
15072
15073
15074
15075
15076
15077
15078 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15079 do
15080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15082   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15085   echo $ECHO_N "(cached) $ECHO_C" >&6
15086 fi
15087 ac_res=`eval echo '${'$as_ac_Header'}'`
15088                { echo "$as_me:$LINENO: result: $ac_res" >&5
15089 echo "${ECHO_T}$ac_res" >&6; }
15090 else
15091   # Is the header compilable?
15092 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15094 cat >conftest.$ac_ext <<_ACEOF
15095 /* confdefs.h.  */
15096 _ACEOF
15097 cat confdefs.h >>conftest.$ac_ext
15098 cat >>conftest.$ac_ext <<_ACEOF
15099 /* end confdefs.h.  */
15100 $ac_includes_default
15101 #include <$ac_header>
15102 _ACEOF
15103 rm -f conftest.$ac_objext
15104 if { (ac_try="$ac_compile"
15105 case "(($ac_try" in
15106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15107   *) ac_try_echo=$ac_try;;
15108 esac
15109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15110   (eval "$ac_compile") 2>conftest.er1
15111   ac_status=$?
15112   grep -v '^ *+' conftest.er1 >conftest.err
15113   rm -f conftest.er1
15114   cat conftest.err >&5
15115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116   (exit $ac_status); } &&
15117          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15118   { (case "(($ac_try" in
15119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15120   *) ac_try_echo=$ac_try;;
15121 esac
15122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123   (eval "$ac_try") 2>&5
15124   ac_status=$?
15125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126   (exit $ac_status); }; } &&
15127          { ac_try='test -s conftest.$ac_objext'
15128   { (case "(($ac_try" in
15129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130   *) ac_try_echo=$ac_try;;
15131 esac
15132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133   (eval "$ac_try") 2>&5
15134   ac_status=$?
15135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136   (exit $ac_status); }; }; then
15137   ac_header_compiler=yes
15138 else
15139   echo "$as_me: failed program was:" >&5
15140 sed 's/^/| /' conftest.$ac_ext >&5
15141
15142         ac_header_compiler=no
15143 fi
15144
15145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15146 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15147 echo "${ECHO_T}$ac_header_compiler" >&6; }
15148
15149 # Is the header present?
15150 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15152 cat >conftest.$ac_ext <<_ACEOF
15153 /* confdefs.h.  */
15154 _ACEOF
15155 cat confdefs.h >>conftest.$ac_ext
15156 cat >>conftest.$ac_ext <<_ACEOF
15157 /* end confdefs.h.  */
15158 #include <$ac_header>
15159 _ACEOF
15160 if { (ac_try="$ac_cpp conftest.$ac_ext"
15161 case "(($ac_try" in
15162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15163   *) ac_try_echo=$ac_try;;
15164 esac
15165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15166   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15167   ac_status=$?
15168   grep -v '^ *+' conftest.er1 >conftest.err
15169   rm -f conftest.er1
15170   cat conftest.err >&5
15171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172   (exit $ac_status); } >/dev/null; then
15173   if test -s conftest.err; then
15174     ac_cpp_err=$ac_c_preproc_warn_flag
15175     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15176   else
15177     ac_cpp_err=
15178   fi
15179 else
15180   ac_cpp_err=yes
15181 fi
15182 if test -z "$ac_cpp_err"; then
15183   ac_header_preproc=yes
15184 else
15185   echo "$as_me: failed program was:" >&5
15186 sed 's/^/| /' conftest.$ac_ext >&5
15187
15188   ac_header_preproc=no
15189 fi
15190
15191 rm -f conftest.err conftest.$ac_ext
15192 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15193 echo "${ECHO_T}$ac_header_preproc" >&6; }
15194
15195 # So?  What about this header?
15196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15197   yes:no: )
15198     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15200     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15202     ac_header_preproc=yes
15203     ;;
15204   no:yes:* )
15205     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15207     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15208 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15209     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15211     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15212 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15213     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15215     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15217     ( cat <<\_ASBOX
15218 ## ------------------------------------ ##
15219 ## Report this to http://llvm.org/bugs/ ##
15220 ## ------------------------------------ ##
15221 _ASBOX
15222      ) | sed "s/^/$as_me: WARNING:     /" >&2
15223     ;;
15224 esac
15225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15228   echo $ECHO_N "(cached) $ECHO_C" >&6
15229 else
15230   eval "$as_ac_Header=\$ac_header_preproc"
15231 fi
15232 ac_res=`eval echo '${'$as_ac_Header'}'`
15233                { echo "$as_me:$LINENO: result: $ac_res" >&5
15234 echo "${ECHO_T}$ac_res" >&6; }
15235
15236 fi
15237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15238   cat >>confdefs.h <<_ACEOF
15239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15240 _ACEOF
15241
15242 fi
15243
15244 done
15245
15246
15247
15248
15249
15250 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15251 do
15252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15254   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15257   echo $ECHO_N "(cached) $ECHO_C" >&6
15258 fi
15259 ac_res=`eval echo '${'$as_ac_Header'}'`
15260                { echo "$as_me:$LINENO: result: $ac_res" >&5
15261 echo "${ECHO_T}$ac_res" >&6; }
15262 else
15263   # Is the header compilable?
15264 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15265 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15266 cat >conftest.$ac_ext <<_ACEOF
15267 /* confdefs.h.  */
15268 _ACEOF
15269 cat confdefs.h >>conftest.$ac_ext
15270 cat >>conftest.$ac_ext <<_ACEOF
15271 /* end confdefs.h.  */
15272 $ac_includes_default
15273 #include <$ac_header>
15274 _ACEOF
15275 rm -f conftest.$ac_objext
15276 if { (ac_try="$ac_compile"
15277 case "(($ac_try" in
15278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15279   *) ac_try_echo=$ac_try;;
15280 esac
15281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15282   (eval "$ac_compile") 2>conftest.er1
15283   ac_status=$?
15284   grep -v '^ *+' conftest.er1 >conftest.err
15285   rm -f conftest.er1
15286   cat conftest.err >&5
15287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288   (exit $ac_status); } &&
15289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15290   { (case "(($ac_try" in
15291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15292   *) ac_try_echo=$ac_try;;
15293 esac
15294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15295   (eval "$ac_try") 2>&5
15296   ac_status=$?
15297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298   (exit $ac_status); }; } &&
15299          { ac_try='test -s conftest.$ac_objext'
15300   { (case "(($ac_try" in
15301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15302   *) ac_try_echo=$ac_try;;
15303 esac
15304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15305   (eval "$ac_try") 2>&5
15306   ac_status=$?
15307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308   (exit $ac_status); }; }; then
15309   ac_header_compiler=yes
15310 else
15311   echo "$as_me: failed program was:" >&5
15312 sed 's/^/| /' conftest.$ac_ext >&5
15313
15314         ac_header_compiler=no
15315 fi
15316
15317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15318 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15319 echo "${ECHO_T}$ac_header_compiler" >&6; }
15320
15321 # Is the header present?
15322 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15324 cat >conftest.$ac_ext <<_ACEOF
15325 /* confdefs.h.  */
15326 _ACEOF
15327 cat confdefs.h >>conftest.$ac_ext
15328 cat >>conftest.$ac_ext <<_ACEOF
15329 /* end confdefs.h.  */
15330 #include <$ac_header>
15331 _ACEOF
15332 if { (ac_try="$ac_cpp conftest.$ac_ext"
15333 case "(($ac_try" in
15334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335   *) ac_try_echo=$ac_try;;
15336 esac
15337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15339   ac_status=$?
15340   grep -v '^ *+' conftest.er1 >conftest.err
15341   rm -f conftest.er1
15342   cat conftest.err >&5
15343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344   (exit $ac_status); } >/dev/null; then
15345   if test -s conftest.err; then
15346     ac_cpp_err=$ac_c_preproc_warn_flag
15347     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15348   else
15349     ac_cpp_err=
15350   fi
15351 else
15352   ac_cpp_err=yes
15353 fi
15354 if test -z "$ac_cpp_err"; then
15355   ac_header_preproc=yes
15356 else
15357   echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.$ac_ext >&5
15359
15360   ac_header_preproc=no
15361 fi
15362
15363 rm -f conftest.err conftest.$ac_ext
15364 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15365 echo "${ECHO_T}$ac_header_preproc" >&6; }
15366
15367 # So?  What about this header?
15368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15369   yes:no: )
15370     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15371 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15372     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15373 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15374     ac_header_preproc=yes
15375     ;;
15376   no:yes:* )
15377     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15378 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15379     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15380 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15381     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15382 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15383     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15384 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15385     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15387     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15388 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15389     ( cat <<\_ASBOX
15390 ## ------------------------------------ ##
15391 ## Report this to http://llvm.org/bugs/ ##
15392 ## ------------------------------------ ##
15393 _ASBOX
15394      ) | sed "s/^/$as_me: WARNING:     /" >&2
15395     ;;
15396 esac
15397 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15400   echo $ECHO_N "(cached) $ECHO_C" >&6
15401 else
15402   eval "$as_ac_Header=\$ac_header_preproc"
15403 fi
15404 ac_res=`eval echo '${'$as_ac_Header'}'`
15405                { echo "$as_me:$LINENO: result: $ac_res" >&5
15406 echo "${ECHO_T}$ac_res" >&6; }
15407
15408 fi
15409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15410   cat >>confdefs.h <<_ACEOF
15411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15412 _ACEOF
15413
15414 fi
15415
15416 done
15417
15418
15419 for ac_header in valgrind/valgrind.h
15420 do
15421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15423   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15426   echo $ECHO_N "(cached) $ECHO_C" >&6
15427 fi
15428 ac_res=`eval echo '${'$as_ac_Header'}'`
15429                { echo "$as_me:$LINENO: result: $ac_res" >&5
15430 echo "${ECHO_T}$ac_res" >&6; }
15431 else
15432   # Is the header compilable?
15433 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15435 cat >conftest.$ac_ext <<_ACEOF
15436 /* confdefs.h.  */
15437 _ACEOF
15438 cat confdefs.h >>conftest.$ac_ext
15439 cat >>conftest.$ac_ext <<_ACEOF
15440 /* end confdefs.h.  */
15441 $ac_includes_default
15442 #include <$ac_header>
15443 _ACEOF
15444 rm -f conftest.$ac_objext
15445 if { (ac_try="$ac_compile"
15446 case "(($ac_try" in
15447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15448   *) ac_try_echo=$ac_try;;
15449 esac
15450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15451   (eval "$ac_compile") 2>conftest.er1
15452   ac_status=$?
15453   grep -v '^ *+' conftest.er1 >conftest.err
15454   rm -f conftest.er1
15455   cat conftest.err >&5
15456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457   (exit $ac_status); } &&
15458          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15459   { (case "(($ac_try" in
15460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15461   *) ac_try_echo=$ac_try;;
15462 esac
15463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15464   (eval "$ac_try") 2>&5
15465   ac_status=$?
15466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467   (exit $ac_status); }; } &&
15468          { ac_try='test -s conftest.$ac_objext'
15469   { (case "(($ac_try" in
15470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471   *) ac_try_echo=$ac_try;;
15472 esac
15473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474   (eval "$ac_try") 2>&5
15475   ac_status=$?
15476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477   (exit $ac_status); }; }; then
15478   ac_header_compiler=yes
15479 else
15480   echo "$as_me: failed program was:" >&5
15481 sed 's/^/| /' conftest.$ac_ext >&5
15482
15483         ac_header_compiler=no
15484 fi
15485
15486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15487 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15488 echo "${ECHO_T}$ac_header_compiler" >&6; }
15489
15490 # Is the header present?
15491 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15493 cat >conftest.$ac_ext <<_ACEOF
15494 /* confdefs.h.  */
15495 _ACEOF
15496 cat confdefs.h >>conftest.$ac_ext
15497 cat >>conftest.$ac_ext <<_ACEOF
15498 /* end confdefs.h.  */
15499 #include <$ac_header>
15500 _ACEOF
15501 if { (ac_try="$ac_cpp conftest.$ac_ext"
15502 case "(($ac_try" in
15503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15504   *) ac_try_echo=$ac_try;;
15505 esac
15506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15507   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15508   ac_status=$?
15509   grep -v '^ *+' conftest.er1 >conftest.err
15510   rm -f conftest.er1
15511   cat conftest.err >&5
15512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513   (exit $ac_status); } >/dev/null; then
15514   if test -s conftest.err; then
15515     ac_cpp_err=$ac_c_preproc_warn_flag
15516     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15517   else
15518     ac_cpp_err=
15519   fi
15520 else
15521   ac_cpp_err=yes
15522 fi
15523 if test -z "$ac_cpp_err"; then
15524   ac_header_preproc=yes
15525 else
15526   echo "$as_me: failed program was:" >&5
15527 sed 's/^/| /' conftest.$ac_ext >&5
15528
15529   ac_header_preproc=no
15530 fi
15531
15532 rm -f conftest.err conftest.$ac_ext
15533 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15534 echo "${ECHO_T}$ac_header_preproc" >&6; }
15535
15536 # So?  What about this header?
15537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15538   yes:no: )
15539     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15541     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15543     ac_header_preproc=yes
15544     ;;
15545   no:yes:* )
15546     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15548     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15549 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15550     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15552     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15553 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15554     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15556     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15558     ( cat <<\_ASBOX
15559 ## ------------------------------------ ##
15560 ## Report this to http://llvm.org/bugs/ ##
15561 ## ------------------------------------ ##
15562 _ASBOX
15563      ) | sed "s/^/$as_me: WARNING:     /" >&2
15564     ;;
15565 esac
15566 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15569   echo $ECHO_N "(cached) $ECHO_C" >&6
15570 else
15571   eval "$as_ac_Header=\$ac_header_preproc"
15572 fi
15573 ac_res=`eval echo '${'$as_ac_Header'}'`
15574                { echo "$as_me:$LINENO: result: $ac_res" >&5
15575 echo "${ECHO_T}$ac_res" >&6; }
15576
15577 fi
15578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15579   cat >>confdefs.h <<_ACEOF
15580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15581 _ACEOF
15582
15583 fi
15584
15585 done
15586
15587
15588 for ac_header in fenv.h
15589 do
15590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15592   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15595   echo $ECHO_N "(cached) $ECHO_C" >&6
15596 fi
15597 ac_res=`eval echo '${'$as_ac_Header'}'`
15598                { echo "$as_me:$LINENO: result: $ac_res" >&5
15599 echo "${ECHO_T}$ac_res" >&6; }
15600 else
15601   # Is the header compilable?
15602 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15604 cat >conftest.$ac_ext <<_ACEOF
15605 /* confdefs.h.  */
15606 _ACEOF
15607 cat confdefs.h >>conftest.$ac_ext
15608 cat >>conftest.$ac_ext <<_ACEOF
15609 /* end confdefs.h.  */
15610 $ac_includes_default
15611 #include <$ac_header>
15612 _ACEOF
15613 rm -f conftest.$ac_objext
15614 if { (ac_try="$ac_compile"
15615 case "(($ac_try" in
15616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15617   *) ac_try_echo=$ac_try;;
15618 esac
15619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15620   (eval "$ac_compile") 2>conftest.er1
15621   ac_status=$?
15622   grep -v '^ *+' conftest.er1 >conftest.err
15623   rm -f conftest.er1
15624   cat conftest.err >&5
15625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626   (exit $ac_status); } &&
15627          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15628   { (case "(($ac_try" in
15629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15630   *) ac_try_echo=$ac_try;;
15631 esac
15632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15633   (eval "$ac_try") 2>&5
15634   ac_status=$?
15635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636   (exit $ac_status); }; } &&
15637          { ac_try='test -s conftest.$ac_objext'
15638   { (case "(($ac_try" in
15639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640   *) ac_try_echo=$ac_try;;
15641 esac
15642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643   (eval "$ac_try") 2>&5
15644   ac_status=$?
15645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646   (exit $ac_status); }; }; then
15647   ac_header_compiler=yes
15648 else
15649   echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.$ac_ext >&5
15651
15652         ac_header_compiler=no
15653 fi
15654
15655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15656 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15657 echo "${ECHO_T}$ac_header_compiler" >&6; }
15658
15659 # Is the header present?
15660 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15661 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15662 cat >conftest.$ac_ext <<_ACEOF
15663 /* confdefs.h.  */
15664 _ACEOF
15665 cat confdefs.h >>conftest.$ac_ext
15666 cat >>conftest.$ac_ext <<_ACEOF
15667 /* end confdefs.h.  */
15668 #include <$ac_header>
15669 _ACEOF
15670 if { (ac_try="$ac_cpp conftest.$ac_ext"
15671 case "(($ac_try" in
15672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15673   *) ac_try_echo=$ac_try;;
15674 esac
15675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15676   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15677   ac_status=$?
15678   grep -v '^ *+' conftest.er1 >conftest.err
15679   rm -f conftest.er1
15680   cat conftest.err >&5
15681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682   (exit $ac_status); } >/dev/null; then
15683   if test -s conftest.err; then
15684     ac_cpp_err=$ac_c_preproc_warn_flag
15685     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15686   else
15687     ac_cpp_err=
15688   fi
15689 else
15690   ac_cpp_err=yes
15691 fi
15692 if test -z "$ac_cpp_err"; then
15693   ac_header_preproc=yes
15694 else
15695   echo "$as_me: failed program was:" >&5
15696 sed 's/^/| /' conftest.$ac_ext >&5
15697
15698   ac_header_preproc=no
15699 fi
15700
15701 rm -f conftest.err conftest.$ac_ext
15702 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15703 echo "${ECHO_T}$ac_header_preproc" >&6; }
15704
15705 # So?  What about this header?
15706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15707   yes:no: )
15708     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15710     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15712     ac_header_preproc=yes
15713     ;;
15714   no:yes:* )
15715     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15717     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15718 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15719     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15721     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15722 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15723     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15725     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15727     ( cat <<\_ASBOX
15728 ## ------------------------------------ ##
15729 ## Report this to http://llvm.org/bugs/ ##
15730 ## ------------------------------------ ##
15731 _ASBOX
15732      ) | sed "s/^/$as_me: WARNING:     /" >&2
15733     ;;
15734 esac
15735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15738   echo $ECHO_N "(cached) $ECHO_C" >&6
15739 else
15740   eval "$as_ac_Header=\$ac_header_preproc"
15741 fi
15742 ac_res=`eval echo '${'$as_ac_Header'}'`
15743                { echo "$as_me:$LINENO: result: $ac_res" >&5
15744 echo "${ECHO_T}$ac_res" >&6; }
15745
15746 fi
15747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15748   cat >>confdefs.h <<_ACEOF
15749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15750 _ACEOF
15751
15752 fi
15753
15754 done
15755
15756 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15757
15758 for ac_header in pthread.h
15759 do
15760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15762   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15765   echo $ECHO_N "(cached) $ECHO_C" >&6
15766 fi
15767 ac_res=`eval echo '${'$as_ac_Header'}'`
15768                { echo "$as_me:$LINENO: result: $ac_res" >&5
15769 echo "${ECHO_T}$ac_res" >&6; }
15770 else
15771   # Is the header compilable?
15772 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15774 cat >conftest.$ac_ext <<_ACEOF
15775 /* confdefs.h.  */
15776 _ACEOF
15777 cat confdefs.h >>conftest.$ac_ext
15778 cat >>conftest.$ac_ext <<_ACEOF
15779 /* end confdefs.h.  */
15780 $ac_includes_default
15781 #include <$ac_header>
15782 _ACEOF
15783 rm -f conftest.$ac_objext
15784 if { (ac_try="$ac_compile"
15785 case "(($ac_try" in
15786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15787   *) ac_try_echo=$ac_try;;
15788 esac
15789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15790   (eval "$ac_compile") 2>conftest.er1
15791   ac_status=$?
15792   grep -v '^ *+' conftest.er1 >conftest.err
15793   rm -f conftest.er1
15794   cat conftest.err >&5
15795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796   (exit $ac_status); } &&
15797          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15798   { (case "(($ac_try" in
15799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15800   *) ac_try_echo=$ac_try;;
15801 esac
15802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15803   (eval "$ac_try") 2>&5
15804   ac_status=$?
15805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806   (exit $ac_status); }; } &&
15807          { ac_try='test -s conftest.$ac_objext'
15808   { (case "(($ac_try" in
15809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15810   *) ac_try_echo=$ac_try;;
15811 esac
15812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15813   (eval "$ac_try") 2>&5
15814   ac_status=$?
15815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816   (exit $ac_status); }; }; then
15817   ac_header_compiler=yes
15818 else
15819   echo "$as_me: failed program was:" >&5
15820 sed 's/^/| /' conftest.$ac_ext >&5
15821
15822         ac_header_compiler=no
15823 fi
15824
15825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15826 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15827 echo "${ECHO_T}$ac_header_compiler" >&6; }
15828
15829 # Is the header present?
15830 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15832 cat >conftest.$ac_ext <<_ACEOF
15833 /* confdefs.h.  */
15834 _ACEOF
15835 cat confdefs.h >>conftest.$ac_ext
15836 cat >>conftest.$ac_ext <<_ACEOF
15837 /* end confdefs.h.  */
15838 #include <$ac_header>
15839 _ACEOF
15840 if { (ac_try="$ac_cpp conftest.$ac_ext"
15841 case "(($ac_try" in
15842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15843   *) ac_try_echo=$ac_try;;
15844 esac
15845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15846   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15847   ac_status=$?
15848   grep -v '^ *+' conftest.er1 >conftest.err
15849   rm -f conftest.er1
15850   cat conftest.err >&5
15851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852   (exit $ac_status); } >/dev/null; then
15853   if test -s conftest.err; then
15854     ac_cpp_err=$ac_c_preproc_warn_flag
15855     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15856   else
15857     ac_cpp_err=
15858   fi
15859 else
15860   ac_cpp_err=yes
15861 fi
15862 if test -z "$ac_cpp_err"; then
15863   ac_header_preproc=yes
15864 else
15865   echo "$as_me: failed program was:" >&5
15866 sed 's/^/| /' conftest.$ac_ext >&5
15867
15868   ac_header_preproc=no
15869 fi
15870
15871 rm -f conftest.err conftest.$ac_ext
15872 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15873 echo "${ECHO_T}$ac_header_preproc" >&6; }
15874
15875 # So?  What about this header?
15876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15877   yes:no: )
15878     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15882     ac_header_preproc=yes
15883     ;;
15884   no:yes:* )
15885     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15887     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15888 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15889     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15891     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15892 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15893     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15895     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15897     ( cat <<\_ASBOX
15898 ## ------------------------------------ ##
15899 ## Report this to http://llvm.org/bugs/ ##
15900 ## ------------------------------------ ##
15901 _ASBOX
15902      ) | sed "s/^/$as_me: WARNING:     /" >&2
15903     ;;
15904 esac
15905 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15908   echo $ECHO_N "(cached) $ECHO_C" >&6
15909 else
15910   eval "$as_ac_Header=\$ac_header_preproc"
15911 fi
15912 ac_res=`eval echo '${'$as_ac_Header'}'`
15913                { echo "$as_me:$LINENO: result: $ac_res" >&5
15914 echo "${ECHO_T}$ac_res" >&6; }
15915
15916 fi
15917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15918   cat >>confdefs.h <<_ACEOF
15919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15920 _ACEOF
15921  HAVE_PTHREAD=1
15922
15923 else
15924   HAVE_PTHREAD=0
15925
15926 fi
15927
15928 done
15929
15930 else
15931   HAVE_PTHREAD=0
15932
15933 fi
15934
15935 if test "$llvm_cv_enable_libffi" = "yes" ; then
15936
15937
15938 for ac_header in ffi.h ffi/ffi.h
15939 do
15940 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15942   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15945   echo $ECHO_N "(cached) $ECHO_C" >&6
15946 fi
15947 ac_res=`eval echo '${'$as_ac_Header'}'`
15948                { echo "$as_me:$LINENO: result: $ac_res" >&5
15949 echo "${ECHO_T}$ac_res" >&6; }
15950 else
15951   # Is the header compilable?
15952 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15953 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15954 cat >conftest.$ac_ext <<_ACEOF
15955 /* confdefs.h.  */
15956 _ACEOF
15957 cat confdefs.h >>conftest.$ac_ext
15958 cat >>conftest.$ac_ext <<_ACEOF
15959 /* end confdefs.h.  */
15960 $ac_includes_default
15961 #include <$ac_header>
15962 _ACEOF
15963 rm -f conftest.$ac_objext
15964 if { (ac_try="$ac_compile"
15965 case "(($ac_try" in
15966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15967   *) ac_try_echo=$ac_try;;
15968 esac
15969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15970   (eval "$ac_compile") 2>conftest.er1
15971   ac_status=$?
15972   grep -v '^ *+' conftest.er1 >conftest.err
15973   rm -f conftest.er1
15974   cat conftest.err >&5
15975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976   (exit $ac_status); } &&
15977          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15978   { (case "(($ac_try" in
15979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15980   *) ac_try_echo=$ac_try;;
15981 esac
15982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15983   (eval "$ac_try") 2>&5
15984   ac_status=$?
15985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986   (exit $ac_status); }; } &&
15987          { ac_try='test -s conftest.$ac_objext'
15988   { (case "(($ac_try" in
15989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15990   *) ac_try_echo=$ac_try;;
15991 esac
15992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15993   (eval "$ac_try") 2>&5
15994   ac_status=$?
15995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996   (exit $ac_status); }; }; then
15997   ac_header_compiler=yes
15998 else
15999   echo "$as_me: failed program was:" >&5
16000 sed 's/^/| /' conftest.$ac_ext >&5
16001
16002         ac_header_compiler=no
16003 fi
16004
16005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16006 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16007 echo "${ECHO_T}$ac_header_compiler" >&6; }
16008
16009 # Is the header present?
16010 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16012 cat >conftest.$ac_ext <<_ACEOF
16013 /* confdefs.h.  */
16014 _ACEOF
16015 cat confdefs.h >>conftest.$ac_ext
16016 cat >>conftest.$ac_ext <<_ACEOF
16017 /* end confdefs.h.  */
16018 #include <$ac_header>
16019 _ACEOF
16020 if { (ac_try="$ac_cpp conftest.$ac_ext"
16021 case "(($ac_try" in
16022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16023   *) ac_try_echo=$ac_try;;
16024 esac
16025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16026   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16027   ac_status=$?
16028   grep -v '^ *+' conftest.er1 >conftest.err
16029   rm -f conftest.er1
16030   cat conftest.err >&5
16031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032   (exit $ac_status); } >/dev/null; then
16033   if test -s conftest.err; then
16034     ac_cpp_err=$ac_c_preproc_warn_flag
16035     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16036   else
16037     ac_cpp_err=
16038   fi
16039 else
16040   ac_cpp_err=yes
16041 fi
16042 if test -z "$ac_cpp_err"; then
16043   ac_header_preproc=yes
16044 else
16045   echo "$as_me: failed program was:" >&5
16046 sed 's/^/| /' conftest.$ac_ext >&5
16047
16048   ac_header_preproc=no
16049 fi
16050
16051 rm -f conftest.err conftest.$ac_ext
16052 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16053 echo "${ECHO_T}$ac_header_preproc" >&6; }
16054
16055 # So?  What about this header?
16056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16057   yes:no: )
16058     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16060     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16061 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16062     ac_header_preproc=yes
16063     ;;
16064   no:yes:* )
16065     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16067     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16068 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16069     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16070 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16071     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16072 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16073     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16075     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16076 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16077     ( cat <<\_ASBOX
16078 ## ------------------------------------ ##
16079 ## Report this to http://llvm.org/bugs/ ##
16080 ## ------------------------------------ ##
16081 _ASBOX
16082      ) | sed "s/^/$as_me: WARNING:     /" >&2
16083     ;;
16084 esac
16085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16088   echo $ECHO_N "(cached) $ECHO_C" >&6
16089 else
16090   eval "$as_ac_Header=\$ac_header_preproc"
16091 fi
16092 ac_res=`eval echo '${'$as_ac_Header'}'`
16093                { echo "$as_me:$LINENO: result: $ac_res" >&5
16094 echo "${ECHO_T}$ac_res" >&6; }
16095
16096 fi
16097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16098   cat >>confdefs.h <<_ACEOF
16099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16100 _ACEOF
16101
16102 fi
16103
16104 done
16105
16106 fi
16107
16108
16109 for ac_header in CrashReporterClient.h
16110 do
16111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16113   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16116   echo $ECHO_N "(cached) $ECHO_C" >&6
16117 fi
16118 ac_res=`eval echo '${'$as_ac_Header'}'`
16119                { echo "$as_me:$LINENO: result: $ac_res" >&5
16120 echo "${ECHO_T}$ac_res" >&6; }
16121 else
16122   # Is the header compilable?
16123 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16125 cat >conftest.$ac_ext <<_ACEOF
16126 /* confdefs.h.  */
16127 _ACEOF
16128 cat confdefs.h >>conftest.$ac_ext
16129 cat >>conftest.$ac_ext <<_ACEOF
16130 /* end confdefs.h.  */
16131 $ac_includes_default
16132 #include <$ac_header>
16133 _ACEOF
16134 rm -f conftest.$ac_objext
16135 if { (ac_try="$ac_compile"
16136 case "(($ac_try" in
16137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16138   *) ac_try_echo=$ac_try;;
16139 esac
16140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16141   (eval "$ac_compile") 2>conftest.er1
16142   ac_status=$?
16143   grep -v '^ *+' conftest.er1 >conftest.err
16144   rm -f conftest.er1
16145   cat conftest.err >&5
16146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147   (exit $ac_status); } &&
16148          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16149   { (case "(($ac_try" in
16150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151   *) ac_try_echo=$ac_try;;
16152 esac
16153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16154   (eval "$ac_try") 2>&5
16155   ac_status=$?
16156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157   (exit $ac_status); }; } &&
16158          { ac_try='test -s conftest.$ac_objext'
16159   { (case "(($ac_try" in
16160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161   *) ac_try_echo=$ac_try;;
16162 esac
16163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16164   (eval "$ac_try") 2>&5
16165   ac_status=$?
16166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167   (exit $ac_status); }; }; then
16168   ac_header_compiler=yes
16169 else
16170   echo "$as_me: failed program was:" >&5
16171 sed 's/^/| /' conftest.$ac_ext >&5
16172
16173         ac_header_compiler=no
16174 fi
16175
16176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16178 echo "${ECHO_T}$ac_header_compiler" >&6; }
16179
16180 # Is the header present?
16181 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16183 cat >conftest.$ac_ext <<_ACEOF
16184 /* confdefs.h.  */
16185 _ACEOF
16186 cat confdefs.h >>conftest.$ac_ext
16187 cat >>conftest.$ac_ext <<_ACEOF
16188 /* end confdefs.h.  */
16189 #include <$ac_header>
16190 _ACEOF
16191 if { (ac_try="$ac_cpp conftest.$ac_ext"
16192 case "(($ac_try" in
16193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16194   *) ac_try_echo=$ac_try;;
16195 esac
16196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16197   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16198   ac_status=$?
16199   grep -v '^ *+' conftest.er1 >conftest.err
16200   rm -f conftest.er1
16201   cat conftest.err >&5
16202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203   (exit $ac_status); } >/dev/null; then
16204   if test -s conftest.err; then
16205     ac_cpp_err=$ac_c_preproc_warn_flag
16206     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16207   else
16208     ac_cpp_err=
16209   fi
16210 else
16211   ac_cpp_err=yes
16212 fi
16213 if test -z "$ac_cpp_err"; then
16214   ac_header_preproc=yes
16215 else
16216   echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16218
16219   ac_header_preproc=no
16220 fi
16221
16222 rm -f conftest.err conftest.$ac_ext
16223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16224 echo "${ECHO_T}$ac_header_preproc" >&6; }
16225
16226 # So?  What about this header?
16227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16228   yes:no: )
16229     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16230 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16231     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16232 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16233     ac_header_preproc=yes
16234     ;;
16235   no:yes:* )
16236     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16238     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16239 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16240     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16241 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16242     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16243 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16244     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16246     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16247 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16248     ( cat <<\_ASBOX
16249 ## ------------------------------------ ##
16250 ## Report this to http://llvm.org/bugs/ ##
16251 ## ------------------------------------ ##
16252 _ASBOX
16253      ) | sed "s/^/$as_me: WARNING:     /" >&2
16254     ;;
16255 esac
16256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16259   echo $ECHO_N "(cached) $ECHO_C" >&6
16260 else
16261   eval "$as_ac_Header=\$ac_header_preproc"
16262 fi
16263 ac_res=`eval echo '${'$as_ac_Header'}'`
16264                { echo "$as_me:$LINENO: result: $ac_res" >&5
16265 echo "${ECHO_T}$ac_res" >&6; }
16266
16267 fi
16268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16269   cat >>confdefs.h <<_ACEOF
16270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16271 _ACEOF
16272
16273 fi
16274
16275 done
16276
16277
16278 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16279 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16280 cat >conftest.$ac_ext <<_ACEOF
16281 /* confdefs.h.  */
16282 _ACEOF
16283 cat confdefs.h >>conftest.$ac_ext
16284 cat >>conftest.$ac_ext <<_ACEOF
16285 /* end confdefs.h.  */
16286 extern const char *__crashreporter_info__;
16287       int main() {
16288         __crashreporter_info__ = "test";
16289         return 0;
16290       }
16291
16292 _ACEOF
16293 rm -f conftest.$ac_objext conftest$ac_exeext
16294 if { (ac_try="$ac_link"
16295 case "(($ac_try" in
16296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16297   *) ac_try_echo=$ac_try;;
16298 esac
16299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16300   (eval "$ac_link") 2>conftest.er1
16301   ac_status=$?
16302   grep -v '^ *+' conftest.er1 >conftest.err
16303   rm -f conftest.er1
16304   cat conftest.err >&5
16305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306   (exit $ac_status); } &&
16307          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16308   { (case "(($ac_try" in
16309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16310   *) ac_try_echo=$ac_try;;
16311 esac
16312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16313   (eval "$ac_try") 2>&5
16314   ac_status=$?
16315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316   (exit $ac_status); }; } &&
16317          { ac_try='test -s conftest$ac_exeext'
16318   { (case "(($ac_try" in
16319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16320   *) ac_try_echo=$ac_try;;
16321 esac
16322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16323   (eval "$ac_try") 2>&5
16324   ac_status=$?
16325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326   (exit $ac_status); }; }; then
16327   { echo "$as_me:$LINENO: result: yes" >&5
16328 echo "${ECHO_T}yes" >&6; }
16329
16330 cat >>confdefs.h <<\_ACEOF
16331 #define HAVE_CRASHREPORTER_INFO 1
16332 _ACEOF
16333
16334 else
16335   echo "$as_me: failed program was:" >&5
16336 sed 's/^/| /' conftest.$ac_ext >&5
16337
16338         { echo "$as_me:$LINENO: result: no" >&5
16339 echo "${ECHO_T}no" >&6; }
16340
16341 cat >>confdefs.h <<\_ACEOF
16342 #define HAVE_CRASHREPORTER_INFO 0
16343 _ACEOF
16344
16345 fi
16346
16347 rm -f core conftest.err conftest.$ac_objext \
16348       conftest$ac_exeext conftest.$ac_ext
16349
16350
16351
16352
16353   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16354 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16355 if test "${ac_cv_huge_val_sanity+set}" = set; then
16356   echo $ECHO_N "(cached) $ECHO_C" >&6
16357 else
16358
16359     ac_ext=cpp
16360 ac_cpp='$CXXCPP $CPPFLAGS'
16361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16364
16365     ac_save_CXXFLAGS=$CXXFLAGS
16366     CXXFLAGS="$CXXFLAGS -pedantic"
16367     if test "$cross_compiling" = yes; then
16368   ac_cv_huge_val_sanity=yes
16369 else
16370   cat >conftest.$ac_ext <<_ACEOF
16371 /* confdefs.h.  */
16372 _ACEOF
16373 cat confdefs.h >>conftest.$ac_ext
16374 cat >>conftest.$ac_ext <<_ACEOF
16375 /* end confdefs.h.  */
16376 #include <math.h>
16377 int
16378 main ()
16379 {
16380 double x = HUGE_VAL; return x != x;
16381   ;
16382   return 0;
16383 }
16384 _ACEOF
16385 rm -f conftest$ac_exeext
16386 if { (ac_try="$ac_link"
16387 case "(($ac_try" in
16388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16389   *) ac_try_echo=$ac_try;;
16390 esac
16391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16392   (eval "$ac_link") 2>&5
16393   ac_status=$?
16394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16396   { (case "(($ac_try" in
16397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398   *) ac_try_echo=$ac_try;;
16399 esac
16400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16401   (eval "$ac_try") 2>&5
16402   ac_status=$?
16403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404   (exit $ac_status); }; }; then
16405   ac_cv_huge_val_sanity=yes
16406 else
16407   echo "$as_me: program exited with status $ac_status" >&5
16408 echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16410
16411 ( exit $ac_status )
16412 ac_cv_huge_val_sanity=no
16413 fi
16414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16415 fi
16416
16417
16418     CXXFLAGS=$ac_save_CXXFLAGS
16419     ac_ext=c
16420 ac_cpp='$CPP $CPPFLAGS'
16421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16424
16425
16426 fi
16427 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16428 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16429   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16430
16431
16432 { echo "$as_me:$LINENO: checking for pid_t" >&5
16433 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16434 if test "${ac_cv_type_pid_t+set}" = set; then
16435   echo $ECHO_N "(cached) $ECHO_C" >&6
16436 else
16437   cat >conftest.$ac_ext <<_ACEOF
16438 /* confdefs.h.  */
16439 _ACEOF
16440 cat confdefs.h >>conftest.$ac_ext
16441 cat >>conftest.$ac_ext <<_ACEOF
16442 /* end confdefs.h.  */
16443 $ac_includes_default
16444 typedef pid_t ac__type_new_;
16445 int
16446 main ()
16447 {
16448 if ((ac__type_new_ *) 0)
16449   return 0;
16450 if (sizeof (ac__type_new_))
16451   return 0;
16452   ;
16453   return 0;
16454 }
16455 _ACEOF
16456 rm -f conftest.$ac_objext
16457 if { (ac_try="$ac_compile"
16458 case "(($ac_try" in
16459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460   *) ac_try_echo=$ac_try;;
16461 esac
16462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463   (eval "$ac_compile") 2>conftest.er1
16464   ac_status=$?
16465   grep -v '^ *+' conftest.er1 >conftest.err
16466   rm -f conftest.er1
16467   cat conftest.err >&5
16468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469   (exit $ac_status); } &&
16470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16471   { (case "(($ac_try" in
16472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16473   *) ac_try_echo=$ac_try;;
16474 esac
16475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16476   (eval "$ac_try") 2>&5
16477   ac_status=$?
16478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479   (exit $ac_status); }; } &&
16480          { ac_try='test -s conftest.$ac_objext'
16481   { (case "(($ac_try" in
16482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483   *) ac_try_echo=$ac_try;;
16484 esac
16485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486   (eval "$ac_try") 2>&5
16487   ac_status=$?
16488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489   (exit $ac_status); }; }; then
16490   ac_cv_type_pid_t=yes
16491 else
16492   echo "$as_me: failed program was:" >&5
16493 sed 's/^/| /' conftest.$ac_ext >&5
16494
16495         ac_cv_type_pid_t=no
16496 fi
16497
16498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16499 fi
16500 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16501 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16502 if test $ac_cv_type_pid_t = yes; then
16503   :
16504 else
16505
16506 cat >>confdefs.h <<_ACEOF
16507 #define pid_t int
16508 _ACEOF
16509
16510 fi
16511
16512 { echo "$as_me:$LINENO: checking for size_t" >&5
16513 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16514 if test "${ac_cv_type_size_t+set}" = set; then
16515   echo $ECHO_N "(cached) $ECHO_C" >&6
16516 else
16517   cat >conftest.$ac_ext <<_ACEOF
16518 /* confdefs.h.  */
16519 _ACEOF
16520 cat confdefs.h >>conftest.$ac_ext
16521 cat >>conftest.$ac_ext <<_ACEOF
16522 /* end confdefs.h.  */
16523 $ac_includes_default
16524 typedef size_t ac__type_new_;
16525 int
16526 main ()
16527 {
16528 if ((ac__type_new_ *) 0)
16529   return 0;
16530 if (sizeof (ac__type_new_))
16531   return 0;
16532   ;
16533   return 0;
16534 }
16535 _ACEOF
16536 rm -f conftest.$ac_objext
16537 if { (ac_try="$ac_compile"
16538 case "(($ac_try" in
16539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16540   *) ac_try_echo=$ac_try;;
16541 esac
16542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16543   (eval "$ac_compile") 2>conftest.er1
16544   ac_status=$?
16545   grep -v '^ *+' conftest.er1 >conftest.err
16546   rm -f conftest.er1
16547   cat conftest.err >&5
16548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549   (exit $ac_status); } &&
16550          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16551   { (case "(($ac_try" in
16552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553   *) ac_try_echo=$ac_try;;
16554 esac
16555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16556   (eval "$ac_try") 2>&5
16557   ac_status=$?
16558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559   (exit $ac_status); }; } &&
16560          { ac_try='test -s conftest.$ac_objext'
16561   { (case "(($ac_try" in
16562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16563   *) ac_try_echo=$ac_try;;
16564 esac
16565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16566   (eval "$ac_try") 2>&5
16567   ac_status=$?
16568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569   (exit $ac_status); }; }; then
16570   ac_cv_type_size_t=yes
16571 else
16572   echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.$ac_ext >&5
16574
16575         ac_cv_type_size_t=no
16576 fi
16577
16578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16579 fi
16580 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16581 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16582 if test $ac_cv_type_size_t = yes; then
16583   :
16584 else
16585
16586 cat >>confdefs.h <<_ACEOF
16587 #define size_t unsigned int
16588 _ACEOF
16589
16590 fi
16591
16592
16593 cat >>confdefs.h <<_ACEOF
16594 #define RETSIGTYPE void
16595 _ACEOF
16596
16597 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16598 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16599 if test "${ac_cv_struct_tm+set}" = set; then
16600   echo $ECHO_N "(cached) $ECHO_C" >&6
16601 else
16602   cat >conftest.$ac_ext <<_ACEOF
16603 /* confdefs.h.  */
16604 _ACEOF
16605 cat confdefs.h >>conftest.$ac_ext
16606 cat >>conftest.$ac_ext <<_ACEOF
16607 /* end confdefs.h.  */
16608 #include <sys/types.h>
16609 #include <time.h>
16610
16611 int
16612 main ()
16613 {
16614 struct tm *tp; tp->tm_sec;
16615   ;
16616   return 0;
16617 }
16618 _ACEOF
16619 rm -f conftest.$ac_objext
16620 if { (ac_try="$ac_compile"
16621 case "(($ac_try" in
16622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16623   *) ac_try_echo=$ac_try;;
16624 esac
16625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16626   (eval "$ac_compile") 2>conftest.er1
16627   ac_status=$?
16628   grep -v '^ *+' conftest.er1 >conftest.err
16629   rm -f conftest.er1
16630   cat conftest.err >&5
16631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632   (exit $ac_status); } &&
16633          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16634   { (case "(($ac_try" in
16635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636   *) ac_try_echo=$ac_try;;
16637 esac
16638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639   (eval "$ac_try") 2>&5
16640   ac_status=$?
16641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642   (exit $ac_status); }; } &&
16643          { ac_try='test -s conftest.$ac_objext'
16644   { (case "(($ac_try" in
16645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646   *) ac_try_echo=$ac_try;;
16647 esac
16648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16649   (eval "$ac_try") 2>&5
16650   ac_status=$?
16651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652   (exit $ac_status); }; }; then
16653   ac_cv_struct_tm=time.h
16654 else
16655   echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16657
16658         ac_cv_struct_tm=sys/time.h
16659 fi
16660
16661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16662 fi
16663 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16664 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16665 if test $ac_cv_struct_tm = sys/time.h; then
16666
16667 cat >>confdefs.h <<\_ACEOF
16668 #define TM_IN_SYS_TIME 1
16669 _ACEOF
16670
16671 fi
16672
16673 { echo "$as_me:$LINENO: checking for int64_t" >&5
16674 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16675 if test "${ac_cv_type_int64_t+set}" = set; then
16676   echo $ECHO_N "(cached) $ECHO_C" >&6
16677 else
16678   cat >conftest.$ac_ext <<_ACEOF
16679 /* confdefs.h.  */
16680 _ACEOF
16681 cat confdefs.h >>conftest.$ac_ext
16682 cat >>conftest.$ac_ext <<_ACEOF
16683 /* end confdefs.h.  */
16684 $ac_includes_default
16685 typedef int64_t ac__type_new_;
16686 int
16687 main ()
16688 {
16689 if ((ac__type_new_ *) 0)
16690   return 0;
16691 if (sizeof (ac__type_new_))
16692   return 0;
16693   ;
16694   return 0;
16695 }
16696 _ACEOF
16697 rm -f conftest.$ac_objext
16698 if { (ac_try="$ac_compile"
16699 case "(($ac_try" in
16700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16701   *) ac_try_echo=$ac_try;;
16702 esac
16703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16704   (eval "$ac_compile") 2>conftest.er1
16705   ac_status=$?
16706   grep -v '^ *+' conftest.er1 >conftest.err
16707   rm -f conftest.er1
16708   cat conftest.err >&5
16709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710   (exit $ac_status); } &&
16711          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16712   { (case "(($ac_try" in
16713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16714   *) ac_try_echo=$ac_try;;
16715 esac
16716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16717   (eval "$ac_try") 2>&5
16718   ac_status=$?
16719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720   (exit $ac_status); }; } &&
16721          { ac_try='test -s conftest.$ac_objext'
16722   { (case "(($ac_try" in
16723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16724   *) ac_try_echo=$ac_try;;
16725 esac
16726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16727   (eval "$ac_try") 2>&5
16728   ac_status=$?
16729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730   (exit $ac_status); }; }; then
16731   ac_cv_type_int64_t=yes
16732 else
16733   echo "$as_me: failed program was:" >&5
16734 sed 's/^/| /' conftest.$ac_ext >&5
16735
16736         ac_cv_type_int64_t=no
16737 fi
16738
16739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16740 fi
16741 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16742 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16743 if test $ac_cv_type_int64_t = yes; then
16744
16745 cat >>confdefs.h <<_ACEOF
16746 #define HAVE_INT64_T 1
16747 _ACEOF
16748
16749
16750 else
16751   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16752 echo "$as_me: error: Type int64_t required but not found" >&2;}
16753    { (exit 1); exit 1; }; }
16754 fi
16755
16756 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16757 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16758 if test "${ac_cv_type_uint64_t+set}" = set; then
16759   echo $ECHO_N "(cached) $ECHO_C" >&6
16760 else
16761   cat >conftest.$ac_ext <<_ACEOF
16762 /* confdefs.h.  */
16763 _ACEOF
16764 cat confdefs.h >>conftest.$ac_ext
16765 cat >>conftest.$ac_ext <<_ACEOF
16766 /* end confdefs.h.  */
16767 $ac_includes_default
16768 typedef uint64_t ac__type_new_;
16769 int
16770 main ()
16771 {
16772 if ((ac__type_new_ *) 0)
16773   return 0;
16774 if (sizeof (ac__type_new_))
16775   return 0;
16776   ;
16777   return 0;
16778 }
16779 _ACEOF
16780 rm -f conftest.$ac_objext
16781 if { (ac_try="$ac_compile"
16782 case "(($ac_try" in
16783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784   *) ac_try_echo=$ac_try;;
16785 esac
16786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16787   (eval "$ac_compile") 2>conftest.er1
16788   ac_status=$?
16789   grep -v '^ *+' conftest.er1 >conftest.err
16790   rm -f conftest.er1
16791   cat conftest.err >&5
16792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793   (exit $ac_status); } &&
16794          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16795   { (case "(($ac_try" in
16796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16797   *) ac_try_echo=$ac_try;;
16798 esac
16799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16800   (eval "$ac_try") 2>&5
16801   ac_status=$?
16802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803   (exit $ac_status); }; } &&
16804          { ac_try='test -s conftest.$ac_objext'
16805   { (case "(($ac_try" in
16806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807   *) ac_try_echo=$ac_try;;
16808 esac
16809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810   (eval "$ac_try") 2>&5
16811   ac_status=$?
16812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813   (exit $ac_status); }; }; then
16814   ac_cv_type_uint64_t=yes
16815 else
16816   echo "$as_me: failed program was:" >&5
16817 sed 's/^/| /' conftest.$ac_ext >&5
16818
16819         ac_cv_type_uint64_t=no
16820 fi
16821
16822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16823 fi
16824 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16825 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16826 if test $ac_cv_type_uint64_t = yes; then
16827
16828 cat >>confdefs.h <<_ACEOF
16829 #define HAVE_UINT64_T 1
16830 _ACEOF
16831
16832
16833 else
16834   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16835 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16836 if test "${ac_cv_type_u_int64_t+set}" = set; then
16837   echo $ECHO_N "(cached) $ECHO_C" >&6
16838 else
16839   cat >conftest.$ac_ext <<_ACEOF
16840 /* confdefs.h.  */
16841 _ACEOF
16842 cat confdefs.h >>conftest.$ac_ext
16843 cat >>conftest.$ac_ext <<_ACEOF
16844 /* end confdefs.h.  */
16845 $ac_includes_default
16846 typedef u_int64_t ac__type_new_;
16847 int
16848 main ()
16849 {
16850 if ((ac__type_new_ *) 0)
16851   return 0;
16852 if (sizeof (ac__type_new_))
16853   return 0;
16854   ;
16855   return 0;
16856 }
16857 _ACEOF
16858 rm -f conftest.$ac_objext
16859 if { (ac_try="$ac_compile"
16860 case "(($ac_try" in
16861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16862   *) ac_try_echo=$ac_try;;
16863 esac
16864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16865   (eval "$ac_compile") 2>conftest.er1
16866   ac_status=$?
16867   grep -v '^ *+' conftest.er1 >conftest.err
16868   rm -f conftest.er1
16869   cat conftest.err >&5
16870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871   (exit $ac_status); } &&
16872          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16873   { (case "(($ac_try" in
16874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16875   *) ac_try_echo=$ac_try;;
16876 esac
16877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16878   (eval "$ac_try") 2>&5
16879   ac_status=$?
16880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881   (exit $ac_status); }; } &&
16882          { ac_try='test -s conftest.$ac_objext'
16883   { (case "(($ac_try" in
16884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16885   *) ac_try_echo=$ac_try;;
16886 esac
16887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16888   (eval "$ac_try") 2>&5
16889   ac_status=$?
16890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891   (exit $ac_status); }; }; then
16892   ac_cv_type_u_int64_t=yes
16893 else
16894   echo "$as_me: failed program was:" >&5
16895 sed 's/^/| /' conftest.$ac_ext >&5
16896
16897         ac_cv_type_u_int64_t=no
16898 fi
16899
16900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16901 fi
16902 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16903 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16904 if test $ac_cv_type_u_int64_t = yes; then
16905
16906 cat >>confdefs.h <<_ACEOF
16907 #define HAVE_U_INT64_T 1
16908 _ACEOF
16909
16910
16911 else
16912   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16913 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16914    { (exit 1); exit 1; }; }
16915 fi
16916
16917 fi
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16929 do
16930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16931 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16933 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16934   echo $ECHO_N "(cached) $ECHO_C" >&6
16935 else
16936   cat >conftest.$ac_ext <<_ACEOF
16937 /* confdefs.h.  */
16938 _ACEOF
16939 cat confdefs.h >>conftest.$ac_ext
16940 cat >>conftest.$ac_ext <<_ACEOF
16941 /* end confdefs.h.  */
16942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16943    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16944 #define $ac_func innocuous_$ac_func
16945
16946 /* System header to define __stub macros and hopefully few prototypes,
16947     which can conflict with char $ac_func (); below.
16948     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16949     <limits.h> exists even on freestanding compilers.  */
16950
16951 #ifdef __STDC__
16952 # include <limits.h>
16953 #else
16954 # include <assert.h>
16955 #endif
16956
16957 #undef $ac_func
16958
16959 /* Override any GCC internal prototype to avoid an error.
16960    Use char because int might match the return type of a GCC
16961    builtin and then its argument prototype would still apply.  */
16962 #ifdef __cplusplus
16963 extern "C"
16964 #endif
16965 char $ac_func ();
16966 /* The GNU C library defines this for functions which it implements
16967     to always fail with ENOSYS.  Some functions are actually named
16968     something starting with __ and the normal name is an alias.  */
16969 #if defined __stub_$ac_func || defined __stub___$ac_func
16970 choke me
16971 #endif
16972
16973 int
16974 main ()
16975 {
16976 return $ac_func ();
16977   ;
16978   return 0;
16979 }
16980 _ACEOF
16981 rm -f conftest.$ac_objext conftest$ac_exeext
16982 if { (ac_try="$ac_link"
16983 case "(($ac_try" in
16984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16985   *) ac_try_echo=$ac_try;;
16986 esac
16987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988   (eval "$ac_link") 2>conftest.er1
16989   ac_status=$?
16990   grep -v '^ *+' conftest.er1 >conftest.err
16991   rm -f conftest.er1
16992   cat conftest.err >&5
16993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994   (exit $ac_status); } &&
16995          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16996   { (case "(($ac_try" in
16997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998   *) ac_try_echo=$ac_try;;
16999 esac
17000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17001   (eval "$ac_try") 2>&5
17002   ac_status=$?
17003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004   (exit $ac_status); }; } &&
17005          { ac_try='test -s conftest$ac_exeext'
17006   { (case "(($ac_try" in
17007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008   *) ac_try_echo=$ac_try;;
17009 esac
17010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011   (eval "$ac_try") 2>&5
17012   ac_status=$?
17013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014   (exit $ac_status); }; }; then
17015   eval "$as_ac_var=yes"
17016 else
17017   echo "$as_me: failed program was:" >&5
17018 sed 's/^/| /' conftest.$ac_ext >&5
17019
17020         eval "$as_ac_var=no"
17021 fi
17022
17023 rm -f core conftest.err conftest.$ac_objext \
17024       conftest$ac_exeext conftest.$ac_ext
17025 fi
17026 ac_res=`eval echo '${'$as_ac_var'}'`
17027                { echo "$as_me:$LINENO: result: $ac_res" >&5
17028 echo "${ECHO_T}$ac_res" >&6; }
17029 if test `eval echo '${'$as_ac_var'}'` = yes; then
17030   cat >>confdefs.h <<_ACEOF
17031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17032 _ACEOF
17033
17034 fi
17035 done
17036
17037
17038
17039
17040
17041 for ac_func in powf fmodf strtof round
17042 do
17043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17047   echo $ECHO_N "(cached) $ECHO_C" >&6
17048 else
17049   cat >conftest.$ac_ext <<_ACEOF
17050 /* confdefs.h.  */
17051 _ACEOF
17052 cat confdefs.h >>conftest.$ac_ext
17053 cat >>conftest.$ac_ext <<_ACEOF
17054 /* end confdefs.h.  */
17055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17056    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17057 #define $ac_func innocuous_$ac_func
17058
17059 /* System header to define __stub macros and hopefully few prototypes,
17060     which can conflict with char $ac_func (); below.
17061     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17062     <limits.h> exists even on freestanding compilers.  */
17063
17064 #ifdef __STDC__
17065 # include <limits.h>
17066 #else
17067 # include <assert.h>
17068 #endif
17069
17070 #undef $ac_func
17071
17072 /* Override any GCC internal prototype to avoid an error.
17073    Use char because int might match the return type of a GCC
17074    builtin and then its argument prototype would still apply.  */
17075 #ifdef __cplusplus
17076 extern "C"
17077 #endif
17078 char $ac_func ();
17079 /* The GNU C library defines this for functions which it implements
17080     to always fail with ENOSYS.  Some functions are actually named
17081     something starting with __ and the normal name is an alias.  */
17082 #if defined __stub_$ac_func || defined __stub___$ac_func
17083 choke me
17084 #endif
17085
17086 int
17087 main ()
17088 {
17089 return $ac_func ();
17090   ;
17091   return 0;
17092 }
17093 _ACEOF
17094 rm -f conftest.$ac_objext conftest$ac_exeext
17095 if { (ac_try="$ac_link"
17096 case "(($ac_try" in
17097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098   *) ac_try_echo=$ac_try;;
17099 esac
17100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101   (eval "$ac_link") 2>conftest.er1
17102   ac_status=$?
17103   grep -v '^ *+' conftest.er1 >conftest.err
17104   rm -f conftest.er1
17105   cat conftest.err >&5
17106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107   (exit $ac_status); } &&
17108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17109   { (case "(($ac_try" in
17110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17111   *) ac_try_echo=$ac_try;;
17112 esac
17113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17114   (eval "$ac_try") 2>&5
17115   ac_status=$?
17116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117   (exit $ac_status); }; } &&
17118          { ac_try='test -s conftest$ac_exeext'
17119   { (case "(($ac_try" in
17120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17121   *) ac_try_echo=$ac_try;;
17122 esac
17123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17124   (eval "$ac_try") 2>&5
17125   ac_status=$?
17126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127   (exit $ac_status); }; }; then
17128   eval "$as_ac_var=yes"
17129 else
17130   echo "$as_me: failed program was:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17132
17133         eval "$as_ac_var=no"
17134 fi
17135
17136 rm -f core conftest.err conftest.$ac_objext \
17137       conftest$ac_exeext conftest.$ac_ext
17138 fi
17139 ac_res=`eval echo '${'$as_ac_var'}'`
17140                { echo "$as_me:$LINENO: result: $ac_res" >&5
17141 echo "${ECHO_T}$ac_res" >&6; }
17142 if test `eval echo '${'$as_ac_var'}'` = yes; then
17143   cat >>confdefs.h <<_ACEOF
17144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17145 _ACEOF
17146
17147 fi
17148 done
17149
17150
17151
17152
17153
17154
17155 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17156 do
17157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17158 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17160 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17161   echo $ECHO_N "(cached) $ECHO_C" >&6
17162 else
17163   cat >conftest.$ac_ext <<_ACEOF
17164 /* confdefs.h.  */
17165 _ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h.  */
17169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17170    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17171 #define $ac_func innocuous_$ac_func
17172
17173 /* System header to define __stub macros and hopefully few prototypes,
17174     which can conflict with char $ac_func (); below.
17175     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17176     <limits.h> exists even on freestanding compilers.  */
17177
17178 #ifdef __STDC__
17179 # include <limits.h>
17180 #else
17181 # include <assert.h>
17182 #endif
17183
17184 #undef $ac_func
17185
17186 /* Override any GCC internal prototype to avoid an error.
17187    Use char because int might match the return type of a GCC
17188    builtin and then its argument prototype would still apply.  */
17189 #ifdef __cplusplus
17190 extern "C"
17191 #endif
17192 char $ac_func ();
17193 /* The GNU C library defines this for functions which it implements
17194     to always fail with ENOSYS.  Some functions are actually named
17195     something starting with __ and the normal name is an alias.  */
17196 #if defined __stub_$ac_func || defined __stub___$ac_func
17197 choke me
17198 #endif
17199
17200 int
17201 main ()
17202 {
17203 return $ac_func ();
17204   ;
17205   return 0;
17206 }
17207 _ACEOF
17208 rm -f conftest.$ac_objext conftest$ac_exeext
17209 if { (ac_try="$ac_link"
17210 case "(($ac_try" in
17211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212   *) ac_try_echo=$ac_try;;
17213 esac
17214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215   (eval "$ac_link") 2>conftest.er1
17216   ac_status=$?
17217   grep -v '^ *+' conftest.er1 >conftest.err
17218   rm -f conftest.er1
17219   cat conftest.err >&5
17220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221   (exit $ac_status); } &&
17222          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17223   { (case "(($ac_try" in
17224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225   *) ac_try_echo=$ac_try;;
17226 esac
17227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228   (eval "$ac_try") 2>&5
17229   ac_status=$?
17230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231   (exit $ac_status); }; } &&
17232          { ac_try='test -s conftest$ac_exeext'
17233   { (case "(($ac_try" in
17234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235   *) ac_try_echo=$ac_try;;
17236 esac
17237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238   (eval "$ac_try") 2>&5
17239   ac_status=$?
17240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241   (exit $ac_status); }; }; then
17242   eval "$as_ac_var=yes"
17243 else
17244   echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17246
17247         eval "$as_ac_var=no"
17248 fi
17249
17250 rm -f core conftest.err conftest.$ac_objext \
17251       conftest$ac_exeext conftest.$ac_ext
17252 fi
17253 ac_res=`eval echo '${'$as_ac_var'}'`
17254                { echo "$as_me:$LINENO: result: $ac_res" >&5
17255 echo "${ECHO_T}$ac_res" >&6; }
17256 if test `eval echo '${'$as_ac_var'}'` = yes; then
17257   cat >>confdefs.h <<_ACEOF
17258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17259 _ACEOF
17260
17261 fi
17262 done
17263
17264
17265
17266
17267 for ac_func in isatty mkdtemp mkstemp
17268 do
17269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17270 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17272 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17273   echo $ECHO_N "(cached) $ECHO_C" >&6
17274 else
17275   cat >conftest.$ac_ext <<_ACEOF
17276 /* confdefs.h.  */
17277 _ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h.  */
17281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17282    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17283 #define $ac_func innocuous_$ac_func
17284
17285 /* System header to define __stub macros and hopefully few prototypes,
17286     which can conflict with char $ac_func (); below.
17287     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17288     <limits.h> exists even on freestanding compilers.  */
17289
17290 #ifdef __STDC__
17291 # include <limits.h>
17292 #else
17293 # include <assert.h>
17294 #endif
17295
17296 #undef $ac_func
17297
17298 /* Override any GCC internal prototype to avoid an error.
17299    Use char because int might match the return type of a GCC
17300    builtin and then its argument prototype would still apply.  */
17301 #ifdef __cplusplus
17302 extern "C"
17303 #endif
17304 char $ac_func ();
17305 /* The GNU C library defines this for functions which it implements
17306     to always fail with ENOSYS.  Some functions are actually named
17307     something starting with __ and the normal name is an alias.  */
17308 #if defined __stub_$ac_func || defined __stub___$ac_func
17309 choke me
17310 #endif
17311
17312 int
17313 main ()
17314 {
17315 return $ac_func ();
17316   ;
17317   return 0;
17318 }
17319 _ACEOF
17320 rm -f conftest.$ac_objext conftest$ac_exeext
17321 if { (ac_try="$ac_link"
17322 case "(($ac_try" in
17323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324   *) ac_try_echo=$ac_try;;
17325 esac
17326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17327   (eval "$ac_link") 2>conftest.er1
17328   ac_status=$?
17329   grep -v '^ *+' conftest.er1 >conftest.err
17330   rm -f conftest.er1
17331   cat conftest.err >&5
17332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333   (exit $ac_status); } &&
17334          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17335   { (case "(($ac_try" in
17336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337   *) ac_try_echo=$ac_try;;
17338 esac
17339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340   (eval "$ac_try") 2>&5
17341   ac_status=$?
17342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343   (exit $ac_status); }; } &&
17344          { ac_try='test -s conftest$ac_exeext'
17345   { (case "(($ac_try" in
17346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347   *) ac_try_echo=$ac_try;;
17348 esac
17349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350   (eval "$ac_try") 2>&5
17351   ac_status=$?
17352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353   (exit $ac_status); }; }; then
17354   eval "$as_ac_var=yes"
17355 else
17356   echo "$as_me: failed program was:" >&5
17357 sed 's/^/| /' conftest.$ac_ext >&5
17358
17359         eval "$as_ac_var=no"
17360 fi
17361
17362 rm -f core conftest.err conftest.$ac_objext \
17363       conftest$ac_exeext conftest.$ac_ext
17364 fi
17365 ac_res=`eval echo '${'$as_ac_var'}'`
17366                { echo "$as_me:$LINENO: result: $ac_res" >&5
17367 echo "${ECHO_T}$ac_res" >&6; }
17368 if test `eval echo '${'$as_ac_var'}'` = yes; then
17369   cat >>confdefs.h <<_ACEOF
17370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17371 _ACEOF
17372
17373 fi
17374 done
17375
17376
17377
17378
17379
17380
17381
17382
17383 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17384 do
17385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17386 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17388 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17389   echo $ECHO_N "(cached) $ECHO_C" >&6
17390 else
17391   cat >conftest.$ac_ext <<_ACEOF
17392 /* confdefs.h.  */
17393 _ACEOF
17394 cat confdefs.h >>conftest.$ac_ext
17395 cat >>conftest.$ac_ext <<_ACEOF
17396 /* end confdefs.h.  */
17397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17398    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17399 #define $ac_func innocuous_$ac_func
17400
17401 /* System header to define __stub macros and hopefully few prototypes,
17402     which can conflict with char $ac_func (); below.
17403     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17404     <limits.h> exists even on freestanding compilers.  */
17405
17406 #ifdef __STDC__
17407 # include <limits.h>
17408 #else
17409 # include <assert.h>
17410 #endif
17411
17412 #undef $ac_func
17413
17414 /* Override any GCC internal prototype to avoid an error.
17415    Use char because int might match the return type of a GCC
17416    builtin and then its argument prototype would still apply.  */
17417 #ifdef __cplusplus
17418 extern "C"
17419 #endif
17420 char $ac_func ();
17421 /* The GNU C library defines this for functions which it implements
17422     to always fail with ENOSYS.  Some functions are actually named
17423     something starting with __ and the normal name is an alias.  */
17424 #if defined __stub_$ac_func || defined __stub___$ac_func
17425 choke me
17426 #endif
17427
17428 int
17429 main ()
17430 {
17431 return $ac_func ();
17432   ;
17433   return 0;
17434 }
17435 _ACEOF
17436 rm -f conftest.$ac_objext conftest$ac_exeext
17437 if { (ac_try="$ac_link"
17438 case "(($ac_try" in
17439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17440   *) ac_try_echo=$ac_try;;
17441 esac
17442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17443   (eval "$ac_link") 2>conftest.er1
17444   ac_status=$?
17445   grep -v '^ *+' conftest.er1 >conftest.err
17446   rm -f conftest.er1
17447   cat conftest.err >&5
17448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449   (exit $ac_status); } &&
17450          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17451   { (case "(($ac_try" in
17452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17453   *) ac_try_echo=$ac_try;;
17454 esac
17455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17456   (eval "$ac_try") 2>&5
17457   ac_status=$?
17458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459   (exit $ac_status); }; } &&
17460          { ac_try='test -s conftest$ac_exeext'
17461   { (case "(($ac_try" in
17462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463   *) ac_try_echo=$ac_try;;
17464 esac
17465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17466   (eval "$ac_try") 2>&5
17467   ac_status=$?
17468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469   (exit $ac_status); }; }; then
17470   eval "$as_ac_var=yes"
17471 else
17472   echo "$as_me: failed program was:" >&5
17473 sed 's/^/| /' conftest.$ac_ext >&5
17474
17475         eval "$as_ac_var=no"
17476 fi
17477
17478 rm -f core conftest.err conftest.$ac_objext \
17479       conftest$ac_exeext conftest.$ac_ext
17480 fi
17481 ac_res=`eval echo '${'$as_ac_var'}'`
17482                { echo "$as_me:$LINENO: result: $ac_res" >&5
17483 echo "${ECHO_T}$ac_res" >&6; }
17484 if test `eval echo '${'$as_ac_var'}'` = yes; then
17485   cat >>confdefs.h <<_ACEOF
17486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17487 _ACEOF
17488
17489 fi
17490 done
17491
17492
17493
17494
17495
17496 for ac_func in strerror strerror_r setenv arc4random
17497 do
17498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17499 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17501 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17502   echo $ECHO_N "(cached) $ECHO_C" >&6
17503 else
17504   cat >conftest.$ac_ext <<_ACEOF
17505 /* confdefs.h.  */
17506 _ACEOF
17507 cat confdefs.h >>conftest.$ac_ext
17508 cat >>conftest.$ac_ext <<_ACEOF
17509 /* end confdefs.h.  */
17510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17511    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17512 #define $ac_func innocuous_$ac_func
17513
17514 /* System header to define __stub macros and hopefully few prototypes,
17515     which can conflict with char $ac_func (); below.
17516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17517     <limits.h> exists even on freestanding compilers.  */
17518
17519 #ifdef __STDC__
17520 # include <limits.h>
17521 #else
17522 # include <assert.h>
17523 #endif
17524
17525 #undef $ac_func
17526
17527 /* Override any GCC internal prototype to avoid an error.
17528    Use char because int might match the return type of a GCC
17529    builtin and then its argument prototype would still apply.  */
17530 #ifdef __cplusplus
17531 extern "C"
17532 #endif
17533 char $ac_func ();
17534 /* The GNU C library defines this for functions which it implements
17535     to always fail with ENOSYS.  Some functions are actually named
17536     something starting with __ and the normal name is an alias.  */
17537 #if defined __stub_$ac_func || defined __stub___$ac_func
17538 choke me
17539 #endif
17540
17541 int
17542 main ()
17543 {
17544 return $ac_func ();
17545   ;
17546   return 0;
17547 }
17548 _ACEOF
17549 rm -f conftest.$ac_objext conftest$ac_exeext
17550 if { (ac_try="$ac_link"
17551 case "(($ac_try" in
17552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17553   *) ac_try_echo=$ac_try;;
17554 esac
17555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17556   (eval "$ac_link") 2>conftest.er1
17557   ac_status=$?
17558   grep -v '^ *+' conftest.er1 >conftest.err
17559   rm -f conftest.er1
17560   cat conftest.err >&5
17561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562   (exit $ac_status); } &&
17563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17564   { (case "(($ac_try" in
17565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17566   *) ac_try_echo=$ac_try;;
17567 esac
17568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17569   (eval "$ac_try") 2>&5
17570   ac_status=$?
17571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572   (exit $ac_status); }; } &&
17573          { ac_try='test -s conftest$ac_exeext'
17574   { (case "(($ac_try" in
17575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576   *) ac_try_echo=$ac_try;;
17577 esac
17578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17579   (eval "$ac_try") 2>&5
17580   ac_status=$?
17581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582   (exit $ac_status); }; }; then
17583   eval "$as_ac_var=yes"
17584 else
17585   echo "$as_me: failed program was:" >&5
17586 sed 's/^/| /' conftest.$ac_ext >&5
17587
17588         eval "$as_ac_var=no"
17589 fi
17590
17591 rm -f core conftest.err conftest.$ac_objext \
17592       conftest$ac_exeext conftest.$ac_ext
17593 fi
17594 ac_res=`eval echo '${'$as_ac_var'}'`
17595                { echo "$as_me:$LINENO: result: $ac_res" >&5
17596 echo "${ECHO_T}$ac_res" >&6; }
17597 if test `eval echo '${'$as_ac_var'}'` = yes; then
17598   cat >>confdefs.h <<_ACEOF
17599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17600 _ACEOF
17601
17602 fi
17603 done
17604
17605
17606
17607
17608
17609 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17610 do
17611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17612 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17614 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17615   echo $ECHO_N "(cached) $ECHO_C" >&6
17616 else
17617   cat >conftest.$ac_ext <<_ACEOF
17618 /* confdefs.h.  */
17619 _ACEOF
17620 cat confdefs.h >>conftest.$ac_ext
17621 cat >>conftest.$ac_ext <<_ACEOF
17622 /* end confdefs.h.  */
17623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17624    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17625 #define $ac_func innocuous_$ac_func
17626
17627 /* System header to define __stub macros and hopefully few prototypes,
17628     which can conflict with char $ac_func (); below.
17629     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17630     <limits.h> exists even on freestanding compilers.  */
17631
17632 #ifdef __STDC__
17633 # include <limits.h>
17634 #else
17635 # include <assert.h>
17636 #endif
17637
17638 #undef $ac_func
17639
17640 /* Override any GCC internal prototype to avoid an error.
17641    Use char because int might match the return type of a GCC
17642    builtin and then its argument prototype would still apply.  */
17643 #ifdef __cplusplus
17644 extern "C"
17645 #endif
17646 char $ac_func ();
17647 /* The GNU C library defines this for functions which it implements
17648     to always fail with ENOSYS.  Some functions are actually named
17649     something starting with __ and the normal name is an alias.  */
17650 #if defined __stub_$ac_func || defined __stub___$ac_func
17651 choke me
17652 #endif
17653
17654 int
17655 main ()
17656 {
17657 return $ac_func ();
17658   ;
17659   return 0;
17660 }
17661 _ACEOF
17662 rm -f conftest.$ac_objext conftest$ac_exeext
17663 if { (ac_try="$ac_link"
17664 case "(($ac_try" in
17665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17666   *) ac_try_echo=$ac_try;;
17667 esac
17668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17669   (eval "$ac_link") 2>conftest.er1
17670   ac_status=$?
17671   grep -v '^ *+' conftest.er1 >conftest.err
17672   rm -f conftest.er1
17673   cat conftest.err >&5
17674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675   (exit $ac_status); } &&
17676          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17677   { (case "(($ac_try" in
17678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17679   *) ac_try_echo=$ac_try;;
17680 esac
17681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17682   (eval "$ac_try") 2>&5
17683   ac_status=$?
17684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685   (exit $ac_status); }; } &&
17686          { ac_try='test -s conftest$ac_exeext'
17687   { (case "(($ac_try" in
17688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689   *) ac_try_echo=$ac_try;;
17690 esac
17691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692   (eval "$ac_try") 2>&5
17693   ac_status=$?
17694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695   (exit $ac_status); }; }; then
17696   eval "$as_ac_var=yes"
17697 else
17698   echo "$as_me: failed program was:" >&5
17699 sed 's/^/| /' conftest.$ac_ext >&5
17700
17701         eval "$as_ac_var=no"
17702 fi
17703
17704 rm -f core conftest.err conftest.$ac_objext \
17705       conftest$ac_exeext conftest.$ac_ext
17706 fi
17707 ac_res=`eval echo '${'$as_ac_var'}'`
17708                { echo "$as_me:$LINENO: result: $ac_res" >&5
17709 echo "${ECHO_T}$ac_res" >&6; }
17710 if test `eval echo '${'$as_ac_var'}'` = yes; then
17711   cat >>confdefs.h <<_ACEOF
17712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17713 _ACEOF
17714
17715 fi
17716 done
17717
17718
17719
17720
17721
17722
17723 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17724 do
17725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17726 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17729   echo $ECHO_N "(cached) $ECHO_C" >&6
17730 else
17731   cat >conftest.$ac_ext <<_ACEOF
17732 /* confdefs.h.  */
17733 _ACEOF
17734 cat confdefs.h >>conftest.$ac_ext
17735 cat >>conftest.$ac_ext <<_ACEOF
17736 /* end confdefs.h.  */
17737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17738    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17739 #define $ac_func innocuous_$ac_func
17740
17741 /* System header to define __stub macros and hopefully few prototypes,
17742     which can conflict with char $ac_func (); below.
17743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17744     <limits.h> exists even on freestanding compilers.  */
17745
17746 #ifdef __STDC__
17747 # include <limits.h>
17748 #else
17749 # include <assert.h>
17750 #endif
17751
17752 #undef $ac_func
17753
17754 /* Override any GCC internal prototype to avoid an error.
17755    Use char because int might match the return type of a GCC
17756    builtin and then its argument prototype would still apply.  */
17757 #ifdef __cplusplus
17758 extern "C"
17759 #endif
17760 char $ac_func ();
17761 /* The GNU C library defines this for functions which it implements
17762     to always fail with ENOSYS.  Some functions are actually named
17763     something starting with __ and the normal name is an alias.  */
17764 #if defined __stub_$ac_func || defined __stub___$ac_func
17765 choke me
17766 #endif
17767
17768 int
17769 main ()
17770 {
17771 return $ac_func ();
17772   ;
17773   return 0;
17774 }
17775 _ACEOF
17776 rm -f conftest.$ac_objext conftest$ac_exeext
17777 if { (ac_try="$ac_link"
17778 case "(($ac_try" in
17779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17780   *) ac_try_echo=$ac_try;;
17781 esac
17782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17783   (eval "$ac_link") 2>conftest.er1
17784   ac_status=$?
17785   grep -v '^ *+' conftest.er1 >conftest.err
17786   rm -f conftest.er1
17787   cat conftest.err >&5
17788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789   (exit $ac_status); } &&
17790          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17791   { (case "(($ac_try" in
17792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17793   *) ac_try_echo=$ac_try;;
17794 esac
17795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17796   (eval "$ac_try") 2>&5
17797   ac_status=$?
17798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799   (exit $ac_status); }; } &&
17800          { ac_try='test -s conftest$ac_exeext'
17801   { (case "(($ac_try" in
17802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17803   *) ac_try_echo=$ac_try;;
17804 esac
17805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17806   (eval "$ac_try") 2>&5
17807   ac_status=$?
17808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809   (exit $ac_status); }; }; then
17810   eval "$as_ac_var=yes"
17811 else
17812   echo "$as_me: failed program was:" >&5
17813 sed 's/^/| /' conftest.$ac_ext >&5
17814
17815         eval "$as_ac_var=no"
17816 fi
17817
17818 rm -f core conftest.err conftest.$ac_objext \
17819       conftest$ac_exeext conftest.$ac_ext
17820 fi
17821 ac_res=`eval echo '${'$as_ac_var'}'`
17822                { echo "$as_me:$LINENO: result: $ac_res" >&5
17823 echo "${ECHO_T}$ac_res" >&6; }
17824 if test `eval echo '${'$as_ac_var'}'` = yes; then
17825   cat >>confdefs.h <<_ACEOF
17826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17827 _ACEOF
17828
17829 fi
17830 done
17831
17832 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17833 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17834 if test "${llvm_cv_c_printf_a+set}" = set; then
17835   echo $ECHO_N "(cached) $ECHO_C" >&6
17836 else
17837   ac_ext=c
17838 ac_cpp='$CPP $CPPFLAGS'
17839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17842
17843  if test "$cross_compiling" = yes; then
17844   llvmac_cv_c_printf_a=no
17845 else
17846   cat >conftest.$ac_ext <<_ACEOF
17847
17848   /* confdefs.h.  */
17849 _ACEOF
17850 cat confdefs.h >>conftest.$ac_ext
17851 cat >>conftest.$ac_ext <<_ACEOF
17852 /* end confdefs.h.  */
17853
17854 #include <stdio.h>
17855 #include <stdlib.h>
17856
17857 int
17858 main ()
17859 {
17860
17861 volatile double A, B;
17862 char Buffer[100];
17863 A = 1;
17864 A /= 10.0;
17865 sprintf(Buffer, "%a", A);
17866 B = atof(Buffer);
17867 if (A != B)
17868   return (1);
17869 if (A != 0x1.999999999999ap-4)
17870   return (1);
17871 return (0);
17872   ;
17873   return 0;
17874 }
17875 _ACEOF
17876 rm -f conftest$ac_exeext
17877 if { (ac_try="$ac_link"
17878 case "(($ac_try" in
17879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17880   *) ac_try_echo=$ac_try;;
17881 esac
17882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17883   (eval "$ac_link") 2>&5
17884   ac_status=$?
17885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17887   { (case "(($ac_try" in
17888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889   *) ac_try_echo=$ac_try;;
17890 esac
17891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892   (eval "$ac_try") 2>&5
17893   ac_status=$?
17894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895   (exit $ac_status); }; }; then
17896   llvm_cv_c_printf_a=yes
17897 else
17898   echo "$as_me: program exited with status $ac_status" >&5
17899 echo "$as_me: failed program was:" >&5
17900 sed 's/^/| /' conftest.$ac_ext >&5
17901
17902 ( exit $ac_status )
17903 llvmac_cv_c_printf_a=no
17904 fi
17905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17906 fi
17907
17908
17909  ac_ext=c
17910 ac_cpp='$CPP $CPPFLAGS'
17911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17914
17915 fi
17916 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17917 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17918  if test "$llvm_cv_c_printf_a" = "yes"; then
17919
17920 cat >>confdefs.h <<\_ACEOF
17921 #define HAVE_PRINTF_A 1
17922 _ACEOF
17923
17924  fi
17925
17926
17927 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17928 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17929 if test "${ac_cv_func_rand48+set}" = set; then
17930   echo $ECHO_N "(cached) $ECHO_C" >&6
17931 else
17932   ac_ext=cpp
17933 ac_cpp='$CXXCPP $CPPFLAGS'
17934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17937
17938    cat >conftest.$ac_ext <<_ACEOF
17939 /* confdefs.h.  */
17940 _ACEOF
17941 cat confdefs.h >>conftest.$ac_ext
17942 cat >>conftest.$ac_ext <<_ACEOF
17943 /* end confdefs.h.  */
17944 #include <stdlib.h>
17945 int
17946 main ()
17947 {
17948 srand48(0);lrand48();drand48();
17949   ;
17950   return 0;
17951 }
17952 _ACEOF
17953 rm -f conftest.$ac_objext
17954 if { (ac_try="$ac_compile"
17955 case "(($ac_try" in
17956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17957   *) ac_try_echo=$ac_try;;
17958 esac
17959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17960   (eval "$ac_compile") 2>conftest.er1
17961   ac_status=$?
17962   grep -v '^ *+' conftest.er1 >conftest.err
17963   rm -f conftest.er1
17964   cat conftest.err >&5
17965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966   (exit $ac_status); } &&
17967          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17968   { (case "(($ac_try" in
17969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17970   *) ac_try_echo=$ac_try;;
17971 esac
17972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17973   (eval "$ac_try") 2>&5
17974   ac_status=$?
17975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976   (exit $ac_status); }; } &&
17977          { ac_try='test -s conftest.$ac_objext'
17978   { (case "(($ac_try" in
17979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17980   *) ac_try_echo=$ac_try;;
17981 esac
17982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17983   (eval "$ac_try") 2>&5
17984   ac_status=$?
17985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986   (exit $ac_status); }; }; then
17987   ac_cv_func_rand48=yes
17988 else
17989   echo "$as_me: failed program was:" >&5
17990 sed 's/^/| /' conftest.$ac_ext >&5
17991
17992         ac_cv_func_rand48=no
17993 fi
17994
17995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17996   ac_ext=c
17997 ac_cpp='$CPP $CPPFLAGS'
17998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18001
18002 fi
18003 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18004 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18005
18006 if test "$ac_cv_func_rand48" = "yes" ; then
18007
18008 cat >>confdefs.h <<\_ACEOF
18009 #define HAVE_RAND48 1
18010 _ACEOF
18011
18012 fi
18013
18014
18015 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18016 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18017 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18018   echo $ECHO_N "(cached) $ECHO_C" >&6
18019 else
18020   cat >conftest.$ac_ext <<_ACEOF
18021 /* confdefs.h.  */
18022 _ACEOF
18023 cat confdefs.h >>conftest.$ac_ext
18024 cat >>conftest.$ac_ext <<_ACEOF
18025 /* end confdefs.h.  */
18026 $ac_includes_default
18027 int
18028 main ()
18029 {
18030 #ifndef strerror_s
18031   char *p = (char *) strerror_s;
18032   return !p;
18033 #endif
18034
18035   ;
18036   return 0;
18037 }
18038 _ACEOF
18039 rm -f conftest.$ac_objext
18040 if { (ac_try="$ac_compile"
18041 case "(($ac_try" in
18042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18043   *) ac_try_echo=$ac_try;;
18044 esac
18045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18046   (eval "$ac_compile") 2>conftest.er1
18047   ac_status=$?
18048   grep -v '^ *+' conftest.er1 >conftest.err
18049   rm -f conftest.er1
18050   cat conftest.err >&5
18051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052   (exit $ac_status); } &&
18053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18054   { (case "(($ac_try" in
18055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18056   *) ac_try_echo=$ac_try;;
18057 esac
18058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18059   (eval "$ac_try") 2>&5
18060   ac_status=$?
18061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062   (exit $ac_status); }; } &&
18063          { ac_try='test -s conftest.$ac_objext'
18064   { (case "(($ac_try" in
18065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18066   *) ac_try_echo=$ac_try;;
18067 esac
18068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18069   (eval "$ac_try") 2>&5
18070   ac_status=$?
18071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072   (exit $ac_status); }; }; then
18073   ac_cv_have_decl_strerror_s=yes
18074 else
18075   echo "$as_me: failed program was:" >&5
18076 sed 's/^/| /' conftest.$ac_ext >&5
18077
18078         ac_cv_have_decl_strerror_s=no
18079 fi
18080
18081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18082 fi
18083 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18084 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18085 if test $ac_cv_have_decl_strerror_s = yes; then
18086
18087 cat >>confdefs.h <<_ACEOF
18088 #define HAVE_DECL_STRERROR_S 1
18089 _ACEOF
18090
18091
18092 else
18093   cat >>confdefs.h <<_ACEOF
18094 #define HAVE_DECL_STRERROR_S 0
18095 _ACEOF
18096
18097
18098 fi
18099
18100
18101
18102 if test "$llvm_cv_os_type" = "MingW" ; then
18103   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18104 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18105 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18106   echo $ECHO_N "(cached) $ECHO_C" >&6
18107 else
18108   ac_check_lib_save_LIBS=$LIBS
18109 LIBS="-lgcc  $LIBS"
18110 cat >conftest.$ac_ext <<_ACEOF
18111 /* confdefs.h.  */
18112 _ACEOF
18113 cat confdefs.h >>conftest.$ac_ext
18114 cat >>conftest.$ac_ext <<_ACEOF
18115 /* end confdefs.h.  */
18116
18117 /* Override any GCC internal prototype to avoid an error.
18118    Use char because int might match the return type of a GCC
18119    builtin and then its argument prototype would still apply.  */
18120 #ifdef __cplusplus
18121 extern "C"
18122 #endif
18123 char _alloca ();
18124 int
18125 main ()
18126 {
18127 return _alloca ();
18128   ;
18129   return 0;
18130 }
18131 _ACEOF
18132 rm -f conftest.$ac_objext conftest$ac_exeext
18133 if { (ac_try="$ac_link"
18134 case "(($ac_try" in
18135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18136   *) ac_try_echo=$ac_try;;
18137 esac
18138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18139   (eval "$ac_link") 2>conftest.er1
18140   ac_status=$?
18141   grep -v '^ *+' conftest.er1 >conftest.err
18142   rm -f conftest.er1
18143   cat conftest.err >&5
18144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145   (exit $ac_status); } &&
18146          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18147   { (case "(($ac_try" in
18148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149   *) ac_try_echo=$ac_try;;
18150 esac
18151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18152   (eval "$ac_try") 2>&5
18153   ac_status=$?
18154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155   (exit $ac_status); }; } &&
18156          { ac_try='test -s conftest$ac_exeext'
18157   { (case "(($ac_try" in
18158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159   *) ac_try_echo=$ac_try;;
18160 esac
18161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18162   (eval "$ac_try") 2>&5
18163   ac_status=$?
18164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165   (exit $ac_status); }; }; then
18166   ac_cv_lib_gcc__alloca=yes
18167 else
18168   echo "$as_me: failed program was:" >&5
18169 sed 's/^/| /' conftest.$ac_ext >&5
18170
18171         ac_cv_lib_gcc__alloca=no
18172 fi
18173
18174 rm -f core conftest.err conftest.$ac_objext \
18175       conftest$ac_exeext conftest.$ac_ext
18176 LIBS=$ac_check_lib_save_LIBS
18177 fi
18178 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18179 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18180 if test $ac_cv_lib_gcc__alloca = yes; then
18181
18182 cat >>confdefs.h <<\_ACEOF
18183 #define HAVE__ALLOCA 1
18184 _ACEOF
18185
18186 fi
18187
18188   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18189 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18190 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18191   echo $ECHO_N "(cached) $ECHO_C" >&6
18192 else
18193   ac_check_lib_save_LIBS=$LIBS
18194 LIBS="-lgcc  $LIBS"
18195 cat >conftest.$ac_ext <<_ACEOF
18196 /* confdefs.h.  */
18197 _ACEOF
18198 cat confdefs.h >>conftest.$ac_ext
18199 cat >>conftest.$ac_ext <<_ACEOF
18200 /* end confdefs.h.  */
18201
18202 /* Override any GCC internal prototype to avoid an error.
18203    Use char because int might match the return type of a GCC
18204    builtin and then its argument prototype would still apply.  */
18205 #ifdef __cplusplus
18206 extern "C"
18207 #endif
18208 char __alloca ();
18209 int
18210 main ()
18211 {
18212 return __alloca ();
18213   ;
18214   return 0;
18215 }
18216 _ACEOF
18217 rm -f conftest.$ac_objext conftest$ac_exeext
18218 if { (ac_try="$ac_link"
18219 case "(($ac_try" in
18220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18221   *) ac_try_echo=$ac_try;;
18222 esac
18223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18224   (eval "$ac_link") 2>conftest.er1
18225   ac_status=$?
18226   grep -v '^ *+' conftest.er1 >conftest.err
18227   rm -f conftest.er1
18228   cat conftest.err >&5
18229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230   (exit $ac_status); } &&
18231          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18232   { (case "(($ac_try" in
18233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18234   *) ac_try_echo=$ac_try;;
18235 esac
18236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18237   (eval "$ac_try") 2>&5
18238   ac_status=$?
18239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240   (exit $ac_status); }; } &&
18241          { ac_try='test -s conftest$ac_exeext'
18242   { (case "(($ac_try" in
18243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244   *) ac_try_echo=$ac_try;;
18245 esac
18246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18247   (eval "$ac_try") 2>&5
18248   ac_status=$?
18249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250   (exit $ac_status); }; }; then
18251   ac_cv_lib_gcc___alloca=yes
18252 else
18253   echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18255
18256         ac_cv_lib_gcc___alloca=no
18257 fi
18258
18259 rm -f core conftest.err conftest.$ac_objext \
18260       conftest$ac_exeext conftest.$ac_ext
18261 LIBS=$ac_check_lib_save_LIBS
18262 fi
18263 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18264 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18265 if test $ac_cv_lib_gcc___alloca = yes; then
18266
18267 cat >>confdefs.h <<\_ACEOF
18268 #define HAVE___ALLOCA 1
18269 _ACEOF
18270
18271 fi
18272
18273   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18274 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18275 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18276   echo $ECHO_N "(cached) $ECHO_C" >&6
18277 else
18278   ac_check_lib_save_LIBS=$LIBS
18279 LIBS="-lgcc  $LIBS"
18280 cat >conftest.$ac_ext <<_ACEOF
18281 /* confdefs.h.  */
18282 _ACEOF
18283 cat confdefs.h >>conftest.$ac_ext
18284 cat >>conftest.$ac_ext <<_ACEOF
18285 /* end confdefs.h.  */
18286
18287 /* Override any GCC internal prototype to avoid an error.
18288    Use char because int might match the return type of a GCC
18289    builtin and then its argument prototype would still apply.  */
18290 #ifdef __cplusplus
18291 extern "C"
18292 #endif
18293 char __chkstk ();
18294 int
18295 main ()
18296 {
18297 return __chkstk ();
18298   ;
18299   return 0;
18300 }
18301 _ACEOF
18302 rm -f conftest.$ac_objext conftest$ac_exeext
18303 if { (ac_try="$ac_link"
18304 case "(($ac_try" in
18305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18306   *) ac_try_echo=$ac_try;;
18307 esac
18308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18309   (eval "$ac_link") 2>conftest.er1
18310   ac_status=$?
18311   grep -v '^ *+' conftest.er1 >conftest.err
18312   rm -f conftest.er1
18313   cat conftest.err >&5
18314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315   (exit $ac_status); } &&
18316          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18317   { (case "(($ac_try" in
18318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18319   *) ac_try_echo=$ac_try;;
18320 esac
18321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18322   (eval "$ac_try") 2>&5
18323   ac_status=$?
18324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325   (exit $ac_status); }; } &&
18326          { ac_try='test -s conftest$ac_exeext'
18327   { (case "(($ac_try" in
18328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329   *) ac_try_echo=$ac_try;;
18330 esac
18331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18332   (eval "$ac_try") 2>&5
18333   ac_status=$?
18334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335   (exit $ac_status); }; }; then
18336   ac_cv_lib_gcc___chkstk=yes
18337 else
18338   echo "$as_me: failed program was:" >&5
18339 sed 's/^/| /' conftest.$ac_ext >&5
18340
18341         ac_cv_lib_gcc___chkstk=no
18342 fi
18343
18344 rm -f core conftest.err conftest.$ac_objext \
18345       conftest$ac_exeext conftest.$ac_ext
18346 LIBS=$ac_check_lib_save_LIBS
18347 fi
18348 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18349 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18350 if test $ac_cv_lib_gcc___chkstk = yes; then
18351
18352 cat >>confdefs.h <<\_ACEOF
18353 #define HAVE___CHKSTK 1
18354 _ACEOF
18355
18356 fi
18357
18358   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18359 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18360 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18361   echo $ECHO_N "(cached) $ECHO_C" >&6
18362 else
18363   ac_check_lib_save_LIBS=$LIBS
18364 LIBS="-lgcc  $LIBS"
18365 cat >conftest.$ac_ext <<_ACEOF
18366 /* confdefs.h.  */
18367 _ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h.  */
18371
18372 /* Override any GCC internal prototype to avoid an error.
18373    Use char because int might match the return type of a GCC
18374    builtin and then its argument prototype would still apply.  */
18375 #ifdef __cplusplus
18376 extern "C"
18377 #endif
18378 char ___chkstk ();
18379 int
18380 main ()
18381 {
18382 return ___chkstk ();
18383   ;
18384   return 0;
18385 }
18386 _ACEOF
18387 rm -f conftest.$ac_objext conftest$ac_exeext
18388 if { (ac_try="$ac_link"
18389 case "(($ac_try" in
18390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391   *) ac_try_echo=$ac_try;;
18392 esac
18393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18394   (eval "$ac_link") 2>conftest.er1
18395   ac_status=$?
18396   grep -v '^ *+' conftest.er1 >conftest.err
18397   rm -f conftest.er1
18398   cat conftest.err >&5
18399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400   (exit $ac_status); } &&
18401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18402   { (case "(($ac_try" in
18403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18404   *) ac_try_echo=$ac_try;;
18405 esac
18406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18407   (eval "$ac_try") 2>&5
18408   ac_status=$?
18409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410   (exit $ac_status); }; } &&
18411          { ac_try='test -s conftest$ac_exeext'
18412   { (case "(($ac_try" in
18413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18414   *) ac_try_echo=$ac_try;;
18415 esac
18416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18417   (eval "$ac_try") 2>&5
18418   ac_status=$?
18419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420   (exit $ac_status); }; }; then
18421   ac_cv_lib_gcc____chkstk=yes
18422 else
18423   echo "$as_me: failed program was:" >&5
18424 sed 's/^/| /' conftest.$ac_ext >&5
18425
18426         ac_cv_lib_gcc____chkstk=no
18427 fi
18428
18429 rm -f core conftest.err conftest.$ac_objext \
18430       conftest$ac_exeext conftest.$ac_ext
18431 LIBS=$ac_check_lib_save_LIBS
18432 fi
18433 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18434 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18435 if test $ac_cv_lib_gcc____chkstk = yes; then
18436
18437 cat >>confdefs.h <<\_ACEOF
18438 #define HAVE____CHKSTK 1
18439 _ACEOF
18440
18441 fi
18442
18443
18444   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18445 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18446 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18447   echo $ECHO_N "(cached) $ECHO_C" >&6
18448 else
18449   ac_check_lib_save_LIBS=$LIBS
18450 LIBS="-lgcc  $LIBS"
18451 cat >conftest.$ac_ext <<_ACEOF
18452 /* confdefs.h.  */
18453 _ACEOF
18454 cat confdefs.h >>conftest.$ac_ext
18455 cat >>conftest.$ac_ext <<_ACEOF
18456 /* end confdefs.h.  */
18457
18458 /* Override any GCC internal prototype to avoid an error.
18459    Use char because int might match the return type of a GCC
18460    builtin and then its argument prototype would still apply.  */
18461 #ifdef __cplusplus
18462 extern "C"
18463 #endif
18464 char __ashldi3 ();
18465 int
18466 main ()
18467 {
18468 return __ashldi3 ();
18469   ;
18470   return 0;
18471 }
18472 _ACEOF
18473 rm -f conftest.$ac_objext conftest$ac_exeext
18474 if { (ac_try="$ac_link"
18475 case "(($ac_try" in
18476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18477   *) ac_try_echo=$ac_try;;
18478 esac
18479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18480   (eval "$ac_link") 2>conftest.er1
18481   ac_status=$?
18482   grep -v '^ *+' conftest.er1 >conftest.err
18483   rm -f conftest.er1
18484   cat conftest.err >&5
18485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486   (exit $ac_status); } &&
18487          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18488   { (case "(($ac_try" in
18489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18490   *) ac_try_echo=$ac_try;;
18491 esac
18492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18493   (eval "$ac_try") 2>&5
18494   ac_status=$?
18495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496   (exit $ac_status); }; } &&
18497          { ac_try='test -s conftest$ac_exeext'
18498   { (case "(($ac_try" in
18499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18500   *) ac_try_echo=$ac_try;;
18501 esac
18502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18503   (eval "$ac_try") 2>&5
18504   ac_status=$?
18505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506   (exit $ac_status); }; }; then
18507   ac_cv_lib_gcc___ashldi3=yes
18508 else
18509   echo "$as_me: failed program was:" >&5
18510 sed 's/^/| /' conftest.$ac_ext >&5
18511
18512         ac_cv_lib_gcc___ashldi3=no
18513 fi
18514
18515 rm -f core conftest.err conftest.$ac_objext \
18516       conftest$ac_exeext conftest.$ac_ext
18517 LIBS=$ac_check_lib_save_LIBS
18518 fi
18519 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18520 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18521 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18522
18523 cat >>confdefs.h <<\_ACEOF
18524 #define HAVE___ASHLDI3 1
18525 _ACEOF
18526
18527 fi
18528
18529   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18530 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18531 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18532   echo $ECHO_N "(cached) $ECHO_C" >&6
18533 else
18534   ac_check_lib_save_LIBS=$LIBS
18535 LIBS="-lgcc  $LIBS"
18536 cat >conftest.$ac_ext <<_ACEOF
18537 /* confdefs.h.  */
18538 _ACEOF
18539 cat confdefs.h >>conftest.$ac_ext
18540 cat >>conftest.$ac_ext <<_ACEOF
18541 /* end confdefs.h.  */
18542
18543 /* Override any GCC internal prototype to avoid an error.
18544    Use char because int might match the return type of a GCC
18545    builtin and then its argument prototype would still apply.  */
18546 #ifdef __cplusplus
18547 extern "C"
18548 #endif
18549 char __ashrdi3 ();
18550 int
18551 main ()
18552 {
18553 return __ashrdi3 ();
18554   ;
18555   return 0;
18556 }
18557 _ACEOF
18558 rm -f conftest.$ac_objext conftest$ac_exeext
18559 if { (ac_try="$ac_link"
18560 case "(($ac_try" in
18561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18562   *) ac_try_echo=$ac_try;;
18563 esac
18564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18565   (eval "$ac_link") 2>conftest.er1
18566   ac_status=$?
18567   grep -v '^ *+' conftest.er1 >conftest.err
18568   rm -f conftest.er1
18569   cat conftest.err >&5
18570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571   (exit $ac_status); } &&
18572          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18573   { (case "(($ac_try" in
18574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18575   *) ac_try_echo=$ac_try;;
18576 esac
18577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578   (eval "$ac_try") 2>&5
18579   ac_status=$?
18580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581   (exit $ac_status); }; } &&
18582          { ac_try='test -s conftest$ac_exeext'
18583   { (case "(($ac_try" in
18584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18585   *) ac_try_echo=$ac_try;;
18586 esac
18587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18588   (eval "$ac_try") 2>&5
18589   ac_status=$?
18590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591   (exit $ac_status); }; }; then
18592   ac_cv_lib_gcc___ashrdi3=yes
18593 else
18594   echo "$as_me: failed program was:" >&5
18595 sed 's/^/| /' conftest.$ac_ext >&5
18596
18597         ac_cv_lib_gcc___ashrdi3=no
18598 fi
18599
18600 rm -f core conftest.err conftest.$ac_objext \
18601       conftest$ac_exeext conftest.$ac_ext
18602 LIBS=$ac_check_lib_save_LIBS
18603 fi
18604 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18605 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18606 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18607
18608 cat >>confdefs.h <<\_ACEOF
18609 #define HAVE___ASHRDI3 1
18610 _ACEOF
18611
18612 fi
18613
18614   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18615 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18616 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18617   echo $ECHO_N "(cached) $ECHO_C" >&6
18618 else
18619   ac_check_lib_save_LIBS=$LIBS
18620 LIBS="-lgcc  $LIBS"
18621 cat >conftest.$ac_ext <<_ACEOF
18622 /* confdefs.h.  */
18623 _ACEOF
18624 cat confdefs.h >>conftest.$ac_ext
18625 cat >>conftest.$ac_ext <<_ACEOF
18626 /* end confdefs.h.  */
18627
18628 /* Override any GCC internal prototype to avoid an error.
18629    Use char because int might match the return type of a GCC
18630    builtin and then its argument prototype would still apply.  */
18631 #ifdef __cplusplus
18632 extern "C"
18633 #endif
18634 char __divdi3 ();
18635 int
18636 main ()
18637 {
18638 return __divdi3 ();
18639   ;
18640   return 0;
18641 }
18642 _ACEOF
18643 rm -f conftest.$ac_objext conftest$ac_exeext
18644 if { (ac_try="$ac_link"
18645 case "(($ac_try" in
18646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18647   *) ac_try_echo=$ac_try;;
18648 esac
18649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18650   (eval "$ac_link") 2>conftest.er1
18651   ac_status=$?
18652   grep -v '^ *+' conftest.er1 >conftest.err
18653   rm -f conftest.er1
18654   cat conftest.err >&5
18655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656   (exit $ac_status); } &&
18657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18658   { (case "(($ac_try" in
18659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18660   *) ac_try_echo=$ac_try;;
18661 esac
18662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18663   (eval "$ac_try") 2>&5
18664   ac_status=$?
18665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666   (exit $ac_status); }; } &&
18667          { ac_try='test -s conftest$ac_exeext'
18668   { (case "(($ac_try" in
18669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18670   *) ac_try_echo=$ac_try;;
18671 esac
18672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18673   (eval "$ac_try") 2>&5
18674   ac_status=$?
18675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676   (exit $ac_status); }; }; then
18677   ac_cv_lib_gcc___divdi3=yes
18678 else
18679   echo "$as_me: failed program was:" >&5
18680 sed 's/^/| /' conftest.$ac_ext >&5
18681
18682         ac_cv_lib_gcc___divdi3=no
18683 fi
18684
18685 rm -f core conftest.err conftest.$ac_objext \
18686       conftest$ac_exeext conftest.$ac_ext
18687 LIBS=$ac_check_lib_save_LIBS
18688 fi
18689 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18690 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18691 if test $ac_cv_lib_gcc___divdi3 = yes; then
18692
18693 cat >>confdefs.h <<\_ACEOF
18694 #define HAVE___DIVDI3 1
18695 _ACEOF
18696
18697 fi
18698
18699   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18700 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18701 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18702   echo $ECHO_N "(cached) $ECHO_C" >&6
18703 else
18704   ac_check_lib_save_LIBS=$LIBS
18705 LIBS="-lgcc  $LIBS"
18706 cat >conftest.$ac_ext <<_ACEOF
18707 /* confdefs.h.  */
18708 _ACEOF
18709 cat confdefs.h >>conftest.$ac_ext
18710 cat >>conftest.$ac_ext <<_ACEOF
18711 /* end confdefs.h.  */
18712
18713 /* Override any GCC internal prototype to avoid an error.
18714    Use char because int might match the return type of a GCC
18715    builtin and then its argument prototype would still apply.  */
18716 #ifdef __cplusplus
18717 extern "C"
18718 #endif
18719 char __fixdfdi ();
18720 int
18721 main ()
18722 {
18723 return __fixdfdi ();
18724   ;
18725   return 0;
18726 }
18727 _ACEOF
18728 rm -f conftest.$ac_objext conftest$ac_exeext
18729 if { (ac_try="$ac_link"
18730 case "(($ac_try" in
18731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18732   *) ac_try_echo=$ac_try;;
18733 esac
18734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18735   (eval "$ac_link") 2>conftest.er1
18736   ac_status=$?
18737   grep -v '^ *+' conftest.er1 >conftest.err
18738   rm -f conftest.er1
18739   cat conftest.err >&5
18740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741   (exit $ac_status); } &&
18742          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18743   { (case "(($ac_try" in
18744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18745   *) ac_try_echo=$ac_try;;
18746 esac
18747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18748   (eval "$ac_try") 2>&5
18749   ac_status=$?
18750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751   (exit $ac_status); }; } &&
18752          { ac_try='test -s conftest$ac_exeext'
18753   { (case "(($ac_try" in
18754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18755   *) ac_try_echo=$ac_try;;
18756 esac
18757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18758   (eval "$ac_try") 2>&5
18759   ac_status=$?
18760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761   (exit $ac_status); }; }; then
18762   ac_cv_lib_gcc___fixdfdi=yes
18763 else
18764   echo "$as_me: failed program was:" >&5
18765 sed 's/^/| /' conftest.$ac_ext >&5
18766
18767         ac_cv_lib_gcc___fixdfdi=no
18768 fi
18769
18770 rm -f core conftest.err conftest.$ac_objext \
18771       conftest$ac_exeext conftest.$ac_ext
18772 LIBS=$ac_check_lib_save_LIBS
18773 fi
18774 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18775 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18776 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18777
18778 cat >>confdefs.h <<\_ACEOF
18779 #define HAVE___FIXDFDI 1
18780 _ACEOF
18781
18782 fi
18783
18784   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18785 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18786 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18787   echo $ECHO_N "(cached) $ECHO_C" >&6
18788 else
18789   ac_check_lib_save_LIBS=$LIBS
18790 LIBS="-lgcc  $LIBS"
18791 cat >conftest.$ac_ext <<_ACEOF
18792 /* confdefs.h.  */
18793 _ACEOF
18794 cat confdefs.h >>conftest.$ac_ext
18795 cat >>conftest.$ac_ext <<_ACEOF
18796 /* end confdefs.h.  */
18797
18798 /* Override any GCC internal prototype to avoid an error.
18799    Use char because int might match the return type of a GCC
18800    builtin and then its argument prototype would still apply.  */
18801 #ifdef __cplusplus
18802 extern "C"
18803 #endif
18804 char __fixsfdi ();
18805 int
18806 main ()
18807 {
18808 return __fixsfdi ();
18809   ;
18810   return 0;
18811 }
18812 _ACEOF
18813 rm -f conftest.$ac_objext conftest$ac_exeext
18814 if { (ac_try="$ac_link"
18815 case "(($ac_try" in
18816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18817   *) ac_try_echo=$ac_try;;
18818 esac
18819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18820   (eval "$ac_link") 2>conftest.er1
18821   ac_status=$?
18822   grep -v '^ *+' conftest.er1 >conftest.err
18823   rm -f conftest.er1
18824   cat conftest.err >&5
18825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826   (exit $ac_status); } &&
18827          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18828   { (case "(($ac_try" in
18829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830   *) ac_try_echo=$ac_try;;
18831 esac
18832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833   (eval "$ac_try") 2>&5
18834   ac_status=$?
18835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836   (exit $ac_status); }; } &&
18837          { ac_try='test -s conftest$ac_exeext'
18838   { (case "(($ac_try" in
18839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840   *) ac_try_echo=$ac_try;;
18841 esac
18842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18843   (eval "$ac_try") 2>&5
18844   ac_status=$?
18845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846   (exit $ac_status); }; }; then
18847   ac_cv_lib_gcc___fixsfdi=yes
18848 else
18849   echo "$as_me: failed program was:" >&5
18850 sed 's/^/| /' conftest.$ac_ext >&5
18851
18852         ac_cv_lib_gcc___fixsfdi=no
18853 fi
18854
18855 rm -f core conftest.err conftest.$ac_objext \
18856       conftest$ac_exeext conftest.$ac_ext
18857 LIBS=$ac_check_lib_save_LIBS
18858 fi
18859 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18860 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18861 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18862
18863 cat >>confdefs.h <<\_ACEOF
18864 #define HAVE___FIXSFDI 1
18865 _ACEOF
18866
18867 fi
18868
18869   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18870 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18871 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18872   echo $ECHO_N "(cached) $ECHO_C" >&6
18873 else
18874   ac_check_lib_save_LIBS=$LIBS
18875 LIBS="-lgcc  $LIBS"
18876 cat >conftest.$ac_ext <<_ACEOF
18877 /* confdefs.h.  */
18878 _ACEOF
18879 cat confdefs.h >>conftest.$ac_ext
18880 cat >>conftest.$ac_ext <<_ACEOF
18881 /* end confdefs.h.  */
18882
18883 /* Override any GCC internal prototype to avoid an error.
18884    Use char because int might match the return type of a GCC
18885    builtin and then its argument prototype would still apply.  */
18886 #ifdef __cplusplus
18887 extern "C"
18888 #endif
18889 char __floatdidf ();
18890 int
18891 main ()
18892 {
18893 return __floatdidf ();
18894   ;
18895   return 0;
18896 }
18897 _ACEOF
18898 rm -f conftest.$ac_objext conftest$ac_exeext
18899 if { (ac_try="$ac_link"
18900 case "(($ac_try" in
18901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902   *) ac_try_echo=$ac_try;;
18903 esac
18904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18905   (eval "$ac_link") 2>conftest.er1
18906   ac_status=$?
18907   grep -v '^ *+' conftest.er1 >conftest.err
18908   rm -f conftest.er1
18909   cat conftest.err >&5
18910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911   (exit $ac_status); } &&
18912          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18913   { (case "(($ac_try" in
18914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915   *) ac_try_echo=$ac_try;;
18916 esac
18917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918   (eval "$ac_try") 2>&5
18919   ac_status=$?
18920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921   (exit $ac_status); }; } &&
18922          { ac_try='test -s conftest$ac_exeext'
18923   { (case "(($ac_try" in
18924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18925   *) ac_try_echo=$ac_try;;
18926 esac
18927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18928   (eval "$ac_try") 2>&5
18929   ac_status=$?
18930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931   (exit $ac_status); }; }; then
18932   ac_cv_lib_gcc___floatdidf=yes
18933 else
18934   echo "$as_me: failed program was:" >&5
18935 sed 's/^/| /' conftest.$ac_ext >&5
18936
18937         ac_cv_lib_gcc___floatdidf=no
18938 fi
18939
18940 rm -f core conftest.err conftest.$ac_objext \
18941       conftest$ac_exeext conftest.$ac_ext
18942 LIBS=$ac_check_lib_save_LIBS
18943 fi
18944 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18945 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18946 if test $ac_cv_lib_gcc___floatdidf = yes; then
18947
18948 cat >>confdefs.h <<\_ACEOF
18949 #define HAVE___FLOATDIDF 1
18950 _ACEOF
18951
18952 fi
18953
18954   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18955 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18956 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18957   echo $ECHO_N "(cached) $ECHO_C" >&6
18958 else
18959   ac_check_lib_save_LIBS=$LIBS
18960 LIBS="-lgcc  $LIBS"
18961 cat >conftest.$ac_ext <<_ACEOF
18962 /* confdefs.h.  */
18963 _ACEOF
18964 cat confdefs.h >>conftest.$ac_ext
18965 cat >>conftest.$ac_ext <<_ACEOF
18966 /* end confdefs.h.  */
18967
18968 /* Override any GCC internal prototype to avoid an error.
18969    Use char because int might match the return type of a GCC
18970    builtin and then its argument prototype would still apply.  */
18971 #ifdef __cplusplus
18972 extern "C"
18973 #endif
18974 char __lshrdi3 ();
18975 int
18976 main ()
18977 {
18978 return __lshrdi3 ();
18979   ;
18980   return 0;
18981 }
18982 _ACEOF
18983 rm -f conftest.$ac_objext conftest$ac_exeext
18984 if { (ac_try="$ac_link"
18985 case "(($ac_try" in
18986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987   *) ac_try_echo=$ac_try;;
18988 esac
18989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990   (eval "$ac_link") 2>conftest.er1
18991   ac_status=$?
18992   grep -v '^ *+' conftest.er1 >conftest.err
18993   rm -f conftest.er1
18994   cat conftest.err >&5
18995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996   (exit $ac_status); } &&
18997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18998   { (case "(($ac_try" in
18999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000   *) ac_try_echo=$ac_try;;
19001 esac
19002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003   (eval "$ac_try") 2>&5
19004   ac_status=$?
19005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006   (exit $ac_status); }; } &&
19007          { ac_try='test -s conftest$ac_exeext'
19008   { (case "(($ac_try" in
19009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010   *) ac_try_echo=$ac_try;;
19011 esac
19012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013   (eval "$ac_try") 2>&5
19014   ac_status=$?
19015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016   (exit $ac_status); }; }; then
19017   ac_cv_lib_gcc___lshrdi3=yes
19018 else
19019   echo "$as_me: failed program was:" >&5
19020 sed 's/^/| /' conftest.$ac_ext >&5
19021
19022         ac_cv_lib_gcc___lshrdi3=no
19023 fi
19024
19025 rm -f core conftest.err conftest.$ac_objext \
19026       conftest$ac_exeext conftest.$ac_ext
19027 LIBS=$ac_check_lib_save_LIBS
19028 fi
19029 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19030 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19031 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19032
19033 cat >>confdefs.h <<\_ACEOF
19034 #define HAVE___LSHRDI3 1
19035 _ACEOF
19036
19037 fi
19038
19039   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19040 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19041 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19042   echo $ECHO_N "(cached) $ECHO_C" >&6
19043 else
19044   ac_check_lib_save_LIBS=$LIBS
19045 LIBS="-lgcc  $LIBS"
19046 cat >conftest.$ac_ext <<_ACEOF
19047 /* confdefs.h.  */
19048 _ACEOF
19049 cat confdefs.h >>conftest.$ac_ext
19050 cat >>conftest.$ac_ext <<_ACEOF
19051 /* end confdefs.h.  */
19052
19053 /* Override any GCC internal prototype to avoid an error.
19054    Use char because int might match the return type of a GCC
19055    builtin and then its argument prototype would still apply.  */
19056 #ifdef __cplusplus
19057 extern "C"
19058 #endif
19059 char __moddi3 ();
19060 int
19061 main ()
19062 {
19063 return __moddi3 ();
19064   ;
19065   return 0;
19066 }
19067 _ACEOF
19068 rm -f conftest.$ac_objext conftest$ac_exeext
19069 if { (ac_try="$ac_link"
19070 case "(($ac_try" in
19071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072   *) ac_try_echo=$ac_try;;
19073 esac
19074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075   (eval "$ac_link") 2>conftest.er1
19076   ac_status=$?
19077   grep -v '^ *+' conftest.er1 >conftest.err
19078   rm -f conftest.er1
19079   cat conftest.err >&5
19080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081   (exit $ac_status); } &&
19082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19083   { (case "(($ac_try" in
19084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085   *) ac_try_echo=$ac_try;;
19086 esac
19087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19088   (eval "$ac_try") 2>&5
19089   ac_status=$?
19090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091   (exit $ac_status); }; } &&
19092          { ac_try='test -s conftest$ac_exeext'
19093   { (case "(($ac_try" in
19094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19095   *) ac_try_echo=$ac_try;;
19096 esac
19097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19098   (eval "$ac_try") 2>&5
19099   ac_status=$?
19100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101   (exit $ac_status); }; }; then
19102   ac_cv_lib_gcc___moddi3=yes
19103 else
19104   echo "$as_me: failed program was:" >&5
19105 sed 's/^/| /' conftest.$ac_ext >&5
19106
19107         ac_cv_lib_gcc___moddi3=no
19108 fi
19109
19110 rm -f core conftest.err conftest.$ac_objext \
19111       conftest$ac_exeext conftest.$ac_ext
19112 LIBS=$ac_check_lib_save_LIBS
19113 fi
19114 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19115 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19116 if test $ac_cv_lib_gcc___moddi3 = yes; then
19117
19118 cat >>confdefs.h <<\_ACEOF
19119 #define HAVE___MODDI3 1
19120 _ACEOF
19121
19122 fi
19123
19124   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19125 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19126 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19127   echo $ECHO_N "(cached) $ECHO_C" >&6
19128 else
19129   ac_check_lib_save_LIBS=$LIBS
19130 LIBS="-lgcc  $LIBS"
19131 cat >conftest.$ac_ext <<_ACEOF
19132 /* confdefs.h.  */
19133 _ACEOF
19134 cat confdefs.h >>conftest.$ac_ext
19135 cat >>conftest.$ac_ext <<_ACEOF
19136 /* end confdefs.h.  */
19137
19138 /* Override any GCC internal prototype to avoid an error.
19139    Use char because int might match the return type of a GCC
19140    builtin and then its argument prototype would still apply.  */
19141 #ifdef __cplusplus
19142 extern "C"
19143 #endif
19144 char __udivdi3 ();
19145 int
19146 main ()
19147 {
19148 return __udivdi3 ();
19149   ;
19150   return 0;
19151 }
19152 _ACEOF
19153 rm -f conftest.$ac_objext conftest$ac_exeext
19154 if { (ac_try="$ac_link"
19155 case "(($ac_try" in
19156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19157   *) ac_try_echo=$ac_try;;
19158 esac
19159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19160   (eval "$ac_link") 2>conftest.er1
19161   ac_status=$?
19162   grep -v '^ *+' conftest.er1 >conftest.err
19163   rm -f conftest.er1
19164   cat conftest.err >&5
19165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166   (exit $ac_status); } &&
19167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19168   { (case "(($ac_try" in
19169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19170   *) ac_try_echo=$ac_try;;
19171 esac
19172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19173   (eval "$ac_try") 2>&5
19174   ac_status=$?
19175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176   (exit $ac_status); }; } &&
19177          { ac_try='test -s conftest$ac_exeext'
19178   { (case "(($ac_try" in
19179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180   *) ac_try_echo=$ac_try;;
19181 esac
19182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19183   (eval "$ac_try") 2>&5
19184   ac_status=$?
19185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186   (exit $ac_status); }; }; then
19187   ac_cv_lib_gcc___udivdi3=yes
19188 else
19189   echo "$as_me: failed program was:" >&5
19190 sed 's/^/| /' conftest.$ac_ext >&5
19191
19192         ac_cv_lib_gcc___udivdi3=no
19193 fi
19194
19195 rm -f core conftest.err conftest.$ac_objext \
19196       conftest$ac_exeext conftest.$ac_ext
19197 LIBS=$ac_check_lib_save_LIBS
19198 fi
19199 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19200 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19201 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19202
19203 cat >>confdefs.h <<\_ACEOF
19204 #define HAVE___UDIVDI3 1
19205 _ACEOF
19206
19207 fi
19208
19209   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19210 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19211 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19212   echo $ECHO_N "(cached) $ECHO_C" >&6
19213 else
19214   ac_check_lib_save_LIBS=$LIBS
19215 LIBS="-lgcc  $LIBS"
19216 cat >conftest.$ac_ext <<_ACEOF
19217 /* confdefs.h.  */
19218 _ACEOF
19219 cat confdefs.h >>conftest.$ac_ext
19220 cat >>conftest.$ac_ext <<_ACEOF
19221 /* end confdefs.h.  */
19222
19223 /* Override any GCC internal prototype to avoid an error.
19224    Use char because int might match the return type of a GCC
19225    builtin and then its argument prototype would still apply.  */
19226 #ifdef __cplusplus
19227 extern "C"
19228 #endif
19229 char __umoddi3 ();
19230 int
19231 main ()
19232 {
19233 return __umoddi3 ();
19234   ;
19235   return 0;
19236 }
19237 _ACEOF
19238 rm -f conftest.$ac_objext conftest$ac_exeext
19239 if { (ac_try="$ac_link"
19240 case "(($ac_try" in
19241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242   *) ac_try_echo=$ac_try;;
19243 esac
19244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19245   (eval "$ac_link") 2>conftest.er1
19246   ac_status=$?
19247   grep -v '^ *+' conftest.er1 >conftest.err
19248   rm -f conftest.er1
19249   cat conftest.err >&5
19250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251   (exit $ac_status); } &&
19252          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19253   { (case "(($ac_try" in
19254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19255   *) ac_try_echo=$ac_try;;
19256 esac
19257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19258   (eval "$ac_try") 2>&5
19259   ac_status=$?
19260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261   (exit $ac_status); }; } &&
19262          { ac_try='test -s conftest$ac_exeext'
19263   { (case "(($ac_try" in
19264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19265   *) ac_try_echo=$ac_try;;
19266 esac
19267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19268   (eval "$ac_try") 2>&5
19269   ac_status=$?
19270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271   (exit $ac_status); }; }; then
19272   ac_cv_lib_gcc___umoddi3=yes
19273 else
19274   echo "$as_me: failed program was:" >&5
19275 sed 's/^/| /' conftest.$ac_ext >&5
19276
19277         ac_cv_lib_gcc___umoddi3=no
19278 fi
19279
19280 rm -f core conftest.err conftest.$ac_objext \
19281       conftest$ac_exeext conftest.$ac_ext
19282 LIBS=$ac_check_lib_save_LIBS
19283 fi
19284 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19285 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19286 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19287
19288 cat >>confdefs.h <<\_ACEOF
19289 #define HAVE___UMODDI3 1
19290 _ACEOF
19291
19292 fi
19293
19294
19295   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19296 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19297 if test "${ac_cv_lib_gcc___main+set}" = set; then
19298   echo $ECHO_N "(cached) $ECHO_C" >&6
19299 else
19300   ac_check_lib_save_LIBS=$LIBS
19301 LIBS="-lgcc  $LIBS"
19302 cat >conftest.$ac_ext <<_ACEOF
19303 /* confdefs.h.  */
19304 _ACEOF
19305 cat confdefs.h >>conftest.$ac_ext
19306 cat >>conftest.$ac_ext <<_ACEOF
19307 /* end confdefs.h.  */
19308
19309 /* Override any GCC internal prototype to avoid an error.
19310    Use char because int might match the return type of a GCC
19311    builtin and then its argument prototype would still apply.  */
19312 #ifdef __cplusplus
19313 extern "C"
19314 #endif
19315 char __main ();
19316 int
19317 main ()
19318 {
19319 return __main ();
19320   ;
19321   return 0;
19322 }
19323 _ACEOF
19324 rm -f conftest.$ac_objext conftest$ac_exeext
19325 if { (ac_try="$ac_link"
19326 case "(($ac_try" in
19327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19328   *) ac_try_echo=$ac_try;;
19329 esac
19330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19331   (eval "$ac_link") 2>conftest.er1
19332   ac_status=$?
19333   grep -v '^ *+' conftest.er1 >conftest.err
19334   rm -f conftest.er1
19335   cat conftest.err >&5
19336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337   (exit $ac_status); } &&
19338          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19339   { (case "(($ac_try" in
19340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19341   *) ac_try_echo=$ac_try;;
19342 esac
19343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19344   (eval "$ac_try") 2>&5
19345   ac_status=$?
19346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347   (exit $ac_status); }; } &&
19348          { ac_try='test -s conftest$ac_exeext'
19349   { (case "(($ac_try" in
19350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19351   *) ac_try_echo=$ac_try;;
19352 esac
19353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19354   (eval "$ac_try") 2>&5
19355   ac_status=$?
19356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357   (exit $ac_status); }; }; then
19358   ac_cv_lib_gcc___main=yes
19359 else
19360   echo "$as_me: failed program was:" >&5
19361 sed 's/^/| /' conftest.$ac_ext >&5
19362
19363         ac_cv_lib_gcc___main=no
19364 fi
19365
19366 rm -f core conftest.err conftest.$ac_objext \
19367       conftest$ac_exeext conftest.$ac_ext
19368 LIBS=$ac_check_lib_save_LIBS
19369 fi
19370 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19371 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19372 if test $ac_cv_lib_gcc___main = yes; then
19373
19374 cat >>confdefs.h <<\_ACEOF
19375 #define HAVE___MAIN 1
19376 _ACEOF
19377
19378 fi
19379
19380   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19381 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19382 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19383   echo $ECHO_N "(cached) $ECHO_C" >&6
19384 else
19385   ac_check_lib_save_LIBS=$LIBS
19386 LIBS="-lgcc  $LIBS"
19387 cat >conftest.$ac_ext <<_ACEOF
19388 /* confdefs.h.  */
19389 _ACEOF
19390 cat confdefs.h >>conftest.$ac_ext
19391 cat >>conftest.$ac_ext <<_ACEOF
19392 /* end confdefs.h.  */
19393
19394 /* Override any GCC internal prototype to avoid an error.
19395    Use char because int might match the return type of a GCC
19396    builtin and then its argument prototype would still apply.  */
19397 #ifdef __cplusplus
19398 extern "C"
19399 #endif
19400 char __cmpdi2 ();
19401 int
19402 main ()
19403 {
19404 return __cmpdi2 ();
19405   ;
19406   return 0;
19407 }
19408 _ACEOF
19409 rm -f conftest.$ac_objext conftest$ac_exeext
19410 if { (ac_try="$ac_link"
19411 case "(($ac_try" in
19412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413   *) ac_try_echo=$ac_try;;
19414 esac
19415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416   (eval "$ac_link") 2>conftest.er1
19417   ac_status=$?
19418   grep -v '^ *+' conftest.er1 >conftest.err
19419   rm -f conftest.er1
19420   cat conftest.err >&5
19421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422   (exit $ac_status); } &&
19423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19424   { (case "(($ac_try" in
19425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426   *) ac_try_echo=$ac_try;;
19427 esac
19428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429   (eval "$ac_try") 2>&5
19430   ac_status=$?
19431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432   (exit $ac_status); }; } &&
19433          { ac_try='test -s conftest$ac_exeext'
19434   { (case "(($ac_try" in
19435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19436   *) ac_try_echo=$ac_try;;
19437 esac
19438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19439   (eval "$ac_try") 2>&5
19440   ac_status=$?
19441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442   (exit $ac_status); }; }; then
19443   ac_cv_lib_gcc___cmpdi2=yes
19444 else
19445   echo "$as_me: failed program was:" >&5
19446 sed 's/^/| /' conftest.$ac_ext >&5
19447
19448         ac_cv_lib_gcc___cmpdi2=no
19449 fi
19450
19451 rm -f core conftest.err conftest.$ac_objext \
19452       conftest$ac_exeext conftest.$ac_ext
19453 LIBS=$ac_check_lib_save_LIBS
19454 fi
19455 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19456 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19457 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19458
19459 cat >>confdefs.h <<\_ACEOF
19460 #define HAVE___CMPDI2 1
19461 _ACEOF
19462
19463 fi
19464
19465 fi
19466
19467 if test "$llvm_cv_os_type" = "MingW" ; then
19468   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19469 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19470   cat >conftest.$ac_ext <<_ACEOF
19471 #include <windows.h>
19472 #include <imagehlp.h>
19473 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19474 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19475 _ACEOF
19476 rm -f conftest.$ac_objext
19477 if { (ac_try="$ac_compile"
19478 case "(($ac_try" in
19479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19480   *) ac_try_echo=$ac_try;;
19481 esac
19482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19483   (eval "$ac_compile") 2>conftest.er1
19484   ac_status=$?
19485   grep -v '^ *+' conftest.er1 >conftest.err
19486   rm -f conftest.er1
19487   cat conftest.err >&5
19488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489   (exit $ac_status); } &&
19490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19491   { (case "(($ac_try" in
19492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19493   *) ac_try_echo=$ac_try;;
19494 esac
19495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19496   (eval "$ac_try") 2>&5
19497   ac_status=$?
19498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499   (exit $ac_status); }; } &&
19500          { ac_try='test -s conftest.$ac_objext'
19501   { (case "(($ac_try" in
19502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503   *) ac_try_echo=$ac_try;;
19504 esac
19505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506   (eval "$ac_try") 2>&5
19507   ac_status=$?
19508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509   (exit $ac_status); }; }; then
19510
19511   { echo "$as_me:$LINENO: result: yes" >&5
19512 echo "${ECHO_T}yes" >&6; }
19513   llvm_cv_win32_elmcb_pcstr="PCSTR"
19514
19515 else
19516   echo "$as_me: failed program was:" >&5
19517 sed 's/^/| /' conftest.$ac_ext >&5
19518
19519
19520   { echo "$as_me:$LINENO: result: no" >&5
19521 echo "${ECHO_T}no" >&6; }
19522   llvm_cv_win32_elmcb_pcstr="PSTR"
19523
19524 fi
19525
19526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19527
19528 cat >>confdefs.h <<_ACEOF
19529 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19530 _ACEOF
19531
19532 fi
19533
19534
19535 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19536 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19537 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19538   echo $ECHO_N "(cached) $ECHO_C" >&6
19539 else
19540   ac_ext=cpp
19541 ac_cpp='$CXXCPP $CPPFLAGS'
19542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19545
19546    cat >conftest.$ac_ext <<_ACEOF
19547 /* confdefs.h.  */
19548 _ACEOF
19549 cat confdefs.h >>conftest.$ac_ext
19550 cat >>conftest.$ac_ext <<_ACEOF
19551 /* end confdefs.h.  */
19552 #include <math.h>
19553 int
19554 main ()
19555 {
19556 float f; isnan(f);
19557   ;
19558   return 0;
19559 }
19560 _ACEOF
19561 rm -f conftest.$ac_objext
19562 if { (ac_try="$ac_compile"
19563 case "(($ac_try" in
19564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19565   *) ac_try_echo=$ac_try;;
19566 esac
19567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19568   (eval "$ac_compile") 2>conftest.er1
19569   ac_status=$?
19570   grep -v '^ *+' conftest.er1 >conftest.err
19571   rm -f conftest.er1
19572   cat conftest.err >&5
19573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574   (exit $ac_status); } &&
19575          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19576   { (case "(($ac_try" in
19577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19578   *) ac_try_echo=$ac_try;;
19579 esac
19580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19581   (eval "$ac_try") 2>&5
19582   ac_status=$?
19583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584   (exit $ac_status); }; } &&
19585          { ac_try='test -s conftest.$ac_objext'
19586   { (case "(($ac_try" in
19587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19588   *) ac_try_echo=$ac_try;;
19589 esac
19590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19591   (eval "$ac_try") 2>&5
19592   ac_status=$?
19593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594   (exit $ac_status); }; }; then
19595   ac_cv_func_isnan_in_math_h=yes
19596 else
19597   echo "$as_me: failed program was:" >&5
19598 sed 's/^/| /' conftest.$ac_ext >&5
19599
19600         ac_cv_func_isnan_in_math_h=no
19601 fi
19602
19603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19604   ac_ext=c
19605 ac_cpp='$CPP $CPPFLAGS'
19606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19609
19610 fi
19611 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19612 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19613
19614
19615 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19616
19617 cat >>confdefs.h <<\_ACEOF
19618 #define HAVE_ISNAN_IN_MATH_H 1
19619 _ACEOF
19620
19621 fi
19622
19623 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19624 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19625 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19626   echo $ECHO_N "(cached) $ECHO_C" >&6
19627 else
19628   ac_ext=cpp
19629 ac_cpp='$CXXCPP $CPPFLAGS'
19630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19633
19634    cat >conftest.$ac_ext <<_ACEOF
19635 /* confdefs.h.  */
19636 _ACEOF
19637 cat confdefs.h >>conftest.$ac_ext
19638 cat >>conftest.$ac_ext <<_ACEOF
19639 /* end confdefs.h.  */
19640 #include <cmath>
19641 int
19642 main ()
19643 {
19644 float f; isnan(f);
19645   ;
19646   return 0;
19647 }
19648 _ACEOF
19649 rm -f conftest.$ac_objext
19650 if { (ac_try="$ac_compile"
19651 case "(($ac_try" in
19652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653   *) ac_try_echo=$ac_try;;
19654 esac
19655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656   (eval "$ac_compile") 2>conftest.er1
19657   ac_status=$?
19658   grep -v '^ *+' conftest.er1 >conftest.err
19659   rm -f conftest.er1
19660   cat conftest.err >&5
19661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662   (exit $ac_status); } &&
19663          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19664   { (case "(($ac_try" in
19665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19666   *) ac_try_echo=$ac_try;;
19667 esac
19668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19669   (eval "$ac_try") 2>&5
19670   ac_status=$?
19671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672   (exit $ac_status); }; } &&
19673          { ac_try='test -s conftest.$ac_objext'
19674   { (case "(($ac_try" in
19675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19676   *) ac_try_echo=$ac_try;;
19677 esac
19678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19679   (eval "$ac_try") 2>&5
19680   ac_status=$?
19681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682   (exit $ac_status); }; }; then
19683   ac_cv_func_isnan_in_cmath=yes
19684 else
19685   echo "$as_me: failed program was:" >&5
19686 sed 's/^/| /' conftest.$ac_ext >&5
19687
19688         ac_cv_func_isnan_in_cmath=no
19689 fi
19690
19691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19692   ac_ext=c
19693 ac_cpp='$CPP $CPPFLAGS'
19694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19697
19698 fi
19699 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19700 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19701
19702 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19703
19704 cat >>confdefs.h <<\_ACEOF
19705 #define HAVE_ISNAN_IN_CMATH 1
19706 _ACEOF
19707
19708 fi
19709
19710 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19711 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19712 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19713   echo $ECHO_N "(cached) $ECHO_C" >&6
19714 else
19715   ac_ext=cpp
19716 ac_cpp='$CXXCPP $CPPFLAGS'
19717 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19718 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19719 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19720
19721    cat >conftest.$ac_ext <<_ACEOF
19722 /* confdefs.h.  */
19723 _ACEOF
19724 cat confdefs.h >>conftest.$ac_ext
19725 cat >>conftest.$ac_ext <<_ACEOF
19726 /* end confdefs.h.  */
19727 #include <cmath>
19728 int
19729 main ()
19730 {
19731 float f; std::isnan(f);
19732   ;
19733   return 0;
19734 }
19735 _ACEOF
19736 rm -f conftest.$ac_objext
19737 if { (ac_try="$ac_compile"
19738 case "(($ac_try" in
19739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19740   *) ac_try_echo=$ac_try;;
19741 esac
19742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19743   (eval "$ac_compile") 2>conftest.er1
19744   ac_status=$?
19745   grep -v '^ *+' conftest.er1 >conftest.err
19746   rm -f conftest.er1
19747   cat conftest.err >&5
19748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749   (exit $ac_status); } &&
19750          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19751   { (case "(($ac_try" in
19752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19753   *) ac_try_echo=$ac_try;;
19754 esac
19755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19756   (eval "$ac_try") 2>&5
19757   ac_status=$?
19758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759   (exit $ac_status); }; } &&
19760          { ac_try='test -s conftest.$ac_objext'
19761   { (case "(($ac_try" in
19762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19763   *) ac_try_echo=$ac_try;;
19764 esac
19765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19766   (eval "$ac_try") 2>&5
19767   ac_status=$?
19768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769   (exit $ac_status); }; }; then
19770   ac_cv_func_std_isnan_in_cmath=yes
19771 else
19772   echo "$as_me: failed program was:" >&5
19773 sed 's/^/| /' conftest.$ac_ext >&5
19774
19775         ac_cv_func_std_isnan_in_cmath=no
19776 fi
19777
19778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19779   ac_ext=c
19780 ac_cpp='$CPP $CPPFLAGS'
19781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19784
19785 fi
19786 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19787 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19788
19789 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19790
19791 cat >>confdefs.h <<\_ACEOF
19792 #define HAVE_STD_ISNAN_IN_CMATH 1
19793 _ACEOF
19794
19795 fi
19796
19797
19798 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19799 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19800 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19801   echo $ECHO_N "(cached) $ECHO_C" >&6
19802 else
19803   ac_ext=cpp
19804 ac_cpp='$CXXCPP $CPPFLAGS'
19805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19808
19809    cat >conftest.$ac_ext <<_ACEOF
19810 /* confdefs.h.  */
19811 _ACEOF
19812 cat confdefs.h >>conftest.$ac_ext
19813 cat >>conftest.$ac_ext <<_ACEOF
19814 /* end confdefs.h.  */
19815 #include <math.h>
19816 int
19817 main ()
19818 {
19819 float f; isinf(f);
19820   ;
19821   return 0;
19822 }
19823 _ACEOF
19824 rm -f conftest.$ac_objext
19825 if { (ac_try="$ac_compile"
19826 case "(($ac_try" in
19827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19828   *) ac_try_echo=$ac_try;;
19829 esac
19830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19831   (eval "$ac_compile") 2>conftest.er1
19832   ac_status=$?
19833   grep -v '^ *+' conftest.er1 >conftest.err
19834   rm -f conftest.er1
19835   cat conftest.err >&5
19836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837   (exit $ac_status); } &&
19838          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19839   { (case "(($ac_try" in
19840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19841   *) ac_try_echo=$ac_try;;
19842 esac
19843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19844   (eval "$ac_try") 2>&5
19845   ac_status=$?
19846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847   (exit $ac_status); }; } &&
19848          { ac_try='test -s conftest.$ac_objext'
19849   { (case "(($ac_try" in
19850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19851   *) ac_try_echo=$ac_try;;
19852 esac
19853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19854   (eval "$ac_try") 2>&5
19855   ac_status=$?
19856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857   (exit $ac_status); }; }; then
19858   ac_cv_func_isinf_in_math_h=yes
19859 else
19860   echo "$as_me: failed program was:" >&5
19861 sed 's/^/| /' conftest.$ac_ext >&5
19862
19863         ac_cv_func_isinf_in_math_h=no
19864 fi
19865
19866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19867   ac_ext=c
19868 ac_cpp='$CPP $CPPFLAGS'
19869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19872
19873 fi
19874 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19875 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19876
19877 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19878
19879 cat >>confdefs.h <<\_ACEOF
19880 #define HAVE_ISINF_IN_MATH_H 1
19881 _ACEOF
19882
19883 fi
19884
19885 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19886 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19887 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19888   echo $ECHO_N "(cached) $ECHO_C" >&6
19889 else
19890   ac_ext=cpp
19891 ac_cpp='$CXXCPP $CPPFLAGS'
19892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19895
19896    cat >conftest.$ac_ext <<_ACEOF
19897 /* confdefs.h.  */
19898 _ACEOF
19899 cat confdefs.h >>conftest.$ac_ext
19900 cat >>conftest.$ac_ext <<_ACEOF
19901 /* end confdefs.h.  */
19902 #include <cmath>
19903 int
19904 main ()
19905 {
19906 float f; isinf(f);
19907   ;
19908   return 0;
19909 }
19910 _ACEOF
19911 rm -f conftest.$ac_objext
19912 if { (ac_try="$ac_compile"
19913 case "(($ac_try" in
19914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19915   *) ac_try_echo=$ac_try;;
19916 esac
19917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19918   (eval "$ac_compile") 2>conftest.er1
19919   ac_status=$?
19920   grep -v '^ *+' conftest.er1 >conftest.err
19921   rm -f conftest.er1
19922   cat conftest.err >&5
19923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924   (exit $ac_status); } &&
19925          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19926   { (case "(($ac_try" in
19927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19928   *) ac_try_echo=$ac_try;;
19929 esac
19930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19931   (eval "$ac_try") 2>&5
19932   ac_status=$?
19933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934   (exit $ac_status); }; } &&
19935          { ac_try='test -s conftest.$ac_objext'
19936   { (case "(($ac_try" in
19937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19938   *) ac_try_echo=$ac_try;;
19939 esac
19940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19941   (eval "$ac_try") 2>&5
19942   ac_status=$?
19943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944   (exit $ac_status); }; }; then
19945   ac_cv_func_isinf_in_cmath=yes
19946 else
19947   echo "$as_me: failed program was:" >&5
19948 sed 's/^/| /' conftest.$ac_ext >&5
19949
19950         ac_cv_func_isinf_in_cmath=no
19951 fi
19952
19953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19954   ac_ext=c
19955 ac_cpp='$CPP $CPPFLAGS'
19956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19959
19960 fi
19961 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19962 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19963
19964 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19965
19966 cat >>confdefs.h <<\_ACEOF
19967 #define HAVE_ISINF_IN_CMATH 1
19968 _ACEOF
19969
19970 fi
19971
19972 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19973 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19974 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19975   echo $ECHO_N "(cached) $ECHO_C" >&6
19976 else
19977   ac_ext=cpp
19978 ac_cpp='$CXXCPP $CPPFLAGS'
19979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19982
19983    cat >conftest.$ac_ext <<_ACEOF
19984 /* confdefs.h.  */
19985 _ACEOF
19986 cat confdefs.h >>conftest.$ac_ext
19987 cat >>conftest.$ac_ext <<_ACEOF
19988 /* end confdefs.h.  */
19989 #include <cmath>
19990 int
19991 main ()
19992 {
19993 float f; std::isinf(f);
19994   ;
19995   return 0;
19996 }
19997 _ACEOF
19998 rm -f conftest.$ac_objext
19999 if { (ac_try="$ac_compile"
20000 case "(($ac_try" in
20001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20002   *) ac_try_echo=$ac_try;;
20003 esac
20004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20005   (eval "$ac_compile") 2>conftest.er1
20006   ac_status=$?
20007   grep -v '^ *+' conftest.er1 >conftest.err
20008   rm -f conftest.er1
20009   cat conftest.err >&5
20010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011   (exit $ac_status); } &&
20012          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20013   { (case "(($ac_try" in
20014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20015   *) ac_try_echo=$ac_try;;
20016 esac
20017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20018   (eval "$ac_try") 2>&5
20019   ac_status=$?
20020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021   (exit $ac_status); }; } &&
20022          { ac_try='test -s conftest.$ac_objext'
20023   { (case "(($ac_try" in
20024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20025   *) ac_try_echo=$ac_try;;
20026 esac
20027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20028   (eval "$ac_try") 2>&5
20029   ac_status=$?
20030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031   (exit $ac_status); }; }; then
20032   ac_cv_func_std_isinf_in_cmath=yes
20033 else
20034   echo "$as_me: failed program was:" >&5
20035 sed 's/^/| /' conftest.$ac_ext >&5
20036
20037         ac_cv_func_std_isinf_in_cmath=no
20038 fi
20039
20040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20041   ac_ext=c
20042 ac_cpp='$CPP $CPPFLAGS'
20043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20046
20047 fi
20048 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20049 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20050
20051 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20052
20053 cat >>confdefs.h <<\_ACEOF
20054 #define HAVE_STD_ISINF_IN_CMATH 1
20055 _ACEOF
20056
20057 fi
20058
20059 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20060 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20061 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20062   echo $ECHO_N "(cached) $ECHO_C" >&6
20063 else
20064   ac_ext=cpp
20065 ac_cpp='$CXXCPP $CPPFLAGS'
20066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20069
20070    cat >conftest.$ac_ext <<_ACEOF
20071 /* confdefs.h.  */
20072 _ACEOF
20073 cat confdefs.h >>conftest.$ac_ext
20074 cat >>conftest.$ac_ext <<_ACEOF
20075 /* end confdefs.h.  */
20076 #include <ieeefp.h>
20077 int
20078 main ()
20079 {
20080 float f; finite(f);
20081   ;
20082   return 0;
20083 }
20084 _ACEOF
20085 rm -f conftest.$ac_objext
20086 if { (ac_try="$ac_compile"
20087 case "(($ac_try" in
20088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20089   *) ac_try_echo=$ac_try;;
20090 esac
20091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20092   (eval "$ac_compile") 2>conftest.er1
20093   ac_status=$?
20094   grep -v '^ *+' conftest.er1 >conftest.err
20095   rm -f conftest.er1
20096   cat conftest.err >&5
20097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098   (exit $ac_status); } &&
20099          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20100   { (case "(($ac_try" in
20101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20102   *) ac_try_echo=$ac_try;;
20103 esac
20104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20105   (eval "$ac_try") 2>&5
20106   ac_status=$?
20107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108   (exit $ac_status); }; } &&
20109          { ac_try='test -s conftest.$ac_objext'
20110   { (case "(($ac_try" in
20111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20112   *) ac_try_echo=$ac_try;;
20113 esac
20114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20115   (eval "$ac_try") 2>&5
20116   ac_status=$?
20117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118   (exit $ac_status); }; }; then
20119   ac_cv_func_finite_in_ieeefp_h=yes
20120 else
20121   echo "$as_me: failed program was:" >&5
20122 sed 's/^/| /' conftest.$ac_ext >&5
20123
20124         ac_cv_func_finite_in_ieeefp_h=no
20125 fi
20126
20127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20128   ac_ext=c
20129 ac_cpp='$CPP $CPPFLAGS'
20130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20133
20134 fi
20135 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20136 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20137
20138 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20139
20140 cat >>confdefs.h <<\_ACEOF
20141 #define HAVE_FINITE_IN_IEEEFP_H 1
20142 _ACEOF
20143
20144 fi
20145
20146
20147
20148 if test "$llvm_cv_platform_type" = "Unix" ; then
20149
20150
20151 for ac_header in stdlib.h unistd.h
20152 do
20153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20155   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20158   echo $ECHO_N "(cached) $ECHO_C" >&6
20159 fi
20160 ac_res=`eval echo '${'$as_ac_Header'}'`
20161                { echo "$as_me:$LINENO: result: $ac_res" >&5
20162 echo "${ECHO_T}$ac_res" >&6; }
20163 else
20164   # Is the header compilable?
20165 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20167 cat >conftest.$ac_ext <<_ACEOF
20168 /* confdefs.h.  */
20169 _ACEOF
20170 cat confdefs.h >>conftest.$ac_ext
20171 cat >>conftest.$ac_ext <<_ACEOF
20172 /* end confdefs.h.  */
20173 $ac_includes_default
20174 #include <$ac_header>
20175 _ACEOF
20176 rm -f conftest.$ac_objext
20177 if { (ac_try="$ac_compile"
20178 case "(($ac_try" in
20179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20180   *) ac_try_echo=$ac_try;;
20181 esac
20182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20183   (eval "$ac_compile") 2>conftest.er1
20184   ac_status=$?
20185   grep -v '^ *+' conftest.er1 >conftest.err
20186   rm -f conftest.er1
20187   cat conftest.err >&5
20188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189   (exit $ac_status); } &&
20190          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20191   { (case "(($ac_try" in
20192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20193   *) ac_try_echo=$ac_try;;
20194 esac
20195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20196   (eval "$ac_try") 2>&5
20197   ac_status=$?
20198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199   (exit $ac_status); }; } &&
20200          { ac_try='test -s conftest.$ac_objext'
20201   { (case "(($ac_try" in
20202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20203   *) ac_try_echo=$ac_try;;
20204 esac
20205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20206   (eval "$ac_try") 2>&5
20207   ac_status=$?
20208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209   (exit $ac_status); }; }; then
20210   ac_header_compiler=yes
20211 else
20212   echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20214
20215         ac_header_compiler=no
20216 fi
20217
20218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20220 echo "${ECHO_T}$ac_header_compiler" >&6; }
20221
20222 # Is the header present?
20223 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20225 cat >conftest.$ac_ext <<_ACEOF
20226 /* confdefs.h.  */
20227 _ACEOF
20228 cat confdefs.h >>conftest.$ac_ext
20229 cat >>conftest.$ac_ext <<_ACEOF
20230 /* end confdefs.h.  */
20231 #include <$ac_header>
20232 _ACEOF
20233 if { (ac_try="$ac_cpp conftest.$ac_ext"
20234 case "(($ac_try" in
20235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20236   *) ac_try_echo=$ac_try;;
20237 esac
20238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20239   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20240   ac_status=$?
20241   grep -v '^ *+' conftest.er1 >conftest.err
20242   rm -f conftest.er1
20243   cat conftest.err >&5
20244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245   (exit $ac_status); } >/dev/null; then
20246   if test -s conftest.err; then
20247     ac_cpp_err=$ac_c_preproc_warn_flag
20248     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20249   else
20250     ac_cpp_err=
20251   fi
20252 else
20253   ac_cpp_err=yes
20254 fi
20255 if test -z "$ac_cpp_err"; then
20256   ac_header_preproc=yes
20257 else
20258   echo "$as_me: failed program was:" >&5
20259 sed 's/^/| /' conftest.$ac_ext >&5
20260
20261   ac_header_preproc=no
20262 fi
20263
20264 rm -f conftest.err conftest.$ac_ext
20265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20266 echo "${ECHO_T}$ac_header_preproc" >&6; }
20267
20268 # So?  What about this header?
20269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20270   yes:no: )
20271     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20273     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20275     ac_header_preproc=yes
20276     ;;
20277   no:yes:* )
20278     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20280     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20281 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20282     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20284     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20285 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20286     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20288     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20290     ( cat <<\_ASBOX
20291 ## ------------------------------------ ##
20292 ## Report this to http://llvm.org/bugs/ ##
20293 ## ------------------------------------ ##
20294 _ASBOX
20295      ) | sed "s/^/$as_me: WARNING:     /" >&2
20296     ;;
20297 esac
20298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20301   echo $ECHO_N "(cached) $ECHO_C" >&6
20302 else
20303   eval "$as_ac_Header=\$ac_header_preproc"
20304 fi
20305 ac_res=`eval echo '${'$as_ac_Header'}'`
20306                { echo "$as_me:$LINENO: result: $ac_res" >&5
20307 echo "${ECHO_T}$ac_res" >&6; }
20308
20309 fi
20310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20311   cat >>confdefs.h <<_ACEOF
20312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20313 _ACEOF
20314
20315 fi
20316
20317 done
20318
20319
20320 for ac_func in getpagesize
20321 do
20322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20323 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20325 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20326   echo $ECHO_N "(cached) $ECHO_C" >&6
20327 else
20328   cat >conftest.$ac_ext <<_ACEOF
20329 /* confdefs.h.  */
20330 _ACEOF
20331 cat confdefs.h >>conftest.$ac_ext
20332 cat >>conftest.$ac_ext <<_ACEOF
20333 /* end confdefs.h.  */
20334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20335    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20336 #define $ac_func innocuous_$ac_func
20337
20338 /* System header to define __stub macros and hopefully few prototypes,
20339     which can conflict with char $ac_func (); below.
20340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20341     <limits.h> exists even on freestanding compilers.  */
20342
20343 #ifdef __STDC__
20344 # include <limits.h>
20345 #else
20346 # include <assert.h>
20347 #endif
20348
20349 #undef $ac_func
20350
20351 /* Override any GCC internal prototype to avoid an error.
20352    Use char because int might match the return type of a GCC
20353    builtin and then its argument prototype would still apply.  */
20354 #ifdef __cplusplus
20355 extern "C"
20356 #endif
20357 char $ac_func ();
20358 /* The GNU C library defines this for functions which it implements
20359     to always fail with ENOSYS.  Some functions are actually named
20360     something starting with __ and the normal name is an alias.  */
20361 #if defined __stub_$ac_func || defined __stub___$ac_func
20362 choke me
20363 #endif
20364
20365 int
20366 main ()
20367 {
20368 return $ac_func ();
20369   ;
20370   return 0;
20371 }
20372 _ACEOF
20373 rm -f conftest.$ac_objext conftest$ac_exeext
20374 if { (ac_try="$ac_link"
20375 case "(($ac_try" in
20376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20377   *) ac_try_echo=$ac_try;;
20378 esac
20379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20380   (eval "$ac_link") 2>conftest.er1
20381   ac_status=$?
20382   grep -v '^ *+' conftest.er1 >conftest.err
20383   rm -f conftest.er1
20384   cat conftest.err >&5
20385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386   (exit $ac_status); } &&
20387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20388   { (case "(($ac_try" in
20389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20390   *) ac_try_echo=$ac_try;;
20391 esac
20392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20393   (eval "$ac_try") 2>&5
20394   ac_status=$?
20395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396   (exit $ac_status); }; } &&
20397          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
20404   ac_status=$?
20405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406   (exit $ac_status); }; }; then
20407   eval "$as_ac_var=yes"
20408 else
20409   echo "$as_me: failed program was:" >&5
20410 sed 's/^/| /' conftest.$ac_ext >&5
20411
20412         eval "$as_ac_var=no"
20413 fi
20414
20415 rm -f core conftest.err conftest.$ac_objext \
20416       conftest$ac_exeext conftest.$ac_ext
20417 fi
20418 ac_res=`eval echo '${'$as_ac_var'}'`
20419                { echo "$as_me:$LINENO: result: $ac_res" >&5
20420 echo "${ECHO_T}$ac_res" >&6; }
20421 if test `eval echo '${'$as_ac_var'}'` = yes; then
20422   cat >>confdefs.h <<_ACEOF
20423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20424 _ACEOF
20425
20426 fi
20427 done
20428
20429 { echo "$as_me:$LINENO: checking for working mmap" >&5
20430 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20431 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20432   echo $ECHO_N "(cached) $ECHO_C" >&6
20433 else
20434   if test "$cross_compiling" = yes; then
20435   ac_cv_func_mmap_fixed_mapped=no
20436 else
20437   cat >conftest.$ac_ext <<_ACEOF
20438 /* confdefs.h.  */
20439 _ACEOF
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h.  */
20443 $ac_includes_default
20444 /* malloc might have been renamed as rpl_malloc. */
20445 #undef malloc
20446
20447 /* Thanks to Mike Haertel and Jim Avera for this test.
20448    Here is a matrix of mmap possibilities:
20449         mmap private not fixed
20450         mmap private fixed at somewhere currently unmapped
20451         mmap private fixed at somewhere already mapped
20452         mmap shared not fixed
20453         mmap shared fixed at somewhere currently unmapped
20454         mmap shared fixed at somewhere already mapped
20455    For private mappings, we should verify that changes cannot be read()
20456    back from the file, nor mmap's back from the file at a different
20457    address.  (There have been systems where private was not correctly
20458    implemented like the infamous i386 svr4.0, and systems where the
20459    VM page cache was not coherent with the file system buffer cache
20460    like early versions of FreeBSD and possibly contemporary NetBSD.)
20461    For shared mappings, we should conversely verify that changes get
20462    propagated back to all the places they're supposed to be.
20463
20464    Grep wants private fixed already mapped.
20465    The main things grep needs to know about mmap are:
20466    * does it exist and is it safe to write into the mmap'd area
20467    * how to use it (BSD variants)  */
20468
20469 #include <fcntl.h>
20470 #include <sys/mman.h>
20471
20472 #if !STDC_HEADERS && !HAVE_STDLIB_H
20473 char *malloc ();
20474 #endif
20475
20476 /* This mess was copied from the GNU getpagesize.h.  */
20477 #if !HAVE_GETPAGESIZE
20478 /* Assume that all systems that can run configure have sys/param.h.  */
20479 # if !HAVE_SYS_PARAM_H
20480 #  define HAVE_SYS_PARAM_H 1
20481 # endif
20482
20483 # ifdef _SC_PAGESIZE
20484 #  define getpagesize() sysconf(_SC_PAGESIZE)
20485 # else /* no _SC_PAGESIZE */
20486 #  if HAVE_SYS_PARAM_H
20487 #   include <sys/param.h>
20488 #   ifdef EXEC_PAGESIZE
20489 #    define getpagesize() EXEC_PAGESIZE
20490 #   else /* no EXEC_PAGESIZE */
20491 #    ifdef NBPG
20492 #     define getpagesize() NBPG * CLSIZE
20493 #     ifndef CLSIZE
20494 #      define CLSIZE 1
20495 #     endif /* no CLSIZE */
20496 #    else /* no NBPG */
20497 #     ifdef NBPC
20498 #      define getpagesize() NBPC
20499 #     else /* no NBPC */
20500 #      ifdef PAGESIZE
20501 #       define getpagesize() PAGESIZE
20502 #      endif /* PAGESIZE */
20503 #     endif /* no NBPC */
20504 #    endif /* no NBPG */
20505 #   endif /* no EXEC_PAGESIZE */
20506 #  else /* no HAVE_SYS_PARAM_H */
20507 #   define getpagesize() 8192   /* punt totally */
20508 #  endif /* no HAVE_SYS_PARAM_H */
20509 # endif /* no _SC_PAGESIZE */
20510
20511 #endif /* no HAVE_GETPAGESIZE */
20512
20513 int
20514 main ()
20515 {
20516   char *data, *data2, *data3;
20517   int i, pagesize;
20518   int fd;
20519
20520   pagesize = getpagesize ();
20521
20522   /* First, make a file with some known garbage in it. */
20523   data = (char *) malloc (pagesize);
20524   if (!data)
20525     return 1;
20526   for (i = 0; i < pagesize; ++i)
20527     *(data + i) = rand ();
20528   umask (0);
20529   fd = creat ("conftest.mmap", 0600);
20530   if (fd < 0)
20531     return 1;
20532   if (write (fd, data, pagesize) != pagesize)
20533     return 1;
20534   close (fd);
20535
20536   /* Next, try to mmap the file at a fixed address which already has
20537      something else allocated at it.  If we can, also make sure that
20538      we see the same garbage.  */
20539   fd = open ("conftest.mmap", O_RDWR);
20540   if (fd < 0)
20541     return 1;
20542   data2 = (char *) malloc (2 * pagesize);
20543   if (!data2)
20544     return 1;
20545   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20546   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20547                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20548     return 1;
20549   for (i = 0; i < pagesize; ++i)
20550     if (*(data + i) != *(data2 + i))
20551       return 1;
20552
20553   /* Finally, make sure that changes to the mapped area do not
20554      percolate back to the file as seen by read().  (This is a bug on
20555      some variants of i386 svr4.0.)  */
20556   for (i = 0; i < pagesize; ++i)
20557     *(data2 + i) = *(data2 + i) + 1;
20558   data3 = (char *) malloc (pagesize);
20559   if (!data3)
20560     return 1;
20561   if (read (fd, data3, pagesize) != pagesize)
20562     return 1;
20563   for (i = 0; i < pagesize; ++i)
20564     if (*(data + i) != *(data3 + i))
20565       return 1;
20566   close (fd);
20567   return 0;
20568 }
20569 _ACEOF
20570 rm -f conftest$ac_exeext
20571 if { (ac_try="$ac_link"
20572 case "(($ac_try" in
20573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20574   *) ac_try_echo=$ac_try;;
20575 esac
20576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20577   (eval "$ac_link") 2>&5
20578   ac_status=$?
20579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20581   { (case "(($ac_try" in
20582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20583   *) ac_try_echo=$ac_try;;
20584 esac
20585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20586   (eval "$ac_try") 2>&5
20587   ac_status=$?
20588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589   (exit $ac_status); }; }; then
20590   ac_cv_func_mmap_fixed_mapped=yes
20591 else
20592   echo "$as_me: program exited with status $ac_status" >&5
20593 echo "$as_me: failed program was:" >&5
20594 sed 's/^/| /' conftest.$ac_ext >&5
20595
20596 ( exit $ac_status )
20597 ac_cv_func_mmap_fixed_mapped=no
20598 fi
20599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20600 fi
20601
20602
20603 fi
20604 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20605 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20606 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20607
20608 cat >>confdefs.h <<\_ACEOF
20609 #define HAVE_MMAP 1
20610 _ACEOF
20611
20612 fi
20613 rm -f conftest.mmap
20614
20615   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20616 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20617 if test "${ac_cv_func_mmap_file+set}" = set; then
20618   echo $ECHO_N "(cached) $ECHO_C" >&6
20619 else
20620    ac_ext=c
20621 ac_cpp='$CPP $CPPFLAGS'
20622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20625
20626   if test "$cross_compiling" = yes; then
20627   ac_cv_func_mmap_file=no
20628 else
20629   cat >conftest.$ac_ext <<_ACEOF
20630
20631     /* confdefs.h.  */
20632 _ACEOF
20633 cat confdefs.h >>conftest.$ac_ext
20634 cat >>conftest.$ac_ext <<_ACEOF
20635 /* end confdefs.h.  */
20636
20637 #include <sys/types.h>
20638 #include <sys/mman.h>
20639 #include <fcntl.h>
20640
20641 int
20642 main ()
20643 {
20644
20645   int fd;
20646   fd = creat ("foo",0777);
20647   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20648   unlink ("foo");
20649   return (fd != (int) MAP_FAILED);
20650   ;
20651   return 0;
20652 }
20653 _ACEOF
20654 rm -f conftest$ac_exeext
20655 if { (ac_try="$ac_link"
20656 case "(($ac_try" in
20657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20658   *) ac_try_echo=$ac_try;;
20659 esac
20660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20661   (eval "$ac_link") 2>&5
20662   ac_status=$?
20663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20665   { (case "(($ac_try" in
20666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667   *) ac_try_echo=$ac_try;;
20668 esac
20669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20670   (eval "$ac_try") 2>&5
20671   ac_status=$?
20672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673   (exit $ac_status); }; }; then
20674   ac_cv_func_mmap_file=yes
20675 else
20676   echo "$as_me: program exited with status $ac_status" >&5
20677 echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20679
20680 ( exit $ac_status )
20681 ac_cv_func_mmap_file=no
20682 fi
20683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20684 fi
20685
20686
20687   ac_ext=c
20688 ac_cpp='$CPP $CPPFLAGS'
20689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20692
20693
20694 fi
20695 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20696 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20697 if test "$ac_cv_func_mmap_file" = yes; then
20698
20699 cat >>confdefs.h <<\_ACEOF
20700 #define HAVE_MMAP_FILE
20701 _ACEOF
20702
20703    MMAP_FILE=yes
20704
20705 fi
20706
20707   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20708 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20709 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20710   echo $ECHO_N "(cached) $ECHO_C" >&6
20711 else
20712   if test "$llvm_cv_os_type" = "Interix" ; then
20713    ac_cv_need_dev_zero_for_mmap=yes
20714  else
20715    ac_cv_need_dev_zero_for_mmap=no
20716  fi
20717
20718 fi
20719 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20720 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20721 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20722
20723 cat >>confdefs.h <<\_ACEOF
20724 #define NEED_DEV_ZERO_FOR_MMAP 1
20725 _ACEOF
20726
20727 fi
20728
20729   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20730   then
20731     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20732 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20733   fi
20734   if test "$ac_cv_func_mmap_file" = "no"
20735   then
20736     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20737 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20738   fi
20739 fi
20740
20741 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20742 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20743 ac_ext=cpp
20744 ac_cpp='$CXXCPP $CPPFLAGS'
20745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20748
20749 cat >conftest.$ac_ext <<_ACEOF
20750 /* confdefs.h.  */
20751 _ACEOF
20752 cat confdefs.h >>conftest.$ac_ext
20753 cat >>conftest.$ac_ext <<_ACEOF
20754 /* end confdefs.h.  */
20755 int main() {
20756         volatile unsigned long val = 1;
20757         __sync_synchronize();
20758         __sync_val_compare_and_swap(&val, 1, 0);
20759         __sync_add_and_fetch(&val, 1);
20760         __sync_sub_and_fetch(&val, 1);
20761         return 0;
20762       }
20763
20764 _ACEOF
20765 rm -f conftest.$ac_objext conftest$ac_exeext
20766 if { (ac_try="$ac_link"
20767 case "(($ac_try" in
20768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769   *) ac_try_echo=$ac_try;;
20770 esac
20771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20772   (eval "$ac_link") 2>conftest.er1
20773   ac_status=$?
20774   grep -v '^ *+' conftest.er1 >conftest.err
20775   rm -f conftest.er1
20776   cat conftest.err >&5
20777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778   (exit $ac_status); } &&
20779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20780   { (case "(($ac_try" in
20781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20782   *) ac_try_echo=$ac_try;;
20783 esac
20784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20785   (eval "$ac_try") 2>&5
20786   ac_status=$?
20787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788   (exit $ac_status); }; } &&
20789          { ac_try='test -s conftest$ac_exeext'
20790   { (case "(($ac_try" in
20791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792   *) ac_try_echo=$ac_try;;
20793 esac
20794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20795   (eval "$ac_try") 2>&5
20796   ac_status=$?
20797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798   (exit $ac_status); }; }; then
20799   ac_ext=c
20800 ac_cpp='$CPP $CPPFLAGS'
20801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20804
20805   { echo "$as_me:$LINENO: result: yes" >&5
20806 echo "${ECHO_T}yes" >&6; }
20807
20808 cat >>confdefs.h <<\_ACEOF
20809 #define LLVM_HAS_ATOMICS 1
20810 _ACEOF
20811
20812 else
20813   echo "$as_me: failed program was:" >&5
20814 sed 's/^/| /' conftest.$ac_ext >&5
20815
20816         { echo "$as_me:$LINENO: result: no" >&5
20817 echo "${ECHO_T}no" >&6; }
20818
20819 cat >>confdefs.h <<\_ACEOF
20820 #define LLVM_HAS_ATOMICS 0
20821 _ACEOF
20822
20823   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20824 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20825 fi
20826
20827 rm -f core conftest.err conftest.$ac_objext \
20828       conftest$ac_exeext conftest.$ac_ext
20829
20830
20831 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20832   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20833 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20834 if test "${llvm_cv_linux_mixed+set}" = set; then
20835   echo $ECHO_N "(cached) $ECHO_C" >&6
20836 else
20837    ac_ext=c
20838 ac_cpp='$CPP $CPPFLAGS'
20839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20842
20843   cat >conftest.$ac_ext <<_ACEOF
20844 /* confdefs.h.  */
20845 _ACEOF
20846 cat confdefs.h >>conftest.$ac_ext
20847 cat >>conftest.$ac_ext <<_ACEOF
20848 /* end confdefs.h.  */
20849 #ifndef __x86_64__
20850        error: Not x86-64 even if uname says so!
20851       #endif
20852
20853 int
20854 main ()
20855 {
20856
20857   ;
20858   return 0;
20859 }
20860 _ACEOF
20861 rm -f conftest.$ac_objext
20862 if { (ac_try="$ac_compile"
20863 case "(($ac_try" in
20864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865   *) ac_try_echo=$ac_try;;
20866 esac
20867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868   (eval "$ac_compile") 2>conftest.er1
20869   ac_status=$?
20870   grep -v '^ *+' conftest.er1 >conftest.err
20871   rm -f conftest.er1
20872   cat conftest.err >&5
20873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874   (exit $ac_status); } &&
20875          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
20882   ac_status=$?
20883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884   (exit $ac_status); }; } &&
20885          { ac_try='test -s conftest.$ac_objext'
20886   { (case "(($ac_try" in
20887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888   *) ac_try_echo=$ac_try;;
20889 esac
20890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20891   (eval "$ac_try") 2>&5
20892   ac_status=$?
20893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894   (exit $ac_status); }; }; then
20895   llvm_cv_linux_mixed=no
20896 else
20897   echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20899
20900         llvm_cv_linux_mixed=yes
20901 fi
20902
20903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20904   ac_ext=c
20905 ac_cpp='$CPP $CPPFLAGS'
20906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20909
20910
20911 fi
20912 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20913 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20914
20915   if test "$llvm_cv_linux_mixed" = "yes"; then
20916     llvm_cv_target_arch="x86"
20917     ARCH="x86"
20918   fi
20919 fi
20920
20921
20922 for ac_func in __dso_handle
20923 do
20924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20925 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20927 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20928   echo $ECHO_N "(cached) $ECHO_C" >&6
20929 else
20930   cat >conftest.$ac_ext <<_ACEOF
20931 /* confdefs.h.  */
20932 _ACEOF
20933 cat confdefs.h >>conftest.$ac_ext
20934 cat >>conftest.$ac_ext <<_ACEOF
20935 /* end confdefs.h.  */
20936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20937    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20938 #define $ac_func innocuous_$ac_func
20939
20940 /* System header to define __stub macros and hopefully few prototypes,
20941     which can conflict with char $ac_func (); below.
20942     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20943     <limits.h> exists even on freestanding compilers.  */
20944
20945 #ifdef __STDC__
20946 # include <limits.h>
20947 #else
20948 # include <assert.h>
20949 #endif
20950
20951 #undef $ac_func
20952
20953 /* Override any GCC internal prototype to avoid an error.
20954    Use char because int might match the return type of a GCC
20955    builtin and then its argument prototype would still apply.  */
20956 #ifdef __cplusplus
20957 extern "C"
20958 #endif
20959 char $ac_func ();
20960 /* The GNU C library defines this for functions which it implements
20961     to always fail with ENOSYS.  Some functions are actually named
20962     something starting with __ and the normal name is an alias.  */
20963 #if defined __stub_$ac_func || defined __stub___$ac_func
20964 choke me
20965 #endif
20966
20967 int
20968 main ()
20969 {
20970 return $ac_func ();
20971   ;
20972   return 0;
20973 }
20974 _ACEOF
20975 rm -f conftest.$ac_objext conftest$ac_exeext
20976 if { (ac_try="$ac_link"
20977 case "(($ac_try" in
20978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979   *) ac_try_echo=$ac_try;;
20980 esac
20981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982   (eval "$ac_link") 2>conftest.er1
20983   ac_status=$?
20984   grep -v '^ *+' conftest.er1 >conftest.err
20985   rm -f conftest.er1
20986   cat conftest.err >&5
20987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988   (exit $ac_status); } &&
20989          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20990   { (case "(($ac_try" in
20991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992   *) ac_try_echo=$ac_try;;
20993 esac
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995   (eval "$ac_try") 2>&5
20996   ac_status=$?
20997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998   (exit $ac_status); }; } &&
20999          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
21009   eval "$as_ac_var=yes"
21010 else
21011   echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.$ac_ext >&5
21013
21014         eval "$as_ac_var=no"
21015 fi
21016
21017 rm -f core conftest.err conftest.$ac_objext \
21018       conftest$ac_exeext conftest.$ac_ext
21019 fi
21020 ac_res=`eval echo '${'$as_ac_var'}'`
21021                { echo "$as_me:$LINENO: result: $ac_res" >&5
21022 echo "${ECHO_T}$ac_res" >&6; }
21023 if test `eval echo '${'$as_ac_var'}'` = yes; then
21024   cat >>confdefs.h <<_ACEOF
21025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21026 _ACEOF
21027
21028 fi
21029 done
21030
21031
21032 SHLIBEXT=$libltdl_cv_shlibext
21033
21034
21035 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21036
21037
21038 if test "${prefix}" = "NONE" ; then
21039   prefix="/usr/local"
21040 fi
21041 eval LLVM_PREFIX="${prefix}";
21042 eval LLVM_BINDIR="${prefix}/bin";
21043 eval LLVM_LIBDIR="${prefix}/lib";
21044 eval LLVM_DATADIR="${prefix}/share/llvm";
21045 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21046 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21047 eval LLVM_INCLUDEDIR="${prefix}/include";
21048 eval LLVM_INFODIR="${prefix}/info";
21049 eval LLVM_MANDIR="${prefix}/man";
21050 LLVM_CONFIGTIME=`date`
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21063   LLVM_CONFIGTIME="(timestamp not enabled)"
21064 fi
21065
21066
21067 cat >>confdefs.h <<_ACEOF
21068 #define LLVM_PREFIX "$LLVM_PREFIX"
21069 _ACEOF
21070
21071
21072 cat >>confdefs.h <<_ACEOF
21073 #define LLVM_BINDIR "$LLVM_BINDIR"
21074 _ACEOF
21075
21076
21077 cat >>confdefs.h <<_ACEOF
21078 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21079 _ACEOF
21080
21081
21082 cat >>confdefs.h <<_ACEOF
21083 #define LLVM_DATADIR "$LLVM_DATADIR"
21084 _ACEOF
21085
21086
21087 cat >>confdefs.h <<_ACEOF
21088 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21089 _ACEOF
21090
21091
21092 cat >>confdefs.h <<_ACEOF
21093 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21094 _ACEOF
21095
21096
21097 cat >>confdefs.h <<_ACEOF
21098 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21099 _ACEOF
21100
21101
21102 cat >>confdefs.h <<_ACEOF
21103 #define LLVM_INFODIR "$LLVM_INFODIR"
21104 _ACEOF
21105
21106
21107 cat >>confdefs.h <<_ACEOF
21108 #define LLVM_MANDIR "$LLVM_MANDIR"
21109 _ACEOF
21110
21111
21112 cat >>confdefs.h <<_ACEOF
21113 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21114 _ACEOF
21115
21116
21117 cat >>confdefs.h <<_ACEOF
21118 #define LLVM_HOSTTRIPLE "$host"
21119 _ACEOF
21120
21121
21122 cat >>confdefs.h <<_ACEOF
21123 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21124 _ACEOF
21125
21126
21127 if test "$BINDINGS_TO_BUILD" = auto ; then
21128   BINDINGS_TO_BUILD=""
21129   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21130     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21131   fi
21132 fi
21133 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21134
21135
21136 ALL_BINDINGS=ocaml
21137
21138
21139 binding_prereqs_failed=0
21140 for a_binding in $BINDINGS_TO_BUILD ; do
21141   case "$a_binding" in
21142   ocaml)
21143     if test "x$OCAMLC" = x ; then
21144       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21145 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21146       binding_prereqs_failed=1
21147     fi
21148     if test "x$OCAMLDEP" = x ; then
21149       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21150 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21151       binding_prereqs_failed=1
21152     fi
21153     if test "x$OCAMLOPT" = x ; then
21154       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21155 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21156           fi
21157     if test "x$with_ocaml_libdir" != xauto ; then
21158       OCAML_LIBDIR=$with_ocaml_libdir
21159
21160     else
21161       ocaml_stdlib="`"$OCAMLC" -where`"
21162       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21163       then
21164         # ocaml stdlib is beneath our prefix; use stdlib
21165         OCAML_LIBDIR=$ocaml_stdlib
21166
21167       else
21168         # ocaml stdlib is outside our prefix; use libdir/ocaml
21169         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21170
21171       fi
21172     fi
21173     ;;
21174   esac
21175 done
21176 if test "$binding_prereqs_failed" = 1 ; then
21177   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21178 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21179    { (exit 1); exit 1; }; }
21180 fi
21181
21182 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21183 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21184 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21185   echo $ECHO_N "(cached) $ECHO_C" >&6
21186 else
21187    ac_ext=cpp
21188 ac_cpp='$CXXCPP $CPPFLAGS'
21189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21192
21193   oldcxxflags="$CXXFLAGS"
21194   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21195   cat >conftest.$ac_ext <<_ACEOF
21196 /* confdefs.h.  */
21197 _ACEOF
21198 cat confdefs.h >>conftest.$ac_ext
21199 cat >>conftest.$ac_ext <<_ACEOF
21200 /* end confdefs.h.  */
21201 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21202 int
21203 main ()
21204 {
21205 X<int>().f();
21206   ;
21207   return 0;
21208 }
21209 _ACEOF
21210 rm -f conftest.$ac_objext
21211 if { (ac_try="$ac_compile"
21212 case "(($ac_try" in
21213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21214   *) ac_try_echo=$ac_try;;
21215 esac
21216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21217   (eval "$ac_compile") 2>conftest.er1
21218   ac_status=$?
21219   grep -v '^ *+' conftest.er1 >conftest.err
21220   rm -f conftest.er1
21221   cat conftest.err >&5
21222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223   (exit $ac_status); } &&
21224          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21225   { (case "(($ac_try" in
21226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21227   *) ac_try_echo=$ac_try;;
21228 esac
21229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21230   (eval "$ac_try") 2>&5
21231   ac_status=$?
21232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233   (exit $ac_status); }; } &&
21234          { ac_try='test -s conftest.$ac_objext'
21235   { (case "(($ac_try" in
21236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237   *) ac_try_echo=$ac_try;;
21238 esac
21239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21240   (eval "$ac_try") 2>&5
21241   ac_status=$?
21242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243   (exit $ac_status); }; }; then
21244   llvm_cv_cxx_visibility_inlines_hidden=yes
21245 else
21246   echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21248
21249         llvm_cv_cxx_visibility_inlines_hidden=no
21250 fi
21251
21252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21253   CXXFLAGS="$oldcxxflags"
21254   ac_ext=c
21255 ac_cpp='$CPP $CPPFLAGS'
21256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21259
21260
21261 fi
21262 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21263 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21264 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21265   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21266
21267 else
21268   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21269
21270 fi
21271
21272
21273 if test "$llvm_cv_link_use_r" = "yes" ; then
21274   RPATH="-Wl,-R"
21275 else
21276   RPATH="-Wl,-rpath"
21277 fi
21278
21279
21280 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21281   RDYNAMIC="-Wl,-export-dynamic"
21282 else
21283   RDYNAMIC=""
21284 fi
21285
21286
21287
21288 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21289
21290
21291
21292
21293
21294
21295 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21296
21297 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21298
21299 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21300
21301 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21302
21303 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21304
21305
21306 ac_config_files="$ac_config_files Makefile.config"
21307
21308
21309 ac_config_files="$ac_config_files llvm.spec"
21310
21311
21312 ac_config_files="$ac_config_files docs/doxygen.cfg"
21313
21314
21315 if test "${clang_src_root}" = ""; then
21316   clang_src_root="$srcdir/tools/clang"
21317 fi
21318 if test -f ${clang_src_root}/README.txt; then
21319     configh="include/clang/Config/config.h"
21320   doxy="docs/doxygen.cfg"
21321   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21322
21323   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21324
21325 fi
21326
21327 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21328
21329
21330 ac_config_commands="$ac_config_commands setup"
21331
21332 ac_config_commands="$ac_config_commands Makefile"
21333
21334
21335 ac_config_commands="$ac_config_commands Makefile.common"
21336
21337
21338 ac_config_commands="$ac_config_commands examples/Makefile"
21339
21340
21341 ac_config_commands="$ac_config_commands lib/Makefile"
21342
21343
21344 ac_config_commands="$ac_config_commands runtime/Makefile"
21345
21346
21347 ac_config_commands="$ac_config_commands test/Makefile"
21348
21349
21350 ac_config_commands="$ac_config_commands test/Makefile.tests"
21351
21352
21353 ac_config_commands="$ac_config_commands unittests/Makefile"
21354
21355
21356 ac_config_commands="$ac_config_commands tools/Makefile"
21357
21358
21359 ac_config_commands="$ac_config_commands utils/Makefile"
21360
21361
21362 ac_config_commands="$ac_config_commands projects/Makefile"
21363
21364
21365 ac_config_commands="$ac_config_commands bindings/Makefile"
21366
21367
21368 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21369
21370
21371
21372 cat >confcache <<\_ACEOF
21373 # This file is a shell script that caches the results of configure
21374 # tests run on this system so they can be shared between configure
21375 # scripts and configure runs, see configure's option --config-cache.
21376 # It is not useful on other systems.  If it contains results you don't
21377 # want to keep, you may remove or edit it.
21378 #
21379 # config.status only pays attention to the cache file if you give it
21380 # the --recheck option to rerun configure.
21381 #
21382 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21383 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21384 # following values.
21385
21386 _ACEOF
21387
21388 # The following way of writing the cache mishandles newlines in values,
21389 # but we know of no workaround that is simple, portable, and efficient.
21390 # So, we kill variables containing newlines.
21391 # Ultrix sh set writes to stderr and can't be redirected directly,
21392 # and sets the high bit in the cache file unless we assign to the vars.
21393 (
21394   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21395     eval ac_val=\$$ac_var
21396     case $ac_val in #(
21397     *${as_nl}*)
21398       case $ac_var in #(
21399       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21400 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21401       esac
21402       case $ac_var in #(
21403       _ | IFS | as_nl) ;; #(
21404       *) $as_unset $ac_var ;;
21405       esac ;;
21406     esac
21407   done
21408
21409   (set) 2>&1 |
21410     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21411     *${as_nl}ac_space=\ *)
21412       # `set' does not quote correctly, so add quotes (double-quote
21413       # substitution turns \\\\ into \\, and sed turns \\ into \).
21414       sed -n \
21415         "s/'/'\\\\''/g;
21416           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21417       ;; #(
21418     *)
21419       # `set' quotes correctly as required by POSIX, so do not add quotes.
21420       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21421       ;;
21422     esac |
21423     sort
21424 ) |
21425   sed '
21426      /^ac_cv_env_/b end
21427      t clear
21428      :clear
21429      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21430      t end
21431      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21432      :end' >>confcache
21433 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21434   if test -w "$cache_file"; then
21435     test "x$cache_file" != "x/dev/null" &&
21436       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21437 echo "$as_me: updating cache $cache_file" >&6;}
21438     cat confcache >$cache_file
21439   else
21440     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21441 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21442   fi
21443 fi
21444 rm -f confcache
21445
21446 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21447 # Let make expand exec_prefix.
21448 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21449
21450 DEFS=-DHAVE_CONFIG_H
21451
21452 ac_libobjs=
21453 ac_ltlibobjs=
21454 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21455   # 1. Remove the extension, and $U if already installed.
21456   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21457   ac_i=`echo "$ac_i" | sed "$ac_script"`
21458   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21459   #    will be set to the directory where LIBOBJS objects are built.
21460   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21461   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21462 done
21463 LIBOBJS=$ac_libobjs
21464
21465 LTLIBOBJS=$ac_ltlibobjs
21466
21467
21468 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21469   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21470 Usually this means the macro was only invoked conditionally." >&5
21471 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21472 Usually this means the macro was only invoked conditionally." >&2;}
21473    { (exit 1); exit 1; }; }
21474 fi
21475 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21476   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21477 Usually this means the macro was only invoked conditionally." >&5
21478 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21479 Usually this means the macro was only invoked conditionally." >&2;}
21480    { (exit 1); exit 1; }; }
21481 fi
21482
21483 : ${CONFIG_STATUS=./config.status}
21484 ac_clean_files_save=$ac_clean_files
21485 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21486 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21487 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21488 cat >$CONFIG_STATUS <<_ACEOF
21489 #! $SHELL
21490 # Generated by $as_me.
21491 # Run this file to recreate the current configuration.
21492 # Compiler output produced by configure, useful for debugging
21493 # configure, is in config.log if it exists.
21494
21495 debug=false
21496 ac_cs_recheck=false
21497 ac_cs_silent=false
21498 SHELL=\${CONFIG_SHELL-$SHELL}
21499 _ACEOF
21500
21501 cat >>$CONFIG_STATUS <<\_ACEOF
21502 ## --------------------- ##
21503 ## M4sh Initialization.  ##
21504 ## --------------------- ##
21505
21506 # Be Bourne compatible
21507 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21508   emulate sh
21509   NULLCMD=:
21510   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21511   # is contrary to our usage.  Disable this feature.
21512   alias -g '${1+"$@"}'='"$@"'
21513   setopt NO_GLOB_SUBST
21514 else
21515   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21516 fi
21517 BIN_SH=xpg4; export BIN_SH # for Tru64
21518 DUALCASE=1; export DUALCASE # for MKS sh
21519
21520
21521 # PATH needs CR
21522 # Avoid depending upon Character Ranges.
21523 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21524 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21525 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21526 as_cr_digits='0123456789'
21527 as_cr_alnum=$as_cr_Letters$as_cr_digits
21528
21529 # The user is always right.
21530 if test "${PATH_SEPARATOR+set}" != set; then
21531   echo "#! /bin/sh" >conf$$.sh
21532   echo  "exit 0"   >>conf$$.sh
21533   chmod +x conf$$.sh
21534   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21535     PATH_SEPARATOR=';'
21536   else
21537     PATH_SEPARATOR=:
21538   fi
21539   rm -f conf$$.sh
21540 fi
21541
21542 # Support unset when possible.
21543 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21544   as_unset=unset
21545 else
21546   as_unset=false
21547 fi
21548
21549
21550 # IFS
21551 # We need space, tab and new line, in precisely that order.  Quoting is
21552 # there to prevent editors from complaining about space-tab.
21553 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21554 # splitting by setting IFS to empty value.)
21555 as_nl='
21556 '
21557 IFS=" ""        $as_nl"
21558
21559 # Find who we are.  Look in the path if we contain no directory separator.
21560 case $0 in
21561   *[\\/]* ) as_myself=$0 ;;
21562   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21563 for as_dir in $PATH
21564 do
21565   IFS=$as_save_IFS
21566   test -z "$as_dir" && as_dir=.
21567   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21568 done
21569 IFS=$as_save_IFS
21570
21571      ;;
21572 esac
21573 # We did not find ourselves, most probably we were run as `sh COMMAND'
21574 # in which case we are not to be found in the path.
21575 if test "x$as_myself" = x; then
21576   as_myself=$0
21577 fi
21578 if test ! -f "$as_myself"; then
21579   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21580   { (exit 1); exit 1; }
21581 fi
21582
21583 # Work around bugs in pre-3.0 UWIN ksh.
21584 for as_var in ENV MAIL MAILPATH
21585 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21586 done
21587 PS1='$ '
21588 PS2='> '
21589 PS4='+ '
21590
21591 # NLS nuisances.
21592 for as_var in \
21593   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21594   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21595   LC_TELEPHONE LC_TIME
21596 do
21597   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21598     eval $as_var=C; export $as_var
21599   else
21600     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21601   fi
21602 done
21603
21604 # Required to use basename.
21605 if expr a : '\(a\)' >/dev/null 2>&1 &&
21606    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21607   as_expr=expr
21608 else
21609   as_expr=false
21610 fi
21611
21612 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21613   as_basename=basename
21614 else
21615   as_basename=false
21616 fi
21617
21618
21619 # Name of the executable.
21620 as_me=`$as_basename -- "$0" ||
21621 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21622          X"$0" : 'X\(//\)$' \| \
21623          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21624 echo X/"$0" |
21625     sed '/^.*\/\([^/][^/]*\)\/*$/{
21626             s//\1/
21627             q
21628           }
21629           /^X\/\(\/\/\)$/{
21630             s//\1/
21631             q
21632           }
21633           /^X\/\(\/\).*/{
21634             s//\1/
21635             q
21636           }
21637           s/.*/./; q'`
21638
21639 # CDPATH.
21640 $as_unset CDPATH
21641
21642
21643
21644   as_lineno_1=$LINENO
21645   as_lineno_2=$LINENO
21646   test "x$as_lineno_1" != "x$as_lineno_2" &&
21647   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21648
21649   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21650   # uniformly replaced by the line number.  The first 'sed' inserts a
21651   # line-number line after each line using $LINENO; the second 'sed'
21652   # does the real work.  The second script uses 'N' to pair each
21653   # line-number line with the line containing $LINENO, and appends
21654   # trailing '-' during substitution so that $LINENO is not a special
21655   # case at line end.
21656   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21657   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21658   # E. McMahon (1931-1989) for sed's syntax.  :-)
21659   sed -n '
21660     p
21661     /[$]LINENO/=
21662   ' <$as_myself |
21663     sed '
21664       s/[$]LINENO.*/&-/
21665       t lineno
21666       b
21667       :lineno
21668       N
21669       :loop
21670       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21671       t loop
21672       s/-\n.*//
21673     ' >$as_me.lineno &&
21674   chmod +x "$as_me.lineno" ||
21675     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21676    { (exit 1); exit 1; }; }
21677
21678   # Don't try to exec as it changes $[0], causing all sort of problems
21679   # (the dirname of $[0] is not the place where we might find the
21680   # original and so on.  Autoconf is especially sensitive to this).
21681   . "./$as_me.lineno"
21682   # Exit status is that of the last command.
21683   exit
21684 }
21685
21686
21687 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21688   as_dirname=dirname
21689 else
21690   as_dirname=false
21691 fi
21692
21693 ECHO_C= ECHO_N= ECHO_T=
21694 case `echo -n x` in
21695 -n*)
21696   case `echo 'x\c'` in
21697   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21698   *)   ECHO_C='\c';;
21699   esac;;
21700 *)
21701   ECHO_N='-n';;
21702 esac
21703
21704 if expr a : '\(a\)' >/dev/null 2>&1 &&
21705    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21706   as_expr=expr
21707 else
21708   as_expr=false
21709 fi
21710
21711 rm -f conf$$ conf$$.exe conf$$.file
21712 if test -d conf$$.dir; then
21713   rm -f conf$$.dir/conf$$.file
21714 else
21715   rm -f conf$$.dir
21716   mkdir conf$$.dir
21717 fi
21718 echo >conf$$.file
21719 if ln -s conf$$.file conf$$ 2>/dev/null; then
21720   as_ln_s='ln -s'
21721   # ... but there are two gotchas:
21722   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21723   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21724   # In both cases, we have to default to `cp -p'.
21725   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21726     as_ln_s='cp -p'
21727 elif ln conf$$.file conf$$ 2>/dev/null; then
21728   as_ln_s=ln
21729 else
21730   as_ln_s='cp -p'
21731 fi
21732 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21733 rmdir conf$$.dir 2>/dev/null
21734
21735 if mkdir -p . 2>/dev/null; then
21736   as_mkdir_p=:
21737 else
21738   test -d ./-p && rmdir ./-p
21739   as_mkdir_p=false
21740 fi
21741
21742 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21743 # systems may use methods other than mode bits to determine executability.
21744 cat >conf$$.file <<_ASEOF
21745 #! /bin/sh
21746 exit 0
21747 _ASEOF
21748 chmod +x conf$$.file
21749 if test -x conf$$.file >/dev/null 2>&1; then
21750   as_executable_p="test -x"
21751 else
21752   as_executable_p=:
21753 fi
21754 rm -f conf$$.file
21755
21756 # Sed expression to map a string onto a valid CPP name.
21757 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21758
21759 # Sed expression to map a string onto a valid variable name.
21760 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21761
21762
21763 exec 6>&1
21764
21765 # Save the log message, to keep $[0] and so on meaningful, and to
21766 # report actual input values of CONFIG_FILES etc. instead of their
21767 # values after options handling.
21768 ac_log="
21769 This file was extended by LLVM $as_me 3.2svn, which was
21770 generated by GNU Autoconf 2.60.  Invocation command line was
21771
21772   CONFIG_FILES    = $CONFIG_FILES
21773   CONFIG_HEADERS  = $CONFIG_HEADERS
21774   CONFIG_LINKS    = $CONFIG_LINKS
21775   CONFIG_COMMANDS = $CONFIG_COMMANDS
21776   $ $0 $@
21777
21778 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21779 "
21780
21781 _ACEOF
21782
21783 cat >>$CONFIG_STATUS <<_ACEOF
21784 # Files that config.status was made for.
21785 config_files="$ac_config_files"
21786 config_headers="$ac_config_headers"
21787 config_commands="$ac_config_commands"
21788
21789 _ACEOF
21790
21791 cat >>$CONFIG_STATUS <<\_ACEOF
21792 ac_cs_usage="\
21793 \`$as_me' instantiates files from templates according to the
21794 current configuration.
21795
21796 Usage: $0 [OPTIONS] [FILE]...
21797
21798   -h, --help       print this help, then exit
21799   -V, --version    print version number, then exit
21800   -q, --quiet      do not print progress messages
21801   -d, --debug      don't remove temporary files
21802       --recheck    update $as_me by reconfiguring in the same conditions
21803   --file=FILE[:TEMPLATE]
21804                    instantiate the configuration file FILE
21805   --header=FILE[:TEMPLATE]
21806                    instantiate the configuration header FILE
21807
21808 Configuration files:
21809 $config_files
21810
21811 Configuration headers:
21812 $config_headers
21813
21814 Configuration commands:
21815 $config_commands
21816
21817 Report bugs to <bug-autoconf@gnu.org>."
21818
21819 _ACEOF
21820 cat >>$CONFIG_STATUS <<_ACEOF
21821 ac_cs_version="\\
21822 LLVM config.status 3.2svn
21823 configured by $0, generated by GNU Autoconf 2.60,
21824   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21825
21826 Copyright (C) 2006 Free Software Foundation, Inc.
21827 This config.status script is free software; the Free Software Foundation
21828 gives unlimited permission to copy, distribute and modify it."
21829
21830 ac_pwd='$ac_pwd'
21831 srcdir='$srcdir'
21832 INSTALL='$INSTALL'
21833 _ACEOF
21834
21835 cat >>$CONFIG_STATUS <<\_ACEOF
21836 # If no file are specified by the user, then we need to provide default
21837 # value.  By we need to know if files were specified by the user.
21838 ac_need_defaults=:
21839 while test $# != 0
21840 do
21841   case $1 in
21842   --*=*)
21843     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21844     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21845     ac_shift=:
21846     ;;
21847   *)
21848     ac_option=$1
21849     ac_optarg=$2
21850     ac_shift=shift
21851     ;;
21852   esac
21853
21854   case $ac_option in
21855   # Handling of the options.
21856   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21857     ac_cs_recheck=: ;;
21858   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21859     echo "$ac_cs_version"; exit ;;
21860   --debug | --debu | --deb | --de | --d | -d )
21861     debug=: ;;
21862   --file | --fil | --fi | --f )
21863     $ac_shift
21864     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21865     ac_need_defaults=false;;
21866   --header | --heade | --head | --hea )
21867     $ac_shift
21868     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21869     ac_need_defaults=false;;
21870   --he | --h)
21871     # Conflict between --help and --header
21872     { echo "$as_me: error: ambiguous option: $1
21873 Try \`$0 --help' for more information." >&2
21874    { (exit 1); exit 1; }; };;
21875   --help | --hel | -h )
21876     echo "$ac_cs_usage"; exit ;;
21877   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21878   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21879     ac_cs_silent=: ;;
21880
21881   # This is an error.
21882   -*) { echo "$as_me: error: unrecognized option: $1
21883 Try \`$0 --help' for more information." >&2
21884    { (exit 1); exit 1; }; } ;;
21885
21886   *) ac_config_targets="$ac_config_targets $1"
21887      ac_need_defaults=false ;;
21888
21889   esac
21890   shift
21891 done
21892
21893 ac_configure_extra_args=
21894
21895 if $ac_cs_silent; then
21896   exec 6>/dev/null
21897   ac_configure_extra_args="$ac_configure_extra_args --silent"
21898 fi
21899
21900 _ACEOF
21901 cat >>$CONFIG_STATUS <<_ACEOF
21902 if \$ac_cs_recheck; then
21903   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21904   CONFIG_SHELL=$SHELL
21905   export CONFIG_SHELL
21906   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21907 fi
21908
21909 _ACEOF
21910 cat >>$CONFIG_STATUS <<\_ACEOF
21911 exec 5>>config.log
21912 {
21913   echo
21914   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21915 ## Running $as_me. ##
21916 _ASBOX
21917   echo "$ac_log"
21918 } >&5
21919
21920 _ACEOF
21921 cat >>$CONFIG_STATUS <<_ACEOF
21922 #
21923 # INIT-COMMANDS
21924 #
21925 llvm_src="${srcdir}"
21926
21927 _ACEOF
21928
21929 cat >>$CONFIG_STATUS <<\_ACEOF
21930
21931 # Handling of arguments.
21932 for ac_config_target in $ac_config_targets
21933 do
21934   case $ac_config_target in
21935     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21936     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21937     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21938     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21939     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21940     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21941     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21942     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21943     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21944     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21945     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21946     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21947     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21948     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21949     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21950     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21951     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21952     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21953     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21954     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21955     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21956     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21957     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21958     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21959     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21960     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21961     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21962
21963   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21964 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21965    { (exit 1); exit 1; }; };;
21966   esac
21967 done
21968
21969
21970 # If the user did not use the arguments to specify the items to instantiate,
21971 # then the envvar interface is used.  Set only those that are not.
21972 # We use the long form for the default assignment because of an extremely
21973 # bizarre bug on SunOS 4.1.3.
21974 if $ac_need_defaults; then
21975   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21976   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21977   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21978 fi
21979
21980 # Have a temporary directory for convenience.  Make it in the build tree
21981 # simply because there is no reason against having it here, and in addition,
21982 # creating and moving files from /tmp can sometimes cause problems.
21983 # Hook for its removal unless debugging.
21984 # Note that there is a small window in which the directory will not be cleaned:
21985 # after its creation but before its name has been assigned to `$tmp'.
21986 $debug ||
21987 {
21988   tmp=
21989   trap 'exit_status=$?
21990   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21991 ' 0
21992   trap '{ (exit 1); exit 1; }' 1 2 13 15
21993 }
21994 # Create a (secure) tmp directory for tmp files.
21995
21996 {
21997   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21998   test -n "$tmp" && test -d "$tmp"
21999 }  ||
22000 {
22001   tmp=./conf$$-$RANDOM
22002   (umask 077 && mkdir "$tmp")
22003 } ||
22004 {
22005    echo "$me: cannot create a temporary directory in ." >&2
22006    { (exit 1); exit 1; }
22007 }
22008
22009 #
22010 # Set up the sed scripts for CONFIG_FILES section.
22011 #
22012
22013 # No need to generate the scripts if there are no CONFIG_FILES.
22014 # This happens for instance when ./config.status config.h
22015 if test -n "$CONFIG_FILES"; then
22016
22017 _ACEOF
22018
22019
22020
22021 ac_delim='%!_!# '
22022 for ac_last_try in false false false false false :; do
22023   cat >conf$$subs.sed <<_ACEOF
22024 SHELL!$SHELL$ac_delim
22025 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22026 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22027 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22028 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22029 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22030 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22031 exec_prefix!$exec_prefix$ac_delim
22032 prefix!$prefix$ac_delim
22033 program_transform_name!$program_transform_name$ac_delim
22034 bindir!$bindir$ac_delim
22035 sbindir!$sbindir$ac_delim
22036 libexecdir!$libexecdir$ac_delim
22037 datarootdir!$datarootdir$ac_delim
22038 datadir!$datadir$ac_delim
22039 sysconfdir!$sysconfdir$ac_delim
22040 sharedstatedir!$sharedstatedir$ac_delim
22041 localstatedir!$localstatedir$ac_delim
22042 includedir!$includedir$ac_delim
22043 oldincludedir!$oldincludedir$ac_delim
22044 docdir!$docdir$ac_delim
22045 infodir!$infodir$ac_delim
22046 htmldir!$htmldir$ac_delim
22047 dvidir!$dvidir$ac_delim
22048 pdfdir!$pdfdir$ac_delim
22049 psdir!$psdir$ac_delim
22050 libdir!$libdir$ac_delim
22051 localedir!$localedir$ac_delim
22052 mandir!$mandir$ac_delim
22053 DEFS!$DEFS$ac_delim
22054 ECHO_C!$ECHO_C$ac_delim
22055 ECHO_N!$ECHO_N$ac_delim
22056 ECHO_T!$ECHO_T$ac_delim
22057 LIBS!$LIBS$ac_delim
22058 build_alias!$build_alias$ac_delim
22059 host_alias!$host_alias$ac_delim
22060 target_alias!$target_alias$ac_delim
22061 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22062 CC!$CC$ac_delim
22063 CFLAGS!$CFLAGS$ac_delim
22064 LDFLAGS!$LDFLAGS$ac_delim
22065 CPPFLAGS!$CPPFLAGS$ac_delim
22066 ac_ct_CC!$ac_ct_CC$ac_delim
22067 EXEEXT!$EXEEXT$ac_delim
22068 OBJEXT!$OBJEXT$ac_delim
22069 CXX!$CXX$ac_delim
22070 CXXFLAGS!$CXXFLAGS$ac_delim
22071 ac_ct_CXX!$ac_ct_CXX$ac_delim
22072 CPP!$CPP$ac_delim
22073 subdirs!$subdirs$ac_delim
22074 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22075 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22076 build!$build$ac_delim
22077 build_cpu!$build_cpu$ac_delim
22078 build_vendor!$build_vendor$ac_delim
22079 build_os!$build_os$ac_delim
22080 host!$host$ac_delim
22081 host_cpu!$host_cpu$ac_delim
22082 host_vendor!$host_vendor$ac_delim
22083 host_os!$host_os$ac_delim
22084 target!$target$ac_delim
22085 target_cpu!$target_cpu$ac_delim
22086 target_vendor!$target_vendor$ac_delim
22087 target_os!$target_os$ac_delim
22088 OS!$OS$ac_delim
22089 HOST_OS!$HOST_OS$ac_delim
22090 TARGET_OS!$TARGET_OS$ac_delim
22091 LINKALL!$LINKALL$ac_delim
22092 NOLINKALL!$NOLINKALL$ac_delim
22093 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22094 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22095 ARCH!$ARCH$ac_delim
22096 HOST_ARCH!$HOST_ARCH$ac_delim
22097 ENDIAN!$ENDIAN$ac_delim
22098 GREP!$GREP$ac_delim
22099 EGREP!$EGREP$ac_delim
22100 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22101 BUILD_CC!$BUILD_CC$ac_delim
22102 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22103 BUILD_CXX!$BUILD_CXX$ac_delim
22104 CVSBUILD!$CVSBUILD$ac_delim
22105 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22106 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22107 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22108 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22109 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22110 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22111 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22112 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22113 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22114 JIT!$JIT$ac_delim
22115 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22116 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22117 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22118 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22119 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22120 ENABLE_PIC!$ENABLE_PIC$ac_delim
22121 _ACEOF
22122
22123   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22124     break
22125   elif $ac_last_try; then
22126     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22127 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22128    { (exit 1); exit 1; }; }
22129   else
22130     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22131   fi
22132 done
22133
22134 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22135 if test -n "$ac_eof"; then
22136   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22137   ac_eof=`expr $ac_eof + 1`
22138 fi
22139
22140 cat >>$CONFIG_STATUS <<_ACEOF
22141 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22142 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22143 _ACEOF
22144 sed '
22145 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22146 s/^/s,@/; s/!/@,|#_!!_#|/
22147 :n
22148 t n
22149 s/'"$ac_delim"'$/,g/; t
22150 s/$/\\/; p
22151 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22152 ' >>$CONFIG_STATUS <conf$$subs.sed
22153 rm -f conf$$subs.sed
22154 cat >>$CONFIG_STATUS <<_ACEOF
22155 CEOF$ac_eof
22156 _ACEOF
22157
22158
22159 ac_delim='%!_!# '
22160 for ac_last_try in false false false false false :; do
22161   cat >conf$$subs.sed <<_ACEOF
22162 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22163 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22164 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22165 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22166 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22167 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22168 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22169 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22170 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22171 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22172 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22173 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22174 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22175 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22176 NM!$NM$ac_delim
22177 ifGNUmake!$ifGNUmake$ac_delim
22178 LN_S!$LN_S$ac_delim
22179 CMP!$CMP$ac_delim
22180 CP!$CP$ac_delim
22181 DATE!$DATE$ac_delim
22182 FIND!$FIND$ac_delim
22183 MKDIR!$MKDIR$ac_delim
22184 MV!$MV$ac_delim
22185 RANLIB!$RANLIB$ac_delim
22186 AR!$AR$ac_delim
22187 RM!$RM$ac_delim
22188 SED!$SED$ac_delim
22189 TAR!$TAR$ac_delim
22190 BINPWD!$BINPWD$ac_delim
22191 GRAPHVIZ!$GRAPHVIZ$ac_delim
22192 DOT!$DOT$ac_delim
22193 FDP!$FDP$ac_delim
22194 NEATO!$NEATO$ac_delim
22195 TWOPI!$TWOPI$ac_delim
22196 CIRCO!$CIRCO$ac_delim
22197 GV!$GV$ac_delim
22198 DOTTY!$DOTTY$ac_delim
22199 XDOT_PY!$XDOT_PY$ac_delim
22200 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22201 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22202 INSTALL_DATA!$INSTALL_DATA$ac_delim
22203 BZIP2!$BZIP2$ac_delim
22204 CAT!$CAT$ac_delim
22205 DOXYGEN!$DOXYGEN$ac_delim
22206 GROFF!$GROFF$ac_delim
22207 GZIPBIN!$GZIPBIN$ac_delim
22208 PDFROFF!$PDFROFF$ac_delim
22209 ZIP!$ZIP$ac_delim
22210 OCAMLC!$OCAMLC$ac_delim
22211 OCAMLOPT!$OCAMLOPT$ac_delim
22212 OCAMLDEP!$OCAMLDEP$ac_delim
22213 OCAMLDOC!$OCAMLDOC$ac_delim
22214 GAS!$GAS$ac_delim
22215 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22216 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22217 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22218 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22219 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22220 LIBADD_DL!$LIBADD_DL$ac_delim
22221 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22222 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22223 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22224 USE_UDIS86!$USE_UDIS86$ac_delim
22225 USE_OPROFILE!$USE_OPROFILE$ac_delim
22226 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22227 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22228 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22229 XML2CONFIG!$XML2CONFIG$ac_delim
22230 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22231 LIBXML2_INC!$LIBXML2_INC$ac_delim
22232 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22233 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22234 MMAP_FILE!$MMAP_FILE$ac_delim
22235 SHLIBEXT!$SHLIBEXT$ac_delim
22236 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22237 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22238 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22239 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22240 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22241 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22242 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22243 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22244 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22245 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22246 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22247 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22248 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22249 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22250 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22251 RPATH!$RPATH$ac_delim
22252 RDYNAMIC!$RDYNAMIC$ac_delim
22253 LIBOBJS!$LIBOBJS$ac_delim
22254 LTLIBOBJS!$LTLIBOBJS$ac_delim
22255 _ACEOF
22256
22257   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
22258     break
22259   elif $ac_last_try; then
22260     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22261 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22262    { (exit 1); exit 1; }; }
22263   else
22264     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22265   fi
22266 done
22267
22268 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22269 if test -n "$ac_eof"; then
22270   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22271   ac_eof=`expr $ac_eof + 1`
22272 fi
22273
22274 cat >>$CONFIG_STATUS <<_ACEOF
22275 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22276 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22277 _ACEOF
22278 sed '
22279 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22280 s/^/s,@/; s/!/@,|#_!!_#|/
22281 :n
22282 t n
22283 s/'"$ac_delim"'$/,g/; t
22284 s/$/\\/; p
22285 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22286 ' >>$CONFIG_STATUS <conf$$subs.sed
22287 rm -f conf$$subs.sed
22288 cat >>$CONFIG_STATUS <<_ACEOF
22289 :end
22290 s/|#_!!_#|//g
22291 CEOF$ac_eof
22292 _ACEOF
22293
22294
22295 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22296 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22297 # trailing colons and then remove the whole line if VPATH becomes empty
22298 # (actually we leave an empty line to preserve line numbers).
22299 if test "x$srcdir" = x.; then
22300   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22301 s/:*\$(srcdir):*/:/
22302 s/:*\${srcdir}:*/:/
22303 s/:*@srcdir@:*/:/
22304 s/^\([^=]*=[     ]*\):*/\1/
22305 s/:*$//
22306 s/^[^=]*=[       ]*$//
22307 }'
22308 fi
22309
22310 cat >>$CONFIG_STATUS <<\_ACEOF
22311 fi # test -n "$CONFIG_FILES"
22312
22313
22314 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22315 do
22316   case $ac_tag in
22317   :[FHLC]) ac_mode=$ac_tag; continue;;
22318   esac
22319   case $ac_mode$ac_tag in
22320   :[FHL]*:*);;
22321   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22322 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22323    { (exit 1); exit 1; }; };;
22324   :[FH]-) ac_tag=-:-;;
22325   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22326   esac
22327   ac_save_IFS=$IFS
22328   IFS=:
22329   set x $ac_tag
22330   IFS=$ac_save_IFS
22331   shift
22332   ac_file=$1
22333   shift
22334
22335   case $ac_mode in
22336   :L) ac_source=$1;;
22337   :[FH])
22338     ac_file_inputs=
22339     for ac_f
22340     do
22341       case $ac_f in
22342       -) ac_f="$tmp/stdin";;
22343       *) # Look for the file first in the build tree, then in the source tree
22344          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22345          # because $ac_f cannot contain `:'.
22346          test -f "$ac_f" ||
22347            case $ac_f in
22348            [\\/$]*) false;;
22349            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22350            esac ||
22351            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22352 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22353    { (exit 1); exit 1; }; };;
22354       esac
22355       ac_file_inputs="$ac_file_inputs $ac_f"
22356     done
22357
22358     # Let's still pretend it is `configure' which instantiates (i.e., don't
22359     # use $as_me), people would be surprised to read:
22360     #    /* config.h.  Generated by config.status.  */
22361     configure_input="Generated from "`IFS=:
22362           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22363     if test x"$ac_file" != x-; then
22364       configure_input="$ac_file.  $configure_input"
22365       { echo "$as_me:$LINENO: creating $ac_file" >&5
22366 echo "$as_me: creating $ac_file" >&6;}
22367     fi
22368
22369     case $ac_tag in
22370     *:-:* | *:-) cat >"$tmp/stdin";;
22371     esac
22372     ;;
22373   esac
22374
22375   ac_dir=`$as_dirname -- "$ac_file" ||
22376 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22377          X"$ac_file" : 'X\(//\)[^/]' \| \
22378          X"$ac_file" : 'X\(//\)$' \| \
22379          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22380 echo X"$ac_file" |
22381     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22382             s//\1/
22383             q
22384           }
22385           /^X\(\/\/\)[^/].*/{
22386             s//\1/
22387             q
22388           }
22389           /^X\(\/\/\)$/{
22390             s//\1/
22391             q
22392           }
22393           /^X\(\/\).*/{
22394             s//\1/
22395             q
22396           }
22397           s/.*/./; q'`
22398   { as_dir="$ac_dir"
22399   case $as_dir in #(
22400   -*) as_dir=./$as_dir;;
22401   esac
22402   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22403     as_dirs=
22404     while :; do
22405       case $as_dir in #(
22406       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22407       *) as_qdir=$as_dir;;
22408       esac
22409       as_dirs="'$as_qdir' $as_dirs"
22410       as_dir=`$as_dirname -- "$as_dir" ||
22411 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22412          X"$as_dir" : 'X\(//\)[^/]' \| \
22413          X"$as_dir" : 'X\(//\)$' \| \
22414          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22415 echo X"$as_dir" |
22416     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22417             s//\1/
22418             q
22419           }
22420           /^X\(\/\/\)[^/].*/{
22421             s//\1/
22422             q
22423           }
22424           /^X\(\/\/\)$/{
22425             s//\1/
22426             q
22427           }
22428           /^X\(\/\).*/{
22429             s//\1/
22430             q
22431           }
22432           s/.*/./; q'`
22433       test -d "$as_dir" && break
22434     done
22435     test -z "$as_dirs" || eval "mkdir $as_dirs"
22436   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22437 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22438    { (exit 1); exit 1; }; }; }
22439   ac_builddir=.
22440
22441 case "$ac_dir" in
22442 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22443 *)
22444   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22445   # A ".." for each directory in $ac_dir_suffix.
22446   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22447   case $ac_top_builddir_sub in
22448   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22449   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22450   esac ;;
22451 esac
22452 ac_abs_top_builddir=$ac_pwd
22453 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22454 # for backward compatibility:
22455 ac_top_builddir=$ac_top_build_prefix
22456
22457 case $srcdir in
22458   .)  # We are building in place.
22459     ac_srcdir=.
22460     ac_top_srcdir=$ac_top_builddir_sub
22461     ac_abs_top_srcdir=$ac_pwd ;;
22462   [\\/]* | ?:[\\/]* )  # Absolute name.
22463     ac_srcdir=$srcdir$ac_dir_suffix;
22464     ac_top_srcdir=$srcdir
22465     ac_abs_top_srcdir=$srcdir ;;
22466   *) # Relative name.
22467     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22468     ac_top_srcdir=$ac_top_build_prefix$srcdir
22469     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22470 esac
22471 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22472
22473
22474   case $ac_mode in
22475   :F)
22476   #
22477   # CONFIG_FILE
22478   #
22479
22480   case $INSTALL in
22481   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22482   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22483   esac
22484 _ACEOF
22485
22486 cat >>$CONFIG_STATUS <<\_ACEOF
22487 # If the template does not know about datarootdir, expand it.
22488 # FIXME: This hack should be removed a few years after 2.60.
22489 ac_datarootdir_hack=; ac_datarootdir_seen=
22490
22491 case `sed -n '/datarootdir/ {
22492   p
22493   q
22494 }
22495 /@datadir@/p
22496 /@docdir@/p
22497 /@infodir@/p
22498 /@localedir@/p
22499 /@mandir@/p
22500 ' $ac_file_inputs` in
22501 *datarootdir*) ac_datarootdir_seen=yes;;
22502 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22503   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22504 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22505 _ACEOF
22506 cat >>$CONFIG_STATUS <<_ACEOF
22507   ac_datarootdir_hack='
22508   s&@datadir@&$datadir&g
22509   s&@docdir@&$docdir&g
22510   s&@infodir@&$infodir&g
22511   s&@localedir@&$localedir&g
22512   s&@mandir@&$mandir&g
22513     s&\\\${datarootdir}&$datarootdir&g' ;;
22514 esac
22515 _ACEOF
22516
22517 # Neutralize VPATH when `$srcdir' = `.'.
22518 # Shell code in configure.ac might set extrasub.
22519 # FIXME: do we really want to maintain this feature?
22520 cat >>$CONFIG_STATUS <<_ACEOF
22521   sed "$ac_vpsub
22522 $extrasub
22523 _ACEOF
22524 cat >>$CONFIG_STATUS <<\_ACEOF
22525 :t
22526 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22527 s&@configure_input@&$configure_input&;t t
22528 s&@top_builddir@&$ac_top_builddir_sub&;t t
22529 s&@srcdir@&$ac_srcdir&;t t
22530 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22531 s&@top_srcdir@&$ac_top_srcdir&;t t
22532 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22533 s&@builddir@&$ac_builddir&;t t
22534 s&@abs_builddir@&$ac_abs_builddir&;t t
22535 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22536 s&@INSTALL@&$ac_INSTALL&;t t
22537 $ac_datarootdir_hack
22538 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22539
22540 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22541   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22542   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22543   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22544 which seems to be undefined.  Please make sure it is defined." >&5
22545 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22546 which seems to be undefined.  Please make sure it is defined." >&2;}
22547
22548   rm -f "$tmp/stdin"
22549   case $ac_file in
22550   -) cat "$tmp/out"; rm -f "$tmp/out";;
22551   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22552   esac
22553  ;;
22554   :H)
22555   #
22556   # CONFIG_HEADER
22557   #
22558 _ACEOF
22559
22560 # Transform confdefs.h into a sed script `conftest.defines', that
22561 # substitutes the proper values into config.h.in to produce config.h.
22562 rm -f conftest.defines conftest.tail
22563 # First, append a space to every undef/define line, to ease matching.
22564 echo 's/$/ /' >conftest.defines
22565 # Then, protect against being on the right side of a sed subst, or in
22566 # an unquoted here document, in config.status.  If some macros were
22567 # called several times there might be several #defines for the same
22568 # symbol, which is useless.  But do not sort them, since the last
22569 # AC_DEFINE must be honored.
22570 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22571 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22572 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22573 # PARAMS is the parameter list in the macro definition--in most cases, it's
22574 # just an empty string.
22575 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22576 ac_dB='\\)[      (].*,\\1define\\2'
22577 ac_dC=' '
22578 ac_dD=' ,'
22579
22580 uniq confdefs.h |
22581   sed -n '
22582         t rset
22583         :rset
22584         s/^[     ]*#[    ]*define[       ][      ]*//
22585         t ok
22586         d
22587         :ok
22588         s/[\\&,]/\\&/g
22589         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22590         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22591   ' >>conftest.defines
22592
22593 # Remove the space that was appended to ease matching.
22594 # Then replace #undef with comments.  This is necessary, for
22595 # example, in the case of _POSIX_SOURCE, which is predefined and required
22596 # on some systems where configure will not decide to define it.
22597 # (The regexp can be short, since the line contains either #define or #undef.)
22598 echo 's/ $//
22599 s,^[     #]*u.*,/* & */,' >>conftest.defines
22600
22601 # Break up conftest.defines:
22602 ac_max_sed_lines=50
22603
22604 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22605 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22606 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22607 # et cetera.
22608 ac_in='$ac_file_inputs'
22609 ac_out='"$tmp/out1"'
22610 ac_nxt='"$tmp/out2"'
22611
22612 while :
22613 do
22614   # Write a here document:
22615     cat >>$CONFIG_STATUS <<_ACEOF
22616     # First, check the format of the line:
22617     cat >"\$tmp/defines.sed" <<\\CEOF
22618 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22619 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22620 b
22621 :def
22622 _ACEOF
22623   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22624   echo 'CEOF
22625     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22626   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22627   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22628   grep . conftest.tail >/dev/null || break
22629   rm -f conftest.defines
22630   mv conftest.tail conftest.defines
22631 done
22632 rm -f conftest.defines conftest.tail
22633
22634 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22635 cat >>$CONFIG_STATUS <<\_ACEOF
22636   if test x"$ac_file" != x-; then
22637     echo "/* $configure_input  */" >"$tmp/config.h"
22638     cat "$ac_result" >>"$tmp/config.h"
22639     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22640       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22641 echo "$as_me: $ac_file is unchanged" >&6;}
22642     else
22643       rm -f $ac_file
22644       mv "$tmp/config.h" $ac_file
22645     fi
22646   else
22647     echo "/* $configure_input  */"
22648     cat "$ac_result"
22649   fi
22650   rm -f "$tmp/out12"
22651  ;;
22652
22653   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22654 echo "$as_me: executing $ac_file commands" >&6;}
22655  ;;
22656   esac
22657
22658
22659   case $ac_file$ac_mode in
22660     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22661    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22662     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22663    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22664     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22665    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22666     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22667    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22668     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22669    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22670     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22671    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22672     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22673    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22674     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22675    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22676     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22677    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22678     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22679    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22680     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22681    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22682     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22683    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22684     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22685    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22686
22687   esac
22688 done # for ac_tag
22689
22690
22691 { (exit 0); exit 0; }
22692 _ACEOF
22693 chmod +x $CONFIG_STATUS
22694 ac_clean_files=$ac_clean_files_save
22695
22696
22697 # configure is writing to config.log, and then calls config.status.
22698 # config.status does its own redirection, appending to config.log.
22699 # Unfortunately, on DOS this fails, as config.log is still kept open
22700 # by configure, so config.status won't be able to write to it; its
22701 # output is simply discarded.  So we exec the FD to /dev/null,
22702 # effectively closing config.log, so it can be properly (re)opened and
22703 # appended to by config.status.  When coming back to configure, we
22704 # need to make the FD available again.
22705 if test "$no_create" != yes; then
22706   ac_cs_success=:
22707   ac_config_status_args=
22708   test "$silent" = yes &&
22709     ac_config_status_args="$ac_config_status_args --quiet"
22710   exec 5>/dev/null
22711   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22712   exec 5>>config.log
22713   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22714   # would make configure fail if this is the last instruction.
22715   $ac_cs_success || { (exit 1); exit 1; }
22716 fi
22717
22718 #
22719 # CONFIG_SUBDIRS section.
22720 #
22721 if test "$no_recursion" != yes; then
22722
22723   # Remove --cache-file and --srcdir arguments so they do not pile up.
22724   ac_sub_configure_args=
22725   ac_prev=
22726   eval "set x $ac_configure_args"
22727   shift
22728   for ac_arg
22729   do
22730     if test -n "$ac_prev"; then
22731       ac_prev=
22732       continue
22733     fi
22734     case $ac_arg in
22735     -cache-file | --cache-file | --cache-fil | --cache-fi \
22736     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22737       ac_prev=cache_file ;;
22738     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22739     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22740     | --c=*)
22741       ;;
22742     --config-cache | -C)
22743       ;;
22744     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22745       ac_prev=srcdir ;;
22746     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22747       ;;
22748     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22749       ac_prev=prefix ;;
22750     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22751       ;;
22752     *)
22753       case $ac_arg in
22754       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22755       esac
22756       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22757     esac
22758   done
22759
22760   # Always prepend --prefix to ensure using the same prefix
22761   # in subdir configurations.
22762   ac_arg="--prefix=$prefix"
22763   case $ac_arg in
22764   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22765   esac
22766   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22767
22768   ac_popdir=`pwd`
22769   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22770
22771     # Do not complain, so a configure script can configure whichever
22772     # parts of a large source tree are present.
22773     test -d "$srcdir/$ac_dir" || continue
22774
22775     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22776     echo "$as_me:$LINENO: $ac_msg" >&5
22777     echo "$ac_msg" >&6
22778     { as_dir="$ac_dir"
22779   case $as_dir in #(
22780   -*) as_dir=./$as_dir;;
22781   esac
22782   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22783     as_dirs=
22784     while :; do
22785       case $as_dir in #(
22786       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22787       *) as_qdir=$as_dir;;
22788       esac
22789       as_dirs="'$as_qdir' $as_dirs"
22790       as_dir=`$as_dirname -- "$as_dir" ||
22791 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22792          X"$as_dir" : 'X\(//\)[^/]' \| \
22793          X"$as_dir" : 'X\(//\)$' \| \
22794          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22795 echo X"$as_dir" |
22796     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22797             s//\1/
22798             q
22799           }
22800           /^X\(\/\/\)[^/].*/{
22801             s//\1/
22802             q
22803           }
22804           /^X\(\/\/\)$/{
22805             s//\1/
22806             q
22807           }
22808           /^X\(\/\).*/{
22809             s//\1/
22810             q
22811           }
22812           s/.*/./; q'`
22813       test -d "$as_dir" && break
22814     done
22815     test -z "$as_dirs" || eval "mkdir $as_dirs"
22816   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22817 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22818    { (exit 1); exit 1; }; }; }
22819     ac_builddir=.
22820
22821 case "$ac_dir" in
22822 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22823 *)
22824   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22825   # A ".." for each directory in $ac_dir_suffix.
22826   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22827   case $ac_top_builddir_sub in
22828   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22829   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22830   esac ;;
22831 esac
22832 ac_abs_top_builddir=$ac_pwd
22833 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22834 # for backward compatibility:
22835 ac_top_builddir=$ac_top_build_prefix
22836
22837 case $srcdir in
22838   .)  # We are building in place.
22839     ac_srcdir=.
22840     ac_top_srcdir=$ac_top_builddir_sub
22841     ac_abs_top_srcdir=$ac_pwd ;;
22842   [\\/]* | ?:[\\/]* )  # Absolute name.
22843     ac_srcdir=$srcdir$ac_dir_suffix;
22844     ac_top_srcdir=$srcdir
22845     ac_abs_top_srcdir=$srcdir ;;
22846   *) # Relative name.
22847     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22848     ac_top_srcdir=$ac_top_build_prefix$srcdir
22849     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22850 esac
22851 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22852
22853
22854     cd "$ac_dir"
22855
22856     # Check for guested configure; otherwise get Cygnus style configure.
22857     if test -f "$ac_srcdir/configure.gnu"; then
22858       ac_sub_configure=$ac_srcdir/configure.gnu
22859     elif test -f "$ac_srcdir/configure"; then
22860       ac_sub_configure=$ac_srcdir/configure
22861     elif test -f "$ac_srcdir/configure.in"; then
22862       # This should be Cygnus configure.
22863       ac_sub_configure=$ac_aux_dir/configure
22864     else
22865       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22866 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22867       ac_sub_configure=
22868     fi
22869
22870     # The recursion is here.
22871     if test -n "$ac_sub_configure"; then
22872       # Make the cache file name correct relative to the subdirectory.
22873       case $cache_file in
22874       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22875       *) # Relative name.
22876         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22877       esac
22878
22879       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22880 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22881       # The eval makes quoting arguments work.
22882       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22883            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22884         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22885 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22886    { (exit 1); exit 1; }; }
22887     fi
22888
22889     cd "$ac_popdir"
22890   done
22891 fi
22892