Intel syntax. Adjust special code, used to recognize cmp<comparison code>{ss,sd,ps...
[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.1svn.
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.1svn'
565 PACKAGE_STRING='LLVM 3.1svn'
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 ENDIAN
678 GREP
679 EGREP
680 LLVM_CROSS_COMPILING
681 BUILD_CC
682 BUILD_EXEEXT
683 BUILD_CXX
684 CVSBUILD
685 ENABLE_LIBCPP
686 ENABLE_OPTIMIZED
687 ENABLE_PROFILING
688 DISABLE_ASSERTIONS
689 ENABLE_EXPENSIVE_CHECKS
690 EXPENSIVE_CHECKS
691 DEBUG_RUNTIME
692 DEBUG_SYMBOLS
693 JIT
694 TARGET_HAS_JIT
695 ENABLE_DOCS
696 ENABLE_DOXYGEN
697 LLVM_ENABLE_THREADS
698 ENABLE_PTHREADS
699 ENABLE_PIC
700 ENABLE_SHARED
701 ENABLE_EMBED_STDCXX
702 ENABLE_TIMESTAMPS
703 TARGETS_TO_BUILD
704 LLVM_ENUM_TARGETS
705 LLVM_ENUM_ASM_PRINTERS
706 LLVM_ENUM_ASM_PARSERS
707 LLVM_ENUM_DISASSEMBLERS
708 ENABLE_CBE_PRINTF_A
709 OPTIMIZE_OPTION
710 EXTRA_OPTIONS
711 EXTRA_LD_OPTIONS
712 CLANG_SRC_ROOT
713 BINUTILS_INCDIR
714 INTERNAL_PREFIX
715 NM
716 ifGNUmake
717 LN_S
718 CMP
719 CP
720 DATE
721 FIND
722 MKDIR
723 MV
724 RANLIB
725 AR
726 RM
727 SED
728 TAR
729 BINPWD
730 GRAPHVIZ
731 DOT
732 FDP
733 NEATO
734 TWOPI
735 CIRCO
736 GV
737 DOTTY
738 XDOT_PY
739 PERL
740 HAVE_PERL
741 INSTALL_PROGRAM
742 INSTALL_SCRIPT
743 INSTALL_DATA
744 BZIP2
745 CAT
746 DOXYGEN
747 GROFF
748 GZIPBIN
749 POD2HTML
750 POD2MAN
751 PDFROFF
752 RUNTEST
753 TCLSH
754 ZIP
755 OCAMLC
756 OCAMLOPT
757 OCAMLDEP
758 OCAMLDOC
759 GAS
760 HAVE_LINK_VERSION_SCRIPT
761 INSTALL_LTDL_TRUE
762 INSTALL_LTDL_FALSE
763 CONVENIENCE_LTDL_TRUE
764 CONVENIENCE_LTDL_FALSE
765 LIBADD_DL
766 NO_VARIADIC_MACROS
767 NO_MISSING_FIELD_INITIALIZERS
768 USE_UDIS86
769 USE_OPROFILE
770 HAVE_PTHREAD
771 HUGE_VAL_SANITY
772 MMAP_FILE
773 SHLIBEXT
774 SHLIBPATH_VAR
775 LLVM_PREFIX
776 LLVM_BINDIR
777 LLVM_LIBDIR
778 LLVM_DATADIR
779 LLVM_DOCSDIR
780 LLVM_ETCDIR
781 LLVM_INCLUDEDIR
782 LLVM_INFODIR
783 LLVM_MANDIR
784 LLVM_CONFIGTIME
785 BINDINGS_TO_BUILD
786 ALL_BINDINGS
787 OCAML_LIBDIR
788 ENABLE_VISIBILITY_INLINES_HIDDEN
789 RPATH
790 RDYNAMIC
791 LIBOBJS
792 LTLIBOBJS'
793 ac_subst_files=''
794       ac_precious_vars='build_alias
795 host_alias
796 target_alias
797 CC
798 CFLAGS
799 LDFLAGS
800 CPPFLAGS
801 CXX
802 CXXFLAGS
803 CCC
804 CPP'
805 ac_subdirs_all='projects/llvm-gcc
806 projects/test-suite
807 projects/llvm-test
808 projects/poolalloc
809 projects/llvm-poolalloc
810 projects/sample
811 projects/privbracket
812 projects/llvm-stacker
813 projects/llvm-reopt
814 projects/llvm-java
815 projects/llvm-tv
816 projects/safecode
817 projects/llvm-kernel
818 tools/polly'
819
820 # Initialize some variables set by options.
821 ac_init_help=
822 ac_init_version=false
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
825 cache_file=/dev/null
826 exec_prefix=NONE
827 no_create=
828 no_recursion=
829 prefix=NONE
830 program_prefix=NONE
831 program_suffix=NONE
832 program_transform_name=s,x,x,
833 silent=
834 site=
835 srcdir=
836 verbose=
837 x_includes=NONE
838 x_libraries=NONE
839
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 includedir='${prefix}/include'
855 oldincludedir='/usr/include'
856 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857 infodir='${datarootdir}/info'
858 htmldir='${docdir}'
859 dvidir='${docdir}'
860 pdfdir='${docdir}'
861 psdir='${docdir}'
862 libdir='${exec_prefix}/lib'
863 localedir='${datarootdir}/locale'
864 mandir='${datarootdir}/man'
865
866 ac_prev=
867 ac_dashdash=
868 for ac_option
869 do
870   # If the previous option needs an argument, assign it.
871   if test -n "$ac_prev"; then
872     eval $ac_prev=\$ac_option
873     ac_prev=
874     continue
875   fi
876
877   case $ac_option in
878   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879   *)    ac_optarg=yes ;;
880   esac
881
882   # Accept the important Cygnus configure options, so we can diagnose typos.
883
884   case $ac_dashdash$ac_option in
885   --)
886     ac_dashdash=yes ;;
887
888   -bindir | --bindir | --bindi | --bind | --bin | --bi)
889     ac_prev=bindir ;;
890   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891     bindir=$ac_optarg ;;
892
893   -build | --build | --buil | --bui | --bu)
894     ac_prev=build_alias ;;
895   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896     build_alias=$ac_optarg ;;
897
898   -cache-file | --cache-file | --cache-fil | --cache-fi \
899   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900     ac_prev=cache_file ;;
901   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903     cache_file=$ac_optarg ;;
904
905   --config-cache | -C)
906     cache_file=config.cache ;;
907
908   -datadir | --datadir | --datadi | --datad)
909     ac_prev=datadir ;;
910   -datadir=* | --datadir=* | --datadi=* | --datad=*)
911     datadir=$ac_optarg ;;
912
913   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914   | --dataroo | --dataro | --datar)
915     ac_prev=datarootdir ;;
916   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918     datarootdir=$ac_optarg ;;
919
920   -disable-* | --disable-*)
921     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922     # Reject names that are not valid shell variable names.
923     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
924       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
925    { (exit 1); exit 1; }; }
926     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
927     eval enable_$ac_feature=no ;;
928
929   -docdir | --docdir | --docdi | --doc | --do)
930     ac_prev=docdir ;;
931   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932     docdir=$ac_optarg ;;
933
934   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935     ac_prev=dvidir ;;
936   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937     dvidir=$ac_optarg ;;
938
939   -enable-* | --enable-*)
940     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941     # Reject names that are not valid shell variable names.
942     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
943       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
944    { (exit 1); exit 1; }; }
945     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
946     eval enable_$ac_feature=\$ac_optarg ;;
947
948   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950   | --exec | --exe | --ex)
951     ac_prev=exec_prefix ;;
952   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954   | --exec=* | --exe=* | --ex=*)
955     exec_prefix=$ac_optarg ;;
956
957   -gas | --gas | --ga | --g)
958     # Obsolete; use --with-gas.
959     with_gas=yes ;;
960
961   -help | --help | --hel | --he | -h)
962     ac_init_help=long ;;
963   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964     ac_init_help=recursive ;;
965   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966     ac_init_help=short ;;
967
968   -host | --host | --hos | --ho)
969     ac_prev=host_alias ;;
970   -host=* | --host=* | --hos=* | --ho=*)
971     host_alias=$ac_optarg ;;
972
973   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974     ac_prev=htmldir ;;
975   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976   | --ht=*)
977     htmldir=$ac_optarg ;;
978
979   -includedir | --includedir | --includedi | --included | --include \
980   | --includ | --inclu | --incl | --inc)
981     ac_prev=includedir ;;
982   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983   | --includ=* | --inclu=* | --incl=* | --inc=*)
984     includedir=$ac_optarg ;;
985
986   -infodir | --infodir | --infodi | --infod | --info | --inf)
987     ac_prev=infodir ;;
988   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989     infodir=$ac_optarg ;;
990
991   -libdir | --libdir | --libdi | --libd)
992     ac_prev=libdir ;;
993   -libdir=* | --libdir=* | --libdi=* | --libd=*)
994     libdir=$ac_optarg ;;
995
996   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997   | --libexe | --libex | --libe)
998     ac_prev=libexecdir ;;
999   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000   | --libexe=* | --libex=* | --libe=*)
1001     libexecdir=$ac_optarg ;;
1002
1003   -localedir | --localedir | --localedi | --localed | --locale)
1004     ac_prev=localedir ;;
1005   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006     localedir=$ac_optarg ;;
1007
1008   -localstatedir | --localstatedir | --localstatedi | --localstated \
1009   | --localstate | --localstat | --localsta | --localst | --locals)
1010     ac_prev=localstatedir ;;
1011   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013     localstatedir=$ac_optarg ;;
1014
1015   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016     ac_prev=mandir ;;
1017   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018     mandir=$ac_optarg ;;
1019
1020   -nfp | --nfp | --nf)
1021     # Obsolete; use --without-fp.
1022     with_fp=no ;;
1023
1024   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025   | --no-cr | --no-c | -n)
1026     no_create=yes ;;
1027
1028   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030     no_recursion=yes ;;
1031
1032   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034   | --oldin | --oldi | --old | --ol | --o)
1035     ac_prev=oldincludedir ;;
1036   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039     oldincludedir=$ac_optarg ;;
1040
1041   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042     ac_prev=prefix ;;
1043   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044     prefix=$ac_optarg ;;
1045
1046   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047   | --program-pre | --program-pr | --program-p)
1048     ac_prev=program_prefix ;;
1049   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051     program_prefix=$ac_optarg ;;
1052
1053   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054   | --program-suf | --program-su | --program-s)
1055     ac_prev=program_suffix ;;
1056   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058     program_suffix=$ac_optarg ;;
1059
1060   -program-transform-name | --program-transform-name \
1061   | --program-transform-nam | --program-transform-na \
1062   | --program-transform-n | --program-transform- \
1063   | --program-transform | --program-transfor \
1064   | --program-transfo | --program-transf \
1065   | --program-trans | --program-tran \
1066   | --progr-tra | --program-tr | --program-t)
1067     ac_prev=program_transform_name ;;
1068   -program-transform-name=* | --program-transform-name=* \
1069   | --program-transform-nam=* | --program-transform-na=* \
1070   | --program-transform-n=* | --program-transform-=* \
1071   | --program-transform=* | --program-transfor=* \
1072   | --program-transfo=* | --program-transf=* \
1073   | --program-trans=* | --program-tran=* \
1074   | --progr-tra=* | --program-tr=* | --program-t=*)
1075     program_transform_name=$ac_optarg ;;
1076
1077   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078     ac_prev=pdfdir ;;
1079   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080     pdfdir=$ac_optarg ;;
1081
1082   -psdir | --psdir | --psdi | --psd | --ps)
1083     ac_prev=psdir ;;
1084   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085     psdir=$ac_optarg ;;
1086
1087   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088   | -silent | --silent | --silen | --sile | --sil)
1089     silent=yes ;;
1090
1091   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092     ac_prev=sbindir ;;
1093   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094   | --sbi=* | --sb=*)
1095     sbindir=$ac_optarg ;;
1096
1097   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099   | --sharedst | --shareds | --shared | --share | --shar \
1100   | --sha | --sh)
1101     ac_prev=sharedstatedir ;;
1102   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105   | --sha=* | --sh=*)
1106     sharedstatedir=$ac_optarg ;;
1107
1108   -site | --site | --sit)
1109     ac_prev=site ;;
1110   -site=* | --site=* | --sit=*)
1111     site=$ac_optarg ;;
1112
1113   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114     ac_prev=srcdir ;;
1115   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116     srcdir=$ac_optarg ;;
1117
1118   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119   | --syscon | --sysco | --sysc | --sys | --sy)
1120     ac_prev=sysconfdir ;;
1121   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123     sysconfdir=$ac_optarg ;;
1124
1125   -target | --target | --targe | --targ | --tar | --ta | --t)
1126     ac_prev=target_alias ;;
1127   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128     target_alias=$ac_optarg ;;
1129
1130   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131     verbose=yes ;;
1132
1133   -version | --version | --versio | --versi | --vers | -V)
1134     ac_init_version=: ;;
1135
1136   -with-* | --with-*)
1137     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138     # Reject names that are not valid shell variable names.
1139     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1140       { echo "$as_me: error: invalid package name: $ac_package" >&2
1141    { (exit 1); exit 1; }; }
1142     ac_package=`echo $ac_package| sed 's/-/_/g'`
1143     eval with_$ac_package=\$ac_optarg ;;
1144
1145   -without-* | --without-*)
1146     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147     # Reject names that are not valid shell variable names.
1148     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149       { echo "$as_me: error: invalid package name: $ac_package" >&2
1150    { (exit 1); exit 1; }; }
1151     ac_package=`echo $ac_package | sed 's/-/_/g'`
1152     eval with_$ac_package=no ;;
1153
1154   --x)
1155     # Obsolete; use --with-x.
1156     with_x=yes ;;
1157
1158   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159   | --x-incl | --x-inc | --x-in | --x-i)
1160     ac_prev=x_includes ;;
1161   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163     x_includes=$ac_optarg ;;
1164
1165   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167     ac_prev=x_libraries ;;
1168   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170     x_libraries=$ac_optarg ;;
1171
1172   -*) { echo "$as_me: error: unrecognized option: $ac_option
1173 Try \`$0 --help' for more information." >&2
1174    { (exit 1); exit 1; }; }
1175     ;;
1176
1177   *=*)
1178     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179     # Reject names that are not valid shell variable names.
1180     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1181       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1182    { (exit 1); exit 1; }; }
1183     eval $ac_envvar=\$ac_optarg
1184     export $ac_envvar ;;
1185
1186   *)
1187     # FIXME: should be removed in autoconf 3.0.
1188     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1192     ;;
1193
1194   esac
1195 done
1196
1197 if test -n "$ac_prev"; then
1198   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199   { echo "$as_me: error: missing argument to $ac_option" >&2
1200    { (exit 1); exit 1; }; }
1201 fi
1202
1203 # Be sure to have absolute directory names.
1204 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205                 datadir sysconfdir sharedstatedir localstatedir includedir \
1206                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207                 libdir localedir mandir
1208 do
1209   eval ac_val=\$$ac_var
1210   case $ac_val in
1211     [\\/$]* | ?:[\\/]* )  continue;;
1212     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213   esac
1214   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1215    { (exit 1); exit 1; }; }
1216 done
1217
1218 # There might be people who depend on the old broken behavior: `$host'
1219 # used to hold the argument of --host etc.
1220 # FIXME: To remove some day.
1221 build=$build_alias
1222 host=$host_alias
1223 target=$target_alias
1224
1225 # FIXME: To remove some day.
1226 if test "x$host_alias" != x; then
1227   if test "x$build_alias" = x; then
1228     cross_compiling=maybe
1229     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1230     If a cross compiler is detected then cross compile mode will be used." >&2
1231   elif test "x$build_alias" != "x$host_alias"; then
1232     cross_compiling=yes
1233   fi
1234 fi
1235
1236 ac_tool_prefix=
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239 test "$silent" = yes && exec 6>/dev/null
1240
1241
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245   { echo "$as_me: error: Working directory cannot be determined" >&2
1246    { (exit 1); exit 1; }; }
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248   { echo "$as_me: error: pwd does not report name of working directory" >&2
1249    { (exit 1); exit 1; }; }
1250
1251
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254   ac_srcdir_defaulted=yes
1255   # Try the directory containing this script, then the parent directory.
1256   ac_confdir=`$as_dirname -- "$0" ||
1257 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258          X"$0" : 'X\(//\)[^/]' \| \
1259          X"$0" : 'X\(//\)$' \| \
1260          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1261 echo X"$0" |
1262     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263             s//\1/
1264             q
1265           }
1266           /^X\(\/\/\)[^/].*/{
1267             s//\1/
1268             q
1269           }
1270           /^X\(\/\/\)$/{
1271             s//\1/
1272             q
1273           }
1274           /^X\(\/\).*/{
1275             s//\1/
1276             q
1277           }
1278           s/.*/./; q'`
1279   srcdir=$ac_confdir
1280   if test ! -r "$srcdir/$ac_unique_file"; then
1281     srcdir=..
1282   fi
1283 else
1284   ac_srcdir_defaulted=no
1285 fi
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1289    { (exit 1); exit 1; }; }
1290 fi
1291 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 ac_abs_confdir=`(
1293         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1294    { (exit 1); exit 1; }; }
1295         pwd)`
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298   srcdir=.
1299 fi
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1303 case $srcdir in
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 esac
1306 for ac_var in $ac_precious_vars; do
1307   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308   eval ac_env_${ac_var}_value=\$${ac_var}
1309   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 done
1312
1313 #
1314 # Report the --help message.
1315 #
1316 if test "$ac_init_help" = "long"; then
1317   # Omit some internal or obsolete options to make the list less imposing.
1318   # This message is too long to be a string in the A/UX 3.1 sh.
1319   cat <<_ACEOF
1320 \`configure' configures LLVM 3.1svn to adapt to many kinds of systems.
1321
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE.  See below for descriptions of some of the useful variables.
1326
1327 Defaults for the options are specified in brackets.
1328
1329 Configuration:
1330   -h, --help              display this help and exit
1331       --help=short        display options specific to this package
1332       --help=recursive    display the short help of all the included packages
1333   -V, --version           display version information and exit
1334   -q, --quiet, --silent   do not print \`checking...' messages
1335       --cache-file=FILE   cache test results in FILE [disabled]
1336   -C, --config-cache      alias for \`--cache-file=config.cache'
1337   -n, --no-create         do not create output files
1338       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1339
1340 Installation directories:
1341   --prefix=PREFIX         install architecture-independent files in PREFIX
1342                           [$ac_default_prefix]
1343   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1344                           [PREFIX]
1345
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1350
1351 For better control, use the options below.
1352
1353 Fine tuning of the installation directories:
1354   --bindir=DIR           user executables [EPREFIX/bin]
1355   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1356   --libexecdir=DIR       program executables [EPREFIX/libexec]
1357   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1358   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1359   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1360   --libdir=DIR           object code libraries [EPREFIX/lib]
1361   --includedir=DIR       C header files [PREFIX/include]
1362   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1363   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1364   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1365   --infodir=DIR          info documentation [DATAROOTDIR/info]
1366   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1367   --mandir=DIR           man documentation [DATAROOTDIR/man]
1368   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1369   --htmldir=DIR          html documentation [DOCDIR]
1370   --dvidir=DIR           dvi documentation [DOCDIR]
1371   --pdfdir=DIR           pdf documentation [DOCDIR]
1372   --psdir=DIR            ps documentation [DOCDIR]
1373 _ACEOF
1374
1375   cat <<\_ACEOF
1376
1377 System types:
1378   --build=BUILD     configure for building on BUILD [guessed]
1379   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1380   --target=TARGET   configure for building compilers for TARGET [HOST]
1381 _ACEOF
1382 fi
1383
1384 if test -n "$ac_init_help"; then
1385   case $ac_init_help in
1386      short | recursive ) echo "Configuration of LLVM 3.1svn:";;
1387    esac
1388   cat <<\_ACEOF
1389
1390 Optional Features:
1391   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1392   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1393   --enable-polly          Use polly if available (default is YES)
1394   --enable-libcpp         Use libc++ if available (default is NO)
1395   --enable-optimized      Compile with optimizations enabled (default is NO)
1396   --enable-profiling      Compile with profiling enabled (default is NO)
1397   --enable-assertions     Compile with assertion checks enabled (default is
1398                           YES)
1399   --enable-expensive-checks
1400                           Compile with expensive debug checks enabled (default
1401                           is NO)
1402   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1403                           NO)
1404   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1405                           optimization is on and YES if it's off)
1406   --enable-jit            Enable Just In Time Compiling (default is YES)
1407   --enable-docs           Build documents (default is YES)
1408   --enable-doxygen        Build doxygen documentation (default is NO)
1409   --enable-threads        Use threads if available (default is YES)
1410   --enable-pthreads       Use pthreads if available (default is YES)
1411   --enable-pic            Build LLVM with Position Independent Code (default
1412                           is YES)
1413   --enable-shared         Build a shared library and link tools against it
1414                           (default is NO)
1415   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1416                           Win32 DLL (default is NO)
1417   --enable-timestamps     Enable embedding timestamp information in build
1418                           (default is YES)
1419   --enable-targets        Build specific host targets: all or
1420                           target1,target2,... Valid targets are: host, x86,
1421                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1422                           xcore, msp430, ptx, cbe, and cpp (default=all)
1423   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1424                           %a (default is YES)
1425   --enable-bindings       Build specific language bindings:
1426                           all,auto,none,{binding-name} (default=auto)
1427   --enable-libffi         Check for the presence of libffi (default is NO)
1428   --enable-ltdl-install   install libltdl
1429
1430 Optional Packages:
1431   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1432   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1433   --with-optimize-option  Select the compiler options to use for optimized
1434                           builds
1435   --with-extra-options    Specify additional options to compile LLVM with
1436   --with-extra-ld-options Specify additional options to link LLVM with
1437   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1438                           is stdlib)
1439   --with-clang-srcdir     Directory to the out-of-tree Clang source
1440   --with-clang-resource-dir
1441                           Relative directory from the Clang binary for
1442                           resource files
1443   --with-c-include-dirs   Colon separated list of directories clang will
1444                           search for headers
1445   --with-cxx-include-root Directory with the libstdc++ headers.
1446   --with-cxx-include-arch Architecture of the libstdc++ headers.
1447   --with-cxx-include-32bit-dir
1448                           32 bit multilib dir.
1449   --with-cxx-include-64bit-dir
1450                           64 bit multilib directory.
1451   --with-binutils-include Specify path to binutils/include/ containing
1452                           plugin-api.h file for gold plugin.
1453   --with-bug-report-url   Specify the URL where bug reports should be
1454                           submitted (default=http://llvm.org/bugs/)
1455   --with-internal-prefix  Installation directory for internal files
1456   --with-tclinclude       directory where tcl headers are
1457   --with-udis86=<path>    Use udis86 external x86 disassembler library
1458   --with-oprofile=<prefix>
1459                           Tell OProfile >= 0.9.4 how to symbolize JIT output
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.1svn
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.1svn, 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 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1907
1908
1909
1910
1911
1912
1913
1914 ac_aux_dir=
1915 for ac_dir in autoconf "$srcdir"/autoconf; do
1916   if test -f "$ac_dir/install-sh"; then
1917     ac_aux_dir=$ac_dir
1918     ac_install_sh="$ac_aux_dir/install-sh -c"
1919     break
1920   elif test -f "$ac_dir/install.sh"; then
1921     ac_aux_dir=$ac_dir
1922     ac_install_sh="$ac_aux_dir/install.sh -c"
1923     break
1924   elif test -f "$ac_dir/shtool"; then
1925     ac_aux_dir=$ac_dir
1926     ac_install_sh="$ac_aux_dir/shtool install -c"
1927     break
1928   fi
1929 done
1930 if test -z "$ac_aux_dir"; then
1931   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933    { (exit 1); exit 1; }; }
1934 fi
1935
1936 # These three variables are undocumented and unsupported,
1937 # and are intended to be withdrawn in a future Autoconf release.
1938 # They can cause serious problems if a builder's source tree is in a directory
1939 # whose full name contains unusual characters.
1940 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1941 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1942 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1943
1944
1945
1946 if test ${srcdir} != "." ; then
1947   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1948     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950    { (exit 1); exit 1; }; }
1951   fi
1952 fi
1953
1954 ac_ext=c
1955 ac_cpp='$CPP $CPPFLAGS'
1956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1959 if test -n "$ac_tool_prefix"; then
1960   for ac_prog in clang llvm-gcc gcc
1961   do
1962     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1963 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1966 if test "${ac_cv_prog_CC+set}" = set; then
1967   echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969   if test -n "$CC"; then
1970   ac_cv_prog_CC="$CC" # Let the user override the test.
1971 else
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 for as_dir in $PATH
1974 do
1975   IFS=$as_save_IFS
1976   test -z "$as_dir" && as_dir=.
1977   for ac_exec_ext in '' $ac_executable_extensions; do
1978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1979     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981     break 2
1982   fi
1983 done
1984 done
1985 IFS=$as_save_IFS
1986
1987 fi
1988 fi
1989 CC=$ac_cv_prog_CC
1990 if test -n "$CC"; then
1991   { echo "$as_me:$LINENO: result: $CC" >&5
1992 echo "${ECHO_T}$CC" >&6; }
1993 else
1994   { echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6; }
1996 fi
1997
1998
1999     test -n "$CC" && break
2000   done
2001 fi
2002 if test -z "$CC"; then
2003   ac_ct_CC=$CC
2004   for ac_prog in clang llvm-gcc gcc
2005 do
2006   # Extract the first word of "$ac_prog", so it can be a program name with args.
2007 set dummy $ac_prog; ac_word=$2
2008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2011   echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013   if test -n "$ac_ct_CC"; then
2014   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2015 else
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2018 do
2019   IFS=$as_save_IFS
2020   test -z "$as_dir" && as_dir=.
2021   for ac_exec_ext in '' $ac_executable_extensions; do
2022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2023     ac_cv_prog_ac_ct_CC="$ac_prog"
2024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025     break 2
2026   fi
2027 done
2028 done
2029 IFS=$as_save_IFS
2030
2031 fi
2032 fi
2033 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2034 if test -n "$ac_ct_CC"; then
2035   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2036 echo "${ECHO_T}$ac_ct_CC" >&6; }
2037 else
2038   { echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6; }
2040 fi
2041
2042
2043   test -n "$ac_ct_CC" && break
2044 done
2045
2046   if test "x$ac_ct_CC" = x; then
2047     CC=""
2048   else
2049     case $cross_compiling:$ac_tool_warned in
2050 yes:)
2051 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2052 whose name does not start with the host triplet.  If you think this
2053 configuration is useful to you, please write to autoconf@gnu.org." >&5
2054 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2055 whose name does not start with the host triplet.  If you think this
2056 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2057 ac_tool_warned=yes ;;
2058 esac
2059     CC=$ac_ct_CC
2060   fi
2061 fi
2062
2063
2064 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2065 See \`config.log' for more details." >&5
2066 echo "$as_me: error: no acceptable C compiler found in \$PATH
2067 See \`config.log' for more details." >&2;}
2068    { (exit 1); exit 1; }; }
2069
2070 # Provide some information about the compiler.
2071 echo "$as_me:$LINENO: checking for C compiler version" >&5
2072 ac_compiler=`set X $ac_compile; echo $2`
2073 { (ac_try="$ac_compiler --version >&5"
2074 case "(($ac_try" in
2075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076   *) ac_try_echo=$ac_try;;
2077 esac
2078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2079   (eval "$ac_compiler --version >&5") 2>&5
2080   ac_status=$?
2081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082   (exit $ac_status); }
2083 { (ac_try="$ac_compiler -v >&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 -v >&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
2104 cat >conftest.$ac_ext <<_ACEOF
2105 /* confdefs.h.  */
2106 _ACEOF
2107 cat confdefs.h >>conftest.$ac_ext
2108 cat >>conftest.$ac_ext <<_ACEOF
2109 /* end confdefs.h.  */
2110
2111 int
2112 main ()
2113 {
2114
2115   ;
2116   return 0;
2117 }
2118 _ACEOF
2119 ac_clean_files_save=$ac_clean_files
2120 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2121 # Try to create an executable without -o first, disregard a.out.
2122 # It will help us diagnose broken compilers, and finding out an intuition
2123 # of exeext.
2124 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2125 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2126 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2127 #
2128 # List of possible output files, starting from the most likely.
2129 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2130 # only as a last resort.  b.out is created by i960 compilers.
2131 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2132 #
2133 # The IRIX 6 linker writes into existing files which may not be
2134 # executable, retaining their permissions.  Remove them first so a
2135 # subsequent execution test works.
2136 ac_rmfiles=
2137 for ac_file in $ac_files
2138 do
2139   case $ac_file in
2140     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2141     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2142   esac
2143 done
2144 rm -f $ac_rmfiles
2145
2146 if { (ac_try="$ac_link_default"
2147 case "(($ac_try" in
2148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2149   *) ac_try_echo=$ac_try;;
2150 esac
2151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2152   (eval "$ac_link_default") 2>&5
2153   ac_status=$?
2154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155   (exit $ac_status); }; then
2156   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2157 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2158 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2159 # so that the user can short-circuit this test for compilers unknown to
2160 # Autoconf.
2161 for ac_file in $ac_files
2162 do
2163   test -f "$ac_file" || continue
2164   case $ac_file in
2165     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2166         ;;
2167     [ab].out )
2168         # We found the default executable, but exeext='' is most
2169         # certainly right.
2170         break;;
2171     *.* )
2172         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2173         then :; else
2174            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2175         fi
2176         # We set ac_cv_exeext here because the later test for it is not
2177         # safe: cross compilers may not add the suffix if given an `-o'
2178         # argument, so we may need to know it at that point already.
2179         # Even if this section looks crufty: it has the advantage of
2180         # actually working.
2181         break;;
2182     * )
2183         break;;
2184   esac
2185 done
2186 test "$ac_cv_exeext" = no && ac_cv_exeext=
2187
2188 else
2189   echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2191
2192 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2193 See \`config.log' for more details." >&5
2194 echo "$as_me: error: C compiler cannot create executables
2195 See \`config.log' for more details." >&2;}
2196    { (exit 77); exit 77; }; }
2197 fi
2198
2199 ac_exeext=$ac_cv_exeext
2200 { echo "$as_me:$LINENO: result: $ac_file" >&5
2201 echo "${ECHO_T}$ac_file" >&6; }
2202
2203 # Check that the compiler produces executables we can run.  If not, either
2204 # the compiler is broken, or we cross compile.
2205 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2206 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2207 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2208 # If not cross compiling, check that we can run a simple program.
2209 if test "$cross_compiling" != yes; then
2210   if { ac_try='./$ac_file'
2211   { (case "(($ac_try" in
2212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2213   *) ac_try_echo=$ac_try;;
2214 esac
2215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2216   (eval "$ac_try") 2>&5
2217   ac_status=$?
2218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219   (exit $ac_status); }; }; then
2220     cross_compiling=no
2221   else
2222     if test "$cross_compiling" = maybe; then
2223         cross_compiling=yes
2224     else
2225         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2226 If you meant to cross compile, use \`--host'.
2227 See \`config.log' for more details." >&5
2228 echo "$as_me: error: cannot run C compiled programs.
2229 If you meant to cross compile, use \`--host'.
2230 See \`config.log' for more details." >&2;}
2231    { (exit 1); exit 1; }; }
2232     fi
2233   fi
2234 fi
2235 { echo "$as_me:$LINENO: result: yes" >&5
2236 echo "${ECHO_T}yes" >&6; }
2237
2238 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2239 ac_clean_files=$ac_clean_files_save
2240 # Check that the compiler produces executables we can run.  If not, either
2241 # the compiler is broken, or we cross compile.
2242 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2243 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2244 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2245 echo "${ECHO_T}$cross_compiling" >&6; }
2246
2247 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2248 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2249 if { (ac_try="$ac_link"
2250 case "(($ac_try" in
2251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252   *) ac_try_echo=$ac_try;;
2253 esac
2254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2255   (eval "$ac_link") 2>&5
2256   ac_status=$?
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); }; then
2259   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2260 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2261 # work properly (i.e., refer to `conftest.exe'), while it won't with
2262 # `rm'.
2263 for ac_file in conftest.exe conftest conftest.*; do
2264   test -f "$ac_file" || continue
2265   case $ac_file in
2266     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2267     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2268           break;;
2269     * ) break;;
2270   esac
2271 done
2272 else
2273   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2274 See \`config.log' for more details." >&5
2275 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2276 See \`config.log' for more details." >&2;}
2277    { (exit 1); exit 1; }; }
2278 fi
2279
2280 rm -f conftest$ac_cv_exeext
2281 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2282 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2283
2284 rm -f conftest.$ac_ext
2285 EXEEXT=$ac_cv_exeext
2286 ac_exeext=$EXEEXT
2287 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2288 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2289 if test "${ac_cv_objext+set}" = set; then
2290   echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292   cat >conftest.$ac_ext <<_ACEOF
2293 /* confdefs.h.  */
2294 _ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h.  */
2298
2299 int
2300 main ()
2301 {
2302
2303   ;
2304   return 0;
2305 }
2306 _ACEOF
2307 rm -f conftest.o conftest.obj
2308 if { (ac_try="$ac_compile"
2309 case "(($ac_try" in
2310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311   *) ac_try_echo=$ac_try;;
2312 esac
2313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2314   (eval "$ac_compile") 2>&5
2315   ac_status=$?
2316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317   (exit $ac_status); }; then
2318   for ac_file in conftest.o conftest.obj conftest.*; do
2319   test -f "$ac_file" || continue;
2320   case $ac_file in
2321     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2322     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2323        break;;
2324   esac
2325 done
2326 else
2327   echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2329
2330 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2331 See \`config.log' for more details." >&5
2332 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2333 See \`config.log' for more details." >&2;}
2334    { (exit 1); exit 1; }; }
2335 fi
2336
2337 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2338 fi
2339 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2340 echo "${ECHO_T}$ac_cv_objext" >&6; }
2341 OBJEXT=$ac_cv_objext
2342 ac_objext=$OBJEXT
2343 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2344 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2345 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2346   echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348   cat >conftest.$ac_ext <<_ACEOF
2349 /* confdefs.h.  */
2350 _ACEOF
2351 cat confdefs.h >>conftest.$ac_ext
2352 cat >>conftest.$ac_ext <<_ACEOF
2353 /* end confdefs.h.  */
2354
2355 int
2356 main ()
2357 {
2358 #ifndef __GNUC__
2359        choke me
2360 #endif
2361
2362   ;
2363   return 0;
2364 }
2365 _ACEOF
2366 rm -f conftest.$ac_objext
2367 if { (ac_try="$ac_compile"
2368 case "(($ac_try" in
2369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370   *) ac_try_echo=$ac_try;;
2371 esac
2372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2373   (eval "$ac_compile") 2>conftest.er1
2374   ac_status=$?
2375   grep -v '^ *+' conftest.er1 >conftest.err
2376   rm -f conftest.er1
2377   cat conftest.err >&5
2378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379   (exit $ac_status); } &&
2380          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2381   { (case "(($ac_try" in
2382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383   *) ac_try_echo=$ac_try;;
2384 esac
2385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386   (eval "$ac_try") 2>&5
2387   ac_status=$?
2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); }; } &&
2390          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2400   ac_compiler_gnu=yes
2401 else
2402   echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2404
2405         ac_compiler_gnu=no
2406 fi
2407
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2410
2411 fi
2412 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2413 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2414 GCC=`test $ac_compiler_gnu = yes && echo yes`
2415 ac_test_CFLAGS=${CFLAGS+set}
2416 ac_save_CFLAGS=$CFLAGS
2417 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2418 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2419 if test "${ac_cv_prog_cc_g+set}" = set; then
2420   echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422   ac_save_c_werror_flag=$ac_c_werror_flag
2423    ac_c_werror_flag=yes
2424    ac_cv_prog_cc_g=no
2425    CFLAGS="-g"
2426    cat >conftest.$ac_ext <<_ACEOF
2427 /* confdefs.h.  */
2428 _ACEOF
2429 cat confdefs.h >>conftest.$ac_ext
2430 cat >>conftest.$ac_ext <<_ACEOF
2431 /* end confdefs.h.  */
2432
2433 int
2434 main ()
2435 {
2436
2437   ;
2438   return 0;
2439 }
2440 _ACEOF
2441 rm -f conftest.$ac_objext
2442 if { (ac_try="$ac_compile"
2443 case "(($ac_try" in
2444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445   *) ac_try_echo=$ac_try;;
2446 esac
2447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2448   (eval "$ac_compile") 2>conftest.er1
2449   ac_status=$?
2450   grep -v '^ *+' conftest.er1 >conftest.err
2451   rm -f conftest.er1
2452   cat conftest.err >&5
2453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454   (exit $ac_status); } &&
2455          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2456   { (case "(($ac_try" in
2457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458   *) ac_try_echo=$ac_try;;
2459 esac
2460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461   (eval "$ac_try") 2>&5
2462   ac_status=$?
2463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464   (exit $ac_status); }; } &&
2465          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2475   ac_cv_prog_cc_g=yes
2476 else
2477   echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2479
2480         CFLAGS=""
2481       cat >conftest.$ac_ext <<_ACEOF
2482 /* confdefs.h.  */
2483 _ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h.  */
2487
2488 int
2489 main ()
2490 {
2491
2492   ;
2493   return 0;
2494 }
2495 _ACEOF
2496 rm -f conftest.$ac_objext
2497 if { (ac_try="$ac_compile"
2498 case "(($ac_try" in
2499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500   *) ac_try_echo=$ac_try;;
2501 esac
2502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2503   (eval "$ac_compile") 2>conftest.er1
2504   ac_status=$?
2505   grep -v '^ *+' conftest.er1 >conftest.err
2506   rm -f conftest.er1
2507   cat conftest.err >&5
2508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509   (exit $ac_status); } &&
2510          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2511   { (case "(($ac_try" in
2512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513   *) ac_try_echo=$ac_try;;
2514 esac
2515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2516   (eval "$ac_try") 2>&5
2517   ac_status=$?
2518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519   (exit $ac_status); }; } &&
2520          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2530   :
2531 else
2532   echo "$as_me: failed program was:" >&5
2533 sed 's/^/| /' conftest.$ac_ext >&5
2534
2535         ac_c_werror_flag=$ac_save_c_werror_flag
2536          CFLAGS="-g"
2537          cat >conftest.$ac_ext <<_ACEOF
2538 /* confdefs.h.  */
2539 _ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h.  */
2543
2544 int
2545 main ()
2546 {
2547
2548   ;
2549   return 0;
2550 }
2551 _ACEOF
2552 rm -f conftest.$ac_objext
2553 if { (ac_try="$ac_compile"
2554 case "(($ac_try" in
2555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556   *) ac_try_echo=$ac_try;;
2557 esac
2558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559   (eval "$ac_compile") 2>conftest.er1
2560   ac_status=$?
2561   grep -v '^ *+' conftest.er1 >conftest.err
2562   rm -f conftest.er1
2563   cat conftest.err >&5
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); } &&
2566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2567   { (case "(($ac_try" in
2568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569   *) ac_try_echo=$ac_try;;
2570 esac
2571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572   (eval "$ac_try") 2>&5
2573   ac_status=$?
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); }; } &&
2576          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2586   ac_cv_prog_cc_g=yes
2587 else
2588   echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2590
2591
2592 fi
2593
2594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2595 fi
2596
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598 fi
2599
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601    ac_c_werror_flag=$ac_save_c_werror_flag
2602 fi
2603 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2604 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2605 if test "$ac_test_CFLAGS" = set; then
2606   CFLAGS=$ac_save_CFLAGS
2607 elif test $ac_cv_prog_cc_g = yes; then
2608   if test "$GCC" = yes; then
2609     CFLAGS="-g -O2"
2610   else
2611     CFLAGS="-g"
2612   fi
2613 else
2614   if test "$GCC" = yes; then
2615     CFLAGS="-O2"
2616   else
2617     CFLAGS=
2618   fi
2619 fi
2620 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2621 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2622 if test "${ac_cv_prog_cc_c89+set}" = set; then
2623   echo $ECHO_N "(cached) $ECHO_C" >&6
2624 else
2625   ac_cv_prog_cc_c89=no
2626 ac_save_CC=$CC
2627 cat >conftest.$ac_ext <<_ACEOF
2628 /* confdefs.h.  */
2629 _ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h.  */
2633 #include <stdarg.h>
2634 #include <stdio.h>
2635 #include <sys/types.h>
2636 #include <sys/stat.h>
2637 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2638 struct buf { int x; };
2639 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2640 static char *e (p, i)
2641      char **p;
2642      int i;
2643 {
2644   return p[i];
2645 }
2646 static char *f (char * (*g) (char **, int), char **p, ...)
2647 {
2648   char *s;
2649   va_list v;
2650   va_start (v,p);
2651   s = g (p, va_arg (v,int));
2652   va_end (v);
2653   return s;
2654 }
2655
2656 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2657    function prototypes and stuff, but not '\xHH' hex character constants.
2658    These don't provoke an error unfortunately, instead are silently treated
2659    as 'x'.  The following induces an error, until -std is added to get
2660    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2661    array size at least.  It's necessary to write '\x00'==0 to get something
2662    that's true only with -std.  */
2663 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2664
2665 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2666    inside strings and character constants.  */
2667 #define FOO(x) 'x'
2668 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2669
2670 int test (int i, double x);
2671 struct s1 {int (*f) (int a);};
2672 struct s2 {int (*f) (double a);};
2673 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2674 int argc;
2675 char **argv;
2676 int
2677 main ()
2678 {
2679 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2680   ;
2681   return 0;
2682 }
2683 _ACEOF
2684 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2685         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2686 do
2687   CC="$ac_save_CC $ac_arg"
2688   rm -f conftest.$ac_objext
2689 if { (ac_try="$ac_compile"
2690 case "(($ac_try" in
2691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692   *) ac_try_echo=$ac_try;;
2693 esac
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695   (eval "$ac_compile") 2>conftest.er1
2696   ac_status=$?
2697   grep -v '^ *+' conftest.er1 >conftest.err
2698   rm -f conftest.er1
2699   cat conftest.err >&5
2700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701   (exit $ac_status); } &&
2702          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2703   { (case "(($ac_try" in
2704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705   *) ac_try_echo=$ac_try;;
2706 esac
2707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708   (eval "$ac_try") 2>&5
2709   ac_status=$?
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); }; } &&
2712          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2722   ac_cv_prog_cc_c89=$ac_arg
2723 else
2724   echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2726
2727
2728 fi
2729
2730 rm -f core conftest.err conftest.$ac_objext
2731   test "x$ac_cv_prog_cc_c89" != "xno" && break
2732 done
2733 rm -f conftest.$ac_ext
2734 CC=$ac_save_CC
2735
2736 fi
2737 # AC_CACHE_VAL
2738 case "x$ac_cv_prog_cc_c89" in
2739   x)
2740     { echo "$as_me:$LINENO: result: none needed" >&5
2741 echo "${ECHO_T}none needed" >&6; } ;;
2742   xno)
2743     { echo "$as_me:$LINENO: result: unsupported" >&5
2744 echo "${ECHO_T}unsupported" >&6; } ;;
2745   *)
2746     CC="$CC $ac_cv_prog_cc_c89"
2747     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2748 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2749 esac
2750
2751
2752 ac_ext=c
2753 ac_cpp='$CPP $CPPFLAGS'
2754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2757
2758 ac_ext=cpp
2759 ac_cpp='$CXXCPP $CPPFLAGS'
2760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2763 if test -z "$CXX"; then
2764   if test -n "$CCC"; then
2765     CXX=$CCC
2766   else
2767     if test -n "$ac_tool_prefix"; then
2768   for ac_prog in clang++ llvm-g++ g++
2769   do
2770     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2774 if test "${ac_cv_prog_CXX+set}" = set; then
2775   echo $ECHO_N "(cached) $ECHO_C" >&6
2776 else
2777   if test -n "$CXX"; then
2778   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2782 do
2783   IFS=$as_save_IFS
2784   test -z "$as_dir" && as_dir=.
2785   for ac_exec_ext in '' $ac_executable_extensions; do
2786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2787     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789     break 2
2790   fi
2791 done
2792 done
2793 IFS=$as_save_IFS
2794
2795 fi
2796 fi
2797 CXX=$ac_cv_prog_CXX
2798 if test -n "$CXX"; then
2799   { echo "$as_me:$LINENO: result: $CXX" >&5
2800 echo "${ECHO_T}$CXX" >&6; }
2801 else
2802   { echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6; }
2804 fi
2805
2806
2807     test -n "$CXX" && break
2808   done
2809 fi
2810 if test -z "$CXX"; then
2811   ac_ct_CXX=$CXX
2812   for ac_prog in clang++ llvm-g++ g++
2813 do
2814   # Extract the first word of "$ac_prog", so it can be a program name with args.
2815 set dummy $ac_prog; ac_word=$2
2816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2818 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2819   echo $ECHO_N "(cached) $ECHO_C" >&6
2820 else
2821   if test -n "$ac_ct_CXX"; then
2822   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827   IFS=$as_save_IFS
2828   test -z "$as_dir" && as_dir=.
2829   for ac_exec_ext in '' $ac_executable_extensions; do
2830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2831     ac_cv_prog_ac_ct_CXX="$ac_prog"
2832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2833     break 2
2834   fi
2835 done
2836 done
2837 IFS=$as_save_IFS
2838
2839 fi
2840 fi
2841 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2842 if test -n "$ac_ct_CXX"; then
2843   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2844 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2845 else
2846   { echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6; }
2848 fi
2849
2850
2851   test -n "$ac_ct_CXX" && break
2852 done
2853
2854   if test "x$ac_ct_CXX" = x; then
2855     CXX="g++"
2856   else
2857     case $cross_compiling:$ac_tool_warned in
2858 yes:)
2859 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2860 whose name does not start with the host triplet.  If you think this
2861 configuration is useful to you, please write to autoconf@gnu.org." >&5
2862 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2863 whose name does not start with the host triplet.  If you think this
2864 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2865 ac_tool_warned=yes ;;
2866 esac
2867     CXX=$ac_ct_CXX
2868   fi
2869 fi
2870
2871   fi
2872 fi
2873 # Provide some information about the compiler.
2874 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2875 ac_compiler=`set X $ac_compile; echo $2`
2876 { (ac_try="$ac_compiler --version >&5"
2877 case "(($ac_try" in
2878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879   *) ac_try_echo=$ac_try;;
2880 esac
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882   (eval "$ac_compiler --version >&5") 2>&5
2883   ac_status=$?
2884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); }
2886 { (ac_try="$ac_compiler -v >&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 -v >&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
2907 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2908 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2909 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2910   echo $ECHO_N "(cached) $ECHO_C" >&6
2911 else
2912   cat >conftest.$ac_ext <<_ACEOF
2913 /* confdefs.h.  */
2914 _ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h.  */
2918
2919 int
2920 main ()
2921 {
2922 #ifndef __GNUC__
2923        choke me
2924 #endif
2925
2926   ;
2927   return 0;
2928 }
2929 _ACEOF
2930 rm -f conftest.$ac_objext
2931 if { (ac_try="$ac_compile"
2932 case "(($ac_try" in
2933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934   *) ac_try_echo=$ac_try;;
2935 esac
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937   (eval "$ac_compile") 2>conftest.er1
2938   ac_status=$?
2939   grep -v '^ *+' conftest.er1 >conftest.err
2940   rm -f conftest.er1
2941   cat conftest.err >&5
2942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943   (exit $ac_status); } &&
2944          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2945   { (case "(($ac_try" in
2946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947   *) ac_try_echo=$ac_try;;
2948 esac
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950   (eval "$ac_try") 2>&5
2951   ac_status=$?
2952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953   (exit $ac_status); }; } &&
2954          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2964   ac_compiler_gnu=yes
2965 else
2966   echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2968
2969         ac_compiler_gnu=no
2970 fi
2971
2972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2974
2975 fi
2976 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2977 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2978 GXX=`test $ac_compiler_gnu = yes && echo yes`
2979 ac_test_CXXFLAGS=${CXXFLAGS+set}
2980 ac_save_CXXFLAGS=$CXXFLAGS
2981 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2982 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_cxx_g+set}" = set; then
2984   echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2987    ac_cxx_werror_flag=yes
2988    ac_cv_prog_cxx_g=no
2989    CXXFLAGS="-g"
2990    cat >conftest.$ac_ext <<_ACEOF
2991 /* confdefs.h.  */
2992 _ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h.  */
2996
2997 int
2998 main ()
2999 {
3000
3001   ;
3002   return 0;
3003 }
3004 _ACEOF
3005 rm -f conftest.$ac_objext
3006 if { (ac_try="$ac_compile"
3007 case "(($ac_try" in
3008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009   *) ac_try_echo=$ac_try;;
3010 esac
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012   (eval "$ac_compile") 2>conftest.er1
3013   ac_status=$?
3014   grep -v '^ *+' conftest.er1 >conftest.err
3015   rm -f conftest.er1
3016   cat conftest.err >&5
3017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018   (exit $ac_status); } &&
3019          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3020   { (case "(($ac_try" in
3021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022   *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025   (eval "$ac_try") 2>&5
3026   ac_status=$?
3027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028   (exit $ac_status); }; } &&
3029          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3039   ac_cv_prog_cxx_g=yes
3040 else
3041   echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3043
3044         CXXFLAGS=""
3045       cat >conftest.$ac_ext <<_ACEOF
3046 /* confdefs.h.  */
3047 _ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h.  */
3051
3052 int
3053 main ()
3054 {
3055
3056   ;
3057   return 0;
3058 }
3059 _ACEOF
3060 rm -f conftest.$ac_objext
3061 if { (ac_try="$ac_compile"
3062 case "(($ac_try" in
3063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064   *) ac_try_echo=$ac_try;;
3065 esac
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067   (eval "$ac_compile") 2>conftest.er1
3068   ac_status=$?
3069   grep -v '^ *+' conftest.er1 >conftest.err
3070   rm -f conftest.er1
3071   cat conftest.err >&5
3072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073   (exit $ac_status); } &&
3074          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3075   { (case "(($ac_try" in
3076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077   *) ac_try_echo=$ac_try;;
3078 esac
3079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080   (eval "$ac_try") 2>&5
3081   ac_status=$?
3082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083   (exit $ac_status); }; } &&
3084          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3094   :
3095 else
3096   echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3098
3099         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3100          CXXFLAGS="-g"
3101          cat >conftest.$ac_ext <<_ACEOF
3102 /* confdefs.h.  */
3103 _ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h.  */
3107
3108 int
3109 main ()
3110 {
3111
3112   ;
3113   return 0;
3114 }
3115 _ACEOF
3116 rm -f conftest.$ac_objext
3117 if { (ac_try="$ac_compile"
3118 case "(($ac_try" in
3119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120   *) ac_try_echo=$ac_try;;
3121 esac
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123   (eval "$ac_compile") 2>conftest.er1
3124   ac_status=$?
3125   grep -v '^ *+' conftest.er1 >conftest.err
3126   rm -f conftest.er1
3127   cat conftest.err >&5
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); } &&
3130          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3131   { (case "(($ac_try" in
3132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133   *) ac_try_echo=$ac_try;;
3134 esac
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136   (eval "$ac_try") 2>&5
3137   ac_status=$?
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); }; } &&
3140          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3150   ac_cv_prog_cxx_g=yes
3151 else
3152   echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3154
3155
3156 fi
3157
3158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159 fi
3160
3161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162 fi
3163
3164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3166 fi
3167 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3168 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3169 if test "$ac_test_CXXFLAGS" = set; then
3170   CXXFLAGS=$ac_save_CXXFLAGS
3171 elif test $ac_cv_prog_cxx_g = yes; then
3172   if test "$GXX" = yes; then
3173     CXXFLAGS="-g -O2"
3174   else
3175     CXXFLAGS="-g"
3176   fi
3177 else
3178   if test "$GXX" = yes; then
3179     CXXFLAGS="-O2"
3180   else
3181     CXXFLAGS=
3182   fi
3183 fi
3184 ac_ext=c
3185 ac_cpp='$CPP $CPPFLAGS'
3186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3189
3190 ac_ext=c
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3196 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3197 # On Suns, sometimes $CPP names a directory.
3198 if test -n "$CPP" && test -d "$CPP"; then
3199   CPP=
3200 fi
3201 if test -z "$CPP"; then
3202   if test "${ac_cv_prog_CPP+set}" = set; then
3203   echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205       # Double quotes because CPP needs to be expanded
3206     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3207     do
3208       ac_preproc_ok=false
3209 for ac_c_preproc_warn_flag in '' yes
3210 do
3211   # Use a header file that comes with gcc, so configuring glibc
3212   # with a fresh cross-compiler works.
3213   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3214   # <limits.h> exists even on freestanding compilers.
3215   # On the NeXT, cc -E runs the code through the compiler's parser,
3216   # not just through cpp. "Syntax error" is here to catch this case.
3217   cat >conftest.$ac_ext <<_ACEOF
3218 /* confdefs.h.  */
3219 _ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h.  */
3223 #ifdef __STDC__
3224 # include <limits.h>
3225 #else
3226 # include <assert.h>
3227 #endif
3228                      Syntax error
3229 _ACEOF
3230 if { (ac_try="$ac_cpp conftest.$ac_ext"
3231 case "(($ac_try" in
3232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233   *) ac_try_echo=$ac_try;;
3234 esac
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3237   ac_status=$?
3238   grep -v '^ *+' conftest.er1 >conftest.err
3239   rm -f conftest.er1
3240   cat conftest.err >&5
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); } >/dev/null; then
3243   if test -s conftest.err; then
3244     ac_cpp_err=$ac_c_preproc_warn_flag
3245     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3246   else
3247     ac_cpp_err=
3248   fi
3249 else
3250   ac_cpp_err=yes
3251 fi
3252 if test -z "$ac_cpp_err"; then
3253   :
3254 else
3255   echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3257
3258   # Broken: fails on valid input.
3259 continue
3260 fi
3261
3262 rm -f conftest.err conftest.$ac_ext
3263
3264   # OK, works on sane cases.  Now check whether nonexistent headers
3265   # can be detected and how.
3266   cat >conftest.$ac_ext <<_ACEOF
3267 /* confdefs.h.  */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h.  */
3272 #include <ac_nonexistent.h>
3273 _ACEOF
3274 if { (ac_try="$ac_cpp conftest.$ac_ext"
3275 case "(($ac_try" in
3276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277   *) ac_try_echo=$ac_try;;
3278 esac
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3281   ac_status=$?
3282   grep -v '^ *+' conftest.er1 >conftest.err
3283   rm -f conftest.er1
3284   cat conftest.err >&5
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); } >/dev/null; then
3287   if test -s conftest.err; then
3288     ac_cpp_err=$ac_c_preproc_warn_flag
3289     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3290   else
3291     ac_cpp_err=
3292   fi
3293 else
3294   ac_cpp_err=yes
3295 fi
3296 if test -z "$ac_cpp_err"; then
3297   # Broken: success on invalid input.
3298 continue
3299 else
3300   echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3302
3303   # Passes both tests.
3304 ac_preproc_ok=:
3305 break
3306 fi
3307
3308 rm -f conftest.err conftest.$ac_ext
3309
3310 done
3311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3312 rm -f conftest.err conftest.$ac_ext
3313 if $ac_preproc_ok; then
3314   break
3315 fi
3316
3317     done
3318     ac_cv_prog_CPP=$CPP
3319
3320 fi
3321   CPP=$ac_cv_prog_CPP
3322 else
3323   ac_cv_prog_CPP=$CPP
3324 fi
3325 { echo "$as_me:$LINENO: result: $CPP" >&5
3326 echo "${ECHO_T}$CPP" >&6; }
3327 ac_preproc_ok=false
3328 for ac_c_preproc_warn_flag in '' yes
3329 do
3330   # Use a header file that comes with gcc, so configuring glibc
3331   # with a fresh cross-compiler works.
3332   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3333   # <limits.h> exists even on freestanding compilers.
3334   # On the NeXT, cc -E runs the code through the compiler's parser,
3335   # not just through cpp. "Syntax error" is here to catch this case.
3336   cat >conftest.$ac_ext <<_ACEOF
3337 /* confdefs.h.  */
3338 _ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h.  */
3342 #ifdef __STDC__
3343 # include <limits.h>
3344 #else
3345 # include <assert.h>
3346 #endif
3347                      Syntax error
3348 _ACEOF
3349 if { (ac_try="$ac_cpp conftest.$ac_ext"
3350 case "(($ac_try" in
3351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352   *) ac_try_echo=$ac_try;;
3353 esac
3354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3356   ac_status=$?
3357   grep -v '^ *+' conftest.er1 >conftest.err
3358   rm -f conftest.er1
3359   cat conftest.err >&5
3360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361   (exit $ac_status); } >/dev/null; then
3362   if test -s conftest.err; then
3363     ac_cpp_err=$ac_c_preproc_warn_flag
3364     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3365   else
3366     ac_cpp_err=
3367   fi
3368 else
3369   ac_cpp_err=yes
3370 fi
3371 if test -z "$ac_cpp_err"; then
3372   :
3373 else
3374   echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3376
3377   # Broken: fails on valid input.
3378 continue
3379 fi
3380
3381 rm -f conftest.err conftest.$ac_ext
3382
3383   # OK, works on sane cases.  Now check whether nonexistent headers
3384   # can be detected and how.
3385   cat >conftest.$ac_ext <<_ACEOF
3386 /* confdefs.h.  */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h.  */
3391 #include <ac_nonexistent.h>
3392 _ACEOF
3393 if { (ac_try="$ac_cpp conftest.$ac_ext"
3394 case "(($ac_try" in
3395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396   *) ac_try_echo=$ac_try;;
3397 esac
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3400   ac_status=$?
3401   grep -v '^ *+' conftest.er1 >conftest.err
3402   rm -f conftest.er1
3403   cat conftest.err >&5
3404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405   (exit $ac_status); } >/dev/null; then
3406   if test -s conftest.err; then
3407     ac_cpp_err=$ac_c_preproc_warn_flag
3408     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3409   else
3410     ac_cpp_err=
3411   fi
3412 else
3413   ac_cpp_err=yes
3414 fi
3415 if test -z "$ac_cpp_err"; then
3416   # Broken: success on invalid input.
3417 continue
3418 else
3419   echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3421
3422   # Passes both tests.
3423 ac_preproc_ok=:
3424 break
3425 fi
3426
3427 rm -f conftest.err conftest.$ac_ext
3428
3429 done
3430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3431 rm -f conftest.err conftest.$ac_ext
3432 if $ac_preproc_ok; then
3433   :
3434 else
3435   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3436 See \`config.log' for more details." >&5
3437 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3438 See \`config.log' for more details." >&2;}
3439    { (exit 1); exit 1; }; }
3440 fi
3441
3442 ac_ext=c
3443 ac_cpp='$CPP $CPPFLAGS'
3444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447
3448
3449
3450
3451 if test -d ${srcdir}/projects/llvm-gcc ; then
3452   subdirs="$subdirs projects/llvm-gcc"
3453
3454 fi
3455
3456 if test -d ${srcdir}/projects/test-suite ; then
3457   subdirs="$subdirs projects/test-suite"
3458
3459 fi
3460
3461 if test -d ${srcdir}/projects/llvm-test ; then
3462   subdirs="$subdirs projects/llvm-test"
3463
3464 fi
3465
3466 if test -d ${srcdir}/projects/poolalloc ; then
3467   subdirs="$subdirs projects/poolalloc"
3468
3469 fi
3470
3471 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3472   subdirs="$subdirs projects/llvm-poolalloc"
3473
3474 fi
3475
3476 for i in `ls ${srcdir}/projects`
3477 do
3478   if test -d ${srcdir}/projects/${i} ; then
3479     case ${i} in
3480       sample)       subdirs="$subdirs projects/sample"
3481     ;;
3482       privbracket)  subdirs="$subdirs projects/privbracket"
3483  ;;
3484       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3485  ;;
3486       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3487 ;;
3488       llvm-java)    subdirs="$subdirs projects/llvm-java"
3489  ;;
3490       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3491    ;;
3492       safecode)     subdirs="$subdirs projects/safecode"
3493  ;;
3494       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3495  ;;
3496       compiler-rt)       ;;
3497       llvm-gcc)       ;;
3498       test-suite)     ;;
3499       llvm-test)      ;;
3500       poolalloc)      ;;
3501       llvm-poolalloc) ;;
3502       *)
3503         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3504 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3505         ;;
3506     esac
3507   fi
3508 done
3509
3510 # Check whether --enable-polly was given.
3511 if test "${enable_polly+set}" = set; then
3512   enableval=$enable_polly;
3513 else
3514   enableval=default
3515 fi
3516
3517 case "$enableval" in
3518   yes) ENABLE_POLLY=1
3519  ;;
3520   no)  ENABLE_POLLY=0
3521  ;;
3522   default) ENABLE_POLLY=1
3523  ;;
3524   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3525 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3526    { (exit 1); exit 1; }; } ;;
3527 esac
3528
3529
3530 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3531   LLVM_HAS_POLLY=1
3532
3533   subdirs="$subdirs tools/polly"
3534
3535 fi
3536
3537
3538 # Make sure we can run config.sub.
3539 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3540   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3541 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3542    { (exit 1); exit 1; }; }
3543
3544 { echo "$as_me:$LINENO: checking build system type" >&5
3545 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3546 if test "${ac_cv_build+set}" = set; then
3547   echo $ECHO_N "(cached) $ECHO_C" >&6
3548 else
3549   ac_build_alias=$build_alias
3550 test "x$ac_build_alias" = x &&
3551   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3552 test "x$ac_build_alias" = x &&
3553   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3554 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3555    { (exit 1); exit 1; }; }
3556 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3557   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3558 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3559    { (exit 1); exit 1; }; }
3560
3561 fi
3562 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3563 echo "${ECHO_T}$ac_cv_build" >&6; }
3564 case $ac_cv_build in
3565 *-*-*) ;;
3566 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3567 echo "$as_me: error: invalid value of canonical build" >&2;}
3568    { (exit 1); exit 1; }; };;
3569 esac
3570 build=$ac_cv_build
3571 ac_save_IFS=$IFS; IFS='-'
3572 set x $ac_cv_build
3573 shift
3574 build_cpu=$1
3575 build_vendor=$2
3576 shift; shift
3577 # Remember, the first character of IFS is used to create $*,
3578 # except with old shells:
3579 build_os=$*
3580 IFS=$ac_save_IFS
3581 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3582
3583
3584 { echo "$as_me:$LINENO: checking host system type" >&5
3585 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3586 if test "${ac_cv_host+set}" = set; then
3587   echo $ECHO_N "(cached) $ECHO_C" >&6
3588 else
3589   if test "x$host_alias" = x; then
3590   ac_cv_host=$ac_cv_build
3591 else
3592   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3593     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3594 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3595    { (exit 1); exit 1; }; }
3596 fi
3597
3598 fi
3599 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3600 echo "${ECHO_T}$ac_cv_host" >&6; }
3601 case $ac_cv_host in
3602 *-*-*) ;;
3603 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3604 echo "$as_me: error: invalid value of canonical host" >&2;}
3605    { (exit 1); exit 1; }; };;
3606 esac
3607 host=$ac_cv_host
3608 ac_save_IFS=$IFS; IFS='-'
3609 set x $ac_cv_host
3610 shift
3611 host_cpu=$1
3612 host_vendor=$2
3613 shift; shift
3614 # Remember, the first character of IFS is used to create $*,
3615 # except with old shells:
3616 host_os=$*
3617 IFS=$ac_save_IFS
3618 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3619
3620
3621 { echo "$as_me:$LINENO: checking target system type" >&5
3622 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3623 if test "${ac_cv_target+set}" = set; then
3624   echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626   if test "x$target_alias" = x; then
3627   ac_cv_target=$ac_cv_host
3628 else
3629   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3630     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3631 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3632    { (exit 1); exit 1; }; }
3633 fi
3634
3635 fi
3636 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3637 echo "${ECHO_T}$ac_cv_target" >&6; }
3638 case $ac_cv_target in
3639 *-*-*) ;;
3640 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3641 echo "$as_me: error: invalid value of canonical target" >&2;}
3642    { (exit 1); exit 1; }; };;
3643 esac
3644 target=$ac_cv_target
3645 ac_save_IFS=$IFS; IFS='-'
3646 set x $ac_cv_target
3647 shift
3648 target_cpu=$1
3649 target_vendor=$2
3650 shift; shift
3651 # Remember, the first character of IFS is used to create $*,
3652 # except with old shells:
3653 target_os=$*
3654 IFS=$ac_save_IFS
3655 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3656
3657
3658 # The aliases save the names the user supplied, while $host etc.
3659 # will get canonicalized.
3660 test -n "$target_alias" &&
3661   test "$program_prefix$program_suffix$program_transform_name" = \
3662     NONENONEs,x,x, &&
3663   program_prefix=${target_alias}-
3664
3665 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3666 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3667 if test "${llvm_cv_os_type+set}" = set; then
3668   echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670   case $host in
3671   *-*-aix*)
3672     llvm_cv_link_all_option="-Wl,--whole-archive"
3673     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3674     llvm_cv_os_type="AIX"
3675     llvm_cv_platform_type="Unix" ;;
3676   *-*-irix*)
3677     llvm_cv_link_all_option="-Wl,--whole-archive"
3678     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679     llvm_cv_os_type="IRIX"
3680     llvm_cv_platform_type="Unix" ;;
3681   *-*-cygwin*)
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="Cygwin"
3685     llvm_cv_platform_type="Unix" ;;
3686   *-*-darwin*)
3687     llvm_cv_link_all_option="-Wl,-all_load"
3688     llvm_cv_no_link_all_option="-Wl,-noall_load"
3689     llvm_cv_os_type="Darwin"
3690     llvm_cv_platform_type="Unix" ;;
3691   *-*-minix*)
3692     llvm_cv_link_all_option="-Wl,-all_load"
3693     llvm_cv_no_link_all_option="-Wl,-noall_load"
3694     llvm_cv_os_type="Minix"
3695     llvm_cv_platform_type="Unix" ;;
3696   *-*-freebsd* | *-*-kfreebsd-gnu)
3697     llvm_cv_link_all_option="-Wl,--whole-archive"
3698     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699     llvm_cv_os_type="FreeBSD"
3700     llvm_cv_platform_type="Unix" ;;
3701   *-*-openbsd*)
3702     llvm_cv_link_all_option="-Wl,--whole-archive"
3703     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704     llvm_cv_os_type="OpenBSD"
3705     llvm_cv_platform_type="Unix" ;;
3706   *-*-netbsd*)
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="NetBSD"
3710     llvm_cv_platform_type="Unix" ;;
3711   *-*-dragonfly*)
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="DragonFly"
3715     llvm_cv_platform_type="Unix" ;;
3716   *-*-hpux*)
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="HP-UX"
3720     llvm_cv_platform_type="Unix" ;;
3721   *-*-interix*)
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="Interix"
3725     llvm_cv_platform_type="Unix" ;;
3726   *-*-linux*)
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="Linux"
3730     llvm_cv_platform_type="Unix" ;;
3731   *-*-gnu*)
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="GNU"
3735     llvm_cv_platform_type="Unix" ;;
3736   *-*-solaris*)
3737     llvm_cv_link_all_option="-Wl,-z,allextract"
3738     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3739     llvm_cv_os_type="SunOS"
3740     llvm_cv_platform_type="Unix" ;;
3741   *-*-auroraux*)
3742     llvm_cv_link_all_option="-Wl,-z,allextract"
3743     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3744     llvm_cv_os_type="AuroraUX"
3745     llvm_cv_platform_type="Unix" ;;
3746   *-*-win32*)
3747     llvm_cv_link_all_option="-Wl,--whole-archive"
3748     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3749     llvm_cv_os_type="Win32"
3750     llvm_cv_platform_type="Win32" ;;
3751   *-*-mingw*)
3752     llvm_cv_link_all_option="-Wl,--whole-archive"
3753     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754     llvm_cv_os_type="MingW"
3755     llvm_cv_platform_type="Win32" ;;
3756   *-*-haiku*)
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="Haiku"
3760     llvm_cv_platform_type="Unix" ;;
3761   *-unknown-eabi*)
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="Freestanding"
3765     llvm_cv_platform_type="Unix" ;;
3766   *-unknown-elf*)
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="Freestanding"
3770     llvm_cv_platform_type="Unix" ;;
3771   *)
3772     llvm_cv_link_all_option=""
3773     llvm_cv_no_link_all_option=""
3774     llvm_cv_os_type="Unknown"
3775     llvm_cv_platform_type="Unknown" ;;
3776 esac
3777 fi
3778 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3779 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3780
3781 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3782 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3783 if test "${llvm_cv_target_os_type+set}" = set; then
3784   echo $ECHO_N "(cached) $ECHO_C" >&6
3785 else
3786   case $target in
3787   *-*-aix*)
3788     llvm_cv_target_os_type="AIX" ;;
3789   *-*-irix*)
3790     llvm_cv_target_os_type="IRIX" ;;
3791   *-*-cygwin*)
3792     llvm_cv_target_os_type="Cygwin" ;;
3793   *-*-darwin*)
3794     llvm_cv_target_os_type="Darwin" ;;
3795   *-*-minix*)
3796     llvm_cv_target_os_type="Minix" ;;
3797   *-*-freebsd*)
3798     llvm_cv_target_os_type="FreeBSD" ;;
3799   *-*-openbsd*)
3800     llvm_cv_target_os_type="OpenBSD" ;;
3801   *-*-netbsd*)
3802     llvm_cv_target_os_type="NetBSD" ;;
3803   *-*-dragonfly*)
3804     llvm_cv_target_os_type="DragonFly" ;;
3805   *-*-hpux*)
3806     llvm_cv_target_os_type="HP-UX" ;;
3807   *-*-interix*)
3808     llvm_cv_target_os_type="Interix" ;;
3809   *-*-linux*)
3810     llvm_cv_target_os_type="Linux" ;;
3811   *-*-solaris*)
3812     llvm_cv_target_os_type="SunOS" ;;
3813   *-*-auroraux*)
3814     llvm_cv_target_os_type="AuroraUX" ;;
3815   *-*-win32*)
3816     llvm_cv_target_os_type="Win32" ;;
3817   *-*-mingw*)
3818     llvm_cv_target_os_type="MingW" ;;
3819   *-*-haiku*)
3820     llvm_cv_target_os_type="Haiku" ;;
3821   *-*-rtems*)
3822     llvm_cv_target_os_type="RTEMS" ;;
3823   *-*-nacl*)
3824     llvm_cv_target_os_type="NativeClient" ;;
3825   *-unknown-eabi*)
3826     llvm_cv_target_os_type="Freestanding" ;;
3827   *)
3828     llvm_cv_target_os_type="Unknown" ;;
3829 esac
3830 fi
3831 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3832 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3833
3834 if test "$llvm_cv_os_type" = "Unknown" ; then
3835   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3836 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3837    { (exit 1); exit 1; }; }
3838 fi
3839
3840 OS=$llvm_cv_os_type
3841
3842 HOST_OS=$llvm_cv_os_type
3843
3844 TARGET_OS=$llvm_cv_target_os_type
3845
3846
3847 LINKALL=$llvm_cv_link_all_option
3848
3849 NOLINKALL=$llvm_cv_no_link_all_option
3850
3851
3852 case $llvm_cv_platform_type in
3853   Unix)
3854
3855 cat >>confdefs.h <<\_ACEOF
3856 #define LLVM_ON_UNIX 1
3857 _ACEOF
3858
3859     LLVM_ON_UNIX=1
3860
3861     LLVM_ON_WIN32=0
3862
3863     ;;
3864   Win32)
3865
3866 cat >>confdefs.h <<\_ACEOF
3867 #define LLVM_ON_WIN32 1
3868 _ACEOF
3869
3870     LLVM_ON_UNIX=0
3871
3872     LLVM_ON_WIN32=1
3873
3874     ;;
3875 esac
3876
3877 { echo "$as_me:$LINENO: checking target architecture" >&5
3878 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3879 if test "${llvm_cv_target_arch+set}" = set; then
3880   echo $ECHO_N "(cached) $ECHO_C" >&6
3881 else
3882   case $target in
3883   i?86-*)                 llvm_cv_target_arch="x86" ;;
3884   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3885   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3886   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3887   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3888   mips-*)                 llvm_cv_target_arch="Mips" ;;
3889   mipsel-*)               llvm_cv_target_arch="Mips" ;;
3890   xcore-*)                llvm_cv_target_arch="XCore" ;;
3891   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3892   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3893   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3894   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3895   *)                      llvm_cv_target_arch="Unknown" ;;
3896 esac
3897 fi
3898 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3899 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3900
3901 if test "$llvm_cv_target_arch" = "Unknown" ; then
3902   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3903 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3904 fi
3905
3906 # Determine the LLVM native architecture for the target
3907 case "$llvm_cv_target_arch" in
3908     x86)     LLVM_NATIVE_ARCH="X86" ;;
3909     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3910     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3911 esac
3912
3913 ARCH=$llvm_cv_target_arch
3914
3915
3916
3917
3918 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3919 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3920 if test "${ac_cv_path_GREP+set}" = set; then
3921   echo $ECHO_N "(cached) $ECHO_C" >&6
3922 else
3923   # Extract the first word of "grep ggrep" to use in msg output
3924 if test -z "$GREP"; then
3925 set dummy grep ggrep; ac_prog_name=$2
3926 if test "${ac_cv_path_GREP+set}" = set; then
3927   echo $ECHO_N "(cached) $ECHO_C" >&6
3928 else
3929   ac_path_GREP_found=false
3930 # Loop through the user's path and test for each of PROGNAME-LIST
3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3933 do
3934   IFS=$as_save_IFS
3935   test -z "$as_dir" && as_dir=.
3936   for ac_prog in grep ggrep; do
3937   for ac_exec_ext in '' $ac_executable_extensions; do
3938     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3939     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3940     # Check for GNU ac_path_GREP and select it if it is found.
3941   # Check for GNU $ac_path_GREP
3942 case `"$ac_path_GREP" --version 2>&1` in
3943 *GNU*)
3944   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3945 *)
3946   ac_count=0
3947   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3948   while :
3949   do
3950     cat "conftest.in" "conftest.in" >"conftest.tmp"
3951     mv "conftest.tmp" "conftest.in"
3952     cp "conftest.in" "conftest.nl"
3953     echo 'GREP' >> "conftest.nl"
3954     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3955     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3956     ac_count=`expr $ac_count + 1`
3957     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3958       # Best one so far, save it but keep looking for a better one
3959       ac_cv_path_GREP="$ac_path_GREP"
3960       ac_path_GREP_max=$ac_count
3961     fi
3962     # 10*(2^10) chars as input seems more than enough
3963     test $ac_count -gt 10 && break
3964   done
3965   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3966 esac
3967
3968
3969     $ac_path_GREP_found && break 3
3970   done
3971 done
3972
3973 done
3974 IFS=$as_save_IFS
3975
3976
3977 fi
3978
3979 GREP="$ac_cv_path_GREP"
3980 if test -z "$GREP"; then
3981   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3982 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3983    { (exit 1); exit 1; }; }
3984 fi
3985
3986 else
3987   ac_cv_path_GREP=$GREP
3988 fi
3989
3990
3991 fi
3992 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3993 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3994  GREP="$ac_cv_path_GREP"
3995
3996
3997 { echo "$as_me:$LINENO: checking for egrep" >&5
3998 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3999 if test "${ac_cv_path_EGREP+set}" = set; then
4000   echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4003    then ac_cv_path_EGREP="$GREP -E"
4004    else
4005      # Extract the first word of "egrep" to use in msg output
4006 if test -z "$EGREP"; then
4007 set dummy egrep; ac_prog_name=$2
4008 if test "${ac_cv_path_EGREP+set}" = set; then
4009   echo $ECHO_N "(cached) $ECHO_C" >&6
4010 else
4011   ac_path_EGREP_found=false
4012 # Loop through the user's path and test for each of PROGNAME-LIST
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4015 do
4016   IFS=$as_save_IFS
4017   test -z "$as_dir" && as_dir=.
4018   for ac_prog in egrep; do
4019   for ac_exec_ext in '' $ac_executable_extensions; do
4020     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4021     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4022     # Check for GNU ac_path_EGREP and select it if it is found.
4023   # Check for GNU $ac_path_EGREP
4024 case `"$ac_path_EGREP" --version 2>&1` in
4025 *GNU*)
4026   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4027 *)
4028   ac_count=0
4029   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4030   while :
4031   do
4032     cat "conftest.in" "conftest.in" >"conftest.tmp"
4033     mv "conftest.tmp" "conftest.in"
4034     cp "conftest.in" "conftest.nl"
4035     echo 'EGREP' >> "conftest.nl"
4036     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4037     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4038     ac_count=`expr $ac_count + 1`
4039     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4040       # Best one so far, save it but keep looking for a better one
4041       ac_cv_path_EGREP="$ac_path_EGREP"
4042       ac_path_EGREP_max=$ac_count
4043     fi
4044     # 10*(2^10) chars as input seems more than enough
4045     test $ac_count -gt 10 && break
4046   done
4047   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4048 esac
4049
4050
4051     $ac_path_EGREP_found && break 3
4052   done
4053 done
4054
4055 done
4056 IFS=$as_save_IFS
4057
4058
4059 fi
4060
4061 EGREP="$ac_cv_path_EGREP"
4062 if test -z "$EGREP"; then
4063   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4064 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4065    { (exit 1); exit 1; }; }
4066 fi
4067
4068 else
4069   ac_cv_path_EGREP=$EGREP
4070 fi
4071
4072
4073    fi
4074 fi
4075 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4076 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4077  EGREP="$ac_cv_path_EGREP"
4078
4079
4080 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4081 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4082 if test "${ac_cv_header_stdc+set}" = set; then
4083   echo $ECHO_N "(cached) $ECHO_C" >&6
4084 else
4085   cat >conftest.$ac_ext <<_ACEOF
4086 /* confdefs.h.  */
4087 _ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h.  */
4091 #include <stdlib.h>
4092 #include <stdarg.h>
4093 #include <string.h>
4094 #include <float.h>
4095
4096 int
4097 main ()
4098 {
4099
4100   ;
4101   return 0;
4102 }
4103 _ACEOF
4104 rm -f conftest.$ac_objext
4105 if { (ac_try="$ac_compile"
4106 case "(($ac_try" in
4107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108   *) ac_try_echo=$ac_try;;
4109 esac
4110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4111   (eval "$ac_compile") 2>conftest.er1
4112   ac_status=$?
4113   grep -v '^ *+' conftest.er1 >conftest.err
4114   rm -f conftest.er1
4115   cat conftest.err >&5
4116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117   (exit $ac_status); } &&
4118          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4119   { (case "(($ac_try" in
4120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121   *) ac_try_echo=$ac_try;;
4122 esac
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124   (eval "$ac_try") 2>&5
4125   ac_status=$?
4126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127   (exit $ac_status); }; } &&
4128          { ac_try='test -s conftest.$ac_objext'
4129   { (case "(($ac_try" in
4130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131   *) ac_try_echo=$ac_try;;
4132 esac
4133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134   (eval "$ac_try") 2>&5
4135   ac_status=$?
4136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137   (exit $ac_status); }; }; then
4138   ac_cv_header_stdc=yes
4139 else
4140   echo "$as_me: failed program was:" >&5
4141 sed 's/^/| /' conftest.$ac_ext >&5
4142
4143         ac_cv_header_stdc=no
4144 fi
4145
4146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4147
4148 if test $ac_cv_header_stdc = yes; then
4149   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4150   cat >conftest.$ac_ext <<_ACEOF
4151 /* confdefs.h.  */
4152 _ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h.  */
4156 #include <string.h>
4157
4158 _ACEOF
4159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4160   $EGREP "memchr" >/dev/null 2>&1; then
4161   :
4162 else
4163   ac_cv_header_stdc=no
4164 fi
4165 rm -f conftest*
4166
4167 fi
4168
4169 if test $ac_cv_header_stdc = yes; then
4170   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4171   cat >conftest.$ac_ext <<_ACEOF
4172 /* confdefs.h.  */
4173 _ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h.  */
4177 #include <stdlib.h>
4178
4179 _ACEOF
4180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4181   $EGREP "free" >/dev/null 2>&1; then
4182   :
4183 else
4184   ac_cv_header_stdc=no
4185 fi
4186 rm -f conftest*
4187
4188 fi
4189
4190 if test $ac_cv_header_stdc = yes; then
4191   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4192   if test "$cross_compiling" = yes; then
4193   :
4194 else
4195   cat >conftest.$ac_ext <<_ACEOF
4196 /* confdefs.h.  */
4197 _ACEOF
4198 cat confdefs.h >>conftest.$ac_ext
4199 cat >>conftest.$ac_ext <<_ACEOF
4200 /* end confdefs.h.  */
4201 #include <ctype.h>
4202 #include <stdlib.h>
4203 #if ((' ' & 0x0FF) == 0x020)
4204 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4205 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4206 #else
4207 # define ISLOWER(c) \
4208                    (('a' <= (c) && (c) <= 'i') \
4209                      || ('j' <= (c) && (c) <= 'r') \
4210                      || ('s' <= (c) && (c) <= 'z'))
4211 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4212 #endif
4213
4214 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4215 int
4216 main ()
4217 {
4218   int i;
4219   for (i = 0; i < 256; i++)
4220     if (XOR (islower (i), ISLOWER (i))
4221         || toupper (i) != TOUPPER (i))
4222       return 2;
4223   return 0;
4224 }
4225 _ACEOF
4226 rm -f conftest$ac_exeext
4227 if { (ac_try="$ac_link"
4228 case "(($ac_try" in
4229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230   *) ac_try_echo=$ac_try;;
4231 esac
4232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233   (eval "$ac_link") 2>&5
4234   ac_status=$?
4235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4237   { (case "(($ac_try" in
4238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239   *) ac_try_echo=$ac_try;;
4240 esac
4241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242   (eval "$ac_try") 2>&5
4243   ac_status=$?
4244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245   (exit $ac_status); }; }; then
4246   :
4247 else
4248   echo "$as_me: program exited with status $ac_status" >&5
4249 echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4251
4252 ( exit $ac_status )
4253 ac_cv_header_stdc=no
4254 fi
4255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4256 fi
4257
4258
4259 fi
4260 fi
4261 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4262 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4263 if test $ac_cv_header_stdc = yes; then
4264
4265 cat >>confdefs.h <<\_ACEOF
4266 #define STDC_HEADERS 1
4267 _ACEOF
4268
4269 fi
4270
4271 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4282                   inttypes.h stdint.h unistd.h
4283 do
4284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4288   echo $ECHO_N "(cached) $ECHO_C" >&6
4289 else
4290   cat >conftest.$ac_ext <<_ACEOF
4291 /* confdefs.h.  */
4292 _ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h.  */
4296 $ac_includes_default
4297
4298 #include <$ac_header>
4299 _ACEOF
4300 rm -f conftest.$ac_objext
4301 if { (ac_try="$ac_compile"
4302 case "(($ac_try" in
4303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304   *) ac_try_echo=$ac_try;;
4305 esac
4306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307   (eval "$ac_compile") 2>conftest.er1
4308   ac_status=$?
4309   grep -v '^ *+' conftest.er1 >conftest.err
4310   rm -f conftest.er1
4311   cat conftest.err >&5
4312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313   (exit $ac_status); } &&
4314          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4315   { (case "(($ac_try" in
4316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317   *) ac_try_echo=$ac_try;;
4318 esac
4319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320   (eval "$ac_try") 2>&5
4321   ac_status=$?
4322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323   (exit $ac_status); }; } &&
4324          { ac_try='test -s conftest.$ac_objext'
4325   { (case "(($ac_try" in
4326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327   *) ac_try_echo=$ac_try;;
4328 esac
4329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330   (eval "$ac_try") 2>&5
4331   ac_status=$?
4332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333   (exit $ac_status); }; }; then
4334   eval "$as_ac_Header=yes"
4335 else
4336   echo "$as_me: failed program was:" >&5
4337 sed 's/^/| /' conftest.$ac_ext >&5
4338
4339         eval "$as_ac_Header=no"
4340 fi
4341
4342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 fi
4344 ac_res=`eval echo '${'$as_ac_Header'}'`
4345                { echo "$as_me:$LINENO: result: $ac_res" >&5
4346 echo "${ECHO_T}$ac_res" >&6; }
4347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4348   cat >>confdefs.h <<_ACEOF
4349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4350 _ACEOF
4351
4352 fi
4353
4354 done
4355
4356
4357 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4358 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4359 if test "${ac_cv_c_bigendian+set}" = set; then
4360   echo $ECHO_N "(cached) $ECHO_C" >&6
4361 else
4362   # See if sys/param.h defines the BYTE_ORDER macro.
4363 cat >conftest.$ac_ext <<_ACEOF
4364 /* confdefs.h.  */
4365 _ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h.  */
4369 #include <sys/types.h>
4370 #include <sys/param.h>
4371
4372 int
4373 main ()
4374 {
4375 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4376  bogus endian macros
4377 #endif
4378
4379   ;
4380   return 0;
4381 }
4382 _ACEOF
4383 rm -f conftest.$ac_objext
4384 if { (ac_try="$ac_compile"
4385 case "(($ac_try" in
4386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387   *) ac_try_echo=$ac_try;;
4388 esac
4389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4390   (eval "$ac_compile") 2>conftest.er1
4391   ac_status=$?
4392   grep -v '^ *+' conftest.er1 >conftest.err
4393   rm -f conftest.er1
4394   cat conftest.err >&5
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); } &&
4397          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4398   { (case "(($ac_try" in
4399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400   *) ac_try_echo=$ac_try;;
4401 esac
4402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4403   (eval "$ac_try") 2>&5
4404   ac_status=$?
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); }; } &&
4407          { ac_try='test -s conftest.$ac_objext'
4408   { (case "(($ac_try" in
4409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410   *) ac_try_echo=$ac_try;;
4411 esac
4412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4413   (eval "$ac_try") 2>&5
4414   ac_status=$?
4415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416   (exit $ac_status); }; }; then
4417   # It does; now see whether it defined to BIG_ENDIAN or not.
4418 cat >conftest.$ac_ext <<_ACEOF
4419 /* confdefs.h.  */
4420 _ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h.  */
4424 #include <sys/types.h>
4425 #include <sys/param.h>
4426
4427 int
4428 main ()
4429 {
4430 #if BYTE_ORDER != BIG_ENDIAN
4431  not big endian
4432 #endif
4433
4434   ;
4435   return 0;
4436 }
4437 _ACEOF
4438 rm -f conftest.$ac_objext
4439 if { (ac_try="$ac_compile"
4440 case "(($ac_try" in
4441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442   *) ac_try_echo=$ac_try;;
4443 esac
4444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4445   (eval "$ac_compile") 2>conftest.er1
4446   ac_status=$?
4447   grep -v '^ *+' conftest.er1 >conftest.err
4448   rm -f conftest.er1
4449   cat conftest.err >&5
4450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451   (exit $ac_status); } &&
4452          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4453   { (case "(($ac_try" in
4454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455   *) ac_try_echo=$ac_try;;
4456 esac
4457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458   (eval "$ac_try") 2>&5
4459   ac_status=$?
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); }; } &&
4462          { ac_try='test -s conftest.$ac_objext'
4463   { (case "(($ac_try" in
4464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465   *) ac_try_echo=$ac_try;;
4466 esac
4467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4468   (eval "$ac_try") 2>&5
4469   ac_status=$?
4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); }; }; then
4472   ac_cv_c_bigendian=yes
4473 else
4474   echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4476
4477         ac_cv_c_bigendian=no
4478 fi
4479
4480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4481 else
4482   echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4484
4485         # It does not; compile a test program.
4486 if test "$cross_compiling" = yes; then
4487   # try to guess the endianness by grepping values into an object file
4488   ac_cv_c_bigendian=unknown
4489   cat >conftest.$ac_ext <<_ACEOF
4490 /* confdefs.h.  */
4491 _ACEOF
4492 cat confdefs.h >>conftest.$ac_ext
4493 cat >>conftest.$ac_ext <<_ACEOF
4494 /* end confdefs.h.  */
4495 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4496 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4497 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4498 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4499 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4500 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4501 int
4502 main ()
4503 {
4504  _ascii (); _ebcdic ();
4505   ;
4506   return 0;
4507 }
4508 _ACEOF
4509 rm -f conftest.$ac_objext
4510 if { (ac_try="$ac_compile"
4511 case "(($ac_try" in
4512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513   *) ac_try_echo=$ac_try;;
4514 esac
4515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4516   (eval "$ac_compile") 2>conftest.er1
4517   ac_status=$?
4518   grep -v '^ *+' conftest.er1 >conftest.err
4519   rm -f conftest.er1
4520   cat conftest.err >&5
4521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522   (exit $ac_status); } &&
4523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4524   { (case "(($ac_try" in
4525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526   *) ac_try_echo=$ac_try;;
4527 esac
4528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4529   (eval "$ac_try") 2>&5
4530   ac_status=$?
4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); }; } &&
4533          { ac_try='test -s conftest.$ac_objext'
4534   { (case "(($ac_try" in
4535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536   *) ac_try_echo=$ac_try;;
4537 esac
4538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4539   (eval "$ac_try") 2>&5
4540   ac_status=$?
4541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542   (exit $ac_status); }; }; then
4543   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4544   ac_cv_c_bigendian=yes
4545 fi
4546 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4547   if test "$ac_cv_c_bigendian" = unknown; then
4548     ac_cv_c_bigendian=no
4549   else
4550     # finding both strings is unlikely to happen, but who knows?
4551     ac_cv_c_bigendian=unknown
4552   fi
4553 fi
4554 else
4555   echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4557
4558
4559 fi
4560
4561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4562 else
4563   cat >conftest.$ac_ext <<_ACEOF
4564 /* confdefs.h.  */
4565 _ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h.  */
4569 $ac_includes_default
4570 int
4571 main ()
4572 {
4573
4574   /* Are we little or big endian?  From Harbison&Steele.  */
4575   union
4576   {
4577     long int l;
4578     char c[sizeof (long int)];
4579   } u;
4580   u.l = 1;
4581   return u.c[sizeof (long int) - 1] == 1;
4582
4583   ;
4584   return 0;
4585 }
4586 _ACEOF
4587 rm -f conftest$ac_exeext
4588 if { (ac_try="$ac_link"
4589 case "(($ac_try" in
4590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4591   *) ac_try_echo=$ac_try;;
4592 esac
4593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4594   (eval "$ac_link") 2>&5
4595   ac_status=$?
4596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4598   { (case "(($ac_try" in
4599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600   *) ac_try_echo=$ac_try;;
4601 esac
4602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4603   (eval "$ac_try") 2>&5
4604   ac_status=$?
4605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606   (exit $ac_status); }; }; then
4607   ac_cv_c_bigendian=no
4608 else
4609   echo "$as_me: program exited with status $ac_status" >&5
4610 echo "$as_me: failed program was:" >&5
4611 sed 's/^/| /' conftest.$ac_ext >&5
4612
4613 ( exit $ac_status )
4614 ac_cv_c_bigendian=yes
4615 fi
4616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4617 fi
4618
4619
4620 fi
4621
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 fi
4624 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4625 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4626 case $ac_cv_c_bigendian in
4627   yes)
4628     ENDIAN=big
4629  ;;
4630   no)
4631     ENDIAN=little
4632  ;;
4633   *)
4634     { { echo "$as_me:$LINENO: error: unknown endianness
4635 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4636 echo "$as_me: error: unknown endianness
4637 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4638    { (exit 1); exit 1; }; } ;;
4639 esac
4640
4641
4642 if test "$cross_compiling" = yes; then
4643   LLVM_CROSS_COMPILING=1
4644
4645
4646 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4647 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4648 if test "${ac_cv_build_exeext+set}" = set; then
4649   echo $ECHO_N "(cached) $ECHO_C" >&6
4650 else
4651   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4652   ac_cv_build_exeext=.exe
4653 else
4654   ac_build_prefix=${build_alias}-
4655
4656   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4657 set dummy ${ac_build_prefix}gcc; ac_word=$2
4658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4660 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4661   echo $ECHO_N "(cached) $ECHO_C" >&6
4662 else
4663   if test -n "$BUILD_CC"; then
4664   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4668 do
4669   IFS=$as_save_IFS
4670   test -z "$as_dir" && as_dir=.
4671   for ac_exec_ext in '' $ac_executable_extensions; do
4672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4673     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675     break 2
4676   fi
4677 done
4678 done
4679 IFS=$as_save_IFS
4680
4681 fi
4682 fi
4683 BUILD_CC=$ac_cv_prog_BUILD_CC
4684 if test -n "$BUILD_CC"; then
4685   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4686 echo "${ECHO_T}$BUILD_CC" >&6; }
4687 else
4688   { echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6; }
4690 fi
4691
4692
4693   if test -z "$BUILD_CC"; then
4694      # Extract the first word of "gcc", so it can be a program name with args.
4695 set dummy gcc; ac_word=$2
4696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4698 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4699   echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701   if test -n "$BUILD_CC"; then
4702   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4703 else
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH
4706 do
4707   IFS=$as_save_IFS
4708   test -z "$as_dir" && as_dir=.
4709   for ac_exec_ext in '' $ac_executable_extensions; do
4710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4711     ac_cv_prog_BUILD_CC="gcc"
4712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4713     break 2
4714   fi
4715 done
4716 done
4717 IFS=$as_save_IFS
4718
4719 fi
4720 fi
4721 BUILD_CC=$ac_cv_prog_BUILD_CC
4722 if test -n "$BUILD_CC"; then
4723   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4724 echo "${ECHO_T}$BUILD_CC" >&6; }
4725 else
4726   { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4728 fi
4729
4730
4731      if test -z "$BUILD_CC"; then
4732        # Extract the first word of "cc", so it can be a program name with args.
4733 set dummy cc; ac_word=$2
4734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4736 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4737   echo $ECHO_N "(cached) $ECHO_C" >&6
4738 else
4739   if test -n "$BUILD_CC"; then
4740   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4741 else
4742   ac_prog_rejected=no
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 for as_dir in $PATH
4745 do
4746   IFS=$as_save_IFS
4747   test -z "$as_dir" && as_dir=.
4748   for ac_exec_ext in '' $ac_executable_extensions; do
4749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4750     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4751        ac_prog_rejected=yes
4752        continue
4753      fi
4754     ac_cv_prog_BUILD_CC="cc"
4755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4756     break 2
4757   fi
4758 done
4759 done
4760 IFS=$as_save_IFS
4761
4762 if test $ac_prog_rejected = yes; then
4763   # We found a bogon in the path, so make sure we never use it.
4764   set dummy $ac_cv_prog_BUILD_CC
4765   shift
4766   if test $# != 0; then
4767     # We chose a different compiler from the bogus one.
4768     # However, it has the same basename, so the bogon will be chosen
4769     # first if we set BUILD_CC to just the basename; use the full file name.
4770     shift
4771     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4772   fi
4773 fi
4774 fi
4775 fi
4776 BUILD_CC=$ac_cv_prog_BUILD_CC
4777 if test -n "$BUILD_CC"; then
4778   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4779 echo "${ECHO_T}$BUILD_CC" >&6; }
4780 else
4781   { echo "$as_me:$LINENO: result: no" >&5
4782 echo "${ECHO_T}no" >&6; }
4783 fi
4784
4785
4786      fi
4787   fi
4788   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4789 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4790    { (exit 1); exit 1; }; }
4791   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4792   rm -f conftest*
4793   echo 'int main () { return 0; }' > conftest.$ac_ext
4794   ac_cv_build_exeext=
4795   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4796   (eval $ac_build_link) 2>&5
4797   ac_status=$?
4798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799   (exit $ac_status); }; then
4800     for file in conftest.*; do
4801       case $file in
4802       *.c | *.o | *.obj | *.dSYM) ;;
4803       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4804       esac
4805     done
4806   else
4807     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4808 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4809    { (exit 1); exit 1; }; }
4810   fi
4811   rm -f conftest*
4812   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4813 fi
4814 fi
4815
4816 BUILD_EXEEXT=""
4817 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4818 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4819 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4820 ac_build_exeext=$BUILD_EXEEXT
4821
4822   ac_build_prefix=${build_alias}-
4823   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4824 set dummy ${ac_build_prefix}g++; ac_word=$2
4825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4827 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4828   echo $ECHO_N "(cached) $ECHO_C" >&6
4829 else
4830   if test -n "$BUILD_CXX"; then
4831   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4832 else
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 for as_dir in $PATH
4835 do
4836   IFS=$as_save_IFS
4837   test -z "$as_dir" && as_dir=.
4838   for ac_exec_ext in '' $ac_executable_extensions; do
4839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4840     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4842     break 2
4843   fi
4844 done
4845 done
4846 IFS=$as_save_IFS
4847
4848 fi
4849 fi
4850 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4851 if test -n "$BUILD_CXX"; then
4852   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4853 echo "${ECHO_T}$BUILD_CXX" >&6; }
4854 else
4855   { echo "$as_me:$LINENO: result: no" >&5
4856 echo "${ECHO_T}no" >&6; }
4857 fi
4858
4859
4860   if test -z "$BUILD_CXX"; then
4861      # Extract the first word of "g++", so it can be a program name with args.
4862 set dummy g++; ac_word=$2
4863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4865 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4866   echo $ECHO_N "(cached) $ECHO_C" >&6
4867 else
4868   if test -n "$BUILD_CXX"; then
4869   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4870 else
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 for as_dir in $PATH
4873 do
4874   IFS=$as_save_IFS
4875   test -z "$as_dir" && as_dir=.
4876   for ac_exec_ext in '' $ac_executable_extensions; do
4877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4878     ac_cv_prog_BUILD_CXX="g++"
4879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880     break 2
4881   fi
4882 done
4883 done
4884 IFS=$as_save_IFS
4885
4886 fi
4887 fi
4888 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4889 if test -n "$BUILD_CXX"; then
4890   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4891 echo "${ECHO_T}$BUILD_CXX" >&6; }
4892 else
4893   { echo "$as_me:$LINENO: result: no" >&5
4894 echo "${ECHO_T}no" >&6; }
4895 fi
4896
4897
4898      if test -z "$BUILD_CXX"; then
4899        # Extract the first word of "c++", so it can be a program name with args.
4900 set dummy c++; ac_word=$2
4901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4903 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4904   echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906   if test -n "$BUILD_CXX"; then
4907   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4908 else
4909   ac_prog_rejected=no
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4912 do
4913   IFS=$as_save_IFS
4914   test -z "$as_dir" && as_dir=.
4915   for ac_exec_ext in '' $ac_executable_extensions; do
4916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4917     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4918        ac_prog_rejected=yes
4919        continue
4920      fi
4921     ac_cv_prog_BUILD_CXX="c++"
4922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4923     break 2
4924   fi
4925 done
4926 done
4927 IFS=$as_save_IFS
4928
4929 if test $ac_prog_rejected = yes; then
4930   # We found a bogon in the path, so make sure we never use it.
4931   set dummy $ac_cv_prog_BUILD_CXX
4932   shift
4933   if test $# != 0; then
4934     # We chose a different compiler from the bogus one.
4935     # However, it has the same basename, so the bogon will be chosen
4936     # first if we set BUILD_CXX to just the basename; use the full file name.
4937     shift
4938     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4939   fi
4940 fi
4941 fi
4942 fi
4943 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4944 if test -n "$BUILD_CXX"; then
4945   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4946 echo "${ECHO_T}$BUILD_CXX" >&6; }
4947 else
4948   { echo "$as_me:$LINENO: result: no" >&5
4949 echo "${ECHO_T}no" >&6; }
4950 fi
4951
4952
4953      fi
4954   fi
4955 else
4956   LLVM_CROSS_COMPILING=0
4957
4958 fi
4959
4960 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4961   cvsbuild="yes"
4962   optimize="no"
4963   CVSBUILD=CVSBUILD=1
4964
4965 else
4966   cvsbuild="no"
4967   optimize="yes"
4968 fi
4969
4970
4971 # Check whether --enable-libcpp was given.
4972 if test "${enable_libcpp+set}" = set; then
4973   enableval=$enable_libcpp;
4974 else
4975   enableval=default
4976 fi
4977
4978 case "$enableval" in
4979   yes) ENABLE_LIBCPP=1
4980  ;;
4981   no)  ENABLE_LIBCPP=0
4982  ;;
4983   default) ENABLE_LIBCPP=0
4984 ;;
4985   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4986 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4987    { (exit 1); exit 1; }; } ;;
4988 esac
4989
4990 # Check whether --enable-optimized was given.
4991 if test "${enable_optimized+set}" = set; then
4992   enableval=$enable_optimized;
4993 else
4994   enableval=$optimize
4995 fi
4996
4997 if test ${enableval} = "no" ; then
4998   ENABLE_OPTIMIZED=
4999
5000 else
5001   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5002
5003 fi
5004
5005 # Check whether --enable-profiling was given.
5006 if test "${enable_profiling+set}" = set; then
5007   enableval=$enable_profiling;
5008 else
5009   enableval="no"
5010 fi
5011
5012 if test ${enableval} = "no" ; then
5013   ENABLE_PROFILING=
5014
5015 else
5016   ENABLE_PROFILING=ENABLE_PROFILING=1
5017
5018 fi
5019
5020 # Check whether --enable-assertions was given.
5021 if test "${enable_assertions+set}" = set; then
5022   enableval=$enable_assertions;
5023 else
5024   enableval="yes"
5025 fi
5026
5027 if test ${enableval} = "yes" ; then
5028   DISABLE_ASSERTIONS=
5029
5030 else
5031   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5032
5033 fi
5034
5035 # Check whether --enable-expensive-checks was given.
5036 if test "${enable_expensive_checks+set}" = set; then
5037   enableval=$enable_expensive_checks;
5038 else
5039   enableval="no"
5040 fi
5041
5042 if test ${enableval} = "yes" ; then
5043   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5044
5045   EXPENSIVE_CHECKS=yes
5046
5047 else
5048   ENABLE_EXPENSIVE_CHECKS=
5049
5050   EXPENSIVE_CHECKS=no
5051
5052 fi
5053
5054 # Check whether --enable-debug-runtime was given.
5055 if test "${enable_debug_runtime+set}" = set; then
5056   enableval=$enable_debug_runtime;
5057 else
5058   enableval=no
5059 fi
5060
5061 if test ${enableval} = "no" ; then
5062   DEBUG_RUNTIME=
5063
5064 else
5065   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5066
5067 fi
5068
5069 # Check whether --enable-debug-symbols was given.
5070 if test "${enable_debug_symbols+set}" = set; then
5071   enableval=$enable_debug_symbols;
5072 else
5073   enableval=no
5074 fi
5075
5076 if test ${enableval} = "no" ; then
5077   DEBUG_SYMBOLS=
5078
5079 else
5080   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5081
5082 fi
5083
5084 # Check whether --enable-jit was given.
5085 if test "${enable_jit+set}" = set; then
5086   enableval=$enable_jit;
5087 else
5088   enableval=default
5089 fi
5090
5091 if test ${enableval} = "no"
5092 then
5093   JIT=
5094
5095 else
5096   case "$llvm_cv_target_arch" in
5097     x86)         TARGET_HAS_JIT=1
5098  ;;
5099     Sparc)       TARGET_HAS_JIT=0
5100  ;;
5101     PowerPC)     TARGET_HAS_JIT=1
5102  ;;
5103     x86_64)      TARGET_HAS_JIT=1
5104  ;;
5105     ARM)         TARGET_HAS_JIT=1
5106  ;;
5107     Mips)        TARGET_HAS_JIT=1
5108  ;;
5109     XCore)       TARGET_HAS_JIT=0
5110  ;;
5111     MSP430)      TARGET_HAS_JIT=0
5112  ;;
5113     Hexagon)     TARGET_HAS_JIT=0
5114  ;;
5115     MBlaze)      TARGET_HAS_JIT=0
5116  ;;
5117     PTX)         TARGET_HAS_JIT=0
5118  ;;
5119     *)           TARGET_HAS_JIT=0
5120  ;;
5121   esac
5122 fi
5123
5124 # Check whether --enable-docs was given.
5125 if test "${enable_docs+set}" = set; then
5126   enableval=$enable_docs;
5127 else
5128   enableval=default
5129 fi
5130
5131 case "$enableval" in
5132   yes) ENABLE_DOCS=1
5133  ;;
5134   no)  ENABLE_DOCS=0
5135  ;;
5136   default) ENABLE_DOCS=1
5137  ;;
5138   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5139 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5140    { (exit 1); exit 1; }; } ;;
5141 esac
5142
5143 # Check whether --enable-doxygen was given.
5144 if test "${enable_doxygen+set}" = set; then
5145   enableval=$enable_doxygen;
5146 else
5147   enableval=default
5148 fi
5149
5150 case "$enableval" in
5151   yes) ENABLE_DOXYGEN=1
5152  ;;
5153   no)  ENABLE_DOXYGEN=0
5154  ;;
5155   default) ENABLE_DOXYGEN=0
5156  ;;
5157   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5158 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5159    { (exit 1); exit 1; }; } ;;
5160 esac
5161
5162 # Check whether --enable-threads was given.
5163 if test "${enable_threads+set}" = set; then
5164   enableval=$enable_threads;
5165 else
5166   enableval=default
5167 fi
5168
5169 case "$enableval" in
5170   yes) LLVM_ENABLE_THREADS=1
5171  ;;
5172   no)  LLVM_ENABLE_THREADS=0
5173  ;;
5174   default) LLVM_ENABLE_THREADS=1
5175  ;;
5176   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5177 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5178    { (exit 1); exit 1; }; } ;;
5179 esac
5180
5181 cat >>confdefs.h <<_ACEOF
5182 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5183 _ACEOF
5184
5185
5186 # Check whether --enable-pthreads was given.
5187 if test "${enable_pthreads+set}" = set; then
5188   enableval=$enable_pthreads;
5189 else
5190   enableval=default
5191 fi
5192
5193 case "$enableval" in
5194   yes) ENABLE_PTHREADS=1
5195  ;;
5196   no)  ENABLE_PTHREADS=0
5197  ;;
5198   default) ENABLE_PTHREADS=1
5199  ;;
5200   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5201 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5202    { (exit 1); exit 1; }; } ;;
5203 esac
5204
5205 # Check whether --enable-pic was given.
5206 if test "${enable_pic+set}" = set; then
5207   enableval=$enable_pic;
5208 else
5209   enableval=default
5210 fi
5211
5212 case "$enableval" in
5213   yes) ENABLE_PIC=1
5214  ;;
5215   no)  ENABLE_PIC=0
5216  ;;
5217   default) ENABLE_PIC=1
5218  ;;
5219   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5220 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5221    { (exit 1); exit 1; }; } ;;
5222 esac
5223
5224 cat >>confdefs.h <<_ACEOF
5225 #define ENABLE_PIC $ENABLE_PIC
5226 _ACEOF
5227
5228
5229 # Check whether --enable-shared was given.
5230 if test "${enable_shared+set}" = set; then
5231   enableval=$enable_shared;
5232 else
5233   enableval=default
5234 fi
5235
5236 case "$enableval" in
5237   yes) ENABLE_SHARED=1
5238  ;;
5239   no)  ENABLE_SHARED=0
5240  ;;
5241   default) ENABLE_SHARED=0
5242  ;;
5243   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5244 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5245    { (exit 1); exit 1; }; } ;;
5246 esac
5247
5248 # Check whether --enable-embed-stdcxx was given.
5249 if test "${enable_embed_stdcxx+set}" = set; then
5250   enableval=$enable_embed_stdcxx;
5251 else
5252   enableval=default
5253 fi
5254
5255 case "$enableval" in
5256   yes) ENABLE_EMBED_STDCXX=1
5257  ;;
5258   no)  ENABLE_EMBED_STDCXX=0
5259  ;;
5260   default) ENABLE_EMBED_STDCXX=0
5261  ;;
5262   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5263 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5264    { (exit 1); exit 1; }; } ;;
5265 esac
5266
5267 # Check whether --enable-timestamps was given.
5268 if test "${enable_timestamps+set}" = set; then
5269   enableval=$enable_timestamps;
5270 else
5271   enableval=default
5272 fi
5273
5274 case "$enableval" in
5275   yes) ENABLE_TIMESTAMPS=1
5276  ;;
5277   no)  ENABLE_TIMESTAMPS=0
5278  ;;
5279   default) ENABLE_TIMESTAMPS=1
5280  ;;
5281   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5282 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5283    { (exit 1); exit 1; }; } ;;
5284 esac
5285
5286 cat >>confdefs.h <<_ACEOF
5287 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5288 _ACEOF
5289
5290
5291 TARGETS_TO_BUILD=""
5292 # Check whether --enable-targets was given.
5293 if test "${enable_targets+set}" = set; then
5294   enableval=$enable_targets;
5295 else
5296   enableval=all
5297 fi
5298
5299 if test "$enableval" = host-only ; then
5300   enableval=host
5301 fi
5302 case "$enableval" in
5303   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX Hexagon" ;;
5304   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5305       case "$a_target" in
5306         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5307         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5308         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5309         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5310         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5311         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5312         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5313         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5314         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5315         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5316         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5317         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5318         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5319         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5320         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5321         host) case "$llvm_cv_target_arch" in
5322             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5323             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5324             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5325             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5326             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5327             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5328             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5329             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5330             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5331             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5332             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5333             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5334             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5335 echo "$as_me: error: Can not set target to build" >&2;}
5336    { (exit 1); exit 1; }; } ;;
5337           esac ;;
5338         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5339 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5340    { (exit 1); exit 1; }; } ;;
5341       esac
5342   done
5343   ;;
5344 esac
5345 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5346
5347
5348 # Determine whether we are building LLVM support for the native architecture.
5349 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5350 for a_target in $TARGETS_TO_BUILD; do
5351   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5352
5353 cat >>confdefs.h <<_ACEOF
5354 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5355 _ACEOF
5356
5357     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5358     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5359     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5360     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5361     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5362       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5363     fi
5364
5365 cat >>confdefs.h <<_ACEOF
5366 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5367 _ACEOF
5368
5369
5370 cat >>confdefs.h <<_ACEOF
5371 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5372 _ACEOF
5373
5374
5375 cat >>confdefs.h <<_ACEOF
5376 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5377 _ACEOF
5378
5379
5380 cat >>confdefs.h <<_ACEOF
5381 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5382 _ACEOF
5383
5384     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5385
5386 cat >>confdefs.h <<_ACEOF
5387 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5388 _ACEOF
5389
5390     fi
5391   fi
5392 done
5393
5394 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5395 # target feature def files.
5396 LLVM_ENUM_TARGETS=""
5397 LLVM_ENUM_ASM_PRINTERS=""
5398 LLVM_ENUM_ASM_PARSERS=""
5399 LLVM_ENUM_DISASSEMBLERS=""
5400 for target_to_build in $TARGETS_TO_BUILD; do
5401   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5402   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5403     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5404   fi
5405   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5406     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5407   fi
5408   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5409     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5410   fi
5411 done
5412
5413
5414
5415
5416
5417 # Check whether --enable-cbe-printf-a was given.
5418 if test "${enable_cbe_printf_a+set}" = set; then
5419   enableval=$enable_cbe_printf_a;
5420 else
5421   enableval=default
5422 fi
5423
5424 case "$enableval" in
5425   yes) ENABLE_CBE_PRINTF_A=1
5426  ;;
5427   no)  ENABLE_CBE_PRINTF_A=0
5428  ;;
5429   default)  ENABLE_CBE_PRINTF_A=1
5430  ;;
5431   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5432 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5433    { (exit 1); exit 1; }; } ;;
5434 esac
5435
5436 cat >>confdefs.h <<_ACEOF
5437 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5438 _ACEOF
5439
5440
5441
5442 # Check whether --with-optimize-option was given.
5443 if test "${with_optimize_option+set}" = set; then
5444   withval=$with_optimize_option;
5445 else
5446   withval=default
5447 fi
5448
5449 { echo "$as_me:$LINENO: checking optimization flags" >&5
5450 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5451 case "$withval" in
5452   default)
5453     case "$llvm_cv_os_type" in
5454     FreeBSD) optimize_option=-O2 ;;
5455     MingW) optimize_option=-O2 ;;
5456     *)     optimize_option=-O3 ;;
5457     esac ;;
5458   *) optimize_option="$withval" ;;
5459 esac
5460 OPTIMIZE_OPTION=$optimize_option
5461
5462 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5463 echo "${ECHO_T}$optimize_option" >&6; }
5464
5465
5466 # Check whether --with-extra-options was given.
5467 if test "${with_extra_options+set}" = set; then
5468   withval=$with_extra_options;
5469 else
5470   withval=default
5471 fi
5472
5473 case "$withval" in
5474   default) EXTRA_OPTIONS= ;;
5475   *) EXTRA_OPTIONS=$withval ;;
5476 esac
5477 EXTRA_OPTIONS=$EXTRA_OPTIONS
5478
5479
5480
5481 # Check whether --with-extra-ld-options was given.
5482 if test "${with_extra_ld_options+set}" = set; then
5483   withval=$with_extra_ld_options;
5484 else
5485   withval=default
5486 fi
5487
5488 case "$withval" in
5489   default) EXTRA_LD_OPTIONS= ;;
5490   *) EXTRA_LD_OPTIONS=$withval ;;
5491 esac
5492 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5493
5494
5495 # Check whether --enable-bindings was given.
5496 if test "${enable_bindings+set}" = set; then
5497   enableval=$enable_bindings;
5498 else
5499   enableval=default
5500 fi
5501
5502 BINDINGS_TO_BUILD=""
5503 case "$enableval" in
5504   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5505   all ) BINDINGS_TO_BUILD="ocaml" ;;
5506   none | no) BINDINGS_TO_BUILD="" ;;
5507   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5508       case "$a_binding" in
5509         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5510         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5511 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5512    { (exit 1); exit 1; }; } ;;
5513       esac
5514   done
5515   ;;
5516 esac
5517
5518
5519 # Check whether --with-ocaml-libdir was given.
5520 if test "${with_ocaml_libdir+set}" = set; then
5521   withval=$with_ocaml_libdir;
5522 else
5523   withval=auto
5524 fi
5525
5526 case "$withval" in
5527   auto) with_ocaml_libdir="$withval" ;;
5528   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5529   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5530 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5531    { (exit 1); exit 1; }; } ;;
5532 esac
5533
5534
5535 # Check whether --with-clang-srcdir was given.
5536 if test "${with_clang_srcdir+set}" = set; then
5537   withval=$with_clang_srcdir;
5538 else
5539   withval="-"
5540 fi
5541
5542 case "$withval" in
5543   -) clang_src_root="" ;;
5544   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5545   *) clang_src_root="$ac_pwd/$withval" ;;
5546 esac
5547 CLANG_SRC_ROOT=$clang_src_root
5548
5549
5550
5551 # Check whether --with-clang-resource-dir was given.
5552 if test "${with_clang_resource_dir+set}" = set; then
5553   withval=$with_clang_resource_dir;
5554 else
5555   withval=""
5556 fi
5557
5558
5559 cat >>confdefs.h <<_ACEOF
5560 #define CLANG_RESOURCE_DIR "$withval"
5561 _ACEOF
5562
5563
5564
5565 # Check whether --with-c-include-dirs was given.
5566 if test "${with_c_include_dirs+set}" = set; then
5567   withval=$with_c_include_dirs;
5568 else
5569   withval=""
5570 fi
5571
5572
5573 cat >>confdefs.h <<_ACEOF
5574 #define C_INCLUDE_DIRS "$withval"
5575 _ACEOF
5576
5577
5578
5579 # Check whether --with-cxx-include-root was given.
5580 if test "${with_cxx_include_root+set}" = set; then
5581   withval=$with_cxx_include_root;
5582 else
5583   withval=""
5584 fi
5585
5586
5587 cat >>confdefs.h <<_ACEOF
5588 #define CXX_INCLUDE_ROOT "$withval"
5589 _ACEOF
5590
5591
5592
5593 # Check whether --with-cxx-include-arch was given.
5594 if test "${with_cxx_include_arch+set}" = set; then
5595   withval=$with_cxx_include_arch;
5596 else
5597   withval=""
5598 fi
5599
5600
5601 cat >>confdefs.h <<_ACEOF
5602 #define CXX_INCLUDE_ARCH "$withval"
5603 _ACEOF
5604
5605
5606
5607 # Check whether --with-cxx-include-32bit-dir was given.
5608 if test "${with_cxx_include_32bit_dir+set}" = set; then
5609   withval=$with_cxx_include_32bit_dir;
5610 else
5611   withval=""
5612 fi
5613
5614
5615 cat >>confdefs.h <<_ACEOF
5616 #define CXX_INCLUDE_32BIT_DIR "$withval"
5617 _ACEOF
5618
5619
5620
5621 # Check whether --with-cxx-include-64bit-dir was given.
5622 if test "${with_cxx_include_64bit_dir+set}" = set; then
5623   withval=$with_cxx_include_64bit_dir;
5624 else
5625   withval=""
5626 fi
5627
5628
5629 cat >>confdefs.h <<_ACEOF
5630 #define CXX_INCLUDE_64BIT_DIR "$withval"
5631 _ACEOF
5632
5633
5634
5635 # Check whether --with-binutils-include was given.
5636 if test "${with_binutils_include+set}" = set; then
5637   withval=$with_binutils_include;
5638 else
5639   withval=default
5640 fi
5641
5642 case "$withval" in
5643   default) WITH_BINUTILS_INCDIR=default ;;
5644   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5645   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5646 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5647    { (exit 1); exit 1; }; } ;;
5648 esac
5649 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5650   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5651
5652   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5653      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5654      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5655 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5656    { (exit 1); exit 1; }; };
5657   fi
5658 fi
5659
5660
5661 # Check whether --with-bug-report-url was given.
5662 if test "${with_bug_report_url+set}" = set; then
5663   withval=$with_bug_report_url;
5664 else
5665   withval="http://llvm.org/bugs/"
5666 fi
5667
5668
5669 cat >>confdefs.h <<_ACEOF
5670 #define BUG_REPORT_URL "$withval"
5671 _ACEOF
5672
5673
5674 # Check whether --enable-libffi was given.
5675 if test "${enable_libffi+set}" = set; then
5676   enableval=$enable_libffi; case "$enableval" in
5677     yes) llvm_cv_enable_libffi="yes" ;;
5678     no)  llvm_cv_enable_libffi="no"  ;;
5679     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5680 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5681    { (exit 1); exit 1; }; } ;;
5682   esac
5683 else
5684   llvm_cv_enable_libffi=no
5685 fi
5686
5687
5688
5689 # Check whether --with-internal-prefix was given.
5690 if test "${with_internal_prefix+set}" = set; then
5691   withval=$with_internal_prefix;
5692 else
5693   withval=""
5694 fi
5695
5696 INTERNAL_PREFIX=$withval
5697
5698
5699
5700 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5701 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5702 if test "${lt_cv_path_NM+set}" = set; then
5703   echo $ECHO_N "(cached) $ECHO_C" >&6
5704 else
5705   if test -n "$NM"; then
5706   # Let the user override the test.
5707   lt_cv_path_NM="$NM"
5708 else
5709   lt_nm_to_check="${ac_tool_prefix}nm"
5710   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5711     lt_nm_to_check="$lt_nm_to_check nm"
5712   fi
5713   for lt_tmp_nm in $lt_nm_to_check; do
5714     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5715     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5716       IFS="$lt_save_ifs"
5717       test -z "$ac_dir" && ac_dir=.
5718       tmp_nm="$ac_dir/$lt_tmp_nm"
5719       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5720         # Check to see if the nm accepts a BSD-compat flag.
5721         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5722         #   nm: unknown option "B" ignored
5723         # Tru64's nm complains that /dev/null is an invalid object file
5724         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5725         */dev/null* | *'Invalid file or object type'*)
5726           lt_cv_path_NM="$tmp_nm -B"
5727           break
5728           ;;
5729         *)
5730           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5731           */dev/null*)
5732             lt_cv_path_NM="$tmp_nm -p"
5733             break
5734             ;;
5735           *)
5736             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5737             continue # so that we can try to find one that supports BSD flags
5738             ;;
5739           esac
5740           ;;
5741         esac
5742       fi
5743     done
5744     IFS="$lt_save_ifs"
5745   done
5746   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5747 fi
5748 fi
5749 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5750 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5751 NM="$lt_cv_path_NM"
5752
5753
5754
5755 { echo "$as_me:$LINENO: checking for GNU make" >&5
5756 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5757 if test "${llvm_cv_gnu_make_command+set}" = set; then
5758   echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760   llvm_cv_gnu_make_command=''
5761  for a in "$MAKE" make gmake gnumake ; do
5762   if test -z "$a" ; then continue ; fi ;
5763   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5764   then
5765    llvm_cv_gnu_make_command=$a ;
5766    break;
5767   fi
5768  done
5769 fi
5770 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5771 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5772  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5773    ifGNUmake='' ;
5774  else
5775    ifGNUmake='#' ;
5776    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5777 echo "${ECHO_T}\"Not found\"" >&6; };
5778  fi
5779
5780
5781 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5782 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5783 LN_S=$as_ln_s
5784 if test "$LN_S" = "ln -s"; then
5785   { echo "$as_me:$LINENO: result: yes" >&5
5786 echo "${ECHO_T}yes" >&6; }
5787 else
5788   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5789 echo "${ECHO_T}no, using $LN_S" >&6; }
5790 fi
5791
5792 # Extract the first word of "cmp", so it can be a program name with args.
5793 set dummy cmp; ac_word=$2
5794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5796 if test "${ac_cv_path_CMP+set}" = set; then
5797   echo $ECHO_N "(cached) $ECHO_C" >&6
5798 else
5799   case $CMP in
5800   [\\/]* | ?:[\\/]*)
5801   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5802   ;;
5803   *)
5804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH
5806 do
5807   IFS=$as_save_IFS
5808   test -z "$as_dir" && as_dir=.
5809   for ac_exec_ext in '' $ac_executable_extensions; do
5810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5811     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5813     break 2
5814   fi
5815 done
5816 done
5817 IFS=$as_save_IFS
5818
5819   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5820   ;;
5821 esac
5822 fi
5823 CMP=$ac_cv_path_CMP
5824 if test -n "$CMP"; then
5825   { echo "$as_me:$LINENO: result: $CMP" >&5
5826 echo "${ECHO_T}$CMP" >&6; }
5827 else
5828   { echo "$as_me:$LINENO: result: no" >&5
5829 echo "${ECHO_T}no" >&6; }
5830 fi
5831
5832
5833 # Extract the first word of "cp", so it can be a program name with args.
5834 set dummy cp; ac_word=$2
5835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5837 if test "${ac_cv_path_CP+set}" = set; then
5838   echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840   case $CP in
5841   [\\/]* | ?:[\\/]*)
5842   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5843   ;;
5844   *)
5845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 for as_dir in $PATH
5847 do
5848   IFS=$as_save_IFS
5849   test -z "$as_dir" && as_dir=.
5850   for ac_exec_ext in '' $ac_executable_extensions; do
5851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5852     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5854     break 2
5855   fi
5856 done
5857 done
5858 IFS=$as_save_IFS
5859
5860   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5861   ;;
5862 esac
5863 fi
5864 CP=$ac_cv_path_CP
5865 if test -n "$CP"; then
5866   { echo "$as_me:$LINENO: result: $CP" >&5
5867 echo "${ECHO_T}$CP" >&6; }
5868 else
5869   { echo "$as_me:$LINENO: result: no" >&5
5870 echo "${ECHO_T}no" >&6; }
5871 fi
5872
5873
5874 # Extract the first word of "date", so it can be a program name with args.
5875 set dummy date; ac_word=$2
5876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5878 if test "${ac_cv_path_DATE+set}" = set; then
5879   echo $ECHO_N "(cached) $ECHO_C" >&6
5880 else
5881   case $DATE in
5882   [\\/]* | ?:[\\/]*)
5883   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5884   ;;
5885   *)
5886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887 for as_dir in $PATH
5888 do
5889   IFS=$as_save_IFS
5890   test -z "$as_dir" && as_dir=.
5891   for ac_exec_ext in '' $ac_executable_extensions; do
5892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5893     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5895     break 2
5896   fi
5897 done
5898 done
5899 IFS=$as_save_IFS
5900
5901   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5902   ;;
5903 esac
5904 fi
5905 DATE=$ac_cv_path_DATE
5906 if test -n "$DATE"; then
5907   { echo "$as_me:$LINENO: result: $DATE" >&5
5908 echo "${ECHO_T}$DATE" >&6; }
5909 else
5910   { echo "$as_me:$LINENO: result: no" >&5
5911 echo "${ECHO_T}no" >&6; }
5912 fi
5913
5914
5915 # Extract the first word of "find", so it can be a program name with args.
5916 set dummy find; ac_word=$2
5917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5919 if test "${ac_cv_path_FIND+set}" = set; then
5920   echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922   case $FIND in
5923   [\\/]* | ?:[\\/]*)
5924   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5925   ;;
5926   *)
5927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH
5929 do
5930   IFS=$as_save_IFS
5931   test -z "$as_dir" && as_dir=.
5932   for ac_exec_ext in '' $ac_executable_extensions; do
5933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5934     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5936     break 2
5937   fi
5938 done
5939 done
5940 IFS=$as_save_IFS
5941
5942   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5943   ;;
5944 esac
5945 fi
5946 FIND=$ac_cv_path_FIND
5947 if test -n "$FIND"; then
5948   { echo "$as_me:$LINENO: result: $FIND" >&5
5949 echo "${ECHO_T}$FIND" >&6; }
5950 else
5951   { echo "$as_me:$LINENO: result: no" >&5
5952 echo "${ECHO_T}no" >&6; }
5953 fi
5954
5955
5956 # Extract the first word of "grep", so it can be a program name with args.
5957 set dummy grep; ac_word=$2
5958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5960 if test "${ac_cv_path_GREP+set}" = set; then
5961   echo $ECHO_N "(cached) $ECHO_C" >&6
5962 else
5963   case $GREP in
5964   [\\/]* | ?:[\\/]*)
5965   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5966   ;;
5967   *)
5968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 for as_dir in $PATH
5970 do
5971   IFS=$as_save_IFS
5972   test -z "$as_dir" && as_dir=.
5973   for ac_exec_ext in '' $ac_executable_extensions; do
5974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5975     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5977     break 2
5978   fi
5979 done
5980 done
5981 IFS=$as_save_IFS
5982
5983   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5984   ;;
5985 esac
5986 fi
5987 GREP=$ac_cv_path_GREP
5988 if test -n "$GREP"; then
5989   { echo "$as_me:$LINENO: result: $GREP" >&5
5990 echo "${ECHO_T}$GREP" >&6; }
5991 else
5992   { echo "$as_me:$LINENO: result: no" >&5
5993 echo "${ECHO_T}no" >&6; }
5994 fi
5995
5996
5997 # Extract the first word of "mkdir", so it can be a program name with args.
5998 set dummy mkdir; ac_word=$2
5999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6001 if test "${ac_cv_path_MKDIR+set}" = set; then
6002   echo $ECHO_N "(cached) $ECHO_C" >&6
6003 else
6004   case $MKDIR in
6005   [\\/]* | ?:[\\/]*)
6006   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6007   ;;
6008   *)
6009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6011 do
6012   IFS=$as_save_IFS
6013   test -z "$as_dir" && as_dir=.
6014   for ac_exec_ext in '' $ac_executable_extensions; do
6015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6016     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018     break 2
6019   fi
6020 done
6021 done
6022 IFS=$as_save_IFS
6023
6024   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6025   ;;
6026 esac
6027 fi
6028 MKDIR=$ac_cv_path_MKDIR
6029 if test -n "$MKDIR"; then
6030   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6031 echo "${ECHO_T}$MKDIR" >&6; }
6032 else
6033   { echo "$as_me:$LINENO: result: no" >&5
6034 echo "${ECHO_T}no" >&6; }
6035 fi
6036
6037
6038 # Extract the first word of "mv", so it can be a program name with args.
6039 set dummy mv; ac_word=$2
6040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6042 if test "${ac_cv_path_MV+set}" = set; then
6043   echo $ECHO_N "(cached) $ECHO_C" >&6
6044 else
6045   case $MV in
6046   [\\/]* | ?:[\\/]*)
6047   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6048   ;;
6049   *)
6050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051 for as_dir in $PATH
6052 do
6053   IFS=$as_save_IFS
6054   test -z "$as_dir" && as_dir=.
6055   for ac_exec_ext in '' $ac_executable_extensions; do
6056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6057     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6059     break 2
6060   fi
6061 done
6062 done
6063 IFS=$as_save_IFS
6064
6065   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6066   ;;
6067 esac
6068 fi
6069 MV=$ac_cv_path_MV
6070 if test -n "$MV"; then
6071   { echo "$as_me:$LINENO: result: $MV" >&5
6072 echo "${ECHO_T}$MV" >&6; }
6073 else
6074   { echo "$as_me:$LINENO: result: no" >&5
6075 echo "${ECHO_T}no" >&6; }
6076 fi
6077
6078
6079 if test -n "$ac_tool_prefix"; then
6080   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6081 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6084 if test "${ac_cv_prog_RANLIB+set}" = set; then
6085   echo $ECHO_N "(cached) $ECHO_C" >&6
6086 else
6087   if test -n "$RANLIB"; then
6088   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6089 else
6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 for as_dir in $PATH
6092 do
6093   IFS=$as_save_IFS
6094   test -z "$as_dir" && as_dir=.
6095   for ac_exec_ext in '' $ac_executable_extensions; do
6096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6097     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6099     break 2
6100   fi
6101 done
6102 done
6103 IFS=$as_save_IFS
6104
6105 fi
6106 fi
6107 RANLIB=$ac_cv_prog_RANLIB
6108 if test -n "$RANLIB"; then
6109   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6110 echo "${ECHO_T}$RANLIB" >&6; }
6111 else
6112   { echo "$as_me:$LINENO: result: no" >&5
6113 echo "${ECHO_T}no" >&6; }
6114 fi
6115
6116
6117 fi
6118 if test -z "$ac_cv_prog_RANLIB"; then
6119   ac_ct_RANLIB=$RANLIB
6120   # Extract the first word of "ranlib", so it can be a program name with args.
6121 set dummy ranlib; ac_word=$2
6122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6124 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6125   echo $ECHO_N "(cached) $ECHO_C" >&6
6126 else
6127   if test -n "$ac_ct_RANLIB"; then
6128   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6129 else
6130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131 for as_dir in $PATH
6132 do
6133   IFS=$as_save_IFS
6134   test -z "$as_dir" && as_dir=.
6135   for ac_exec_ext in '' $ac_executable_extensions; do
6136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6137     ac_cv_prog_ac_ct_RANLIB="ranlib"
6138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6139     break 2
6140   fi
6141 done
6142 done
6143 IFS=$as_save_IFS
6144
6145 fi
6146 fi
6147 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6148 if test -n "$ac_ct_RANLIB"; then
6149   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6150 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6151 else
6152   { echo "$as_me:$LINENO: result: no" >&5
6153 echo "${ECHO_T}no" >&6; }
6154 fi
6155
6156   if test "x$ac_ct_RANLIB" = x; then
6157     RANLIB=":"
6158   else
6159     case $cross_compiling:$ac_tool_warned in
6160 yes:)
6161 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6162 whose name does not start with the host triplet.  If you think this
6163 configuration is useful to you, please write to autoconf@gnu.org." >&5
6164 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6165 whose name does not start with the host triplet.  If you think this
6166 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6167 ac_tool_warned=yes ;;
6168 esac
6169     RANLIB=$ac_ct_RANLIB
6170   fi
6171 else
6172   RANLIB="$ac_cv_prog_RANLIB"
6173 fi
6174
6175 if test -n "$ac_tool_prefix"; then
6176   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6177 set dummy ${ac_tool_prefix}ar; ac_word=$2
6178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6180 if test "${ac_cv_prog_AR+set}" = set; then
6181   echo $ECHO_N "(cached) $ECHO_C" >&6
6182 else
6183   if test -n "$AR"; then
6184   ac_cv_prog_AR="$AR" # Let the user override the test.
6185 else
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 for as_dir in $PATH
6188 do
6189   IFS=$as_save_IFS
6190   test -z "$as_dir" && as_dir=.
6191   for ac_exec_ext in '' $ac_executable_extensions; do
6192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6193     ac_cv_prog_AR="${ac_tool_prefix}ar"
6194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6195     break 2
6196   fi
6197 done
6198 done
6199 IFS=$as_save_IFS
6200
6201 fi
6202 fi
6203 AR=$ac_cv_prog_AR
6204 if test -n "$AR"; then
6205   { echo "$as_me:$LINENO: result: $AR" >&5
6206 echo "${ECHO_T}$AR" >&6; }
6207 else
6208   { echo "$as_me:$LINENO: result: no" >&5
6209 echo "${ECHO_T}no" >&6; }
6210 fi
6211
6212
6213 fi
6214 if test -z "$ac_cv_prog_AR"; then
6215   ac_ct_AR=$AR
6216   # Extract the first word of "ar", so it can be a program name with args.
6217 set dummy ar; ac_word=$2
6218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6220 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6221   echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223   if test -n "$ac_ct_AR"; then
6224   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6225 else
6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 for as_dir in $PATH
6228 do
6229   IFS=$as_save_IFS
6230   test -z "$as_dir" && as_dir=.
6231   for ac_exec_ext in '' $ac_executable_extensions; do
6232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6233     ac_cv_prog_ac_ct_AR="ar"
6234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6235     break 2
6236   fi
6237 done
6238 done
6239 IFS=$as_save_IFS
6240
6241 fi
6242 fi
6243 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6244 if test -n "$ac_ct_AR"; then
6245   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6246 echo "${ECHO_T}$ac_ct_AR" >&6; }
6247 else
6248   { echo "$as_me:$LINENO: result: no" >&5
6249 echo "${ECHO_T}no" >&6; }
6250 fi
6251
6252   if test "x$ac_ct_AR" = x; then
6253     AR="false"
6254   else
6255     case $cross_compiling:$ac_tool_warned in
6256 yes:)
6257 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6258 whose name does not start with the host triplet.  If you think this
6259 configuration is useful to you, please write to autoconf@gnu.org." >&5
6260 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6261 whose name does not start with the host triplet.  If you think this
6262 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6263 ac_tool_warned=yes ;;
6264 esac
6265     AR=$ac_ct_AR
6266   fi
6267 else
6268   AR="$ac_cv_prog_AR"
6269 fi
6270
6271 # Extract the first word of "rm", so it can be a program name with args.
6272 set dummy rm; ac_word=$2
6273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275 if test "${ac_cv_path_RM+set}" = set; then
6276   echo $ECHO_N "(cached) $ECHO_C" >&6
6277 else
6278   case $RM in
6279   [\\/]* | ?:[\\/]*)
6280   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6281   ;;
6282   *)
6283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 for as_dir in $PATH
6285 do
6286   IFS=$as_save_IFS
6287   test -z "$as_dir" && as_dir=.
6288   for ac_exec_ext in '' $ac_executable_extensions; do
6289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6290     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6292     break 2
6293   fi
6294 done
6295 done
6296 IFS=$as_save_IFS
6297
6298   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6299   ;;
6300 esac
6301 fi
6302 RM=$ac_cv_path_RM
6303 if test -n "$RM"; then
6304   { echo "$as_me:$LINENO: result: $RM" >&5
6305 echo "${ECHO_T}$RM" >&6; }
6306 else
6307   { echo "$as_me:$LINENO: result: no" >&5
6308 echo "${ECHO_T}no" >&6; }
6309 fi
6310
6311
6312 # Extract the first word of "sed", so it can be a program name with args.
6313 set dummy sed; ac_word=$2
6314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6316 if test "${ac_cv_path_SED+set}" = set; then
6317   echo $ECHO_N "(cached) $ECHO_C" >&6
6318 else
6319   case $SED in
6320   [\\/]* | ?:[\\/]*)
6321   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6322   ;;
6323   *)
6324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 for as_dir in $PATH
6326 do
6327   IFS=$as_save_IFS
6328   test -z "$as_dir" && as_dir=.
6329   for ac_exec_ext in '' $ac_executable_extensions; do
6330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6331     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6333     break 2
6334   fi
6335 done
6336 done
6337 IFS=$as_save_IFS
6338
6339   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6340   ;;
6341 esac
6342 fi
6343 SED=$ac_cv_path_SED
6344 if test -n "$SED"; then
6345   { echo "$as_me:$LINENO: result: $SED" >&5
6346 echo "${ECHO_T}$SED" >&6; }
6347 else
6348   { echo "$as_me:$LINENO: result: no" >&5
6349 echo "${ECHO_T}no" >&6; }
6350 fi
6351
6352
6353 # Extract the first word of "tar", so it can be a program name with args.
6354 set dummy tar; ac_word=$2
6355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357 if test "${ac_cv_path_TAR+set}" = set; then
6358   echo $ECHO_N "(cached) $ECHO_C" >&6
6359 else
6360   case $TAR in
6361   [\\/]* | ?:[\\/]*)
6362   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6363   ;;
6364   *)
6365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 for as_dir in $PATH
6367 do
6368   IFS=$as_save_IFS
6369   test -z "$as_dir" && as_dir=.
6370   for ac_exec_ext in '' $ac_executable_extensions; do
6371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6372     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6374     break 2
6375   fi
6376 done
6377 done
6378 IFS=$as_save_IFS
6379
6380   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6381   ;;
6382 esac
6383 fi
6384 TAR=$ac_cv_path_TAR
6385 if test -n "$TAR"; then
6386   { echo "$as_me:$LINENO: result: $TAR" >&5
6387 echo "${ECHO_T}$TAR" >&6; }
6388 else
6389   { echo "$as_me:$LINENO: result: no" >&5
6390 echo "${ECHO_T}no" >&6; }
6391 fi
6392
6393
6394 # Extract the first word of "pwd", so it can be a program name with args.
6395 set dummy pwd; ac_word=$2
6396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6398 if test "${ac_cv_path_BINPWD+set}" = set; then
6399   echo $ECHO_N "(cached) $ECHO_C" >&6
6400 else
6401   case $BINPWD in
6402   [\\/]* | ?:[\\/]*)
6403   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6404   ;;
6405   *)
6406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 for as_dir in $PATH
6408 do
6409   IFS=$as_save_IFS
6410   test -z "$as_dir" && as_dir=.
6411   for ac_exec_ext in '' $ac_executable_extensions; do
6412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6413     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6415     break 2
6416   fi
6417 done
6418 done
6419 IFS=$as_save_IFS
6420
6421   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6422   ;;
6423 esac
6424 fi
6425 BINPWD=$ac_cv_path_BINPWD
6426 if test -n "$BINPWD"; then
6427   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6428 echo "${ECHO_T}$BINPWD" >&6; }
6429 else
6430   { echo "$as_me:$LINENO: result: no" >&5
6431 echo "${ECHO_T}no" >&6; }
6432 fi
6433
6434
6435
6436 # Extract the first word of "Graphviz", so it can be a program name with args.
6437 set dummy Graphviz; ac_word=$2
6438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6440 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6441   echo $ECHO_N "(cached) $ECHO_C" >&6
6442 else
6443   case $GRAPHVIZ in
6444   [\\/]* | ?:[\\/]*)
6445   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6446   ;;
6447   *)
6448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6450 do
6451   IFS=$as_save_IFS
6452   test -z "$as_dir" && as_dir=.
6453   for ac_exec_ext in '' $ac_executable_extensions; do
6454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6455     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6457     break 2
6458   fi
6459 done
6460 done
6461 IFS=$as_save_IFS
6462
6463   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6464   ;;
6465 esac
6466 fi
6467 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6468 if test -n "$GRAPHVIZ"; then
6469   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6470 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6471 else
6472   { echo "$as_me:$LINENO: result: no" >&5
6473 echo "${ECHO_T}no" >&6; }
6474 fi
6475
6476
6477 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6478
6479 cat >>confdefs.h <<\_ACEOF
6480 #define HAVE_GRAPHVIZ 1
6481 _ACEOF
6482
6483     if test "$llvm_cv_os_type" = "MingW" ; then
6484     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6485   fi
6486
6487 cat >>confdefs.h <<_ACEOF
6488 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6489 _ACEOF
6490
6491 fi
6492 # Extract the first word of "dot", so it can be a program name with args.
6493 set dummy dot; ac_word=$2
6494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6496 if test "${ac_cv_path_DOT+set}" = set; then
6497   echo $ECHO_N "(cached) $ECHO_C" >&6
6498 else
6499   case $DOT in
6500   [\\/]* | ?:[\\/]*)
6501   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6502   ;;
6503   *)
6504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $PATH
6506 do
6507   IFS=$as_save_IFS
6508   test -z "$as_dir" && as_dir=.
6509   for ac_exec_ext in '' $ac_executable_extensions; do
6510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6511     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6513     break 2
6514   fi
6515 done
6516 done
6517 IFS=$as_save_IFS
6518
6519   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6520   ;;
6521 esac
6522 fi
6523 DOT=$ac_cv_path_DOT
6524 if test -n "$DOT"; then
6525   { echo "$as_me:$LINENO: result: $DOT" >&5
6526 echo "${ECHO_T}$DOT" >&6; }
6527 else
6528   { echo "$as_me:$LINENO: result: no" >&5
6529 echo "${ECHO_T}no" >&6; }
6530 fi
6531
6532
6533 if test "$DOT" != "echo dot" ; then
6534
6535 cat >>confdefs.h <<\_ACEOF
6536 #define HAVE_DOT 1
6537 _ACEOF
6538
6539     if test "$llvm_cv_os_type" = "MingW" ; then
6540     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6541   fi
6542
6543 cat >>confdefs.h <<_ACEOF
6544 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6545 _ACEOF
6546
6547 fi
6548 # Extract the first word of "fdp", so it can be a program name with args.
6549 set dummy fdp; ac_word=$2
6550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6552 if test "${ac_cv_path_FDP+set}" = set; then
6553   echo $ECHO_N "(cached) $ECHO_C" >&6
6554 else
6555   case $FDP in
6556   [\\/]* | ?:[\\/]*)
6557   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6558   ;;
6559   *)
6560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 for as_dir in $PATH
6562 do
6563   IFS=$as_save_IFS
6564   test -z "$as_dir" && as_dir=.
6565   for ac_exec_ext in '' $ac_executable_extensions; do
6566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6567     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6569     break 2
6570   fi
6571 done
6572 done
6573 IFS=$as_save_IFS
6574
6575   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6576   ;;
6577 esac
6578 fi
6579 FDP=$ac_cv_path_FDP
6580 if test -n "$FDP"; then
6581   { echo "$as_me:$LINENO: result: $FDP" >&5
6582 echo "${ECHO_T}$FDP" >&6; }
6583 else
6584   { echo "$as_me:$LINENO: result: no" >&5
6585 echo "${ECHO_T}no" >&6; }
6586 fi
6587
6588
6589 if test "$FDP" != "echo fdp" ; then
6590
6591 cat >>confdefs.h <<\_ACEOF
6592 #define HAVE_FDP 1
6593 _ACEOF
6594
6595     if test "$llvm_cv_os_type" = "MingW" ; then
6596     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6597   fi
6598
6599 cat >>confdefs.h <<_ACEOF
6600 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6601 _ACEOF
6602
6603 fi
6604 # Extract the first word of "neato", so it can be a program name with args.
6605 set dummy neato; ac_word=$2
6606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608 if test "${ac_cv_path_NEATO+set}" = set; then
6609   echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611   case $NEATO in
6612   [\\/]* | ?:[\\/]*)
6613   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6614   ;;
6615   *)
6616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617 for as_dir in $PATH
6618 do
6619   IFS=$as_save_IFS
6620   test -z "$as_dir" && as_dir=.
6621   for ac_exec_ext in '' $ac_executable_extensions; do
6622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6623     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625     break 2
6626   fi
6627 done
6628 done
6629 IFS=$as_save_IFS
6630
6631   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6632   ;;
6633 esac
6634 fi
6635 NEATO=$ac_cv_path_NEATO
6636 if test -n "$NEATO"; then
6637   { echo "$as_me:$LINENO: result: $NEATO" >&5
6638 echo "${ECHO_T}$NEATO" >&6; }
6639 else
6640   { echo "$as_me:$LINENO: result: no" >&5
6641 echo "${ECHO_T}no" >&6; }
6642 fi
6643
6644
6645 if test "$NEATO" != "echo neato" ; then
6646
6647 cat >>confdefs.h <<\_ACEOF
6648 #define HAVE_NEATO 1
6649 _ACEOF
6650
6651     if test "$llvm_cv_os_type" = "MingW" ; then
6652     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6653   fi
6654
6655 cat >>confdefs.h <<_ACEOF
6656 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6657 _ACEOF
6658
6659 fi
6660 # Extract the first word of "twopi", so it can be a program name with args.
6661 set dummy twopi; ac_word=$2
6662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6664 if test "${ac_cv_path_TWOPI+set}" = set; then
6665   echo $ECHO_N "(cached) $ECHO_C" >&6
6666 else
6667   case $TWOPI in
6668   [\\/]* | ?:[\\/]*)
6669   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6670   ;;
6671   *)
6672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675   IFS=$as_save_IFS
6676   test -z "$as_dir" && as_dir=.
6677   for ac_exec_ext in '' $ac_executable_extensions; do
6678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6679     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681     break 2
6682   fi
6683 done
6684 done
6685 IFS=$as_save_IFS
6686
6687   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6688   ;;
6689 esac
6690 fi
6691 TWOPI=$ac_cv_path_TWOPI
6692 if test -n "$TWOPI"; then
6693   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6694 echo "${ECHO_T}$TWOPI" >&6; }
6695 else
6696   { echo "$as_me:$LINENO: result: no" >&5
6697 echo "${ECHO_T}no" >&6; }
6698 fi
6699
6700
6701 if test "$TWOPI" != "echo twopi" ; then
6702
6703 cat >>confdefs.h <<\_ACEOF
6704 #define HAVE_TWOPI 1
6705 _ACEOF
6706
6707     if test "$llvm_cv_os_type" = "MingW" ; then
6708     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6709   fi
6710
6711 cat >>confdefs.h <<_ACEOF
6712 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6713 _ACEOF
6714
6715 fi
6716 # Extract the first word of "circo", so it can be a program name with args.
6717 set dummy circo; ac_word=$2
6718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720 if test "${ac_cv_path_CIRCO+set}" = set; then
6721   echo $ECHO_N "(cached) $ECHO_C" >&6
6722 else
6723   case $CIRCO in
6724   [\\/]* | ?:[\\/]*)
6725   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6726   ;;
6727   *)
6728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6730 do
6731   IFS=$as_save_IFS
6732   test -z "$as_dir" && as_dir=.
6733   for ac_exec_ext in '' $ac_executable_extensions; do
6734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6735     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737     break 2
6738   fi
6739 done
6740 done
6741 IFS=$as_save_IFS
6742
6743   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6744   ;;
6745 esac
6746 fi
6747 CIRCO=$ac_cv_path_CIRCO
6748 if test -n "$CIRCO"; then
6749   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6750 echo "${ECHO_T}$CIRCO" >&6; }
6751 else
6752   { echo "$as_me:$LINENO: result: no" >&5
6753 echo "${ECHO_T}no" >&6; }
6754 fi
6755
6756
6757 if test "$CIRCO" != "echo circo" ; then
6758
6759 cat >>confdefs.h <<\_ACEOF
6760 #define HAVE_CIRCO 1
6761 _ACEOF
6762
6763     if test "$llvm_cv_os_type" = "MingW" ; then
6764     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6765   fi
6766
6767 cat >>confdefs.h <<_ACEOF
6768 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6769 _ACEOF
6770
6771 fi
6772 for ac_prog in gv gsview32
6773 do
6774   # Extract the first word of "$ac_prog", so it can be a program name with args.
6775 set dummy $ac_prog; ac_word=$2
6776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6778 if test "${ac_cv_path_GV+set}" = set; then
6779   echo $ECHO_N "(cached) $ECHO_C" >&6
6780 else
6781   case $GV in
6782   [\\/]* | ?:[\\/]*)
6783   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6784   ;;
6785   *)
6786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 for as_dir in $PATH
6788 do
6789   IFS=$as_save_IFS
6790   test -z "$as_dir" && as_dir=.
6791   for ac_exec_ext in '' $ac_executable_extensions; do
6792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6793     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6795     break 2
6796   fi
6797 done
6798 done
6799 IFS=$as_save_IFS
6800
6801   ;;
6802 esac
6803 fi
6804 GV=$ac_cv_path_GV
6805 if test -n "$GV"; then
6806   { echo "$as_me:$LINENO: result: $GV" >&5
6807 echo "${ECHO_T}$GV" >&6; }
6808 else
6809   { echo "$as_me:$LINENO: result: no" >&5
6810 echo "${ECHO_T}no" >&6; }
6811 fi
6812
6813
6814   test -n "$GV" && break
6815 done
6816 test -n "$GV" || GV="echo gv"
6817
6818 if test "$GV" != "echo gv" ; then
6819
6820 cat >>confdefs.h <<\_ACEOF
6821 #define HAVE_GV 1
6822 _ACEOF
6823
6824     if test "$llvm_cv_os_type" = "MingW" ; then
6825     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6826   fi
6827
6828 cat >>confdefs.h <<_ACEOF
6829 #define LLVM_PATH_GV "$GV${EXEEXT}"
6830 _ACEOF
6831
6832 fi
6833 # Extract the first word of "dotty", so it can be a program name with args.
6834 set dummy dotty; ac_word=$2
6835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6837 if test "${ac_cv_path_DOTTY+set}" = set; then
6838   echo $ECHO_N "(cached) $ECHO_C" >&6
6839 else
6840   case $DOTTY in
6841   [\\/]* | ?:[\\/]*)
6842   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6843   ;;
6844   *)
6845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 for as_dir in $PATH
6847 do
6848   IFS=$as_save_IFS
6849   test -z "$as_dir" && as_dir=.
6850   for ac_exec_ext in '' $ac_executable_extensions; do
6851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6852     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6854     break 2
6855   fi
6856 done
6857 done
6858 IFS=$as_save_IFS
6859
6860   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6861   ;;
6862 esac
6863 fi
6864 DOTTY=$ac_cv_path_DOTTY
6865 if test -n "$DOTTY"; then
6866   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6867 echo "${ECHO_T}$DOTTY" >&6; }
6868 else
6869   { echo "$as_me:$LINENO: result: no" >&5
6870 echo "${ECHO_T}no" >&6; }
6871 fi
6872
6873
6874 if test "$DOTTY" != "echo dotty" ; then
6875
6876 cat >>confdefs.h <<\_ACEOF
6877 #define HAVE_DOTTY 1
6878 _ACEOF
6879
6880     if test "$llvm_cv_os_type" = "MingW" ; then
6881     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6882   fi
6883
6884 cat >>confdefs.h <<_ACEOF
6885 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6886 _ACEOF
6887
6888 fi
6889 # Extract the first word of "xdot.py", so it can be a program name with args.
6890 set dummy xdot.py; ac_word=$2
6891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6893 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6894   echo $ECHO_N "(cached) $ECHO_C" >&6
6895 else
6896   case $XDOT_PY in
6897   [\\/]* | ?:[\\/]*)
6898   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6899   ;;
6900   *)
6901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 for as_dir in $PATH
6903 do
6904   IFS=$as_save_IFS
6905   test -z "$as_dir" && as_dir=.
6906   for ac_exec_ext in '' $ac_executable_extensions; do
6907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6908     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910     break 2
6911   fi
6912 done
6913 done
6914 IFS=$as_save_IFS
6915
6916   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6917   ;;
6918 esac
6919 fi
6920 XDOT_PY=$ac_cv_path_XDOT_PY
6921 if test -n "$XDOT_PY"; then
6922   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6923 echo "${ECHO_T}$XDOT_PY" >&6; }
6924 else
6925   { echo "$as_me:$LINENO: result: no" >&5
6926 echo "${ECHO_T}no" >&6; }
6927 fi
6928
6929
6930 if test "$XDOT_PY" != "echo xdot.py" ; then
6931
6932 cat >>confdefs.h <<\_ACEOF
6933 #define HAVE_XDOT_PY 1
6934 _ACEOF
6935
6936     if test "$llvm_cv_os_type" = "MingW" ; then
6937     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6938   fi
6939
6940 cat >>confdefs.h <<_ACEOF
6941 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6942 _ACEOF
6943
6944 fi
6945
6946
6947 # Extract the first word of "perl", so it can be a program name with args.
6948 set dummy perl; ac_word=$2
6949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6951 if test "${ac_cv_path_PERL+set}" = set; then
6952   echo $ECHO_N "(cached) $ECHO_C" >&6
6953 else
6954   case $PERL in
6955   [\\/]* | ?:[\\/]*)
6956   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6957   ;;
6958   *)
6959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in $PATH
6961 do
6962   IFS=$as_save_IFS
6963   test -z "$as_dir" && as_dir=.
6964   for ac_exec_ext in '' $ac_executable_extensions; do
6965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6966     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6968     break 2
6969   fi
6970 done
6971 done
6972 IFS=$as_save_IFS
6973
6974   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6975   ;;
6976 esac
6977 fi
6978 PERL=$ac_cv_path_PERL
6979 if test -n "$PERL"; then
6980   { echo "$as_me:$LINENO: result: $PERL" >&5
6981 echo "${ECHO_T}$PERL" >&6; }
6982 else
6983   { echo "$as_me:$LINENO: result: no" >&5
6984 echo "${ECHO_T}no" >&6; }
6985 fi
6986
6987
6988 if test "$PERL" != "none"; then
6989   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6990 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6991   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6992     { echo "$as_me:$LINENO: result: yes" >&5
6993 echo "${ECHO_T}yes" >&6; }
6994   else
6995     PERL=none
6996     { echo "$as_me:$LINENO: result: not found" >&5
6997 echo "${ECHO_T}not found" >&6; }
6998   fi
6999 fi
7000
7001
7002 if test x"$PERL" = xnone; then
7003    HAVE_PERL=0
7004
7005    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7006 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7007    { (exit 1); exit 1; }; }
7008 else
7009    HAVE_PERL=1
7010
7011 fi
7012
7013 # Find a good install program.  We prefer a C program (faster),
7014 # so one script is as good as another.  But avoid the broken or
7015 # incompatible versions:
7016 # SysV /etc/install, /usr/sbin/install
7017 # SunOS /usr/etc/install
7018 # IRIX /sbin/install
7019 # AIX /bin/install
7020 # AmigaOS /C/install, which installs bootblocks on floppy discs
7021 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7022 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7023 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7024 # OS/2's system install, which has a completely different semantic
7025 # ./install, which can be erroneously created by make from ./install.sh.
7026 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7027 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7028 if test -z "$INSTALL"; then
7029 if test "${ac_cv_path_install+set}" = set; then
7030   echo $ECHO_N "(cached) $ECHO_C" >&6
7031 else
7032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 for as_dir in $PATH
7034 do
7035   IFS=$as_save_IFS
7036   test -z "$as_dir" && as_dir=.
7037   # Account for people who put trailing slashes in PATH elements.
7038 case $as_dir/ in
7039   ./ | .// | /cC/* | \
7040   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7041   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7042   /usr/ucb/* ) ;;
7043   *)
7044     # OSF1 and SCO ODT 3.0 have their own names for install.
7045     # Don't use installbsd from OSF since it installs stuff as root
7046     # by default.
7047     for ac_prog in ginstall scoinst install; do
7048       for ac_exec_ext in '' $ac_executable_extensions; do
7049         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7050           if test $ac_prog = install &&
7051             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7052             # AIX install.  It has an incompatible calling convention.
7053             :
7054           elif test $ac_prog = install &&
7055             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7056             # program-specific install script used by HP pwplus--don't use.
7057             :
7058           else
7059             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7060             break 3
7061           fi
7062         fi
7063       done
7064     done
7065     ;;
7066 esac
7067 done
7068 IFS=$as_save_IFS
7069
7070
7071 fi
7072   if test "${ac_cv_path_install+set}" = set; then
7073     INSTALL=$ac_cv_path_install
7074   else
7075     # As a last resort, use the slow shell script.  Don't cache a
7076     # value for INSTALL within a source directory, because that will
7077     # break other packages using the cache if that directory is
7078     # removed, or if the value is a relative name.
7079     INSTALL=$ac_install_sh
7080   fi
7081 fi
7082 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7083 echo "${ECHO_T}$INSTALL" >&6; }
7084
7085 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7086 # It thinks the first close brace ends the variable substitution.
7087 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7088
7089 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7090
7091 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7092
7093 case "$INSTALL" in
7094  [\\/$]* | ?:[\\/]* ) ;;
7095  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7096 esac
7097
7098 # Extract the first word of "bzip2", so it can be a program name with args.
7099 set dummy bzip2; ac_word=$2
7100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7102 if test "${ac_cv_path_BZIP2+set}" = set; then
7103   echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105   case $BZIP2 in
7106   [\\/]* | ?:[\\/]*)
7107   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7108   ;;
7109   *)
7110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 for as_dir in $PATH
7112 do
7113   IFS=$as_save_IFS
7114   test -z "$as_dir" && as_dir=.
7115   for ac_exec_ext in '' $ac_executable_extensions; do
7116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7117     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7119     break 2
7120   fi
7121 done
7122 done
7123 IFS=$as_save_IFS
7124
7125   ;;
7126 esac
7127 fi
7128 BZIP2=$ac_cv_path_BZIP2
7129 if test -n "$BZIP2"; then
7130   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7131 echo "${ECHO_T}$BZIP2" >&6; }
7132 else
7133   { echo "$as_me:$LINENO: result: no" >&5
7134 echo "${ECHO_T}no" >&6; }
7135 fi
7136
7137
7138 # Extract the first word of "cat", so it can be a program name with args.
7139 set dummy cat; ac_word=$2
7140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7142 if test "${ac_cv_path_CAT+set}" = set; then
7143   echo $ECHO_N "(cached) $ECHO_C" >&6
7144 else
7145   case $CAT in
7146   [\\/]* | ?:[\\/]*)
7147   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7148   ;;
7149   *)
7150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 for as_dir in $PATH
7152 do
7153   IFS=$as_save_IFS
7154   test -z "$as_dir" && as_dir=.
7155   for ac_exec_ext in '' $ac_executable_extensions; do
7156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7157     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7159     break 2
7160   fi
7161 done
7162 done
7163 IFS=$as_save_IFS
7164
7165   ;;
7166 esac
7167 fi
7168 CAT=$ac_cv_path_CAT
7169 if test -n "$CAT"; then
7170   { echo "$as_me:$LINENO: result: $CAT" >&5
7171 echo "${ECHO_T}$CAT" >&6; }
7172 else
7173   { echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6; }
7175 fi
7176
7177
7178 # Extract the first word of "doxygen", so it can be a program name with args.
7179 set dummy doxygen; ac_word=$2
7180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7182 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7183   echo $ECHO_N "(cached) $ECHO_C" >&6
7184 else
7185   case $DOXYGEN in
7186   [\\/]* | ?:[\\/]*)
7187   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7188   ;;
7189   *)
7190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 for as_dir in $PATH
7192 do
7193   IFS=$as_save_IFS
7194   test -z "$as_dir" && as_dir=.
7195   for ac_exec_ext in '' $ac_executable_extensions; do
7196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7197     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7199     break 2
7200   fi
7201 done
7202 done
7203 IFS=$as_save_IFS
7204
7205   ;;
7206 esac
7207 fi
7208 DOXYGEN=$ac_cv_path_DOXYGEN
7209 if test -n "$DOXYGEN"; then
7210   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7211 echo "${ECHO_T}$DOXYGEN" >&6; }
7212 else
7213   { echo "$as_me:$LINENO: result: no" >&5
7214 echo "${ECHO_T}no" >&6; }
7215 fi
7216
7217
7218 # Extract the first word of "groff", so it can be a program name with args.
7219 set dummy groff; ac_word=$2
7220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7222 if test "${ac_cv_path_GROFF+set}" = set; then
7223   echo $ECHO_N "(cached) $ECHO_C" >&6
7224 else
7225   case $GROFF in
7226   [\\/]* | ?:[\\/]*)
7227   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7228   ;;
7229   *)
7230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 for as_dir in $PATH
7232 do
7233   IFS=$as_save_IFS
7234   test -z "$as_dir" && as_dir=.
7235   for ac_exec_ext in '' $ac_executable_extensions; do
7236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7237     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7239     break 2
7240   fi
7241 done
7242 done
7243 IFS=$as_save_IFS
7244
7245   ;;
7246 esac
7247 fi
7248 GROFF=$ac_cv_path_GROFF
7249 if test -n "$GROFF"; then
7250   { echo "$as_me:$LINENO: result: $GROFF" >&5
7251 echo "${ECHO_T}$GROFF" >&6; }
7252 else
7253   { echo "$as_me:$LINENO: result: no" >&5
7254 echo "${ECHO_T}no" >&6; }
7255 fi
7256
7257
7258 # Extract the first word of "gzip", so it can be a program name with args.
7259 set dummy gzip; ac_word=$2
7260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7262 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7263   echo $ECHO_N "(cached) $ECHO_C" >&6
7264 else
7265   case $GZIPBIN in
7266   [\\/]* | ?:[\\/]*)
7267   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7268   ;;
7269   *)
7270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 for as_dir in $PATH
7272 do
7273   IFS=$as_save_IFS
7274   test -z "$as_dir" && as_dir=.
7275   for ac_exec_ext in '' $ac_executable_extensions; do
7276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7277     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7279     break 2
7280   fi
7281 done
7282 done
7283 IFS=$as_save_IFS
7284
7285   ;;
7286 esac
7287 fi
7288 GZIPBIN=$ac_cv_path_GZIPBIN
7289 if test -n "$GZIPBIN"; then
7290   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7291 echo "${ECHO_T}$GZIPBIN" >&6; }
7292 else
7293   { echo "$as_me:$LINENO: result: no" >&5
7294 echo "${ECHO_T}no" >&6; }
7295 fi
7296
7297
7298 # Extract the first word of "pod2html", so it can be a program name with args.
7299 set dummy pod2html; ac_word=$2
7300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7302 if test "${ac_cv_path_POD2HTML+set}" = set; then
7303   echo $ECHO_N "(cached) $ECHO_C" >&6
7304 else
7305   case $POD2HTML in
7306   [\\/]* | ?:[\\/]*)
7307   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7308   ;;
7309   *)
7310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH
7312 do
7313   IFS=$as_save_IFS
7314   test -z "$as_dir" && as_dir=.
7315   for ac_exec_ext in '' $ac_executable_extensions; do
7316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7317     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7319     break 2
7320   fi
7321 done
7322 done
7323 IFS=$as_save_IFS
7324
7325   ;;
7326 esac
7327 fi
7328 POD2HTML=$ac_cv_path_POD2HTML
7329 if test -n "$POD2HTML"; then
7330   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7331 echo "${ECHO_T}$POD2HTML" >&6; }
7332 else
7333   { echo "$as_me:$LINENO: result: no" >&5
7334 echo "${ECHO_T}no" >&6; }
7335 fi
7336
7337
7338 # Extract the first word of "pod2man", so it can be a program name with args.
7339 set dummy pod2man; ac_word=$2
7340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7342 if test "${ac_cv_path_POD2MAN+set}" = set; then
7343   echo $ECHO_N "(cached) $ECHO_C" >&6
7344 else
7345   case $POD2MAN in
7346   [\\/]* | ?:[\\/]*)
7347   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7348   ;;
7349   *)
7350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7352 do
7353   IFS=$as_save_IFS
7354   test -z "$as_dir" && as_dir=.
7355   for ac_exec_ext in '' $ac_executable_extensions; do
7356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7357     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7359     break 2
7360   fi
7361 done
7362 done
7363 IFS=$as_save_IFS
7364
7365   ;;
7366 esac
7367 fi
7368 POD2MAN=$ac_cv_path_POD2MAN
7369 if test -n "$POD2MAN"; then
7370   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7371 echo "${ECHO_T}$POD2MAN" >&6; }
7372 else
7373   { echo "$as_me:$LINENO: result: no" >&5
7374 echo "${ECHO_T}no" >&6; }
7375 fi
7376
7377
7378 # Extract the first word of "pdfroff", so it can be a program name with args.
7379 set dummy pdfroff; ac_word=$2
7380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7382 if test "${ac_cv_path_PDFROFF+set}" = set; then
7383   echo $ECHO_N "(cached) $ECHO_C" >&6
7384 else
7385   case $PDFROFF in
7386   [\\/]* | ?:[\\/]*)
7387   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7388   ;;
7389   *)
7390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 for as_dir in $PATH
7392 do
7393   IFS=$as_save_IFS
7394   test -z "$as_dir" && as_dir=.
7395   for ac_exec_ext in '' $ac_executable_extensions; do
7396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7397     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7399     break 2
7400   fi
7401 done
7402 done
7403 IFS=$as_save_IFS
7404
7405   ;;
7406 esac
7407 fi
7408 PDFROFF=$ac_cv_path_PDFROFF
7409 if test -n "$PDFROFF"; then
7410   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7411 echo "${ECHO_T}$PDFROFF" >&6; }
7412 else
7413   { echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6; }
7415 fi
7416
7417
7418 # Extract the first word of "runtest", so it can be a program name with args.
7419 set dummy runtest; ac_word=$2
7420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7422 if test "${ac_cv_path_RUNTEST+set}" = set; then
7423   echo $ECHO_N "(cached) $ECHO_C" >&6
7424 else
7425   case $RUNTEST in
7426   [\\/]* | ?:[\\/]*)
7427   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7428   ;;
7429   *)
7430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 for as_dir in $PATH
7432 do
7433   IFS=$as_save_IFS
7434   test -z "$as_dir" && as_dir=.
7435   for ac_exec_ext in '' $ac_executable_extensions; do
7436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7437     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439     break 2
7440   fi
7441 done
7442 done
7443 IFS=$as_save_IFS
7444
7445   ;;
7446 esac
7447 fi
7448 RUNTEST=$ac_cv_path_RUNTEST
7449 if test -n "$RUNTEST"; then
7450   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7451 echo "${ECHO_T}$RUNTEST" >&6; }
7452 else
7453   { echo "$as_me:$LINENO: result: no" >&5
7454 echo "${ECHO_T}no" >&6; }
7455 fi
7456
7457
7458
7459 no_itcl=true
7460 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7461 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7462
7463 # Check whether --with-tclinclude was given.
7464 if test "${with_tclinclude+set}" = set; then
7465   withval=$with_tclinclude; with_tclinclude=${withval}
7466 else
7467   with_tclinclude=''
7468 fi
7469
7470 if test "${ac_cv_path_tclsh+set}" = set; then
7471   echo $ECHO_N "(cached) $ECHO_C" >&6
7472 else
7473
7474 if test x"${with_tclinclude}" != x ; then
7475   if test -f ${with_tclinclude}/tclsh ; then
7476     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7477   elif test -f ${with_tclinclude}/src/tclsh ; then
7478     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7479   else
7480     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7481 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7482    { (exit 1); exit 1; }; }
7483   fi
7484 fi
7485 fi
7486
7487
7488 if test x"${ac_cv_path_tclsh}" = x ; then
7489   { echo "$as_me:$LINENO: result: none" >&5
7490 echo "${ECHO_T}none" >&6; }
7491   for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7492 do
7493   # Extract the first word of "$ac_prog", so it can be a program name with args.
7494 set dummy $ac_prog; ac_word=$2
7495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7497 if test "${ac_cv_path_TCLSH+set}" = set; then
7498   echo $ECHO_N "(cached) $ECHO_C" >&6
7499 else
7500   case $TCLSH in
7501   [\\/]* | ?:[\\/]*)
7502   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7503   ;;
7504   *)
7505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 for as_dir in $PATH
7507 do
7508   IFS=$as_save_IFS
7509   test -z "$as_dir" && as_dir=.
7510   for ac_exec_ext in '' $ac_executable_extensions; do
7511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7512     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7514     break 2
7515   fi
7516 done
7517 done
7518 IFS=$as_save_IFS
7519
7520   ;;
7521 esac
7522 fi
7523 TCLSH=$ac_cv_path_TCLSH
7524 if test -n "$TCLSH"; then
7525   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7526 echo "${ECHO_T}$TCLSH" >&6; }
7527 else
7528   { echo "$as_me:$LINENO: result: no" >&5
7529 echo "${ECHO_T}no" >&6; }
7530 fi
7531
7532
7533   test -n "$TCLSH" && break
7534 done
7535
7536   if test x"${TCLSH}" = x ; then
7537     ac_cv_path_tclsh='';
7538   else
7539     ac_cv_path_tclsh="${TCLSH}";
7540   fi
7541 else
7542   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7543 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7544   TCLSH="${ac_cv_path_tclsh}"
7545
7546 fi
7547
7548 # Extract the first word of "zip", so it can be a program name with args.
7549 set dummy zip; ac_word=$2
7550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7552 if test "${ac_cv_path_ZIP+set}" = set; then
7553   echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555   case $ZIP in
7556   [\\/]* | ?:[\\/]*)
7557   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7558   ;;
7559   *)
7560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 for as_dir in $PATH
7562 do
7563   IFS=$as_save_IFS
7564   test -z "$as_dir" && as_dir=.
7565   for ac_exec_ext in '' $ac_executable_extensions; do
7566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7567     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7569     break 2
7570   fi
7571 done
7572 done
7573 IFS=$as_save_IFS
7574
7575   ;;
7576 esac
7577 fi
7578 ZIP=$ac_cv_path_ZIP
7579 if test -n "$ZIP"; then
7580   { echo "$as_me:$LINENO: result: $ZIP" >&5
7581 echo "${ECHO_T}$ZIP" >&6; }
7582 else
7583   { echo "$as_me:$LINENO: result: no" >&5
7584 echo "${ECHO_T}no" >&6; }
7585 fi
7586
7587
7588 for ac_prog in ocamlc
7589 do
7590   # Extract the first word of "$ac_prog", so it can be a program name with args.
7591 set dummy $ac_prog; ac_word=$2
7592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7594 if test "${ac_cv_path_OCAMLC+set}" = set; then
7595   echo $ECHO_N "(cached) $ECHO_C" >&6
7596 else
7597   case $OCAMLC in
7598   [\\/]* | ?:[\\/]*)
7599   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7600   ;;
7601   *)
7602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603 for as_dir in $PATH
7604 do
7605   IFS=$as_save_IFS
7606   test -z "$as_dir" && as_dir=.
7607   for ac_exec_ext in '' $ac_executable_extensions; do
7608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7609     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7611     break 2
7612   fi
7613 done
7614 done
7615 IFS=$as_save_IFS
7616
7617   ;;
7618 esac
7619 fi
7620 OCAMLC=$ac_cv_path_OCAMLC
7621 if test -n "$OCAMLC"; then
7622   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7623 echo "${ECHO_T}$OCAMLC" >&6; }
7624 else
7625   { echo "$as_me:$LINENO: result: no" >&5
7626 echo "${ECHO_T}no" >&6; }
7627 fi
7628
7629
7630   test -n "$OCAMLC" && break
7631 done
7632
7633 for ac_prog in ocamlopt
7634 do
7635   # Extract the first word of "$ac_prog", so it can be a program name with args.
7636 set dummy $ac_prog; ac_word=$2
7637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7639 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7640   echo $ECHO_N "(cached) $ECHO_C" >&6
7641 else
7642   case $OCAMLOPT in
7643   [\\/]* | ?:[\\/]*)
7644   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7645   ;;
7646   *)
7647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 for as_dir in $PATH
7649 do
7650   IFS=$as_save_IFS
7651   test -z "$as_dir" && as_dir=.
7652   for ac_exec_ext in '' $ac_executable_extensions; do
7653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7654     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7656     break 2
7657   fi
7658 done
7659 done
7660 IFS=$as_save_IFS
7661
7662   ;;
7663 esac
7664 fi
7665 OCAMLOPT=$ac_cv_path_OCAMLOPT
7666 if test -n "$OCAMLOPT"; then
7667   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7668 echo "${ECHO_T}$OCAMLOPT" >&6; }
7669 else
7670   { echo "$as_me:$LINENO: result: no" >&5
7671 echo "${ECHO_T}no" >&6; }
7672 fi
7673
7674
7675   test -n "$OCAMLOPT" && break
7676 done
7677
7678 for ac_prog in ocamldep
7679 do
7680   # Extract the first word of "$ac_prog", so it can be a program name with args.
7681 set dummy $ac_prog; ac_word=$2
7682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7684 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7685   echo $ECHO_N "(cached) $ECHO_C" >&6
7686 else
7687   case $OCAMLDEP in
7688   [\\/]* | ?:[\\/]*)
7689   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7690   ;;
7691   *)
7692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693 for as_dir in $PATH
7694 do
7695   IFS=$as_save_IFS
7696   test -z "$as_dir" && as_dir=.
7697   for ac_exec_ext in '' $ac_executable_extensions; do
7698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7699     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7701     break 2
7702   fi
7703 done
7704 done
7705 IFS=$as_save_IFS
7706
7707   ;;
7708 esac
7709 fi
7710 OCAMLDEP=$ac_cv_path_OCAMLDEP
7711 if test -n "$OCAMLDEP"; then
7712   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7713 echo "${ECHO_T}$OCAMLDEP" >&6; }
7714 else
7715   { echo "$as_me:$LINENO: result: no" >&5
7716 echo "${ECHO_T}no" >&6; }
7717 fi
7718
7719
7720   test -n "$OCAMLDEP" && break
7721 done
7722
7723 for ac_prog in ocamldoc
7724 do
7725   # Extract the first word of "$ac_prog", so it can be a program name with args.
7726 set dummy $ac_prog; ac_word=$2
7727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7729 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7730   echo $ECHO_N "(cached) $ECHO_C" >&6
7731 else
7732   case $OCAMLDOC in
7733   [\\/]* | ?:[\\/]*)
7734   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7735   ;;
7736   *)
7737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738 for as_dir in $PATH
7739 do
7740   IFS=$as_save_IFS
7741   test -z "$as_dir" && as_dir=.
7742   for ac_exec_ext in '' $ac_executable_extensions; do
7743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7744     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7746     break 2
7747   fi
7748 done
7749 done
7750 IFS=$as_save_IFS
7751
7752   ;;
7753 esac
7754 fi
7755 OCAMLDOC=$ac_cv_path_OCAMLDOC
7756 if test -n "$OCAMLDOC"; then
7757   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7758 echo "${ECHO_T}$OCAMLDOC" >&6; }
7759 else
7760   { echo "$as_me:$LINENO: result: no" >&5
7761 echo "${ECHO_T}no" >&6; }
7762 fi
7763
7764
7765   test -n "$OCAMLDOC" && break
7766 done
7767
7768 for ac_prog in gas as
7769 do
7770   # Extract the first word of "$ac_prog", so it can be a program name with args.
7771 set dummy $ac_prog; ac_word=$2
7772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7774 if test "${ac_cv_path_GAS+set}" = set; then
7775   echo $ECHO_N "(cached) $ECHO_C" >&6
7776 else
7777   case $GAS in
7778   [\\/]* | ?:[\\/]*)
7779   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7780   ;;
7781   *)
7782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 for as_dir in $PATH
7784 do
7785   IFS=$as_save_IFS
7786   test -z "$as_dir" && as_dir=.
7787   for ac_exec_ext in '' $ac_executable_extensions; do
7788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7789     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7790     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7791     break 2
7792   fi
7793 done
7794 done
7795 IFS=$as_save_IFS
7796
7797   ;;
7798 esac
7799 fi
7800 GAS=$ac_cv_path_GAS
7801 if test -n "$GAS"; then
7802   { echo "$as_me:$LINENO: result: $GAS" >&5
7803 echo "${ECHO_T}$GAS" >&6; }
7804 else
7805   { echo "$as_me:$LINENO: result: no" >&5
7806 echo "${ECHO_T}no" >&6; }
7807 fi
7808
7809
7810   test -n "$GAS" && break
7811 done
7812
7813
7814 { echo "$as_me:$LINENO: checking for linker version" >&5
7815 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7816 if test "${llvm_cv_link_version+set}" = set; then
7817   echo $ECHO_N "(cached) $ECHO_C" >&6
7818 else
7819
7820    version_string="$(ld -v 2>&1 | head -1)"
7821
7822    # Check for ld64.
7823    if (echo "$version_string" | grep -q "ld64"); then
7824      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7825    else
7826      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7827    fi
7828
7829 fi
7830 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7831 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7832
7833 cat >>confdefs.h <<_ACEOF
7834 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7835 _ACEOF
7836
7837
7838
7839 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7840 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7841 if test "${llvm_cv_link_use_r+set}" = set; then
7842   echo $ECHO_N "(cached) $ECHO_C" >&6
7843 else
7844    ac_ext=c
7845 ac_cpp='$CPP $CPPFLAGS'
7846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7849
7850   oldcflags="$CFLAGS"
7851   CFLAGS="$CFLAGS -Wl,-R."
7852   cat >conftest.$ac_ext <<_ACEOF
7853 /* confdefs.h.  */
7854 _ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h.  */
7858
7859 int
7860 main ()
7861 {
7862
7863   ;
7864   return 0;
7865 }
7866 _ACEOF
7867 rm -f conftest.$ac_objext conftest$ac_exeext
7868 if { (ac_try="$ac_link"
7869 case "(($ac_try" in
7870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871   *) ac_try_echo=$ac_try;;
7872 esac
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874   (eval "$ac_link") 2>conftest.er1
7875   ac_status=$?
7876   grep -v '^ *+' conftest.er1 >conftest.err
7877   rm -f conftest.er1
7878   cat conftest.err >&5
7879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880   (exit $ac_status); } &&
7881          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7882   { (case "(($ac_try" in
7883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884   *) ac_try_echo=$ac_try;;
7885 esac
7886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887   (eval "$ac_try") 2>&5
7888   ac_status=$?
7889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890   (exit $ac_status); }; } &&
7891          { ac_try='test -s conftest$ac_exeext'
7892   { (case "(($ac_try" in
7893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7894   *) ac_try_echo=$ac_try;;
7895 esac
7896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7897   (eval "$ac_try") 2>&5
7898   ac_status=$?
7899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900   (exit $ac_status); }; }; then
7901   llvm_cv_link_use_r=yes
7902 else
7903   echo "$as_me: failed program was:" >&5
7904 sed 's/^/| /' conftest.$ac_ext >&5
7905
7906         llvm_cv_link_use_r=no
7907 fi
7908
7909 rm -f core conftest.err conftest.$ac_objext \
7910       conftest$ac_exeext conftest.$ac_ext
7911   CFLAGS="$oldcflags"
7912   ac_ext=c
7913 ac_cpp='$CPP $CPPFLAGS'
7914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7917
7918
7919 fi
7920 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7921 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7922 if test "$llvm_cv_link_use_r" = yes ; then
7923
7924 cat >>confdefs.h <<\_ACEOF
7925 #define HAVE_LINK_R 1
7926 _ACEOF
7927
7928   fi
7929
7930
7931 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7932 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7933 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7934   echo $ECHO_N "(cached) $ECHO_C" >&6
7935 else
7936    ac_ext=c
7937 ac_cpp='$CPP $CPPFLAGS'
7938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7941
7942   oldcflags="$CFLAGS"
7943   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7944   cat >conftest.$ac_ext <<_ACEOF
7945 /* confdefs.h.  */
7946 _ACEOF
7947 cat confdefs.h >>conftest.$ac_ext
7948 cat >>conftest.$ac_ext <<_ACEOF
7949 /* end confdefs.h.  */
7950
7951 int
7952 main ()
7953 {
7954
7955   ;
7956   return 0;
7957 }
7958 _ACEOF
7959 rm -f conftest.$ac_objext conftest$ac_exeext
7960 if { (ac_try="$ac_link"
7961 case "(($ac_try" in
7962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963   *) ac_try_echo=$ac_try;;
7964 esac
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966   (eval "$ac_link") 2>conftest.er1
7967   ac_status=$?
7968   grep -v '^ *+' conftest.er1 >conftest.err
7969   rm -f conftest.er1
7970   cat conftest.err >&5
7971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972   (exit $ac_status); } &&
7973          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7974   { (case "(($ac_try" in
7975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7976   *) ac_try_echo=$ac_try;;
7977 esac
7978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7979   (eval "$ac_try") 2>&5
7980   ac_status=$?
7981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982   (exit $ac_status); }; } &&
7983          { ac_try='test -s conftest$ac_exeext'
7984   { (case "(($ac_try" in
7985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7986   *) ac_try_echo=$ac_try;;
7987 esac
7988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7989   (eval "$ac_try") 2>&5
7990   ac_status=$?
7991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992   (exit $ac_status); }; }; then
7993   llvm_cv_link_use_export_dynamic=yes
7994 else
7995   echo "$as_me: failed program was:" >&5
7996 sed 's/^/| /' conftest.$ac_ext >&5
7997
7998         llvm_cv_link_use_export_dynamic=no
7999 fi
8000
8001 rm -f core conftest.err conftest.$ac_objext \
8002       conftest$ac_exeext conftest.$ac_ext
8003   CFLAGS="$oldcflags"
8004   ac_ext=c
8005 ac_cpp='$CPP $CPPFLAGS'
8006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8009
8010
8011 fi
8012 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8013 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8014 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8015
8016 cat >>confdefs.h <<\_ACEOF
8017 #define HAVE_LINK_EXPORT_DYNAMIC 1
8018 _ACEOF
8019
8020   fi
8021
8022
8023 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8024 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8025 if test "${llvm_cv_link_use_version_script+set}" = set; then
8026   echo $ECHO_N "(cached) $ECHO_C" >&6
8027 else
8028    ac_ext=c
8029 ac_cpp='$CPP $CPPFLAGS'
8030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8033
8034   oldcflags="$CFLAGS"
8035
8036   # The following code is from the autoconf manual,
8037   # "11.13: Limitations of Usual Tools".
8038   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8039   # Use mktemp if possible; otherwise fall back on mkdir,
8040   # with $RANDOM to make collisions less likely.
8041   : ${TMPDIR=/tmp}
8042   {
8043     tmp=`
8044       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8045     ` &&
8046     test -n "$tmp" && test -d "$tmp"
8047   } || {
8048     tmp=$TMPDIR/foo$$-$RANDOM
8049     (umask 077 && mkdir "$tmp")
8050   } || exit $?
8051
8052   echo "{" > "$tmp/export.map"
8053   echo "  global: main;" >> "$tmp/export.map"
8054   echo "  local: *;" >> "$tmp/export.map"
8055   echo "};" >> "$tmp/export.map"
8056
8057   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8058   cat >conftest.$ac_ext <<_ACEOF
8059 /* confdefs.h.  */
8060 _ACEOF
8061 cat confdefs.h >>conftest.$ac_ext
8062 cat >>conftest.$ac_ext <<_ACEOF
8063 /* end confdefs.h.  */
8064
8065 int
8066 main ()
8067 {
8068
8069   ;
8070   return 0;
8071 }
8072 _ACEOF
8073 rm -f conftest.$ac_objext conftest$ac_exeext
8074 if { (ac_try="$ac_link"
8075 case "(($ac_try" in
8076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8077   *) ac_try_echo=$ac_try;;
8078 esac
8079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8080   (eval "$ac_link") 2>conftest.er1
8081   ac_status=$?
8082   grep -v '^ *+' conftest.er1 >conftest.err
8083   rm -f conftest.er1
8084   cat conftest.err >&5
8085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086   (exit $ac_status); } &&
8087          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8088   { (case "(($ac_try" in
8089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8090   *) ac_try_echo=$ac_try;;
8091 esac
8092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8093   (eval "$ac_try") 2>&5
8094   ac_status=$?
8095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096   (exit $ac_status); }; } &&
8097          { ac_try='test -s conftest$ac_exeext'
8098   { (case "(($ac_try" in
8099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8100   *) ac_try_echo=$ac_try;;
8101 esac
8102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8103   (eval "$ac_try") 2>&5
8104   ac_status=$?
8105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106   (exit $ac_status); }; }; then
8107   llvm_cv_link_use_version_script=yes
8108 else
8109   echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.$ac_ext >&5
8111
8112         llvm_cv_link_use_version_script=no
8113 fi
8114
8115 rm -f core conftest.err conftest.$ac_objext \
8116       conftest$ac_exeext conftest.$ac_ext
8117   rm "$tmp/export.map"
8118   rmdir "$tmp"
8119   CFLAGS="$oldcflags"
8120   ac_ext=c
8121 ac_cpp='$CPP $CPPFLAGS'
8122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8125
8126
8127 fi
8128 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8129 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8130 if test "$llvm_cv_link_use_version_script" = yes ; then
8131   HAVE_LINK_VERSION_SCRIPT=1
8132
8133   fi
8134
8135
8136
8137
8138 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8139 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8140 if test "${ac_cv_c_const+set}" = set; then
8141   echo $ECHO_N "(cached) $ECHO_C" >&6
8142 else
8143   cat >conftest.$ac_ext <<_ACEOF
8144 /* confdefs.h.  */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h.  */
8149
8150 int
8151 main ()
8152 {
8153 /* FIXME: Include the comments suggested by Paul. */
8154 #ifndef __cplusplus
8155   /* Ultrix mips cc rejects this.  */
8156   typedef int charset[2];
8157   const charset x;
8158   /* SunOS 4.1.1 cc rejects this.  */
8159   char const *const *ccp;
8160   char **p;
8161   /* NEC SVR4.0.2 mips cc rejects this.  */
8162   struct point {int x, y;};
8163   static struct point const zero = {0,0};
8164   /* AIX XL C 1.02.0.0 rejects this.
8165      It does not let you subtract one const X* pointer from another in
8166      an arm of an if-expression whose if-part is not a constant
8167      expression */
8168   const char *g = "string";
8169   ccp = &g + (g ? g-g : 0);
8170   /* HPUX 7.0 cc rejects these. */
8171   ++ccp;
8172   p = (char**) ccp;
8173   ccp = (char const *const *) p;
8174   { /* SCO 3.2v4 cc rejects this.  */
8175     char *t;
8176     char const *s = 0 ? (char *) 0 : (char const *) 0;
8177
8178     *t++ = 0;
8179     if (s) return 0;
8180   }
8181   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8182     int x[] = {25, 17};
8183     const int *foo = &x[0];
8184     ++foo;
8185   }
8186   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8187     typedef const int *iptr;
8188     iptr p = 0;
8189     ++p;
8190   }
8191   { /* AIX XL C 1.02.0.0 rejects this saying
8192        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8193     struct s { int j; const int *ap[3]; };
8194     struct s *b; b->j = 5;
8195   }
8196   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8197     const int foo = 10;
8198     if (!foo) return 0;
8199   }
8200   return !x[0] && !zero.x;
8201 #endif
8202
8203   ;
8204   return 0;
8205 }
8206 _ACEOF
8207 rm -f conftest.$ac_objext
8208 if { (ac_try="$ac_compile"
8209 case "(($ac_try" in
8210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211   *) ac_try_echo=$ac_try;;
8212 esac
8213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214   (eval "$ac_compile") 2>conftest.er1
8215   ac_status=$?
8216   grep -v '^ *+' conftest.er1 >conftest.err
8217   rm -f conftest.er1
8218   cat conftest.err >&5
8219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220   (exit $ac_status); } &&
8221          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8222   { (case "(($ac_try" in
8223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8224   *) ac_try_echo=$ac_try;;
8225 esac
8226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8227   (eval "$ac_try") 2>&5
8228   ac_status=$?
8229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230   (exit $ac_status); }; } &&
8231          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8241   ac_cv_c_const=yes
8242 else
8243   echo "$as_me: failed program was:" >&5
8244 sed 's/^/| /' conftest.$ac_ext >&5
8245
8246         ac_cv_c_const=no
8247 fi
8248
8249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8250 fi
8251 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8252 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8253 if test $ac_cv_c_const = no; then
8254
8255 cat >>confdefs.h <<\_ACEOF
8256 #define const
8257 _ACEOF
8258
8259 fi
8260
8261
8262
8263
8264
8265
8266 ac_header_dirent=no
8267 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8268   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8269 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8270 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8272   echo $ECHO_N "(cached) $ECHO_C" >&6
8273 else
8274   cat >conftest.$ac_ext <<_ACEOF
8275 /* confdefs.h.  */
8276 _ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h.  */
8280 #include <sys/types.h>
8281 #include <$ac_hdr>
8282
8283 int
8284 main ()
8285 {
8286 if ((DIR *) 0)
8287 return 0;
8288   ;
8289   return 0;
8290 }
8291 _ACEOF
8292 rm -f conftest.$ac_objext
8293 if { (ac_try="$ac_compile"
8294 case "(($ac_try" in
8295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296   *) ac_try_echo=$ac_try;;
8297 esac
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299   (eval "$ac_compile") 2>conftest.er1
8300   ac_status=$?
8301   grep -v '^ *+' conftest.er1 >conftest.err
8302   rm -f conftest.er1
8303   cat conftest.err >&5
8304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305   (exit $ac_status); } &&
8306          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8307   { (case "(($ac_try" in
8308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8309   *) ac_try_echo=$ac_try;;
8310 esac
8311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8312   (eval "$ac_try") 2>&5
8313   ac_status=$?
8314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315   (exit $ac_status); }; } &&
8316          { ac_try='test -s conftest.$ac_objext'
8317   { (case "(($ac_try" in
8318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8319   *) ac_try_echo=$ac_try;;
8320 esac
8321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8322   (eval "$ac_try") 2>&5
8323   ac_status=$?
8324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325   (exit $ac_status); }; }; then
8326   eval "$as_ac_Header=yes"
8327 else
8328   echo "$as_me: failed program was:" >&5
8329 sed 's/^/| /' conftest.$ac_ext >&5
8330
8331         eval "$as_ac_Header=no"
8332 fi
8333
8334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8335 fi
8336 ac_res=`eval echo '${'$as_ac_Header'}'`
8337                { echo "$as_me:$LINENO: result: $ac_res" >&5
8338 echo "${ECHO_T}$ac_res" >&6; }
8339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8340   cat >>confdefs.h <<_ACEOF
8341 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8342 _ACEOF
8343
8344 ac_header_dirent=$ac_hdr; break
8345 fi
8346
8347 done
8348 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8349 if test $ac_header_dirent = dirent.h; then
8350   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8351 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8352 if test "${ac_cv_search_opendir+set}" = set; then
8353   echo $ECHO_N "(cached) $ECHO_C" >&6
8354 else
8355   ac_func_search_save_LIBS=$LIBS
8356 cat >conftest.$ac_ext <<_ACEOF
8357 /* confdefs.h.  */
8358 _ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h.  */
8362
8363 /* Override any GCC internal prototype to avoid an error.
8364    Use char because int might match the return type of a GCC
8365    builtin and then its argument prototype would still apply.  */
8366 #ifdef __cplusplus
8367 extern "C"
8368 #endif
8369 char opendir ();
8370 int
8371 main ()
8372 {
8373 return opendir ();
8374   ;
8375   return 0;
8376 }
8377 _ACEOF
8378 for ac_lib in '' dir; do
8379   if test -z "$ac_lib"; then
8380     ac_res="none required"
8381   else
8382     ac_res=-l$ac_lib
8383     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8384   fi
8385   rm -f conftest.$ac_objext conftest$ac_exeext
8386 if { (ac_try="$ac_link"
8387 case "(($ac_try" in
8388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389   *) ac_try_echo=$ac_try;;
8390 esac
8391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392   (eval "$ac_link") 2>conftest.er1
8393   ac_status=$?
8394   grep -v '^ *+' conftest.er1 >conftest.err
8395   rm -f conftest.er1
8396   cat conftest.err >&5
8397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398   (exit $ac_status); } &&
8399          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8400   { (case "(($ac_try" in
8401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402   *) ac_try_echo=$ac_try;;
8403 esac
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405   (eval "$ac_try") 2>&5
8406   ac_status=$?
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); }; } &&
8409          { ac_try='test -s conftest$ac_exeext'
8410   { (case "(($ac_try" in
8411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412   *) ac_try_echo=$ac_try;;
8413 esac
8414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415   (eval "$ac_try") 2>&5
8416   ac_status=$?
8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   (exit $ac_status); }; }; then
8419   ac_cv_search_opendir=$ac_res
8420 else
8421   echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8423
8424
8425 fi
8426
8427 rm -f core conftest.err conftest.$ac_objext \
8428       conftest$ac_exeext
8429   if test "${ac_cv_search_opendir+set}" = set; then
8430   break
8431 fi
8432 done
8433 if test "${ac_cv_search_opendir+set}" = set; then
8434   :
8435 else
8436   ac_cv_search_opendir=no
8437 fi
8438 rm conftest.$ac_ext
8439 LIBS=$ac_func_search_save_LIBS
8440 fi
8441 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8442 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8443 ac_res=$ac_cv_search_opendir
8444 if test "$ac_res" != no; then
8445   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8446
8447 fi
8448
8449 else
8450   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8451 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8452 if test "${ac_cv_search_opendir+set}" = set; then
8453   echo $ECHO_N "(cached) $ECHO_C" >&6
8454 else
8455   ac_func_search_save_LIBS=$LIBS
8456 cat >conftest.$ac_ext <<_ACEOF
8457 /* confdefs.h.  */
8458 _ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h.  */
8462
8463 /* Override any GCC internal prototype to avoid an error.
8464    Use char because int might match the return type of a GCC
8465    builtin and then its argument prototype would still apply.  */
8466 #ifdef __cplusplus
8467 extern "C"
8468 #endif
8469 char opendir ();
8470 int
8471 main ()
8472 {
8473 return opendir ();
8474   ;
8475   return 0;
8476 }
8477 _ACEOF
8478 for ac_lib in '' x; do
8479   if test -z "$ac_lib"; then
8480     ac_res="none required"
8481   else
8482     ac_res=-l$ac_lib
8483     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8484   fi
8485   rm -f conftest.$ac_objext conftest$ac_exeext
8486 if { (ac_try="$ac_link"
8487 case "(($ac_try" in
8488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489   *) ac_try_echo=$ac_try;;
8490 esac
8491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492   (eval "$ac_link") 2>conftest.er1
8493   ac_status=$?
8494   grep -v '^ *+' conftest.er1 >conftest.err
8495   rm -f conftest.er1
8496   cat conftest.err >&5
8497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498   (exit $ac_status); } &&
8499          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8500   { (case "(($ac_try" in
8501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8502   *) ac_try_echo=$ac_try;;
8503 esac
8504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8505   (eval "$ac_try") 2>&5
8506   ac_status=$?
8507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508   (exit $ac_status); }; } &&
8509          { ac_try='test -s conftest$ac_exeext'
8510   { (case "(($ac_try" in
8511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8512   *) ac_try_echo=$ac_try;;
8513 esac
8514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8515   (eval "$ac_try") 2>&5
8516   ac_status=$?
8517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518   (exit $ac_status); }; }; then
8519   ac_cv_search_opendir=$ac_res
8520 else
8521   echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8523
8524
8525 fi
8526
8527 rm -f core conftest.err conftest.$ac_objext \
8528       conftest$ac_exeext
8529   if test "${ac_cv_search_opendir+set}" = set; then
8530   break
8531 fi
8532 done
8533 if test "${ac_cv_search_opendir+set}" = set; then
8534   :
8535 else
8536   ac_cv_search_opendir=no
8537 fi
8538 rm conftest.$ac_ext
8539 LIBS=$ac_func_search_save_LIBS
8540 fi
8541 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8542 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8543 ac_res=$ac_cv_search_opendir
8544 if test "$ac_res" != no; then
8545   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8546
8547 fi
8548
8549 fi
8550
8551
8552 for ac_header in dlfcn.h
8553 do
8554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8556   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8559   echo $ECHO_N "(cached) $ECHO_C" >&6
8560 fi
8561 ac_res=`eval echo '${'$as_ac_Header'}'`
8562                { echo "$as_me:$LINENO: result: $ac_res" >&5
8563 echo "${ECHO_T}$ac_res" >&6; }
8564 else
8565   # Is the header compilable?
8566 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8567 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8568 cat >conftest.$ac_ext <<_ACEOF
8569 /* confdefs.h.  */
8570 _ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h.  */
8574 $ac_includes_default
8575 #include <$ac_header>
8576 _ACEOF
8577 rm -f conftest.$ac_objext
8578 if { (ac_try="$ac_compile"
8579 case "(($ac_try" in
8580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581   *) ac_try_echo=$ac_try;;
8582 esac
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584   (eval "$ac_compile") 2>conftest.er1
8585   ac_status=$?
8586   grep -v '^ *+' conftest.er1 >conftest.err
8587   rm -f conftest.er1
8588   cat conftest.err >&5
8589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590   (exit $ac_status); } &&
8591          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8592   { (case "(($ac_try" in
8593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594   *) ac_try_echo=$ac_try;;
8595 esac
8596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8597   (eval "$ac_try") 2>&5
8598   ac_status=$?
8599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600   (exit $ac_status); }; } &&
8601          { ac_try='test -s conftest.$ac_objext'
8602   { (case "(($ac_try" in
8603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604   *) ac_try_echo=$ac_try;;
8605 esac
8606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607   (eval "$ac_try") 2>&5
8608   ac_status=$?
8609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610   (exit $ac_status); }; }; then
8611   ac_header_compiler=yes
8612 else
8613   echo "$as_me: failed program was:" >&5
8614 sed 's/^/| /' conftest.$ac_ext >&5
8615
8616         ac_header_compiler=no
8617 fi
8618
8619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8621 echo "${ECHO_T}$ac_header_compiler" >&6; }
8622
8623 # Is the header present?
8624 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8626 cat >conftest.$ac_ext <<_ACEOF
8627 /* confdefs.h.  */
8628 _ACEOF
8629 cat confdefs.h >>conftest.$ac_ext
8630 cat >>conftest.$ac_ext <<_ACEOF
8631 /* end confdefs.h.  */
8632 #include <$ac_header>
8633 _ACEOF
8634 if { (ac_try="$ac_cpp conftest.$ac_ext"
8635 case "(($ac_try" in
8636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637   *) ac_try_echo=$ac_try;;
8638 esac
8639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8640   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8641   ac_status=$?
8642   grep -v '^ *+' conftest.er1 >conftest.err
8643   rm -f conftest.er1
8644   cat conftest.err >&5
8645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646   (exit $ac_status); } >/dev/null; then
8647   if test -s conftest.err; then
8648     ac_cpp_err=$ac_c_preproc_warn_flag
8649     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8650   else
8651     ac_cpp_err=
8652   fi
8653 else
8654   ac_cpp_err=yes
8655 fi
8656 if test -z "$ac_cpp_err"; then
8657   ac_header_preproc=yes
8658 else
8659   echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.$ac_ext >&5
8661
8662   ac_header_preproc=no
8663 fi
8664
8665 rm -f conftest.err conftest.$ac_ext
8666 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8667 echo "${ECHO_T}$ac_header_preproc" >&6; }
8668
8669 # So?  What about this header?
8670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8671   yes:no: )
8672     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8673 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8674     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8675 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8676     ac_header_preproc=yes
8677     ;;
8678   no:yes:* )
8679     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8680 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8681     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8682 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8683     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8684 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8685     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8686 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8687     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8688 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8689     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8690 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8691     ( cat <<\_ASBOX
8692 ## ------------------------------------ ##
8693 ## Report this to http://llvm.org/bugs/ ##
8694 ## ------------------------------------ ##
8695 _ASBOX
8696      ) | sed "s/^/$as_me: WARNING:     /" >&2
8697     ;;
8698 esac
8699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8702   echo $ECHO_N "(cached) $ECHO_C" >&6
8703 else
8704   eval "$as_ac_Header=\$ac_header_preproc"
8705 fi
8706 ac_res=`eval echo '${'$as_ac_Header'}'`
8707                { echo "$as_me:$LINENO: result: $ac_res" >&5
8708 echo "${ECHO_T}$ac_res" >&6; }
8709
8710 fi
8711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8712   cat >>confdefs.h <<_ACEOF
8713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8714 _ACEOF
8715
8716 fi
8717
8718 done
8719
8720 # Check whether --enable-ltdl-install was given.
8721 if test "${enable_ltdl_install+set}" = set; then
8722   enableval=$enable_ltdl_install;
8723 fi
8724
8725
8726
8727
8728 if test x"${enable_ltdl_install-no}" != xno; then
8729   INSTALL_LTDL_TRUE=
8730   INSTALL_LTDL_FALSE='#'
8731 else
8732   INSTALL_LTDL_TRUE='#'
8733   INSTALL_LTDL_FALSE=
8734 fi
8735
8736
8737
8738 if test x"${enable_ltdl_convenience-no}" != xno; then
8739   CONVENIENCE_LTDL_TRUE=
8740   CONVENIENCE_LTDL_FALSE='#'
8741 else
8742   CONVENIENCE_LTDL_TRUE='#'
8743   CONVENIENCE_LTDL_FALSE=
8744 fi
8745
8746
8747 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8748 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8749 library_names_spec=
8750 libname_spec='lib$name'
8751 soname_spec=
8752 shrext_cmds=".so"
8753 postinstall_cmds=
8754 postuninstall_cmds=
8755 finish_cmds=
8756 finish_eval=
8757 shlibpath_var=
8758 shlibpath_overrides_runpath=unknown
8759 version_type=none
8760 dynamic_linker="$host_os ld.so"
8761 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8762 if test "$GCC" = yes; then
8763   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8764   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8765     # if the path contains ";" then we assume it to be the separator
8766     # otherwise default to the standard path separator (i.e. ":") - it is
8767     # assumed that no part of a normal pathname contains ";" but that should
8768     # okay in the real world where ";" in dirpaths is itself problematic.
8769     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8770   else
8771     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8772   fi
8773 else
8774   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8775 fi
8776 need_lib_prefix=unknown
8777 hardcode_into_libs=no
8778
8779 # when you set need_version to no, make sure it does not cause -set_version
8780 # flags to be left without arguments
8781 need_version=unknown
8782
8783 case $host_os in
8784 aix3*)
8785   version_type=linux
8786   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8787   shlibpath_var=LIBPATH
8788
8789   # AIX 3 has no versioning support, so we append a major version to the name.
8790   soname_spec='${libname}${release}${shared_ext}$major'
8791   ;;
8792
8793 aix4* | aix5*)
8794   version_type=linux
8795   need_lib_prefix=no
8796   need_version=no
8797   hardcode_into_libs=yes
8798   if test "$host_cpu" = ia64; then
8799     # AIX 5 supports IA64
8800     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8801     shlibpath_var=LD_LIBRARY_PATH
8802   else
8803     # With GCC up to 2.95.x, collect2 would create an import file
8804     # for dependence libraries.  The import file would start with
8805     # the line `#! .'.  This would cause the generated library to
8806     # depend on `.', always an invalid library.  This was fixed in
8807     # development snapshots of GCC prior to 3.0.
8808     case $host_os in
8809       aix4 | aix4.[01] | aix4.[01].*)
8810       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8811            echo ' yes '
8812            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8813         :
8814       else
8815         can_build_shared=no
8816       fi
8817       ;;
8818     esac
8819     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8820     # soname into executable. Probably we can add versioning support to
8821     # collect2, so additional links can be useful in future.
8822     if test "$aix_use_runtimelinking" = yes; then
8823       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8824       # instead of lib<name>.a to let people know that these are not
8825       # typical AIX shared libraries.
8826       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8827     else
8828       # We preserve .a as extension for shared libraries through AIX4.2
8829       # and later when we are not doing run time linking.
8830       library_names_spec='${libname}${release}.a $libname.a'
8831       soname_spec='${libname}${release}${shared_ext}$major'
8832     fi
8833     shlibpath_var=LIBPATH
8834   fi
8835   ;;
8836
8837 amigaos*)
8838   library_names_spec='$libname.ixlibrary $libname.a'
8839   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8840   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'
8841   ;;
8842
8843 beos*)
8844   library_names_spec='${libname}${shared_ext}'
8845   dynamic_linker="$host_os ld.so"
8846   shlibpath_var=LIBRARY_PATH
8847   ;;
8848
8849 bsdi[45]*)
8850   version_type=linux
8851   need_version=no
8852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8853   soname_spec='${libname}${release}${shared_ext}$major'
8854   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8855   shlibpath_var=LD_LIBRARY_PATH
8856   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8857   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8858   # the default ld.so.conf also contains /usr/contrib/lib and
8859   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8860   # libtool to hard-code these into programs
8861   ;;
8862
8863 cygwin* | mingw* | pw32*)
8864   version_type=windows
8865   shrext_cmds=".dll"
8866   need_version=no
8867   need_lib_prefix=no
8868
8869   case $GCC,$host_os in
8870   yes,cygwin* | yes,mingw* | yes,pw32*)
8871     library_names_spec='$libname.dll.a'
8872     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8873     postinstall_cmds='base_file=`basename \${file}`~
8874       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8875       dldir=$destdir/`dirname \$dlpath`~
8876       test -d \$dldir || mkdir -p \$dldir~
8877       $install_prog $dir/$dlname \$dldir/$dlname~
8878       chmod a+x \$dldir/$dlname'
8879     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8880       dlpath=$dir/\$dldll~
8881        $rm \$dlpath'
8882     shlibpath_overrides_runpath=yes
8883
8884     case $host_os in
8885     cygwin*)
8886       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8887       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8888       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8889       ;;
8890     mingw*)
8891       # MinGW DLLs use traditional 'lib' prefix
8892       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8893       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8894       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8895         # It is most probably a Windows format PATH printed by
8896         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8897         # path with ; separators, and with drive letters. We can handle the
8898         # drive letters (cygwin fileutils understands them), so leave them,
8899         # especially as we might pass files found there to a mingw objdump,
8900         # which wouldn't understand a cygwinified path. Ahh.
8901         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8902       else
8903         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8904       fi
8905       ;;
8906     pw32*)
8907       # pw32 DLLs use 'pw' prefix rather than 'lib'
8908       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8909       ;;
8910     esac
8911     ;;
8912
8913   *)
8914     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8915     ;;
8916   esac
8917   dynamic_linker='Win32 ld.exe'
8918   # FIXME: first we should search . and the directory the executable is in
8919   shlibpath_var=PATH
8920   ;;
8921
8922 darwin* | rhapsody*)
8923   dynamic_linker="$host_os dyld"
8924   version_type=darwin
8925   need_lib_prefix=no
8926   need_version=no
8927   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8928   soname_spec='${libname}${release}${major}$shared_ext'
8929   shlibpath_overrides_runpath=yes
8930   shlibpath_var=DYLD_LIBRARY_PATH
8931   shrext_cmds='.dylib'
8932   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8933   if test "$GCC" = yes; then
8934     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"`
8935   else
8936     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8937   fi
8938   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8939   ;;
8940
8941 dgux*)
8942   version_type=linux
8943   need_lib_prefix=no
8944   need_version=no
8945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8946   soname_spec='${libname}${release}${shared_ext}$major'
8947   shlibpath_var=LD_LIBRARY_PATH
8948   ;;
8949
8950 freebsd1.*)
8951   dynamic_linker=no
8952   ;;
8953
8954 kfreebsd*-gnu)
8955   version_type=linux
8956   need_lib_prefix=no
8957   need_version=no
8958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8959   soname_spec='${libname}${release}${shared_ext}$major'
8960   shlibpath_var=LD_LIBRARY_PATH
8961   shlibpath_overrides_runpath=no
8962   hardcode_into_libs=yes
8963   dynamic_linker='GNU ld.so'
8964   ;;
8965
8966 freebsd* | dragonfly*)
8967   # DragonFly does not have aout.  When/if they implement a new
8968   # versioning mechanism, adjust this.
8969   if test -x /usr/bin/objformat; then
8970     objformat=`/usr/bin/objformat`
8971   else
8972     case $host_os in
8973     freebsd[123].*) objformat=aout ;;
8974     *) objformat=elf ;;
8975     esac
8976   fi
8977   version_type=freebsd-$objformat
8978   case $version_type in
8979     freebsd-elf*)
8980       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8981       need_version=no
8982       need_lib_prefix=no
8983       ;;
8984     freebsd-*)
8985       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8986       need_version=yes
8987       ;;
8988   esac
8989   shlibpath_var=LD_LIBRARY_PATH
8990   case $host_os in
8991   freebsd2.*)
8992     shlibpath_overrides_runpath=yes
8993     ;;
8994   freebsd3.[01]* | freebsdelf3.[01]*)
8995     shlibpath_overrides_runpath=yes
8996     hardcode_into_libs=yes
8997     ;;
8998   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8999   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9000     shlibpath_overrides_runpath=no
9001     hardcode_into_libs=yes
9002     ;;
9003   freebsd*) # from 4.6 on
9004     shlibpath_overrides_runpath=yes
9005     hardcode_into_libs=yes
9006     ;;
9007   esac
9008   ;;
9009
9010 gnu*)
9011   version_type=linux
9012   need_lib_prefix=no
9013   need_version=no
9014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9015   soname_spec='${libname}${release}${shared_ext}$major'
9016   shlibpath_var=LD_LIBRARY_PATH
9017   hardcode_into_libs=yes
9018   ;;
9019
9020 hpux9* | hpux10* | hpux11*)
9021   # Give a soname corresponding to the major version so that dld.sl refuses to
9022   # link against other versions.
9023   version_type=sunos
9024   need_lib_prefix=no
9025   need_version=no
9026   case $host_cpu in
9027   ia64*)
9028     shrext_cmds='.so'
9029     hardcode_into_libs=yes
9030     dynamic_linker="$host_os dld.so"
9031     shlibpath_var=LD_LIBRARY_PATH
9032     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9033     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9034     soname_spec='${libname}${release}${shared_ext}$major'
9035     if test "X$HPUX_IA64_MODE" = X32; then
9036       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9037     else
9038       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9039     fi
9040     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9041     ;;
9042    hppa*64*)
9043      shrext_cmds='.sl'
9044      hardcode_into_libs=yes
9045      dynamic_linker="$host_os dld.sl"
9046      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9047      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9048      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9049      soname_spec='${libname}${release}${shared_ext}$major'
9050      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9051      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9052      ;;
9053    *)
9054     shrext_cmds='.sl'
9055     dynamic_linker="$host_os dld.sl"
9056     shlibpath_var=SHLIB_PATH
9057     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
9061   esac
9062   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9063   postinstall_cmds='chmod 555 $lib'
9064   ;;
9065
9066 interix3*)
9067   version_type=linux
9068   need_lib_prefix=no
9069   need_version=no
9070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9071   soname_spec='${libname}${release}${shared_ext}$major'
9072   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9073   shlibpath_var=LD_LIBRARY_PATH
9074   shlibpath_overrides_runpath=no
9075   hardcode_into_libs=yes
9076   ;;
9077
9078 irix5* | irix6* | nonstopux*)
9079   case $host_os in
9080     nonstopux*) version_type=nonstopux ;;
9081     *)
9082         if test "$lt_cv_prog_gnu_ld" = yes; then
9083                 version_type=linux
9084         else
9085                 version_type=irix
9086         fi ;;
9087   esac
9088   need_lib_prefix=no
9089   need_version=no
9090   soname_spec='${libname}${release}${shared_ext}$major'
9091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9092   case $host_os in
9093   irix5* | nonstopux*)
9094     libsuff= shlibsuff=
9095     ;;
9096   *)
9097     case $LD in # libtool.m4 will add one of these switches to LD
9098     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9099       libsuff= shlibsuff= libmagic=32-bit;;
9100     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9101       libsuff=32 shlibsuff=N32 libmagic=N32;;
9102     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9103       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9104     *) libsuff= shlibsuff= libmagic=never-match;;
9105     esac
9106     ;;
9107   esac
9108   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9109   shlibpath_overrides_runpath=no
9110   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9111   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9112   hardcode_into_libs=yes
9113   ;;
9114
9115 # No shared lib support for Linux oldld, aout, or coff.
9116 linux*oldld* | linux*aout* | linux*coff*)
9117   dynamic_linker=no
9118   ;;
9119
9120 # This must be Linux ELF.
9121 linux*)
9122   version_type=linux
9123   need_lib_prefix=no
9124   need_version=no
9125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9126   soname_spec='${libname}${release}${shared_ext}$major'
9127   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9128   shlibpath_var=LD_LIBRARY_PATH
9129   shlibpath_overrides_runpath=no
9130   # This implies no fast_install, which is unacceptable.
9131   # Some rework will be needed to allow for fast_install
9132   # before this can be enabled.
9133   hardcode_into_libs=yes
9134
9135   # Append ld.so.conf contents to the search path
9136   if test -f /etc/ld.so.conf; then
9137     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' ' '`
9138     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9139   fi
9140
9141   # We used to test for /lib/ld.so.1 and disable shared libraries on
9142   # powerpc, because MkLinux only supported shared libraries with the
9143   # GNU dynamic linker.  Since this was broken with cross compilers,
9144   # most powerpc-linux boxes support dynamic linking these days and
9145   # people can always --disable-shared, the test was removed, and we
9146   # assume the GNU/Linux dynamic linker is in use.
9147   dynamic_linker='GNU/Linux ld.so'
9148   ;;
9149
9150 knetbsd*-gnu)
9151   version_type=linux
9152   need_lib_prefix=no
9153   need_version=no
9154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9155   soname_spec='${libname}${release}${shared_ext}$major'
9156   shlibpath_var=LD_LIBRARY_PATH
9157   shlibpath_overrides_runpath=no
9158   hardcode_into_libs=yes
9159   dynamic_linker='GNU ld.so'
9160   ;;
9161
9162 netbsd*)
9163   version_type=sunos
9164   need_lib_prefix=no
9165   need_version=no
9166   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9167     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9168     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9169     dynamic_linker='NetBSD (a.out) ld.so'
9170   else
9171     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9172     soname_spec='${libname}${release}${shared_ext}$major'
9173     dynamic_linker='NetBSD ld.elf_so'
9174   fi
9175   shlibpath_var=LD_LIBRARY_PATH
9176   shlibpath_overrides_runpath=yes
9177   hardcode_into_libs=yes
9178   ;;
9179
9180 newsos6)
9181   version_type=linux
9182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183   shlibpath_var=LD_LIBRARY_PATH
9184   shlibpath_overrides_runpath=yes
9185   ;;
9186
9187 nto-qnx*)
9188   version_type=linux
9189   need_lib_prefix=no
9190   need_version=no
9191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9192   soname_spec='${libname}${release}${shared_ext}$major'
9193   shlibpath_var=LD_LIBRARY_PATH
9194   shlibpath_overrides_runpath=yes
9195   ;;
9196
9197 openbsd*)
9198   version_type=sunos
9199   sys_lib_dlsearch_path_spec="/usr/lib"
9200   need_lib_prefix=no
9201   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9202   case $host_os in
9203     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9204     *)                         need_version=no  ;;
9205   esac
9206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9207   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9208   shlibpath_var=LD_LIBRARY_PATH
9209   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9210     case $host_os in
9211       openbsd2.[89] | openbsd2.[89].*)
9212         shlibpath_overrides_runpath=no
9213         ;;
9214       *)
9215         shlibpath_overrides_runpath=yes
9216         ;;
9217       esac
9218   else
9219     shlibpath_overrides_runpath=yes
9220   fi
9221   ;;
9222
9223 os2*)
9224   libname_spec='$name'
9225   shrext_cmds=".dll"
9226   need_lib_prefix=no
9227   library_names_spec='$libname${shared_ext} $libname.a'
9228   dynamic_linker='OS/2 ld.exe'
9229   shlibpath_var=LIBPATH
9230   ;;
9231
9232 osf3* | osf4* | osf5*)
9233   version_type=osf
9234   need_lib_prefix=no
9235   need_version=no
9236   soname_spec='${libname}${release}${shared_ext}$major'
9237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9238   shlibpath_var=LD_LIBRARY_PATH
9239   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9240   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9241   ;;
9242
9243 solaris*)
9244   version_type=linux
9245   need_lib_prefix=no
9246   need_version=no
9247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9248   soname_spec='${libname}${release}${shared_ext}$major'
9249   shlibpath_var=LD_LIBRARY_PATH
9250   shlibpath_overrides_runpath=yes
9251   hardcode_into_libs=yes
9252   # ldd complains unless libraries are executable
9253   postinstall_cmds='chmod +x $lib'
9254   ;;
9255
9256 sunos4*)
9257   version_type=sunos
9258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9259   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9260   shlibpath_var=LD_LIBRARY_PATH
9261   shlibpath_overrides_runpath=yes
9262   if test "$with_gnu_ld" = yes; then
9263     need_lib_prefix=no
9264   fi
9265   need_version=yes
9266   ;;
9267
9268 sysv4 | sysv4.3*)
9269   version_type=linux
9270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9271   soname_spec='${libname}${release}${shared_ext}$major'
9272   shlibpath_var=LD_LIBRARY_PATH
9273   case $host_vendor in
9274     sni)
9275       shlibpath_overrides_runpath=no
9276       need_lib_prefix=no
9277       export_dynamic_flag_spec='${wl}-Blargedynsym'
9278       runpath_var=LD_RUN_PATH
9279       ;;
9280     siemens)
9281       need_lib_prefix=no
9282       ;;
9283     motorola)
9284       need_lib_prefix=no
9285       need_version=no
9286       shlibpath_overrides_runpath=no
9287       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9288       ;;
9289   esac
9290   ;;
9291
9292 sysv4*MP*)
9293   if test -d /usr/nec ;then
9294     version_type=linux
9295     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9296     soname_spec='$libname${shared_ext}.$major'
9297     shlibpath_var=LD_LIBRARY_PATH
9298   fi
9299   ;;
9300
9301 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9302   version_type=freebsd-elf
9303   need_lib_prefix=no
9304   need_version=no
9305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9306   soname_spec='${libname}${release}${shared_ext}$major'
9307   shlibpath_var=LD_LIBRARY_PATH
9308   hardcode_into_libs=yes
9309   if test "$with_gnu_ld" = yes; then
9310     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9311     shlibpath_overrides_runpath=no
9312   else
9313     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9314     shlibpath_overrides_runpath=yes
9315     case $host_os in
9316       sco3.2v5*)
9317         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9318         ;;
9319     esac
9320   fi
9321   sys_lib_dlsearch_path_spec='/usr/lib'
9322   ;;
9323
9324 uts4*)
9325   version_type=linux
9326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9327   soname_spec='${libname}${release}${shared_ext}$major'
9328   shlibpath_var=LD_LIBRARY_PATH
9329   ;;
9330
9331 *)
9332   dynamic_linker=no
9333   ;;
9334 esac
9335 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9336 echo "${ECHO_T}$dynamic_linker" >&6; }
9337 test "$dynamic_linker" = no && can_build_shared=no
9338
9339 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9340 if test "$GCC" = yes; then
9341   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9342 fi
9343
9344
9345 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9346 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9347 if test "${libltdl_cv_shlibext+set}" = set; then
9348   echo $ECHO_N "(cached) $ECHO_C" >&6
9349 else
9350
9351 module=yes
9352 eval libltdl_cv_shlibext=$shrext_cmds
9353
9354 fi
9355 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9356 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9357 if test -n "$libltdl_cv_shlibext"; then
9358
9359 cat >>confdefs.h <<_ACEOF
9360 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9361 _ACEOF
9362
9363 fi
9364
9365
9366 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9367 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9368 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9369   echo $ECHO_N "(cached) $ECHO_C" >&6
9370 else
9371   libltdl_cv_shlibpath_var="$shlibpath_var"
9372 fi
9373 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9374 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9375 if test -n "$libltdl_cv_shlibpath_var"; then
9376
9377 cat >>confdefs.h <<_ACEOF
9378 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9379 _ACEOF
9380
9381 fi
9382
9383
9384 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9385 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9386 if test "${libltdl_cv_sys_search_path+set}" = set; then
9387   echo $ECHO_N "(cached) $ECHO_C" >&6
9388 else
9389   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9390 fi
9391 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9392 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9393 if test -n "$libltdl_cv_sys_search_path"; then
9394   sys_search_path=
9395   for dir in $libltdl_cv_sys_search_path; do
9396     if test -z "$sys_search_path"; then
9397       sys_search_path="$dir"
9398     else
9399       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9400     fi
9401   done
9402
9403 cat >>confdefs.h <<_ACEOF
9404 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9405 _ACEOF
9406
9407 fi
9408
9409 { echo "$as_me:$LINENO: checking for objdir" >&5
9410 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9411 if test "${libltdl_cv_objdir+set}" = set; then
9412   echo $ECHO_N "(cached) $ECHO_C" >&6
9413 else
9414   libltdl_cv_objdir="$objdir"
9415   if test -n "$objdir"; then
9416     :
9417   else
9418     rm -f .libs 2>/dev/null
9419     mkdir .libs 2>/dev/null
9420     if test -d .libs; then
9421       libltdl_cv_objdir=.libs
9422     else
9423       # MS-DOS does not allow filenames that begin with a dot.
9424       libltdl_cv_objdir=_libs
9425     fi
9426   rmdir .libs 2>/dev/null
9427   fi
9428
9429 fi
9430 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9431 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9432
9433 cat >>confdefs.h <<_ACEOF
9434 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9435 _ACEOF
9436
9437
9438
9439
9440
9441
9442 # Check for command to grab the raw symbol name followed by C symbol from nm.
9443 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9444 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9445 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9446   echo $ECHO_N "(cached) $ECHO_C" >&6
9447 else
9448
9449 # These are sane defaults that work on at least a few old systems.
9450 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9451
9452 # Character class describing NM global symbol codes.
9453 symcode='[BCDEGRST]'
9454
9455 # Regexp to match symbols that can be accessed directly from C.
9456 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9457
9458 # Transform an extracted symbol line into a proper C declaration
9459 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9460
9461 # Transform an extracted symbol line into symbol name and symbol address
9462 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'"
9463
9464 # Define system-specific variables.
9465 case $host_os in
9466 aix*)
9467   symcode='[BCDT]'
9468   ;;
9469 cygwin* | mingw* | pw32*)
9470   symcode='[ABCDGISTW]'
9471   ;;
9472 hpux*) # Its linker distinguishes data from code symbols
9473   if test "$host_cpu" = ia64; then
9474     symcode='[ABCDEGRST]'
9475   fi
9476   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9477   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'"
9478   ;;
9479 linux*)
9480   if test "$host_cpu" = ia64; then
9481     symcode='[ABCDGIRSTW]'
9482     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9483     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'"
9484   fi
9485   ;;
9486 irix* | nonstopux*)
9487   symcode='[BCDEGRST]'
9488   ;;
9489 osf*)
9490   symcode='[BCDEGQRST]'
9491   ;;
9492 solaris*)
9493   symcode='[BDRT]'
9494   ;;
9495 sco3.2v5*)
9496   symcode='[DT]'
9497   ;;
9498 sysv4.2uw2*)
9499   symcode='[DT]'
9500   ;;
9501 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9502   symcode='[ABDT]'
9503   ;;
9504 sysv4)
9505   symcode='[DFNSTU]'
9506   ;;
9507 esac
9508
9509 # Handle CRLF in mingw tool chain
9510 opt_cr=
9511 case $build_os in
9512 mingw*)
9513   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9514   ;;
9515 esac
9516
9517 # If we're using GNU nm, then use its standard symbol codes.
9518 case `$NM -V 2>&1` in
9519 *GNU* | *'with BFD'*)
9520   symcode='[ABCDGIRSTW]' ;;
9521 esac
9522
9523 # Try without a prefix undercore, then with it.
9524 for ac_symprfx in "" "_"; do
9525
9526   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9527   symxfrm="\\1 $ac_symprfx\\2 \\2"
9528
9529   # Write the raw and C identifiers.
9530   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9531
9532   # Check to see that the pipe works correctly.
9533   pipe_works=no
9534
9535   rm -f conftest*
9536   cat > conftest.$ac_ext <<EOF
9537 #ifdef __cplusplus
9538 extern "C" {
9539 #endif
9540 char nm_test_var;
9541 void nm_test_func(){}
9542 #ifdef __cplusplus
9543 }
9544 #endif
9545 int main(){nm_test_var='a';nm_test_func();return(0);}
9546 EOF
9547
9548   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9549   (eval $ac_compile) 2>&5
9550   ac_status=$?
9551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552   (exit $ac_status); }; then
9553     # Now try to grab the symbols.
9554     nlist=conftest.nm
9555     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9556   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9557   ac_status=$?
9558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559   (exit $ac_status); } && test -s "$nlist"; then
9560       # Try sorting and uniquifying the output.
9561       if sort "$nlist" | uniq > "$nlist"T; then
9562         mv -f "$nlist"T "$nlist"
9563       else
9564         rm -f "$nlist"T
9565       fi
9566
9567       # Make sure that we snagged all the symbols we need.
9568       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9569         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9570           cat <<EOF > conftest.$ac_ext
9571 #ifdef __cplusplus
9572 extern "C" {
9573 #endif
9574
9575 EOF
9576           # Now generate the symbol file.
9577           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9578
9579           cat <<EOF >> conftest.$ac_ext
9580 #if defined (__STDC__) && __STDC__
9581 # define lt_ptr_t void *
9582 #else
9583 # define lt_ptr_t char *
9584 # define const
9585 #endif
9586
9587 /* The mapping between symbol names and symbols. */
9588 const struct {
9589   const char *name;
9590   lt_ptr_t address;
9591 }
9592 lt_preloaded_symbols[] =
9593 {
9594 EOF
9595           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9596           cat <<\EOF >> conftest.$ac_ext
9597   {0, (lt_ptr_t) 0}
9598 };
9599
9600 #ifdef __cplusplus
9601 }
9602 #endif
9603 EOF
9604           # Now try linking the two files.
9605           mv conftest.$ac_objext conftstm.$ac_objext
9606           lt_save_LIBS="$LIBS"
9607           lt_save_CFLAGS="$CFLAGS"
9608           LIBS="conftstm.$ac_objext"
9609           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9610           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9611   (eval $ac_link) 2>&5
9612   ac_status=$?
9613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9615             pipe_works=yes
9616           fi
9617           LIBS="$lt_save_LIBS"
9618           CFLAGS="$lt_save_CFLAGS"
9619         else
9620           echo "cannot find nm_test_func in $nlist" >&5
9621         fi
9622       else
9623         echo "cannot find nm_test_var in $nlist" >&5
9624       fi
9625     else
9626       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9627     fi
9628   else
9629     echo "$progname: failed program was:" >&5
9630     cat conftest.$ac_ext >&5
9631   fi
9632   rm -f conftest* conftst*
9633
9634   # Do not use the global_symbol_pipe unless it works.
9635   if test "$pipe_works" = yes; then
9636     break
9637   else
9638     lt_cv_sys_global_symbol_pipe=
9639   fi
9640 done
9641
9642 fi
9643
9644 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9645   lt_cv_sys_global_symbol_to_cdecl=
9646 fi
9647 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9648   { echo "$as_me:$LINENO: result: failed" >&5
9649 echo "${ECHO_T}failed" >&6; }
9650 else
9651   { echo "$as_me:$LINENO: result: ok" >&5
9652 echo "${ECHO_T}ok" >&6; }
9653 fi
9654
9655
9656 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9657 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9658 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9659   echo $ECHO_N "(cached) $ECHO_C" >&6
9660 else
9661   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9662     libltdl_cv_preloaded_symbols=yes
9663   else
9664     libltdl_cv_preloaded_symbols=no
9665   fi
9666
9667 fi
9668 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9669 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9670 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9671
9672 cat >>confdefs.h <<\_ACEOF
9673 #define HAVE_PRELOADED_SYMBOLS 1
9674 _ACEOF
9675
9676 fi
9677
9678 LIBADD_DL=
9679
9680 ac_ext=c
9681 ac_cpp='$CPP $CPPFLAGS'
9682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9685
9686
9687 { echo "$as_me:$LINENO: checking for shl_load" >&5
9688 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9689 if test "${ac_cv_func_shl_load+set}" = set; then
9690   echo $ECHO_N "(cached) $ECHO_C" >&6
9691 else
9692   cat >conftest.$ac_ext <<_ACEOF
9693 /* confdefs.h.  */
9694 _ACEOF
9695 cat confdefs.h >>conftest.$ac_ext
9696 cat >>conftest.$ac_ext <<_ACEOF
9697 /* end confdefs.h.  */
9698 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9699    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9700 #define shl_load innocuous_shl_load
9701
9702 /* System header to define __stub macros and hopefully few prototypes,
9703     which can conflict with char shl_load (); below.
9704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9705     <limits.h> exists even on freestanding compilers.  */
9706
9707 #ifdef __STDC__
9708 # include <limits.h>
9709 #else
9710 # include <assert.h>
9711 #endif
9712
9713 #undef shl_load
9714
9715 /* Override any GCC internal prototype to avoid an error.
9716    Use char because int might match the return type of a GCC
9717    builtin and then its argument prototype would still apply.  */
9718 #ifdef __cplusplus
9719 extern "C"
9720 #endif
9721 char shl_load ();
9722 /* The GNU C library defines this for functions which it implements
9723     to always fail with ENOSYS.  Some functions are actually named
9724     something starting with __ and the normal name is an alias.  */
9725 #if defined __stub_shl_load || defined __stub___shl_load
9726 choke me
9727 #endif
9728
9729 int
9730 main ()
9731 {
9732 return shl_load ();
9733   ;
9734   return 0;
9735 }
9736 _ACEOF
9737 rm -f conftest.$ac_objext conftest$ac_exeext
9738 if { (ac_try="$ac_link"
9739 case "(($ac_try" in
9740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741   *) ac_try_echo=$ac_try;;
9742 esac
9743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9744   (eval "$ac_link") 2>conftest.er1
9745   ac_status=$?
9746   grep -v '^ *+' conftest.er1 >conftest.err
9747   rm -f conftest.er1
9748   cat conftest.err >&5
9749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750   (exit $ac_status); } &&
9751          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9752   { (case "(($ac_try" in
9753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754   *) ac_try_echo=$ac_try;;
9755 esac
9756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9757   (eval "$ac_try") 2>&5
9758   ac_status=$?
9759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760   (exit $ac_status); }; } &&
9761          { ac_try='test -s conftest$ac_exeext'
9762   { (case "(($ac_try" in
9763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764   *) ac_try_echo=$ac_try;;
9765 esac
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767   (eval "$ac_try") 2>&5
9768   ac_status=$?
9769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770   (exit $ac_status); }; }; then
9771   ac_cv_func_shl_load=yes
9772 else
9773   echo "$as_me: failed program was:" >&5
9774 sed 's/^/| /' conftest.$ac_ext >&5
9775
9776         ac_cv_func_shl_load=no
9777 fi
9778
9779 rm -f core conftest.err conftest.$ac_objext \
9780       conftest$ac_exeext conftest.$ac_ext
9781 fi
9782 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9783 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9784 if test $ac_cv_func_shl_load = yes; then
9785
9786 cat >>confdefs.h <<\_ACEOF
9787 #define HAVE_SHL_LOAD 1
9788 _ACEOF
9789
9790 else
9791   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9792 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9793 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9794   echo $ECHO_N "(cached) $ECHO_C" >&6
9795 else
9796   ac_check_lib_save_LIBS=$LIBS
9797 LIBS="-ldld  $LIBS"
9798 cat >conftest.$ac_ext <<_ACEOF
9799 /* confdefs.h.  */
9800 _ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h.  */
9804
9805 /* Override any GCC internal prototype to avoid an error.
9806    Use char because int might match the return type of a GCC
9807    builtin and then its argument prototype would still apply.  */
9808 #ifdef __cplusplus
9809 extern "C"
9810 #endif
9811 char shl_load ();
9812 int
9813 main ()
9814 {
9815 return shl_load ();
9816   ;
9817   return 0;
9818 }
9819 _ACEOF
9820 rm -f conftest.$ac_objext conftest$ac_exeext
9821 if { (ac_try="$ac_link"
9822 case "(($ac_try" in
9823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9824   *) ac_try_echo=$ac_try;;
9825 esac
9826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9827   (eval "$ac_link") 2>conftest.er1
9828   ac_status=$?
9829   grep -v '^ *+' conftest.er1 >conftest.err
9830   rm -f conftest.er1
9831   cat conftest.err >&5
9832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833   (exit $ac_status); } &&
9834          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9835   { (case "(($ac_try" in
9836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837   *) ac_try_echo=$ac_try;;
9838 esac
9839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840   (eval "$ac_try") 2>&5
9841   ac_status=$?
9842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843   (exit $ac_status); }; } &&
9844          { ac_try='test -s conftest$ac_exeext'
9845   { (case "(($ac_try" in
9846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847   *) ac_try_echo=$ac_try;;
9848 esac
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850   (eval "$ac_try") 2>&5
9851   ac_status=$?
9852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853   (exit $ac_status); }; }; then
9854   ac_cv_lib_dld_shl_load=yes
9855 else
9856   echo "$as_me: failed program was:" >&5
9857 sed 's/^/| /' conftest.$ac_ext >&5
9858
9859         ac_cv_lib_dld_shl_load=no
9860 fi
9861
9862 rm -f core conftest.err conftest.$ac_objext \
9863       conftest$ac_exeext conftest.$ac_ext
9864 LIBS=$ac_check_lib_save_LIBS
9865 fi
9866 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9867 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9868 if test $ac_cv_lib_dld_shl_load = yes; then
9869
9870 cat >>confdefs.h <<\_ACEOF
9871 #define HAVE_SHL_LOAD 1
9872 _ACEOF
9873
9874         LIBADD_DL="$LIBADD_DL -ldld"
9875 else
9876   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9877 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9878 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9879   echo $ECHO_N "(cached) $ECHO_C" >&6
9880 else
9881   ac_check_lib_save_LIBS=$LIBS
9882 LIBS="-ldl  $LIBS"
9883 cat >conftest.$ac_ext <<_ACEOF
9884 /* confdefs.h.  */
9885 _ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h.  */
9889
9890 /* Override any GCC internal prototype to avoid an error.
9891    Use char because int might match the return type of a GCC
9892    builtin and then its argument prototype would still apply.  */
9893 #ifdef __cplusplus
9894 extern "C"
9895 #endif
9896 char dlopen ();
9897 int
9898 main ()
9899 {
9900 return dlopen ();
9901   ;
9902   return 0;
9903 }
9904 _ACEOF
9905 rm -f conftest.$ac_objext conftest$ac_exeext
9906 if { (ac_try="$ac_link"
9907 case "(($ac_try" in
9908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909   *) ac_try_echo=$ac_try;;
9910 esac
9911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912   (eval "$ac_link") 2>conftest.er1
9913   ac_status=$?
9914   grep -v '^ *+' conftest.er1 >conftest.err
9915   rm -f conftest.er1
9916   cat conftest.err >&5
9917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918   (exit $ac_status); } &&
9919          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9920   { (case "(($ac_try" in
9921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9922   *) ac_try_echo=$ac_try;;
9923 esac
9924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9925   (eval "$ac_try") 2>&5
9926   ac_status=$?
9927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928   (exit $ac_status); }; } &&
9929          { ac_try='test -s conftest$ac_exeext'
9930   { (case "(($ac_try" in
9931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932   *) ac_try_echo=$ac_try;;
9933 esac
9934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935   (eval "$ac_try") 2>&5
9936   ac_status=$?
9937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938   (exit $ac_status); }; }; then
9939   ac_cv_lib_dl_dlopen=yes
9940 else
9941   echo "$as_me: failed program was:" >&5
9942 sed 's/^/| /' conftest.$ac_ext >&5
9943
9944         ac_cv_lib_dl_dlopen=no
9945 fi
9946
9947 rm -f core conftest.err conftest.$ac_objext \
9948       conftest$ac_exeext conftest.$ac_ext
9949 LIBS=$ac_check_lib_save_LIBS
9950 fi
9951 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9952 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9953 if test $ac_cv_lib_dl_dlopen = yes; then
9954
9955 cat >>confdefs.h <<\_ACEOF
9956 #define HAVE_LIBDL 1
9957 _ACEOF
9958
9959                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9960 else
9961   cat >conftest.$ac_ext <<_ACEOF
9962 /* confdefs.h.  */
9963 _ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h.  */
9967 #if HAVE_DLFCN_H
9968 #  include <dlfcn.h>
9969 #endif
9970
9971 int
9972 main ()
9973 {
9974 dlopen(0, 0);
9975   ;
9976   return 0;
9977 }
9978 _ACEOF
9979 rm -f conftest.$ac_objext conftest$ac_exeext
9980 if { (ac_try="$ac_link"
9981 case "(($ac_try" in
9982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9983   *) ac_try_echo=$ac_try;;
9984 esac
9985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9986   (eval "$ac_link") 2>conftest.er1
9987   ac_status=$?
9988   grep -v '^ *+' conftest.er1 >conftest.err
9989   rm -f conftest.er1
9990   cat conftest.err >&5
9991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992   (exit $ac_status); } &&
9993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9994   { (case "(($ac_try" in
9995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996   *) ac_try_echo=$ac_try;;
9997 esac
9998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999   (eval "$ac_try") 2>&5
10000   ac_status=$?
10001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002   (exit $ac_status); }; } &&
10003          { ac_try='test -s conftest$ac_exeext'
10004   { (case "(($ac_try" in
10005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006   *) ac_try_echo=$ac_try;;
10007 esac
10008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009   (eval "$ac_try") 2>&5
10010   ac_status=$?
10011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012   (exit $ac_status); }; }; then
10013
10014 cat >>confdefs.h <<\_ACEOF
10015 #define HAVE_LIBDL 1
10016 _ACEOF
10017  libltdl_cv_func_dlopen="yes"
10018 else
10019   echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10021
10022         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10023 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10024 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10025   echo $ECHO_N "(cached) $ECHO_C" >&6
10026 else
10027   ac_check_lib_save_LIBS=$LIBS
10028 LIBS="-lsvld  $LIBS"
10029 cat >conftest.$ac_ext <<_ACEOF
10030 /* confdefs.h.  */
10031 _ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h.  */
10035
10036 /* Override any GCC internal prototype to avoid an error.
10037    Use char because int might match the return type of a GCC
10038    builtin and then its argument prototype would still apply.  */
10039 #ifdef __cplusplus
10040 extern "C"
10041 #endif
10042 char dlopen ();
10043 int
10044 main ()
10045 {
10046 return dlopen ();
10047   ;
10048   return 0;
10049 }
10050 _ACEOF
10051 rm -f conftest.$ac_objext conftest$ac_exeext
10052 if { (ac_try="$ac_link"
10053 case "(($ac_try" in
10054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055   *) ac_try_echo=$ac_try;;
10056 esac
10057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058   (eval "$ac_link") 2>conftest.er1
10059   ac_status=$?
10060   grep -v '^ *+' conftest.er1 >conftest.err
10061   rm -f conftest.er1
10062   cat conftest.err >&5
10063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064   (exit $ac_status); } &&
10065          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10066   { (case "(($ac_try" in
10067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068   *) ac_try_echo=$ac_try;;
10069 esac
10070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071   (eval "$ac_try") 2>&5
10072   ac_status=$?
10073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074   (exit $ac_status); }; } &&
10075          { ac_try='test -s conftest$ac_exeext'
10076   { (case "(($ac_try" in
10077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078   *) ac_try_echo=$ac_try;;
10079 esac
10080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10081   (eval "$ac_try") 2>&5
10082   ac_status=$?
10083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084   (exit $ac_status); }; }; then
10085   ac_cv_lib_svld_dlopen=yes
10086 else
10087   echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10089
10090         ac_cv_lib_svld_dlopen=no
10091 fi
10092
10093 rm -f core conftest.err conftest.$ac_objext \
10094       conftest$ac_exeext conftest.$ac_ext
10095 LIBS=$ac_check_lib_save_LIBS
10096 fi
10097 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10098 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10099 if test $ac_cv_lib_svld_dlopen = yes; then
10100
10101 cat >>confdefs.h <<\_ACEOF
10102 #define HAVE_LIBDL 1
10103 _ACEOF
10104
10105                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10106 else
10107   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10108 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10109 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10110   echo $ECHO_N "(cached) $ECHO_C" >&6
10111 else
10112   ac_check_lib_save_LIBS=$LIBS
10113 LIBS="-ldld  $LIBS"
10114 cat >conftest.$ac_ext <<_ACEOF
10115 /* confdefs.h.  */
10116 _ACEOF
10117 cat confdefs.h >>conftest.$ac_ext
10118 cat >>conftest.$ac_ext <<_ACEOF
10119 /* end confdefs.h.  */
10120
10121 /* Override any GCC internal prototype to avoid an error.
10122    Use char because int might match the return type of a GCC
10123    builtin and then its argument prototype would still apply.  */
10124 #ifdef __cplusplus
10125 extern "C"
10126 #endif
10127 char dld_link ();
10128 int
10129 main ()
10130 {
10131 return dld_link ();
10132   ;
10133   return 0;
10134 }
10135 _ACEOF
10136 rm -f conftest.$ac_objext conftest$ac_exeext
10137 if { (ac_try="$ac_link"
10138 case "(($ac_try" in
10139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140   *) ac_try_echo=$ac_try;;
10141 esac
10142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143   (eval "$ac_link") 2>conftest.er1
10144   ac_status=$?
10145   grep -v '^ *+' conftest.er1 >conftest.err
10146   rm -f conftest.er1
10147   cat conftest.err >&5
10148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149   (exit $ac_status); } &&
10150          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10151   { (case "(($ac_try" in
10152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10153   *) ac_try_echo=$ac_try;;
10154 esac
10155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156   (eval "$ac_try") 2>&5
10157   ac_status=$?
10158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159   (exit $ac_status); }; } &&
10160          { ac_try='test -s conftest$ac_exeext'
10161   { (case "(($ac_try" in
10162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10163   *) ac_try_echo=$ac_try;;
10164 esac
10165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10166   (eval "$ac_try") 2>&5
10167   ac_status=$?
10168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169   (exit $ac_status); }; }; then
10170   ac_cv_lib_dld_dld_link=yes
10171 else
10172   echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10174
10175         ac_cv_lib_dld_dld_link=no
10176 fi
10177
10178 rm -f core conftest.err conftest.$ac_objext \
10179       conftest$ac_exeext conftest.$ac_ext
10180 LIBS=$ac_check_lib_save_LIBS
10181 fi
10182 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10183 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10184 if test $ac_cv_lib_dld_dld_link = yes; then
10185
10186 cat >>confdefs.h <<\_ACEOF
10187 #define HAVE_DLD 1
10188 _ACEOF
10189
10190                 LIBADD_DL="$LIBADD_DL -ldld"
10191 else
10192   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10193 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10194 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10195   echo $ECHO_N "(cached) $ECHO_C" >&6
10196 else
10197   cat >conftest.$ac_ext <<_ACEOF
10198 /* confdefs.h.  */
10199 _ACEOF
10200 cat confdefs.h >>conftest.$ac_ext
10201 cat >>conftest.$ac_ext <<_ACEOF
10202 /* end confdefs.h.  */
10203 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10204    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10205 #define _dyld_func_lookup innocuous__dyld_func_lookup
10206
10207 /* System header to define __stub macros and hopefully few prototypes,
10208     which can conflict with char _dyld_func_lookup (); below.
10209     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10210     <limits.h> exists even on freestanding compilers.  */
10211
10212 #ifdef __STDC__
10213 # include <limits.h>
10214 #else
10215 # include <assert.h>
10216 #endif
10217
10218 #undef _dyld_func_lookup
10219
10220 /* Override any GCC internal prototype to avoid an error.
10221    Use char because int might match the return type of a GCC
10222    builtin and then its argument prototype would still apply.  */
10223 #ifdef __cplusplus
10224 extern "C"
10225 #endif
10226 char _dyld_func_lookup ();
10227 /* The GNU C library defines this for functions which it implements
10228     to always fail with ENOSYS.  Some functions are actually named
10229     something starting with __ and the normal name is an alias.  */
10230 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10231 choke me
10232 #endif
10233
10234 int
10235 main ()
10236 {
10237 return _dyld_func_lookup ();
10238   ;
10239   return 0;
10240 }
10241 _ACEOF
10242 rm -f conftest.$ac_objext conftest$ac_exeext
10243 if { (ac_try="$ac_link"
10244 case "(($ac_try" in
10245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246   *) ac_try_echo=$ac_try;;
10247 esac
10248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249   (eval "$ac_link") 2>conftest.er1
10250   ac_status=$?
10251   grep -v '^ *+' conftest.er1 >conftest.err
10252   rm -f conftest.er1
10253   cat conftest.err >&5
10254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255   (exit $ac_status); } &&
10256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10257   { (case "(($ac_try" in
10258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259   *) ac_try_echo=$ac_try;;
10260 esac
10261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10262   (eval "$ac_try") 2>&5
10263   ac_status=$?
10264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265   (exit $ac_status); }; } &&
10266          { ac_try='test -s conftest$ac_exeext'
10267   { (case "(($ac_try" in
10268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10269   *) ac_try_echo=$ac_try;;
10270 esac
10271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10272   (eval "$ac_try") 2>&5
10273   ac_status=$?
10274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275   (exit $ac_status); }; }; then
10276   ac_cv_func__dyld_func_lookup=yes
10277 else
10278   echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10280
10281         ac_cv_func__dyld_func_lookup=no
10282 fi
10283
10284 rm -f core conftest.err conftest.$ac_objext \
10285       conftest$ac_exeext conftest.$ac_ext
10286 fi
10287 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10288 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10289 if test $ac_cv_func__dyld_func_lookup = yes; then
10290
10291 cat >>confdefs.h <<\_ACEOF
10292 #define HAVE_DYLD 1
10293 _ACEOF
10294
10295 fi
10296
10297
10298 fi
10299
10300
10301 fi
10302
10303
10304 fi
10305
10306 rm -f core conftest.err conftest.$ac_objext \
10307       conftest$ac_exeext conftest.$ac_ext
10308
10309 fi
10310
10311
10312 fi
10313
10314
10315 fi
10316
10317
10318 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10319 then
10320   lt_save_LIBS="$LIBS"
10321   LIBS="$LIBS $LIBADD_DL"
10322
10323 for ac_func in dlerror
10324 do
10325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10326 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10328 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10329   echo $ECHO_N "(cached) $ECHO_C" >&6
10330 else
10331   cat >conftest.$ac_ext <<_ACEOF
10332 /* confdefs.h.  */
10333 _ACEOF
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h.  */
10337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10338    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10339 #define $ac_func innocuous_$ac_func
10340
10341 /* System header to define __stub macros and hopefully few prototypes,
10342     which can conflict with char $ac_func (); below.
10343     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10344     <limits.h> exists even on freestanding compilers.  */
10345
10346 #ifdef __STDC__
10347 # include <limits.h>
10348 #else
10349 # include <assert.h>
10350 #endif
10351
10352 #undef $ac_func
10353
10354 /* Override any GCC internal prototype to avoid an error.
10355    Use char because int might match the return type of a GCC
10356    builtin and then its argument prototype would still apply.  */
10357 #ifdef __cplusplus
10358 extern "C"
10359 #endif
10360 char $ac_func ();
10361 /* The GNU C library defines this for functions which it implements
10362     to always fail with ENOSYS.  Some functions are actually named
10363     something starting with __ and the normal name is an alias.  */
10364 #if defined __stub_$ac_func || defined __stub___$ac_func
10365 choke me
10366 #endif
10367
10368 int
10369 main ()
10370 {
10371 return $ac_func ();
10372   ;
10373   return 0;
10374 }
10375 _ACEOF
10376 rm -f conftest.$ac_objext conftest$ac_exeext
10377 if { (ac_try="$ac_link"
10378 case "(($ac_try" in
10379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380   *) ac_try_echo=$ac_try;;
10381 esac
10382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383   (eval "$ac_link") 2>conftest.er1
10384   ac_status=$?
10385   grep -v '^ *+' conftest.er1 >conftest.err
10386   rm -f conftest.er1
10387   cat conftest.err >&5
10388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389   (exit $ac_status); } &&
10390          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10391   { (case "(($ac_try" in
10392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393   *) ac_try_echo=$ac_try;;
10394 esac
10395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10396   (eval "$ac_try") 2>&5
10397   ac_status=$?
10398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399   (exit $ac_status); }; } &&
10400          { ac_try='test -s conftest$ac_exeext'
10401   { (case "(($ac_try" in
10402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403   *) ac_try_echo=$ac_try;;
10404 esac
10405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406   (eval "$ac_try") 2>&5
10407   ac_status=$?
10408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409   (exit $ac_status); }; }; then
10410   eval "$as_ac_var=yes"
10411 else
10412   echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10414
10415         eval "$as_ac_var=no"
10416 fi
10417
10418 rm -f core conftest.err conftest.$ac_objext \
10419       conftest$ac_exeext conftest.$ac_ext
10420 fi
10421 ac_res=`eval echo '${'$as_ac_var'}'`
10422                { echo "$as_me:$LINENO: result: $ac_res" >&5
10423 echo "${ECHO_T}$ac_res" >&6; }
10424 if test `eval echo '${'$as_ac_var'}'` = yes; then
10425   cat >>confdefs.h <<_ACEOF
10426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10427 _ACEOF
10428
10429 fi
10430 done
10431
10432   LIBS="$lt_save_LIBS"
10433 fi
10434 ac_ext=c
10435 ac_cpp='$CPP $CPPFLAGS'
10436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10439
10440
10441
10442 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10443 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10444 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10445   echo $ECHO_N "(cached) $ECHO_C" >&6
10446 else
10447   ac_cv_sys_symbol_underscore=no
10448   cat > conftest.$ac_ext <<EOF
10449 void nm_test_func(){}
10450 int main(){nm_test_func;return 0;}
10451 EOF
10452   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10453   (eval $ac_compile) 2>&5
10454   ac_status=$?
10455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456   (exit $ac_status); }; then
10457     # Now try to grab the symbols.
10458     ac_nlist=conftest.nm
10459     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10460   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10461   ac_status=$?
10462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463   (exit $ac_status); } && test -s "$ac_nlist"; then
10464       # See whether the symbols have a leading underscore.
10465       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10466         ac_cv_sys_symbol_underscore=yes
10467       else
10468         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10469           :
10470         else
10471           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10472         fi
10473       fi
10474     else
10475       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10476     fi
10477   else
10478     echo "configure: failed program was:" >&5
10479     cat conftest.c >&5
10480   fi
10481   rm -rf conftest*
10482
10483 fi
10484 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10485 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10486
10487
10488 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10489   if test x"$libltdl_cv_func_dlopen" = xyes ||
10490      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10491         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10492 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10493 if test "${libltdl_cv_need_uscore+set}" = set; then
10494   echo $ECHO_N "(cached) $ECHO_C" >&6
10495 else
10496   libltdl_cv_need_uscore=unknown
10497           save_LIBS="$LIBS"
10498           LIBS="$LIBS $LIBADD_DL"
10499           if test "$cross_compiling" = yes; then :
10500   libltdl_cv_need_uscore=cross
10501 else
10502   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10503   lt_status=$lt_dlunknown
10504   cat > conftest.$ac_ext <<EOF
10505 #line 10505 "configure"
10506 #include "confdefs.h"
10507
10508 #if HAVE_DLFCN_H
10509 #include <dlfcn.h>
10510 #endif
10511
10512 #include <stdio.h>
10513
10514 #ifdef RTLD_GLOBAL
10515 #  define LT_DLGLOBAL           RTLD_GLOBAL
10516 #else
10517 #  ifdef DL_GLOBAL
10518 #    define LT_DLGLOBAL         DL_GLOBAL
10519 #  else
10520 #    define LT_DLGLOBAL         0
10521 #  endif
10522 #endif
10523
10524 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10525    find out it does not work in some platform. */
10526 #ifndef LT_DLLAZY_OR_NOW
10527 #  ifdef RTLD_LAZY
10528 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10529 #  else
10530 #    ifdef DL_LAZY
10531 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10532 #    else
10533 #      ifdef RTLD_NOW
10534 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10535 #      else
10536 #        ifdef DL_NOW
10537 #          define LT_DLLAZY_OR_NOW      DL_NOW
10538 #        else
10539 #          define LT_DLLAZY_OR_NOW      0
10540 #        endif
10541 #      endif
10542 #    endif
10543 #  endif
10544 #endif
10545
10546 #ifdef __cplusplus
10547 extern "C" void exit (int);
10548 #endif
10549
10550 void fnord() { int i=42;}
10551 int main ()
10552 {
10553   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10554   int status = $lt_dlunknown;
10555
10556   if (self)
10557     {
10558       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10559       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10560       /* dlclose (self); */
10561     }
10562   else
10563     puts (dlerror ());
10564
10565     exit (status);
10566 }
10567 EOF
10568   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10569   (eval $ac_link) 2>&5
10570   ac_status=$?
10571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10573     (./conftest; exit; ) >&5 2>/dev/null
10574     lt_status=$?
10575     case x$lt_status in
10576       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10577       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10578       x$lt_dlunknown|x*)  ;;
10579     esac
10580   else :
10581     # compilation failed
10582
10583   fi
10584 fi
10585 rm -fr conftest*
10586
10587           LIBS="$save_LIBS"
10588
10589 fi
10590 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10591 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10592   fi
10593 fi
10594
10595 if test x"$libltdl_cv_need_uscore" = xyes; then
10596
10597 cat >>confdefs.h <<\_ACEOF
10598 #define NEED_USCORE 1
10599 _ACEOF
10600
10601 fi
10602
10603
10604 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10605 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10606 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10607   echo $ECHO_N "(cached) $ECHO_C" >&6
10608 else
10609   # PORTME does your system automatically load deplibs for dlopen?
10610   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10611   # For now, we just catch OSes we know something about -- in the
10612   # future, we'll try test this programmatically.
10613   libltdl_cv_sys_dlopen_deplibs=unknown
10614   case "$host_os" in
10615   aix3*|aix4.1.*|aix4.2.*)
10616     # Unknown whether this is true for these versions of AIX, but
10617     # we want this `case' here to explicitly catch those versions.
10618     libltdl_cv_sys_dlopen_deplibs=unknown
10619     ;;
10620   aix[45]*)
10621     libltdl_cv_sys_dlopen_deplibs=yes
10622     ;;
10623   darwin*)
10624     # Assuming the user has installed a libdl from somewhere, this is true
10625     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10626     libltdl_cv_sys_dlopen_deplibs=yes
10627     ;;
10628   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10629     # GNU and its variants, using gnu ld.so (Glibc)
10630     libltdl_cv_sys_dlopen_deplibs=yes
10631     ;;
10632   hpux10*|hpux11*)
10633     libltdl_cv_sys_dlopen_deplibs=yes
10634     ;;
10635   interix*)
10636     libltdl_cv_sys_dlopen_deplibs=yes
10637     ;;
10638   irix[12345]*|irix6.[01]*)
10639     # Catch all versions of IRIX before 6.2, and indicate that we don't
10640     # know how it worked for any of those versions.
10641     libltdl_cv_sys_dlopen_deplibs=unknown
10642     ;;
10643   irix*)
10644     # The case above catches anything before 6.2, and it's known that
10645     # at 6.2 and later dlopen does load deplibs.
10646     libltdl_cv_sys_dlopen_deplibs=yes
10647     ;;
10648   netbsd*)
10649     libltdl_cv_sys_dlopen_deplibs=yes
10650     ;;
10651   openbsd*)
10652     libltdl_cv_sys_dlopen_deplibs=yes
10653     ;;
10654   osf[1234]*)
10655     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10656     # it did *not* use an RPATH in a shared library to find objects the
10657     # library depends on, so we explicitly say `no'.
10658     libltdl_cv_sys_dlopen_deplibs=no
10659     ;;
10660   osf5.0|osf5.0a|osf5.1)
10661     # dlopen *does* load deplibs and with the right loader patch applied
10662     # it even uses RPATH in a shared library to search for shared objects
10663     # that the library depends on, but there's no easy way to know if that
10664     # patch is installed.  Since this is the case, all we can really
10665     # say is unknown -- it depends on the patch being installed.  If
10666     # it is, this changes to `yes'.  Without it, it would be `no'.
10667     libltdl_cv_sys_dlopen_deplibs=unknown
10668     ;;
10669   osf*)
10670     # the two cases above should catch all versions of osf <= 5.1.  Read
10671     # the comments above for what we know about them.
10672     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10673     # is used to find them so we can finally say `yes'.
10674     libltdl_cv_sys_dlopen_deplibs=yes
10675     ;;
10676   solaris*)
10677     libltdl_cv_sys_dlopen_deplibs=yes
10678     ;;
10679   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10680     libltdl_cv_sys_dlopen_deplibs=yes
10681     ;;
10682   esac
10683
10684 fi
10685 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10686 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10687 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10688
10689 cat >>confdefs.h <<\_ACEOF
10690 #define LTDL_DLOPEN_DEPLIBS 1
10691 _ACEOF
10692
10693 fi
10694
10695
10696 for ac_header in argz.h
10697 do
10698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10700   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10703   echo $ECHO_N "(cached) $ECHO_C" >&6
10704 fi
10705 ac_res=`eval echo '${'$as_ac_Header'}'`
10706                { echo "$as_me:$LINENO: result: $ac_res" >&5
10707 echo "${ECHO_T}$ac_res" >&6; }
10708 else
10709   # Is the header compilable?
10710 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10712 cat >conftest.$ac_ext <<_ACEOF
10713 /* confdefs.h.  */
10714 _ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h.  */
10718 $ac_includes_default
10719 #include <$ac_header>
10720 _ACEOF
10721 rm -f conftest.$ac_objext
10722 if { (ac_try="$ac_compile"
10723 case "(($ac_try" in
10724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10725   *) ac_try_echo=$ac_try;;
10726 esac
10727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10728   (eval "$ac_compile") 2>conftest.er1
10729   ac_status=$?
10730   grep -v '^ *+' conftest.er1 >conftest.err
10731   rm -f conftest.er1
10732   cat conftest.err >&5
10733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734   (exit $ac_status); } &&
10735          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10736   { (case "(($ac_try" in
10737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10738   *) ac_try_echo=$ac_try;;
10739 esac
10740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10741   (eval "$ac_try") 2>&5
10742   ac_status=$?
10743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744   (exit $ac_status); }; } &&
10745          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
10752   ac_status=$?
10753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754   (exit $ac_status); }; }; then
10755   ac_header_compiler=yes
10756 else
10757   echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10759
10760         ac_header_compiler=no
10761 fi
10762
10763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10764 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10765 echo "${ECHO_T}$ac_header_compiler" >&6; }
10766
10767 # Is the header present?
10768 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10770 cat >conftest.$ac_ext <<_ACEOF
10771 /* confdefs.h.  */
10772 _ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h.  */
10776 #include <$ac_header>
10777 _ACEOF
10778 if { (ac_try="$ac_cpp conftest.$ac_ext"
10779 case "(($ac_try" in
10780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781   *) ac_try_echo=$ac_try;;
10782 esac
10783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10785   ac_status=$?
10786   grep -v '^ *+' conftest.er1 >conftest.err
10787   rm -f conftest.er1
10788   cat conftest.err >&5
10789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790   (exit $ac_status); } >/dev/null; then
10791   if test -s conftest.err; then
10792     ac_cpp_err=$ac_c_preproc_warn_flag
10793     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10794   else
10795     ac_cpp_err=
10796   fi
10797 else
10798   ac_cpp_err=yes
10799 fi
10800 if test -z "$ac_cpp_err"; then
10801   ac_header_preproc=yes
10802 else
10803   echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.$ac_ext >&5
10805
10806   ac_header_preproc=no
10807 fi
10808
10809 rm -f conftest.err conftest.$ac_ext
10810 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10811 echo "${ECHO_T}$ac_header_preproc" >&6; }
10812
10813 # So?  What about this header?
10814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10815   yes:no: )
10816     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10818     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10820     ac_header_preproc=yes
10821     ;;
10822   no:yes:* )
10823     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10825     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10826 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10827     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10829     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10830 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10831     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10833     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10835     ( cat <<\_ASBOX
10836 ## ------------------------------------ ##
10837 ## Report this to http://llvm.org/bugs/ ##
10838 ## ------------------------------------ ##
10839 _ASBOX
10840      ) | sed "s/^/$as_me: WARNING:     /" >&2
10841     ;;
10842 esac
10843 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10846   echo $ECHO_N "(cached) $ECHO_C" >&6
10847 else
10848   eval "$as_ac_Header=\$ac_header_preproc"
10849 fi
10850 ac_res=`eval echo '${'$as_ac_Header'}'`
10851                { echo "$as_me:$LINENO: result: $ac_res" >&5
10852 echo "${ECHO_T}$ac_res" >&6; }
10853
10854 fi
10855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10856   cat >>confdefs.h <<_ACEOF
10857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10858 _ACEOF
10859
10860 fi
10861
10862 done
10863
10864
10865 { echo "$as_me:$LINENO: checking for error_t" >&5
10866 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10867 if test "${ac_cv_type_error_t+set}" = set; then
10868   echo $ECHO_N "(cached) $ECHO_C" >&6
10869 else
10870   cat >conftest.$ac_ext <<_ACEOF
10871 /* confdefs.h.  */
10872 _ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h.  */
10876 #if HAVE_ARGZ_H
10877 #  include <argz.h>
10878 #endif
10879
10880 typedef error_t ac__type_new_;
10881 int
10882 main ()
10883 {
10884 if ((ac__type_new_ *) 0)
10885   return 0;
10886 if (sizeof (ac__type_new_))
10887   return 0;
10888   ;
10889   return 0;
10890 }
10891 _ACEOF
10892 rm -f conftest.$ac_objext
10893 if { (ac_try="$ac_compile"
10894 case "(($ac_try" in
10895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896   *) ac_try_echo=$ac_try;;
10897 esac
10898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899   (eval "$ac_compile") 2>conftest.er1
10900   ac_status=$?
10901   grep -v '^ *+' conftest.er1 >conftest.err
10902   rm -f conftest.er1
10903   cat conftest.err >&5
10904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905   (exit $ac_status); } &&
10906          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10907   { (case "(($ac_try" in
10908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909   *) ac_try_echo=$ac_try;;
10910 esac
10911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10912   (eval "$ac_try") 2>&5
10913   ac_status=$?
10914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915   (exit $ac_status); }; } &&
10916          { ac_try='test -s conftest.$ac_objext'
10917   { (case "(($ac_try" in
10918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10919   *) ac_try_echo=$ac_try;;
10920 esac
10921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10922   (eval "$ac_try") 2>&5
10923   ac_status=$?
10924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925   (exit $ac_status); }; }; then
10926   ac_cv_type_error_t=yes
10927 else
10928   echo "$as_me: failed program was:" >&5
10929 sed 's/^/| /' conftest.$ac_ext >&5
10930
10931         ac_cv_type_error_t=no
10932 fi
10933
10934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10935 fi
10936 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10937 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10938 if test $ac_cv_type_error_t = yes; then
10939
10940 cat >>confdefs.h <<_ACEOF
10941 #define HAVE_ERROR_T 1
10942 _ACEOF
10943
10944
10945 else
10946
10947 cat >>confdefs.h <<\_ACEOF
10948 #define error_t int
10949 _ACEOF
10950
10951 fi
10952
10953
10954
10955
10956
10957
10958
10959 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10960 do
10961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10962 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10964 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10965   echo $ECHO_N "(cached) $ECHO_C" >&6
10966 else
10967   cat >conftest.$ac_ext <<_ACEOF
10968 /* confdefs.h.  */
10969 _ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h.  */
10973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10975 #define $ac_func innocuous_$ac_func
10976
10977 /* System header to define __stub macros and hopefully few prototypes,
10978     which can conflict with char $ac_func (); below.
10979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10980     <limits.h> exists even on freestanding compilers.  */
10981
10982 #ifdef __STDC__
10983 # include <limits.h>
10984 #else
10985 # include <assert.h>
10986 #endif
10987
10988 #undef $ac_func
10989
10990 /* Override any GCC internal prototype to avoid an error.
10991    Use char because int might match the return type of a GCC
10992    builtin and then its argument prototype would still apply.  */
10993 #ifdef __cplusplus
10994 extern "C"
10995 #endif
10996 char $ac_func ();
10997 /* The GNU C library defines this for functions which it implements
10998     to always fail with ENOSYS.  Some functions are actually named
10999     something starting with __ and the normal name is an alias.  */
11000 #if defined __stub_$ac_func || defined __stub___$ac_func
11001 choke me
11002 #endif
11003
11004 int
11005 main ()
11006 {
11007 return $ac_func ();
11008   ;
11009   return 0;
11010 }
11011 _ACEOF
11012 rm -f conftest.$ac_objext conftest$ac_exeext
11013 if { (ac_try="$ac_link"
11014 case "(($ac_try" in
11015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016   *) ac_try_echo=$ac_try;;
11017 esac
11018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019   (eval "$ac_link") 2>conftest.er1
11020   ac_status=$?
11021   grep -v '^ *+' conftest.er1 >conftest.err
11022   rm -f conftest.er1
11023   cat conftest.err >&5
11024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025   (exit $ac_status); } &&
11026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
11033   ac_status=$?
11034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035   (exit $ac_status); }; } &&
11036          { ac_try='test -s conftest$ac_exeext'
11037   { (case "(($ac_try" in
11038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039   *) ac_try_echo=$ac_try;;
11040 esac
11041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11042   (eval "$ac_try") 2>&5
11043   ac_status=$?
11044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045   (exit $ac_status); }; }; then
11046   eval "$as_ac_var=yes"
11047 else
11048   echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11050
11051         eval "$as_ac_var=no"
11052 fi
11053
11054 rm -f core conftest.err conftest.$ac_objext \
11055       conftest$ac_exeext conftest.$ac_ext
11056 fi
11057 ac_res=`eval echo '${'$as_ac_var'}'`
11058                { echo "$as_me:$LINENO: result: $ac_res" >&5
11059 echo "${ECHO_T}$ac_res" >&6; }
11060 if test `eval echo '${'$as_ac_var'}'` = yes; then
11061   cat >>confdefs.h <<_ACEOF
11062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11063 _ACEOF
11064
11065 fi
11066 done
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11096                   stdio.h unistd.h
11097 do
11098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11100   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11103   echo $ECHO_N "(cached) $ECHO_C" >&6
11104 fi
11105 ac_res=`eval echo '${'$as_ac_Header'}'`
11106                { echo "$as_me:$LINENO: result: $ac_res" >&5
11107 echo "${ECHO_T}$ac_res" >&6; }
11108 else
11109   # Is the header compilable?
11110 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11112 cat >conftest.$ac_ext <<_ACEOF
11113 /* confdefs.h.  */
11114 _ACEOF
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h.  */
11118 $ac_includes_default
11119 #include <$ac_header>
11120 _ACEOF
11121 rm -f conftest.$ac_objext
11122 if { (ac_try="$ac_compile"
11123 case "(($ac_try" in
11124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125   *) ac_try_echo=$ac_try;;
11126 esac
11127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128   (eval "$ac_compile") 2>conftest.er1
11129   ac_status=$?
11130   grep -v '^ *+' conftest.er1 >conftest.err
11131   rm -f conftest.er1
11132   cat conftest.err >&5
11133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134   (exit $ac_status); } &&
11135          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11136   { (case "(($ac_try" in
11137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138   *) ac_try_echo=$ac_try;;
11139 esac
11140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11141   (eval "$ac_try") 2>&5
11142   ac_status=$?
11143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144   (exit $ac_status); }; } &&
11145          { ac_try='test -s conftest.$ac_objext'
11146   { (case "(($ac_try" in
11147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11148   *) ac_try_echo=$ac_try;;
11149 esac
11150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11151   (eval "$ac_try") 2>&5
11152   ac_status=$?
11153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154   (exit $ac_status); }; }; then
11155   ac_header_compiler=yes
11156 else
11157   echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.$ac_ext >&5
11159
11160         ac_header_compiler=no
11161 fi
11162
11163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11165 echo "${ECHO_T}$ac_header_compiler" >&6; }
11166
11167 # Is the header present?
11168 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11170 cat >conftest.$ac_ext <<_ACEOF
11171 /* confdefs.h.  */
11172 _ACEOF
11173 cat confdefs.h >>conftest.$ac_ext
11174 cat >>conftest.$ac_ext <<_ACEOF
11175 /* end confdefs.h.  */
11176 #include <$ac_header>
11177 _ACEOF
11178 if { (ac_try="$ac_cpp conftest.$ac_ext"
11179 case "(($ac_try" in
11180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11181   *) ac_try_echo=$ac_try;;
11182 esac
11183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11184   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11185   ac_status=$?
11186   grep -v '^ *+' conftest.er1 >conftest.err
11187   rm -f conftest.er1
11188   cat conftest.err >&5
11189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190   (exit $ac_status); } >/dev/null; then
11191   if test -s conftest.err; then
11192     ac_cpp_err=$ac_c_preproc_warn_flag
11193     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11194   else
11195     ac_cpp_err=
11196   fi
11197 else
11198   ac_cpp_err=yes
11199 fi
11200 if test -z "$ac_cpp_err"; then
11201   ac_header_preproc=yes
11202 else
11203   echo "$as_me: failed program was:" >&5
11204 sed 's/^/| /' conftest.$ac_ext >&5
11205
11206   ac_header_preproc=no
11207 fi
11208
11209 rm -f conftest.err conftest.$ac_ext
11210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11211 echo "${ECHO_T}$ac_header_preproc" >&6; }
11212
11213 # So?  What about this header?
11214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11215   yes:no: )
11216     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11220     ac_header_preproc=yes
11221     ;;
11222   no:yes:* )
11223     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11225     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11226 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11227     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11229     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11230 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11231     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11233     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11235     ( cat <<\_ASBOX
11236 ## ------------------------------------ ##
11237 ## Report this to http://llvm.org/bugs/ ##
11238 ## ------------------------------------ ##
11239 _ASBOX
11240      ) | sed "s/^/$as_me: WARNING:     /" >&2
11241     ;;
11242 esac
11243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11246   echo $ECHO_N "(cached) $ECHO_C" >&6
11247 else
11248   eval "$as_ac_Header=\$ac_header_preproc"
11249 fi
11250 ac_res=`eval echo '${'$as_ac_Header'}'`
11251                { echo "$as_me:$LINENO: result: $ac_res" >&5
11252 echo "${ECHO_T}$ac_res" >&6; }
11253
11254 fi
11255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11256   cat >>confdefs.h <<_ACEOF
11257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11258 _ACEOF
11259
11260 fi
11261
11262 done
11263
11264
11265
11266
11267
11268 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11269 do
11270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11272   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11275   echo $ECHO_N "(cached) $ECHO_C" >&6
11276 fi
11277 ac_res=`eval echo '${'$as_ac_Header'}'`
11278                { echo "$as_me:$LINENO: result: $ac_res" >&5
11279 echo "${ECHO_T}$ac_res" >&6; }
11280 else
11281   # Is the header compilable?
11282 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11283 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11284 cat >conftest.$ac_ext <<_ACEOF
11285 /* confdefs.h.  */
11286 _ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h.  */
11290 $ac_includes_default
11291 #include <$ac_header>
11292 _ACEOF
11293 rm -f conftest.$ac_objext
11294 if { (ac_try="$ac_compile"
11295 case "(($ac_try" in
11296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11297   *) ac_try_echo=$ac_try;;
11298 esac
11299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11300   (eval "$ac_compile") 2>conftest.er1
11301   ac_status=$?
11302   grep -v '^ *+' conftest.er1 >conftest.err
11303   rm -f conftest.er1
11304   cat conftest.err >&5
11305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306   (exit $ac_status); } &&
11307          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11308   { (case "(($ac_try" in
11309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11310   *) ac_try_echo=$ac_try;;
11311 esac
11312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11313   (eval "$ac_try") 2>&5
11314   ac_status=$?
11315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316   (exit $ac_status); }; } &&
11317          { ac_try='test -s conftest.$ac_objext'
11318   { (case "(($ac_try" in
11319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11320   *) ac_try_echo=$ac_try;;
11321 esac
11322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11323   (eval "$ac_try") 2>&5
11324   ac_status=$?
11325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326   (exit $ac_status); }; }; then
11327   ac_header_compiler=yes
11328 else
11329   echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.$ac_ext >&5
11331
11332         ac_header_compiler=no
11333 fi
11334
11335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11336 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11337 echo "${ECHO_T}$ac_header_compiler" >&6; }
11338
11339 # Is the header present?
11340 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11341 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11342 cat >conftest.$ac_ext <<_ACEOF
11343 /* confdefs.h.  */
11344 _ACEOF
11345 cat confdefs.h >>conftest.$ac_ext
11346 cat >>conftest.$ac_ext <<_ACEOF
11347 /* end confdefs.h.  */
11348 #include <$ac_header>
11349 _ACEOF
11350 if { (ac_try="$ac_cpp conftest.$ac_ext"
11351 case "(($ac_try" in
11352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353   *) ac_try_echo=$ac_try;;
11354 esac
11355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11357   ac_status=$?
11358   grep -v '^ *+' conftest.er1 >conftest.err
11359   rm -f conftest.er1
11360   cat conftest.err >&5
11361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362   (exit $ac_status); } >/dev/null; then
11363   if test -s conftest.err; then
11364     ac_cpp_err=$ac_c_preproc_warn_flag
11365     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11366   else
11367     ac_cpp_err=
11368   fi
11369 else
11370   ac_cpp_err=yes
11371 fi
11372 if test -z "$ac_cpp_err"; then
11373   ac_header_preproc=yes
11374 else
11375   echo "$as_me: failed program was:" >&5
11376 sed 's/^/| /' conftest.$ac_ext >&5
11377
11378   ac_header_preproc=no
11379 fi
11380
11381 rm -f conftest.err conftest.$ac_ext
11382 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11383 echo "${ECHO_T}$ac_header_preproc" >&6; }
11384
11385 # So?  What about this header?
11386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11387   yes:no: )
11388     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11390     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11392     ac_header_preproc=yes
11393     ;;
11394   no:yes:* )
11395     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11397     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11398 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11399     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11401     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11402 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11403     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11405     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11407     ( cat <<\_ASBOX
11408 ## ------------------------------------ ##
11409 ## Report this to http://llvm.org/bugs/ ##
11410 ## ------------------------------------ ##
11411 _ASBOX
11412      ) | sed "s/^/$as_me: WARNING:     /" >&2
11413     ;;
11414 esac
11415 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11418   echo $ECHO_N "(cached) $ECHO_C" >&6
11419 else
11420   eval "$as_ac_Header=\$ac_header_preproc"
11421 fi
11422 ac_res=`eval echo '${'$as_ac_Header'}'`
11423                { echo "$as_me:$LINENO: result: $ac_res" >&5
11424 echo "${ECHO_T}$ac_res" >&6; }
11425
11426 fi
11427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11428   cat >>confdefs.h <<_ACEOF
11429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11430 _ACEOF
11431
11432 fi
11433
11434 done
11435
11436
11437
11438 for ac_header in string.h strings.h
11439 do
11440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11442   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11445   echo $ECHO_N "(cached) $ECHO_C" >&6
11446 fi
11447 ac_res=`eval echo '${'$as_ac_Header'}'`
11448                { echo "$as_me:$LINENO: result: $ac_res" >&5
11449 echo "${ECHO_T}$ac_res" >&6; }
11450 else
11451   # Is the header compilable?
11452 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11454 cat >conftest.$ac_ext <<_ACEOF
11455 /* confdefs.h.  */
11456 _ACEOF
11457 cat confdefs.h >>conftest.$ac_ext
11458 cat >>conftest.$ac_ext <<_ACEOF
11459 /* end confdefs.h.  */
11460 $ac_includes_default
11461 #include <$ac_header>
11462 _ACEOF
11463 rm -f conftest.$ac_objext
11464 if { (ac_try="$ac_compile"
11465 case "(($ac_try" in
11466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467   *) ac_try_echo=$ac_try;;
11468 esac
11469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11470   (eval "$ac_compile") 2>conftest.er1
11471   ac_status=$?
11472   grep -v '^ *+' conftest.er1 >conftest.err
11473   rm -f conftest.er1
11474   cat conftest.err >&5
11475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476   (exit $ac_status); } &&
11477          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11478   { (case "(($ac_try" in
11479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480   *) ac_try_echo=$ac_try;;
11481 esac
11482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11483   (eval "$ac_try") 2>&5
11484   ac_status=$?
11485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486   (exit $ac_status); }; } &&
11487          { ac_try='test -s conftest.$ac_objext'
11488   { (case "(($ac_try" in
11489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490   *) ac_try_echo=$ac_try;;
11491 esac
11492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493   (eval "$ac_try") 2>&5
11494   ac_status=$?
11495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496   (exit $ac_status); }; }; then
11497   ac_header_compiler=yes
11498 else
11499   echo "$as_me: failed program was:" >&5
11500 sed 's/^/| /' conftest.$ac_ext >&5
11501
11502         ac_header_compiler=no
11503 fi
11504
11505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11506 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11507 echo "${ECHO_T}$ac_header_compiler" >&6; }
11508
11509 # Is the header present?
11510 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11512 cat >conftest.$ac_ext <<_ACEOF
11513 /* confdefs.h.  */
11514 _ACEOF
11515 cat confdefs.h >>conftest.$ac_ext
11516 cat >>conftest.$ac_ext <<_ACEOF
11517 /* end confdefs.h.  */
11518 #include <$ac_header>
11519 _ACEOF
11520 if { (ac_try="$ac_cpp conftest.$ac_ext"
11521 case "(($ac_try" in
11522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11523   *) ac_try_echo=$ac_try;;
11524 esac
11525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11526   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11527   ac_status=$?
11528   grep -v '^ *+' conftest.er1 >conftest.err
11529   rm -f conftest.er1
11530   cat conftest.err >&5
11531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532   (exit $ac_status); } >/dev/null; then
11533   if test -s conftest.err; then
11534     ac_cpp_err=$ac_c_preproc_warn_flag
11535     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11536   else
11537     ac_cpp_err=
11538   fi
11539 else
11540   ac_cpp_err=yes
11541 fi
11542 if test -z "$ac_cpp_err"; then
11543   ac_header_preproc=yes
11544 else
11545   echo "$as_me: failed program was:" >&5
11546 sed 's/^/| /' conftest.$ac_ext >&5
11547
11548   ac_header_preproc=no
11549 fi
11550
11551 rm -f conftest.err conftest.$ac_ext
11552 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11553 echo "${ECHO_T}$ac_header_preproc" >&6; }
11554
11555 # So?  What about this header?
11556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11557   yes:no: )
11558     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11560     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11562     ac_header_preproc=yes
11563     ;;
11564   no:yes:* )
11565     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11567     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11568 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11569     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11571     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11572 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11573     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11575     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11577     ( cat <<\_ASBOX
11578 ## ------------------------------------ ##
11579 ## Report this to http://llvm.org/bugs/ ##
11580 ## ------------------------------------ ##
11581 _ASBOX
11582      ) | sed "s/^/$as_me: WARNING:     /" >&2
11583     ;;
11584 esac
11585 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11588   echo $ECHO_N "(cached) $ECHO_C" >&6
11589 else
11590   eval "$as_ac_Header=\$ac_header_preproc"
11591 fi
11592 ac_res=`eval echo '${'$as_ac_Header'}'`
11593                { echo "$as_me:$LINENO: result: $ac_res" >&5
11594 echo "${ECHO_T}$ac_res" >&6; }
11595
11596 fi
11597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11598   cat >>confdefs.h <<_ACEOF
11599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11600 _ACEOF
11601  break
11602 fi
11603
11604 done
11605
11606
11607
11608
11609 for ac_func in strchr index
11610 do
11611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11612 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11614 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11615   echo $ECHO_N "(cached) $ECHO_C" >&6
11616 else
11617   cat >conftest.$ac_ext <<_ACEOF
11618 /* confdefs.h.  */
11619 _ACEOF
11620 cat confdefs.h >>conftest.$ac_ext
11621 cat >>conftest.$ac_ext <<_ACEOF
11622 /* end confdefs.h.  */
11623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11624    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11625 #define $ac_func innocuous_$ac_func
11626
11627 /* System header to define __stub macros and hopefully few prototypes,
11628     which can conflict with char $ac_func (); below.
11629     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11630     <limits.h> exists even on freestanding compilers.  */
11631
11632 #ifdef __STDC__
11633 # include <limits.h>
11634 #else
11635 # include <assert.h>
11636 #endif
11637
11638 #undef $ac_func
11639
11640 /* Override any GCC internal prototype to avoid an error.
11641    Use char because int might match the return type of a GCC
11642    builtin and then its argument prototype would still apply.  */
11643 #ifdef __cplusplus
11644 extern "C"
11645 #endif
11646 char $ac_func ();
11647 /* The GNU C library defines this for functions which it implements
11648     to always fail with ENOSYS.  Some functions are actually named
11649     something starting with __ and the normal name is an alias.  */
11650 #if defined __stub_$ac_func || defined __stub___$ac_func
11651 choke me
11652 #endif
11653
11654 int
11655 main ()
11656 {
11657 return $ac_func ();
11658   ;
11659   return 0;
11660 }
11661 _ACEOF
11662 rm -f conftest.$ac_objext conftest$ac_exeext
11663 if { (ac_try="$ac_link"
11664 case "(($ac_try" in
11665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666   *) ac_try_echo=$ac_try;;
11667 esac
11668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11669   (eval "$ac_link") 2>conftest.er1
11670   ac_status=$?
11671   grep -v '^ *+' conftest.er1 >conftest.err
11672   rm -f conftest.er1
11673   cat conftest.err >&5
11674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675   (exit $ac_status); } &&
11676          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11677   { (case "(($ac_try" in
11678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11679   *) ac_try_echo=$ac_try;;
11680 esac
11681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11682   (eval "$ac_try") 2>&5
11683   ac_status=$?
11684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685   (exit $ac_status); }; } &&
11686          { ac_try='test -s conftest$ac_exeext'
11687   { (case "(($ac_try" in
11688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11689   *) ac_try_echo=$ac_try;;
11690 esac
11691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11692   (eval "$ac_try") 2>&5
11693   ac_status=$?
11694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695   (exit $ac_status); }; }; then
11696   eval "$as_ac_var=yes"
11697 else
11698   echo "$as_me: failed program was:" >&5
11699 sed 's/^/| /' conftest.$ac_ext >&5
11700
11701         eval "$as_ac_var=no"
11702 fi
11703
11704 rm -f core conftest.err conftest.$ac_objext \
11705       conftest$ac_exeext conftest.$ac_ext
11706 fi
11707 ac_res=`eval echo '${'$as_ac_var'}'`
11708                { echo "$as_me:$LINENO: result: $ac_res" >&5
11709 echo "${ECHO_T}$ac_res" >&6; }
11710 if test `eval echo '${'$as_ac_var'}'` = yes; then
11711   cat >>confdefs.h <<_ACEOF
11712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11713 _ACEOF
11714  break
11715 fi
11716 done
11717
11718
11719
11720 for ac_func in strrchr rindex
11721 do
11722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11723 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11725 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11726   echo $ECHO_N "(cached) $ECHO_C" >&6
11727 else
11728   cat >conftest.$ac_ext <<_ACEOF
11729 /* confdefs.h.  */
11730 _ACEOF
11731 cat confdefs.h >>conftest.$ac_ext
11732 cat >>conftest.$ac_ext <<_ACEOF
11733 /* end confdefs.h.  */
11734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11735    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11736 #define $ac_func innocuous_$ac_func
11737
11738 /* System header to define __stub macros and hopefully few prototypes,
11739     which can conflict with char $ac_func (); below.
11740     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11741     <limits.h> exists even on freestanding compilers.  */
11742
11743 #ifdef __STDC__
11744 # include <limits.h>
11745 #else
11746 # include <assert.h>
11747 #endif
11748
11749 #undef $ac_func
11750
11751 /* Override any GCC internal prototype to avoid an error.
11752    Use char because int might match the return type of a GCC
11753    builtin and then its argument prototype would still apply.  */
11754 #ifdef __cplusplus
11755 extern "C"
11756 #endif
11757 char $ac_func ();
11758 /* The GNU C library defines this for functions which it implements
11759     to always fail with ENOSYS.  Some functions are actually named
11760     something starting with __ and the normal name is an alias.  */
11761 #if defined __stub_$ac_func || defined __stub___$ac_func
11762 choke me
11763 #endif
11764
11765 int
11766 main ()
11767 {
11768 return $ac_func ();
11769   ;
11770   return 0;
11771 }
11772 _ACEOF
11773 rm -f conftest.$ac_objext conftest$ac_exeext
11774 if { (ac_try="$ac_link"
11775 case "(($ac_try" in
11776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777   *) ac_try_echo=$ac_try;;
11778 esac
11779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11780   (eval "$ac_link") 2>conftest.er1
11781   ac_status=$?
11782   grep -v '^ *+' conftest.er1 >conftest.err
11783   rm -f conftest.er1
11784   cat conftest.err >&5
11785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786   (exit $ac_status); } &&
11787          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11788   { (case "(($ac_try" in
11789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11790   *) ac_try_echo=$ac_try;;
11791 esac
11792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11793   (eval "$ac_try") 2>&5
11794   ac_status=$?
11795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796   (exit $ac_status); }; } &&
11797          { ac_try='test -s conftest$ac_exeext'
11798   { (case "(($ac_try" in
11799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11800   *) ac_try_echo=$ac_try;;
11801 esac
11802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11803   (eval "$ac_try") 2>&5
11804   ac_status=$?
11805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806   (exit $ac_status); }; }; then
11807   eval "$as_ac_var=yes"
11808 else
11809   echo "$as_me: failed program was:" >&5
11810 sed 's/^/| /' conftest.$ac_ext >&5
11811
11812         eval "$as_ac_var=no"
11813 fi
11814
11815 rm -f core conftest.err conftest.$ac_objext \
11816       conftest$ac_exeext conftest.$ac_ext
11817 fi
11818 ac_res=`eval echo '${'$as_ac_var'}'`
11819                { echo "$as_me:$LINENO: result: $ac_res" >&5
11820 echo "${ECHO_T}$ac_res" >&6; }
11821 if test `eval echo '${'$as_ac_var'}'` = yes; then
11822   cat >>confdefs.h <<_ACEOF
11823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11824 _ACEOF
11825  break
11826 fi
11827 done
11828
11829
11830
11831 for ac_func in memcpy bcopy
11832 do
11833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11834 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11836 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11837   echo $ECHO_N "(cached) $ECHO_C" >&6
11838 else
11839   cat >conftest.$ac_ext <<_ACEOF
11840 /* confdefs.h.  */
11841 _ACEOF
11842 cat confdefs.h >>conftest.$ac_ext
11843 cat >>conftest.$ac_ext <<_ACEOF
11844 /* end confdefs.h.  */
11845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11846    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11847 #define $ac_func innocuous_$ac_func
11848
11849 /* System header to define __stub macros and hopefully few prototypes,
11850     which can conflict with char $ac_func (); below.
11851     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11852     <limits.h> exists even on freestanding compilers.  */
11853
11854 #ifdef __STDC__
11855 # include <limits.h>
11856 #else
11857 # include <assert.h>
11858 #endif
11859
11860 #undef $ac_func
11861
11862 /* Override any GCC internal prototype to avoid an error.
11863    Use char because int might match the return type of a GCC
11864    builtin and then its argument prototype would still apply.  */
11865 #ifdef __cplusplus
11866 extern "C"
11867 #endif
11868 char $ac_func ();
11869 /* The GNU C library defines this for functions which it implements
11870     to always fail with ENOSYS.  Some functions are actually named
11871     something starting with __ and the normal name is an alias.  */
11872 #if defined __stub_$ac_func || defined __stub___$ac_func
11873 choke me
11874 #endif
11875
11876 int
11877 main ()
11878 {
11879 return $ac_func ();
11880   ;
11881   return 0;
11882 }
11883 _ACEOF
11884 rm -f conftest.$ac_objext conftest$ac_exeext
11885 if { (ac_try="$ac_link"
11886 case "(($ac_try" in
11887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11888   *) ac_try_echo=$ac_try;;
11889 esac
11890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11891   (eval "$ac_link") 2>conftest.er1
11892   ac_status=$?
11893   grep -v '^ *+' conftest.er1 >conftest.err
11894   rm -f conftest.er1
11895   cat conftest.err >&5
11896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897   (exit $ac_status); } &&
11898          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11899   { (case "(($ac_try" in
11900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901   *) ac_try_echo=$ac_try;;
11902 esac
11903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904   (eval "$ac_try") 2>&5
11905   ac_status=$?
11906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907   (exit $ac_status); }; } &&
11908          { ac_try='test -s conftest$ac_exeext'
11909   { (case "(($ac_try" in
11910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911   *) ac_try_echo=$ac_try;;
11912 esac
11913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11914   (eval "$ac_try") 2>&5
11915   ac_status=$?
11916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917   (exit $ac_status); }; }; then
11918   eval "$as_ac_var=yes"
11919 else
11920   echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.$ac_ext >&5
11922
11923         eval "$as_ac_var=no"
11924 fi
11925
11926 rm -f core conftest.err conftest.$ac_objext \
11927       conftest$ac_exeext conftest.$ac_ext
11928 fi
11929 ac_res=`eval echo '${'$as_ac_var'}'`
11930                { echo "$as_me:$LINENO: result: $ac_res" >&5
11931 echo "${ECHO_T}$ac_res" >&6; }
11932 if test `eval echo '${'$as_ac_var'}'` = yes; then
11933   cat >>confdefs.h <<_ACEOF
11934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11935 _ACEOF
11936  break
11937 fi
11938 done
11939
11940
11941
11942 for ac_func in memmove strcmp
11943 do
11944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11945 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11947 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11948   echo $ECHO_N "(cached) $ECHO_C" >&6
11949 else
11950   cat >conftest.$ac_ext <<_ACEOF
11951 /* confdefs.h.  */
11952 _ACEOF
11953 cat confdefs.h >>conftest.$ac_ext
11954 cat >>conftest.$ac_ext <<_ACEOF
11955 /* end confdefs.h.  */
11956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11957    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11958 #define $ac_func innocuous_$ac_func
11959
11960 /* System header to define __stub macros and hopefully few prototypes,
11961     which can conflict with char $ac_func (); below.
11962     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11963     <limits.h> exists even on freestanding compilers.  */
11964
11965 #ifdef __STDC__
11966 # include <limits.h>
11967 #else
11968 # include <assert.h>
11969 #endif
11970
11971 #undef $ac_func
11972
11973 /* Override any GCC internal prototype to avoid an error.
11974    Use char because int might match the return type of a GCC
11975    builtin and then its argument prototype would still apply.  */
11976 #ifdef __cplusplus
11977 extern "C"
11978 #endif
11979 char $ac_func ();
11980 /* The GNU C library defines this for functions which it implements
11981     to always fail with ENOSYS.  Some functions are actually named
11982     something starting with __ and the normal name is an alias.  */
11983 #if defined __stub_$ac_func || defined __stub___$ac_func
11984 choke me
11985 #endif
11986
11987 int
11988 main ()
11989 {
11990 return $ac_func ();
11991   ;
11992   return 0;
11993 }
11994 _ACEOF
11995 rm -f conftest.$ac_objext conftest$ac_exeext
11996 if { (ac_try="$ac_link"
11997 case "(($ac_try" in
11998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999   *) ac_try_echo=$ac_try;;
12000 esac
12001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12002   (eval "$ac_link") 2>conftest.er1
12003   ac_status=$?
12004   grep -v '^ *+' conftest.er1 >conftest.err
12005   rm -f conftest.er1
12006   cat conftest.err >&5
12007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008   (exit $ac_status); } &&
12009          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12010   { (case "(($ac_try" in
12011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012   *) ac_try_echo=$ac_try;;
12013 esac
12014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015   (eval "$ac_try") 2>&5
12016   ac_status=$?
12017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018   (exit $ac_status); }; } &&
12019          { ac_try='test -s conftest$ac_exeext'
12020   { (case "(($ac_try" in
12021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022   *) ac_try_echo=$ac_try;;
12023 esac
12024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12025   (eval "$ac_try") 2>&5
12026   ac_status=$?
12027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); }; }; then
12029   eval "$as_ac_var=yes"
12030 else
12031   echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12033
12034         eval "$as_ac_var=no"
12035 fi
12036
12037 rm -f core conftest.err conftest.$ac_objext \
12038       conftest$ac_exeext conftest.$ac_ext
12039 fi
12040 ac_res=`eval echo '${'$as_ac_var'}'`
12041                { echo "$as_me:$LINENO: result: $ac_res" >&5
12042 echo "${ECHO_T}$ac_res" >&6; }
12043 if test `eval echo '${'$as_ac_var'}'` = yes; then
12044   cat >>confdefs.h <<_ACEOF
12045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12046 _ACEOF
12047
12048 fi
12049 done
12050
12051
12052
12053
12054 for ac_func in closedir opendir readdir
12055 do
12056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12057 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12059 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12060   echo $ECHO_N "(cached) $ECHO_C" >&6
12061 else
12062   cat >conftest.$ac_ext <<_ACEOF
12063 /* confdefs.h.  */
12064 _ACEOF
12065 cat confdefs.h >>conftest.$ac_ext
12066 cat >>conftest.$ac_ext <<_ACEOF
12067 /* end confdefs.h.  */
12068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12069    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12070 #define $ac_func innocuous_$ac_func
12071
12072 /* System header to define __stub macros and hopefully few prototypes,
12073     which can conflict with char $ac_func (); below.
12074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12075     <limits.h> exists even on freestanding compilers.  */
12076
12077 #ifdef __STDC__
12078 # include <limits.h>
12079 #else
12080 # include <assert.h>
12081 #endif
12082
12083 #undef $ac_func
12084
12085 /* Override any GCC internal prototype to avoid an error.
12086    Use char because int might match the return type of a GCC
12087    builtin and then its argument prototype would still apply.  */
12088 #ifdef __cplusplus
12089 extern "C"
12090 #endif
12091 char $ac_func ();
12092 /* The GNU C library defines this for functions which it implements
12093     to always fail with ENOSYS.  Some functions are actually named
12094     something starting with __ and the normal name is an alias.  */
12095 #if defined __stub_$ac_func || defined __stub___$ac_func
12096 choke me
12097 #endif
12098
12099 int
12100 main ()
12101 {
12102 return $ac_func ();
12103   ;
12104   return 0;
12105 }
12106 _ACEOF
12107 rm -f conftest.$ac_objext conftest$ac_exeext
12108 if { (ac_try="$ac_link"
12109 case "(($ac_try" in
12110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12111   *) ac_try_echo=$ac_try;;
12112 esac
12113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12114   (eval "$ac_link") 2>conftest.er1
12115   ac_status=$?
12116   grep -v '^ *+' conftest.er1 >conftest.err
12117   rm -f conftest.er1
12118   cat conftest.err >&5
12119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120   (exit $ac_status); } &&
12121          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12122   { (case "(($ac_try" in
12123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124   *) ac_try_echo=$ac_try;;
12125 esac
12126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12127   (eval "$ac_try") 2>&5
12128   ac_status=$?
12129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130   (exit $ac_status); }; } &&
12131          { ac_try='test -s conftest$ac_exeext'
12132   { (case "(($ac_try" in
12133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12134   *) ac_try_echo=$ac_try;;
12135 esac
12136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12137   (eval "$ac_try") 2>&5
12138   ac_status=$?
12139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140   (exit $ac_status); }; }; then
12141   eval "$as_ac_var=yes"
12142 else
12143   echo "$as_me: failed program was:" >&5
12144 sed 's/^/| /' conftest.$ac_ext >&5
12145
12146         eval "$as_ac_var=no"
12147 fi
12148
12149 rm -f core conftest.err conftest.$ac_objext \
12150       conftest$ac_exeext conftest.$ac_ext
12151 fi
12152 ac_res=`eval echo '${'$as_ac_var'}'`
12153                { echo "$as_me:$LINENO: result: $ac_res" >&5
12154 echo "${ECHO_T}$ac_res" >&6; }
12155 if test `eval echo '${'$as_ac_var'}'` = yes; then
12156   cat >>confdefs.h <<_ACEOF
12157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12158 _ACEOF
12159
12160 fi
12161 done
12162
12163
12164
12165 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12166 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12167
12168 ICC=no
12169 IXX=no
12170 case $CC in
12171   icc*|icpc*)
12172     ICC=yes
12173     IXX=yes
12174     ;;
12175    *)
12176     ;;
12177 esac
12178
12179 if test "$GCC" != "yes" && test "$ICC" != "yes"
12180 then
12181   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12182 echo "$as_me: error: gcc|icc required but not found" >&2;}
12183    { (exit 1); exit 1; }; }
12184 fi
12185
12186 if test "$GXX" != "yes" && test "$IXX" != "yes"
12187 then
12188   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12189 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12190    { (exit 1); exit 1; }; }
12191 fi
12192
12193 if test "$GCC" = "yes"
12194 then
12195   cat >conftest.$ac_ext <<_ACEOF
12196 #if !defined(__GNUC__) || __GNUC__ < 3
12197 #error Unsupported GCC version
12198 #endif
12199
12200 _ACEOF
12201 rm -f conftest.$ac_objext
12202 if { (ac_try="$ac_compile"
12203 case "(($ac_try" in
12204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205   *) ac_try_echo=$ac_try;;
12206 esac
12207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208   (eval "$ac_compile") 2>conftest.er1
12209   ac_status=$?
12210   grep -v '^ *+' conftest.er1 >conftest.err
12211   rm -f conftest.er1
12212   cat conftest.err >&5
12213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214   (exit $ac_status); } &&
12215          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12216   { (case "(($ac_try" in
12217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218   *) ac_try_echo=$ac_try;;
12219 esac
12220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221   (eval "$ac_try") 2>&5
12222   ac_status=$?
12223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224   (exit $ac_status); }; } &&
12225          { ac_try='test -s conftest.$ac_objext'
12226   { (case "(($ac_try" in
12227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228   *) ac_try_echo=$ac_try;;
12229 esac
12230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231   (eval "$ac_try") 2>&5
12232   ac_status=$?
12233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234   (exit $ac_status); }; }; then
12235   :
12236 else
12237   echo "$as_me: failed program was:" >&5
12238 sed 's/^/| /' conftest.$ac_ext >&5
12239
12240         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12241 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12242    { (exit 1); exit 1; }; }
12243 fi
12244
12245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12246 fi
12247
12248 if test -z "$llvm_cv_gnu_make_command"
12249 then
12250   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12251 echo "$as_me: error: GNU Make required but not found" >&2;}
12252    { (exit 1); exit 1; }; }
12253 fi
12254
12255 { echo "$as_me:$LINENO: result: ok" >&5
12256 echo "${ECHO_T}ok" >&6; }
12257
12258 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12259 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12260 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12261
12262 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12263
12264 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12265 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12266
12267
12268
12269 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12270 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12271 if test "${ac_cv_lib_m_sin+set}" = set; then
12272   echo $ECHO_N "(cached) $ECHO_C" >&6
12273 else
12274   ac_check_lib_save_LIBS=$LIBS
12275 LIBS="-lm  $LIBS"
12276 cat >conftest.$ac_ext <<_ACEOF
12277 /* confdefs.h.  */
12278 _ACEOF
12279 cat confdefs.h >>conftest.$ac_ext
12280 cat >>conftest.$ac_ext <<_ACEOF
12281 /* end confdefs.h.  */
12282
12283 /* Override any GCC internal prototype to avoid an error.
12284    Use char because int might match the return type of a GCC
12285    builtin and then its argument prototype would still apply.  */
12286 #ifdef __cplusplus
12287 extern "C"
12288 #endif
12289 char sin ();
12290 int
12291 main ()
12292 {
12293 return sin ();
12294   ;
12295   return 0;
12296 }
12297 _ACEOF
12298 rm -f conftest.$ac_objext conftest$ac_exeext
12299 if { (ac_try="$ac_link"
12300 case "(($ac_try" in
12301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302   *) ac_try_echo=$ac_try;;
12303 esac
12304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305   (eval "$ac_link") 2>conftest.er1
12306   ac_status=$?
12307   grep -v '^ *+' conftest.er1 >conftest.err
12308   rm -f conftest.er1
12309   cat conftest.err >&5
12310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311   (exit $ac_status); } &&
12312          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12313   { (case "(($ac_try" in
12314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12315   *) ac_try_echo=$ac_try;;
12316 esac
12317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12318   (eval "$ac_try") 2>&5
12319   ac_status=$?
12320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321   (exit $ac_status); }; } &&
12322          { ac_try='test -s conftest$ac_exeext'
12323   { (case "(($ac_try" in
12324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12325   *) ac_try_echo=$ac_try;;
12326 esac
12327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12328   (eval "$ac_try") 2>&5
12329   ac_status=$?
12330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331   (exit $ac_status); }; }; then
12332   ac_cv_lib_m_sin=yes
12333 else
12334   echo "$as_me: failed program was:" >&5
12335 sed 's/^/| /' conftest.$ac_ext >&5
12336
12337         ac_cv_lib_m_sin=no
12338 fi
12339
12340 rm -f core conftest.err conftest.$ac_objext \
12341       conftest$ac_exeext conftest.$ac_ext
12342 LIBS=$ac_check_lib_save_LIBS
12343 fi
12344 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12345 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12346 if test $ac_cv_lib_m_sin = yes; then
12347   cat >>confdefs.h <<_ACEOF
12348 #define HAVE_LIBM 1
12349 _ACEOF
12350
12351   LIBS="-lm $LIBS"
12352
12353 fi
12354
12355 if test "$llvm_cv_os_type" = "MingW" ; then
12356
12357 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12358 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12359 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12360   echo $ECHO_N "(cached) $ECHO_C" >&6
12361 else
12362   ac_check_lib_save_LIBS=$LIBS
12363 LIBS="-limagehlp  $LIBS"
12364 cat >conftest.$ac_ext <<_ACEOF
12365 /* confdefs.h.  */
12366 _ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h.  */
12370
12371
12372 int
12373 main ()
12374 {
12375 return main ();
12376   ;
12377   return 0;
12378 }
12379 _ACEOF
12380 rm -f conftest.$ac_objext conftest$ac_exeext
12381 if { (ac_try="$ac_link"
12382 case "(($ac_try" in
12383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12384   *) ac_try_echo=$ac_try;;
12385 esac
12386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12387   (eval "$ac_link") 2>conftest.er1
12388   ac_status=$?
12389   grep -v '^ *+' conftest.er1 >conftest.err
12390   rm -f conftest.er1
12391   cat conftest.err >&5
12392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393   (exit $ac_status); } &&
12394          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12395   { (case "(($ac_try" in
12396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397   *) ac_try_echo=$ac_try;;
12398 esac
12399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12400   (eval "$ac_try") 2>&5
12401   ac_status=$?
12402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403   (exit $ac_status); }; } &&
12404          { ac_try='test -s conftest$ac_exeext'
12405   { (case "(($ac_try" in
12406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12407   *) ac_try_echo=$ac_try;;
12408 esac
12409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12410   (eval "$ac_try") 2>&5
12411   ac_status=$?
12412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413   (exit $ac_status); }; }; then
12414   ac_cv_lib_imagehlp_main=yes
12415 else
12416   echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12418
12419         ac_cv_lib_imagehlp_main=no
12420 fi
12421
12422 rm -f core conftest.err conftest.$ac_objext \
12423       conftest$ac_exeext conftest.$ac_ext
12424 LIBS=$ac_check_lib_save_LIBS
12425 fi
12426 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12427 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12428 if test $ac_cv_lib_imagehlp_main = yes; then
12429   cat >>confdefs.h <<_ACEOF
12430 #define HAVE_LIBIMAGEHLP 1
12431 _ACEOF
12432
12433   LIBS="-limagehlp $LIBS"
12434
12435 fi
12436
12437
12438 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12439 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12440 if test "${ac_cv_lib_psapi_main+set}" = set; then
12441   echo $ECHO_N "(cached) $ECHO_C" >&6
12442 else
12443   ac_check_lib_save_LIBS=$LIBS
12444 LIBS="-lpsapi  $LIBS"
12445 cat >conftest.$ac_ext <<_ACEOF
12446 /* confdefs.h.  */
12447 _ACEOF
12448 cat confdefs.h >>conftest.$ac_ext
12449 cat >>conftest.$ac_ext <<_ACEOF
12450 /* end confdefs.h.  */
12451
12452
12453 int
12454 main ()
12455 {
12456 return main ();
12457   ;
12458   return 0;
12459 }
12460 _ACEOF
12461 rm -f conftest.$ac_objext conftest$ac_exeext
12462 if { (ac_try="$ac_link"
12463 case "(($ac_try" in
12464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465   *) ac_try_echo=$ac_try;;
12466 esac
12467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468   (eval "$ac_link") 2>conftest.er1
12469   ac_status=$?
12470   grep -v '^ *+' conftest.er1 >conftest.err
12471   rm -f conftest.er1
12472   cat conftest.err >&5
12473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474   (exit $ac_status); } &&
12475          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12476   { (case "(($ac_try" in
12477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12478   *) ac_try_echo=$ac_try;;
12479 esac
12480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12481   (eval "$ac_try") 2>&5
12482   ac_status=$?
12483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484   (exit $ac_status); }; } &&
12485          { ac_try='test -s conftest$ac_exeext'
12486   { (case "(($ac_try" in
12487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12488   *) ac_try_echo=$ac_try;;
12489 esac
12490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12491   (eval "$ac_try") 2>&5
12492   ac_status=$?
12493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494   (exit $ac_status); }; }; then
12495   ac_cv_lib_psapi_main=yes
12496 else
12497   echo "$as_me: failed program was:" >&5
12498 sed 's/^/| /' conftest.$ac_ext >&5
12499
12500         ac_cv_lib_psapi_main=no
12501 fi
12502
12503 rm -f core conftest.err conftest.$ac_objext \
12504       conftest$ac_exeext conftest.$ac_ext
12505 LIBS=$ac_check_lib_save_LIBS
12506 fi
12507 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12508 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12509 if test $ac_cv_lib_psapi_main = yes; then
12510   cat >>confdefs.h <<_ACEOF
12511 #define HAVE_LIBPSAPI 1
12512 _ACEOF
12513
12514   LIBS="-lpsapi $LIBS"
12515
12516 fi
12517
12518 fi
12519
12520 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12521 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12522 if test "${ac_cv_search_dlopen+set}" = set; then
12523   echo $ECHO_N "(cached) $ECHO_C" >&6
12524 else
12525   ac_func_search_save_LIBS=$LIBS
12526 cat >conftest.$ac_ext <<_ACEOF
12527 /* confdefs.h.  */
12528 _ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h.  */
12532
12533 /* Override any GCC internal prototype to avoid an error.
12534    Use char because int might match the return type of a GCC
12535    builtin and then its argument prototype would still apply.  */
12536 #ifdef __cplusplus
12537 extern "C"
12538 #endif
12539 char dlopen ();
12540 int
12541 main ()
12542 {
12543 return dlopen ();
12544   ;
12545   return 0;
12546 }
12547 _ACEOF
12548 for ac_lib in '' dl; do
12549   if test -z "$ac_lib"; then
12550     ac_res="none required"
12551   else
12552     ac_res=-l$ac_lib
12553     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12554   fi
12555   rm -f conftest.$ac_objext conftest$ac_exeext
12556 if { (ac_try="$ac_link"
12557 case "(($ac_try" in
12558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559   *) ac_try_echo=$ac_try;;
12560 esac
12561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562   (eval "$ac_link") 2>conftest.er1
12563   ac_status=$?
12564   grep -v '^ *+' conftest.er1 >conftest.err
12565   rm -f conftest.er1
12566   cat conftest.err >&5
12567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568   (exit $ac_status); } &&
12569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12570   { (case "(($ac_try" in
12571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572   *) ac_try_echo=$ac_try;;
12573 esac
12574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575   (eval "$ac_try") 2>&5
12576   ac_status=$?
12577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578   (exit $ac_status); }; } &&
12579          { ac_try='test -s conftest$ac_exeext'
12580   { (case "(($ac_try" in
12581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12582   *) ac_try_echo=$ac_try;;
12583 esac
12584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12585   (eval "$ac_try") 2>&5
12586   ac_status=$?
12587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588   (exit $ac_status); }; }; then
12589   ac_cv_search_dlopen=$ac_res
12590 else
12591   echo "$as_me: failed program was:" >&5
12592 sed 's/^/| /' conftest.$ac_ext >&5
12593
12594
12595 fi
12596
12597 rm -f core conftest.err conftest.$ac_objext \
12598       conftest$ac_exeext
12599   if test "${ac_cv_search_dlopen+set}" = set; then
12600   break
12601 fi
12602 done
12603 if test "${ac_cv_search_dlopen+set}" = set; then
12604   :
12605 else
12606   ac_cv_search_dlopen=no
12607 fi
12608 rm conftest.$ac_ext
12609 LIBS=$ac_func_search_save_LIBS
12610 fi
12611 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12612 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12613 ac_res=$ac_cv_search_dlopen
12614 if test "$ac_res" != no; then
12615   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12616
12617 cat >>confdefs.h <<\_ACEOF
12618 #define HAVE_DLOPEN 1
12619 _ACEOF
12620
12621 else
12622   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12623 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12624 fi
12625
12626
12627 if test "$llvm_cv_enable_libffi" = "yes" ; then
12628   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12629 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12630 if test "${ac_cv_search_ffi_call+set}" = set; then
12631   echo $ECHO_N "(cached) $ECHO_C" >&6
12632 else
12633   ac_func_search_save_LIBS=$LIBS
12634 cat >conftest.$ac_ext <<_ACEOF
12635 /* confdefs.h.  */
12636 _ACEOF
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h.  */
12640
12641 /* Override any GCC internal prototype to avoid an error.
12642    Use char because int might match the return type of a GCC
12643    builtin and then its argument prototype would still apply.  */
12644 #ifdef __cplusplus
12645 extern "C"
12646 #endif
12647 char ffi_call ();
12648 int
12649 main ()
12650 {
12651 return ffi_call ();
12652   ;
12653   return 0;
12654 }
12655 _ACEOF
12656 for ac_lib in '' ffi; do
12657   if test -z "$ac_lib"; then
12658     ac_res="none required"
12659   else
12660     ac_res=-l$ac_lib
12661     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12662   fi
12663   rm -f conftest.$ac_objext conftest$ac_exeext
12664 if { (ac_try="$ac_link"
12665 case "(($ac_try" in
12666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12667   *) ac_try_echo=$ac_try;;
12668 esac
12669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12670   (eval "$ac_link") 2>conftest.er1
12671   ac_status=$?
12672   grep -v '^ *+' conftest.er1 >conftest.err
12673   rm -f conftest.er1
12674   cat conftest.err >&5
12675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676   (exit $ac_status); } &&
12677          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12678   { (case "(($ac_try" in
12679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12680   *) ac_try_echo=$ac_try;;
12681 esac
12682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12683   (eval "$ac_try") 2>&5
12684   ac_status=$?
12685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686   (exit $ac_status); }; } &&
12687          { ac_try='test -s conftest$ac_exeext'
12688   { (case "(($ac_try" in
12689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12690   *) ac_try_echo=$ac_try;;
12691 esac
12692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12693   (eval "$ac_try") 2>&5
12694   ac_status=$?
12695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696   (exit $ac_status); }; }; then
12697   ac_cv_search_ffi_call=$ac_res
12698 else
12699   echo "$as_me: failed program was:" >&5
12700 sed 's/^/| /' conftest.$ac_ext >&5
12701
12702
12703 fi
12704
12705 rm -f core conftest.err conftest.$ac_objext \
12706       conftest$ac_exeext
12707   if test "${ac_cv_search_ffi_call+set}" = set; then
12708   break
12709 fi
12710 done
12711 if test "${ac_cv_search_ffi_call+set}" = set; then
12712   :
12713 else
12714   ac_cv_search_ffi_call=no
12715 fi
12716 rm conftest.$ac_ext
12717 LIBS=$ac_func_search_save_LIBS
12718 fi
12719 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12720 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12721 ac_res=$ac_cv_search_ffi_call
12722 if test "$ac_res" != no; then
12723   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12724
12725 cat >>confdefs.h <<\_ACEOF
12726 #define HAVE_FFI_CALL 1
12727 _ACEOF
12728
12729 else
12730   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12731 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12732    { (exit 1); exit 1; }; }
12733 fi
12734
12735 fi
12736
12737 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12738 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12739 if test "${ac_cv_search_mallinfo+set}" = set; then
12740   echo $ECHO_N "(cached) $ECHO_C" >&6
12741 else
12742   ac_func_search_save_LIBS=$LIBS
12743 cat >conftest.$ac_ext <<_ACEOF
12744 /* confdefs.h.  */
12745 _ACEOF
12746 cat confdefs.h >>conftest.$ac_ext
12747 cat >>conftest.$ac_ext <<_ACEOF
12748 /* end confdefs.h.  */
12749
12750 /* Override any GCC internal prototype to avoid an error.
12751    Use char because int might match the return type of a GCC
12752    builtin and then its argument prototype would still apply.  */
12753 #ifdef __cplusplus
12754 extern "C"
12755 #endif
12756 char mallinfo ();
12757 int
12758 main ()
12759 {
12760 return mallinfo ();
12761   ;
12762   return 0;
12763 }
12764 _ACEOF
12765 for ac_lib in '' malloc; do
12766   if test -z "$ac_lib"; then
12767     ac_res="none required"
12768   else
12769     ac_res=-l$ac_lib
12770     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12771   fi
12772   rm -f conftest.$ac_objext conftest$ac_exeext
12773 if { (ac_try="$ac_link"
12774 case "(($ac_try" in
12775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776   *) ac_try_echo=$ac_try;;
12777 esac
12778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779   (eval "$ac_link") 2>conftest.er1
12780   ac_status=$?
12781   grep -v '^ *+' conftest.er1 >conftest.err
12782   rm -f conftest.er1
12783   cat conftest.err >&5
12784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785   (exit $ac_status); } &&
12786          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12787   { (case "(($ac_try" in
12788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789   *) ac_try_echo=$ac_try;;
12790 esac
12791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792   (eval "$ac_try") 2>&5
12793   ac_status=$?
12794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795   (exit $ac_status); }; } &&
12796          { ac_try='test -s conftest$ac_exeext'
12797   { (case "(($ac_try" in
12798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12799   *) ac_try_echo=$ac_try;;
12800 esac
12801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12802   (eval "$ac_try") 2>&5
12803   ac_status=$?
12804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805   (exit $ac_status); }; }; then
12806   ac_cv_search_mallinfo=$ac_res
12807 else
12808   echo "$as_me: failed program was:" >&5
12809 sed 's/^/| /' conftest.$ac_ext >&5
12810
12811
12812 fi
12813
12814 rm -f core conftest.err conftest.$ac_objext \
12815       conftest$ac_exeext
12816   if test "${ac_cv_search_mallinfo+set}" = set; then
12817   break
12818 fi
12819 done
12820 if test "${ac_cv_search_mallinfo+set}" = set; then
12821   :
12822 else
12823   ac_cv_search_mallinfo=no
12824 fi
12825 rm conftest.$ac_ext
12826 LIBS=$ac_func_search_save_LIBS
12827 fi
12828 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12829 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12830 ac_res=$ac_cv_search_mallinfo
12831 if test "$ac_res" != no; then
12832   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12833
12834 cat >>confdefs.h <<\_ACEOF
12835 #define HAVE_MALLINFO 1
12836 _ACEOF
12837
12838 fi
12839
12840
12841 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12842
12843 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12844 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12845 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12846   echo $ECHO_N "(cached) $ECHO_C" >&6
12847 else
12848   ac_check_lib_save_LIBS=$LIBS
12849 LIBS="-lpthread  $LIBS"
12850 cat >conftest.$ac_ext <<_ACEOF
12851 /* confdefs.h.  */
12852 _ACEOF
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h.  */
12856
12857 /* Override any GCC internal prototype to avoid an error.
12858    Use char because int might match the return type of a GCC
12859    builtin and then its argument prototype would still apply.  */
12860 #ifdef __cplusplus
12861 extern "C"
12862 #endif
12863 char pthread_mutex_init ();
12864 int
12865 main ()
12866 {
12867 return pthread_mutex_init ();
12868   ;
12869   return 0;
12870 }
12871 _ACEOF
12872 rm -f conftest.$ac_objext conftest$ac_exeext
12873 if { (ac_try="$ac_link"
12874 case "(($ac_try" in
12875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876   *) ac_try_echo=$ac_try;;
12877 esac
12878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879   (eval "$ac_link") 2>conftest.er1
12880   ac_status=$?
12881   grep -v '^ *+' conftest.er1 >conftest.err
12882   rm -f conftest.er1
12883   cat conftest.err >&5
12884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885   (exit $ac_status); } &&
12886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12887   { (case "(($ac_try" in
12888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889   *) ac_try_echo=$ac_try;;
12890 esac
12891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12892   (eval "$ac_try") 2>&5
12893   ac_status=$?
12894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895   (exit $ac_status); }; } &&
12896          { ac_try='test -s conftest$ac_exeext'
12897   { (case "(($ac_try" in
12898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899   *) ac_try_echo=$ac_try;;
12900 esac
12901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902   (eval "$ac_try") 2>&5
12903   ac_status=$?
12904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905   (exit $ac_status); }; }; then
12906   ac_cv_lib_pthread_pthread_mutex_init=yes
12907 else
12908   echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12910
12911         ac_cv_lib_pthread_pthread_mutex_init=no
12912 fi
12913
12914 rm -f core conftest.err conftest.$ac_objext \
12915       conftest$ac_exeext conftest.$ac_ext
12916 LIBS=$ac_check_lib_save_LIBS
12917 fi
12918 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12919 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12920 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12921   cat >>confdefs.h <<_ACEOF
12922 #define HAVE_LIBPTHREAD 1
12923 _ACEOF
12924
12925   LIBS="-lpthread $LIBS"
12926
12927 fi
12928
12929   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12930 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12931 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12932   echo $ECHO_N "(cached) $ECHO_C" >&6
12933 else
12934   ac_func_search_save_LIBS=$LIBS
12935 cat >conftest.$ac_ext <<_ACEOF
12936 /* confdefs.h.  */
12937 _ACEOF
12938 cat confdefs.h >>conftest.$ac_ext
12939 cat >>conftest.$ac_ext <<_ACEOF
12940 /* end confdefs.h.  */
12941
12942 /* Override any GCC internal prototype to avoid an error.
12943    Use char because int might match the return type of a GCC
12944    builtin and then its argument prototype would still apply.  */
12945 #ifdef __cplusplus
12946 extern "C"
12947 #endif
12948 char pthread_mutex_lock ();
12949 int
12950 main ()
12951 {
12952 return pthread_mutex_lock ();
12953   ;
12954   return 0;
12955 }
12956 _ACEOF
12957 for ac_lib in '' pthread; do
12958   if test -z "$ac_lib"; then
12959     ac_res="none required"
12960   else
12961     ac_res=-l$ac_lib
12962     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12963   fi
12964   rm -f conftest.$ac_objext conftest$ac_exeext
12965 if { (ac_try="$ac_link"
12966 case "(($ac_try" in
12967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968   *) ac_try_echo=$ac_try;;
12969 esac
12970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12971   (eval "$ac_link") 2>conftest.er1
12972   ac_status=$?
12973   grep -v '^ *+' conftest.er1 >conftest.err
12974   rm -f conftest.er1
12975   cat conftest.err >&5
12976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977   (exit $ac_status); } &&
12978          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12979   { (case "(($ac_try" in
12980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12981   *) ac_try_echo=$ac_try;;
12982 esac
12983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12984   (eval "$ac_try") 2>&5
12985   ac_status=$?
12986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987   (exit $ac_status); }; } &&
12988          { ac_try='test -s conftest$ac_exeext'
12989   { (case "(($ac_try" in
12990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12991   *) ac_try_echo=$ac_try;;
12992 esac
12993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12994   (eval "$ac_try") 2>&5
12995   ac_status=$?
12996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997   (exit $ac_status); }; }; then
12998   ac_cv_search_pthread_mutex_lock=$ac_res
12999 else
13000   echo "$as_me: failed program was:" >&5
13001 sed 's/^/| /' conftest.$ac_ext >&5
13002
13003
13004 fi
13005
13006 rm -f core conftest.err conftest.$ac_objext \
13007       conftest$ac_exeext
13008   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13009   break
13010 fi
13011 done
13012 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13013   :
13014 else
13015   ac_cv_search_pthread_mutex_lock=no
13016 fi
13017 rm conftest.$ac_ext
13018 LIBS=$ac_func_search_save_LIBS
13019 fi
13020 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13021 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13022 ac_res=$ac_cv_search_pthread_mutex_lock
13023 if test "$ac_res" != no; then
13024   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13025
13026 cat >>confdefs.h <<\_ACEOF
13027 #define HAVE_PTHREAD_MUTEX_LOCK 1
13028 _ACEOF
13029
13030 fi
13031
13032   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13033 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13034 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13035   echo $ECHO_N "(cached) $ECHO_C" >&6
13036 else
13037   ac_func_search_save_LIBS=$LIBS
13038 cat >conftest.$ac_ext <<_ACEOF
13039 /* confdefs.h.  */
13040 _ACEOF
13041 cat confdefs.h >>conftest.$ac_ext
13042 cat >>conftest.$ac_ext <<_ACEOF
13043 /* end confdefs.h.  */
13044
13045 /* Override any GCC internal prototype to avoid an error.
13046    Use char because int might match the return type of a GCC
13047    builtin and then its argument prototype would still apply.  */
13048 #ifdef __cplusplus
13049 extern "C"
13050 #endif
13051 char pthread_rwlock_init ();
13052 int
13053 main ()
13054 {
13055 return pthread_rwlock_init ();
13056   ;
13057   return 0;
13058 }
13059 _ACEOF
13060 for ac_lib in '' pthread; do
13061   if test -z "$ac_lib"; then
13062     ac_res="none required"
13063   else
13064     ac_res=-l$ac_lib
13065     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13066   fi
13067   rm -f conftest.$ac_objext conftest$ac_exeext
13068 if { (ac_try="$ac_link"
13069 case "(($ac_try" in
13070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071   *) ac_try_echo=$ac_try;;
13072 esac
13073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074   (eval "$ac_link") 2>conftest.er1
13075   ac_status=$?
13076   grep -v '^ *+' conftest.er1 >conftest.err
13077   rm -f conftest.er1
13078   cat conftest.err >&5
13079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080   (exit $ac_status); } &&
13081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13082   { (case "(($ac_try" in
13083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13084   *) ac_try_echo=$ac_try;;
13085 esac
13086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13087   (eval "$ac_try") 2>&5
13088   ac_status=$?
13089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090   (exit $ac_status); }; } &&
13091          { ac_try='test -s conftest$ac_exeext'
13092   { (case "(($ac_try" in
13093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13094   *) ac_try_echo=$ac_try;;
13095 esac
13096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13097   (eval "$ac_try") 2>&5
13098   ac_status=$?
13099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100   (exit $ac_status); }; }; then
13101   ac_cv_search_pthread_rwlock_init=$ac_res
13102 else
13103   echo "$as_me: failed program was:" >&5
13104 sed 's/^/| /' conftest.$ac_ext >&5
13105
13106
13107 fi
13108
13109 rm -f core conftest.err conftest.$ac_objext \
13110       conftest$ac_exeext
13111   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13112   break
13113 fi
13114 done
13115 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13116   :
13117 else
13118   ac_cv_search_pthread_rwlock_init=no
13119 fi
13120 rm conftest.$ac_ext
13121 LIBS=$ac_func_search_save_LIBS
13122 fi
13123 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13124 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13125 ac_res=$ac_cv_search_pthread_rwlock_init
13126 if test "$ac_res" != no; then
13127   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13128
13129 cat >>confdefs.h <<\_ACEOF
13130 #define HAVE_PTHREAD_RWLOCK_INIT 1
13131 _ACEOF
13132
13133 fi
13134
13135   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13136 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13137 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13138   echo $ECHO_N "(cached) $ECHO_C" >&6
13139 else
13140   ac_func_search_save_LIBS=$LIBS
13141 cat >conftest.$ac_ext <<_ACEOF
13142 /* confdefs.h.  */
13143 _ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h.  */
13147
13148 /* Override any GCC internal prototype to avoid an error.
13149    Use char because int might match the return type of a GCC
13150    builtin and then its argument prototype would still apply.  */
13151 #ifdef __cplusplus
13152 extern "C"
13153 #endif
13154 char pthread_getspecific ();
13155 int
13156 main ()
13157 {
13158 return pthread_getspecific ();
13159   ;
13160   return 0;
13161 }
13162 _ACEOF
13163 for ac_lib in '' pthread; do
13164   if test -z "$ac_lib"; then
13165     ac_res="none required"
13166   else
13167     ac_res=-l$ac_lib
13168     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13169   fi
13170   rm -f conftest.$ac_objext conftest$ac_exeext
13171 if { (ac_try="$ac_link"
13172 case "(($ac_try" in
13173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174   *) ac_try_echo=$ac_try;;
13175 esac
13176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177   (eval "$ac_link") 2>conftest.er1
13178   ac_status=$?
13179   grep -v '^ *+' conftest.er1 >conftest.err
13180   rm -f conftest.er1
13181   cat conftest.err >&5
13182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183   (exit $ac_status); } &&
13184          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13185   { (case "(($ac_try" in
13186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187   *) ac_try_echo=$ac_try;;
13188 esac
13189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190   (eval "$ac_try") 2>&5
13191   ac_status=$?
13192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193   (exit $ac_status); }; } &&
13194          { ac_try='test -s conftest$ac_exeext'
13195   { (case "(($ac_try" in
13196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197   *) ac_try_echo=$ac_try;;
13198 esac
13199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13200   (eval "$ac_try") 2>&5
13201   ac_status=$?
13202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203   (exit $ac_status); }; }; then
13204   ac_cv_search_pthread_getspecific=$ac_res
13205 else
13206   echo "$as_me: failed program was:" >&5
13207 sed 's/^/| /' conftest.$ac_ext >&5
13208
13209
13210 fi
13211
13212 rm -f core conftest.err conftest.$ac_objext \
13213       conftest$ac_exeext
13214   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13215   break
13216 fi
13217 done
13218 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13219   :
13220 else
13221   ac_cv_search_pthread_getspecific=no
13222 fi
13223 rm conftest.$ac_ext
13224 LIBS=$ac_func_search_save_LIBS
13225 fi
13226 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13227 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13228 ac_res=$ac_cv_search_pthread_getspecific
13229 if test "$ac_res" != no; then
13230   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13231
13232 cat >>confdefs.h <<\_ACEOF
13233 #define HAVE_PTHREAD_GETSPECIFIC 1
13234 _ACEOF
13235
13236 fi
13237
13238 fi
13239
13240
13241 # Check whether --with-udis86 was given.
13242 if test "${with_udis86+set}" = set; then
13243   withval=$with_udis86;
13244       USE_UDIS86=1
13245
13246       case "$withval" in
13247         /usr/lib|yes) ;;
13248         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13249       esac
13250
13251 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13252 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13253 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13254   echo $ECHO_N "(cached) $ECHO_C" >&6
13255 else
13256   ac_check_lib_save_LIBS=$LIBS
13257 LIBS="-ludis86  $LIBS"
13258 cat >conftest.$ac_ext <<_ACEOF
13259 /* confdefs.h.  */
13260 _ACEOF
13261 cat confdefs.h >>conftest.$ac_ext
13262 cat >>conftest.$ac_ext <<_ACEOF
13263 /* end confdefs.h.  */
13264
13265 /* Override any GCC internal prototype to avoid an error.
13266    Use char because int might match the return type of a GCC
13267    builtin and then its argument prototype would still apply.  */
13268 #ifdef __cplusplus
13269 extern "C"
13270 #endif
13271 char ud_init ();
13272 int
13273 main ()
13274 {
13275 return ud_init ();
13276   ;
13277   return 0;
13278 }
13279 _ACEOF
13280 rm -f conftest.$ac_objext conftest$ac_exeext
13281 if { (ac_try="$ac_link"
13282 case "(($ac_try" in
13283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284   *) ac_try_echo=$ac_try;;
13285 esac
13286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287   (eval "$ac_link") 2>conftest.er1
13288   ac_status=$?
13289   grep -v '^ *+' conftest.er1 >conftest.err
13290   rm -f conftest.er1
13291   cat conftest.err >&5
13292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293   (exit $ac_status); } &&
13294          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13295   { (case "(($ac_try" in
13296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297   *) ac_try_echo=$ac_try;;
13298 esac
13299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13300   (eval "$ac_try") 2>&5
13301   ac_status=$?
13302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303   (exit $ac_status); }; } &&
13304          { ac_try='test -s conftest$ac_exeext'
13305   { (case "(($ac_try" in
13306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307   *) ac_try_echo=$ac_try;;
13308 esac
13309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13310   (eval "$ac_try") 2>&5
13311   ac_status=$?
13312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313   (exit $ac_status); }; }; then
13314   ac_cv_lib_udis86_ud_init=yes
13315 else
13316   echo "$as_me: failed program was:" >&5
13317 sed 's/^/| /' conftest.$ac_ext >&5
13318
13319         ac_cv_lib_udis86_ud_init=no
13320 fi
13321
13322 rm -f core conftest.err conftest.$ac_objext \
13323       conftest$ac_exeext conftest.$ac_ext
13324 LIBS=$ac_check_lib_save_LIBS
13325 fi
13326 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13327 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13328 if test $ac_cv_lib_udis86_ud_init = yes; then
13329   cat >>confdefs.h <<_ACEOF
13330 #define HAVE_LIBUDIS86 1
13331 _ACEOF
13332
13333   LIBS="-ludis86 $LIBS"
13334
13335 else
13336
13337         echo "Error! You need to have libudis86 around."
13338         exit -1
13339
13340 fi
13341
13342
13343 else
13344   USE_UDIS86=0
13345
13346 fi
13347
13348
13349 cat >>confdefs.h <<_ACEOF
13350 #define USE_UDIS86 $USE_UDIS86
13351 _ACEOF
13352
13353
13354
13355 # Check whether --with-oprofile was given.
13356 if test "${with_oprofile+set}" = set; then
13357   withval=$with_oprofile;
13358       USE_OPROFILE=1
13359
13360       case "$withval" in
13361         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13362         no) llvm_cv_oppath=
13363             USE_OPROFILE=0
13364  ;;
13365         *) llvm_cv_oppath="${withval}/lib/oprofile"
13366            CPPFLAGS="-I${withval}/include";;
13367       esac
13368       if test -n "$llvm_cv_oppath" ; then
13369         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13370                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13371 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13372 if test "${ac_cv_search_bfd_init+set}" = set; then
13373   echo $ECHO_N "(cached) $ECHO_C" >&6
13374 else
13375   ac_func_search_save_LIBS=$LIBS
13376 cat >conftest.$ac_ext <<_ACEOF
13377 /* confdefs.h.  */
13378 _ACEOF
13379 cat confdefs.h >>conftest.$ac_ext
13380 cat >>conftest.$ac_ext <<_ACEOF
13381 /* end confdefs.h.  */
13382
13383 /* Override any GCC internal prototype to avoid an error.
13384    Use char because int might match the return type of a GCC
13385    builtin and then its argument prototype would still apply.  */
13386 #ifdef __cplusplus
13387 extern "C"
13388 #endif
13389 char bfd_init ();
13390 int
13391 main ()
13392 {
13393 return bfd_init ();
13394   ;
13395   return 0;
13396 }
13397 _ACEOF
13398 for ac_lib in '' bfd; do
13399   if test -z "$ac_lib"; then
13400     ac_res="none required"
13401   else
13402     ac_res=-l$ac_lib
13403     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13404   fi
13405   rm -f conftest.$ac_objext conftest$ac_exeext
13406 if { (ac_try="$ac_link"
13407 case "(($ac_try" in
13408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409   *) ac_try_echo=$ac_try;;
13410 esac
13411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412   (eval "$ac_link") 2>conftest.er1
13413   ac_status=$?
13414   grep -v '^ *+' conftest.er1 >conftest.err
13415   rm -f conftest.er1
13416   cat conftest.err >&5
13417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418   (exit $ac_status); } &&
13419          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13420   { (case "(($ac_try" in
13421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422   *) ac_try_echo=$ac_try;;
13423 esac
13424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425   (eval "$ac_try") 2>&5
13426   ac_status=$?
13427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428   (exit $ac_status); }; } &&
13429          { ac_try='test -s conftest$ac_exeext'
13430   { (case "(($ac_try" in
13431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13432   *) ac_try_echo=$ac_try;;
13433 esac
13434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13435   (eval "$ac_try") 2>&5
13436   ac_status=$?
13437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438   (exit $ac_status); }; }; then
13439   ac_cv_search_bfd_init=$ac_res
13440 else
13441   echo "$as_me: failed program was:" >&5
13442 sed 's/^/| /' conftest.$ac_ext >&5
13443
13444
13445 fi
13446
13447 rm -f core conftest.err conftest.$ac_objext \
13448       conftest$ac_exeext
13449   if test "${ac_cv_search_bfd_init+set}" = set; then
13450   break
13451 fi
13452 done
13453 if test "${ac_cv_search_bfd_init+set}" = set; then
13454   :
13455 else
13456   ac_cv_search_bfd_init=no
13457 fi
13458 rm conftest.$ac_ext
13459 LIBS=$ac_func_search_save_LIBS
13460 fi
13461 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13462 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13463 ac_res=$ac_cv_search_bfd_init
13464 if test "$ac_res" != no; then
13465   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13466
13467 fi
13468
13469         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13470 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13471 if test "${ac_cv_search_op_open_agent+set}" = set; then
13472   echo $ECHO_N "(cached) $ECHO_C" >&6
13473 else
13474   ac_func_search_save_LIBS=$LIBS
13475 cat >conftest.$ac_ext <<_ACEOF
13476 /* confdefs.h.  */
13477 _ACEOF
13478 cat confdefs.h >>conftest.$ac_ext
13479 cat >>conftest.$ac_ext <<_ACEOF
13480 /* end confdefs.h.  */
13481
13482 /* Override any GCC internal prototype to avoid an error.
13483    Use char because int might match the return type of a GCC
13484    builtin and then its argument prototype would still apply.  */
13485 #ifdef __cplusplus
13486 extern "C"
13487 #endif
13488 char op_open_agent ();
13489 int
13490 main ()
13491 {
13492 return op_open_agent ();
13493   ;
13494   return 0;
13495 }
13496 _ACEOF
13497 for ac_lib in '' opagent; do
13498   if test -z "$ac_lib"; then
13499     ac_res="none required"
13500   else
13501     ac_res=-l$ac_lib
13502     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13503   fi
13504   rm -f conftest.$ac_objext conftest$ac_exeext
13505 if { (ac_try="$ac_link"
13506 case "(($ac_try" in
13507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508   *) ac_try_echo=$ac_try;;
13509 esac
13510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13511   (eval "$ac_link") 2>conftest.er1
13512   ac_status=$?
13513   grep -v '^ *+' conftest.er1 >conftest.err
13514   rm -f conftest.er1
13515   cat conftest.err >&5
13516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517   (exit $ac_status); } &&
13518          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13519   { (case "(($ac_try" in
13520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521   *) ac_try_echo=$ac_try;;
13522 esac
13523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524   (eval "$ac_try") 2>&5
13525   ac_status=$?
13526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527   (exit $ac_status); }; } &&
13528          { ac_try='test -s conftest$ac_exeext'
13529   { (case "(($ac_try" in
13530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531   *) ac_try_echo=$ac_try;;
13532 esac
13533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534   (eval "$ac_try") 2>&5
13535   ac_status=$?
13536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537   (exit $ac_status); }; }; then
13538   ac_cv_search_op_open_agent=$ac_res
13539 else
13540   echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13542
13543
13544 fi
13545
13546 rm -f core conftest.err conftest.$ac_objext \
13547       conftest$ac_exeext
13548   if test "${ac_cv_search_op_open_agent+set}" = set; then
13549   break
13550 fi
13551 done
13552 if test "${ac_cv_search_op_open_agent+set}" = set; then
13553   :
13554 else
13555   ac_cv_search_op_open_agent=no
13556 fi
13557 rm conftest.$ac_ext
13558 LIBS=$ac_func_search_save_LIBS
13559 fi
13560 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13561 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13562 ac_res=$ac_cv_search_op_open_agent
13563 if test "$ac_res" != no; then
13564   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13565
13566 else
13567
13568           echo "Error! You need to have libopagent around."
13569           exit -1
13570
13571 fi
13572
13573         if test "${ac_cv_header_opagent_h+set}" = set; then
13574   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13575 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13576 if test "${ac_cv_header_opagent_h+set}" = set; then
13577   echo $ECHO_N "(cached) $ECHO_C" >&6
13578 fi
13579 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13580 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13581 else
13582   # Is the header compilable?
13583 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13584 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13585 cat >conftest.$ac_ext <<_ACEOF
13586 /* confdefs.h.  */
13587 _ACEOF
13588 cat confdefs.h >>conftest.$ac_ext
13589 cat >>conftest.$ac_ext <<_ACEOF
13590 /* end confdefs.h.  */
13591 $ac_includes_default
13592 #include <opagent.h>
13593 _ACEOF
13594 rm -f conftest.$ac_objext
13595 if { (ac_try="$ac_compile"
13596 case "(($ac_try" in
13597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13598   *) ac_try_echo=$ac_try;;
13599 esac
13600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13601   (eval "$ac_compile") 2>conftest.er1
13602   ac_status=$?
13603   grep -v '^ *+' conftest.er1 >conftest.err
13604   rm -f conftest.er1
13605   cat conftest.err >&5
13606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607   (exit $ac_status); } &&
13608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13609   { (case "(($ac_try" in
13610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13611   *) ac_try_echo=$ac_try;;
13612 esac
13613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13614   (eval "$ac_try") 2>&5
13615   ac_status=$?
13616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617   (exit $ac_status); }; } &&
13618          { ac_try='test -s conftest.$ac_objext'
13619   { (case "(($ac_try" in
13620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13621   *) ac_try_echo=$ac_try;;
13622 esac
13623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13624   (eval "$ac_try") 2>&5
13625   ac_status=$?
13626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627   (exit $ac_status); }; }; then
13628   ac_header_compiler=yes
13629 else
13630   echo "$as_me: failed program was:" >&5
13631 sed 's/^/| /' conftest.$ac_ext >&5
13632
13633         ac_header_compiler=no
13634 fi
13635
13636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13637 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13638 echo "${ECHO_T}$ac_header_compiler" >&6; }
13639
13640 # Is the header present?
13641 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13642 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13643 cat >conftest.$ac_ext <<_ACEOF
13644 /* confdefs.h.  */
13645 _ACEOF
13646 cat confdefs.h >>conftest.$ac_ext
13647 cat >>conftest.$ac_ext <<_ACEOF
13648 /* end confdefs.h.  */
13649 #include <opagent.h>
13650 _ACEOF
13651 if { (ac_try="$ac_cpp conftest.$ac_ext"
13652 case "(($ac_try" in
13653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654   *) ac_try_echo=$ac_try;;
13655 esac
13656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13657   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13658   ac_status=$?
13659   grep -v '^ *+' conftest.er1 >conftest.err
13660   rm -f conftest.er1
13661   cat conftest.err >&5
13662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663   (exit $ac_status); } >/dev/null; then
13664   if test -s conftest.err; then
13665     ac_cpp_err=$ac_c_preproc_warn_flag
13666     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13667   else
13668     ac_cpp_err=
13669   fi
13670 else
13671   ac_cpp_err=yes
13672 fi
13673 if test -z "$ac_cpp_err"; then
13674   ac_header_preproc=yes
13675 else
13676   echo "$as_me: failed program was:" >&5
13677 sed 's/^/| /' conftest.$ac_ext >&5
13678
13679   ac_header_preproc=no
13680 fi
13681
13682 rm -f conftest.err conftest.$ac_ext
13683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13684 echo "${ECHO_T}$ac_header_preproc" >&6; }
13685
13686 # So?  What about this header?
13687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13688   yes:no: )
13689     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13690 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13691     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13692 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13693     ac_header_preproc=yes
13694     ;;
13695   no:yes:* )
13696     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13697 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13698     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13699 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13700     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13701 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13702     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13703 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13704     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13705 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13706     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13707 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13708     ( cat <<\_ASBOX
13709 ## ------------------------------------ ##
13710 ## Report this to http://llvm.org/bugs/ ##
13711 ## ------------------------------------ ##
13712 _ASBOX
13713      ) | sed "s/^/$as_me: WARNING:     /" >&2
13714     ;;
13715 esac
13716 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13717 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13718 if test "${ac_cv_header_opagent_h+set}" = set; then
13719   echo $ECHO_N "(cached) $ECHO_C" >&6
13720 else
13721   ac_cv_header_opagent_h=$ac_header_preproc
13722 fi
13723 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13724 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13725
13726 fi
13727 if test $ac_cv_header_opagent_h = yes; then
13728   :
13729 else
13730
13731           echo "Error! You need to have opagent.h around."
13732           exit -1
13733
13734 fi
13735
13736
13737       fi
13738
13739 else
13740
13741       USE_OPROFILE=0
13742
13743
13744 fi
13745
13746
13747 cat >>confdefs.h <<_ACEOF
13748 #define USE_OPROFILE $USE_OPROFILE
13749 _ACEOF
13750
13751
13752
13753
13754
13755
13756
13757
13758 ac_header_dirent=no
13759 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13760   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13761 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13762 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13764   echo $ECHO_N "(cached) $ECHO_C" >&6
13765 else
13766   cat >conftest.$ac_ext <<_ACEOF
13767 /* confdefs.h.  */
13768 _ACEOF
13769 cat confdefs.h >>conftest.$ac_ext
13770 cat >>conftest.$ac_ext <<_ACEOF
13771 /* end confdefs.h.  */
13772 #include <sys/types.h>
13773 #include <$ac_hdr>
13774
13775 int
13776 main ()
13777 {
13778 if ((DIR *) 0)
13779 return 0;
13780   ;
13781   return 0;
13782 }
13783 _ACEOF
13784 rm -f conftest.$ac_objext
13785 if { (ac_try="$ac_compile"
13786 case "(($ac_try" in
13787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788   *) ac_try_echo=$ac_try;;
13789 esac
13790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13791   (eval "$ac_compile") 2>conftest.er1
13792   ac_status=$?
13793   grep -v '^ *+' conftest.er1 >conftest.err
13794   rm -f conftest.er1
13795   cat conftest.err >&5
13796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797   (exit $ac_status); } &&
13798          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13799   { (case "(($ac_try" in
13800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801   *) ac_try_echo=$ac_try;;
13802 esac
13803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804   (eval "$ac_try") 2>&5
13805   ac_status=$?
13806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807   (exit $ac_status); }; } &&
13808          { ac_try='test -s conftest.$ac_objext'
13809   { (case "(($ac_try" in
13810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13811   *) ac_try_echo=$ac_try;;
13812 esac
13813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13814   (eval "$ac_try") 2>&5
13815   ac_status=$?
13816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817   (exit $ac_status); }; }; then
13818   eval "$as_ac_Header=yes"
13819 else
13820   echo "$as_me: failed program was:" >&5
13821 sed 's/^/| /' conftest.$ac_ext >&5
13822
13823         eval "$as_ac_Header=no"
13824 fi
13825
13826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13827 fi
13828 ac_res=`eval echo '${'$as_ac_Header'}'`
13829                { echo "$as_me:$LINENO: result: $ac_res" >&5
13830 echo "${ECHO_T}$ac_res" >&6; }
13831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13832   cat >>confdefs.h <<_ACEOF
13833 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13834 _ACEOF
13835
13836 ac_header_dirent=$ac_hdr; break
13837 fi
13838
13839 done
13840 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13841 if test $ac_header_dirent = dirent.h; then
13842   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13843 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13844 if test "${ac_cv_search_opendir+set}" = set; then
13845   echo $ECHO_N "(cached) $ECHO_C" >&6
13846 else
13847   ac_func_search_save_LIBS=$LIBS
13848 cat >conftest.$ac_ext <<_ACEOF
13849 /* confdefs.h.  */
13850 _ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h.  */
13854
13855 /* Override any GCC internal prototype to avoid an error.
13856    Use char because int might match the return type of a GCC
13857    builtin and then its argument prototype would still apply.  */
13858 #ifdef __cplusplus
13859 extern "C"
13860 #endif
13861 char opendir ();
13862 int
13863 main ()
13864 {
13865 return opendir ();
13866   ;
13867   return 0;
13868 }
13869 _ACEOF
13870 for ac_lib in '' dir; do
13871   if test -z "$ac_lib"; then
13872     ac_res="none required"
13873   else
13874     ac_res=-l$ac_lib
13875     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13876   fi
13877   rm -f conftest.$ac_objext conftest$ac_exeext
13878 if { (ac_try="$ac_link"
13879 case "(($ac_try" in
13880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13881   *) ac_try_echo=$ac_try;;
13882 esac
13883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13884   (eval "$ac_link") 2>conftest.er1
13885   ac_status=$?
13886   grep -v '^ *+' conftest.er1 >conftest.err
13887   rm -f conftest.er1
13888   cat conftest.err >&5
13889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890   (exit $ac_status); } &&
13891          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13892   { (case "(($ac_try" in
13893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894   *) ac_try_echo=$ac_try;;
13895 esac
13896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13897   (eval "$ac_try") 2>&5
13898   ac_status=$?
13899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900   (exit $ac_status); }; } &&
13901          { ac_try='test -s conftest$ac_exeext'
13902   { (case "(($ac_try" in
13903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13904   *) ac_try_echo=$ac_try;;
13905 esac
13906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13907   (eval "$ac_try") 2>&5
13908   ac_status=$?
13909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910   (exit $ac_status); }; }; then
13911   ac_cv_search_opendir=$ac_res
13912 else
13913   echo "$as_me: failed program was:" >&5
13914 sed 's/^/| /' conftest.$ac_ext >&5
13915
13916
13917 fi
13918
13919 rm -f core conftest.err conftest.$ac_objext \
13920       conftest$ac_exeext
13921   if test "${ac_cv_search_opendir+set}" = set; then
13922   break
13923 fi
13924 done
13925 if test "${ac_cv_search_opendir+set}" = set; then
13926   :
13927 else
13928   ac_cv_search_opendir=no
13929 fi
13930 rm conftest.$ac_ext
13931 LIBS=$ac_func_search_save_LIBS
13932 fi
13933 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13934 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13935 ac_res=$ac_cv_search_opendir
13936 if test "$ac_res" != no; then
13937   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13938
13939 fi
13940
13941 else
13942   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13943 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13944 if test "${ac_cv_search_opendir+set}" = set; then
13945   echo $ECHO_N "(cached) $ECHO_C" >&6
13946 else
13947   ac_func_search_save_LIBS=$LIBS
13948 cat >conftest.$ac_ext <<_ACEOF
13949 /* confdefs.h.  */
13950 _ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h.  */
13954
13955 /* Override any GCC internal prototype to avoid an error.
13956    Use char because int might match the return type of a GCC
13957    builtin and then its argument prototype would still apply.  */
13958 #ifdef __cplusplus
13959 extern "C"
13960 #endif
13961 char opendir ();
13962 int
13963 main ()
13964 {
13965 return opendir ();
13966   ;
13967   return 0;
13968 }
13969 _ACEOF
13970 for ac_lib in '' x; do
13971   if test -z "$ac_lib"; then
13972     ac_res="none required"
13973   else
13974     ac_res=-l$ac_lib
13975     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13976   fi
13977   rm -f conftest.$ac_objext conftest$ac_exeext
13978 if { (ac_try="$ac_link"
13979 case "(($ac_try" in
13980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981   *) ac_try_echo=$ac_try;;
13982 esac
13983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984   (eval "$ac_link") 2>conftest.er1
13985   ac_status=$?
13986   grep -v '^ *+' conftest.er1 >conftest.err
13987   rm -f conftest.er1
13988   cat conftest.err >&5
13989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990   (exit $ac_status); } &&
13991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13992   { (case "(($ac_try" in
13993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13994   *) ac_try_echo=$ac_try;;
13995 esac
13996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13997   (eval "$ac_try") 2>&5
13998   ac_status=$?
13999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000   (exit $ac_status); }; } &&
14001          { ac_try='test -s conftest$ac_exeext'
14002   { (case "(($ac_try" in
14003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14004   *) ac_try_echo=$ac_try;;
14005 esac
14006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14007   (eval "$ac_try") 2>&5
14008   ac_status=$?
14009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010   (exit $ac_status); }; }; then
14011   ac_cv_search_opendir=$ac_res
14012 else
14013   echo "$as_me: failed program was:" >&5
14014 sed 's/^/| /' conftest.$ac_ext >&5
14015
14016
14017 fi
14018
14019 rm -f core conftest.err conftest.$ac_objext \
14020       conftest$ac_exeext
14021   if test "${ac_cv_search_opendir+set}" = set; then
14022   break
14023 fi
14024 done
14025 if test "${ac_cv_search_opendir+set}" = set; then
14026   :
14027 else
14028   ac_cv_search_opendir=no
14029 fi
14030 rm conftest.$ac_ext
14031 LIBS=$ac_func_search_save_LIBS
14032 fi
14033 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14034 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14035 ac_res=$ac_cv_search_opendir
14036 if test "$ac_res" != no; then
14037   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14038
14039 fi
14040
14041 fi
14042
14043 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14044 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14045 if test "${ac_cv_header_mmap_anon+set}" = set; then
14046   echo $ECHO_N "(cached) $ECHO_C" >&6
14047 else
14048    ac_ext=c
14049 ac_cpp='$CPP $CPPFLAGS'
14050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14053
14054   cat >conftest.$ac_ext <<_ACEOF
14055 /* confdefs.h.  */
14056 _ACEOF
14057 cat confdefs.h >>conftest.$ac_ext
14058 cat >>conftest.$ac_ext <<_ACEOF
14059 /* end confdefs.h.  */
14060 #include <sys/mman.h>
14061 #include <unistd.h>
14062 #include <fcntl.h>
14063 int
14064 main ()
14065 {
14066 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14067   ;
14068   return 0;
14069 }
14070 _ACEOF
14071 rm -f conftest.$ac_objext
14072 if { (ac_try="$ac_compile"
14073 case "(($ac_try" in
14074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075   *) ac_try_echo=$ac_try;;
14076 esac
14077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078   (eval "$ac_compile") 2>conftest.er1
14079   ac_status=$?
14080   grep -v '^ *+' conftest.er1 >conftest.err
14081   rm -f conftest.er1
14082   cat conftest.err >&5
14083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084   (exit $ac_status); } &&
14085          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14086   { (case "(($ac_try" in
14087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14088   *) ac_try_echo=$ac_try;;
14089 esac
14090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14091   (eval "$ac_try") 2>&5
14092   ac_status=$?
14093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094   (exit $ac_status); }; } &&
14095          { ac_try='test -s conftest.$ac_objext'
14096   { (case "(($ac_try" in
14097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098   *) ac_try_echo=$ac_try;;
14099 esac
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101   (eval "$ac_try") 2>&5
14102   ac_status=$?
14103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104   (exit $ac_status); }; }; then
14105   ac_cv_header_mmap_anon=yes
14106 else
14107   echo "$as_me: failed program was:" >&5
14108 sed 's/^/| /' conftest.$ac_ext >&5
14109
14110         ac_cv_header_mmap_anon=no
14111 fi
14112
14113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14114   ac_ext=c
14115 ac_cpp='$CPP $CPPFLAGS'
14116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14119
14120
14121 fi
14122 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14123 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14124 if test "$ac_cv_header_mmap_anon" = yes; then
14125
14126 cat >>confdefs.h <<\_ACEOF
14127 #define HAVE_MMAP_ANONYMOUS 1
14128 _ACEOF
14129
14130 fi
14131
14132 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14133 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14134 if test "${ac_cv_header_stat_broken+set}" = set; then
14135   echo $ECHO_N "(cached) $ECHO_C" >&6
14136 else
14137   cat >conftest.$ac_ext <<_ACEOF
14138 /* confdefs.h.  */
14139 _ACEOF
14140 cat confdefs.h >>conftest.$ac_ext
14141 cat >>conftest.$ac_ext <<_ACEOF
14142 /* end confdefs.h.  */
14143 #include <sys/types.h>
14144 #include <sys/stat.h>
14145
14146 #if defined S_ISBLK && defined S_IFDIR
14147 # if S_ISBLK (S_IFDIR)
14148 You lose.
14149 # endif
14150 #endif
14151
14152 #if defined S_ISBLK && defined S_IFCHR
14153 # if S_ISBLK (S_IFCHR)
14154 You lose.
14155 # endif
14156 #endif
14157
14158 #if defined S_ISLNK && defined S_IFREG
14159 # if S_ISLNK (S_IFREG)
14160 You lose.
14161 # endif
14162 #endif
14163
14164 #if defined S_ISSOCK && defined S_IFREG
14165 # if S_ISSOCK (S_IFREG)
14166 You lose.
14167 # endif
14168 #endif
14169
14170 _ACEOF
14171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14172   $EGREP "You lose" >/dev/null 2>&1; then
14173   ac_cv_header_stat_broken=yes
14174 else
14175   ac_cv_header_stat_broken=no
14176 fi
14177 rm -f conftest*
14178
14179 fi
14180 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14181 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14182 if test $ac_cv_header_stat_broken = yes; then
14183
14184 cat >>confdefs.h <<\_ACEOF
14185 #define STAT_MACROS_BROKEN 1
14186 _ACEOF
14187
14188 fi
14189
14190 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14191 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14192 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14193   echo $ECHO_N "(cached) $ECHO_C" >&6
14194 else
14195   cat >conftest.$ac_ext <<_ACEOF
14196 /* confdefs.h.  */
14197 _ACEOF
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h.  */
14201 #include <sys/types.h>
14202 #include <sys/wait.h>
14203 #ifndef WEXITSTATUS
14204 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14205 #endif
14206 #ifndef WIFEXITED
14207 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14208 #endif
14209
14210 int
14211 main ()
14212 {
14213   int s;
14214   wait (&s);
14215   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14216   ;
14217   return 0;
14218 }
14219 _ACEOF
14220 rm -f conftest.$ac_objext
14221 if { (ac_try="$ac_compile"
14222 case "(($ac_try" in
14223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14224   *) ac_try_echo=$ac_try;;
14225 esac
14226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14227   (eval "$ac_compile") 2>conftest.er1
14228   ac_status=$?
14229   grep -v '^ *+' conftest.er1 >conftest.err
14230   rm -f conftest.er1
14231   cat conftest.err >&5
14232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233   (exit $ac_status); } &&
14234          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14235   { (case "(($ac_try" in
14236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14237   *) ac_try_echo=$ac_try;;
14238 esac
14239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14240   (eval "$ac_try") 2>&5
14241   ac_status=$?
14242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243   (exit $ac_status); }; } &&
14244          { ac_try='test -s conftest.$ac_objext'
14245   { (case "(($ac_try" in
14246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14247   *) ac_try_echo=$ac_try;;
14248 esac
14249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14250   (eval "$ac_try") 2>&5
14251   ac_status=$?
14252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253   (exit $ac_status); }; }; then
14254   ac_cv_header_sys_wait_h=yes
14255 else
14256   echo "$as_me: failed program was:" >&5
14257 sed 's/^/| /' conftest.$ac_ext >&5
14258
14259         ac_cv_header_sys_wait_h=no
14260 fi
14261
14262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14263 fi
14264 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14265 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14266 if test $ac_cv_header_sys_wait_h = yes; then
14267
14268 cat >>confdefs.h <<\_ACEOF
14269 #define HAVE_SYS_WAIT_H 1
14270 _ACEOF
14271
14272 fi
14273
14274 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14275 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14276 if test "${ac_cv_header_time+set}" = set; then
14277   echo $ECHO_N "(cached) $ECHO_C" >&6
14278 else
14279   cat >conftest.$ac_ext <<_ACEOF
14280 /* confdefs.h.  */
14281 _ACEOF
14282 cat confdefs.h >>conftest.$ac_ext
14283 cat >>conftest.$ac_ext <<_ACEOF
14284 /* end confdefs.h.  */
14285 #include <sys/types.h>
14286 #include <sys/time.h>
14287 #include <time.h>
14288
14289 int
14290 main ()
14291 {
14292 if ((struct tm *) 0)
14293 return 0;
14294   ;
14295   return 0;
14296 }
14297 _ACEOF
14298 rm -f conftest.$ac_objext
14299 if { (ac_try="$ac_compile"
14300 case "(($ac_try" in
14301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302   *) ac_try_echo=$ac_try;;
14303 esac
14304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305   (eval "$ac_compile") 2>conftest.er1
14306   ac_status=$?
14307   grep -v '^ *+' conftest.er1 >conftest.err
14308   rm -f conftest.er1
14309   cat conftest.err >&5
14310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311   (exit $ac_status); } &&
14312          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14313   { (case "(($ac_try" in
14314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14315   *) ac_try_echo=$ac_try;;
14316 esac
14317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14318   (eval "$ac_try") 2>&5
14319   ac_status=$?
14320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321   (exit $ac_status); }; } &&
14322          { ac_try='test -s conftest.$ac_objext'
14323   { (case "(($ac_try" in
14324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14325   *) ac_try_echo=$ac_try;;
14326 esac
14327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14328   (eval "$ac_try") 2>&5
14329   ac_status=$?
14330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331   (exit $ac_status); }; }; then
14332   ac_cv_header_time=yes
14333 else
14334   echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14336
14337         ac_cv_header_time=no
14338 fi
14339
14340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14341 fi
14342 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14343 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14344 if test $ac_cv_header_time = yes; then
14345
14346 cat >>confdefs.h <<\_ACEOF
14347 #define TIME_WITH_SYS_TIME 1
14348 _ACEOF
14349
14350 fi
14351
14352
14353
14354
14355
14356
14357
14358
14359 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14360 do
14361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14363   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14366   echo $ECHO_N "(cached) $ECHO_C" >&6
14367 fi
14368 ac_res=`eval echo '${'$as_ac_Header'}'`
14369                { echo "$as_me:$LINENO: result: $ac_res" >&5
14370 echo "${ECHO_T}$ac_res" >&6; }
14371 else
14372   # Is the header compilable?
14373 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14375 cat >conftest.$ac_ext <<_ACEOF
14376 /* confdefs.h.  */
14377 _ACEOF
14378 cat confdefs.h >>conftest.$ac_ext
14379 cat >>conftest.$ac_ext <<_ACEOF
14380 /* end confdefs.h.  */
14381 $ac_includes_default
14382 #include <$ac_header>
14383 _ACEOF
14384 rm -f conftest.$ac_objext
14385 if { (ac_try="$ac_compile"
14386 case "(($ac_try" in
14387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14388   *) ac_try_echo=$ac_try;;
14389 esac
14390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14391   (eval "$ac_compile") 2>conftest.er1
14392   ac_status=$?
14393   grep -v '^ *+' conftest.er1 >conftest.err
14394   rm -f conftest.er1
14395   cat conftest.err >&5
14396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397   (exit $ac_status); } &&
14398          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14399   { (case "(($ac_try" in
14400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14401   *) ac_try_echo=$ac_try;;
14402 esac
14403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14404   (eval "$ac_try") 2>&5
14405   ac_status=$?
14406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407   (exit $ac_status); }; } &&
14408          { ac_try='test -s conftest.$ac_objext'
14409   { (case "(($ac_try" in
14410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14411   *) ac_try_echo=$ac_try;;
14412 esac
14413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14414   (eval "$ac_try") 2>&5
14415   ac_status=$?
14416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417   (exit $ac_status); }; }; then
14418   ac_header_compiler=yes
14419 else
14420   echo "$as_me: failed program was:" >&5
14421 sed 's/^/| /' conftest.$ac_ext >&5
14422
14423         ac_header_compiler=no
14424 fi
14425
14426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14427 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14428 echo "${ECHO_T}$ac_header_compiler" >&6; }
14429
14430 # Is the header present?
14431 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14433 cat >conftest.$ac_ext <<_ACEOF
14434 /* confdefs.h.  */
14435 _ACEOF
14436 cat confdefs.h >>conftest.$ac_ext
14437 cat >>conftest.$ac_ext <<_ACEOF
14438 /* end confdefs.h.  */
14439 #include <$ac_header>
14440 _ACEOF
14441 if { (ac_try="$ac_cpp conftest.$ac_ext"
14442 case "(($ac_try" in
14443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444   *) ac_try_echo=$ac_try;;
14445 esac
14446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14448   ac_status=$?
14449   grep -v '^ *+' conftest.er1 >conftest.err
14450   rm -f conftest.er1
14451   cat conftest.err >&5
14452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453   (exit $ac_status); } >/dev/null; then
14454   if test -s conftest.err; then
14455     ac_cpp_err=$ac_c_preproc_warn_flag
14456     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14457   else
14458     ac_cpp_err=
14459   fi
14460 else
14461   ac_cpp_err=yes
14462 fi
14463 if test -z "$ac_cpp_err"; then
14464   ac_header_preproc=yes
14465 else
14466   echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.$ac_ext >&5
14468
14469   ac_header_preproc=no
14470 fi
14471
14472 rm -f conftest.err conftest.$ac_ext
14473 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14474 echo "${ECHO_T}$ac_header_preproc" >&6; }
14475
14476 # So?  What about this header?
14477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14478   yes:no: )
14479     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14483     ac_header_preproc=yes
14484     ;;
14485   no:yes:* )
14486     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14488     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14489 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14490     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14491 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14492     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14493 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14494     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14496     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14497 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14498     ( cat <<\_ASBOX
14499 ## ------------------------------------ ##
14500 ## Report this to http://llvm.org/bugs/ ##
14501 ## ------------------------------------ ##
14502 _ASBOX
14503      ) | sed "s/^/$as_me: WARNING:     /" >&2
14504     ;;
14505 esac
14506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14509   echo $ECHO_N "(cached) $ECHO_C" >&6
14510 else
14511   eval "$as_ac_Header=\$ac_header_preproc"
14512 fi
14513 ac_res=`eval echo '${'$as_ac_Header'}'`
14514                { echo "$as_me:$LINENO: result: $ac_res" >&5
14515 echo "${ECHO_T}$ac_res" >&6; }
14516
14517 fi
14518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14519   cat >>confdefs.h <<_ACEOF
14520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14521 _ACEOF
14522
14523 fi
14524
14525 done
14526
14527
14528
14529
14530
14531
14532
14533 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14534 do
14535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14537   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14540   echo $ECHO_N "(cached) $ECHO_C" >&6
14541 fi
14542 ac_res=`eval echo '${'$as_ac_Header'}'`
14543                { echo "$as_me:$LINENO: result: $ac_res" >&5
14544 echo "${ECHO_T}$ac_res" >&6; }
14545 else
14546   # Is the header compilable?
14547 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14549 cat >conftest.$ac_ext <<_ACEOF
14550 /* confdefs.h.  */
14551 _ACEOF
14552 cat confdefs.h >>conftest.$ac_ext
14553 cat >>conftest.$ac_ext <<_ACEOF
14554 /* end confdefs.h.  */
14555 $ac_includes_default
14556 #include <$ac_header>
14557 _ACEOF
14558 rm -f conftest.$ac_objext
14559 if { (ac_try="$ac_compile"
14560 case "(($ac_try" in
14561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14562   *) ac_try_echo=$ac_try;;
14563 esac
14564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14565   (eval "$ac_compile") 2>conftest.er1
14566   ac_status=$?
14567   grep -v '^ *+' conftest.er1 >conftest.err
14568   rm -f conftest.er1
14569   cat conftest.err >&5
14570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571   (exit $ac_status); } &&
14572          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14573   { (case "(($ac_try" in
14574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14575   *) ac_try_echo=$ac_try;;
14576 esac
14577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14578   (eval "$ac_try") 2>&5
14579   ac_status=$?
14580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581   (exit $ac_status); }; } &&
14582          { ac_try='test -s conftest.$ac_objext'
14583   { (case "(($ac_try" in
14584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14585   *) ac_try_echo=$ac_try;;
14586 esac
14587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14588   (eval "$ac_try") 2>&5
14589   ac_status=$?
14590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591   (exit $ac_status); }; }; then
14592   ac_header_compiler=yes
14593 else
14594   echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.$ac_ext >&5
14596
14597         ac_header_compiler=no
14598 fi
14599
14600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14602 echo "${ECHO_T}$ac_header_compiler" >&6; }
14603
14604 # Is the header present?
14605 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14606 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14607 cat >conftest.$ac_ext <<_ACEOF
14608 /* confdefs.h.  */
14609 _ACEOF
14610 cat confdefs.h >>conftest.$ac_ext
14611 cat >>conftest.$ac_ext <<_ACEOF
14612 /* end confdefs.h.  */
14613 #include <$ac_header>
14614 _ACEOF
14615 if { (ac_try="$ac_cpp conftest.$ac_ext"
14616 case "(($ac_try" in
14617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14618   *) ac_try_echo=$ac_try;;
14619 esac
14620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14621   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14622   ac_status=$?
14623   grep -v '^ *+' conftest.er1 >conftest.err
14624   rm -f conftest.er1
14625   cat conftest.err >&5
14626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627   (exit $ac_status); } >/dev/null; then
14628   if test -s conftest.err; then
14629     ac_cpp_err=$ac_c_preproc_warn_flag
14630     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14631   else
14632     ac_cpp_err=
14633   fi
14634 else
14635   ac_cpp_err=yes
14636 fi
14637 if test -z "$ac_cpp_err"; then
14638   ac_header_preproc=yes
14639 else
14640   echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14642
14643   ac_header_preproc=no
14644 fi
14645
14646 rm -f conftest.err conftest.$ac_ext
14647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14648 echo "${ECHO_T}$ac_header_preproc" >&6; }
14649
14650 # So?  What about this header?
14651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14652   yes:no: )
14653     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14654 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14655     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14656 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14657     ac_header_preproc=yes
14658     ;;
14659   no:yes:* )
14660     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14662     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14663 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14664     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14665 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14666     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14667 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14668     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14670     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14671 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14672     ( cat <<\_ASBOX
14673 ## ------------------------------------ ##
14674 ## Report this to http://llvm.org/bugs/ ##
14675 ## ------------------------------------ ##
14676 _ASBOX
14677      ) | sed "s/^/$as_me: WARNING:     /" >&2
14678     ;;
14679 esac
14680 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14683   echo $ECHO_N "(cached) $ECHO_C" >&6
14684 else
14685   eval "$as_ac_Header=\$ac_header_preproc"
14686 fi
14687 ac_res=`eval echo '${'$as_ac_Header'}'`
14688                { echo "$as_me:$LINENO: result: $ac_res" >&5
14689 echo "${ECHO_T}$ac_res" >&6; }
14690
14691 fi
14692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14693   cat >>confdefs.h <<_ACEOF
14694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14695 _ACEOF
14696
14697 fi
14698
14699 done
14700
14701
14702
14703 for ac_header in utime.h windows.h
14704 do
14705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14707   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14710   echo $ECHO_N "(cached) $ECHO_C" >&6
14711 fi
14712 ac_res=`eval echo '${'$as_ac_Header'}'`
14713                { echo "$as_me:$LINENO: result: $ac_res" >&5
14714 echo "${ECHO_T}$ac_res" >&6; }
14715 else
14716   # Is the header compilable?
14717 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14719 cat >conftest.$ac_ext <<_ACEOF
14720 /* confdefs.h.  */
14721 _ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h.  */
14725 $ac_includes_default
14726 #include <$ac_header>
14727 _ACEOF
14728 rm -f conftest.$ac_objext
14729 if { (ac_try="$ac_compile"
14730 case "(($ac_try" in
14731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14732   *) ac_try_echo=$ac_try;;
14733 esac
14734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14735   (eval "$ac_compile") 2>conftest.er1
14736   ac_status=$?
14737   grep -v '^ *+' conftest.er1 >conftest.err
14738   rm -f conftest.er1
14739   cat conftest.err >&5
14740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741   (exit $ac_status); } &&
14742          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14743   { (case "(($ac_try" in
14744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14745   *) ac_try_echo=$ac_try;;
14746 esac
14747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14748   (eval "$ac_try") 2>&5
14749   ac_status=$?
14750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751   (exit $ac_status); }; } &&
14752          { ac_try='test -s conftest.$ac_objext'
14753   { (case "(($ac_try" in
14754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14755   *) ac_try_echo=$ac_try;;
14756 esac
14757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14758   (eval "$ac_try") 2>&5
14759   ac_status=$?
14760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761   (exit $ac_status); }; }; then
14762   ac_header_compiler=yes
14763 else
14764   echo "$as_me: failed program was:" >&5
14765 sed 's/^/| /' conftest.$ac_ext >&5
14766
14767         ac_header_compiler=no
14768 fi
14769
14770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14771 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14772 echo "${ECHO_T}$ac_header_compiler" >&6; }
14773
14774 # Is the header present?
14775 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14776 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14777 cat >conftest.$ac_ext <<_ACEOF
14778 /* confdefs.h.  */
14779 _ACEOF
14780 cat confdefs.h >>conftest.$ac_ext
14781 cat >>conftest.$ac_ext <<_ACEOF
14782 /* end confdefs.h.  */
14783 #include <$ac_header>
14784 _ACEOF
14785 if { (ac_try="$ac_cpp conftest.$ac_ext"
14786 case "(($ac_try" in
14787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14788   *) ac_try_echo=$ac_try;;
14789 esac
14790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14791   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14792   ac_status=$?
14793   grep -v '^ *+' conftest.er1 >conftest.err
14794   rm -f conftest.er1
14795   cat conftest.err >&5
14796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797   (exit $ac_status); } >/dev/null; then
14798   if test -s conftest.err; then
14799     ac_cpp_err=$ac_c_preproc_warn_flag
14800     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14801   else
14802     ac_cpp_err=
14803   fi
14804 else
14805   ac_cpp_err=yes
14806 fi
14807 if test -z "$ac_cpp_err"; then
14808   ac_header_preproc=yes
14809 else
14810   echo "$as_me: failed program was:" >&5
14811 sed 's/^/| /' conftest.$ac_ext >&5
14812
14813   ac_header_preproc=no
14814 fi
14815
14816 rm -f conftest.err conftest.$ac_ext
14817 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14818 echo "${ECHO_T}$ac_header_preproc" >&6; }
14819
14820 # So?  What about this header?
14821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14822   yes:no: )
14823     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14824 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14825     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14826 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14827     ac_header_preproc=yes
14828     ;;
14829   no:yes:* )
14830     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14832     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14833 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14834     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14835 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14836     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14837 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14838     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14840     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14841 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14842     ( cat <<\_ASBOX
14843 ## ------------------------------------ ##
14844 ## Report this to http://llvm.org/bugs/ ##
14845 ## ------------------------------------ ##
14846 _ASBOX
14847      ) | sed "s/^/$as_me: WARNING:     /" >&2
14848     ;;
14849 esac
14850 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14853   echo $ECHO_N "(cached) $ECHO_C" >&6
14854 else
14855   eval "$as_ac_Header=\$ac_header_preproc"
14856 fi
14857 ac_res=`eval echo '${'$as_ac_Header'}'`
14858                { echo "$as_me:$LINENO: result: $ac_res" >&5
14859 echo "${ECHO_T}$ac_res" >&6; }
14860
14861 fi
14862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14863   cat >>confdefs.h <<_ACEOF
14864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14865 _ACEOF
14866
14867 fi
14868
14869 done
14870
14871
14872
14873
14874
14875
14876 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14877 do
14878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14880   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14883   echo $ECHO_N "(cached) $ECHO_C" >&6
14884 fi
14885 ac_res=`eval echo '${'$as_ac_Header'}'`
14886                { echo "$as_me:$LINENO: result: $ac_res" >&5
14887 echo "${ECHO_T}$ac_res" >&6; }
14888 else
14889   # Is the header compilable?
14890 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14892 cat >conftest.$ac_ext <<_ACEOF
14893 /* confdefs.h.  */
14894 _ACEOF
14895 cat confdefs.h >>conftest.$ac_ext
14896 cat >>conftest.$ac_ext <<_ACEOF
14897 /* end confdefs.h.  */
14898 $ac_includes_default
14899 #include <$ac_header>
14900 _ACEOF
14901 rm -f conftest.$ac_objext
14902 if { (ac_try="$ac_compile"
14903 case "(($ac_try" in
14904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14905   *) ac_try_echo=$ac_try;;
14906 esac
14907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14908   (eval "$ac_compile") 2>conftest.er1
14909   ac_status=$?
14910   grep -v '^ *+' conftest.er1 >conftest.err
14911   rm -f conftest.er1
14912   cat conftest.err >&5
14913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914   (exit $ac_status); } &&
14915          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14916   { (case "(($ac_try" in
14917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14918   *) ac_try_echo=$ac_try;;
14919 esac
14920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14921   (eval "$ac_try") 2>&5
14922   ac_status=$?
14923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924   (exit $ac_status); }; } &&
14925          { ac_try='test -s conftest.$ac_objext'
14926   { (case "(($ac_try" in
14927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14928   *) ac_try_echo=$ac_try;;
14929 esac
14930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14931   (eval "$ac_try") 2>&5
14932   ac_status=$?
14933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934   (exit $ac_status); }; }; then
14935   ac_header_compiler=yes
14936 else
14937   echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14939
14940         ac_header_compiler=no
14941 fi
14942
14943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14944 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14945 echo "${ECHO_T}$ac_header_compiler" >&6; }
14946
14947 # Is the header present?
14948 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14949 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14950 cat >conftest.$ac_ext <<_ACEOF
14951 /* confdefs.h.  */
14952 _ACEOF
14953 cat confdefs.h >>conftest.$ac_ext
14954 cat >>conftest.$ac_ext <<_ACEOF
14955 /* end confdefs.h.  */
14956 #include <$ac_header>
14957 _ACEOF
14958 if { (ac_try="$ac_cpp conftest.$ac_ext"
14959 case "(($ac_try" in
14960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961   *) ac_try_echo=$ac_try;;
14962 esac
14963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14964   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14965   ac_status=$?
14966   grep -v '^ *+' conftest.er1 >conftest.err
14967   rm -f conftest.er1
14968   cat conftest.err >&5
14969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970   (exit $ac_status); } >/dev/null; then
14971   if test -s conftest.err; then
14972     ac_cpp_err=$ac_c_preproc_warn_flag
14973     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14974   else
14975     ac_cpp_err=
14976   fi
14977 else
14978   ac_cpp_err=yes
14979 fi
14980 if test -z "$ac_cpp_err"; then
14981   ac_header_preproc=yes
14982 else
14983   echo "$as_me: failed program was:" >&5
14984 sed 's/^/| /' conftest.$ac_ext >&5
14985
14986   ac_header_preproc=no
14987 fi
14988
14989 rm -f conftest.err conftest.$ac_ext
14990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14991 echo "${ECHO_T}$ac_header_preproc" >&6; }
14992
14993 # So?  What about this header?
14994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14995   yes:no: )
14996     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14998     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14999 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15000     ac_header_preproc=yes
15001     ;;
15002   no:yes:* )
15003     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15004 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15005     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15006 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15007     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15008 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15009     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15010 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15011     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15013     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15014 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15015     ( cat <<\_ASBOX
15016 ## ------------------------------------ ##
15017 ## Report this to http://llvm.org/bugs/ ##
15018 ## ------------------------------------ ##
15019 _ASBOX
15020      ) | sed "s/^/$as_me: WARNING:     /" >&2
15021     ;;
15022 esac
15023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15026   echo $ECHO_N "(cached) $ECHO_C" >&6
15027 else
15028   eval "$as_ac_Header=\$ac_header_preproc"
15029 fi
15030 ac_res=`eval echo '${'$as_ac_Header'}'`
15031                { echo "$as_me:$LINENO: result: $ac_res" >&5
15032 echo "${ECHO_T}$ac_res" >&6; }
15033
15034 fi
15035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15036   cat >>confdefs.h <<_ACEOF
15037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15038 _ACEOF
15039
15040 fi
15041
15042 done
15043
15044
15045
15046
15047
15048 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15049 do
15050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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 fi
15057 ac_res=`eval echo '${'$as_ac_Header'}'`
15058                { echo "$as_me:$LINENO: result: $ac_res" >&5
15059 echo "${ECHO_T}$ac_res" >&6; }
15060 else
15061   # Is the header compilable?
15062 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15064 cat >conftest.$ac_ext <<_ACEOF
15065 /* confdefs.h.  */
15066 _ACEOF
15067 cat confdefs.h >>conftest.$ac_ext
15068 cat >>conftest.$ac_ext <<_ACEOF
15069 /* end confdefs.h.  */
15070 $ac_includes_default
15071 #include <$ac_header>
15072 _ACEOF
15073 rm -f conftest.$ac_objext
15074 if { (ac_try="$ac_compile"
15075 case "(($ac_try" in
15076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077   *) ac_try_echo=$ac_try;;
15078 esac
15079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15080   (eval "$ac_compile") 2>conftest.er1
15081   ac_status=$?
15082   grep -v '^ *+' conftest.er1 >conftest.err
15083   rm -f conftest.er1
15084   cat conftest.err >&5
15085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086   (exit $ac_status); } &&
15087          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15088   { (case "(($ac_try" in
15089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090   *) ac_try_echo=$ac_try;;
15091 esac
15092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093   (eval "$ac_try") 2>&5
15094   ac_status=$?
15095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096   (exit $ac_status); }; } &&
15097          { ac_try='test -s conftest.$ac_objext'
15098   { (case "(($ac_try" in
15099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15100   *) ac_try_echo=$ac_try;;
15101 esac
15102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15103   (eval "$ac_try") 2>&5
15104   ac_status=$?
15105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106   (exit $ac_status); }; }; then
15107   ac_header_compiler=yes
15108 else
15109   echo "$as_me: failed program was:" >&5
15110 sed 's/^/| /' conftest.$ac_ext >&5
15111
15112         ac_header_compiler=no
15113 fi
15114
15115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15116 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15117 echo "${ECHO_T}$ac_header_compiler" >&6; }
15118
15119 # Is the header present?
15120 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15122 cat >conftest.$ac_ext <<_ACEOF
15123 /* confdefs.h.  */
15124 _ACEOF
15125 cat confdefs.h >>conftest.$ac_ext
15126 cat >>conftest.$ac_ext <<_ACEOF
15127 /* end confdefs.h.  */
15128 #include <$ac_header>
15129 _ACEOF
15130 if { (ac_try="$ac_cpp conftest.$ac_ext"
15131 case "(($ac_try" in
15132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133   *) ac_try_echo=$ac_try;;
15134 esac
15135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15136   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15137   ac_status=$?
15138   grep -v '^ *+' conftest.er1 >conftest.err
15139   rm -f conftest.er1
15140   cat conftest.err >&5
15141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142   (exit $ac_status); } >/dev/null; then
15143   if test -s conftest.err; then
15144     ac_cpp_err=$ac_c_preproc_warn_flag
15145     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15146   else
15147     ac_cpp_err=
15148   fi
15149 else
15150   ac_cpp_err=yes
15151 fi
15152 if test -z "$ac_cpp_err"; then
15153   ac_header_preproc=yes
15154 else
15155   echo "$as_me: failed program was:" >&5
15156 sed 's/^/| /' conftest.$ac_ext >&5
15157
15158   ac_header_preproc=no
15159 fi
15160
15161 rm -f conftest.err conftest.$ac_ext
15162 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15163 echo "${ECHO_T}$ac_header_preproc" >&6; }
15164
15165 # So?  What about this header?
15166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15167   yes:no: )
15168     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15169 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15170     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15171 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15172     ac_header_preproc=yes
15173     ;;
15174   no:yes:* )
15175     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15176 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15177     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15178 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15179     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15180 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15181     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15182 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15183     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15185     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15186 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15187     ( cat <<\_ASBOX
15188 ## ------------------------------------ ##
15189 ## Report this to http://llvm.org/bugs/ ##
15190 ## ------------------------------------ ##
15191 _ASBOX
15192      ) | sed "s/^/$as_me: WARNING:     /" >&2
15193     ;;
15194 esac
15195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15198   echo $ECHO_N "(cached) $ECHO_C" >&6
15199 else
15200   eval "$as_ac_Header=\$ac_header_preproc"
15201 fi
15202 ac_res=`eval echo '${'$as_ac_Header'}'`
15203                { echo "$as_me:$LINENO: result: $ac_res" >&5
15204 echo "${ECHO_T}$ac_res" >&6; }
15205
15206 fi
15207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15208   cat >>confdefs.h <<_ACEOF
15209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15210 _ACEOF
15211
15212 fi
15213
15214 done
15215
15216
15217 for ac_header in valgrind/valgrind.h
15218 do
15219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15221   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15224   echo $ECHO_N "(cached) $ECHO_C" >&6
15225 fi
15226 ac_res=`eval echo '${'$as_ac_Header'}'`
15227                { echo "$as_me:$LINENO: result: $ac_res" >&5
15228 echo "${ECHO_T}$ac_res" >&6; }
15229 else
15230   # Is the header compilable?
15231 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15233 cat >conftest.$ac_ext <<_ACEOF
15234 /* confdefs.h.  */
15235 _ACEOF
15236 cat confdefs.h >>conftest.$ac_ext
15237 cat >>conftest.$ac_ext <<_ACEOF
15238 /* end confdefs.h.  */
15239 $ac_includes_default
15240 #include <$ac_header>
15241 _ACEOF
15242 rm -f conftest.$ac_objext
15243 if { (ac_try="$ac_compile"
15244 case "(($ac_try" in
15245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246   *) ac_try_echo=$ac_try;;
15247 esac
15248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249   (eval "$ac_compile") 2>conftest.er1
15250   ac_status=$?
15251   grep -v '^ *+' conftest.er1 >conftest.err
15252   rm -f conftest.er1
15253   cat conftest.err >&5
15254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255   (exit $ac_status); } &&
15256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15257   { (case "(($ac_try" in
15258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15259   *) ac_try_echo=$ac_try;;
15260 esac
15261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15262   (eval "$ac_try") 2>&5
15263   ac_status=$?
15264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265   (exit $ac_status); }; } &&
15266          { ac_try='test -s conftest.$ac_objext'
15267   { (case "(($ac_try" in
15268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15269   *) ac_try_echo=$ac_try;;
15270 esac
15271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15272   (eval "$ac_try") 2>&5
15273   ac_status=$?
15274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275   (exit $ac_status); }; }; then
15276   ac_header_compiler=yes
15277 else
15278   echo "$as_me: failed program was:" >&5
15279 sed 's/^/| /' conftest.$ac_ext >&5
15280
15281         ac_header_compiler=no
15282 fi
15283
15284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15286 echo "${ECHO_T}$ac_header_compiler" >&6; }
15287
15288 # Is the header present?
15289 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15291 cat >conftest.$ac_ext <<_ACEOF
15292 /* confdefs.h.  */
15293 _ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h.  */
15297 #include <$ac_header>
15298 _ACEOF
15299 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
15306   ac_status=$?
15307   grep -v '^ *+' conftest.er1 >conftest.err
15308   rm -f conftest.er1
15309   cat conftest.err >&5
15310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311   (exit $ac_status); } >/dev/null; then
15312   if test -s conftest.err; then
15313     ac_cpp_err=$ac_c_preproc_warn_flag
15314     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15315   else
15316     ac_cpp_err=
15317   fi
15318 else
15319   ac_cpp_err=yes
15320 fi
15321 if test -z "$ac_cpp_err"; then
15322   ac_header_preproc=yes
15323 else
15324   echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15326
15327   ac_header_preproc=no
15328 fi
15329
15330 rm -f conftest.err conftest.$ac_ext
15331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15332 echo "${ECHO_T}$ac_header_preproc" >&6; }
15333
15334 # So?  What about this header?
15335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15336   yes:no: )
15337     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15339     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15341     ac_header_preproc=yes
15342     ;;
15343   no:yes:* )
15344     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15346     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15347 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15348     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15350     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15351 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15354     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15356     ( cat <<\_ASBOX
15357 ## ------------------------------------ ##
15358 ## Report this to http://llvm.org/bugs/ ##
15359 ## ------------------------------------ ##
15360 _ASBOX
15361      ) | sed "s/^/$as_me: WARNING:     /" >&2
15362     ;;
15363 esac
15364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15367   echo $ECHO_N "(cached) $ECHO_C" >&6
15368 else
15369   eval "$as_ac_Header=\$ac_header_preproc"
15370 fi
15371 ac_res=`eval echo '${'$as_ac_Header'}'`
15372                { echo "$as_me:$LINENO: result: $ac_res" >&5
15373 echo "${ECHO_T}$ac_res" >&6; }
15374
15375 fi
15376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15377   cat >>confdefs.h <<_ACEOF
15378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15379 _ACEOF
15380
15381 fi
15382
15383 done
15384
15385
15386 for ac_header in fenv.h
15387 do
15388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15390   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15393   echo $ECHO_N "(cached) $ECHO_C" >&6
15394 fi
15395 ac_res=`eval echo '${'$as_ac_Header'}'`
15396                { echo "$as_me:$LINENO: result: $ac_res" >&5
15397 echo "${ECHO_T}$ac_res" >&6; }
15398 else
15399   # Is the header compilable?
15400 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15402 cat >conftest.$ac_ext <<_ACEOF
15403 /* confdefs.h.  */
15404 _ACEOF
15405 cat confdefs.h >>conftest.$ac_ext
15406 cat >>conftest.$ac_ext <<_ACEOF
15407 /* end confdefs.h.  */
15408 $ac_includes_default
15409 #include <$ac_header>
15410 _ACEOF
15411 rm -f conftest.$ac_objext
15412 if { (ac_try="$ac_compile"
15413 case "(($ac_try" in
15414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415   *) ac_try_echo=$ac_try;;
15416 esac
15417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15418   (eval "$ac_compile") 2>conftest.er1
15419   ac_status=$?
15420   grep -v '^ *+' conftest.er1 >conftest.err
15421   rm -f conftest.er1
15422   cat conftest.err >&5
15423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424   (exit $ac_status); } &&
15425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15426   { (case "(($ac_try" in
15427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428   *) ac_try_echo=$ac_try;;
15429 esac
15430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431   (eval "$ac_try") 2>&5
15432   ac_status=$?
15433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434   (exit $ac_status); }; } &&
15435          { ac_try='test -s conftest.$ac_objext'
15436   { (case "(($ac_try" in
15437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15438   *) ac_try_echo=$ac_try;;
15439 esac
15440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15441   (eval "$ac_try") 2>&5
15442   ac_status=$?
15443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444   (exit $ac_status); }; }; then
15445   ac_header_compiler=yes
15446 else
15447   echo "$as_me: failed program was:" >&5
15448 sed 's/^/| /' conftest.$ac_ext >&5
15449
15450         ac_header_compiler=no
15451 fi
15452
15453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15455 echo "${ECHO_T}$ac_header_compiler" >&6; }
15456
15457 # Is the header present?
15458 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15460 cat >conftest.$ac_ext <<_ACEOF
15461 /* confdefs.h.  */
15462 _ACEOF
15463 cat confdefs.h >>conftest.$ac_ext
15464 cat >>conftest.$ac_ext <<_ACEOF
15465 /* end confdefs.h.  */
15466 #include <$ac_header>
15467 _ACEOF
15468 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
15475   ac_status=$?
15476   grep -v '^ *+' conftest.er1 >conftest.err
15477   rm -f conftest.er1
15478   cat conftest.err >&5
15479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480   (exit $ac_status); } >/dev/null; then
15481   if test -s conftest.err; then
15482     ac_cpp_err=$ac_c_preproc_warn_flag
15483     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15484   else
15485     ac_cpp_err=
15486   fi
15487 else
15488   ac_cpp_err=yes
15489 fi
15490 if test -z "$ac_cpp_err"; then
15491   ac_header_preproc=yes
15492 else
15493   echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.$ac_ext >&5
15495
15496   ac_header_preproc=no
15497 fi
15498
15499 rm -f conftest.err conftest.$ac_ext
15500 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15501 echo "${ECHO_T}$ac_header_preproc" >&6; }
15502
15503 # So?  What about this header?
15504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15505   yes:no: )
15506     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15508     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15510     ac_header_preproc=yes
15511     ;;
15512   no:yes:* )
15513     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15515     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15516 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15517     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15519     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15520 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15521     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15523     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15525     ( cat <<\_ASBOX
15526 ## ------------------------------------ ##
15527 ## Report this to http://llvm.org/bugs/ ##
15528 ## ------------------------------------ ##
15529 _ASBOX
15530      ) | sed "s/^/$as_me: WARNING:     /" >&2
15531     ;;
15532 esac
15533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15536   echo $ECHO_N "(cached) $ECHO_C" >&6
15537 else
15538   eval "$as_ac_Header=\$ac_header_preproc"
15539 fi
15540 ac_res=`eval echo '${'$as_ac_Header'}'`
15541                { echo "$as_me:$LINENO: result: $ac_res" >&5
15542 echo "${ECHO_T}$ac_res" >&6; }
15543
15544 fi
15545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15546   cat >>confdefs.h <<_ACEOF
15547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15548 _ACEOF
15549
15550 fi
15551
15552 done
15553
15554 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15555
15556 for ac_header in pthread.h
15557 do
15558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15560   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15563   echo $ECHO_N "(cached) $ECHO_C" >&6
15564 fi
15565 ac_res=`eval echo '${'$as_ac_Header'}'`
15566                { echo "$as_me:$LINENO: result: $ac_res" >&5
15567 echo "${ECHO_T}$ac_res" >&6; }
15568 else
15569   # Is the header compilable?
15570 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15572 cat >conftest.$ac_ext <<_ACEOF
15573 /* confdefs.h.  */
15574 _ACEOF
15575 cat confdefs.h >>conftest.$ac_ext
15576 cat >>conftest.$ac_ext <<_ACEOF
15577 /* end confdefs.h.  */
15578 $ac_includes_default
15579 #include <$ac_header>
15580 _ACEOF
15581 rm -f conftest.$ac_objext
15582 if { (ac_try="$ac_compile"
15583 case "(($ac_try" in
15584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15585   *) ac_try_echo=$ac_try;;
15586 esac
15587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15588   (eval "$ac_compile") 2>conftest.er1
15589   ac_status=$?
15590   grep -v '^ *+' conftest.er1 >conftest.err
15591   rm -f conftest.er1
15592   cat conftest.err >&5
15593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594   (exit $ac_status); } &&
15595          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15596   { (case "(($ac_try" in
15597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15598   *) ac_try_echo=$ac_try;;
15599 esac
15600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15601   (eval "$ac_try") 2>&5
15602   ac_status=$?
15603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604   (exit $ac_status); }; } &&
15605          { ac_try='test -s conftest.$ac_objext'
15606   { (case "(($ac_try" in
15607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15608   *) ac_try_echo=$ac_try;;
15609 esac
15610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15611   (eval "$ac_try") 2>&5
15612   ac_status=$?
15613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614   (exit $ac_status); }; }; then
15615   ac_header_compiler=yes
15616 else
15617   echo "$as_me: failed program was:" >&5
15618 sed 's/^/| /' conftest.$ac_ext >&5
15619
15620         ac_header_compiler=no
15621 fi
15622
15623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15624 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15625 echo "${ECHO_T}$ac_header_compiler" >&6; }
15626
15627 # Is the header present?
15628 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15629 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15630 cat >conftest.$ac_ext <<_ACEOF
15631 /* confdefs.h.  */
15632 _ACEOF
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h.  */
15636 #include <$ac_header>
15637 _ACEOF
15638 if { (ac_try="$ac_cpp conftest.$ac_ext"
15639 case "(($ac_try" in
15640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15641   *) ac_try_echo=$ac_try;;
15642 esac
15643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15644   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15645   ac_status=$?
15646   grep -v '^ *+' conftest.er1 >conftest.err
15647   rm -f conftest.er1
15648   cat conftest.err >&5
15649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650   (exit $ac_status); } >/dev/null; then
15651   if test -s conftest.err; then
15652     ac_cpp_err=$ac_c_preproc_warn_flag
15653     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15654   else
15655     ac_cpp_err=
15656   fi
15657 else
15658   ac_cpp_err=yes
15659 fi
15660 if test -z "$ac_cpp_err"; then
15661   ac_header_preproc=yes
15662 else
15663   echo "$as_me: failed program was:" >&5
15664 sed 's/^/| /' conftest.$ac_ext >&5
15665
15666   ac_header_preproc=no
15667 fi
15668
15669 rm -f conftest.err conftest.$ac_ext
15670 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15671 echo "${ECHO_T}$ac_header_preproc" >&6; }
15672
15673 # So?  What about this header?
15674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15675   yes:no: )
15676     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15677 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15678     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15679 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15680     ac_header_preproc=yes
15681     ;;
15682   no:yes:* )
15683     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15684 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15685     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15686 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15687     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15688 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15689     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15690 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15691     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15693     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15694 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15695     ( cat <<\_ASBOX
15696 ## ------------------------------------ ##
15697 ## Report this to http://llvm.org/bugs/ ##
15698 ## ------------------------------------ ##
15699 _ASBOX
15700      ) | sed "s/^/$as_me: WARNING:     /" >&2
15701     ;;
15702 esac
15703 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15706   echo $ECHO_N "(cached) $ECHO_C" >&6
15707 else
15708   eval "$as_ac_Header=\$ac_header_preproc"
15709 fi
15710 ac_res=`eval echo '${'$as_ac_Header'}'`
15711                { echo "$as_me:$LINENO: result: $ac_res" >&5
15712 echo "${ECHO_T}$ac_res" >&6; }
15713
15714 fi
15715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15716   cat >>confdefs.h <<_ACEOF
15717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15718 _ACEOF
15719  HAVE_PTHREAD=1
15720
15721 else
15722   HAVE_PTHREAD=0
15723
15724 fi
15725
15726 done
15727
15728 else
15729   HAVE_PTHREAD=0
15730
15731 fi
15732
15733 if test "$llvm_cv_enable_libffi" = "yes" ; then
15734
15735
15736 for ac_header in ffi.h ffi/ffi.h
15737 do
15738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15740   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15743   echo $ECHO_N "(cached) $ECHO_C" >&6
15744 fi
15745 ac_res=`eval echo '${'$as_ac_Header'}'`
15746                { echo "$as_me:$LINENO: result: $ac_res" >&5
15747 echo "${ECHO_T}$ac_res" >&6; }
15748 else
15749   # Is the header compilable?
15750 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15752 cat >conftest.$ac_ext <<_ACEOF
15753 /* confdefs.h.  */
15754 _ACEOF
15755 cat confdefs.h >>conftest.$ac_ext
15756 cat >>conftest.$ac_ext <<_ACEOF
15757 /* end confdefs.h.  */
15758 $ac_includes_default
15759 #include <$ac_header>
15760 _ACEOF
15761 rm -f conftest.$ac_objext
15762 if { (ac_try="$ac_compile"
15763 case "(($ac_try" in
15764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15765   *) ac_try_echo=$ac_try;;
15766 esac
15767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15768   (eval "$ac_compile") 2>conftest.er1
15769   ac_status=$?
15770   grep -v '^ *+' conftest.er1 >conftest.err
15771   rm -f conftest.er1
15772   cat conftest.err >&5
15773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774   (exit $ac_status); } &&
15775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15776   { (case "(($ac_try" in
15777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15778   *) ac_try_echo=$ac_try;;
15779 esac
15780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15781   (eval "$ac_try") 2>&5
15782   ac_status=$?
15783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784   (exit $ac_status); }; } &&
15785          { ac_try='test -s conftest.$ac_objext'
15786   { (case "(($ac_try" in
15787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15788   *) ac_try_echo=$ac_try;;
15789 esac
15790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15791   (eval "$ac_try") 2>&5
15792   ac_status=$?
15793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794   (exit $ac_status); }; }; then
15795   ac_header_compiler=yes
15796 else
15797   echo "$as_me: failed program was:" >&5
15798 sed 's/^/| /' conftest.$ac_ext >&5
15799
15800         ac_header_compiler=no
15801 fi
15802
15803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15804 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15805 echo "${ECHO_T}$ac_header_compiler" >&6; }
15806
15807 # Is the header present?
15808 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15810 cat >conftest.$ac_ext <<_ACEOF
15811 /* confdefs.h.  */
15812 _ACEOF
15813 cat confdefs.h >>conftest.$ac_ext
15814 cat >>conftest.$ac_ext <<_ACEOF
15815 /* end confdefs.h.  */
15816 #include <$ac_header>
15817 _ACEOF
15818 if { (ac_try="$ac_cpp conftest.$ac_ext"
15819 case "(($ac_try" in
15820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15821   *) ac_try_echo=$ac_try;;
15822 esac
15823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15824   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15825   ac_status=$?
15826   grep -v '^ *+' conftest.er1 >conftest.err
15827   rm -f conftest.er1
15828   cat conftest.err >&5
15829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830   (exit $ac_status); } >/dev/null; then
15831   if test -s conftest.err; then
15832     ac_cpp_err=$ac_c_preproc_warn_flag
15833     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15834   else
15835     ac_cpp_err=
15836   fi
15837 else
15838   ac_cpp_err=yes
15839 fi
15840 if test -z "$ac_cpp_err"; then
15841   ac_header_preproc=yes
15842 else
15843   echo "$as_me: failed program was:" >&5
15844 sed 's/^/| /' conftest.$ac_ext >&5
15845
15846   ac_header_preproc=no
15847 fi
15848
15849 rm -f conftest.err conftest.$ac_ext
15850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15851 echo "${ECHO_T}$ac_header_preproc" >&6; }
15852
15853 # So?  What about this header?
15854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15855   yes:no: )
15856     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15858     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15860     ac_header_preproc=yes
15861     ;;
15862   no:yes:* )
15863     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15865     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15866 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15867     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15869     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15870 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15871     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15873     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15875     ( cat <<\_ASBOX
15876 ## ------------------------------------ ##
15877 ## Report this to http://llvm.org/bugs/ ##
15878 ## ------------------------------------ ##
15879 _ASBOX
15880      ) | sed "s/^/$as_me: WARNING:     /" >&2
15881     ;;
15882 esac
15883 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15886   echo $ECHO_N "(cached) $ECHO_C" >&6
15887 else
15888   eval "$as_ac_Header=\$ac_header_preproc"
15889 fi
15890 ac_res=`eval echo '${'$as_ac_Header'}'`
15891                { echo "$as_me:$LINENO: result: $ac_res" >&5
15892 echo "${ECHO_T}$ac_res" >&6; }
15893
15894 fi
15895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15896   cat >>confdefs.h <<_ACEOF
15897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15898 _ACEOF
15899
15900 fi
15901
15902 done
15903
15904 fi
15905
15906
15907 for ac_header in CrashReporterClient.h
15908 do
15909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15911   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15914   echo $ECHO_N "(cached) $ECHO_C" >&6
15915 fi
15916 ac_res=`eval echo '${'$as_ac_Header'}'`
15917                { echo "$as_me:$LINENO: result: $ac_res" >&5
15918 echo "${ECHO_T}$ac_res" >&6; }
15919 else
15920   # Is the header compilable?
15921 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15923 cat >conftest.$ac_ext <<_ACEOF
15924 /* confdefs.h.  */
15925 _ACEOF
15926 cat confdefs.h >>conftest.$ac_ext
15927 cat >>conftest.$ac_ext <<_ACEOF
15928 /* end confdefs.h.  */
15929 $ac_includes_default
15930 #include <$ac_header>
15931 _ACEOF
15932 rm -f conftest.$ac_objext
15933 if { (ac_try="$ac_compile"
15934 case "(($ac_try" in
15935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15936   *) ac_try_echo=$ac_try;;
15937 esac
15938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15939   (eval "$ac_compile") 2>conftest.er1
15940   ac_status=$?
15941   grep -v '^ *+' conftest.er1 >conftest.err
15942   rm -f conftest.er1
15943   cat conftest.err >&5
15944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945   (exit $ac_status); } &&
15946          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15947   { (case "(($ac_try" in
15948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15949   *) ac_try_echo=$ac_try;;
15950 esac
15951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15952   (eval "$ac_try") 2>&5
15953   ac_status=$?
15954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955   (exit $ac_status); }; } &&
15956          { ac_try='test -s conftest.$ac_objext'
15957   { (case "(($ac_try" in
15958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15959   *) ac_try_echo=$ac_try;;
15960 esac
15961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15962   (eval "$ac_try") 2>&5
15963   ac_status=$?
15964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965   (exit $ac_status); }; }; then
15966   ac_header_compiler=yes
15967 else
15968   echo "$as_me: failed program was:" >&5
15969 sed 's/^/| /' conftest.$ac_ext >&5
15970
15971         ac_header_compiler=no
15972 fi
15973
15974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15976 echo "${ECHO_T}$ac_header_compiler" >&6; }
15977
15978 # Is the header present?
15979 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15981 cat >conftest.$ac_ext <<_ACEOF
15982 /* confdefs.h.  */
15983 _ACEOF
15984 cat confdefs.h >>conftest.$ac_ext
15985 cat >>conftest.$ac_ext <<_ACEOF
15986 /* end confdefs.h.  */
15987 #include <$ac_header>
15988 _ACEOF
15989 if { (ac_try="$ac_cpp conftest.$ac_ext"
15990 case "(($ac_try" in
15991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15992   *) ac_try_echo=$ac_try;;
15993 esac
15994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15995   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15996   ac_status=$?
15997   grep -v '^ *+' conftest.er1 >conftest.err
15998   rm -f conftest.er1
15999   cat conftest.err >&5
16000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001   (exit $ac_status); } >/dev/null; then
16002   if test -s conftest.err; then
16003     ac_cpp_err=$ac_c_preproc_warn_flag
16004     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16005   else
16006     ac_cpp_err=
16007   fi
16008 else
16009   ac_cpp_err=yes
16010 fi
16011 if test -z "$ac_cpp_err"; then
16012   ac_header_preproc=yes
16013 else
16014   echo "$as_me: failed program was:" >&5
16015 sed 's/^/| /' conftest.$ac_ext >&5
16016
16017   ac_header_preproc=no
16018 fi
16019
16020 rm -f conftest.err conftest.$ac_ext
16021 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16022 echo "${ECHO_T}$ac_header_preproc" >&6; }
16023
16024 # So?  What about this header?
16025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16026   yes:no: )
16027     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16029     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16031     ac_header_preproc=yes
16032     ;;
16033   no:yes:* )
16034     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16036     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16037 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16038     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16040     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16041 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16044     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16046     ( cat <<\_ASBOX
16047 ## ------------------------------------ ##
16048 ## Report this to http://llvm.org/bugs/ ##
16049 ## ------------------------------------ ##
16050 _ASBOX
16051      ) | sed "s/^/$as_me: WARNING:     /" >&2
16052     ;;
16053 esac
16054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16057   echo $ECHO_N "(cached) $ECHO_C" >&6
16058 else
16059   eval "$as_ac_Header=\$ac_header_preproc"
16060 fi
16061 ac_res=`eval echo '${'$as_ac_Header'}'`
16062                { echo "$as_me:$LINENO: result: $ac_res" >&5
16063 echo "${ECHO_T}$ac_res" >&6; }
16064
16065 fi
16066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16067   cat >>confdefs.h <<_ACEOF
16068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16069 _ACEOF
16070
16071 fi
16072
16073 done
16074
16075
16076 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16077 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16078 cat >conftest.$ac_ext <<_ACEOF
16079 /* confdefs.h.  */
16080 _ACEOF
16081 cat confdefs.h >>conftest.$ac_ext
16082 cat >>conftest.$ac_ext <<_ACEOF
16083 /* end confdefs.h.  */
16084 extern const char *__crashreporter_info__;
16085       int main() {
16086         __crashreporter_info__ = "test";
16087         return 0;
16088       }
16089
16090 _ACEOF
16091 rm -f conftest.$ac_objext conftest$ac_exeext
16092 if { (ac_try="$ac_link"
16093 case "(($ac_try" in
16094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16095   *) ac_try_echo=$ac_try;;
16096 esac
16097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16098   (eval "$ac_link") 2>conftest.er1
16099   ac_status=$?
16100   grep -v '^ *+' conftest.er1 >conftest.err
16101   rm -f conftest.er1
16102   cat conftest.err >&5
16103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104   (exit $ac_status); } &&
16105          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16106   { (case "(($ac_try" in
16107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16108   *) ac_try_echo=$ac_try;;
16109 esac
16110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16111   (eval "$ac_try") 2>&5
16112   ac_status=$?
16113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114   (exit $ac_status); }; } &&
16115          { ac_try='test -s conftest$ac_exeext'
16116   { (case "(($ac_try" in
16117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16118   *) ac_try_echo=$ac_try;;
16119 esac
16120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16121   (eval "$ac_try") 2>&5
16122   ac_status=$?
16123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124   (exit $ac_status); }; }; then
16125   { echo "$as_me:$LINENO: result: yes" >&5
16126 echo "${ECHO_T}yes" >&6; }
16127
16128 cat >>confdefs.h <<\_ACEOF
16129 #define HAVE_CRASHREPORTER_INFO 1
16130 _ACEOF
16131
16132 else
16133   echo "$as_me: failed program was:" >&5
16134 sed 's/^/| /' conftest.$ac_ext >&5
16135
16136         { echo "$as_me:$LINENO: result: no" >&5
16137 echo "${ECHO_T}no" >&6; }
16138
16139 cat >>confdefs.h <<\_ACEOF
16140 #define HAVE_CRASHREPORTER_INFO 0
16141 _ACEOF
16142
16143 fi
16144
16145 rm -f core conftest.err conftest.$ac_objext \
16146       conftest$ac_exeext conftest.$ac_ext
16147
16148
16149
16150
16151   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16152 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16153 if test "${ac_cv_huge_val_sanity+set}" = set; then
16154   echo $ECHO_N "(cached) $ECHO_C" >&6
16155 else
16156
16157     ac_ext=cpp
16158 ac_cpp='$CXXCPP $CPPFLAGS'
16159 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16160 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16161 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16162
16163     ac_save_CXXFLAGS=$CXXFLAGS
16164     CXXFLAGS=-pedantic
16165     if test "$cross_compiling" = yes; then
16166   ac_cv_huge_val_sanity=yes
16167 else
16168   cat >conftest.$ac_ext <<_ACEOF
16169 /* confdefs.h.  */
16170 _ACEOF
16171 cat confdefs.h >>conftest.$ac_ext
16172 cat >>conftest.$ac_ext <<_ACEOF
16173 /* end confdefs.h.  */
16174 #include <math.h>
16175 int
16176 main ()
16177 {
16178 double x = HUGE_VAL; return x != x;
16179   ;
16180   return 0;
16181 }
16182 _ACEOF
16183 rm -f conftest$ac_exeext
16184 if { (ac_try="$ac_link"
16185 case "(($ac_try" in
16186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16187   *) ac_try_echo=$ac_try;;
16188 esac
16189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16190   (eval "$ac_link") 2>&5
16191   ac_status=$?
16192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16194   { (case "(($ac_try" in
16195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196   *) ac_try_echo=$ac_try;;
16197 esac
16198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199   (eval "$ac_try") 2>&5
16200   ac_status=$?
16201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202   (exit $ac_status); }; }; then
16203   ac_cv_huge_val_sanity=yes
16204 else
16205   echo "$as_me: program exited with status $ac_status" >&5
16206 echo "$as_me: failed program was:" >&5
16207 sed 's/^/| /' conftest.$ac_ext >&5
16208
16209 ( exit $ac_status )
16210 ac_cv_huge_val_sanity=no
16211 fi
16212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16213 fi
16214
16215
16216     CXXFLAGS=$ac_save_CXXFLAGS
16217     ac_ext=c
16218 ac_cpp='$CPP $CPPFLAGS'
16219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16222
16223
16224 fi
16225 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16226 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16227   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16228
16229
16230 { echo "$as_me:$LINENO: checking for pid_t" >&5
16231 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16232 if test "${ac_cv_type_pid_t+set}" = set; then
16233   echo $ECHO_N "(cached) $ECHO_C" >&6
16234 else
16235   cat >conftest.$ac_ext <<_ACEOF
16236 /* confdefs.h.  */
16237 _ACEOF
16238 cat confdefs.h >>conftest.$ac_ext
16239 cat >>conftest.$ac_ext <<_ACEOF
16240 /* end confdefs.h.  */
16241 $ac_includes_default
16242 typedef pid_t ac__type_new_;
16243 int
16244 main ()
16245 {
16246 if ((ac__type_new_ *) 0)
16247   return 0;
16248 if (sizeof (ac__type_new_))
16249   return 0;
16250   ;
16251   return 0;
16252 }
16253 _ACEOF
16254 rm -f conftest.$ac_objext
16255 if { (ac_try="$ac_compile"
16256 case "(($ac_try" in
16257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258   *) ac_try_echo=$ac_try;;
16259 esac
16260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261   (eval "$ac_compile") 2>conftest.er1
16262   ac_status=$?
16263   grep -v '^ *+' conftest.er1 >conftest.err
16264   rm -f conftest.er1
16265   cat conftest.err >&5
16266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267   (exit $ac_status); } &&
16268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16269   { (case "(($ac_try" in
16270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16271   *) ac_try_echo=$ac_try;;
16272 esac
16273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16274   (eval "$ac_try") 2>&5
16275   ac_status=$?
16276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277   (exit $ac_status); }; } &&
16278          { ac_try='test -s conftest.$ac_objext'
16279   { (case "(($ac_try" in
16280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281   *) ac_try_echo=$ac_try;;
16282 esac
16283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16284   (eval "$ac_try") 2>&5
16285   ac_status=$?
16286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287   (exit $ac_status); }; }; then
16288   ac_cv_type_pid_t=yes
16289 else
16290   echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16292
16293         ac_cv_type_pid_t=no
16294 fi
16295
16296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16297 fi
16298 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16299 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16300 if test $ac_cv_type_pid_t = yes; then
16301   :
16302 else
16303
16304 cat >>confdefs.h <<_ACEOF
16305 #define pid_t int
16306 _ACEOF
16307
16308 fi
16309
16310 { echo "$as_me:$LINENO: checking for size_t" >&5
16311 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16312 if test "${ac_cv_type_size_t+set}" = set; then
16313   echo $ECHO_N "(cached) $ECHO_C" >&6
16314 else
16315   cat >conftest.$ac_ext <<_ACEOF
16316 /* confdefs.h.  */
16317 _ACEOF
16318 cat confdefs.h >>conftest.$ac_ext
16319 cat >>conftest.$ac_ext <<_ACEOF
16320 /* end confdefs.h.  */
16321 $ac_includes_default
16322 typedef size_t ac__type_new_;
16323 int
16324 main ()
16325 {
16326 if ((ac__type_new_ *) 0)
16327   return 0;
16328 if (sizeof (ac__type_new_))
16329   return 0;
16330   ;
16331   return 0;
16332 }
16333 _ACEOF
16334 rm -f conftest.$ac_objext
16335 if { (ac_try="$ac_compile"
16336 case "(($ac_try" in
16337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338   *) ac_try_echo=$ac_try;;
16339 esac
16340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341   (eval "$ac_compile") 2>conftest.er1
16342   ac_status=$?
16343   grep -v '^ *+' conftest.er1 >conftest.err
16344   rm -f conftest.er1
16345   cat conftest.err >&5
16346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347   (exit $ac_status); } &&
16348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16349   { (case "(($ac_try" in
16350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16351   *) ac_try_echo=$ac_try;;
16352 esac
16353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16354   (eval "$ac_try") 2>&5
16355   ac_status=$?
16356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357   (exit $ac_status); }; } &&
16358          { ac_try='test -s conftest.$ac_objext'
16359   { (case "(($ac_try" in
16360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361   *) ac_try_echo=$ac_try;;
16362 esac
16363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16364   (eval "$ac_try") 2>&5
16365   ac_status=$?
16366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367   (exit $ac_status); }; }; then
16368   ac_cv_type_size_t=yes
16369 else
16370   echo "$as_me: failed program was:" >&5
16371 sed 's/^/| /' conftest.$ac_ext >&5
16372
16373         ac_cv_type_size_t=no
16374 fi
16375
16376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16377 fi
16378 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16379 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16380 if test $ac_cv_type_size_t = yes; then
16381   :
16382 else
16383
16384 cat >>confdefs.h <<_ACEOF
16385 #define size_t unsigned int
16386 _ACEOF
16387
16388 fi
16389
16390
16391 cat >>confdefs.h <<_ACEOF
16392 #define RETSIGTYPE void
16393 _ACEOF
16394
16395 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16396 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16397 if test "${ac_cv_struct_tm+set}" = set; then
16398   echo $ECHO_N "(cached) $ECHO_C" >&6
16399 else
16400   cat >conftest.$ac_ext <<_ACEOF
16401 /* confdefs.h.  */
16402 _ACEOF
16403 cat confdefs.h >>conftest.$ac_ext
16404 cat >>conftest.$ac_ext <<_ACEOF
16405 /* end confdefs.h.  */
16406 #include <sys/types.h>
16407 #include <time.h>
16408
16409 int
16410 main ()
16411 {
16412 struct tm *tp; tp->tm_sec;
16413   ;
16414   return 0;
16415 }
16416 _ACEOF
16417 rm -f conftest.$ac_objext
16418 if { (ac_try="$ac_compile"
16419 case "(($ac_try" in
16420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421   *) ac_try_echo=$ac_try;;
16422 esac
16423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16424   (eval "$ac_compile") 2>conftest.er1
16425   ac_status=$?
16426   grep -v '^ *+' conftest.er1 >conftest.err
16427   rm -f conftest.er1
16428   cat conftest.err >&5
16429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430   (exit $ac_status); } &&
16431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16432   { (case "(($ac_try" in
16433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16434   *) ac_try_echo=$ac_try;;
16435 esac
16436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16437   (eval "$ac_try") 2>&5
16438   ac_status=$?
16439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440   (exit $ac_status); }; } &&
16441          { ac_try='test -s conftest.$ac_objext'
16442   { (case "(($ac_try" in
16443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444   *) ac_try_echo=$ac_try;;
16445 esac
16446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447   (eval "$ac_try") 2>&5
16448   ac_status=$?
16449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450   (exit $ac_status); }; }; then
16451   ac_cv_struct_tm=time.h
16452 else
16453   echo "$as_me: failed program was:" >&5
16454 sed 's/^/| /' conftest.$ac_ext >&5
16455
16456         ac_cv_struct_tm=sys/time.h
16457 fi
16458
16459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16460 fi
16461 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16462 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16463 if test $ac_cv_struct_tm = sys/time.h; then
16464
16465 cat >>confdefs.h <<\_ACEOF
16466 #define TM_IN_SYS_TIME 1
16467 _ACEOF
16468
16469 fi
16470
16471 { echo "$as_me:$LINENO: checking for int64_t" >&5
16472 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16473 if test "${ac_cv_type_int64_t+set}" = set; then
16474   echo $ECHO_N "(cached) $ECHO_C" >&6
16475 else
16476   cat >conftest.$ac_ext <<_ACEOF
16477 /* confdefs.h.  */
16478 _ACEOF
16479 cat confdefs.h >>conftest.$ac_ext
16480 cat >>conftest.$ac_ext <<_ACEOF
16481 /* end confdefs.h.  */
16482 $ac_includes_default
16483 typedef int64_t ac__type_new_;
16484 int
16485 main ()
16486 {
16487 if ((ac__type_new_ *) 0)
16488   return 0;
16489 if (sizeof (ac__type_new_))
16490   return 0;
16491   ;
16492   return 0;
16493 }
16494 _ACEOF
16495 rm -f conftest.$ac_objext
16496 if { (ac_try="$ac_compile"
16497 case "(($ac_try" in
16498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16499   *) ac_try_echo=$ac_try;;
16500 esac
16501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16502   (eval "$ac_compile") 2>conftest.er1
16503   ac_status=$?
16504   grep -v '^ *+' conftest.er1 >conftest.err
16505   rm -f conftest.er1
16506   cat conftest.err >&5
16507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508   (exit $ac_status); } &&
16509          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16510   { (case "(($ac_try" in
16511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16512   *) ac_try_echo=$ac_try;;
16513 esac
16514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16515   (eval "$ac_try") 2>&5
16516   ac_status=$?
16517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518   (exit $ac_status); }; } &&
16519          { ac_try='test -s conftest.$ac_objext'
16520   { (case "(($ac_try" in
16521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16522   *) ac_try_echo=$ac_try;;
16523 esac
16524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16525   (eval "$ac_try") 2>&5
16526   ac_status=$?
16527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528   (exit $ac_status); }; }; then
16529   ac_cv_type_int64_t=yes
16530 else
16531   echo "$as_me: failed program was:" >&5
16532 sed 's/^/| /' conftest.$ac_ext >&5
16533
16534         ac_cv_type_int64_t=no
16535 fi
16536
16537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16538 fi
16539 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16540 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16541 if test $ac_cv_type_int64_t = yes; then
16542
16543 cat >>confdefs.h <<_ACEOF
16544 #define HAVE_INT64_T 1
16545 _ACEOF
16546
16547
16548 else
16549   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16550 echo "$as_me: error: Type int64_t required but not found" >&2;}
16551    { (exit 1); exit 1; }; }
16552 fi
16553
16554 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16555 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16556 if test "${ac_cv_type_uint64_t+set}" = set; then
16557   echo $ECHO_N "(cached) $ECHO_C" >&6
16558 else
16559   cat >conftest.$ac_ext <<_ACEOF
16560 /* confdefs.h.  */
16561 _ACEOF
16562 cat confdefs.h >>conftest.$ac_ext
16563 cat >>conftest.$ac_ext <<_ACEOF
16564 /* end confdefs.h.  */
16565 $ac_includes_default
16566 typedef uint64_t ac__type_new_;
16567 int
16568 main ()
16569 {
16570 if ((ac__type_new_ *) 0)
16571   return 0;
16572 if (sizeof (ac__type_new_))
16573   return 0;
16574   ;
16575   return 0;
16576 }
16577 _ACEOF
16578 rm -f conftest.$ac_objext
16579 if { (ac_try="$ac_compile"
16580 case "(($ac_try" in
16581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582   *) ac_try_echo=$ac_try;;
16583 esac
16584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16585   (eval "$ac_compile") 2>conftest.er1
16586   ac_status=$?
16587   grep -v '^ *+' conftest.er1 >conftest.err
16588   rm -f conftest.er1
16589   cat conftest.err >&5
16590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591   (exit $ac_status); } &&
16592          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16593   { (case "(($ac_try" in
16594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595   *) ac_try_echo=$ac_try;;
16596 esac
16597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598   (eval "$ac_try") 2>&5
16599   ac_status=$?
16600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601   (exit $ac_status); }; } &&
16602          { ac_try='test -s conftest.$ac_objext'
16603   { (case "(($ac_try" in
16604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605   *) ac_try_echo=$ac_try;;
16606 esac
16607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16608   (eval "$ac_try") 2>&5
16609   ac_status=$?
16610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611   (exit $ac_status); }; }; then
16612   ac_cv_type_uint64_t=yes
16613 else
16614   echo "$as_me: failed program was:" >&5
16615 sed 's/^/| /' conftest.$ac_ext >&5
16616
16617         ac_cv_type_uint64_t=no
16618 fi
16619
16620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16621 fi
16622 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16623 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16624 if test $ac_cv_type_uint64_t = yes; then
16625
16626 cat >>confdefs.h <<_ACEOF
16627 #define HAVE_UINT64_T 1
16628 _ACEOF
16629
16630
16631 else
16632   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16633 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16634 if test "${ac_cv_type_u_int64_t+set}" = set; then
16635   echo $ECHO_N "(cached) $ECHO_C" >&6
16636 else
16637   cat >conftest.$ac_ext <<_ACEOF
16638 /* confdefs.h.  */
16639 _ACEOF
16640 cat confdefs.h >>conftest.$ac_ext
16641 cat >>conftest.$ac_ext <<_ACEOF
16642 /* end confdefs.h.  */
16643 $ac_includes_default
16644 typedef u_int64_t ac__type_new_;
16645 int
16646 main ()
16647 {
16648 if ((ac__type_new_ *) 0)
16649   return 0;
16650 if (sizeof (ac__type_new_))
16651   return 0;
16652   ;
16653   return 0;
16654 }
16655 _ACEOF
16656 rm -f conftest.$ac_objext
16657 if { (ac_try="$ac_compile"
16658 case "(($ac_try" in
16659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660   *) ac_try_echo=$ac_try;;
16661 esac
16662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663   (eval "$ac_compile") 2>conftest.er1
16664   ac_status=$?
16665   grep -v '^ *+' conftest.er1 >conftest.err
16666   rm -f conftest.er1
16667   cat conftest.err >&5
16668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669   (exit $ac_status); } &&
16670          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16671   { (case "(($ac_try" in
16672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16673   *) ac_try_echo=$ac_try;;
16674 esac
16675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16676   (eval "$ac_try") 2>&5
16677   ac_status=$?
16678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679   (exit $ac_status); }; } &&
16680          { ac_try='test -s conftest.$ac_objext'
16681   { (case "(($ac_try" in
16682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683   *) ac_try_echo=$ac_try;;
16684 esac
16685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686   (eval "$ac_try") 2>&5
16687   ac_status=$?
16688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689   (exit $ac_status); }; }; then
16690   ac_cv_type_u_int64_t=yes
16691 else
16692   echo "$as_me: failed program was:" >&5
16693 sed 's/^/| /' conftest.$ac_ext >&5
16694
16695         ac_cv_type_u_int64_t=no
16696 fi
16697
16698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16699 fi
16700 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16701 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16702 if test $ac_cv_type_u_int64_t = yes; then
16703
16704 cat >>confdefs.h <<_ACEOF
16705 #define HAVE_U_INT64_T 1
16706 _ACEOF
16707
16708
16709 else
16710   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16711 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16712    { (exit 1); exit 1; }; }
16713 fi
16714
16715 fi
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16727 do
16728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16729 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16732   echo $ECHO_N "(cached) $ECHO_C" >&6
16733 else
16734   cat >conftest.$ac_ext <<_ACEOF
16735 /* confdefs.h.  */
16736 _ACEOF
16737 cat confdefs.h >>conftest.$ac_ext
16738 cat >>conftest.$ac_ext <<_ACEOF
16739 /* end confdefs.h.  */
16740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16741    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16742 #define $ac_func innocuous_$ac_func
16743
16744 /* System header to define __stub macros and hopefully few prototypes,
16745     which can conflict with char $ac_func (); below.
16746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16747     <limits.h> exists even on freestanding compilers.  */
16748
16749 #ifdef __STDC__
16750 # include <limits.h>
16751 #else
16752 # include <assert.h>
16753 #endif
16754
16755 #undef $ac_func
16756
16757 /* Override any GCC internal prototype to avoid an error.
16758    Use char because int might match the return type of a GCC
16759    builtin and then its argument prototype would still apply.  */
16760 #ifdef __cplusplus
16761 extern "C"
16762 #endif
16763 char $ac_func ();
16764 /* The GNU C library defines this for functions which it implements
16765     to always fail with ENOSYS.  Some functions are actually named
16766     something starting with __ and the normal name is an alias.  */
16767 #if defined __stub_$ac_func || defined __stub___$ac_func
16768 choke me
16769 #endif
16770
16771 int
16772 main ()
16773 {
16774 return $ac_func ();
16775   ;
16776   return 0;
16777 }
16778 _ACEOF
16779 rm -f conftest.$ac_objext conftest$ac_exeext
16780 if { (ac_try="$ac_link"
16781 case "(($ac_try" in
16782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16783   *) ac_try_echo=$ac_try;;
16784 esac
16785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16786   (eval "$ac_link") 2>conftest.er1
16787   ac_status=$?
16788   grep -v '^ *+' conftest.er1 >conftest.err
16789   rm -f conftest.er1
16790   cat conftest.err >&5
16791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792   (exit $ac_status); } &&
16793          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16794   { (case "(($ac_try" in
16795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16796   *) ac_try_echo=$ac_try;;
16797 esac
16798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16799   (eval "$ac_try") 2>&5
16800   ac_status=$?
16801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802   (exit $ac_status); }; } &&
16803          { ac_try='test -s conftest$ac_exeext'
16804   { (case "(($ac_try" in
16805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806   *) ac_try_echo=$ac_try;;
16807 esac
16808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16809   (eval "$ac_try") 2>&5
16810   ac_status=$?
16811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812   (exit $ac_status); }; }; then
16813   eval "$as_ac_var=yes"
16814 else
16815   echo "$as_me: failed program was:" >&5
16816 sed 's/^/| /' conftest.$ac_ext >&5
16817
16818         eval "$as_ac_var=no"
16819 fi
16820
16821 rm -f core conftest.err conftest.$ac_objext \
16822       conftest$ac_exeext conftest.$ac_ext
16823 fi
16824 ac_res=`eval echo '${'$as_ac_var'}'`
16825                { echo "$as_me:$LINENO: result: $ac_res" >&5
16826 echo "${ECHO_T}$ac_res" >&6; }
16827 if test `eval echo '${'$as_ac_var'}'` = yes; then
16828   cat >>confdefs.h <<_ACEOF
16829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16830 _ACEOF
16831
16832 fi
16833 done
16834
16835
16836
16837
16838
16839 for ac_func in powf fmodf strtof round
16840 do
16841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16842 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16844 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16845   echo $ECHO_N "(cached) $ECHO_C" >&6
16846 else
16847   cat >conftest.$ac_ext <<_ACEOF
16848 /* confdefs.h.  */
16849 _ACEOF
16850 cat confdefs.h >>conftest.$ac_ext
16851 cat >>conftest.$ac_ext <<_ACEOF
16852 /* end confdefs.h.  */
16853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16854    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16855 #define $ac_func innocuous_$ac_func
16856
16857 /* System header to define __stub macros and hopefully few prototypes,
16858     which can conflict with char $ac_func (); below.
16859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16860     <limits.h> exists even on freestanding compilers.  */
16861
16862 #ifdef __STDC__
16863 # include <limits.h>
16864 #else
16865 # include <assert.h>
16866 #endif
16867
16868 #undef $ac_func
16869
16870 /* Override any GCC internal prototype to avoid an error.
16871    Use char because int might match the return type of a GCC
16872    builtin and then its argument prototype would still apply.  */
16873 #ifdef __cplusplus
16874 extern "C"
16875 #endif
16876 char $ac_func ();
16877 /* The GNU C library defines this for functions which it implements
16878     to always fail with ENOSYS.  Some functions are actually named
16879     something starting with __ and the normal name is an alias.  */
16880 #if defined __stub_$ac_func || defined __stub___$ac_func
16881 choke me
16882 #endif
16883
16884 int
16885 main ()
16886 {
16887 return $ac_func ();
16888   ;
16889   return 0;
16890 }
16891 _ACEOF
16892 rm -f conftest.$ac_objext conftest$ac_exeext
16893 if { (ac_try="$ac_link"
16894 case "(($ac_try" in
16895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896   *) ac_try_echo=$ac_try;;
16897 esac
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899   (eval "$ac_link") 2>conftest.er1
16900   ac_status=$?
16901   grep -v '^ *+' conftest.er1 >conftest.err
16902   rm -f conftest.er1
16903   cat conftest.err >&5
16904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905   (exit $ac_status); } &&
16906          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16907   { (case "(($ac_try" in
16908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909   *) ac_try_echo=$ac_try;;
16910 esac
16911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16912   (eval "$ac_try") 2>&5
16913   ac_status=$?
16914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915   (exit $ac_status); }; } &&
16916          { ac_try='test -s conftest$ac_exeext'
16917   { (case "(($ac_try" in
16918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919   *) ac_try_echo=$ac_try;;
16920 esac
16921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922   (eval "$ac_try") 2>&5
16923   ac_status=$?
16924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925   (exit $ac_status); }; }; then
16926   eval "$as_ac_var=yes"
16927 else
16928   echo "$as_me: failed program was:" >&5
16929 sed 's/^/| /' conftest.$ac_ext >&5
16930
16931         eval "$as_ac_var=no"
16932 fi
16933
16934 rm -f core conftest.err conftest.$ac_objext \
16935       conftest$ac_exeext conftest.$ac_ext
16936 fi
16937 ac_res=`eval echo '${'$as_ac_var'}'`
16938                { echo "$as_me:$LINENO: result: $ac_res" >&5
16939 echo "${ECHO_T}$ac_res" >&6; }
16940 if test `eval echo '${'$as_ac_var'}'` = yes; then
16941   cat >>confdefs.h <<_ACEOF
16942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16943 _ACEOF
16944
16945 fi
16946 done
16947
16948
16949
16950
16951
16952
16953 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16954 do
16955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16956 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16959   echo $ECHO_N "(cached) $ECHO_C" >&6
16960 else
16961   cat >conftest.$ac_ext <<_ACEOF
16962 /* confdefs.h.  */
16963 _ACEOF
16964 cat confdefs.h >>conftest.$ac_ext
16965 cat >>conftest.$ac_ext <<_ACEOF
16966 /* end confdefs.h.  */
16967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16968    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16969 #define $ac_func innocuous_$ac_func
16970
16971 /* System header to define __stub macros and hopefully few prototypes,
16972     which can conflict with char $ac_func (); below.
16973     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16974     <limits.h> exists even on freestanding compilers.  */
16975
16976 #ifdef __STDC__
16977 # include <limits.h>
16978 #else
16979 # include <assert.h>
16980 #endif
16981
16982 #undef $ac_func
16983
16984 /* Override any GCC internal prototype to avoid an error.
16985    Use char because int might match the return type of a GCC
16986    builtin and then its argument prototype would still apply.  */
16987 #ifdef __cplusplus
16988 extern "C"
16989 #endif
16990 char $ac_func ();
16991 /* The GNU C library defines this for functions which it implements
16992     to always fail with ENOSYS.  Some functions are actually named
16993     something starting with __ and the normal name is an alias.  */
16994 #if defined __stub_$ac_func || defined __stub___$ac_func
16995 choke me
16996 #endif
16997
16998 int
16999 main ()
17000 {
17001 return $ac_func ();
17002   ;
17003   return 0;
17004 }
17005 _ACEOF
17006 rm -f conftest.$ac_objext conftest$ac_exeext
17007 if { (ac_try="$ac_link"
17008 case "(($ac_try" in
17009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010   *) ac_try_echo=$ac_try;;
17011 esac
17012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17013   (eval "$ac_link") 2>conftest.er1
17014   ac_status=$?
17015   grep -v '^ *+' conftest.er1 >conftest.err
17016   rm -f conftest.er1
17017   cat conftest.err >&5
17018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019   (exit $ac_status); } &&
17020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17021   { (case "(($ac_try" in
17022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17023   *) ac_try_echo=$ac_try;;
17024 esac
17025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17026   (eval "$ac_try") 2>&5
17027   ac_status=$?
17028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029   (exit $ac_status); }; } &&
17030          { ac_try='test -s conftest$ac_exeext'
17031   { (case "(($ac_try" in
17032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17033   *) ac_try_echo=$ac_try;;
17034 esac
17035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17036   (eval "$ac_try") 2>&5
17037   ac_status=$?
17038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039   (exit $ac_status); }; }; then
17040   eval "$as_ac_var=yes"
17041 else
17042   echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17044
17045         eval "$as_ac_var=no"
17046 fi
17047
17048 rm -f core conftest.err conftest.$ac_objext \
17049       conftest$ac_exeext conftest.$ac_ext
17050 fi
17051 ac_res=`eval echo '${'$as_ac_var'}'`
17052                { echo "$as_me:$LINENO: result: $ac_res" >&5
17053 echo "${ECHO_T}$ac_res" >&6; }
17054 if test `eval echo '${'$as_ac_var'}'` = yes; then
17055   cat >>confdefs.h <<_ACEOF
17056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17057 _ACEOF
17058
17059 fi
17060 done
17061
17062
17063
17064
17065 for ac_func in isatty mkdtemp mkstemp
17066 do
17067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17071   echo $ECHO_N "(cached) $ECHO_C" >&6
17072 else
17073   cat >conftest.$ac_ext <<_ACEOF
17074 /* confdefs.h.  */
17075 _ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h.  */
17079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17081 #define $ac_func innocuous_$ac_func
17082
17083 /* System header to define __stub macros and hopefully few prototypes,
17084     which can conflict with char $ac_func (); below.
17085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17086     <limits.h> exists even on freestanding compilers.  */
17087
17088 #ifdef __STDC__
17089 # include <limits.h>
17090 #else
17091 # include <assert.h>
17092 #endif
17093
17094 #undef $ac_func
17095
17096 /* Override any GCC internal prototype to avoid an error.
17097    Use char because int might match the return type of a GCC
17098    builtin and then its argument prototype would still apply.  */
17099 #ifdef __cplusplus
17100 extern "C"
17101 #endif
17102 char $ac_func ();
17103 /* The GNU C library defines this for functions which it implements
17104     to always fail with ENOSYS.  Some functions are actually named
17105     something starting with __ and the normal name is an alias.  */
17106 #if defined __stub_$ac_func || defined __stub___$ac_func
17107 choke me
17108 #endif
17109
17110 int
17111 main ()
17112 {
17113 return $ac_func ();
17114   ;
17115   return 0;
17116 }
17117 _ACEOF
17118 rm -f conftest.$ac_objext conftest$ac_exeext
17119 if { (ac_try="$ac_link"
17120 case "(($ac_try" in
17121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122   *) ac_try_echo=$ac_try;;
17123 esac
17124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17125   (eval "$ac_link") 2>conftest.er1
17126   ac_status=$?
17127   grep -v '^ *+' conftest.er1 >conftest.err
17128   rm -f conftest.er1
17129   cat conftest.err >&5
17130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131   (exit $ac_status); } &&
17132          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17133   { (case "(($ac_try" in
17134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17135   *) ac_try_echo=$ac_try;;
17136 esac
17137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17138   (eval "$ac_try") 2>&5
17139   ac_status=$?
17140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141   (exit $ac_status); }; } &&
17142          { ac_try='test -s conftest$ac_exeext'
17143   { (case "(($ac_try" in
17144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17145   *) ac_try_echo=$ac_try;;
17146 esac
17147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17148   (eval "$ac_try") 2>&5
17149   ac_status=$?
17150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151   (exit $ac_status); }; }; then
17152   eval "$as_ac_var=yes"
17153 else
17154   echo "$as_me: failed program was:" >&5
17155 sed 's/^/| /' conftest.$ac_ext >&5
17156
17157         eval "$as_ac_var=no"
17158 fi
17159
17160 rm -f core conftest.err conftest.$ac_objext \
17161       conftest$ac_exeext conftest.$ac_ext
17162 fi
17163 ac_res=`eval echo '${'$as_ac_var'}'`
17164                { echo "$as_me:$LINENO: result: $ac_res" >&5
17165 echo "${ECHO_T}$ac_res" >&6; }
17166 if test `eval echo '${'$as_ac_var'}'` = yes; then
17167   cat >>confdefs.h <<_ACEOF
17168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17169 _ACEOF
17170
17171 fi
17172 done
17173
17174
17175
17176
17177
17178
17179
17180
17181 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17182 do
17183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17184 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17186 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17187   echo $ECHO_N "(cached) $ECHO_C" >&6
17188 else
17189   cat >conftest.$ac_ext <<_ACEOF
17190 /* confdefs.h.  */
17191 _ACEOF
17192 cat confdefs.h >>conftest.$ac_ext
17193 cat >>conftest.$ac_ext <<_ACEOF
17194 /* end confdefs.h.  */
17195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17196    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17197 #define $ac_func innocuous_$ac_func
17198
17199 /* System header to define __stub macros and hopefully few prototypes,
17200     which can conflict with char $ac_func (); below.
17201     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17202     <limits.h> exists even on freestanding compilers.  */
17203
17204 #ifdef __STDC__
17205 # include <limits.h>
17206 #else
17207 # include <assert.h>
17208 #endif
17209
17210 #undef $ac_func
17211
17212 /* Override any GCC internal prototype to avoid an error.
17213    Use char because int might match the return type of a GCC
17214    builtin and then its argument prototype would still apply.  */
17215 #ifdef __cplusplus
17216 extern "C"
17217 #endif
17218 char $ac_func ();
17219 /* The GNU C library defines this for functions which it implements
17220     to always fail with ENOSYS.  Some functions are actually named
17221     something starting with __ and the normal name is an alias.  */
17222 #if defined __stub_$ac_func || defined __stub___$ac_func
17223 choke me
17224 #endif
17225
17226 int
17227 main ()
17228 {
17229 return $ac_func ();
17230   ;
17231   return 0;
17232 }
17233 _ACEOF
17234 rm -f conftest.$ac_objext conftest$ac_exeext
17235 if { (ac_try="$ac_link"
17236 case "(($ac_try" in
17237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238   *) ac_try_echo=$ac_try;;
17239 esac
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241   (eval "$ac_link") 2>conftest.er1
17242   ac_status=$?
17243   grep -v '^ *+' conftest.er1 >conftest.err
17244   rm -f conftest.er1
17245   cat conftest.err >&5
17246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247   (exit $ac_status); } &&
17248          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17249   { (case "(($ac_try" in
17250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251   *) ac_try_echo=$ac_try;;
17252 esac
17253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17254   (eval "$ac_try") 2>&5
17255   ac_status=$?
17256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257   (exit $ac_status); }; } &&
17258          { ac_try='test -s conftest$ac_exeext'
17259   { (case "(($ac_try" in
17260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17261   *) ac_try_echo=$ac_try;;
17262 esac
17263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17264   (eval "$ac_try") 2>&5
17265   ac_status=$?
17266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267   (exit $ac_status); }; }; then
17268   eval "$as_ac_var=yes"
17269 else
17270   echo "$as_me: failed program was:" >&5
17271 sed 's/^/| /' conftest.$ac_ext >&5
17272
17273         eval "$as_ac_var=no"
17274 fi
17275
17276 rm -f core conftest.err conftest.$ac_objext \
17277       conftest$ac_exeext conftest.$ac_ext
17278 fi
17279 ac_res=`eval echo '${'$as_ac_var'}'`
17280                { echo "$as_me:$LINENO: result: $ac_res" >&5
17281 echo "${ECHO_T}$ac_res" >&6; }
17282 if test `eval echo '${'$as_ac_var'}'` = yes; then
17283   cat >>confdefs.h <<_ACEOF
17284 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17285 _ACEOF
17286
17287 fi
17288 done
17289
17290
17291
17292
17293 for ac_func in strerror strerror_r setenv
17294 do
17295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17296 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17298 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17299   echo $ECHO_N "(cached) $ECHO_C" >&6
17300 else
17301   cat >conftest.$ac_ext <<_ACEOF
17302 /* confdefs.h.  */
17303 _ACEOF
17304 cat confdefs.h >>conftest.$ac_ext
17305 cat >>conftest.$ac_ext <<_ACEOF
17306 /* end confdefs.h.  */
17307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17308    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17309 #define $ac_func innocuous_$ac_func
17310
17311 /* System header to define __stub macros and hopefully few prototypes,
17312     which can conflict with char $ac_func (); below.
17313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17314     <limits.h> exists even on freestanding compilers.  */
17315
17316 #ifdef __STDC__
17317 # include <limits.h>
17318 #else
17319 # include <assert.h>
17320 #endif
17321
17322 #undef $ac_func
17323
17324 /* Override any GCC internal prototype to avoid an error.
17325    Use char because int might match the return type of a GCC
17326    builtin and then its argument prototype would still apply.  */
17327 #ifdef __cplusplus
17328 extern "C"
17329 #endif
17330 char $ac_func ();
17331 /* The GNU C library defines this for functions which it implements
17332     to always fail with ENOSYS.  Some functions are actually named
17333     something starting with __ and the normal name is an alias.  */
17334 #if defined __stub_$ac_func || defined __stub___$ac_func
17335 choke me
17336 #endif
17337
17338 int
17339 main ()
17340 {
17341 return $ac_func ();
17342   ;
17343   return 0;
17344 }
17345 _ACEOF
17346 rm -f conftest.$ac_objext conftest$ac_exeext
17347 if { (ac_try="$ac_link"
17348 case "(($ac_try" in
17349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17350   *) ac_try_echo=$ac_try;;
17351 esac
17352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17353   (eval "$ac_link") 2>conftest.er1
17354   ac_status=$?
17355   grep -v '^ *+' conftest.er1 >conftest.err
17356   rm -f conftest.er1
17357   cat conftest.err >&5
17358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359   (exit $ac_status); } &&
17360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17361   { (case "(($ac_try" in
17362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363   *) ac_try_echo=$ac_try;;
17364 esac
17365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366   (eval "$ac_try") 2>&5
17367   ac_status=$?
17368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369   (exit $ac_status); }; } &&
17370          { ac_try='test -s conftest$ac_exeext'
17371   { (case "(($ac_try" in
17372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17373   *) ac_try_echo=$ac_try;;
17374 esac
17375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17376   (eval "$ac_try") 2>&5
17377   ac_status=$?
17378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379   (exit $ac_status); }; }; then
17380   eval "$as_ac_var=yes"
17381 else
17382   echo "$as_me: failed program was:" >&5
17383 sed 's/^/| /' conftest.$ac_ext >&5
17384
17385         eval "$as_ac_var=no"
17386 fi
17387
17388 rm -f core conftest.err conftest.$ac_objext \
17389       conftest$ac_exeext conftest.$ac_ext
17390 fi
17391 ac_res=`eval echo '${'$as_ac_var'}'`
17392                { echo "$as_me:$LINENO: result: $ac_res" >&5
17393 echo "${ECHO_T}$ac_res" >&6; }
17394 if test `eval echo '${'$as_ac_var'}'` = yes; then
17395   cat >>confdefs.h <<_ACEOF
17396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17397 _ACEOF
17398
17399 fi
17400 done
17401
17402
17403
17404
17405
17406 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17407 do
17408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17409 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17411 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17412   echo $ECHO_N "(cached) $ECHO_C" >&6
17413 else
17414   cat >conftest.$ac_ext <<_ACEOF
17415 /* confdefs.h.  */
17416 _ACEOF
17417 cat confdefs.h >>conftest.$ac_ext
17418 cat >>conftest.$ac_ext <<_ACEOF
17419 /* end confdefs.h.  */
17420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17421    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17422 #define $ac_func innocuous_$ac_func
17423
17424 /* System header to define __stub macros and hopefully few prototypes,
17425     which can conflict with char $ac_func (); below.
17426     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17427     <limits.h> exists even on freestanding compilers.  */
17428
17429 #ifdef __STDC__
17430 # include <limits.h>
17431 #else
17432 # include <assert.h>
17433 #endif
17434
17435 #undef $ac_func
17436
17437 /* Override any GCC internal prototype to avoid an error.
17438    Use char because int might match the return type of a GCC
17439    builtin and then its argument prototype would still apply.  */
17440 #ifdef __cplusplus
17441 extern "C"
17442 #endif
17443 char $ac_func ();
17444 /* The GNU C library defines this for functions which it implements
17445     to always fail with ENOSYS.  Some functions are actually named
17446     something starting with __ and the normal name is an alias.  */
17447 #if defined __stub_$ac_func || defined __stub___$ac_func
17448 choke me
17449 #endif
17450
17451 int
17452 main ()
17453 {
17454 return $ac_func ();
17455   ;
17456   return 0;
17457 }
17458 _ACEOF
17459 rm -f conftest.$ac_objext conftest$ac_exeext
17460 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
17467   ac_status=$?
17468   grep -v '^ *+' conftest.er1 >conftest.err
17469   rm -f conftest.er1
17470   cat conftest.err >&5
17471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472   (exit $ac_status); } &&
17473          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17474   { (case "(($ac_try" in
17475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17476   *) ac_try_echo=$ac_try;;
17477 esac
17478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17479   (eval "$ac_try") 2>&5
17480   ac_status=$?
17481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482   (exit $ac_status); }; } &&
17483          { ac_try='test -s conftest$ac_exeext'
17484   { (case "(($ac_try" in
17485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486   *) ac_try_echo=$ac_try;;
17487 esac
17488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17489   (eval "$ac_try") 2>&5
17490   ac_status=$?
17491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492   (exit $ac_status); }; }; then
17493   eval "$as_ac_var=yes"
17494 else
17495   echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17497
17498         eval "$as_ac_var=no"
17499 fi
17500
17501 rm -f core conftest.err conftest.$ac_objext \
17502       conftest$ac_exeext conftest.$ac_ext
17503 fi
17504 ac_res=`eval echo '${'$as_ac_var'}'`
17505                { echo "$as_me:$LINENO: result: $ac_res" >&5
17506 echo "${ECHO_T}$ac_res" >&6; }
17507 if test `eval echo '${'$as_ac_var'}'` = yes; then
17508   cat >>confdefs.h <<_ACEOF
17509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17510 _ACEOF
17511
17512 fi
17513 done
17514
17515
17516
17517
17518
17519
17520 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17521 do
17522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17523 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17525 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17526   echo $ECHO_N "(cached) $ECHO_C" >&6
17527 else
17528   cat >conftest.$ac_ext <<_ACEOF
17529 /* confdefs.h.  */
17530 _ACEOF
17531 cat confdefs.h >>conftest.$ac_ext
17532 cat >>conftest.$ac_ext <<_ACEOF
17533 /* end confdefs.h.  */
17534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17535    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17536 #define $ac_func innocuous_$ac_func
17537
17538 /* System header to define __stub macros and hopefully few prototypes,
17539     which can conflict with char $ac_func (); below.
17540     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17541     <limits.h> exists even on freestanding compilers.  */
17542
17543 #ifdef __STDC__
17544 # include <limits.h>
17545 #else
17546 # include <assert.h>
17547 #endif
17548
17549 #undef $ac_func
17550
17551 /* Override any GCC internal prototype to avoid an error.
17552    Use char because int might match the return type of a GCC
17553    builtin and then its argument prototype would still apply.  */
17554 #ifdef __cplusplus
17555 extern "C"
17556 #endif
17557 char $ac_func ();
17558 /* The GNU C library defines this for functions which it implements
17559     to always fail with ENOSYS.  Some functions are actually named
17560     something starting with __ and the normal name is an alias.  */
17561 #if defined __stub_$ac_func || defined __stub___$ac_func
17562 choke me
17563 #endif
17564
17565 int
17566 main ()
17567 {
17568 return $ac_func ();
17569   ;
17570   return 0;
17571 }
17572 _ACEOF
17573 rm -f conftest.$ac_objext conftest$ac_exeext
17574 if { (ac_try="$ac_link"
17575 case "(($ac_try" in
17576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17577   *) ac_try_echo=$ac_try;;
17578 esac
17579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17580   (eval "$ac_link") 2>conftest.er1
17581   ac_status=$?
17582   grep -v '^ *+' conftest.er1 >conftest.err
17583   rm -f conftest.er1
17584   cat conftest.err >&5
17585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586   (exit $ac_status); } &&
17587          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17588   { (case "(($ac_try" in
17589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590   *) ac_try_echo=$ac_try;;
17591 esac
17592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17593   (eval "$ac_try") 2>&5
17594   ac_status=$?
17595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596   (exit $ac_status); }; } &&
17597          { ac_try='test -s conftest$ac_exeext'
17598   { (case "(($ac_try" in
17599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600   *) ac_try_echo=$ac_try;;
17601 esac
17602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17603   (eval "$ac_try") 2>&5
17604   ac_status=$?
17605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606   (exit $ac_status); }; }; then
17607   eval "$as_ac_var=yes"
17608 else
17609   echo "$as_me: failed program was:" >&5
17610 sed 's/^/| /' conftest.$ac_ext >&5
17611
17612         eval "$as_ac_var=no"
17613 fi
17614
17615 rm -f core conftest.err conftest.$ac_objext \
17616       conftest$ac_exeext conftest.$ac_ext
17617 fi
17618 ac_res=`eval echo '${'$as_ac_var'}'`
17619                { echo "$as_me:$LINENO: result: $ac_res" >&5
17620 echo "${ECHO_T}$ac_res" >&6; }
17621 if test `eval echo '${'$as_ac_var'}'` = yes; then
17622   cat >>confdefs.h <<_ACEOF
17623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17624 _ACEOF
17625
17626 fi
17627 done
17628
17629 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17630 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17631 if test "${llvm_cv_c_printf_a+set}" = set; then
17632   echo $ECHO_N "(cached) $ECHO_C" >&6
17633 else
17634   ac_ext=c
17635 ac_cpp='$CPP $CPPFLAGS'
17636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17639
17640  if test "$cross_compiling" = yes; then
17641   llvmac_cv_c_printf_a=no
17642 else
17643   cat >conftest.$ac_ext <<_ACEOF
17644
17645   /* confdefs.h.  */
17646 _ACEOF
17647 cat confdefs.h >>conftest.$ac_ext
17648 cat >>conftest.$ac_ext <<_ACEOF
17649 /* end confdefs.h.  */
17650
17651 #include <stdio.h>
17652 #include <stdlib.h>
17653
17654 int
17655 main ()
17656 {
17657
17658 volatile double A, B;
17659 char Buffer[100];
17660 A = 1;
17661 A /= 10.0;
17662 sprintf(Buffer, "%a", A);
17663 B = atof(Buffer);
17664 if (A != B)
17665   return (1);
17666 if (A != 0x1.999999999999ap-4)
17667   return (1);
17668 return (0);
17669   ;
17670   return 0;
17671 }
17672 _ACEOF
17673 rm -f conftest$ac_exeext
17674 if { (ac_try="$ac_link"
17675 case "(($ac_try" in
17676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17677   *) ac_try_echo=$ac_try;;
17678 esac
17679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17680   (eval "$ac_link") 2>&5
17681   ac_status=$?
17682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17684   { (case "(($ac_try" in
17685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686   *) ac_try_echo=$ac_try;;
17687 esac
17688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17689   (eval "$ac_try") 2>&5
17690   ac_status=$?
17691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692   (exit $ac_status); }; }; then
17693   llvm_cv_c_printf_a=yes
17694 else
17695   echo "$as_me: program exited with status $ac_status" >&5
17696 echo "$as_me: failed program was:" >&5
17697 sed 's/^/| /' conftest.$ac_ext >&5
17698
17699 ( exit $ac_status )
17700 llvmac_cv_c_printf_a=no
17701 fi
17702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17703 fi
17704
17705
17706  ac_ext=c
17707 ac_cpp='$CPP $CPPFLAGS'
17708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17711
17712 fi
17713 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17714 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17715  if test "$llvm_cv_c_printf_a" = "yes"; then
17716
17717 cat >>confdefs.h <<\_ACEOF
17718 #define HAVE_PRINTF_A 1
17719 _ACEOF
17720
17721  fi
17722
17723
17724 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17725 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17726 if test "${ac_cv_func_rand48+set}" = set; then
17727   echo $ECHO_N "(cached) $ECHO_C" >&6
17728 else
17729   ac_ext=cpp
17730 ac_cpp='$CXXCPP $CPPFLAGS'
17731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17734
17735    cat >conftest.$ac_ext <<_ACEOF
17736 /* confdefs.h.  */
17737 _ACEOF
17738 cat confdefs.h >>conftest.$ac_ext
17739 cat >>conftest.$ac_ext <<_ACEOF
17740 /* end confdefs.h.  */
17741 #include <stdlib.h>
17742 int
17743 main ()
17744 {
17745 srand48(0);lrand48();drand48();
17746   ;
17747   return 0;
17748 }
17749 _ACEOF
17750 rm -f conftest.$ac_objext
17751 if { (ac_try="$ac_compile"
17752 case "(($ac_try" in
17753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17754   *) ac_try_echo=$ac_try;;
17755 esac
17756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17757   (eval "$ac_compile") 2>conftest.er1
17758   ac_status=$?
17759   grep -v '^ *+' conftest.er1 >conftest.err
17760   rm -f conftest.er1
17761   cat conftest.err >&5
17762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763   (exit $ac_status); } &&
17764          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17765   { (case "(($ac_try" in
17766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17767   *) ac_try_echo=$ac_try;;
17768 esac
17769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17770   (eval "$ac_try") 2>&5
17771   ac_status=$?
17772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773   (exit $ac_status); }; } &&
17774          { ac_try='test -s conftest.$ac_objext'
17775   { (case "(($ac_try" in
17776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777   *) ac_try_echo=$ac_try;;
17778 esac
17779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17780   (eval "$ac_try") 2>&5
17781   ac_status=$?
17782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783   (exit $ac_status); }; }; then
17784   ac_cv_func_rand48=yes
17785 else
17786   echo "$as_me: failed program was:" >&5
17787 sed 's/^/| /' conftest.$ac_ext >&5
17788
17789         ac_cv_func_rand48=no
17790 fi
17791
17792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17793   ac_ext=c
17794 ac_cpp='$CPP $CPPFLAGS'
17795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17798
17799 fi
17800 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17801 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17802
17803 if test "$ac_cv_func_rand48" = "yes" ; then
17804
17805 cat >>confdefs.h <<\_ACEOF
17806 #define HAVE_RAND48 1
17807 _ACEOF
17808
17809 fi
17810
17811
17812 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17813 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17814 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17815   echo $ECHO_N "(cached) $ECHO_C" >&6
17816 else
17817   cat >conftest.$ac_ext <<_ACEOF
17818 /* confdefs.h.  */
17819 _ACEOF
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h.  */
17823 $ac_includes_default
17824 int
17825 main ()
17826 {
17827 #ifndef strerror_s
17828   char *p = (char *) strerror_s;
17829   return !p;
17830 #endif
17831
17832   ;
17833   return 0;
17834 }
17835 _ACEOF
17836 rm -f conftest.$ac_objext
17837 if { (ac_try="$ac_compile"
17838 case "(($ac_try" in
17839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840   *) ac_try_echo=$ac_try;;
17841 esac
17842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843   (eval "$ac_compile") 2>conftest.er1
17844   ac_status=$?
17845   grep -v '^ *+' conftest.er1 >conftest.err
17846   rm -f conftest.er1
17847   cat conftest.err >&5
17848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849   (exit $ac_status); } &&
17850          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17851   { (case "(($ac_try" in
17852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17853   *) ac_try_echo=$ac_try;;
17854 esac
17855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17856   (eval "$ac_try") 2>&5
17857   ac_status=$?
17858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859   (exit $ac_status); }; } &&
17860          { ac_try='test -s conftest.$ac_objext'
17861   { (case "(($ac_try" in
17862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17863   *) ac_try_echo=$ac_try;;
17864 esac
17865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17866   (eval "$ac_try") 2>&5
17867   ac_status=$?
17868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869   (exit $ac_status); }; }; then
17870   ac_cv_have_decl_strerror_s=yes
17871 else
17872   echo "$as_me: failed program was:" >&5
17873 sed 's/^/| /' conftest.$ac_ext >&5
17874
17875         ac_cv_have_decl_strerror_s=no
17876 fi
17877
17878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17879 fi
17880 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17881 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17882 if test $ac_cv_have_decl_strerror_s = yes; then
17883
17884 cat >>confdefs.h <<_ACEOF
17885 #define HAVE_DECL_STRERROR_S 1
17886 _ACEOF
17887
17888
17889 else
17890   cat >>confdefs.h <<_ACEOF
17891 #define HAVE_DECL_STRERROR_S 0
17892 _ACEOF
17893
17894
17895 fi
17896
17897
17898
17899 if test "$llvm_cv_os_type" = "MingW" ; then
17900   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17901 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17902 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17903   echo $ECHO_N "(cached) $ECHO_C" >&6
17904 else
17905   ac_check_lib_save_LIBS=$LIBS
17906 LIBS="-lgcc  $LIBS"
17907 cat >conftest.$ac_ext <<_ACEOF
17908 /* confdefs.h.  */
17909 _ACEOF
17910 cat confdefs.h >>conftest.$ac_ext
17911 cat >>conftest.$ac_ext <<_ACEOF
17912 /* end confdefs.h.  */
17913
17914 /* Override any GCC internal prototype to avoid an error.
17915    Use char because int might match the return type of a GCC
17916    builtin and then its argument prototype would still apply.  */
17917 #ifdef __cplusplus
17918 extern "C"
17919 #endif
17920 char _alloca ();
17921 int
17922 main ()
17923 {
17924 return _alloca ();
17925   ;
17926   return 0;
17927 }
17928 _ACEOF
17929 rm -f conftest.$ac_objext conftest$ac_exeext
17930 if { (ac_try="$ac_link"
17931 case "(($ac_try" in
17932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933   *) ac_try_echo=$ac_try;;
17934 esac
17935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17936   (eval "$ac_link") 2>conftest.er1
17937   ac_status=$?
17938   grep -v '^ *+' conftest.er1 >conftest.err
17939   rm -f conftest.er1
17940   cat conftest.err >&5
17941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942   (exit $ac_status); } &&
17943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17944   { (case "(($ac_try" in
17945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17946   *) ac_try_echo=$ac_try;;
17947 esac
17948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17949   (eval "$ac_try") 2>&5
17950   ac_status=$?
17951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952   (exit $ac_status); }; } &&
17953          { ac_try='test -s conftest$ac_exeext'
17954   { (case "(($ac_try" in
17955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17956   *) ac_try_echo=$ac_try;;
17957 esac
17958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17959   (eval "$ac_try") 2>&5
17960   ac_status=$?
17961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962   (exit $ac_status); }; }; then
17963   ac_cv_lib_gcc__alloca=yes
17964 else
17965   echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17967
17968         ac_cv_lib_gcc__alloca=no
17969 fi
17970
17971 rm -f core conftest.err conftest.$ac_objext \
17972       conftest$ac_exeext conftest.$ac_ext
17973 LIBS=$ac_check_lib_save_LIBS
17974 fi
17975 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17976 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17977 if test $ac_cv_lib_gcc__alloca = yes; then
17978
17979 cat >>confdefs.h <<\_ACEOF
17980 #define HAVE__ALLOCA 1
17981 _ACEOF
17982
17983 fi
17984
17985   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17986 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17987 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17988   echo $ECHO_N "(cached) $ECHO_C" >&6
17989 else
17990   ac_check_lib_save_LIBS=$LIBS
17991 LIBS="-lgcc  $LIBS"
17992 cat >conftest.$ac_ext <<_ACEOF
17993 /* confdefs.h.  */
17994 _ACEOF
17995 cat confdefs.h >>conftest.$ac_ext
17996 cat >>conftest.$ac_ext <<_ACEOF
17997 /* end confdefs.h.  */
17998
17999 /* Override any GCC internal prototype to avoid an error.
18000    Use char because int might match the return type of a GCC
18001    builtin and then its argument prototype would still apply.  */
18002 #ifdef __cplusplus
18003 extern "C"
18004 #endif
18005 char __alloca ();
18006 int
18007 main ()
18008 {
18009 return __alloca ();
18010   ;
18011   return 0;
18012 }
18013 _ACEOF
18014 rm -f conftest.$ac_objext conftest$ac_exeext
18015 if { (ac_try="$ac_link"
18016 case "(($ac_try" in
18017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18018   *) ac_try_echo=$ac_try;;
18019 esac
18020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18021   (eval "$ac_link") 2>conftest.er1
18022   ac_status=$?
18023   grep -v '^ *+' conftest.er1 >conftest.err
18024   rm -f conftest.er1
18025   cat conftest.err >&5
18026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027   (exit $ac_status); } &&
18028          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18029   { (case "(($ac_try" in
18030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18031   *) ac_try_echo=$ac_try;;
18032 esac
18033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18034   (eval "$ac_try") 2>&5
18035   ac_status=$?
18036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037   (exit $ac_status); }; } &&
18038          { ac_try='test -s conftest$ac_exeext'
18039   { (case "(($ac_try" in
18040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18041   *) ac_try_echo=$ac_try;;
18042 esac
18043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18044   (eval "$ac_try") 2>&5
18045   ac_status=$?
18046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047   (exit $ac_status); }; }; then
18048   ac_cv_lib_gcc___alloca=yes
18049 else
18050   echo "$as_me: failed program was:" >&5
18051 sed 's/^/| /' conftest.$ac_ext >&5
18052
18053         ac_cv_lib_gcc___alloca=no
18054 fi
18055
18056 rm -f core conftest.err conftest.$ac_objext \
18057       conftest$ac_exeext conftest.$ac_ext
18058 LIBS=$ac_check_lib_save_LIBS
18059 fi
18060 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18061 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18062 if test $ac_cv_lib_gcc___alloca = yes; then
18063
18064 cat >>confdefs.h <<\_ACEOF
18065 #define HAVE___ALLOCA 1
18066 _ACEOF
18067
18068 fi
18069
18070   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18071 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18072 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18073   echo $ECHO_N "(cached) $ECHO_C" >&6
18074 else
18075   ac_check_lib_save_LIBS=$LIBS
18076 LIBS="-lgcc  $LIBS"
18077 cat >conftest.$ac_ext <<_ACEOF
18078 /* confdefs.h.  */
18079 _ACEOF
18080 cat confdefs.h >>conftest.$ac_ext
18081 cat >>conftest.$ac_ext <<_ACEOF
18082 /* end confdefs.h.  */
18083
18084 /* Override any GCC internal prototype to avoid an error.
18085    Use char because int might match the return type of a GCC
18086    builtin and then its argument prototype would still apply.  */
18087 #ifdef __cplusplus
18088 extern "C"
18089 #endif
18090 char __chkstk ();
18091 int
18092 main ()
18093 {
18094 return __chkstk ();
18095   ;
18096   return 0;
18097 }
18098 _ACEOF
18099 rm -f conftest.$ac_objext conftest$ac_exeext
18100 if { (ac_try="$ac_link"
18101 case "(($ac_try" in
18102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103   *) ac_try_echo=$ac_try;;
18104 esac
18105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106   (eval "$ac_link") 2>conftest.er1
18107   ac_status=$?
18108   grep -v '^ *+' conftest.er1 >conftest.err
18109   rm -f conftest.er1
18110   cat conftest.err >&5
18111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112   (exit $ac_status); } &&
18113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18114   { (case "(($ac_try" in
18115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116   *) ac_try_echo=$ac_try;;
18117 esac
18118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18119   (eval "$ac_try") 2>&5
18120   ac_status=$?
18121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122   (exit $ac_status); }; } &&
18123          { ac_try='test -s conftest$ac_exeext'
18124   { (case "(($ac_try" in
18125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126   *) ac_try_echo=$ac_try;;
18127 esac
18128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129   (eval "$ac_try") 2>&5
18130   ac_status=$?
18131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132   (exit $ac_status); }; }; then
18133   ac_cv_lib_gcc___chkstk=yes
18134 else
18135   echo "$as_me: failed program was:" >&5
18136 sed 's/^/| /' conftest.$ac_ext >&5
18137
18138         ac_cv_lib_gcc___chkstk=no
18139 fi
18140
18141 rm -f core conftest.err conftest.$ac_objext \
18142       conftest$ac_exeext conftest.$ac_ext
18143 LIBS=$ac_check_lib_save_LIBS
18144 fi
18145 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18146 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18147 if test $ac_cv_lib_gcc___chkstk = yes; then
18148
18149 cat >>confdefs.h <<\_ACEOF
18150 #define HAVE___CHKSTK 1
18151 _ACEOF
18152
18153 fi
18154
18155   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18156 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18157 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18158   echo $ECHO_N "(cached) $ECHO_C" >&6
18159 else
18160   ac_check_lib_save_LIBS=$LIBS
18161 LIBS="-lgcc  $LIBS"
18162 cat >conftest.$ac_ext <<_ACEOF
18163 /* confdefs.h.  */
18164 _ACEOF
18165 cat confdefs.h >>conftest.$ac_ext
18166 cat >>conftest.$ac_ext <<_ACEOF
18167 /* end confdefs.h.  */
18168
18169 /* Override any GCC internal prototype to avoid an error.
18170    Use char because int might match the return type of a GCC
18171    builtin and then its argument prototype would still apply.  */
18172 #ifdef __cplusplus
18173 extern "C"
18174 #endif
18175 char ___chkstk ();
18176 int
18177 main ()
18178 {
18179 return ___chkstk ();
18180   ;
18181   return 0;
18182 }
18183 _ACEOF
18184 rm -f conftest.$ac_objext conftest$ac_exeext
18185 if { (ac_try="$ac_link"
18186 case "(($ac_try" in
18187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18188   *) ac_try_echo=$ac_try;;
18189 esac
18190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18191   (eval "$ac_link") 2>conftest.er1
18192   ac_status=$?
18193   grep -v '^ *+' conftest.er1 >conftest.err
18194   rm -f conftest.er1
18195   cat conftest.err >&5
18196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197   (exit $ac_status); } &&
18198          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18199   { (case "(($ac_try" in
18200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18201   *) ac_try_echo=$ac_try;;
18202 esac
18203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18204   (eval "$ac_try") 2>&5
18205   ac_status=$?
18206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207   (exit $ac_status); }; } &&
18208          { ac_try='test -s conftest$ac_exeext'
18209   { (case "(($ac_try" in
18210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18211   *) ac_try_echo=$ac_try;;
18212 esac
18213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18214   (eval "$ac_try") 2>&5
18215   ac_status=$?
18216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217   (exit $ac_status); }; }; then
18218   ac_cv_lib_gcc____chkstk=yes
18219 else
18220   echo "$as_me: failed program was:" >&5
18221 sed 's/^/| /' conftest.$ac_ext >&5
18222
18223         ac_cv_lib_gcc____chkstk=no
18224 fi
18225
18226 rm -f core conftest.err conftest.$ac_objext \
18227       conftest$ac_exeext conftest.$ac_ext
18228 LIBS=$ac_check_lib_save_LIBS
18229 fi
18230 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18231 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18232 if test $ac_cv_lib_gcc____chkstk = yes; then
18233
18234 cat >>confdefs.h <<\_ACEOF
18235 #define HAVE____CHKSTK 1
18236 _ACEOF
18237
18238 fi
18239
18240
18241   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18242 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18243 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18244   echo $ECHO_N "(cached) $ECHO_C" >&6
18245 else
18246   ac_check_lib_save_LIBS=$LIBS
18247 LIBS="-lgcc  $LIBS"
18248 cat >conftest.$ac_ext <<_ACEOF
18249 /* confdefs.h.  */
18250 _ACEOF
18251 cat confdefs.h >>conftest.$ac_ext
18252 cat >>conftest.$ac_ext <<_ACEOF
18253 /* end confdefs.h.  */
18254
18255 /* Override any GCC internal prototype to avoid an error.
18256    Use char because int might match the return type of a GCC
18257    builtin and then its argument prototype would still apply.  */
18258 #ifdef __cplusplus
18259 extern "C"
18260 #endif
18261 char __ashldi3 ();
18262 int
18263 main ()
18264 {
18265 return __ashldi3 ();
18266   ;
18267   return 0;
18268 }
18269 _ACEOF
18270 rm -f conftest.$ac_objext conftest$ac_exeext
18271 if { (ac_try="$ac_link"
18272 case "(($ac_try" in
18273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274   *) ac_try_echo=$ac_try;;
18275 esac
18276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277   (eval "$ac_link") 2>conftest.er1
18278   ac_status=$?
18279   grep -v '^ *+' conftest.er1 >conftest.err
18280   rm -f conftest.er1
18281   cat conftest.err >&5
18282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283   (exit $ac_status); } &&
18284          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18285   { (case "(($ac_try" in
18286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287   *) ac_try_echo=$ac_try;;
18288 esac
18289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18290   (eval "$ac_try") 2>&5
18291   ac_status=$?
18292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293   (exit $ac_status); }; } &&
18294          { ac_try='test -s conftest$ac_exeext'
18295   { (case "(($ac_try" in
18296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18297   *) ac_try_echo=$ac_try;;
18298 esac
18299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18300   (eval "$ac_try") 2>&5
18301   ac_status=$?
18302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303   (exit $ac_status); }; }; then
18304   ac_cv_lib_gcc___ashldi3=yes
18305 else
18306   echo "$as_me: failed program was:" >&5
18307 sed 's/^/| /' conftest.$ac_ext >&5
18308
18309         ac_cv_lib_gcc___ashldi3=no
18310 fi
18311
18312 rm -f core conftest.err conftest.$ac_objext \
18313       conftest$ac_exeext conftest.$ac_ext
18314 LIBS=$ac_check_lib_save_LIBS
18315 fi
18316 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18317 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18318 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18319
18320 cat >>confdefs.h <<\_ACEOF
18321 #define HAVE___ASHLDI3 1
18322 _ACEOF
18323
18324 fi
18325
18326   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18327 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18328 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18329   echo $ECHO_N "(cached) $ECHO_C" >&6
18330 else
18331   ac_check_lib_save_LIBS=$LIBS
18332 LIBS="-lgcc  $LIBS"
18333 cat >conftest.$ac_ext <<_ACEOF
18334 /* confdefs.h.  */
18335 _ACEOF
18336 cat confdefs.h >>conftest.$ac_ext
18337 cat >>conftest.$ac_ext <<_ACEOF
18338 /* end confdefs.h.  */
18339
18340 /* Override any GCC internal prototype to avoid an error.
18341    Use char because int might match the return type of a GCC
18342    builtin and then its argument prototype would still apply.  */
18343 #ifdef __cplusplus
18344 extern "C"
18345 #endif
18346 char __ashrdi3 ();
18347 int
18348 main ()
18349 {
18350 return __ashrdi3 ();
18351   ;
18352   return 0;
18353 }
18354 _ACEOF
18355 rm -f conftest.$ac_objext conftest$ac_exeext
18356 if { (ac_try="$ac_link"
18357 case "(($ac_try" in
18358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359   *) ac_try_echo=$ac_try;;
18360 esac
18361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18362   (eval "$ac_link") 2>conftest.er1
18363   ac_status=$?
18364   grep -v '^ *+' conftest.er1 >conftest.err
18365   rm -f conftest.er1
18366   cat conftest.err >&5
18367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368   (exit $ac_status); } &&
18369          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18370   { (case "(($ac_try" in
18371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372   *) ac_try_echo=$ac_try;;
18373 esac
18374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18375   (eval "$ac_try") 2>&5
18376   ac_status=$?
18377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378   (exit $ac_status); }; } &&
18379          { ac_try='test -s conftest$ac_exeext'
18380   { (case "(($ac_try" in
18381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18382   *) ac_try_echo=$ac_try;;
18383 esac
18384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18385   (eval "$ac_try") 2>&5
18386   ac_status=$?
18387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388   (exit $ac_status); }; }; then
18389   ac_cv_lib_gcc___ashrdi3=yes
18390 else
18391   echo "$as_me: failed program was:" >&5
18392 sed 's/^/| /' conftest.$ac_ext >&5
18393
18394         ac_cv_lib_gcc___ashrdi3=no
18395 fi
18396
18397 rm -f core conftest.err conftest.$ac_objext \
18398       conftest$ac_exeext conftest.$ac_ext
18399 LIBS=$ac_check_lib_save_LIBS
18400 fi
18401 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18402 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18403 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18404
18405 cat >>confdefs.h <<\_ACEOF
18406 #define HAVE___ASHRDI3 1
18407 _ACEOF
18408
18409 fi
18410
18411   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18412 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18413 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18414   echo $ECHO_N "(cached) $ECHO_C" >&6
18415 else
18416   ac_check_lib_save_LIBS=$LIBS
18417 LIBS="-lgcc  $LIBS"
18418 cat >conftest.$ac_ext <<_ACEOF
18419 /* confdefs.h.  */
18420 _ACEOF
18421 cat confdefs.h >>conftest.$ac_ext
18422 cat >>conftest.$ac_ext <<_ACEOF
18423 /* end confdefs.h.  */
18424
18425 /* Override any GCC internal prototype to avoid an error.
18426    Use char because int might match the return type of a GCC
18427    builtin and then its argument prototype would still apply.  */
18428 #ifdef __cplusplus
18429 extern "C"
18430 #endif
18431 char __divdi3 ();
18432 int
18433 main ()
18434 {
18435 return __divdi3 ();
18436   ;
18437   return 0;
18438 }
18439 _ACEOF
18440 rm -f conftest.$ac_objext conftest$ac_exeext
18441 if { (ac_try="$ac_link"
18442 case "(($ac_try" in
18443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444   *) ac_try_echo=$ac_try;;
18445 esac
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447   (eval "$ac_link") 2>conftest.er1
18448   ac_status=$?
18449   grep -v '^ *+' conftest.er1 >conftest.err
18450   rm -f conftest.er1
18451   cat conftest.err >&5
18452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453   (exit $ac_status); } &&
18454          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18455   { (case "(($ac_try" in
18456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457   *) ac_try_echo=$ac_try;;
18458 esac
18459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460   (eval "$ac_try") 2>&5
18461   ac_status=$?
18462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463   (exit $ac_status); }; } &&
18464          { ac_try='test -s conftest$ac_exeext'
18465   { (case "(($ac_try" in
18466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467   *) ac_try_echo=$ac_try;;
18468 esac
18469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470   (eval "$ac_try") 2>&5
18471   ac_status=$?
18472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473   (exit $ac_status); }; }; then
18474   ac_cv_lib_gcc___divdi3=yes
18475 else
18476   echo "$as_me: failed program was:" >&5
18477 sed 's/^/| /' conftest.$ac_ext >&5
18478
18479         ac_cv_lib_gcc___divdi3=no
18480 fi
18481
18482 rm -f core conftest.err conftest.$ac_objext \
18483       conftest$ac_exeext conftest.$ac_ext
18484 LIBS=$ac_check_lib_save_LIBS
18485 fi
18486 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18487 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18488 if test $ac_cv_lib_gcc___divdi3 = yes; then
18489
18490 cat >>confdefs.h <<\_ACEOF
18491 #define HAVE___DIVDI3 1
18492 _ACEOF
18493
18494 fi
18495
18496   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18497 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18498 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18499   echo $ECHO_N "(cached) $ECHO_C" >&6
18500 else
18501   ac_check_lib_save_LIBS=$LIBS
18502 LIBS="-lgcc  $LIBS"
18503 cat >conftest.$ac_ext <<_ACEOF
18504 /* confdefs.h.  */
18505 _ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h.  */
18509
18510 /* Override any GCC internal prototype to avoid an error.
18511    Use char because int might match the return type of a GCC
18512    builtin and then its argument prototype would still apply.  */
18513 #ifdef __cplusplus
18514 extern "C"
18515 #endif
18516 char __fixdfdi ();
18517 int
18518 main ()
18519 {
18520 return __fixdfdi ();
18521   ;
18522   return 0;
18523 }
18524 _ACEOF
18525 rm -f conftest.$ac_objext conftest$ac_exeext
18526 if { (ac_try="$ac_link"
18527 case "(($ac_try" in
18528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529   *) ac_try_echo=$ac_try;;
18530 esac
18531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532   (eval "$ac_link") 2>conftest.er1
18533   ac_status=$?
18534   grep -v '^ *+' conftest.er1 >conftest.err
18535   rm -f conftest.er1
18536   cat conftest.err >&5
18537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538   (exit $ac_status); } &&
18539          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18540   { (case "(($ac_try" in
18541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18542   *) ac_try_echo=$ac_try;;
18543 esac
18544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18545   (eval "$ac_try") 2>&5
18546   ac_status=$?
18547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548   (exit $ac_status); }; } &&
18549          { ac_try='test -s conftest$ac_exeext'
18550   { (case "(($ac_try" in
18551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552   *) ac_try_echo=$ac_try;;
18553 esac
18554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555   (eval "$ac_try") 2>&5
18556   ac_status=$?
18557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558   (exit $ac_status); }; }; then
18559   ac_cv_lib_gcc___fixdfdi=yes
18560 else
18561   echo "$as_me: failed program was:" >&5
18562 sed 's/^/| /' conftest.$ac_ext >&5
18563
18564         ac_cv_lib_gcc___fixdfdi=no
18565 fi
18566
18567 rm -f core conftest.err conftest.$ac_objext \
18568       conftest$ac_exeext conftest.$ac_ext
18569 LIBS=$ac_check_lib_save_LIBS
18570 fi
18571 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18572 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18573 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18574
18575 cat >>confdefs.h <<\_ACEOF
18576 #define HAVE___FIXDFDI 1
18577 _ACEOF
18578
18579 fi
18580
18581   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18582 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18583 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18584   echo $ECHO_N "(cached) $ECHO_C" >&6
18585 else
18586   ac_check_lib_save_LIBS=$LIBS
18587 LIBS="-lgcc  $LIBS"
18588 cat >conftest.$ac_ext <<_ACEOF
18589 /* confdefs.h.  */
18590 _ACEOF
18591 cat confdefs.h >>conftest.$ac_ext
18592 cat >>conftest.$ac_ext <<_ACEOF
18593 /* end confdefs.h.  */
18594
18595 /* Override any GCC internal prototype to avoid an error.
18596    Use char because int might match the return type of a GCC
18597    builtin and then its argument prototype would still apply.  */
18598 #ifdef __cplusplus
18599 extern "C"
18600 #endif
18601 char __fixsfdi ();
18602 int
18603 main ()
18604 {
18605 return __fixsfdi ();
18606   ;
18607   return 0;
18608 }
18609 _ACEOF
18610 rm -f conftest.$ac_objext conftest$ac_exeext
18611 if { (ac_try="$ac_link"
18612 case "(($ac_try" in
18613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614   *) ac_try_echo=$ac_try;;
18615 esac
18616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617   (eval "$ac_link") 2>conftest.er1
18618   ac_status=$?
18619   grep -v '^ *+' conftest.er1 >conftest.err
18620   rm -f conftest.er1
18621   cat conftest.err >&5
18622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623   (exit $ac_status); } &&
18624          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18625   { (case "(($ac_try" in
18626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627   *) ac_try_echo=$ac_try;;
18628 esac
18629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630   (eval "$ac_try") 2>&5
18631   ac_status=$?
18632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633   (exit $ac_status); }; } &&
18634          { ac_try='test -s conftest$ac_exeext'
18635   { (case "(($ac_try" in
18636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18637   *) ac_try_echo=$ac_try;;
18638 esac
18639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18640   (eval "$ac_try") 2>&5
18641   ac_status=$?
18642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643   (exit $ac_status); }; }; then
18644   ac_cv_lib_gcc___fixsfdi=yes
18645 else
18646   echo "$as_me: failed program was:" >&5
18647 sed 's/^/| /' conftest.$ac_ext >&5
18648
18649         ac_cv_lib_gcc___fixsfdi=no
18650 fi
18651
18652 rm -f core conftest.err conftest.$ac_objext \
18653       conftest$ac_exeext conftest.$ac_ext
18654 LIBS=$ac_check_lib_save_LIBS
18655 fi
18656 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18657 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18658 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18659
18660 cat >>confdefs.h <<\_ACEOF
18661 #define HAVE___FIXSFDI 1
18662 _ACEOF
18663
18664 fi
18665
18666   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18667 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18668 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18669   echo $ECHO_N "(cached) $ECHO_C" >&6
18670 else
18671   ac_check_lib_save_LIBS=$LIBS
18672 LIBS="-lgcc  $LIBS"
18673 cat >conftest.$ac_ext <<_ACEOF
18674 /* confdefs.h.  */
18675 _ACEOF
18676 cat confdefs.h >>conftest.$ac_ext
18677 cat >>conftest.$ac_ext <<_ACEOF
18678 /* end confdefs.h.  */
18679
18680 /* Override any GCC internal prototype to avoid an error.
18681    Use char because int might match the return type of a GCC
18682    builtin and then its argument prototype would still apply.  */
18683 #ifdef __cplusplus
18684 extern "C"
18685 #endif
18686 char __floatdidf ();
18687 int
18688 main ()
18689 {
18690 return __floatdidf ();
18691   ;
18692   return 0;
18693 }
18694 _ACEOF
18695 rm -f conftest.$ac_objext conftest$ac_exeext
18696 if { (ac_try="$ac_link"
18697 case "(($ac_try" in
18698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699   *) ac_try_echo=$ac_try;;
18700 esac
18701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702   (eval "$ac_link") 2>conftest.er1
18703   ac_status=$?
18704   grep -v '^ *+' conftest.er1 >conftest.err
18705   rm -f conftest.er1
18706   cat conftest.err >&5
18707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708   (exit $ac_status); } &&
18709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18710   { (case "(($ac_try" in
18711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18712   *) ac_try_echo=$ac_try;;
18713 esac
18714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18715   (eval "$ac_try") 2>&5
18716   ac_status=$?
18717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718   (exit $ac_status); }; } &&
18719          { ac_try='test -s conftest$ac_exeext'
18720   { (case "(($ac_try" in
18721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722   *) ac_try_echo=$ac_try;;
18723 esac
18724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725   (eval "$ac_try") 2>&5
18726   ac_status=$?
18727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728   (exit $ac_status); }; }; then
18729   ac_cv_lib_gcc___floatdidf=yes
18730 else
18731   echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18733
18734         ac_cv_lib_gcc___floatdidf=no
18735 fi
18736
18737 rm -f core conftest.err conftest.$ac_objext \
18738       conftest$ac_exeext conftest.$ac_ext
18739 LIBS=$ac_check_lib_save_LIBS
18740 fi
18741 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18742 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18743 if test $ac_cv_lib_gcc___floatdidf = yes; then
18744
18745 cat >>confdefs.h <<\_ACEOF
18746 #define HAVE___FLOATDIDF 1
18747 _ACEOF
18748
18749 fi
18750
18751   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18752 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18753 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18754   echo $ECHO_N "(cached) $ECHO_C" >&6
18755 else
18756   ac_check_lib_save_LIBS=$LIBS
18757 LIBS="-lgcc  $LIBS"
18758 cat >conftest.$ac_ext <<_ACEOF
18759 /* confdefs.h.  */
18760 _ACEOF
18761 cat confdefs.h >>conftest.$ac_ext
18762 cat >>conftest.$ac_ext <<_ACEOF
18763 /* end confdefs.h.  */
18764
18765 /* Override any GCC internal prototype to avoid an error.
18766    Use char because int might match the return type of a GCC
18767    builtin and then its argument prototype would still apply.  */
18768 #ifdef __cplusplus
18769 extern "C"
18770 #endif
18771 char __lshrdi3 ();
18772 int
18773 main ()
18774 {
18775 return __lshrdi3 ();
18776   ;
18777   return 0;
18778 }
18779 _ACEOF
18780 rm -f conftest.$ac_objext conftest$ac_exeext
18781 if { (ac_try="$ac_link"
18782 case "(($ac_try" in
18783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784   *) ac_try_echo=$ac_try;;
18785 esac
18786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18787   (eval "$ac_link") 2>conftest.er1
18788   ac_status=$?
18789   grep -v '^ *+' conftest.er1 >conftest.err
18790   rm -f conftest.er1
18791   cat conftest.err >&5
18792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793   (exit $ac_status); } &&
18794          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18795   { (case "(($ac_try" in
18796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18797   *) ac_try_echo=$ac_try;;
18798 esac
18799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18800   (eval "$ac_try") 2>&5
18801   ac_status=$?
18802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803   (exit $ac_status); }; } &&
18804          { ac_try='test -s conftest$ac_exeext'
18805   { (case "(($ac_try" in
18806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807   *) ac_try_echo=$ac_try;;
18808 esac
18809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18810   (eval "$ac_try") 2>&5
18811   ac_status=$?
18812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813   (exit $ac_status); }; }; then
18814   ac_cv_lib_gcc___lshrdi3=yes
18815 else
18816   echo "$as_me: failed program was:" >&5
18817 sed 's/^/| /' conftest.$ac_ext >&5
18818
18819         ac_cv_lib_gcc___lshrdi3=no
18820 fi
18821
18822 rm -f core conftest.err conftest.$ac_objext \
18823       conftest$ac_exeext conftest.$ac_ext
18824 LIBS=$ac_check_lib_save_LIBS
18825 fi
18826 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18827 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18828 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18829
18830 cat >>confdefs.h <<\_ACEOF
18831 #define HAVE___LSHRDI3 1
18832 _ACEOF
18833
18834 fi
18835
18836   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18837 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18838 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18839   echo $ECHO_N "(cached) $ECHO_C" >&6
18840 else
18841   ac_check_lib_save_LIBS=$LIBS
18842 LIBS="-lgcc  $LIBS"
18843 cat >conftest.$ac_ext <<_ACEOF
18844 /* confdefs.h.  */
18845 _ACEOF
18846 cat confdefs.h >>conftest.$ac_ext
18847 cat >>conftest.$ac_ext <<_ACEOF
18848 /* end confdefs.h.  */
18849
18850 /* Override any GCC internal prototype to avoid an error.
18851    Use char because int might match the return type of a GCC
18852    builtin and then its argument prototype would still apply.  */
18853 #ifdef __cplusplus
18854 extern "C"
18855 #endif
18856 char __moddi3 ();
18857 int
18858 main ()
18859 {
18860 return __moddi3 ();
18861   ;
18862   return 0;
18863 }
18864 _ACEOF
18865 rm -f conftest.$ac_objext conftest$ac_exeext
18866 if { (ac_try="$ac_link"
18867 case "(($ac_try" in
18868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869   *) ac_try_echo=$ac_try;;
18870 esac
18871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18872   (eval "$ac_link") 2>conftest.er1
18873   ac_status=$?
18874   grep -v '^ *+' conftest.er1 >conftest.err
18875   rm -f conftest.er1
18876   cat conftest.err >&5
18877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878   (exit $ac_status); } &&
18879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18880   { (case "(($ac_try" in
18881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18882   *) ac_try_echo=$ac_try;;
18883 esac
18884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18885   (eval "$ac_try") 2>&5
18886   ac_status=$?
18887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888   (exit $ac_status); }; } &&
18889          { ac_try='test -s conftest$ac_exeext'
18890   { (case "(($ac_try" in
18891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892   *) ac_try_echo=$ac_try;;
18893 esac
18894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895   (eval "$ac_try") 2>&5
18896   ac_status=$?
18897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898   (exit $ac_status); }; }; then
18899   ac_cv_lib_gcc___moddi3=yes
18900 else
18901   echo "$as_me: failed program was:" >&5
18902 sed 's/^/| /' conftest.$ac_ext >&5
18903
18904         ac_cv_lib_gcc___moddi3=no
18905 fi
18906
18907 rm -f core conftest.err conftest.$ac_objext \
18908       conftest$ac_exeext conftest.$ac_ext
18909 LIBS=$ac_check_lib_save_LIBS
18910 fi
18911 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18912 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18913 if test $ac_cv_lib_gcc___moddi3 = yes; then
18914
18915 cat >>confdefs.h <<\_ACEOF
18916 #define HAVE___MODDI3 1
18917 _ACEOF
18918
18919 fi
18920
18921   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18922 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18923 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18924   echo $ECHO_N "(cached) $ECHO_C" >&6
18925 else
18926   ac_check_lib_save_LIBS=$LIBS
18927 LIBS="-lgcc  $LIBS"
18928 cat >conftest.$ac_ext <<_ACEOF
18929 /* confdefs.h.  */
18930 _ACEOF
18931 cat confdefs.h >>conftest.$ac_ext
18932 cat >>conftest.$ac_ext <<_ACEOF
18933 /* end confdefs.h.  */
18934
18935 /* Override any GCC internal prototype to avoid an error.
18936    Use char because int might match the return type of a GCC
18937    builtin and then its argument prototype would still apply.  */
18938 #ifdef __cplusplus
18939 extern "C"
18940 #endif
18941 char __udivdi3 ();
18942 int
18943 main ()
18944 {
18945 return __udivdi3 ();
18946   ;
18947   return 0;
18948 }
18949 _ACEOF
18950 rm -f conftest.$ac_objext conftest$ac_exeext
18951 if { (ac_try="$ac_link"
18952 case "(($ac_try" in
18953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954   *) ac_try_echo=$ac_try;;
18955 esac
18956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957   (eval "$ac_link") 2>conftest.er1
18958   ac_status=$?
18959   grep -v '^ *+' conftest.er1 >conftest.err
18960   rm -f conftest.er1
18961   cat conftest.err >&5
18962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963   (exit $ac_status); } &&
18964          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18965   { (case "(($ac_try" in
18966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18967   *) ac_try_echo=$ac_try;;
18968 esac
18969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18970   (eval "$ac_try") 2>&5
18971   ac_status=$?
18972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973   (exit $ac_status); }; } &&
18974          { ac_try='test -s conftest$ac_exeext'
18975   { (case "(($ac_try" in
18976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977   *) ac_try_echo=$ac_try;;
18978 esac
18979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18980   (eval "$ac_try") 2>&5
18981   ac_status=$?
18982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983   (exit $ac_status); }; }; then
18984   ac_cv_lib_gcc___udivdi3=yes
18985 else
18986   echo "$as_me: failed program was:" >&5
18987 sed 's/^/| /' conftest.$ac_ext >&5
18988
18989         ac_cv_lib_gcc___udivdi3=no
18990 fi
18991
18992 rm -f core conftest.err conftest.$ac_objext \
18993       conftest$ac_exeext conftest.$ac_ext
18994 LIBS=$ac_check_lib_save_LIBS
18995 fi
18996 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18997 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18998 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18999
19000 cat >>confdefs.h <<\_ACEOF
19001 #define HAVE___UDIVDI3 1
19002 _ACEOF
19003
19004 fi
19005
19006   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19007 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19008 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19009   echo $ECHO_N "(cached) $ECHO_C" >&6
19010 else
19011   ac_check_lib_save_LIBS=$LIBS
19012 LIBS="-lgcc  $LIBS"
19013 cat >conftest.$ac_ext <<_ACEOF
19014 /* confdefs.h.  */
19015 _ACEOF
19016 cat confdefs.h >>conftest.$ac_ext
19017 cat >>conftest.$ac_ext <<_ACEOF
19018 /* end confdefs.h.  */
19019
19020 /* Override any GCC internal prototype to avoid an error.
19021    Use char because int might match the return type of a GCC
19022    builtin and then its argument prototype would still apply.  */
19023 #ifdef __cplusplus
19024 extern "C"
19025 #endif
19026 char __umoddi3 ();
19027 int
19028 main ()
19029 {
19030 return __umoddi3 ();
19031   ;
19032   return 0;
19033 }
19034 _ACEOF
19035 rm -f conftest.$ac_objext conftest$ac_exeext
19036 if { (ac_try="$ac_link"
19037 case "(($ac_try" in
19038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039   *) ac_try_echo=$ac_try;;
19040 esac
19041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042   (eval "$ac_link") 2>conftest.er1
19043   ac_status=$?
19044   grep -v '^ *+' conftest.er1 >conftest.err
19045   rm -f conftest.er1
19046   cat conftest.err >&5
19047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048   (exit $ac_status); } &&
19049          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19050   { (case "(($ac_try" in
19051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19052   *) ac_try_echo=$ac_try;;
19053 esac
19054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19055   (eval "$ac_try") 2>&5
19056   ac_status=$?
19057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058   (exit $ac_status); }; } &&
19059          { ac_try='test -s conftest$ac_exeext'
19060   { (case "(($ac_try" in
19061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062   *) ac_try_echo=$ac_try;;
19063 esac
19064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065   (eval "$ac_try") 2>&5
19066   ac_status=$?
19067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068   (exit $ac_status); }; }; then
19069   ac_cv_lib_gcc___umoddi3=yes
19070 else
19071   echo "$as_me: failed program was:" >&5
19072 sed 's/^/| /' conftest.$ac_ext >&5
19073
19074         ac_cv_lib_gcc___umoddi3=no
19075 fi
19076
19077 rm -f core conftest.err conftest.$ac_objext \
19078       conftest$ac_exeext conftest.$ac_ext
19079 LIBS=$ac_check_lib_save_LIBS
19080 fi
19081 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19082 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19083 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19084
19085 cat >>confdefs.h <<\_ACEOF
19086 #define HAVE___UMODDI3 1
19087 _ACEOF
19088
19089 fi
19090
19091
19092   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19093 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19094 if test "${ac_cv_lib_gcc___main+set}" = set; then
19095   echo $ECHO_N "(cached) $ECHO_C" >&6
19096 else
19097   ac_check_lib_save_LIBS=$LIBS
19098 LIBS="-lgcc  $LIBS"
19099 cat >conftest.$ac_ext <<_ACEOF
19100 /* confdefs.h.  */
19101 _ACEOF
19102 cat confdefs.h >>conftest.$ac_ext
19103 cat >>conftest.$ac_ext <<_ACEOF
19104 /* end confdefs.h.  */
19105
19106 /* Override any GCC internal prototype to avoid an error.
19107    Use char because int might match the return type of a GCC
19108    builtin and then its argument prototype would still apply.  */
19109 #ifdef __cplusplus
19110 extern "C"
19111 #endif
19112 char __main ();
19113 int
19114 main ()
19115 {
19116 return __main ();
19117   ;
19118   return 0;
19119 }
19120 _ACEOF
19121 rm -f conftest.$ac_objext conftest$ac_exeext
19122 if { (ac_try="$ac_link"
19123 case "(($ac_try" in
19124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125   *) ac_try_echo=$ac_try;;
19126 esac
19127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128   (eval "$ac_link") 2>conftest.er1
19129   ac_status=$?
19130   grep -v '^ *+' conftest.er1 >conftest.err
19131   rm -f conftest.er1
19132   cat conftest.err >&5
19133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134   (exit $ac_status); } &&
19135          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19136   { (case "(($ac_try" in
19137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19138   *) ac_try_echo=$ac_try;;
19139 esac
19140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19141   (eval "$ac_try") 2>&5
19142   ac_status=$?
19143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144   (exit $ac_status); }; } &&
19145          { ac_try='test -s conftest$ac_exeext'
19146   { (case "(($ac_try" in
19147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19148   *) ac_try_echo=$ac_try;;
19149 esac
19150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19151   (eval "$ac_try") 2>&5
19152   ac_status=$?
19153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154   (exit $ac_status); }; }; then
19155   ac_cv_lib_gcc___main=yes
19156 else
19157   echo "$as_me: failed program was:" >&5
19158 sed 's/^/| /' conftest.$ac_ext >&5
19159
19160         ac_cv_lib_gcc___main=no
19161 fi
19162
19163 rm -f core conftest.err conftest.$ac_objext \
19164       conftest$ac_exeext conftest.$ac_ext
19165 LIBS=$ac_check_lib_save_LIBS
19166 fi
19167 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19168 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19169 if test $ac_cv_lib_gcc___main = yes; then
19170
19171 cat >>confdefs.h <<\_ACEOF
19172 #define HAVE___MAIN 1
19173 _ACEOF
19174
19175 fi
19176
19177   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19178 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19179 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19180   echo $ECHO_N "(cached) $ECHO_C" >&6
19181 else
19182   ac_check_lib_save_LIBS=$LIBS
19183 LIBS="-lgcc  $LIBS"
19184 cat >conftest.$ac_ext <<_ACEOF
19185 /* confdefs.h.  */
19186 _ACEOF
19187 cat confdefs.h >>conftest.$ac_ext
19188 cat >>conftest.$ac_ext <<_ACEOF
19189 /* end confdefs.h.  */
19190
19191 /* Override any GCC internal prototype to avoid an error.
19192    Use char because int might match the return type of a GCC
19193    builtin and then its argument prototype would still apply.  */
19194 #ifdef __cplusplus
19195 extern "C"
19196 #endif
19197 char __cmpdi2 ();
19198 int
19199 main ()
19200 {
19201 return __cmpdi2 ();
19202   ;
19203   return 0;
19204 }
19205 _ACEOF
19206 rm -f conftest.$ac_objext conftest$ac_exeext
19207 if { (ac_try="$ac_link"
19208 case "(($ac_try" in
19209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210   *) ac_try_echo=$ac_try;;
19211 esac
19212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213   (eval "$ac_link") 2>conftest.er1
19214   ac_status=$?
19215   grep -v '^ *+' conftest.er1 >conftest.err
19216   rm -f conftest.er1
19217   cat conftest.err >&5
19218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219   (exit $ac_status); } &&
19220          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19221   { (case "(($ac_try" in
19222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19223   *) ac_try_echo=$ac_try;;
19224 esac
19225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19226   (eval "$ac_try") 2>&5
19227   ac_status=$?
19228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229   (exit $ac_status); }; } &&
19230          { ac_try='test -s conftest$ac_exeext'
19231   { (case "(($ac_try" in
19232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19233   *) ac_try_echo=$ac_try;;
19234 esac
19235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19236   (eval "$ac_try") 2>&5
19237   ac_status=$?
19238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239   (exit $ac_status); }; }; then
19240   ac_cv_lib_gcc___cmpdi2=yes
19241 else
19242   echo "$as_me: failed program was:" >&5
19243 sed 's/^/| /' conftest.$ac_ext >&5
19244
19245         ac_cv_lib_gcc___cmpdi2=no
19246 fi
19247
19248 rm -f core conftest.err conftest.$ac_objext \
19249       conftest$ac_exeext conftest.$ac_ext
19250 LIBS=$ac_check_lib_save_LIBS
19251 fi
19252 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19253 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19254 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19255
19256 cat >>confdefs.h <<\_ACEOF
19257 #define HAVE___CMPDI2 1
19258 _ACEOF
19259
19260 fi
19261
19262 fi
19263
19264 if test "$llvm_cv_os_type" = "MingW" ; then
19265   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19266 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19267   cat >conftest.$ac_ext <<_ACEOF
19268 #include <windows.h>
19269 #include <imagehlp.h>
19270 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19271 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19272 _ACEOF
19273 rm -f conftest.$ac_objext
19274 if { (ac_try="$ac_compile"
19275 case "(($ac_try" in
19276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277   *) ac_try_echo=$ac_try;;
19278 esac
19279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19280   (eval "$ac_compile") 2>conftest.er1
19281   ac_status=$?
19282   grep -v '^ *+' conftest.er1 >conftest.err
19283   rm -f conftest.er1
19284   cat conftest.err >&5
19285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286   (exit $ac_status); } &&
19287          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19288   { (case "(($ac_try" in
19289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290   *) ac_try_echo=$ac_try;;
19291 esac
19292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19293   (eval "$ac_try") 2>&5
19294   ac_status=$?
19295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296   (exit $ac_status); }; } &&
19297          { ac_try='test -s conftest.$ac_objext'
19298   { (case "(($ac_try" in
19299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19300   *) ac_try_echo=$ac_try;;
19301 esac
19302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19303   (eval "$ac_try") 2>&5
19304   ac_status=$?
19305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306   (exit $ac_status); }; }; then
19307
19308   { echo "$as_me:$LINENO: result: yes" >&5
19309 echo "${ECHO_T}yes" >&6; }
19310   llvm_cv_win32_elmcb_pcstr="PCSTR"
19311
19312 else
19313   echo "$as_me: failed program was:" >&5
19314 sed 's/^/| /' conftest.$ac_ext >&5
19315
19316
19317   { echo "$as_me:$LINENO: result: no" >&5
19318 echo "${ECHO_T}no" >&6; }
19319   llvm_cv_win32_elmcb_pcstr="PSTR"
19320
19321 fi
19322
19323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19324
19325 cat >>confdefs.h <<_ACEOF
19326 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19327 _ACEOF
19328
19329 fi
19330
19331
19332 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19333 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19334 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19335   echo $ECHO_N "(cached) $ECHO_C" >&6
19336 else
19337   ac_ext=cpp
19338 ac_cpp='$CXXCPP $CPPFLAGS'
19339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19342
19343    cat >conftest.$ac_ext <<_ACEOF
19344 /* confdefs.h.  */
19345 _ACEOF
19346 cat confdefs.h >>conftest.$ac_ext
19347 cat >>conftest.$ac_ext <<_ACEOF
19348 /* end confdefs.h.  */
19349 #include <math.h>
19350 int
19351 main ()
19352 {
19353 float f; isnan(f);
19354   ;
19355   return 0;
19356 }
19357 _ACEOF
19358 rm -f conftest.$ac_objext
19359 if { (ac_try="$ac_compile"
19360 case "(($ac_try" in
19361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362   *) ac_try_echo=$ac_try;;
19363 esac
19364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365   (eval "$ac_compile") 2>conftest.er1
19366   ac_status=$?
19367   grep -v '^ *+' conftest.er1 >conftest.err
19368   rm -f conftest.er1
19369   cat conftest.err >&5
19370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371   (exit $ac_status); } &&
19372          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19373   { (case "(($ac_try" in
19374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375   *) ac_try_echo=$ac_try;;
19376 esac
19377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19378   (eval "$ac_try") 2>&5
19379   ac_status=$?
19380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381   (exit $ac_status); }; } &&
19382          { ac_try='test -s conftest.$ac_objext'
19383   { (case "(($ac_try" in
19384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19385   *) ac_try_echo=$ac_try;;
19386 esac
19387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19388   (eval "$ac_try") 2>&5
19389   ac_status=$?
19390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391   (exit $ac_status); }; }; then
19392   ac_cv_func_isnan_in_math_h=yes
19393 else
19394   echo "$as_me: failed program was:" >&5
19395 sed 's/^/| /' conftest.$ac_ext >&5
19396
19397         ac_cv_func_isnan_in_math_h=no
19398 fi
19399
19400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19401   ac_ext=c
19402 ac_cpp='$CPP $CPPFLAGS'
19403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19406
19407 fi
19408 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19409 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19410
19411
19412 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19413
19414 cat >>confdefs.h <<\_ACEOF
19415 #define HAVE_ISNAN_IN_MATH_H 1
19416 _ACEOF
19417
19418 fi
19419
19420 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19421 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19422 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19423   echo $ECHO_N "(cached) $ECHO_C" >&6
19424 else
19425   ac_ext=cpp
19426 ac_cpp='$CXXCPP $CPPFLAGS'
19427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19430
19431    cat >conftest.$ac_ext <<_ACEOF
19432 /* confdefs.h.  */
19433 _ACEOF
19434 cat confdefs.h >>conftest.$ac_ext
19435 cat >>conftest.$ac_ext <<_ACEOF
19436 /* end confdefs.h.  */
19437 #include <cmath>
19438 int
19439 main ()
19440 {
19441 float f; isnan(f);
19442   ;
19443   return 0;
19444 }
19445 _ACEOF
19446 rm -f conftest.$ac_objext
19447 if { (ac_try="$ac_compile"
19448 case "(($ac_try" in
19449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19450   *) ac_try_echo=$ac_try;;
19451 esac
19452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19453   (eval "$ac_compile") 2>conftest.er1
19454   ac_status=$?
19455   grep -v '^ *+' conftest.er1 >conftest.err
19456   rm -f conftest.er1
19457   cat conftest.err >&5
19458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459   (exit $ac_status); } &&
19460          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19461   { (case "(($ac_try" in
19462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19463   *) ac_try_echo=$ac_try;;
19464 esac
19465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19466   (eval "$ac_try") 2>&5
19467   ac_status=$?
19468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469   (exit $ac_status); }; } &&
19470          { ac_try='test -s conftest.$ac_objext'
19471   { (case "(($ac_try" in
19472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19473   *) ac_try_echo=$ac_try;;
19474 esac
19475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19476   (eval "$ac_try") 2>&5
19477   ac_status=$?
19478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479   (exit $ac_status); }; }; then
19480   ac_cv_func_isnan_in_cmath=yes
19481 else
19482   echo "$as_me: failed program was:" >&5
19483 sed 's/^/| /' conftest.$ac_ext >&5
19484
19485         ac_cv_func_isnan_in_cmath=no
19486 fi
19487
19488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19489   ac_ext=c
19490 ac_cpp='$CPP $CPPFLAGS'
19491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19494
19495 fi
19496 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19497 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19498
19499 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19500
19501 cat >>confdefs.h <<\_ACEOF
19502 #define HAVE_ISNAN_IN_CMATH 1
19503 _ACEOF
19504
19505 fi
19506
19507 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19508 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19509 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19510   echo $ECHO_N "(cached) $ECHO_C" >&6
19511 else
19512   ac_ext=cpp
19513 ac_cpp='$CXXCPP $CPPFLAGS'
19514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19517
19518    cat >conftest.$ac_ext <<_ACEOF
19519 /* confdefs.h.  */
19520 _ACEOF
19521 cat confdefs.h >>conftest.$ac_ext
19522 cat >>conftest.$ac_ext <<_ACEOF
19523 /* end confdefs.h.  */
19524 #include <cmath>
19525 int
19526 main ()
19527 {
19528 float f; std::isnan(f);
19529   ;
19530   return 0;
19531 }
19532 _ACEOF
19533 rm -f conftest.$ac_objext
19534 if { (ac_try="$ac_compile"
19535 case "(($ac_try" in
19536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537   *) ac_try_echo=$ac_try;;
19538 esac
19539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540   (eval "$ac_compile") 2>conftest.er1
19541   ac_status=$?
19542   grep -v '^ *+' conftest.er1 >conftest.err
19543   rm -f conftest.er1
19544   cat conftest.err >&5
19545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546   (exit $ac_status); } &&
19547          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19548   { (case "(($ac_try" in
19549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550   *) ac_try_echo=$ac_try;;
19551 esac
19552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19553   (eval "$ac_try") 2>&5
19554   ac_status=$?
19555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556   (exit $ac_status); }; } &&
19557          { ac_try='test -s conftest.$ac_objext'
19558   { (case "(($ac_try" in
19559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19560   *) ac_try_echo=$ac_try;;
19561 esac
19562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19563   (eval "$ac_try") 2>&5
19564   ac_status=$?
19565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566   (exit $ac_status); }; }; then
19567   ac_cv_func_std_isnan_in_cmath=yes
19568 else
19569   echo "$as_me: failed program was:" >&5
19570 sed 's/^/| /' conftest.$ac_ext >&5
19571
19572         ac_cv_func_std_isnan_in_cmath=no
19573 fi
19574
19575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19576   ac_ext=c
19577 ac_cpp='$CPP $CPPFLAGS'
19578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19581
19582 fi
19583 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19584 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19585
19586 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19587
19588 cat >>confdefs.h <<\_ACEOF
19589 #define HAVE_STD_ISNAN_IN_CMATH 1
19590 _ACEOF
19591
19592 fi
19593
19594
19595 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19596 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19597 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19598   echo $ECHO_N "(cached) $ECHO_C" >&6
19599 else
19600   ac_ext=cpp
19601 ac_cpp='$CXXCPP $CPPFLAGS'
19602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19605
19606    cat >conftest.$ac_ext <<_ACEOF
19607 /* confdefs.h.  */
19608 _ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h.  */
19612 #include <math.h>
19613 int
19614 main ()
19615 {
19616 float f; isinf(f);
19617   ;
19618   return 0;
19619 }
19620 _ACEOF
19621 rm -f conftest.$ac_objext
19622 if { (ac_try="$ac_compile"
19623 case "(($ac_try" in
19624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625   *) ac_try_echo=$ac_try;;
19626 esac
19627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19628   (eval "$ac_compile") 2>conftest.er1
19629   ac_status=$?
19630   grep -v '^ *+' conftest.er1 >conftest.err
19631   rm -f conftest.er1
19632   cat conftest.err >&5
19633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634   (exit $ac_status); } &&
19635          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19636   { (case "(($ac_try" in
19637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19638   *) ac_try_echo=$ac_try;;
19639 esac
19640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19641   (eval "$ac_try") 2>&5
19642   ac_status=$?
19643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644   (exit $ac_status); }; } &&
19645          { ac_try='test -s conftest.$ac_objext'
19646   { (case "(($ac_try" in
19647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19648   *) ac_try_echo=$ac_try;;
19649 esac
19650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19651   (eval "$ac_try") 2>&5
19652   ac_status=$?
19653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654   (exit $ac_status); }; }; then
19655   ac_cv_func_isinf_in_math_h=yes
19656 else
19657   echo "$as_me: failed program was:" >&5
19658 sed 's/^/| /' conftest.$ac_ext >&5
19659
19660         ac_cv_func_isinf_in_math_h=no
19661 fi
19662
19663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19664   ac_ext=c
19665 ac_cpp='$CPP $CPPFLAGS'
19666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19669
19670 fi
19671 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19672 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19673
19674 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19675
19676 cat >>confdefs.h <<\_ACEOF
19677 #define HAVE_ISINF_IN_MATH_H 1
19678 _ACEOF
19679
19680 fi
19681
19682 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19683 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19684 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19685   echo $ECHO_N "(cached) $ECHO_C" >&6
19686 else
19687   ac_ext=cpp
19688 ac_cpp='$CXXCPP $CPPFLAGS'
19689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19692
19693    cat >conftest.$ac_ext <<_ACEOF
19694 /* confdefs.h.  */
19695 _ACEOF
19696 cat confdefs.h >>conftest.$ac_ext
19697 cat >>conftest.$ac_ext <<_ACEOF
19698 /* end confdefs.h.  */
19699 #include <cmath>
19700 int
19701 main ()
19702 {
19703 float f; isinf(f);
19704   ;
19705   return 0;
19706 }
19707 _ACEOF
19708 rm -f conftest.$ac_objext
19709 if { (ac_try="$ac_compile"
19710 case "(($ac_try" in
19711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712   *) ac_try_echo=$ac_try;;
19713 esac
19714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715   (eval "$ac_compile") 2>conftest.er1
19716   ac_status=$?
19717   grep -v '^ *+' conftest.er1 >conftest.err
19718   rm -f conftest.er1
19719   cat conftest.err >&5
19720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721   (exit $ac_status); } &&
19722          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19723   { (case "(($ac_try" in
19724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725   *) ac_try_echo=$ac_try;;
19726 esac
19727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19728   (eval "$ac_try") 2>&5
19729   ac_status=$?
19730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731   (exit $ac_status); }; } &&
19732          { ac_try='test -s conftest.$ac_objext'
19733   { (case "(($ac_try" in
19734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735   *) ac_try_echo=$ac_try;;
19736 esac
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738   (eval "$ac_try") 2>&5
19739   ac_status=$?
19740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741   (exit $ac_status); }; }; then
19742   ac_cv_func_isinf_in_cmath=yes
19743 else
19744   echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19746
19747         ac_cv_func_isinf_in_cmath=no
19748 fi
19749
19750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19751   ac_ext=c
19752 ac_cpp='$CPP $CPPFLAGS'
19753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19756
19757 fi
19758 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19759 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19760
19761 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19762
19763 cat >>confdefs.h <<\_ACEOF
19764 #define HAVE_ISINF_IN_CMATH 1
19765 _ACEOF
19766
19767 fi
19768
19769 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19770 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19771 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19772   echo $ECHO_N "(cached) $ECHO_C" >&6
19773 else
19774   ac_ext=cpp
19775 ac_cpp='$CXXCPP $CPPFLAGS'
19776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19779
19780    cat >conftest.$ac_ext <<_ACEOF
19781 /* confdefs.h.  */
19782 _ACEOF
19783 cat confdefs.h >>conftest.$ac_ext
19784 cat >>conftest.$ac_ext <<_ACEOF
19785 /* end confdefs.h.  */
19786 #include <cmath>
19787 int
19788 main ()
19789 {
19790 float f; std::isinf(f)}
19791   ;
19792   return 0;
19793 }
19794 _ACEOF
19795 rm -f conftest.$ac_objext
19796 if { (ac_try="$ac_compile"
19797 case "(($ac_try" in
19798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799   *) ac_try_echo=$ac_try;;
19800 esac
19801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802   (eval "$ac_compile") 2>conftest.er1
19803   ac_status=$?
19804   grep -v '^ *+' conftest.er1 >conftest.err
19805   rm -f conftest.er1
19806   cat conftest.err >&5
19807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808   (exit $ac_status); } &&
19809          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19810   { (case "(($ac_try" in
19811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812   *) ac_try_echo=$ac_try;;
19813 esac
19814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815   (eval "$ac_try") 2>&5
19816   ac_status=$?
19817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818   (exit $ac_status); }; } &&
19819          { ac_try='test -s conftest.$ac_objext'
19820   { (case "(($ac_try" in
19821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822   *) ac_try_echo=$ac_try;;
19823 esac
19824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825   (eval "$ac_try") 2>&5
19826   ac_status=$?
19827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828   (exit $ac_status); }; }; then
19829   ac_cv_func_std_isinf_in_cmath=yes
19830 else
19831   echo "$as_me: failed program was:" >&5
19832 sed 's/^/| /' conftest.$ac_ext >&5
19833
19834         ac_cv_func_std_isinf_in_cmath=no
19835 fi
19836
19837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19838   ac_ext=c
19839 ac_cpp='$CPP $CPPFLAGS'
19840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19843
19844 fi
19845 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19846 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19847
19848 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19849
19850 cat >>confdefs.h <<\_ACEOF
19851 #define HAVE_STD_ISINF_IN_CMATH 1
19852 _ACEOF
19853
19854 fi
19855
19856 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19857 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19858 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19859   echo $ECHO_N "(cached) $ECHO_C" >&6
19860 else
19861   ac_ext=cpp
19862 ac_cpp='$CXXCPP $CPPFLAGS'
19863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19866
19867    cat >conftest.$ac_ext <<_ACEOF
19868 /* confdefs.h.  */
19869 _ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h.  */
19873 #include <ieeefp.h>
19874 int
19875 main ()
19876 {
19877 float f; finite(f);
19878   ;
19879   return 0;
19880 }
19881 _ACEOF
19882 rm -f conftest.$ac_objext
19883 if { (ac_try="$ac_compile"
19884 case "(($ac_try" in
19885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886   *) ac_try_echo=$ac_try;;
19887 esac
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889   (eval "$ac_compile") 2>conftest.er1
19890   ac_status=$?
19891   grep -v '^ *+' conftest.er1 >conftest.err
19892   rm -f conftest.er1
19893   cat conftest.err >&5
19894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895   (exit $ac_status); } &&
19896          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19897   { (case "(($ac_try" in
19898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19899   *) ac_try_echo=$ac_try;;
19900 esac
19901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19902   (eval "$ac_try") 2>&5
19903   ac_status=$?
19904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905   (exit $ac_status); }; } &&
19906          { ac_try='test -s conftest.$ac_objext'
19907   { (case "(($ac_try" in
19908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19909   *) ac_try_echo=$ac_try;;
19910 esac
19911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19912   (eval "$ac_try") 2>&5
19913   ac_status=$?
19914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915   (exit $ac_status); }; }; then
19916   ac_cv_func_finite_in_ieeefp_h=yes
19917 else
19918   echo "$as_me: failed program was:" >&5
19919 sed 's/^/| /' conftest.$ac_ext >&5
19920
19921         ac_cv_func_finite_in_ieeefp_h=no
19922 fi
19923
19924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19925   ac_ext=c
19926 ac_cpp='$CPP $CPPFLAGS'
19927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19930
19931 fi
19932 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19933 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19934
19935 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19936
19937 cat >>confdefs.h <<\_ACEOF
19938 #define HAVE_FINITE_IN_IEEEFP_H 1
19939 _ACEOF
19940
19941 fi
19942
19943
19944
19945 if test "$llvm_cv_platform_type" = "Unix" ; then
19946
19947
19948 for ac_header in stdlib.h unistd.h
19949 do
19950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19952   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19955   echo $ECHO_N "(cached) $ECHO_C" >&6
19956 fi
19957 ac_res=`eval echo '${'$as_ac_Header'}'`
19958                { echo "$as_me:$LINENO: result: $ac_res" >&5
19959 echo "${ECHO_T}$ac_res" >&6; }
19960 else
19961   # Is the header compilable?
19962 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19963 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19964 cat >conftest.$ac_ext <<_ACEOF
19965 /* confdefs.h.  */
19966 _ACEOF
19967 cat confdefs.h >>conftest.$ac_ext
19968 cat >>conftest.$ac_ext <<_ACEOF
19969 /* end confdefs.h.  */
19970 $ac_includes_default
19971 #include <$ac_header>
19972 _ACEOF
19973 rm -f conftest.$ac_objext
19974 if { (ac_try="$ac_compile"
19975 case "(($ac_try" in
19976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19977   *) ac_try_echo=$ac_try;;
19978 esac
19979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19980   (eval "$ac_compile") 2>conftest.er1
19981   ac_status=$?
19982   grep -v '^ *+' conftest.er1 >conftest.err
19983   rm -f conftest.er1
19984   cat conftest.err >&5
19985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986   (exit $ac_status); } &&
19987          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19988   { (case "(($ac_try" in
19989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990   *) ac_try_echo=$ac_try;;
19991 esac
19992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19993   (eval "$ac_try") 2>&5
19994   ac_status=$?
19995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996   (exit $ac_status); }; } &&
19997          { ac_try='test -s conftest.$ac_objext'
19998   { (case "(($ac_try" in
19999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20000   *) ac_try_echo=$ac_try;;
20001 esac
20002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20003   (eval "$ac_try") 2>&5
20004   ac_status=$?
20005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006   (exit $ac_status); }; }; then
20007   ac_header_compiler=yes
20008 else
20009   echo "$as_me: failed program was:" >&5
20010 sed 's/^/| /' conftest.$ac_ext >&5
20011
20012         ac_header_compiler=no
20013 fi
20014
20015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20016 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20017 echo "${ECHO_T}$ac_header_compiler" >&6; }
20018
20019 # Is the header present?
20020 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20022 cat >conftest.$ac_ext <<_ACEOF
20023 /* confdefs.h.  */
20024 _ACEOF
20025 cat confdefs.h >>conftest.$ac_ext
20026 cat >>conftest.$ac_ext <<_ACEOF
20027 /* end confdefs.h.  */
20028 #include <$ac_header>
20029 _ACEOF
20030 if { (ac_try="$ac_cpp conftest.$ac_ext"
20031 case "(($ac_try" in
20032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20033   *) ac_try_echo=$ac_try;;
20034 esac
20035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20036   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20037   ac_status=$?
20038   grep -v '^ *+' conftest.er1 >conftest.err
20039   rm -f conftest.er1
20040   cat conftest.err >&5
20041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042   (exit $ac_status); } >/dev/null; then
20043   if test -s conftest.err; then
20044     ac_cpp_err=$ac_c_preproc_warn_flag
20045     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20046   else
20047     ac_cpp_err=
20048   fi
20049 else
20050   ac_cpp_err=yes
20051 fi
20052 if test -z "$ac_cpp_err"; then
20053   ac_header_preproc=yes
20054 else
20055   echo "$as_me: failed program was:" >&5
20056 sed 's/^/| /' conftest.$ac_ext >&5
20057
20058   ac_header_preproc=no
20059 fi
20060
20061 rm -f conftest.err conftest.$ac_ext
20062 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20063 echo "${ECHO_T}$ac_header_preproc" >&6; }
20064
20065 # So?  What about this header?
20066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20067   yes:no: )
20068     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20070     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20072     ac_header_preproc=yes
20073     ;;
20074   no:yes:* )
20075     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20077     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20078 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20079     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20081     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20082 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20083     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20085     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20087     ( cat <<\_ASBOX
20088 ## ------------------------------------ ##
20089 ## Report this to http://llvm.org/bugs/ ##
20090 ## ------------------------------------ ##
20091 _ASBOX
20092      ) | sed "s/^/$as_me: WARNING:     /" >&2
20093     ;;
20094 esac
20095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20098   echo $ECHO_N "(cached) $ECHO_C" >&6
20099 else
20100   eval "$as_ac_Header=\$ac_header_preproc"
20101 fi
20102 ac_res=`eval echo '${'$as_ac_Header'}'`
20103                { echo "$as_me:$LINENO: result: $ac_res" >&5
20104 echo "${ECHO_T}$ac_res" >&6; }
20105
20106 fi
20107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20108   cat >>confdefs.h <<_ACEOF
20109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20110 _ACEOF
20111
20112 fi
20113
20114 done
20115
20116
20117 for ac_func in getpagesize
20118 do
20119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20120 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20123   echo $ECHO_N "(cached) $ECHO_C" >&6
20124 else
20125   cat >conftest.$ac_ext <<_ACEOF
20126 /* confdefs.h.  */
20127 _ACEOF
20128 cat confdefs.h >>conftest.$ac_ext
20129 cat >>conftest.$ac_ext <<_ACEOF
20130 /* end confdefs.h.  */
20131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20132    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20133 #define $ac_func innocuous_$ac_func
20134
20135 /* System header to define __stub macros and hopefully few prototypes,
20136     which can conflict with char $ac_func (); below.
20137     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20138     <limits.h> exists even on freestanding compilers.  */
20139
20140 #ifdef __STDC__
20141 # include <limits.h>
20142 #else
20143 # include <assert.h>
20144 #endif
20145
20146 #undef $ac_func
20147
20148 /* Override any GCC internal prototype to avoid an error.
20149    Use char because int might match the return type of a GCC
20150    builtin and then its argument prototype would still apply.  */
20151 #ifdef __cplusplus
20152 extern "C"
20153 #endif
20154 char $ac_func ();
20155 /* The GNU C library defines this for functions which it implements
20156     to always fail with ENOSYS.  Some functions are actually named
20157     something starting with __ and the normal name is an alias.  */
20158 #if defined __stub_$ac_func || defined __stub___$ac_func
20159 choke me
20160 #endif
20161
20162 int
20163 main ()
20164 {
20165 return $ac_func ();
20166   ;
20167   return 0;
20168 }
20169 _ACEOF
20170 rm -f conftest.$ac_objext conftest$ac_exeext
20171 if { (ac_try="$ac_link"
20172 case "(($ac_try" in
20173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20174   *) ac_try_echo=$ac_try;;
20175 esac
20176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20177   (eval "$ac_link") 2>conftest.er1
20178   ac_status=$?
20179   grep -v '^ *+' conftest.er1 >conftest.err
20180   rm -f conftest.er1
20181   cat conftest.err >&5
20182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183   (exit $ac_status); } &&
20184          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20185   { (case "(($ac_try" in
20186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20187   *) ac_try_echo=$ac_try;;
20188 esac
20189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20190   (eval "$ac_try") 2>&5
20191   ac_status=$?
20192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193   (exit $ac_status); }; } &&
20194          { ac_try='test -s conftest$ac_exeext'
20195   { (case "(($ac_try" in
20196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197   *) ac_try_echo=$ac_try;;
20198 esac
20199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20200   (eval "$ac_try") 2>&5
20201   ac_status=$?
20202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203   (exit $ac_status); }; }; then
20204   eval "$as_ac_var=yes"
20205 else
20206   echo "$as_me: failed program was:" >&5
20207 sed 's/^/| /' conftest.$ac_ext >&5
20208
20209         eval "$as_ac_var=no"
20210 fi
20211
20212 rm -f core conftest.err conftest.$ac_objext \
20213       conftest$ac_exeext conftest.$ac_ext
20214 fi
20215 ac_res=`eval echo '${'$as_ac_var'}'`
20216                { echo "$as_me:$LINENO: result: $ac_res" >&5
20217 echo "${ECHO_T}$ac_res" >&6; }
20218 if test `eval echo '${'$as_ac_var'}'` = yes; then
20219   cat >>confdefs.h <<_ACEOF
20220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20221 _ACEOF
20222
20223 fi
20224 done
20225
20226 { echo "$as_me:$LINENO: checking for working mmap" >&5
20227 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20228 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20229   echo $ECHO_N "(cached) $ECHO_C" >&6
20230 else
20231   if test "$cross_compiling" = yes; then
20232   ac_cv_func_mmap_fixed_mapped=no
20233 else
20234   cat >conftest.$ac_ext <<_ACEOF
20235 /* confdefs.h.  */
20236 _ACEOF
20237 cat confdefs.h >>conftest.$ac_ext
20238 cat >>conftest.$ac_ext <<_ACEOF
20239 /* end confdefs.h.  */
20240 $ac_includes_default
20241 /* malloc might have been renamed as rpl_malloc. */
20242 #undef malloc
20243
20244 /* Thanks to Mike Haertel and Jim Avera for this test.
20245    Here is a matrix of mmap possibilities:
20246         mmap private not fixed
20247         mmap private fixed at somewhere currently unmapped
20248         mmap private fixed at somewhere already mapped
20249         mmap shared not fixed
20250         mmap shared fixed at somewhere currently unmapped
20251         mmap shared fixed at somewhere already mapped
20252    For private mappings, we should verify that changes cannot be read()
20253    back from the file, nor mmap's back from the file at a different
20254    address.  (There have been systems where private was not correctly
20255    implemented like the infamous i386 svr4.0, and systems where the
20256    VM page cache was not coherent with the file system buffer cache
20257    like early versions of FreeBSD and possibly contemporary NetBSD.)
20258    For shared mappings, we should conversely verify that changes get
20259    propagated back to all the places they're supposed to be.
20260
20261    Grep wants private fixed already mapped.
20262    The main things grep needs to know about mmap are:
20263    * does it exist and is it safe to write into the mmap'd area
20264    * how to use it (BSD variants)  */
20265
20266 #include <fcntl.h>
20267 #include <sys/mman.h>
20268
20269 #if !STDC_HEADERS && !HAVE_STDLIB_H
20270 char *malloc ();
20271 #endif
20272
20273 /* This mess was copied from the GNU getpagesize.h.  */
20274 #if !HAVE_GETPAGESIZE
20275 /* Assume that all systems that can run configure have sys/param.h.  */
20276 # if !HAVE_SYS_PARAM_H
20277 #  define HAVE_SYS_PARAM_H 1
20278 # endif
20279
20280 # ifdef _SC_PAGESIZE
20281 #  define getpagesize() sysconf(_SC_PAGESIZE)
20282 # else /* no _SC_PAGESIZE */
20283 #  if HAVE_SYS_PARAM_H
20284 #   include <sys/param.h>
20285 #   ifdef EXEC_PAGESIZE
20286 #    define getpagesize() EXEC_PAGESIZE
20287 #   else /* no EXEC_PAGESIZE */
20288 #    ifdef NBPG
20289 #     define getpagesize() NBPG * CLSIZE
20290 #     ifndef CLSIZE
20291 #      define CLSIZE 1
20292 #     endif /* no CLSIZE */
20293 #    else /* no NBPG */
20294 #     ifdef NBPC
20295 #      define getpagesize() NBPC
20296 #     else /* no NBPC */
20297 #      ifdef PAGESIZE
20298 #       define getpagesize() PAGESIZE
20299 #      endif /* PAGESIZE */
20300 #     endif /* no NBPC */
20301 #    endif /* no NBPG */
20302 #   endif /* no EXEC_PAGESIZE */
20303 #  else /* no HAVE_SYS_PARAM_H */
20304 #   define getpagesize() 8192   /* punt totally */
20305 #  endif /* no HAVE_SYS_PARAM_H */
20306 # endif /* no _SC_PAGESIZE */
20307
20308 #endif /* no HAVE_GETPAGESIZE */
20309
20310 int
20311 main ()
20312 {
20313   char *data, *data2, *data3;
20314   int i, pagesize;
20315   int fd;
20316
20317   pagesize = getpagesize ();
20318
20319   /* First, make a file with some known garbage in it. */
20320   data = (char *) malloc (pagesize);
20321   if (!data)
20322     return 1;
20323   for (i = 0; i < pagesize; ++i)
20324     *(data + i) = rand ();
20325   umask (0);
20326   fd = creat ("conftest.mmap", 0600);
20327   if (fd < 0)
20328     return 1;
20329   if (write (fd, data, pagesize) != pagesize)
20330     return 1;
20331   close (fd);
20332
20333   /* Next, try to mmap the file at a fixed address which already has
20334      something else allocated at it.  If we can, also make sure that
20335      we see the same garbage.  */
20336   fd = open ("conftest.mmap", O_RDWR);
20337   if (fd < 0)
20338     return 1;
20339   data2 = (char *) malloc (2 * pagesize);
20340   if (!data2)
20341     return 1;
20342   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20343   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20344                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20345     return 1;
20346   for (i = 0; i < pagesize; ++i)
20347     if (*(data + i) != *(data2 + i))
20348       return 1;
20349
20350   /* Finally, make sure that changes to the mapped area do not
20351      percolate back to the file as seen by read().  (This is a bug on
20352      some variants of i386 svr4.0.)  */
20353   for (i = 0; i < pagesize; ++i)
20354     *(data2 + i) = *(data2 + i) + 1;
20355   data3 = (char *) malloc (pagesize);
20356   if (!data3)
20357     return 1;
20358   if (read (fd, data3, pagesize) != pagesize)
20359     return 1;
20360   for (i = 0; i < pagesize; ++i)
20361     if (*(data + i) != *(data3 + i))
20362       return 1;
20363   close (fd);
20364   return 0;
20365 }
20366 _ACEOF
20367 rm -f conftest$ac_exeext
20368 if { (ac_try="$ac_link"
20369 case "(($ac_try" in
20370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20371   *) ac_try_echo=$ac_try;;
20372 esac
20373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20374   (eval "$ac_link") 2>&5
20375   ac_status=$?
20376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20378   { (case "(($ac_try" in
20379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20380   *) ac_try_echo=$ac_try;;
20381 esac
20382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20383   (eval "$ac_try") 2>&5
20384   ac_status=$?
20385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386   (exit $ac_status); }; }; then
20387   ac_cv_func_mmap_fixed_mapped=yes
20388 else
20389   echo "$as_me: program exited with status $ac_status" >&5
20390 echo "$as_me: failed program was:" >&5
20391 sed 's/^/| /' conftest.$ac_ext >&5
20392
20393 ( exit $ac_status )
20394 ac_cv_func_mmap_fixed_mapped=no
20395 fi
20396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20397 fi
20398
20399
20400 fi
20401 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20402 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20403 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20404
20405 cat >>confdefs.h <<\_ACEOF
20406 #define HAVE_MMAP 1
20407 _ACEOF
20408
20409 fi
20410 rm -f conftest.mmap
20411
20412   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20413 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20414 if test "${ac_cv_func_mmap_file+set}" = set; then
20415   echo $ECHO_N "(cached) $ECHO_C" >&6
20416 else
20417    ac_ext=c
20418 ac_cpp='$CPP $CPPFLAGS'
20419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20422
20423   if test "$cross_compiling" = yes; then
20424   ac_cv_func_mmap_file=no
20425 else
20426   cat >conftest.$ac_ext <<_ACEOF
20427
20428     /* confdefs.h.  */
20429 _ACEOF
20430 cat confdefs.h >>conftest.$ac_ext
20431 cat >>conftest.$ac_ext <<_ACEOF
20432 /* end confdefs.h.  */
20433
20434 #include <sys/types.h>
20435 #include <sys/mman.h>
20436 #include <fcntl.h>
20437
20438 int
20439 main ()
20440 {
20441
20442   int fd;
20443   fd = creat ("foo",0777);
20444   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20445   unlink ("foo");
20446   return (fd != (int) MAP_FAILED);
20447   ;
20448   return 0;
20449 }
20450 _ACEOF
20451 rm -f conftest$ac_exeext
20452 if { (ac_try="$ac_link"
20453 case "(($ac_try" in
20454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20455   *) ac_try_echo=$ac_try;;
20456 esac
20457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20458   (eval "$ac_link") 2>&5
20459   ac_status=$?
20460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20462   { (case "(($ac_try" in
20463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464   *) ac_try_echo=$ac_try;;
20465 esac
20466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20467   (eval "$ac_try") 2>&5
20468   ac_status=$?
20469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470   (exit $ac_status); }; }; then
20471   ac_cv_func_mmap_file=yes
20472 else
20473   echo "$as_me: program exited with status $ac_status" >&5
20474 echo "$as_me: failed program was:" >&5
20475 sed 's/^/| /' conftest.$ac_ext >&5
20476
20477 ( exit $ac_status )
20478 ac_cv_func_mmap_file=no
20479 fi
20480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20481 fi
20482
20483
20484   ac_ext=c
20485 ac_cpp='$CPP $CPPFLAGS'
20486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20489
20490
20491 fi
20492 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20493 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20494 if test "$ac_cv_func_mmap_file" = yes; then
20495
20496 cat >>confdefs.h <<\_ACEOF
20497 #define HAVE_MMAP_FILE
20498 _ACEOF
20499
20500    MMAP_FILE=yes
20501
20502 fi
20503
20504   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20505 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20506 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20507   echo $ECHO_N "(cached) $ECHO_C" >&6
20508 else
20509   if test "$llvm_cv_os_type" = "Interix" ; then
20510    ac_cv_need_dev_zero_for_mmap=yes
20511  else
20512    ac_cv_need_dev_zero_for_mmap=no
20513  fi
20514
20515 fi
20516 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20517 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20518 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20519
20520 cat >>confdefs.h <<\_ACEOF
20521 #define NEED_DEV_ZERO_FOR_MMAP 1
20522 _ACEOF
20523
20524 fi
20525
20526   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20527   then
20528     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20529 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20530   fi
20531   if test "$ac_cv_func_mmap_file" = "no"
20532   then
20533     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20534 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20535   fi
20536 fi
20537
20538 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20539 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20540 ac_ext=cpp
20541 ac_cpp='$CXXCPP $CPPFLAGS'
20542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20545
20546 cat >conftest.$ac_ext <<_ACEOF
20547 /* confdefs.h.  */
20548 _ACEOF
20549 cat confdefs.h >>conftest.$ac_ext
20550 cat >>conftest.$ac_ext <<_ACEOF
20551 /* end confdefs.h.  */
20552 int main() {
20553         volatile unsigned long val = 1;
20554         __sync_synchronize();
20555         __sync_val_compare_and_swap(&val, 1, 0);
20556         __sync_add_and_fetch(&val, 1);
20557         __sync_sub_and_fetch(&val, 1);
20558         return 0;
20559       }
20560
20561 _ACEOF
20562 rm -f conftest.$ac_objext conftest$ac_exeext
20563 if { (ac_try="$ac_link"
20564 case "(($ac_try" in
20565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20566   *) ac_try_echo=$ac_try;;
20567 esac
20568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20569   (eval "$ac_link") 2>conftest.er1
20570   ac_status=$?
20571   grep -v '^ *+' conftest.er1 >conftest.err
20572   rm -f conftest.er1
20573   cat conftest.err >&5
20574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575   (exit $ac_status); } &&
20576          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20577   { (case "(($ac_try" in
20578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20579   *) ac_try_echo=$ac_try;;
20580 esac
20581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20582   (eval "$ac_try") 2>&5
20583   ac_status=$?
20584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585   (exit $ac_status); }; } &&
20586          { ac_try='test -s conftest$ac_exeext'
20587   { (case "(($ac_try" in
20588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20589   *) ac_try_echo=$ac_try;;
20590 esac
20591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20592   (eval "$ac_try") 2>&5
20593   ac_status=$?
20594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595   (exit $ac_status); }; }; then
20596   ac_ext=c
20597 ac_cpp='$CPP $CPPFLAGS'
20598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20601
20602   { echo "$as_me:$LINENO: result: yes" >&5
20603 echo "${ECHO_T}yes" >&6; }
20604
20605 cat >>confdefs.h <<\_ACEOF
20606 #define LLVM_HAS_ATOMICS 1
20607 _ACEOF
20608
20609 else
20610   echo "$as_me: failed program was:" >&5
20611 sed 's/^/| /' conftest.$ac_ext >&5
20612
20613         { echo "$as_me:$LINENO: result: no" >&5
20614 echo "${ECHO_T}no" >&6; }
20615
20616 cat >>confdefs.h <<\_ACEOF
20617 #define LLVM_HAS_ATOMICS 0
20618 _ACEOF
20619
20620   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20621 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20622 fi
20623
20624 rm -f core conftest.err conftest.$ac_objext \
20625       conftest$ac_exeext conftest.$ac_ext
20626
20627
20628 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20629   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20630 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20631 if test "${llvm_cv_linux_mixed+set}" = set; then
20632   echo $ECHO_N "(cached) $ECHO_C" >&6
20633 else
20634    ac_ext=c
20635 ac_cpp='$CPP $CPPFLAGS'
20636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20639
20640   cat >conftest.$ac_ext <<_ACEOF
20641 /* confdefs.h.  */
20642 _ACEOF
20643 cat confdefs.h >>conftest.$ac_ext
20644 cat >>conftest.$ac_ext <<_ACEOF
20645 /* end confdefs.h.  */
20646 #ifndef __x86_64__
20647        error: Not x86-64 even if uname says so!
20648       #endif
20649
20650 int
20651 main ()
20652 {
20653
20654   ;
20655   return 0;
20656 }
20657 _ACEOF
20658 rm -f conftest.$ac_objext
20659 if { (ac_try="$ac_compile"
20660 case "(($ac_try" in
20661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20662   *) ac_try_echo=$ac_try;;
20663 esac
20664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20665   (eval "$ac_compile") 2>conftest.er1
20666   ac_status=$?
20667   grep -v '^ *+' conftest.er1 >conftest.err
20668   rm -f conftest.er1
20669   cat conftest.err >&5
20670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671   (exit $ac_status); } &&
20672          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20673   { (case "(($ac_try" in
20674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20675   *) ac_try_echo=$ac_try;;
20676 esac
20677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20678   (eval "$ac_try") 2>&5
20679   ac_status=$?
20680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681   (exit $ac_status); }; } &&
20682          { ac_try='test -s conftest.$ac_objext'
20683   { (case "(($ac_try" in
20684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20685   *) ac_try_echo=$ac_try;;
20686 esac
20687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20688   (eval "$ac_try") 2>&5
20689   ac_status=$?
20690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691   (exit $ac_status); }; }; then
20692   llvm_cv_linux_mixed=no
20693 else
20694   echo "$as_me: failed program was:" >&5
20695 sed 's/^/| /' conftest.$ac_ext >&5
20696
20697         llvm_cv_linux_mixed=yes
20698 fi
20699
20700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20701   ac_ext=c
20702 ac_cpp='$CPP $CPPFLAGS'
20703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20706
20707
20708 fi
20709 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20710 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20711
20712   if test "$llvm_cv_linux_mixed" = "yes"; then
20713     llvm_cv_target_arch="x86"
20714     ARCH="x86"
20715   fi
20716 fi
20717
20718
20719 for ac_func in __dso_handle
20720 do
20721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20722 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20725   echo $ECHO_N "(cached) $ECHO_C" >&6
20726 else
20727   cat >conftest.$ac_ext <<_ACEOF
20728 /* confdefs.h.  */
20729 _ACEOF
20730 cat confdefs.h >>conftest.$ac_ext
20731 cat >>conftest.$ac_ext <<_ACEOF
20732 /* end confdefs.h.  */
20733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20735 #define $ac_func innocuous_$ac_func
20736
20737 /* System header to define __stub macros and hopefully few prototypes,
20738     which can conflict with char $ac_func (); below.
20739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20740     <limits.h> exists even on freestanding compilers.  */
20741
20742 #ifdef __STDC__
20743 # include <limits.h>
20744 #else
20745 # include <assert.h>
20746 #endif
20747
20748 #undef $ac_func
20749
20750 /* Override any GCC internal prototype to avoid an error.
20751    Use char because int might match the return type of a GCC
20752    builtin and then its argument prototype would still apply.  */
20753 #ifdef __cplusplus
20754 extern "C"
20755 #endif
20756 char $ac_func ();
20757 /* The GNU C library defines this for functions which it implements
20758     to always fail with ENOSYS.  Some functions are actually named
20759     something starting with __ and the normal name is an alias.  */
20760 #if defined __stub_$ac_func || defined __stub___$ac_func
20761 choke me
20762 #endif
20763
20764 int
20765 main ()
20766 {
20767 return $ac_func ();
20768   ;
20769   return 0;
20770 }
20771 _ACEOF
20772 rm -f conftest.$ac_objext conftest$ac_exeext
20773 if { (ac_try="$ac_link"
20774 case "(($ac_try" in
20775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20776   *) ac_try_echo=$ac_try;;
20777 esac
20778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20779   (eval "$ac_link") 2>conftest.er1
20780   ac_status=$?
20781   grep -v '^ *+' conftest.er1 >conftest.err
20782   rm -f conftest.er1
20783   cat conftest.err >&5
20784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785   (exit $ac_status); } &&
20786          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20787   { (case "(($ac_try" in
20788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20789   *) ac_try_echo=$ac_try;;
20790 esac
20791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20792   (eval "$ac_try") 2>&5
20793   ac_status=$?
20794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795   (exit $ac_status); }; } &&
20796          { ac_try='test -s conftest$ac_exeext'
20797   { (case "(($ac_try" in
20798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20799   *) ac_try_echo=$ac_try;;
20800 esac
20801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20802   (eval "$ac_try") 2>&5
20803   ac_status=$?
20804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805   (exit $ac_status); }; }; then
20806   eval "$as_ac_var=yes"
20807 else
20808   echo "$as_me: failed program was:" >&5
20809 sed 's/^/| /' conftest.$ac_ext >&5
20810
20811         eval "$as_ac_var=no"
20812 fi
20813
20814 rm -f core conftest.err conftest.$ac_objext \
20815       conftest$ac_exeext conftest.$ac_ext
20816 fi
20817 ac_res=`eval echo '${'$as_ac_var'}'`
20818                { echo "$as_me:$LINENO: result: $ac_res" >&5
20819 echo "${ECHO_T}$ac_res" >&6; }
20820 if test `eval echo '${'$as_ac_var'}'` = yes; then
20821   cat >>confdefs.h <<_ACEOF
20822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20823 _ACEOF
20824
20825 fi
20826 done
20827
20828
20829 SHLIBEXT=$libltdl_cv_shlibext
20830
20831
20832 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20833
20834
20835 # Translate the various configuration directories and other basic
20836 # information into substitutions that will end up in Makefile.config.in
20837 # that these configured values can be used by the makefiles
20838 if test "${prefix}" = "NONE" ; then
20839   prefix="/usr/local"
20840 fi
20841 eval LLVM_PREFIX="${prefix}";
20842 eval LLVM_BINDIR="${prefix}/bin";
20843 eval LLVM_LIBDIR="${prefix}/lib";
20844 eval LLVM_DATADIR="${prefix}/share/llvm";
20845 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20846 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20847 eval LLVM_INCLUDEDIR="${prefix}/include";
20848 eval LLVM_INFODIR="${prefix}/info";
20849 eval LLVM_MANDIR="${prefix}/man";
20850 LLVM_CONFIGTIME=`date`
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862 # Place the various directores into the config.h file as #defines so that we
20863 # can know about the installation paths within LLVM.
20864
20865 cat >>confdefs.h <<_ACEOF
20866 #define LLVM_PREFIX "$LLVM_PREFIX"
20867 _ACEOF
20868
20869
20870 cat >>confdefs.h <<_ACEOF
20871 #define LLVM_BINDIR "$LLVM_BINDIR"
20872 _ACEOF
20873
20874
20875 cat >>confdefs.h <<_ACEOF
20876 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20877 _ACEOF
20878
20879
20880 cat >>confdefs.h <<_ACEOF
20881 #define LLVM_DATADIR "$LLVM_DATADIR"
20882 _ACEOF
20883
20884
20885 cat >>confdefs.h <<_ACEOF
20886 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20887 _ACEOF
20888
20889
20890 cat >>confdefs.h <<_ACEOF
20891 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20892 _ACEOF
20893
20894
20895 cat >>confdefs.h <<_ACEOF
20896 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20897 _ACEOF
20898
20899
20900 cat >>confdefs.h <<_ACEOF
20901 #define LLVM_INFODIR "$LLVM_INFODIR"
20902 _ACEOF
20903
20904
20905 cat >>confdefs.h <<_ACEOF
20906 #define LLVM_MANDIR "$LLVM_MANDIR"
20907 _ACEOF
20908
20909
20910 cat >>confdefs.h <<_ACEOF
20911 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20912 _ACEOF
20913
20914
20915 cat >>confdefs.h <<_ACEOF
20916 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20917 _ACEOF
20918
20919
20920 # Determine which bindings to build.
20921 if test "$BINDINGS_TO_BUILD" = auto ; then
20922   BINDINGS_TO_BUILD=""
20923   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20924     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20925   fi
20926 fi
20927 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20928
20929
20930 # This isn't really configurey, but it avoids having to repeat the list in
20931 # other files.
20932 ALL_BINDINGS=ocaml
20933
20934
20935 # Do any work necessary to ensure that bindings have what they need.
20936 binding_prereqs_failed=0
20937 for a_binding in $BINDINGS_TO_BUILD ; do
20938   case "$a_binding" in
20939   ocaml)
20940     if test "x$OCAMLC" = x ; then
20941       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20942 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20943       binding_prereqs_failed=1
20944     fi
20945     if test "x$OCAMLDEP" = x ; then
20946       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20947 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20948       binding_prereqs_failed=1
20949     fi
20950     if test "x$OCAMLOPT" = x ; then
20951       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20952 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20953           fi
20954     if test "x$with_ocaml_libdir" != xauto ; then
20955       OCAML_LIBDIR=$with_ocaml_libdir
20956
20957     else
20958       ocaml_stdlib="`"$OCAMLC" -where`"
20959       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20960       then
20961         # ocaml stdlib is beneath our prefix; use stdlib
20962         OCAML_LIBDIR=$ocaml_stdlib
20963
20964       else
20965         # ocaml stdlib is outside our prefix; use libdir/ocaml
20966         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20967
20968       fi
20969     fi
20970     ;;
20971   esac
20972 done
20973 if test "$binding_prereqs_failed" = 1 ; then
20974   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20975 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20976    { (exit 1); exit 1; }; }
20977 fi
20978
20979 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20980 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20981 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20982   echo $ECHO_N "(cached) $ECHO_C" >&6
20983 else
20984    ac_ext=cpp
20985 ac_cpp='$CXXCPP $CPPFLAGS'
20986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20989
20990   oldcxxflags="$CXXFLAGS"
20991   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden -Werror"
20992   cat >conftest.$ac_ext <<_ACEOF
20993 /* confdefs.h.  */
20994 _ACEOF
20995 cat confdefs.h >>conftest.$ac_ext
20996 cat >>conftest.$ac_ext <<_ACEOF
20997 /* end confdefs.h.  */
20998 template <typename T> struct X { void __attribute__((noinline)) f() {} };
20999 int
21000 main ()
21001 {
21002 X<int>().f();
21003   ;
21004   return 0;
21005 }
21006 _ACEOF
21007 rm -f conftest.$ac_objext
21008 if { (ac_try="$ac_compile"
21009 case "(($ac_try" in
21010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21011   *) ac_try_echo=$ac_try;;
21012 esac
21013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21014   (eval "$ac_compile") 2>conftest.er1
21015   ac_status=$?
21016   grep -v '^ *+' conftest.er1 >conftest.err
21017   rm -f conftest.er1
21018   cat conftest.err >&5
21019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020   (exit $ac_status); } &&
21021          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21022   { (case "(($ac_try" in
21023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024   *) ac_try_echo=$ac_try;;
21025 esac
21026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21027   (eval "$ac_try") 2>&5
21028   ac_status=$?
21029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030   (exit $ac_status); }; } &&
21031          { ac_try='test -s conftest.$ac_objext'
21032   { (case "(($ac_try" in
21033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21034   *) ac_try_echo=$ac_try;;
21035 esac
21036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21037   (eval "$ac_try") 2>&5
21038   ac_status=$?
21039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040   (exit $ac_status); }; }; then
21041   llvm_cv_cxx_visibility_inlines_hidden=yes
21042 else
21043   echo "$as_me: failed program was:" >&5
21044 sed 's/^/| /' conftest.$ac_ext >&5
21045
21046         llvm_cv_cxx_visibility_inlines_hidden=no
21047 fi
21048
21049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21050   CXXFLAGS="$oldcxxflags"
21051   ac_ext=c
21052 ac_cpp='$CPP $CPPFLAGS'
21053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21056
21057
21058 fi
21059 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21060 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21061 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21062   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21063
21064 else
21065   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21066
21067 fi
21068
21069
21070 if test "$llvm_cv_link_use_r" = "yes" ; then
21071   RPATH="-Wl,-R"
21072 else
21073   RPATH="-Wl,-rpath"
21074 fi
21075
21076
21077 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21078   RDYNAMIC="-Wl,-export-dynamic"
21079 else
21080   RDYNAMIC=""
21081 fi
21082
21083
21084
21085 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21086
21087
21088
21089
21090
21091
21092 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21093
21094 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21095
21096 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21097
21098 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21099
21100 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21101
21102
21103 ac_config_files="$ac_config_files Makefile.config"
21104
21105
21106 ac_config_files="$ac_config_files llvm.spec"
21107
21108
21109 ac_config_files="$ac_config_files docs/doxygen.cfg"
21110
21111 if test -f ${srcdir}/tools/clang/README.txt; then
21112   ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21113
21114 fi
21115
21116 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21117
21118
21119 ac_config_commands="$ac_config_commands setup"
21120
21121 ac_config_commands="$ac_config_commands Makefile"
21122
21123
21124 ac_config_commands="$ac_config_commands Makefile.common"
21125
21126
21127 ac_config_commands="$ac_config_commands examples/Makefile"
21128
21129
21130 ac_config_commands="$ac_config_commands lib/Makefile"
21131
21132
21133 ac_config_commands="$ac_config_commands runtime/Makefile"
21134
21135
21136 ac_config_commands="$ac_config_commands test/Makefile"
21137
21138
21139 ac_config_commands="$ac_config_commands test/Makefile.tests"
21140
21141
21142 ac_config_commands="$ac_config_commands unittests/Makefile"
21143
21144
21145 ac_config_commands="$ac_config_commands tools/Makefile"
21146
21147
21148 ac_config_commands="$ac_config_commands utils/Makefile"
21149
21150
21151 ac_config_commands="$ac_config_commands projects/Makefile"
21152
21153
21154 ac_config_commands="$ac_config_commands bindings/Makefile"
21155
21156
21157 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21158
21159
21160
21161 cat >confcache <<\_ACEOF
21162 # This file is a shell script that caches the results of configure
21163 # tests run on this system so they can be shared between configure
21164 # scripts and configure runs, see configure's option --config-cache.
21165 # It is not useful on other systems.  If it contains results you don't
21166 # want to keep, you may remove or edit it.
21167 #
21168 # config.status only pays attention to the cache file if you give it
21169 # the --recheck option to rerun configure.
21170 #
21171 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21172 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21173 # following values.
21174
21175 _ACEOF
21176
21177 # The following way of writing the cache mishandles newlines in values,
21178 # but we know of no workaround that is simple, portable, and efficient.
21179 # So, we kill variables containing newlines.
21180 # Ultrix sh set writes to stderr and can't be redirected directly,
21181 # and sets the high bit in the cache file unless we assign to the vars.
21182 (
21183   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21184     eval ac_val=\$$ac_var
21185     case $ac_val in #(
21186     *${as_nl}*)
21187       case $ac_var in #(
21188       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21189 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21190       esac
21191       case $ac_var in #(
21192       _ | IFS | as_nl) ;; #(
21193       *) $as_unset $ac_var ;;
21194       esac ;;
21195     esac
21196   done
21197
21198   (set) 2>&1 |
21199     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21200     *${as_nl}ac_space=\ *)
21201       # `set' does not quote correctly, so add quotes (double-quote
21202       # substitution turns \\\\ into \\, and sed turns \\ into \).
21203       sed -n \
21204         "s/'/'\\\\''/g;
21205           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21206       ;; #(
21207     *)
21208       # `set' quotes correctly as required by POSIX, so do not add quotes.
21209       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21210       ;;
21211     esac |
21212     sort
21213 ) |
21214   sed '
21215      /^ac_cv_env_/b end
21216      t clear
21217      :clear
21218      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21219      t end
21220      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21221      :end' >>confcache
21222 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21223   if test -w "$cache_file"; then
21224     test "x$cache_file" != "x/dev/null" &&
21225       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21226 echo "$as_me: updating cache $cache_file" >&6;}
21227     cat confcache >$cache_file
21228   else
21229     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21230 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21231   fi
21232 fi
21233 rm -f confcache
21234
21235 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21236 # Let make expand exec_prefix.
21237 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21238
21239 DEFS=-DHAVE_CONFIG_H
21240
21241 ac_libobjs=
21242 ac_ltlibobjs=
21243 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21244   # 1. Remove the extension, and $U if already installed.
21245   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21246   ac_i=`echo "$ac_i" | sed "$ac_script"`
21247   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21248   #    will be set to the directory where LIBOBJS objects are built.
21249   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21250   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21251 done
21252 LIBOBJS=$ac_libobjs
21253
21254 LTLIBOBJS=$ac_ltlibobjs
21255
21256
21257 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21258   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21259 Usually this means the macro was only invoked conditionally." >&5
21260 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21261 Usually this means the macro was only invoked conditionally." >&2;}
21262    { (exit 1); exit 1; }; }
21263 fi
21264 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21265   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21266 Usually this means the macro was only invoked conditionally." >&5
21267 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21268 Usually this means the macro was only invoked conditionally." >&2;}
21269    { (exit 1); exit 1; }; }
21270 fi
21271
21272 : ${CONFIG_STATUS=./config.status}
21273 ac_clean_files_save=$ac_clean_files
21274 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21275 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21276 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21277 cat >$CONFIG_STATUS <<_ACEOF
21278 #! $SHELL
21279 # Generated by $as_me.
21280 # Run this file to recreate the current configuration.
21281 # Compiler output produced by configure, useful for debugging
21282 # configure, is in config.log if it exists.
21283
21284 debug=false
21285 ac_cs_recheck=false
21286 ac_cs_silent=false
21287 SHELL=\${CONFIG_SHELL-$SHELL}
21288 _ACEOF
21289
21290 cat >>$CONFIG_STATUS <<\_ACEOF
21291 ## --------------------- ##
21292 ## M4sh Initialization.  ##
21293 ## --------------------- ##
21294
21295 # Be Bourne compatible
21296 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21297   emulate sh
21298   NULLCMD=:
21299   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21300   # is contrary to our usage.  Disable this feature.
21301   alias -g '${1+"$@"}'='"$@"'
21302   setopt NO_GLOB_SUBST
21303 else
21304   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21305 fi
21306 BIN_SH=xpg4; export BIN_SH # for Tru64
21307 DUALCASE=1; export DUALCASE # for MKS sh
21308
21309
21310 # PATH needs CR
21311 # Avoid depending upon Character Ranges.
21312 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21313 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21314 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21315 as_cr_digits='0123456789'
21316 as_cr_alnum=$as_cr_Letters$as_cr_digits
21317
21318 # The user is always right.
21319 if test "${PATH_SEPARATOR+set}" != set; then
21320   echo "#! /bin/sh" >conf$$.sh
21321   echo  "exit 0"   >>conf$$.sh
21322   chmod +x conf$$.sh
21323   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21324     PATH_SEPARATOR=';'
21325   else
21326     PATH_SEPARATOR=:
21327   fi
21328   rm -f conf$$.sh
21329 fi
21330
21331 # Support unset when possible.
21332 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21333   as_unset=unset
21334 else
21335   as_unset=false
21336 fi
21337
21338
21339 # IFS
21340 # We need space, tab and new line, in precisely that order.  Quoting is
21341 # there to prevent editors from complaining about space-tab.
21342 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21343 # splitting by setting IFS to empty value.)
21344 as_nl='
21345 '
21346 IFS=" ""        $as_nl"
21347
21348 # Find who we are.  Look in the path if we contain no directory separator.
21349 case $0 in
21350   *[\\/]* ) as_myself=$0 ;;
21351   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21352 for as_dir in $PATH
21353 do
21354   IFS=$as_save_IFS
21355   test -z "$as_dir" && as_dir=.
21356   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21357 done
21358 IFS=$as_save_IFS
21359
21360      ;;
21361 esac
21362 # We did not find ourselves, most probably we were run as `sh COMMAND'
21363 # in which case we are not to be found in the path.
21364 if test "x$as_myself" = x; then
21365   as_myself=$0
21366 fi
21367 if test ! -f "$as_myself"; then
21368   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21369   { (exit 1); exit 1; }
21370 fi
21371
21372 # Work around bugs in pre-3.0 UWIN ksh.
21373 for as_var in ENV MAIL MAILPATH
21374 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21375 done
21376 PS1='$ '
21377 PS2='> '
21378 PS4='+ '
21379
21380 # NLS nuisances.
21381 for as_var in \
21382   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21383   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21384   LC_TELEPHONE LC_TIME
21385 do
21386   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21387     eval $as_var=C; export $as_var
21388   else
21389     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21390   fi
21391 done
21392
21393 # Required to use basename.
21394 if expr a : '\(a\)' >/dev/null 2>&1 &&
21395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21396   as_expr=expr
21397 else
21398   as_expr=false
21399 fi
21400
21401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21402   as_basename=basename
21403 else
21404   as_basename=false
21405 fi
21406
21407
21408 # Name of the executable.
21409 as_me=`$as_basename -- "$0" ||
21410 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21411          X"$0" : 'X\(//\)$' \| \
21412          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21413 echo X/"$0" |
21414     sed '/^.*\/\([^/][^/]*\)\/*$/{
21415             s//\1/
21416             q
21417           }
21418           /^X\/\(\/\/\)$/{
21419             s//\1/
21420             q
21421           }
21422           /^X\/\(\/\).*/{
21423             s//\1/
21424             q
21425           }
21426           s/.*/./; q'`
21427
21428 # CDPATH.
21429 $as_unset CDPATH
21430
21431
21432
21433   as_lineno_1=$LINENO
21434   as_lineno_2=$LINENO
21435   test "x$as_lineno_1" != "x$as_lineno_2" &&
21436   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21437
21438   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21439   # uniformly replaced by the line number.  The first 'sed' inserts a
21440   # line-number line after each line using $LINENO; the second 'sed'
21441   # does the real work.  The second script uses 'N' to pair each
21442   # line-number line with the line containing $LINENO, and appends
21443   # trailing '-' during substitution so that $LINENO is not a special
21444   # case at line end.
21445   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21446   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21447   # E. McMahon (1931-1989) for sed's syntax.  :-)
21448   sed -n '
21449     p
21450     /[$]LINENO/=
21451   ' <$as_myself |
21452     sed '
21453       s/[$]LINENO.*/&-/
21454       t lineno
21455       b
21456       :lineno
21457       N
21458       :loop
21459       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21460       t loop
21461       s/-\n.*//
21462     ' >$as_me.lineno &&
21463   chmod +x "$as_me.lineno" ||
21464     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21465    { (exit 1); exit 1; }; }
21466
21467   # Don't try to exec as it changes $[0], causing all sort of problems
21468   # (the dirname of $[0] is not the place where we might find the
21469   # original and so on.  Autoconf is especially sensitive to this).
21470   . "./$as_me.lineno"
21471   # Exit status is that of the last command.
21472   exit
21473 }
21474
21475
21476 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21477   as_dirname=dirname
21478 else
21479   as_dirname=false
21480 fi
21481
21482 ECHO_C= ECHO_N= ECHO_T=
21483 case `echo -n x` in
21484 -n*)
21485   case `echo 'x\c'` in
21486   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21487   *)   ECHO_C='\c';;
21488   esac;;
21489 *)
21490   ECHO_N='-n';;
21491 esac
21492
21493 if expr a : '\(a\)' >/dev/null 2>&1 &&
21494    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21495   as_expr=expr
21496 else
21497   as_expr=false
21498 fi
21499
21500 rm -f conf$$ conf$$.exe conf$$.file
21501 if test -d conf$$.dir; then
21502   rm -f conf$$.dir/conf$$.file
21503 else
21504   rm -f conf$$.dir
21505   mkdir conf$$.dir
21506 fi
21507 echo >conf$$.file
21508 if ln -s conf$$.file conf$$ 2>/dev/null; then
21509   as_ln_s='ln -s'
21510   # ... but there are two gotchas:
21511   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21512   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21513   # In both cases, we have to default to `cp -p'.
21514   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21515     as_ln_s='cp -p'
21516 elif ln conf$$.file conf$$ 2>/dev/null; then
21517   as_ln_s=ln
21518 else
21519   as_ln_s='cp -p'
21520 fi
21521 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21522 rmdir conf$$.dir 2>/dev/null
21523
21524 if mkdir -p . 2>/dev/null; then
21525   as_mkdir_p=:
21526 else
21527   test -d ./-p && rmdir ./-p
21528   as_mkdir_p=false
21529 fi
21530
21531 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21532 # systems may use methods other than mode bits to determine executability.
21533 cat >conf$$.file <<_ASEOF
21534 #! /bin/sh
21535 exit 0
21536 _ASEOF
21537 chmod +x conf$$.file
21538 if test -x conf$$.file >/dev/null 2>&1; then
21539   as_executable_p="test -x"
21540 else
21541   as_executable_p=:
21542 fi
21543 rm -f conf$$.file
21544
21545 # Sed expression to map a string onto a valid CPP name.
21546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21547
21548 # Sed expression to map a string onto a valid variable name.
21549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21550
21551
21552 exec 6>&1
21553
21554 # Save the log message, to keep $[0] and so on meaningful, and to
21555 # report actual input values of CONFIG_FILES etc. instead of their
21556 # values after options handling.
21557 ac_log="
21558 This file was extended by LLVM $as_me 3.1svn, which was
21559 generated by GNU Autoconf 2.60.  Invocation command line was
21560
21561   CONFIG_FILES    = $CONFIG_FILES
21562   CONFIG_HEADERS  = $CONFIG_HEADERS
21563   CONFIG_LINKS    = $CONFIG_LINKS
21564   CONFIG_COMMANDS = $CONFIG_COMMANDS
21565   $ $0 $@
21566
21567 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21568 "
21569
21570 _ACEOF
21571
21572 cat >>$CONFIG_STATUS <<_ACEOF
21573 # Files that config.status was made for.
21574 config_files="$ac_config_files"
21575 config_headers="$ac_config_headers"
21576 config_commands="$ac_config_commands"
21577
21578 _ACEOF
21579
21580 cat >>$CONFIG_STATUS <<\_ACEOF
21581 ac_cs_usage="\
21582 \`$as_me' instantiates files from templates according to the
21583 current configuration.
21584
21585 Usage: $0 [OPTIONS] [FILE]...
21586
21587   -h, --help       print this help, then exit
21588   -V, --version    print version number, then exit
21589   -q, --quiet      do not print progress messages
21590   -d, --debug      don't remove temporary files
21591       --recheck    update $as_me by reconfiguring in the same conditions
21592   --file=FILE[:TEMPLATE]
21593                    instantiate the configuration file FILE
21594   --header=FILE[:TEMPLATE]
21595                    instantiate the configuration header FILE
21596
21597 Configuration files:
21598 $config_files
21599
21600 Configuration headers:
21601 $config_headers
21602
21603 Configuration commands:
21604 $config_commands
21605
21606 Report bugs to <bug-autoconf@gnu.org>."
21607
21608 _ACEOF
21609 cat >>$CONFIG_STATUS <<_ACEOF
21610 ac_cs_version="\\
21611 LLVM config.status 3.1svn
21612 configured by $0, generated by GNU Autoconf 2.60,
21613   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21614
21615 Copyright (C) 2006 Free Software Foundation, Inc.
21616 This config.status script is free software; the Free Software Foundation
21617 gives unlimited permission to copy, distribute and modify it."
21618
21619 ac_pwd='$ac_pwd'
21620 srcdir='$srcdir'
21621 INSTALL='$INSTALL'
21622 _ACEOF
21623
21624 cat >>$CONFIG_STATUS <<\_ACEOF
21625 # If no file are specified by the user, then we need to provide default
21626 # value.  By we need to know if files were specified by the user.
21627 ac_need_defaults=:
21628 while test $# != 0
21629 do
21630   case $1 in
21631   --*=*)
21632     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21633     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21634     ac_shift=:
21635     ;;
21636   *)
21637     ac_option=$1
21638     ac_optarg=$2
21639     ac_shift=shift
21640     ;;
21641   esac
21642
21643   case $ac_option in
21644   # Handling of the options.
21645   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21646     ac_cs_recheck=: ;;
21647   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21648     echo "$ac_cs_version"; exit ;;
21649   --debug | --debu | --deb | --de | --d | -d )
21650     debug=: ;;
21651   --file | --fil | --fi | --f )
21652     $ac_shift
21653     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21654     ac_need_defaults=false;;
21655   --header | --heade | --head | --hea )
21656     $ac_shift
21657     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21658     ac_need_defaults=false;;
21659   --he | --h)
21660     # Conflict between --help and --header
21661     { echo "$as_me: error: ambiguous option: $1
21662 Try \`$0 --help' for more information." >&2
21663    { (exit 1); exit 1; }; };;
21664   --help | --hel | -h )
21665     echo "$ac_cs_usage"; exit ;;
21666   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21667   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21668     ac_cs_silent=: ;;
21669
21670   # This is an error.
21671   -*) { echo "$as_me: error: unrecognized option: $1
21672 Try \`$0 --help' for more information." >&2
21673    { (exit 1); exit 1; }; } ;;
21674
21675   *) ac_config_targets="$ac_config_targets $1"
21676      ac_need_defaults=false ;;
21677
21678   esac
21679   shift
21680 done
21681
21682 ac_configure_extra_args=
21683
21684 if $ac_cs_silent; then
21685   exec 6>/dev/null
21686   ac_configure_extra_args="$ac_configure_extra_args --silent"
21687 fi
21688
21689 _ACEOF
21690 cat >>$CONFIG_STATUS <<_ACEOF
21691 if \$ac_cs_recheck; then
21692   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21693   CONFIG_SHELL=$SHELL
21694   export CONFIG_SHELL
21695   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21696 fi
21697
21698 _ACEOF
21699 cat >>$CONFIG_STATUS <<\_ACEOF
21700 exec 5>>config.log
21701 {
21702   echo
21703   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21704 ## Running $as_me. ##
21705 _ASBOX
21706   echo "$ac_log"
21707 } >&5
21708
21709 _ACEOF
21710 cat >>$CONFIG_STATUS <<_ACEOF
21711 #
21712 # INIT-COMMANDS
21713 #
21714 llvm_src="${srcdir}"
21715
21716 _ACEOF
21717
21718 cat >>$CONFIG_STATUS <<\_ACEOF
21719
21720 # Handling of arguments.
21721 for ac_config_target in $ac_config_targets
21722 do
21723   case $ac_config_target in
21724     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21725     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21726     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21727     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21728     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21729     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21730     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21731     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21732     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21733     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21734     "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21735     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21736     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21737     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21738     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21739     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21740     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21741     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21742     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21743     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21744     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21745     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21746     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21747     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21748     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21749     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21750
21751   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21752 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21753    { (exit 1); exit 1; }; };;
21754   esac
21755 done
21756
21757
21758 # If the user did not use the arguments to specify the items to instantiate,
21759 # then the envvar interface is used.  Set only those that are not.
21760 # We use the long form for the default assignment because of an extremely
21761 # bizarre bug on SunOS 4.1.3.
21762 if $ac_need_defaults; then
21763   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21764   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21765   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21766 fi
21767
21768 # Have a temporary directory for convenience.  Make it in the build tree
21769 # simply because there is no reason against having it here, and in addition,
21770 # creating and moving files from /tmp can sometimes cause problems.
21771 # Hook for its removal unless debugging.
21772 # Note that there is a small window in which the directory will not be cleaned:
21773 # after its creation but before its name has been assigned to `$tmp'.
21774 $debug ||
21775 {
21776   tmp=
21777   trap 'exit_status=$?
21778   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21779 ' 0
21780   trap '{ (exit 1); exit 1; }' 1 2 13 15
21781 }
21782 # Create a (secure) tmp directory for tmp files.
21783
21784 {
21785   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21786   test -n "$tmp" && test -d "$tmp"
21787 }  ||
21788 {
21789   tmp=./conf$$-$RANDOM
21790   (umask 077 && mkdir "$tmp")
21791 } ||
21792 {
21793    echo "$me: cannot create a temporary directory in ." >&2
21794    { (exit 1); exit 1; }
21795 }
21796
21797 #
21798 # Set up the sed scripts for CONFIG_FILES section.
21799 #
21800
21801 # No need to generate the scripts if there are no CONFIG_FILES.
21802 # This happens for instance when ./config.status config.h
21803 if test -n "$CONFIG_FILES"; then
21804
21805 _ACEOF
21806
21807
21808
21809 ac_delim='%!_!# '
21810 for ac_last_try in false false false false false :; do
21811   cat >conf$$subs.sed <<_ACEOF
21812 SHELL!$SHELL$ac_delim
21813 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21814 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21815 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21816 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21817 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21818 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21819 exec_prefix!$exec_prefix$ac_delim
21820 prefix!$prefix$ac_delim
21821 program_transform_name!$program_transform_name$ac_delim
21822 bindir!$bindir$ac_delim
21823 sbindir!$sbindir$ac_delim
21824 libexecdir!$libexecdir$ac_delim
21825 datarootdir!$datarootdir$ac_delim
21826 datadir!$datadir$ac_delim
21827 sysconfdir!$sysconfdir$ac_delim
21828 sharedstatedir!$sharedstatedir$ac_delim
21829 localstatedir!$localstatedir$ac_delim
21830 includedir!$includedir$ac_delim
21831 oldincludedir!$oldincludedir$ac_delim
21832 docdir!$docdir$ac_delim
21833 infodir!$infodir$ac_delim
21834 htmldir!$htmldir$ac_delim
21835 dvidir!$dvidir$ac_delim
21836 pdfdir!$pdfdir$ac_delim
21837 psdir!$psdir$ac_delim
21838 libdir!$libdir$ac_delim
21839 localedir!$localedir$ac_delim
21840 mandir!$mandir$ac_delim
21841 DEFS!$DEFS$ac_delim
21842 ECHO_C!$ECHO_C$ac_delim
21843 ECHO_N!$ECHO_N$ac_delim
21844 ECHO_T!$ECHO_T$ac_delim
21845 LIBS!$LIBS$ac_delim
21846 build_alias!$build_alias$ac_delim
21847 host_alias!$host_alias$ac_delim
21848 target_alias!$target_alias$ac_delim
21849 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21850 CC!$CC$ac_delim
21851 CFLAGS!$CFLAGS$ac_delim
21852 LDFLAGS!$LDFLAGS$ac_delim
21853 CPPFLAGS!$CPPFLAGS$ac_delim
21854 ac_ct_CC!$ac_ct_CC$ac_delim
21855 EXEEXT!$EXEEXT$ac_delim
21856 OBJEXT!$OBJEXT$ac_delim
21857 CXX!$CXX$ac_delim
21858 CXXFLAGS!$CXXFLAGS$ac_delim
21859 ac_ct_CXX!$ac_ct_CXX$ac_delim
21860 CPP!$CPP$ac_delim
21861 subdirs!$subdirs$ac_delim
21862 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21863 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21864 build!$build$ac_delim
21865 build_cpu!$build_cpu$ac_delim
21866 build_vendor!$build_vendor$ac_delim
21867 build_os!$build_os$ac_delim
21868 host!$host$ac_delim
21869 host_cpu!$host_cpu$ac_delim
21870 host_vendor!$host_vendor$ac_delim
21871 host_os!$host_os$ac_delim
21872 target!$target$ac_delim
21873 target_cpu!$target_cpu$ac_delim
21874 target_vendor!$target_vendor$ac_delim
21875 target_os!$target_os$ac_delim
21876 OS!$OS$ac_delim
21877 HOST_OS!$HOST_OS$ac_delim
21878 TARGET_OS!$TARGET_OS$ac_delim
21879 LINKALL!$LINKALL$ac_delim
21880 NOLINKALL!$NOLINKALL$ac_delim
21881 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21882 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21883 ARCH!$ARCH$ac_delim
21884 ENDIAN!$ENDIAN$ac_delim
21885 GREP!$GREP$ac_delim
21886 EGREP!$EGREP$ac_delim
21887 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21888 BUILD_CC!$BUILD_CC$ac_delim
21889 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21890 BUILD_CXX!$BUILD_CXX$ac_delim
21891 CVSBUILD!$CVSBUILD$ac_delim
21892 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21893 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21894 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21895 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21896 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21897 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21898 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21899 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21900 JIT!$JIT$ac_delim
21901 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21902 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21903 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21904 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21905 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21906 ENABLE_PIC!$ENABLE_PIC$ac_delim
21907 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21908 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21909 _ACEOF
21910
21911   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21912     break
21913   elif $ac_last_try; then
21914     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21915 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21916    { (exit 1); exit 1; }; }
21917   else
21918     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21919   fi
21920 done
21921
21922 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21923 if test -n "$ac_eof"; then
21924   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21925   ac_eof=`expr $ac_eof + 1`
21926 fi
21927
21928 cat >>$CONFIG_STATUS <<_ACEOF
21929 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21930 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21931 _ACEOF
21932 sed '
21933 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21934 s/^/s,@/; s/!/@,|#_!!_#|/
21935 :n
21936 t n
21937 s/'"$ac_delim"'$/,g/; t
21938 s/$/\\/; p
21939 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21940 ' >>$CONFIG_STATUS <conf$$subs.sed
21941 rm -f conf$$subs.sed
21942 cat >>$CONFIG_STATUS <<_ACEOF
21943 CEOF$ac_eof
21944 _ACEOF
21945
21946
21947 ac_delim='%!_!# '
21948 for ac_last_try in false false false false false :; do
21949   cat >conf$$subs.sed <<_ACEOF
21950 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21951 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21952 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21953 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21954 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21955 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21956 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21957 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21958 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21959 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21960 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21961 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21962 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21963 NM!$NM$ac_delim
21964 ifGNUmake!$ifGNUmake$ac_delim
21965 LN_S!$LN_S$ac_delim
21966 CMP!$CMP$ac_delim
21967 CP!$CP$ac_delim
21968 DATE!$DATE$ac_delim
21969 FIND!$FIND$ac_delim
21970 MKDIR!$MKDIR$ac_delim
21971 MV!$MV$ac_delim
21972 RANLIB!$RANLIB$ac_delim
21973 AR!$AR$ac_delim
21974 RM!$RM$ac_delim
21975 SED!$SED$ac_delim
21976 TAR!$TAR$ac_delim
21977 BINPWD!$BINPWD$ac_delim
21978 GRAPHVIZ!$GRAPHVIZ$ac_delim
21979 DOT!$DOT$ac_delim
21980 FDP!$FDP$ac_delim
21981 NEATO!$NEATO$ac_delim
21982 TWOPI!$TWOPI$ac_delim
21983 CIRCO!$CIRCO$ac_delim
21984 GV!$GV$ac_delim
21985 DOTTY!$DOTTY$ac_delim
21986 XDOT_PY!$XDOT_PY$ac_delim
21987 PERL!$PERL$ac_delim
21988 HAVE_PERL!$HAVE_PERL$ac_delim
21989 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21990 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21991 INSTALL_DATA!$INSTALL_DATA$ac_delim
21992 BZIP2!$BZIP2$ac_delim
21993 CAT!$CAT$ac_delim
21994 DOXYGEN!$DOXYGEN$ac_delim
21995 GROFF!$GROFF$ac_delim
21996 GZIPBIN!$GZIPBIN$ac_delim
21997 POD2HTML!$POD2HTML$ac_delim
21998 POD2MAN!$POD2MAN$ac_delim
21999 PDFROFF!$PDFROFF$ac_delim
22000 RUNTEST!$RUNTEST$ac_delim
22001 TCLSH!$TCLSH$ac_delim
22002 ZIP!$ZIP$ac_delim
22003 OCAMLC!$OCAMLC$ac_delim
22004 OCAMLOPT!$OCAMLOPT$ac_delim
22005 OCAMLDEP!$OCAMLDEP$ac_delim
22006 OCAMLDOC!$OCAMLDOC$ac_delim
22007 GAS!$GAS$ac_delim
22008 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22009 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22010 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22011 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22012 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22013 LIBADD_DL!$LIBADD_DL$ac_delim
22014 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22015 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22016 USE_UDIS86!$USE_UDIS86$ac_delim
22017 USE_OPROFILE!$USE_OPROFILE$ac_delim
22018 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22019 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22020 MMAP_FILE!$MMAP_FILE$ac_delim
22021 SHLIBEXT!$SHLIBEXT$ac_delim
22022 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22023 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22024 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22025 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22026 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22027 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22028 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22029 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22030 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22031 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22032 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22033 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22034 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22035 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22036 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22037 RPATH!$RPATH$ac_delim
22038 RDYNAMIC!$RDYNAMIC$ac_delim
22039 LIBOBJS!$LIBOBJS$ac_delim
22040 LTLIBOBJS!$LTLIBOBJS$ac_delim
22041 _ACEOF
22042
22043   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
22044     break
22045   elif $ac_last_try; then
22046     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22047 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22048    { (exit 1); exit 1; }; }
22049   else
22050     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22051   fi
22052 done
22053
22054 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22055 if test -n "$ac_eof"; then
22056   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22057   ac_eof=`expr $ac_eof + 1`
22058 fi
22059
22060 cat >>$CONFIG_STATUS <<_ACEOF
22061 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22062 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22063 _ACEOF
22064 sed '
22065 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22066 s/^/s,@/; s/!/@,|#_!!_#|/
22067 :n
22068 t n
22069 s/'"$ac_delim"'$/,g/; t
22070 s/$/\\/; p
22071 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22072 ' >>$CONFIG_STATUS <conf$$subs.sed
22073 rm -f conf$$subs.sed
22074 cat >>$CONFIG_STATUS <<_ACEOF
22075 :end
22076 s/|#_!!_#|//g
22077 CEOF$ac_eof
22078 _ACEOF
22079
22080
22081 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22082 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22083 # trailing colons and then remove the whole line if VPATH becomes empty
22084 # (actually we leave an empty line to preserve line numbers).
22085 if test "x$srcdir" = x.; then
22086   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22087 s/:*\$(srcdir):*/:/
22088 s/:*\${srcdir}:*/:/
22089 s/:*@srcdir@:*/:/
22090 s/^\([^=]*=[     ]*\):*/\1/
22091 s/:*$//
22092 s/^[^=]*=[       ]*$//
22093 }'
22094 fi
22095
22096 cat >>$CONFIG_STATUS <<\_ACEOF
22097 fi # test -n "$CONFIG_FILES"
22098
22099
22100 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22101 do
22102   case $ac_tag in
22103   :[FHLC]) ac_mode=$ac_tag; continue;;
22104   esac
22105   case $ac_mode$ac_tag in
22106   :[FHL]*:*);;
22107   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22108 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22109    { (exit 1); exit 1; }; };;
22110   :[FH]-) ac_tag=-:-;;
22111   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22112   esac
22113   ac_save_IFS=$IFS
22114   IFS=:
22115   set x $ac_tag
22116   IFS=$ac_save_IFS
22117   shift
22118   ac_file=$1
22119   shift
22120
22121   case $ac_mode in
22122   :L) ac_source=$1;;
22123   :[FH])
22124     ac_file_inputs=
22125     for ac_f
22126     do
22127       case $ac_f in
22128       -) ac_f="$tmp/stdin";;
22129       *) # Look for the file first in the build tree, then in the source tree
22130          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22131          # because $ac_f cannot contain `:'.
22132          test -f "$ac_f" ||
22133            case $ac_f in
22134            [\\/$]*) false;;
22135            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22136            esac ||
22137            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22138 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22139    { (exit 1); exit 1; }; };;
22140       esac
22141       ac_file_inputs="$ac_file_inputs $ac_f"
22142     done
22143
22144     # Let's still pretend it is `configure' which instantiates (i.e., don't
22145     # use $as_me), people would be surprised to read:
22146     #    /* config.h.  Generated by config.status.  */
22147     configure_input="Generated from "`IFS=:
22148           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22149     if test x"$ac_file" != x-; then
22150       configure_input="$ac_file.  $configure_input"
22151       { echo "$as_me:$LINENO: creating $ac_file" >&5
22152 echo "$as_me: creating $ac_file" >&6;}
22153     fi
22154
22155     case $ac_tag in
22156     *:-:* | *:-) cat >"$tmp/stdin";;
22157     esac
22158     ;;
22159   esac
22160
22161   ac_dir=`$as_dirname -- "$ac_file" ||
22162 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22163          X"$ac_file" : 'X\(//\)[^/]' \| \
22164          X"$ac_file" : 'X\(//\)$' \| \
22165          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22166 echo X"$ac_file" |
22167     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22168             s//\1/
22169             q
22170           }
22171           /^X\(\/\/\)[^/].*/{
22172             s//\1/
22173             q
22174           }
22175           /^X\(\/\/\)$/{
22176             s//\1/
22177             q
22178           }
22179           /^X\(\/\).*/{
22180             s//\1/
22181             q
22182           }
22183           s/.*/./; q'`
22184   { as_dir="$ac_dir"
22185   case $as_dir in #(
22186   -*) as_dir=./$as_dir;;
22187   esac
22188   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22189     as_dirs=
22190     while :; do
22191       case $as_dir in #(
22192       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22193       *) as_qdir=$as_dir;;
22194       esac
22195       as_dirs="'$as_qdir' $as_dirs"
22196       as_dir=`$as_dirname -- "$as_dir" ||
22197 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22198          X"$as_dir" : 'X\(//\)[^/]' \| \
22199          X"$as_dir" : 'X\(//\)$' \| \
22200          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22201 echo X"$as_dir" |
22202     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22203             s//\1/
22204             q
22205           }
22206           /^X\(\/\/\)[^/].*/{
22207             s//\1/
22208             q
22209           }
22210           /^X\(\/\/\)$/{
22211             s//\1/
22212             q
22213           }
22214           /^X\(\/\).*/{
22215             s//\1/
22216             q
22217           }
22218           s/.*/./; q'`
22219       test -d "$as_dir" && break
22220     done
22221     test -z "$as_dirs" || eval "mkdir $as_dirs"
22222   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22223 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22224    { (exit 1); exit 1; }; }; }
22225   ac_builddir=.
22226
22227 case "$ac_dir" in
22228 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22229 *)
22230   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22231   # A ".." for each directory in $ac_dir_suffix.
22232   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22233   case $ac_top_builddir_sub in
22234   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22235   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22236   esac ;;
22237 esac
22238 ac_abs_top_builddir=$ac_pwd
22239 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22240 # for backward compatibility:
22241 ac_top_builddir=$ac_top_build_prefix
22242
22243 case $srcdir in
22244   .)  # We are building in place.
22245     ac_srcdir=.
22246     ac_top_srcdir=$ac_top_builddir_sub
22247     ac_abs_top_srcdir=$ac_pwd ;;
22248   [\\/]* | ?:[\\/]* )  # Absolute name.
22249     ac_srcdir=$srcdir$ac_dir_suffix;
22250     ac_top_srcdir=$srcdir
22251     ac_abs_top_srcdir=$srcdir ;;
22252   *) # Relative name.
22253     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22254     ac_top_srcdir=$ac_top_build_prefix$srcdir
22255     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22256 esac
22257 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22258
22259
22260   case $ac_mode in
22261   :F)
22262   #
22263   # CONFIG_FILE
22264   #
22265
22266   case $INSTALL in
22267   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22268   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22269   esac
22270 _ACEOF
22271
22272 cat >>$CONFIG_STATUS <<\_ACEOF
22273 # If the template does not know about datarootdir, expand it.
22274 # FIXME: This hack should be removed a few years after 2.60.
22275 ac_datarootdir_hack=; ac_datarootdir_seen=
22276
22277 case `sed -n '/datarootdir/ {
22278   p
22279   q
22280 }
22281 /@datadir@/p
22282 /@docdir@/p
22283 /@infodir@/p
22284 /@localedir@/p
22285 /@mandir@/p
22286 ' $ac_file_inputs` in
22287 *datarootdir*) ac_datarootdir_seen=yes;;
22288 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22289   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22290 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22291 _ACEOF
22292 cat >>$CONFIG_STATUS <<_ACEOF
22293   ac_datarootdir_hack='
22294   s&@datadir@&$datadir&g
22295   s&@docdir@&$docdir&g
22296   s&@infodir@&$infodir&g
22297   s&@localedir@&$localedir&g
22298   s&@mandir@&$mandir&g
22299     s&\\\${datarootdir}&$datarootdir&g' ;;
22300 esac
22301 _ACEOF
22302
22303 # Neutralize VPATH when `$srcdir' = `.'.
22304 # Shell code in configure.ac might set extrasub.
22305 # FIXME: do we really want to maintain this feature?
22306 cat >>$CONFIG_STATUS <<_ACEOF
22307   sed "$ac_vpsub
22308 $extrasub
22309 _ACEOF
22310 cat >>$CONFIG_STATUS <<\_ACEOF
22311 :t
22312 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22313 s&@configure_input@&$configure_input&;t t
22314 s&@top_builddir@&$ac_top_builddir_sub&;t t
22315 s&@srcdir@&$ac_srcdir&;t t
22316 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22317 s&@top_srcdir@&$ac_top_srcdir&;t t
22318 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22319 s&@builddir@&$ac_builddir&;t t
22320 s&@abs_builddir@&$ac_abs_builddir&;t t
22321 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22322 s&@INSTALL@&$ac_INSTALL&;t t
22323 $ac_datarootdir_hack
22324 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22325
22326 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22327   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22328   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22329   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22330 which seems to be undefined.  Please make sure it is defined." >&5
22331 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22332 which seems to be undefined.  Please make sure it is defined." >&2;}
22333
22334   rm -f "$tmp/stdin"
22335   case $ac_file in
22336   -) cat "$tmp/out"; rm -f "$tmp/out";;
22337   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22338   esac
22339  ;;
22340   :H)
22341   #
22342   # CONFIG_HEADER
22343   #
22344 _ACEOF
22345
22346 # Transform confdefs.h into a sed script `conftest.defines', that
22347 # substitutes the proper values into config.h.in to produce config.h.
22348 rm -f conftest.defines conftest.tail
22349 # First, append a space to every undef/define line, to ease matching.
22350 echo 's/$/ /' >conftest.defines
22351 # Then, protect against being on the right side of a sed subst, or in
22352 # an unquoted here document, in config.status.  If some macros were
22353 # called several times there might be several #defines for the same
22354 # symbol, which is useless.  But do not sort them, since the last
22355 # AC_DEFINE must be honored.
22356 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22357 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22358 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22359 # PARAMS is the parameter list in the macro definition--in most cases, it's
22360 # just an empty string.
22361 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22362 ac_dB='\\)[      (].*,\\1define\\2'
22363 ac_dC=' '
22364 ac_dD=' ,'
22365
22366 uniq confdefs.h |
22367   sed -n '
22368         t rset
22369         :rset
22370         s/^[     ]*#[    ]*define[       ][      ]*//
22371         t ok
22372         d
22373         :ok
22374         s/[\\&,]/\\&/g
22375         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22376         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22377   ' >>conftest.defines
22378
22379 # Remove the space that was appended to ease matching.
22380 # Then replace #undef with comments.  This is necessary, for
22381 # example, in the case of _POSIX_SOURCE, which is predefined and required
22382 # on some systems where configure will not decide to define it.
22383 # (The regexp can be short, since the line contains either #define or #undef.)
22384 echo 's/ $//
22385 s,^[     #]*u.*,/* & */,' >>conftest.defines
22386
22387 # Break up conftest.defines:
22388 ac_max_sed_lines=50
22389
22390 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22391 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22392 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22393 # et cetera.
22394 ac_in='$ac_file_inputs'
22395 ac_out='"$tmp/out1"'
22396 ac_nxt='"$tmp/out2"'
22397
22398 while :
22399 do
22400   # Write a here document:
22401     cat >>$CONFIG_STATUS <<_ACEOF
22402     # First, check the format of the line:
22403     cat >"\$tmp/defines.sed" <<\\CEOF
22404 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22405 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22406 b
22407 :def
22408 _ACEOF
22409   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22410   echo 'CEOF
22411     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22412   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22413   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22414   grep . conftest.tail >/dev/null || break
22415   rm -f conftest.defines
22416   mv conftest.tail conftest.defines
22417 done
22418 rm -f conftest.defines conftest.tail
22419
22420 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22421 cat >>$CONFIG_STATUS <<\_ACEOF
22422   if test x"$ac_file" != x-; then
22423     echo "/* $configure_input  */" >"$tmp/config.h"
22424     cat "$ac_result" >>"$tmp/config.h"
22425     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22426       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22427 echo "$as_me: $ac_file is unchanged" >&6;}
22428     else
22429       rm -f $ac_file
22430       mv "$tmp/config.h" $ac_file
22431     fi
22432   else
22433     echo "/* $configure_input  */"
22434     cat "$ac_result"
22435   fi
22436   rm -f "$tmp/out12"
22437  ;;
22438
22439   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22440 echo "$as_me: executing $ac_file commands" >&6;}
22441  ;;
22442   esac
22443
22444
22445   case $ac_file$ac_mode in
22446     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22447    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22448     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22449    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22450     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22451    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22452     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22453    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22454     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22455    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22456     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22457    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22458     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22459    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22460     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22461    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22462     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22463    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22464     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22465    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22466     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22467    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22468     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22469    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22470     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22471    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22472
22473   esac
22474 done # for ac_tag
22475
22476
22477 { (exit 0); exit 0; }
22478 _ACEOF
22479 chmod +x $CONFIG_STATUS
22480 ac_clean_files=$ac_clean_files_save
22481
22482
22483 # configure is writing to config.log, and then calls config.status.
22484 # config.status does its own redirection, appending to config.log.
22485 # Unfortunately, on DOS this fails, as config.log is still kept open
22486 # by configure, so config.status won't be able to write to it; its
22487 # output is simply discarded.  So we exec the FD to /dev/null,
22488 # effectively closing config.log, so it can be properly (re)opened and
22489 # appended to by config.status.  When coming back to configure, we
22490 # need to make the FD available again.
22491 if test "$no_create" != yes; then
22492   ac_cs_success=:
22493   ac_config_status_args=
22494   test "$silent" = yes &&
22495     ac_config_status_args="$ac_config_status_args --quiet"
22496   exec 5>/dev/null
22497   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22498   exec 5>>config.log
22499   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22500   # would make configure fail if this is the last instruction.
22501   $ac_cs_success || { (exit 1); exit 1; }
22502 fi
22503
22504 #
22505 # CONFIG_SUBDIRS section.
22506 #
22507 if test "$no_recursion" != yes; then
22508
22509   # Remove --cache-file and --srcdir arguments so they do not pile up.
22510   ac_sub_configure_args=
22511   ac_prev=
22512   eval "set x $ac_configure_args"
22513   shift
22514   for ac_arg
22515   do
22516     if test -n "$ac_prev"; then
22517       ac_prev=
22518       continue
22519     fi
22520     case $ac_arg in
22521     -cache-file | --cache-file | --cache-fil | --cache-fi \
22522     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22523       ac_prev=cache_file ;;
22524     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22525     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22526     | --c=*)
22527       ;;
22528     --config-cache | -C)
22529       ;;
22530     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22531       ac_prev=srcdir ;;
22532     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22533       ;;
22534     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22535       ac_prev=prefix ;;
22536     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22537       ;;
22538     *)
22539       case $ac_arg in
22540       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22541       esac
22542       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22543     esac
22544   done
22545
22546   # Always prepend --prefix to ensure using the same prefix
22547   # in subdir configurations.
22548   ac_arg="--prefix=$prefix"
22549   case $ac_arg in
22550   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22551   esac
22552   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22553
22554   ac_popdir=`pwd`
22555   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22556
22557     # Do not complain, so a configure script can configure whichever
22558     # parts of a large source tree are present.
22559     test -d "$srcdir/$ac_dir" || continue
22560
22561     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22562     echo "$as_me:$LINENO: $ac_msg" >&5
22563     echo "$ac_msg" >&6
22564     { as_dir="$ac_dir"
22565   case $as_dir in #(
22566   -*) as_dir=./$as_dir;;
22567   esac
22568   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22569     as_dirs=
22570     while :; do
22571       case $as_dir in #(
22572       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22573       *) as_qdir=$as_dir;;
22574       esac
22575       as_dirs="'$as_qdir' $as_dirs"
22576       as_dir=`$as_dirname -- "$as_dir" ||
22577 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22578          X"$as_dir" : 'X\(//\)[^/]' \| \
22579          X"$as_dir" : 'X\(//\)$' \| \
22580          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22581 echo X"$as_dir" |
22582     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22583             s//\1/
22584             q
22585           }
22586           /^X\(\/\/\)[^/].*/{
22587             s//\1/
22588             q
22589           }
22590           /^X\(\/\/\)$/{
22591             s//\1/
22592             q
22593           }
22594           /^X\(\/\).*/{
22595             s//\1/
22596             q
22597           }
22598           s/.*/./; q'`
22599       test -d "$as_dir" && break
22600     done
22601     test -z "$as_dirs" || eval "mkdir $as_dirs"
22602   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22603 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22604    { (exit 1); exit 1; }; }; }
22605     ac_builddir=.
22606
22607 case "$ac_dir" in
22608 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22609 *)
22610   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22611   # A ".." for each directory in $ac_dir_suffix.
22612   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22613   case $ac_top_builddir_sub in
22614   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22615   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22616   esac ;;
22617 esac
22618 ac_abs_top_builddir=$ac_pwd
22619 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22620 # for backward compatibility:
22621 ac_top_builddir=$ac_top_build_prefix
22622
22623 case $srcdir in
22624   .)  # We are building in place.
22625     ac_srcdir=.
22626     ac_top_srcdir=$ac_top_builddir_sub
22627     ac_abs_top_srcdir=$ac_pwd ;;
22628   [\\/]* | ?:[\\/]* )  # Absolute name.
22629     ac_srcdir=$srcdir$ac_dir_suffix;
22630     ac_top_srcdir=$srcdir
22631     ac_abs_top_srcdir=$srcdir ;;
22632   *) # Relative name.
22633     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22634     ac_top_srcdir=$ac_top_build_prefix$srcdir
22635     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22636 esac
22637 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22638
22639
22640     cd "$ac_dir"
22641
22642     # Check for guested configure; otherwise get Cygnus style configure.
22643     if test -f "$ac_srcdir/configure.gnu"; then
22644       ac_sub_configure=$ac_srcdir/configure.gnu
22645     elif test -f "$ac_srcdir/configure"; then
22646       ac_sub_configure=$ac_srcdir/configure
22647     elif test -f "$ac_srcdir/configure.in"; then
22648       # This should be Cygnus configure.
22649       ac_sub_configure=$ac_aux_dir/configure
22650     else
22651       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22652 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22653       ac_sub_configure=
22654     fi
22655
22656     # The recursion is here.
22657     if test -n "$ac_sub_configure"; then
22658       # Make the cache file name correct relative to the subdirectory.
22659       case $cache_file in
22660       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22661       *) # Relative name.
22662         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22663       esac
22664
22665       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22666 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22667       # The eval makes quoting arguments work.
22668       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22669            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22670         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22671 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22672    { (exit 1); exit 1; }; }
22673     fi
22674
22675     cd "$ac_popdir"
22676   done
22677 fi
22678