fe1f0afdc46417aee5e4d4da441aef97ce3adc5d
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.2svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='LLVM'
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.2svn'
565 PACKAGE_STRING='LLVM 3.2svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 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 OPTIMIZE_OPTION
709 EXTRA_OPTIONS
710 EXTRA_LD_OPTIONS
711 CLANG_SRC_ROOT
712 BINUTILS_INCDIR
713 INTERNAL_PREFIX
714 NM
715 ifGNUmake
716 LN_S
717 CMP
718 CP
719 DATE
720 FIND
721 MKDIR
722 MV
723 RANLIB
724 AR
725 RM
726 SED
727 TAR
728 BINPWD
729 GRAPHVIZ
730 DOT
731 FDP
732 NEATO
733 TWOPI
734 CIRCO
735 GV
736 DOTTY
737 XDOT_PY
738 INSTALL_PROGRAM
739 INSTALL_SCRIPT
740 INSTALL_DATA
741 BZIP2
742 CAT
743 DOXYGEN
744 GZIPBIN
745 TCLSH
746 ZIP
747 OCAMLC
748 OCAMLOPT
749 OCAMLDEP
750 OCAMLDOC
751 HAVE_LINK_VERSION_SCRIPT
752 INSTALL_LTDL_TRUE
753 INSTALL_LTDL_FALSE
754 CONVENIENCE_LTDL_TRUE
755 CONVENIENCE_LTDL_FALSE
756 LIBADD_DL
757 NO_VARIADIC_MACROS
758 NO_MISSING_FIELD_INITIALIZERS
759 COVERED_SWITCH_DEFAULT
760 USE_UDIS86
761 USE_OPROFILE
762 USE_INTEL_JITEVENTS
763 INTEL_JITEVENTS_INCDIR
764 INTEL_JITEVENTS_LIBDIR
765 HAVE_PTHREAD
766 HUGE_VAL_SANITY
767 MMAP_FILE
768 SHLIBEXT
769 SHLIBPATH_VAR
770 LLVM_PREFIX
771 LLVM_BINDIR
772 LLVM_LIBDIR
773 LLVM_DATADIR
774 LLVM_DOCSDIR
775 LLVM_ETCDIR
776 LLVM_INCLUDEDIR
777 LLVM_INFODIR
778 LLVM_MANDIR
779 LLVM_CONFIGTIME
780 BINDINGS_TO_BUILD
781 ALL_BINDINGS
782 OCAML_LIBDIR
783 ENABLE_VISIBILITY_INLINES_HIDDEN
784 RPATH
785 RDYNAMIC
786 LIBOBJS
787 LTLIBOBJS'
788 ac_subst_files=''
789       ac_precious_vars='build_alias
790 host_alias
791 target_alias
792 CC
793 CFLAGS
794 LDFLAGS
795 CPPFLAGS
796 CXX
797 CXXFLAGS
798 CCC
799 CPP'
800 ac_subdirs_all='projects/llvm-gcc
801 projects/test-suite
802 projects/llvm-test
803 projects/poolalloc
804 projects/llvm-poolalloc
805 projects/sample
806 projects/privbracket
807 projects/llvm-stacker
808 projects/llvm-reopt
809 projects/llvm-java
810 projects/llvm-tv
811 projects/safecode
812 projects/llvm-kernel
813 tools/polly'
814
815 # Initialize some variables set by options.
816 ac_init_help=
817 ac_init_version=false
818 # The variables have the same names as the options, with
819 # dashes changed to underlines.
820 cache_file=/dev/null
821 exec_prefix=NONE
822 no_create=
823 no_recursion=
824 prefix=NONE
825 program_prefix=NONE
826 program_suffix=NONE
827 program_transform_name=s,x,x,
828 silent=
829 site=
830 srcdir=
831 verbose=
832 x_includes=NONE
833 x_libraries=NONE
834
835 # Installation directory options.
836 # These are left unexpanded so users can "make install exec_prefix=/foo"
837 # and all the variables that are supposed to be based on exec_prefix
838 # by default will actually change.
839 # Use braces instead of parens because sh, perl, etc. also accept them.
840 # (The list follows the same order as the GNU Coding Standards.)
841 bindir='${exec_prefix}/bin'
842 sbindir='${exec_prefix}/sbin'
843 libexecdir='${exec_prefix}/libexec'
844 datarootdir='${prefix}/share'
845 datadir='${datarootdir}'
846 sysconfdir='${prefix}/etc'
847 sharedstatedir='${prefix}/com'
848 localstatedir='${prefix}/var'
849 includedir='${prefix}/include'
850 oldincludedir='/usr/include'
851 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
852 infodir='${datarootdir}/info'
853 htmldir='${docdir}'
854 dvidir='${docdir}'
855 pdfdir='${docdir}'
856 psdir='${docdir}'
857 libdir='${exec_prefix}/lib'
858 localedir='${datarootdir}/locale'
859 mandir='${datarootdir}/man'
860
861 ac_prev=
862 ac_dashdash=
863 for ac_option
864 do
865   # If the previous option needs an argument, assign it.
866   if test -n "$ac_prev"; then
867     eval $ac_prev=\$ac_option
868     ac_prev=
869     continue
870   fi
871
872   case $ac_option in
873   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
874   *)    ac_optarg=yes ;;
875   esac
876
877   # Accept the important Cygnus configure options, so we can diagnose typos.
878
879   case $ac_dashdash$ac_option in
880   --)
881     ac_dashdash=yes ;;
882
883   -bindir | --bindir | --bindi | --bind | --bin | --bi)
884     ac_prev=bindir ;;
885   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
886     bindir=$ac_optarg ;;
887
888   -build | --build | --buil | --bui | --bu)
889     ac_prev=build_alias ;;
890   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
891     build_alias=$ac_optarg ;;
892
893   -cache-file | --cache-file | --cache-fil | --cache-fi \
894   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
895     ac_prev=cache_file ;;
896   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
897   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
898     cache_file=$ac_optarg ;;
899
900   --config-cache | -C)
901     cache_file=config.cache ;;
902
903   -datadir | --datadir | --datadi | --datad)
904     ac_prev=datadir ;;
905   -datadir=* | --datadir=* | --datadi=* | --datad=*)
906     datadir=$ac_optarg ;;
907
908   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
909   | --dataroo | --dataro | --datar)
910     ac_prev=datarootdir ;;
911   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
912   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
913     datarootdir=$ac_optarg ;;
914
915   -disable-* | --disable-*)
916     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
917     # Reject names that are not valid shell variable names.
918     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
919       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
920    { (exit 1); exit 1; }; }
921     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
922     eval enable_$ac_feature=no ;;
923
924   -docdir | --docdir | --docdi | --doc | --do)
925     ac_prev=docdir ;;
926   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927     docdir=$ac_optarg ;;
928
929   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930     ac_prev=dvidir ;;
931   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932     dvidir=$ac_optarg ;;
933
934   -enable-* | --enable-*)
935     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936     # Reject names that are not valid shell variable names.
937     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
938       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
939    { (exit 1); exit 1; }; }
940     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
941     eval enable_$ac_feature=\$ac_optarg ;;
942
943   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945   | --exec | --exe | --ex)
946     ac_prev=exec_prefix ;;
947   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949   | --exec=* | --exe=* | --ex=*)
950     exec_prefix=$ac_optarg ;;
951
952   -gas | --gas | --ga | --g)
953     # Obsolete; use --with-gas.
954     with_gas=yes ;;
955
956   -help | --help | --hel | --he | -h)
957     ac_init_help=long ;;
958   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959     ac_init_help=recursive ;;
960   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961     ac_init_help=short ;;
962
963   -host | --host | --hos | --ho)
964     ac_prev=host_alias ;;
965   -host=* | --host=* | --hos=* | --ho=*)
966     host_alias=$ac_optarg ;;
967
968   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969     ac_prev=htmldir ;;
970   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971   | --ht=*)
972     htmldir=$ac_optarg ;;
973
974   -includedir | --includedir | --includedi | --included | --include \
975   | --includ | --inclu | --incl | --inc)
976     ac_prev=includedir ;;
977   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978   | --includ=* | --inclu=* | --incl=* | --inc=*)
979     includedir=$ac_optarg ;;
980
981   -infodir | --infodir | --infodi | --infod | --info | --inf)
982     ac_prev=infodir ;;
983   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984     infodir=$ac_optarg ;;
985
986   -libdir | --libdir | --libdi | --libd)
987     ac_prev=libdir ;;
988   -libdir=* | --libdir=* | --libdi=* | --libd=*)
989     libdir=$ac_optarg ;;
990
991   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992   | --libexe | --libex | --libe)
993     ac_prev=libexecdir ;;
994   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995   | --libexe=* | --libex=* | --libe=*)
996     libexecdir=$ac_optarg ;;
997
998   -localedir | --localedir | --localedi | --localed | --locale)
999     ac_prev=localedir ;;
1000   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001     localedir=$ac_optarg ;;
1002
1003   -localstatedir | --localstatedir | --localstatedi | --localstated \
1004   | --localstate | --localstat | --localsta | --localst | --locals)
1005     ac_prev=localstatedir ;;
1006   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008     localstatedir=$ac_optarg ;;
1009
1010   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011     ac_prev=mandir ;;
1012   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013     mandir=$ac_optarg ;;
1014
1015   -nfp | --nfp | --nf)
1016     # Obsolete; use --without-fp.
1017     with_fp=no ;;
1018
1019   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020   | --no-cr | --no-c | -n)
1021     no_create=yes ;;
1022
1023   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025     no_recursion=yes ;;
1026
1027   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029   | --oldin | --oldi | --old | --ol | --o)
1030     ac_prev=oldincludedir ;;
1031   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034     oldincludedir=$ac_optarg ;;
1035
1036   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037     ac_prev=prefix ;;
1038   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039     prefix=$ac_optarg ;;
1040
1041   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042   | --program-pre | --program-pr | --program-p)
1043     ac_prev=program_prefix ;;
1044   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046     program_prefix=$ac_optarg ;;
1047
1048   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049   | --program-suf | --program-su | --program-s)
1050     ac_prev=program_suffix ;;
1051   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053     program_suffix=$ac_optarg ;;
1054
1055   -program-transform-name | --program-transform-name \
1056   | --program-transform-nam | --program-transform-na \
1057   | --program-transform-n | --program-transform- \
1058   | --program-transform | --program-transfor \
1059   | --program-transfo | --program-transf \
1060   | --program-trans | --program-tran \
1061   | --progr-tra | --program-tr | --program-t)
1062     ac_prev=program_transform_name ;;
1063   -program-transform-name=* | --program-transform-name=* \
1064   | --program-transform-nam=* | --program-transform-na=* \
1065   | --program-transform-n=* | --program-transform-=* \
1066   | --program-transform=* | --program-transfor=* \
1067   | --program-transfo=* | --program-transf=* \
1068   | --program-trans=* | --program-tran=* \
1069   | --progr-tra=* | --program-tr=* | --program-t=*)
1070     program_transform_name=$ac_optarg ;;
1071
1072   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073     ac_prev=pdfdir ;;
1074   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075     pdfdir=$ac_optarg ;;
1076
1077   -psdir | --psdir | --psdi | --psd | --ps)
1078     ac_prev=psdir ;;
1079   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080     psdir=$ac_optarg ;;
1081
1082   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083   | -silent | --silent | --silen | --sile | --sil)
1084     silent=yes ;;
1085
1086   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1087     ac_prev=sbindir ;;
1088   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1089   | --sbi=* | --sb=*)
1090     sbindir=$ac_optarg ;;
1091
1092   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1093   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1094   | --sharedst | --shareds | --shared | --share | --shar \
1095   | --sha | --sh)
1096     ac_prev=sharedstatedir ;;
1097   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1098   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1099   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1100   | --sha=* | --sh=*)
1101     sharedstatedir=$ac_optarg ;;
1102
1103   -site | --site | --sit)
1104     ac_prev=site ;;
1105   -site=* | --site=* | --sit=*)
1106     site=$ac_optarg ;;
1107
1108   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1109     ac_prev=srcdir ;;
1110   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1111     srcdir=$ac_optarg ;;
1112
1113   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1114   | --syscon | --sysco | --sysc | --sys | --sy)
1115     ac_prev=sysconfdir ;;
1116   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1117   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1118     sysconfdir=$ac_optarg ;;
1119
1120   -target | --target | --targe | --targ | --tar | --ta | --t)
1121     ac_prev=target_alias ;;
1122   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1123     target_alias=$ac_optarg ;;
1124
1125   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1126     verbose=yes ;;
1127
1128   -version | --version | --versio | --versi | --vers | -V)
1129     ac_init_version=: ;;
1130
1131   -with-* | --with-*)
1132     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1133     # Reject names that are not valid shell variable names.
1134     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1135       { echo "$as_me: error: invalid package name: $ac_package" >&2
1136    { (exit 1); exit 1; }; }
1137     ac_package=`echo $ac_package| sed 's/-/_/g'`
1138     eval with_$ac_package=\$ac_optarg ;;
1139
1140   -without-* | --without-*)
1141     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1142     # Reject names that are not valid shell variable names.
1143     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1144       { echo "$as_me: error: invalid package name: $ac_package" >&2
1145    { (exit 1); exit 1; }; }
1146     ac_package=`echo $ac_package | sed 's/-/_/g'`
1147     eval with_$ac_package=no ;;
1148
1149   --x)
1150     # Obsolete; use --with-x.
1151     with_x=yes ;;
1152
1153   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1154   | --x-incl | --x-inc | --x-in | --x-i)
1155     ac_prev=x_includes ;;
1156   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1157   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1158     x_includes=$ac_optarg ;;
1159
1160   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1161   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1162     ac_prev=x_libraries ;;
1163   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1164   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1165     x_libraries=$ac_optarg ;;
1166
1167   -*) { echo "$as_me: error: unrecognized option: $ac_option
1168 Try \`$0 --help' for more information." >&2
1169    { (exit 1); exit 1; }; }
1170     ;;
1171
1172   *=*)
1173     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1174     # Reject names that are not valid shell variable names.
1175     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1176       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1177    { (exit 1); exit 1; }; }
1178     eval $ac_envvar=\$ac_optarg
1179     export $ac_envvar ;;
1180
1181   *)
1182     # FIXME: should be removed in autoconf 3.0.
1183     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1184     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1185       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1186     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1187     ;;
1188
1189   esac
1190 done
1191
1192 if test -n "$ac_prev"; then
1193   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1194   { echo "$as_me: error: missing argument to $ac_option" >&2
1195    { (exit 1); exit 1; }; }
1196 fi
1197
1198 # Be sure to have absolute directory names.
1199 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200                 datadir sysconfdir sharedstatedir localstatedir includedir \
1201                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202                 libdir localedir mandir
1203 do
1204   eval ac_val=\$$ac_var
1205   case $ac_val in
1206     [\\/$]* | ?:[\\/]* )  continue;;
1207     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1208   esac
1209   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1210    { (exit 1); exit 1; }; }
1211 done
1212
1213 # There might be people who depend on the old broken behavior: `$host'
1214 # used to hold the argument of --host etc.
1215 # FIXME: To remove some day.
1216 build=$build_alias
1217 host=$host_alias
1218 target=$target_alias
1219
1220 # FIXME: To remove some day.
1221 if test "x$host_alias" != x; then
1222   if test "x$build_alias" = x; then
1223     cross_compiling=maybe
1224     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1225     If a cross compiler is detected then cross compile mode will be used." >&2
1226   elif test "x$build_alias" != "x$host_alias"; then
1227     cross_compiling=yes
1228   fi
1229 fi
1230
1231 ac_tool_prefix=
1232 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1233
1234 test "$silent" = yes && exec 6>/dev/null
1235
1236
1237 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1238 ac_ls_di=`ls -di .` &&
1239 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1240   { echo "$as_me: error: Working directory cannot be determined" >&2
1241    { (exit 1); exit 1; }; }
1242 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1243   { echo "$as_me: error: pwd does not report name of working directory" >&2
1244    { (exit 1); exit 1; }; }
1245
1246
1247 # Find the source files, if location was not specified.
1248 if test -z "$srcdir"; then
1249   ac_srcdir_defaulted=yes
1250   # Try the directory containing this script, then the parent directory.
1251   ac_confdir=`$as_dirname -- "$0" ||
1252 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1253          X"$0" : 'X\(//\)[^/]' \| \
1254          X"$0" : 'X\(//\)$' \| \
1255          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1256 echo X"$0" |
1257     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1258             s//\1/
1259             q
1260           }
1261           /^X\(\/\/\)[^/].*/{
1262             s//\1/
1263             q
1264           }
1265           /^X\(\/\/\)$/{
1266             s//\1/
1267             q
1268           }
1269           /^X\(\/\).*/{
1270             s//\1/
1271             q
1272           }
1273           s/.*/./; q'`
1274   srcdir=$ac_confdir
1275   if test ! -r "$srcdir/$ac_unique_file"; then
1276     srcdir=..
1277   fi
1278 else
1279   ac_srcdir_defaulted=no
1280 fi
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1282   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1283   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1284    { (exit 1); exit 1; }; }
1285 fi
1286 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1287 ac_abs_confdir=`(
1288         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1289    { (exit 1); exit 1; }; }
1290         pwd)`
1291 # When building in place, set srcdir=.
1292 if test "$ac_abs_confdir" = "$ac_pwd"; then
1293   srcdir=.
1294 fi
1295 # Remove unnecessary trailing slashes from srcdir.
1296 # Double slashes in file names in object file debugging info
1297 # mess up M-x gdb in Emacs.
1298 case $srcdir in
1299 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1300 esac
1301 for ac_var in $ac_precious_vars; do
1302   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1303   eval ac_env_${ac_var}_value=\$${ac_var}
1304   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1305   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1306 done
1307
1308 #
1309 # Report the --help message.
1310 #
1311 if test "$ac_init_help" = "long"; then
1312   # Omit some internal or obsolete options to make the list less imposing.
1313   # This message is too long to be a string in the A/UX 3.1 sh.
1314   cat <<_ACEOF
1315 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1316
1317 Usage: $0 [OPTION]... [VAR=VALUE]...
1318
1319 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1320 VAR=VALUE.  See below for descriptions of some of the useful variables.
1321
1322 Defaults for the options are specified in brackets.
1323
1324 Configuration:
1325   -h, --help              display this help and exit
1326       --help=short        display options specific to this package
1327       --help=recursive    display the short help of all the included packages
1328   -V, --version           display version information and exit
1329   -q, --quiet, --silent   do not print \`checking...' messages
1330       --cache-file=FILE   cache test results in FILE [disabled]
1331   -C, --config-cache      alias for \`--cache-file=config.cache'
1332   -n, --no-create         do not create output files
1333       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1334
1335 Installation directories:
1336   --prefix=PREFIX         install architecture-independent files in PREFIX
1337                           [$ac_default_prefix]
1338   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1339                           [PREFIX]
1340
1341 By default, \`make install' will install all the files in
1342 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1343 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1344 for instance \`--prefix=\$HOME'.
1345
1346 For better control, use the options below.
1347
1348 Fine tuning of the installation directories:
1349   --bindir=DIR           user executables [EPREFIX/bin]
1350   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1351   --libexecdir=DIR       program executables [EPREFIX/libexec]
1352   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1353   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1354   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1355   --libdir=DIR           object code libraries [EPREFIX/lib]
1356   --includedir=DIR       C header files [PREFIX/include]
1357   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1358   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1359   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1360   --infodir=DIR          info documentation [DATAROOTDIR/info]
1361   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1362   --mandir=DIR           man documentation [DATAROOTDIR/man]
1363   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1364   --htmldir=DIR          html documentation [DOCDIR]
1365   --dvidir=DIR           dvi documentation [DOCDIR]
1366   --pdfdir=DIR           pdf documentation [DOCDIR]
1367   --psdir=DIR            ps documentation [DOCDIR]
1368 _ACEOF
1369
1370   cat <<\_ACEOF
1371
1372 System types:
1373   --build=BUILD     configure for building on BUILD [guessed]
1374   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1375   --target=TARGET   configure for building compilers for TARGET [HOST]
1376 _ACEOF
1377 fi
1378
1379 if test -n "$ac_init_help"; then
1380   case $ac_init_help in
1381      short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1382    esac
1383   cat <<\_ACEOF
1384
1385 Optional Features:
1386   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1387   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1388   --enable-polly          Use polly if available (default is YES)
1389   --enable-libcpp         Use libc++ if available (default is NO)
1390   --enable-optimized      Compile with optimizations enabled (default is NO)
1391   --enable-profiling      Compile with profiling enabled (default is NO)
1392   --enable-assertions     Compile with assertion checks enabled (default is
1393                           YES)
1394   --enable-expensive-checks
1395                           Compile with expensive debug checks enabled (default
1396                           is NO)
1397   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1398                           NO)
1399   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1400                           optimization is on and YES if it's off)
1401   --enable-jit            Enable Just In Time Compiling (default is YES)
1402   --enable-docs           Build documents (default is YES)
1403   --enable-doxygen        Build doxygen documentation (default is NO)
1404   --enable-threads        Use threads if available (default is YES)
1405   --enable-pthreads       Use pthreads if available (default is YES)
1406   --enable-pic            Build LLVM with Position Independent Code (default
1407                           is YES)
1408   --enable-shared         Build a shared library and link tools against it
1409                           (default is NO)
1410   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1411                           Win32 DLL (default is NO)
1412   --enable-timestamps     Enable embedding timestamp information in build
1413                           (default is YES)
1414   --enable-targets        Build specific host targets: all or
1415                           target1,target2,... Valid targets are: host, x86,
1416                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1417                           xcore, msp430, ptx, nvptx, and cpp (default=all)
1418   --enable-bindings       Build specific language bindings:
1419                           all,auto,none,{binding-name} (default=auto)
1420   --enable-libffi         Check for the presence of libffi (default is NO)
1421   --enable-ltdl-install   install libltdl
1422
1423 Optional Packages:
1424   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1425   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1426   --with-optimize-option  Select the compiler options to use for optimized
1427                           builds
1428   --with-extra-options    Specify additional options to compile LLVM with
1429   --with-extra-ld-options Specify additional options to link LLVM with
1430   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1431                           is stdlib)
1432   --with-clang-srcdir     Directory to the out-of-tree Clang source
1433   --with-clang-resource-dir
1434                           Relative directory from the Clang binary for
1435                           resource files
1436   --with-c-include-dirs   Colon separated list of directories clang will
1437                           search for headers
1438   --with-gcc-toolchain    Directory where gcc is installed.
1439   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1440   --with-binutils-include Specify path to binutils/include/ containing
1441                           plugin-api.h file for gold plugin.
1442   --with-bug-report-url   Specify the URL where bug reports should be
1443                           submitted (default=http://llvm.org/bugs/)
1444   --with-internal-prefix  Installation directory for internal files
1445   --with-tclinclude       directory where tcl headers are
1446   --with-udis86=<path>    Use udis86 external x86 disassembler library
1447   --with-oprofile=<prefix>
1448                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1449   --with-intel-jitevents=<vtune-amplifier-dir>
1450                           Specify location of run-time support library for
1451                           Intel JIT API
1452                           (default=/opt/intel/vtune_amplifier_xe_2011)
1453
1454 Some influential environment variables:
1455   CC          C compiler command
1456   CFLAGS      C compiler flags
1457   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1458               nonstandard directory <lib dir>
1459   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1460               you have headers in a nonstandard directory <include dir>
1461   CXX         C++ compiler command
1462   CXXFLAGS    C++ compiler flags
1463   CPP         C preprocessor
1464
1465 Use these variables to override the choices made by `configure' or to help
1466 it to find libraries and programs with nonstandard names/locations.
1467
1468 Report bugs to <http://llvm.org/bugs/>.
1469 _ACEOF
1470 ac_status=$?
1471 fi
1472
1473 if test "$ac_init_help" = "recursive"; then
1474   # If there are subdirs, report their specific --help.
1475   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1476     test -d "$ac_dir" || continue
1477     ac_builddir=.
1478
1479 case "$ac_dir" in
1480 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 *)
1482   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1483   # A ".." for each directory in $ac_dir_suffix.
1484   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1485   case $ac_top_builddir_sub in
1486   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1488   esac ;;
1489 esac
1490 ac_abs_top_builddir=$ac_pwd
1491 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1492 # for backward compatibility:
1493 ac_top_builddir=$ac_top_build_prefix
1494
1495 case $srcdir in
1496   .)  # We are building in place.
1497     ac_srcdir=.
1498     ac_top_srcdir=$ac_top_builddir_sub
1499     ac_abs_top_srcdir=$ac_pwd ;;
1500   [\\/]* | ?:[\\/]* )  # Absolute name.
1501     ac_srcdir=$srcdir$ac_dir_suffix;
1502     ac_top_srcdir=$srcdir
1503     ac_abs_top_srcdir=$srcdir ;;
1504   *) # Relative name.
1505     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1506     ac_top_srcdir=$ac_top_build_prefix$srcdir
1507     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1508 esac
1509 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1510
1511     cd "$ac_dir" || { ac_status=$?; continue; }
1512     # Check for guested configure.
1513     if test -f "$ac_srcdir/configure.gnu"; then
1514       echo &&
1515       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1516     elif test -f "$ac_srcdir/configure"; then
1517       echo &&
1518       $SHELL "$ac_srcdir/configure" --help=recursive
1519     else
1520       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1521     fi || ac_status=$?
1522     cd "$ac_pwd" || { ac_status=$?; break; }
1523   done
1524 fi
1525
1526 test -n "$ac_init_help" && exit $ac_status
1527 if $ac_init_version; then
1528   cat <<\_ACEOF
1529 LLVM configure 3.2svn
1530 generated by GNU Autoconf 2.60
1531
1532 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1533 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1534 This configure script is free software; the Free Software Foundation
1535 gives unlimited permission to copy, distribute and modify it.
1536
1537 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1538 _ACEOF
1539   exit
1540 fi
1541 cat >config.log <<_ACEOF
1542 This file contains any messages produced by compilers while
1543 running configure, to aid debugging if configure makes a mistake.
1544
1545 It was created by LLVM $as_me 3.2svn, which was
1546 generated by GNU Autoconf 2.60.  Invocation command line was
1547
1548   $ $0 $@
1549
1550 _ACEOF
1551 exec 5>>config.log
1552 {
1553 cat <<_ASUNAME
1554 ## --------- ##
1555 ## Platform. ##
1556 ## --------- ##
1557
1558 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1559 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1560 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1561 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1562 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1563
1564 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1565 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1566
1567 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1568 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1569 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1570 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1571 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1572 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1573 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1574
1575 _ASUNAME
1576
1577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578 for as_dir in $PATH
1579 do
1580   IFS=$as_save_IFS
1581   test -z "$as_dir" && as_dir=.
1582   echo "PATH: $as_dir"
1583 done
1584 IFS=$as_save_IFS
1585
1586 } >&5
1587
1588 cat >&5 <<_ACEOF
1589
1590
1591 ## ----------- ##
1592 ## Core tests. ##
1593 ## ----------- ##
1594
1595 _ACEOF
1596
1597
1598 # Keep a trace of the command line.
1599 # Strip out --no-create and --no-recursion so they do not pile up.
1600 # Strip out --silent because we don't want to record it for future runs.
1601 # Also quote any args containing shell meta-characters.
1602 # Make two passes to allow for proper duplicate-argument suppression.
1603 ac_configure_args=
1604 ac_configure_args0=
1605 ac_configure_args1=
1606 ac_must_keep_next=false
1607 for ac_pass in 1 2
1608 do
1609   for ac_arg
1610   do
1611     case $ac_arg in
1612     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1613     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1614     | -silent | --silent | --silen | --sile | --sil)
1615       continue ;;
1616     *\'*)
1617       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1618     esac
1619     case $ac_pass in
1620     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1621     2)
1622       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1623       if test $ac_must_keep_next = true; then
1624         ac_must_keep_next=false # Got value, back to normal.
1625       else
1626         case $ac_arg in
1627           *=* | --config-cache | -C | -disable-* | --disable-* \
1628           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1629           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1630           | -with-* | --with-* | -without-* | --without-* | --x)
1631             case "$ac_configure_args0 " in
1632               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1633             esac
1634             ;;
1635           -* ) ac_must_keep_next=true ;;
1636         esac
1637       fi
1638       ac_configure_args="$ac_configure_args '$ac_arg'"
1639       ;;
1640     esac
1641   done
1642 done
1643 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1644 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1645
1646 # When interrupted or exit'd, cleanup temporary files, and complete
1647 # config.log.  We remove comments because anyway the quotes in there
1648 # would cause problems or look ugly.
1649 # WARNING: Use '\'' to represent an apostrophe within the trap.
1650 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1651 trap 'exit_status=$?
1652   # Save into config.log some information that might help in debugging.
1653   {
1654     echo
1655
1656     cat <<\_ASBOX
1657 ## ---------------- ##
1658 ## Cache variables. ##
1659 ## ---------------- ##
1660 _ASBOX
1661     echo
1662     # The following way of writing the cache mishandles newlines in values,
1663 (
1664   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1665     eval ac_val=\$$ac_var
1666     case $ac_val in #(
1667     *${as_nl}*)
1668       case $ac_var in #(
1669       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1670 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1671       esac
1672       case $ac_var in #(
1673       _ | IFS | as_nl) ;; #(
1674       *) $as_unset $ac_var ;;
1675       esac ;;
1676     esac
1677   done
1678   (set) 2>&1 |
1679     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1680     *${as_nl}ac_space=\ *)
1681       sed -n \
1682         "s/'\''/'\''\\\\'\'''\''/g;
1683           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1684       ;; #(
1685     *)
1686       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1687       ;;
1688     esac |
1689     sort
1690 )
1691     echo
1692
1693     cat <<\_ASBOX
1694 ## ----------------- ##
1695 ## Output variables. ##
1696 ## ----------------- ##
1697 _ASBOX
1698     echo
1699     for ac_var in $ac_subst_vars
1700     do
1701       eval ac_val=\$$ac_var
1702       case $ac_val in
1703       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1704       esac
1705       echo "$ac_var='\''$ac_val'\''"
1706     done | sort
1707     echo
1708
1709     if test -n "$ac_subst_files"; then
1710       cat <<\_ASBOX
1711 ## ------------------- ##
1712 ## File substitutions. ##
1713 ## ------------------- ##
1714 _ASBOX
1715       echo
1716       for ac_var in $ac_subst_files
1717       do
1718         eval ac_val=\$$ac_var
1719         case $ac_val in
1720         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1721         esac
1722         echo "$ac_var='\''$ac_val'\''"
1723       done | sort
1724       echo
1725     fi
1726
1727     if test -s confdefs.h; then
1728       cat <<\_ASBOX
1729 ## ----------- ##
1730 ## confdefs.h. ##
1731 ## ----------- ##
1732 _ASBOX
1733       echo
1734       cat confdefs.h
1735       echo
1736     fi
1737     test "$ac_signal" != 0 &&
1738       echo "$as_me: caught signal $ac_signal"
1739     echo "$as_me: exit $exit_status"
1740   } >&5
1741   rm -f core *.core core.conftest.* &&
1742     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1743     exit $exit_status
1744 ' 0
1745 for ac_signal in 1 2 13 15; do
1746   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1747 done
1748 ac_signal=0
1749
1750 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1751 rm -f -r conftest* confdefs.h
1752
1753 # Predefined preprocessor variables.
1754
1755 cat >>confdefs.h <<_ACEOF
1756 #define PACKAGE_NAME "$PACKAGE_NAME"
1757 _ACEOF
1758
1759
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1762 _ACEOF
1763
1764
1765 cat >>confdefs.h <<_ACEOF
1766 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1767 _ACEOF
1768
1769
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_STRING "$PACKAGE_STRING"
1772 _ACEOF
1773
1774
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1777 _ACEOF
1778
1779
1780 # Let the site file select an alternate cache file if it wants to.
1781 # Prefer explicitly selected file to automatically selected ones.
1782 if test -n "$CONFIG_SITE"; then
1783   set x "$CONFIG_SITE"
1784 elif test "x$prefix" != xNONE; then
1785   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1786 else
1787   set x "$ac_default_prefix/share/config.site" \
1788         "$ac_default_prefix/etc/config.site"
1789 fi
1790 shift
1791 for ac_site_file
1792 do
1793   if test -r "$ac_site_file"; then
1794     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1795 echo "$as_me: loading site script $ac_site_file" >&6;}
1796     sed 's/^/| /' "$ac_site_file" >&5
1797     . "$ac_site_file"
1798   fi
1799 done
1800
1801 if test -r "$cache_file"; then
1802   # Some versions of bash will fail to source /dev/null (special
1803   # files actually), so we avoid doing that.
1804   if test -f "$cache_file"; then
1805     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1806 echo "$as_me: loading cache $cache_file" >&6;}
1807     case $cache_file in
1808       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1809       *)                      . "./$cache_file";;
1810     esac
1811   fi
1812 else
1813   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1814 echo "$as_me: creating cache $cache_file" >&6;}
1815   >$cache_file
1816 fi
1817
1818 # Check that the precious variables saved in the cache have kept the same
1819 # value.
1820 ac_cache_corrupted=false
1821 for ac_var in $ac_precious_vars; do
1822   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1823   eval ac_new_set=\$ac_env_${ac_var}_set
1824   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1825   eval ac_new_val=\$ac_env_${ac_var}_value
1826   case $ac_old_set,$ac_new_set in
1827     set,)
1828       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1829 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1830       ac_cache_corrupted=: ;;
1831     ,set)
1832       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1833 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1834       ac_cache_corrupted=: ;;
1835     ,);;
1836     *)
1837       if test "x$ac_old_val" != "x$ac_new_val"; then
1838         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1839 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1840         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1841 echo "$as_me:   former value:  $ac_old_val" >&2;}
1842         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1843 echo "$as_me:   current value: $ac_new_val" >&2;}
1844         ac_cache_corrupted=:
1845       fi;;
1846   esac
1847   # Pass precious variables to config.status.
1848   if test "$ac_new_set" = set; then
1849     case $ac_new_val in
1850     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1851     *) ac_arg=$ac_var=$ac_new_val ;;
1852     esac
1853     case " $ac_configure_args " in
1854       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1855       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1856     esac
1857   fi
1858 done
1859 if $ac_cache_corrupted; then
1860   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1861 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1862   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1863 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1864    { (exit 1); exit 1; }; }
1865 fi
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891 ac_ext=c
1892 ac_cpp='$CPP $CPPFLAGS'
1893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1896
1897
1898
1899 cat >>confdefs.h <<\_ACEOF
1900 #define LLVM_VERSION_MAJOR 3
1901 _ACEOF
1902
1903
1904 cat >>confdefs.h <<\_ACEOF
1905 #define LLVM_VERSION_MINOR 2
1906 _ACEOF
1907
1908
1909 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1910
1911
1912
1913
1914
1915
1916
1917 ac_aux_dir=
1918 for ac_dir in autoconf "$srcdir"/autoconf; do
1919   if test -f "$ac_dir/install-sh"; then
1920     ac_aux_dir=$ac_dir
1921     ac_install_sh="$ac_aux_dir/install-sh -c"
1922     break
1923   elif test -f "$ac_dir/install.sh"; then
1924     ac_aux_dir=$ac_dir
1925     ac_install_sh="$ac_aux_dir/install.sh -c"
1926     break
1927   elif test -f "$ac_dir/shtool"; then
1928     ac_aux_dir=$ac_dir
1929     ac_install_sh="$ac_aux_dir/shtool install -c"
1930     break
1931   fi
1932 done
1933 if test -z "$ac_aux_dir"; then
1934   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1935 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1936    { (exit 1); exit 1; }; }
1937 fi
1938
1939 # These three variables are undocumented and unsupported,
1940 # and are intended to be withdrawn in a future Autoconf release.
1941 # They can cause serious problems if a builder's source tree is in a directory
1942 # whose full name contains unusual characters.
1943 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1944 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1945 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1946
1947
1948
1949 if test ${srcdir} != "." ; then
1950   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1951     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1952 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1953    { (exit 1); exit 1; }; }
1954   fi
1955 fi
1956
1957 ac_ext=c
1958 ac_cpp='$CPP $CPPFLAGS'
1959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1962 if test -n "$ac_tool_prefix"; then
1963   for ac_prog in clang llvm-gcc gcc
1964   do
1965     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1969 if test "${ac_cv_prog_CC+set}" = set; then
1970   echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972   if test -n "$CC"; then
1973   ac_cv_prog_CC="$CC" # Let the user override the test.
1974 else
1975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 for as_dir in $PATH
1977 do
1978   IFS=$as_save_IFS
1979   test -z "$as_dir" && as_dir=.
1980   for ac_exec_ext in '' $ac_executable_extensions; do
1981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1982     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984     break 2
1985   fi
1986 done
1987 done
1988 IFS=$as_save_IFS
1989
1990 fi
1991 fi
1992 CC=$ac_cv_prog_CC
1993 if test -n "$CC"; then
1994   { echo "$as_me:$LINENO: result: $CC" >&5
1995 echo "${ECHO_T}$CC" >&6; }
1996 else
1997   { echo "$as_me:$LINENO: result: no" >&5
1998 echo "${ECHO_T}no" >&6; }
1999 fi
2000
2001
2002     test -n "$CC" && break
2003   done
2004 fi
2005 if test -z "$CC"; then
2006   ac_ct_CC=$CC
2007   for ac_prog in clang llvm-gcc gcc
2008 do
2009   # Extract the first word of "$ac_prog", so it can be a program name with args.
2010 set dummy $ac_prog; ac_word=$2
2011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2013 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2014   echo $ECHO_N "(cached) $ECHO_C" >&6
2015 else
2016   if test -n "$ac_ct_CC"; then
2017   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2018 else
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2021 do
2022   IFS=$as_save_IFS
2023   test -z "$as_dir" && as_dir=.
2024   for ac_exec_ext in '' $ac_executable_extensions; do
2025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2026     ac_cv_prog_ac_ct_CC="$ac_prog"
2027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028     break 2
2029   fi
2030 done
2031 done
2032 IFS=$as_save_IFS
2033
2034 fi
2035 fi
2036 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2037 if test -n "$ac_ct_CC"; then
2038   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2039 echo "${ECHO_T}$ac_ct_CC" >&6; }
2040 else
2041   { echo "$as_me:$LINENO: result: no" >&5
2042 echo "${ECHO_T}no" >&6; }
2043 fi
2044
2045
2046   test -n "$ac_ct_CC" && break
2047 done
2048
2049   if test "x$ac_ct_CC" = x; then
2050     CC=""
2051   else
2052     case $cross_compiling:$ac_tool_warned in
2053 yes:)
2054 { echo "$as_me:$LINENO: 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." >&5
2057 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2058 whose name does not start with the host triplet.  If you think this
2059 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2060 ac_tool_warned=yes ;;
2061 esac
2062     CC=$ac_ct_CC
2063   fi
2064 fi
2065
2066
2067 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2068 See \`config.log' for more details." >&5
2069 echo "$as_me: error: no acceptable C compiler found in \$PATH
2070 See \`config.log' for more details." >&2;}
2071    { (exit 1); exit 1; }; }
2072
2073 # Provide some information about the compiler.
2074 echo "$as_me:$LINENO: checking for C compiler version" >&5
2075 ac_compiler=`set X $ac_compile; echo $2`
2076 { (ac_try="$ac_compiler --version >&5"
2077 case "(($ac_try" in
2078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2079   *) ac_try_echo=$ac_try;;
2080 esac
2081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2082   (eval "$ac_compiler --version >&5") 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); }
2086 { (ac_try="$ac_compiler -v >&5"
2087 case "(($ac_try" in
2088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2089   *) ac_try_echo=$ac_try;;
2090 esac
2091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2092   (eval "$ac_compiler -v >&5") 2>&5
2093   ac_status=$?
2094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095   (exit $ac_status); }
2096 { (ac_try="$ac_compiler -V >&5"
2097 case "(($ac_try" in
2098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2099   *) ac_try_echo=$ac_try;;
2100 esac
2101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2102   (eval "$ac_compiler -V >&5") 2>&5
2103   ac_status=$?
2104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105   (exit $ac_status); }
2106
2107 cat >conftest.$ac_ext <<_ACEOF
2108 /* confdefs.h.  */
2109 _ACEOF
2110 cat confdefs.h >>conftest.$ac_ext
2111 cat >>conftest.$ac_ext <<_ACEOF
2112 /* end confdefs.h.  */
2113
2114 int
2115 main ()
2116 {
2117
2118   ;
2119   return 0;
2120 }
2121 _ACEOF
2122 ac_clean_files_save=$ac_clean_files
2123 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2124 # Try to create an executable without -o first, disregard a.out.
2125 # It will help us diagnose broken compilers, and finding out an intuition
2126 # of exeext.
2127 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2128 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2129 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2130 #
2131 # List of possible output files, starting from the most likely.
2132 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2133 # only as a last resort.  b.out is created by i960 compilers.
2134 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2135 #
2136 # The IRIX 6 linker writes into existing files which may not be
2137 # executable, retaining their permissions.  Remove them first so a
2138 # subsequent execution test works.
2139 ac_rmfiles=
2140 for ac_file in $ac_files
2141 do
2142   case $ac_file in
2143     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2144     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2145   esac
2146 done
2147 rm -f $ac_rmfiles
2148
2149 if { (ac_try="$ac_link_default"
2150 case "(($ac_try" in
2151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2152   *) ac_try_echo=$ac_try;;
2153 esac
2154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2155   (eval "$ac_link_default") 2>&5
2156   ac_status=$?
2157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158   (exit $ac_status); }; then
2159   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2160 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2161 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2162 # so that the user can short-circuit this test for compilers unknown to
2163 # Autoconf.
2164 for ac_file in $ac_files
2165 do
2166   test -f "$ac_file" || continue
2167   case $ac_file in
2168     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2169         ;;
2170     [ab].out )
2171         # We found the default executable, but exeext='' is most
2172         # certainly right.
2173         break;;
2174     *.* )
2175         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2176         then :; else
2177            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2178         fi
2179         # We set ac_cv_exeext here because the later test for it is not
2180         # safe: cross compilers may not add the suffix if given an `-o'
2181         # argument, so we may need to know it at that point already.
2182         # Even if this section looks crufty: it has the advantage of
2183         # actually working.
2184         break;;
2185     * )
2186         break;;
2187   esac
2188 done
2189 test "$ac_cv_exeext" = no && ac_cv_exeext=
2190
2191 else
2192   echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2194
2195 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2196 See \`config.log' for more details." >&5
2197 echo "$as_me: error: C compiler cannot create executables
2198 See \`config.log' for more details." >&2;}
2199    { (exit 77); exit 77; }; }
2200 fi
2201
2202 ac_exeext=$ac_cv_exeext
2203 { echo "$as_me:$LINENO: result: $ac_file" >&5
2204 echo "${ECHO_T}$ac_file" >&6; }
2205
2206 # Check that the compiler produces executables we can run.  If not, either
2207 # the compiler is broken, or we cross compile.
2208 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2209 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2210 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2211 # If not cross compiling, check that we can run a simple program.
2212 if test "$cross_compiling" != yes; then
2213   if { ac_try='./$ac_file'
2214   { (case "(($ac_try" in
2215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2216   *) ac_try_echo=$ac_try;;
2217 esac
2218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2219   (eval "$ac_try") 2>&5
2220   ac_status=$?
2221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222   (exit $ac_status); }; }; then
2223     cross_compiling=no
2224   else
2225     if test "$cross_compiling" = maybe; then
2226         cross_compiling=yes
2227     else
2228         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2229 If you meant to cross compile, use \`--host'.
2230 See \`config.log' for more details." >&5
2231 echo "$as_me: error: cannot run C compiled programs.
2232 If you meant to cross compile, use \`--host'.
2233 See \`config.log' for more details." >&2;}
2234    { (exit 1); exit 1; }; }
2235     fi
2236   fi
2237 fi
2238 { echo "$as_me:$LINENO: result: yes" >&5
2239 echo "${ECHO_T}yes" >&6; }
2240
2241 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2242 ac_clean_files=$ac_clean_files_save
2243 # Check that the compiler produces executables we can run.  If not, either
2244 # the compiler is broken, or we cross compile.
2245 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2246 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2247 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2248 echo "${ECHO_T}$cross_compiling" >&6; }
2249
2250 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2251 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2252 if { (ac_try="$ac_link"
2253 case "(($ac_try" in
2254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2255   *) ac_try_echo=$ac_try;;
2256 esac
2257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2258   (eval "$ac_link") 2>&5
2259   ac_status=$?
2260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261   (exit $ac_status); }; then
2262   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2263 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2264 # work properly (i.e., refer to `conftest.exe'), while it won't with
2265 # `rm'.
2266 for ac_file in conftest.exe conftest conftest.*; do
2267   test -f "$ac_file" || continue
2268   case $ac_file in
2269     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2270     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2271           break;;
2272     * ) break;;
2273   esac
2274 done
2275 else
2276   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2277 See \`config.log' for more details." >&5
2278 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2279 See \`config.log' for more details." >&2;}
2280    { (exit 1); exit 1; }; }
2281 fi
2282
2283 rm -f conftest$ac_cv_exeext
2284 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2285 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2286
2287 rm -f conftest.$ac_ext
2288 EXEEXT=$ac_cv_exeext
2289 ac_exeext=$EXEEXT
2290 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2291 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2292 if test "${ac_cv_objext+set}" = set; then
2293   echo $ECHO_N "(cached) $ECHO_C" >&6
2294 else
2295   cat >conftest.$ac_ext <<_ACEOF
2296 /* confdefs.h.  */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h.  */
2301
2302 int
2303 main ()
2304 {
2305
2306   ;
2307   return 0;
2308 }
2309 _ACEOF
2310 rm -f conftest.o conftest.obj
2311 if { (ac_try="$ac_compile"
2312 case "(($ac_try" in
2313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2314   *) ac_try_echo=$ac_try;;
2315 esac
2316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2317   (eval "$ac_compile") 2>&5
2318   ac_status=$?
2319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320   (exit $ac_status); }; then
2321   for ac_file in conftest.o conftest.obj conftest.*; do
2322   test -f "$ac_file" || continue;
2323   case $ac_file in
2324     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2325     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2326        break;;
2327   esac
2328 done
2329 else
2330   echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.$ac_ext >&5
2332
2333 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2334 See \`config.log' for more details." >&5
2335 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2336 See \`config.log' for more details." >&2;}
2337    { (exit 1); exit 1; }; }
2338 fi
2339
2340 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2341 fi
2342 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2343 echo "${ECHO_T}$ac_cv_objext" >&6; }
2344 OBJEXT=$ac_cv_objext
2345 ac_objext=$OBJEXT
2346 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2347 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2348 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2349   echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351   cat >conftest.$ac_ext <<_ACEOF
2352 /* confdefs.h.  */
2353 _ACEOF
2354 cat confdefs.h >>conftest.$ac_ext
2355 cat >>conftest.$ac_ext <<_ACEOF
2356 /* end confdefs.h.  */
2357
2358 int
2359 main ()
2360 {
2361 #ifndef __GNUC__
2362        choke me
2363 #endif
2364
2365   ;
2366   return 0;
2367 }
2368 _ACEOF
2369 rm -f conftest.$ac_objext
2370 if { (ac_try="$ac_compile"
2371 case "(($ac_try" in
2372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2373   *) ac_try_echo=$ac_try;;
2374 esac
2375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2376   (eval "$ac_compile") 2>conftest.er1
2377   ac_status=$?
2378   grep -v '^ *+' conftest.er1 >conftest.err
2379   rm -f conftest.er1
2380   cat conftest.err >&5
2381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382   (exit $ac_status); } &&
2383          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2384   { (case "(($ac_try" in
2385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386   *) ac_try_echo=$ac_try;;
2387 esac
2388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2389   (eval "$ac_try") 2>&5
2390   ac_status=$?
2391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392   (exit $ac_status); }; } &&
2393          { ac_try='test -s conftest.$ac_objext'
2394   { (case "(($ac_try" in
2395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2396   *) ac_try_echo=$ac_try;;
2397 esac
2398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2399   (eval "$ac_try") 2>&5
2400   ac_status=$?
2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402   (exit $ac_status); }; }; then
2403   ac_compiler_gnu=yes
2404 else
2405   echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2407
2408         ac_compiler_gnu=no
2409 fi
2410
2411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2412 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2413
2414 fi
2415 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2416 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2417 GCC=`test $ac_compiler_gnu = yes && echo yes`
2418 ac_test_CFLAGS=${CFLAGS+set}
2419 ac_save_CFLAGS=$CFLAGS
2420 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2421 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2422 if test "${ac_cv_prog_cc_g+set}" = set; then
2423   echo $ECHO_N "(cached) $ECHO_C" >&6
2424 else
2425   ac_save_c_werror_flag=$ac_c_werror_flag
2426    ac_c_werror_flag=yes
2427    ac_cv_prog_cc_g=no
2428    CFLAGS="-g"
2429    cat >conftest.$ac_ext <<_ACEOF
2430 /* confdefs.h.  */
2431 _ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h.  */
2435
2436 int
2437 main ()
2438 {
2439
2440   ;
2441   return 0;
2442 }
2443 _ACEOF
2444 rm -f conftest.$ac_objext
2445 if { (ac_try="$ac_compile"
2446 case "(($ac_try" in
2447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448   *) ac_try_echo=$ac_try;;
2449 esac
2450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2451   (eval "$ac_compile") 2>conftest.er1
2452   ac_status=$?
2453   grep -v '^ *+' conftest.er1 >conftest.err
2454   rm -f conftest.er1
2455   cat conftest.err >&5
2456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457   (exit $ac_status); } &&
2458          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2459   { (case "(($ac_try" in
2460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461   *) ac_try_echo=$ac_try;;
2462 esac
2463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464   (eval "$ac_try") 2>&5
2465   ac_status=$?
2466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467   (exit $ac_status); }; } &&
2468          { ac_try='test -s conftest.$ac_objext'
2469   { (case "(($ac_try" in
2470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2471   *) ac_try_echo=$ac_try;;
2472 esac
2473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2474   (eval "$ac_try") 2>&5
2475   ac_status=$?
2476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477   (exit $ac_status); }; }; then
2478   ac_cv_prog_cc_g=yes
2479 else
2480   echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2482
2483         CFLAGS=""
2484       cat >conftest.$ac_ext <<_ACEOF
2485 /* confdefs.h.  */
2486 _ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h.  */
2490
2491 int
2492 main ()
2493 {
2494
2495   ;
2496   return 0;
2497 }
2498 _ACEOF
2499 rm -f conftest.$ac_objext
2500 if { (ac_try="$ac_compile"
2501 case "(($ac_try" in
2502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503   *) ac_try_echo=$ac_try;;
2504 esac
2505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2506   (eval "$ac_compile") 2>conftest.er1
2507   ac_status=$?
2508   grep -v '^ *+' conftest.er1 >conftest.err
2509   rm -f conftest.er1
2510   cat conftest.err >&5
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); } &&
2513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2514   { (case "(($ac_try" in
2515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516   *) ac_try_echo=$ac_try;;
2517 esac
2518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519   (eval "$ac_try") 2>&5
2520   ac_status=$?
2521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522   (exit $ac_status); }; } &&
2523          { ac_try='test -s conftest.$ac_objext'
2524   { (case "(($ac_try" in
2525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526   *) ac_try_echo=$ac_try;;
2527 esac
2528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2529   (eval "$ac_try") 2>&5
2530   ac_status=$?
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); }; }; then
2533   :
2534 else
2535   echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2537
2538         ac_c_werror_flag=$ac_save_c_werror_flag
2539          CFLAGS="-g"
2540          cat >conftest.$ac_ext <<_ACEOF
2541 /* confdefs.h.  */
2542 _ACEOF
2543 cat confdefs.h >>conftest.$ac_ext
2544 cat >>conftest.$ac_ext <<_ACEOF
2545 /* end confdefs.h.  */
2546
2547 int
2548 main ()
2549 {
2550
2551   ;
2552   return 0;
2553 }
2554 _ACEOF
2555 rm -f conftest.$ac_objext
2556 if { (ac_try="$ac_compile"
2557 case "(($ac_try" in
2558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559   *) ac_try_echo=$ac_try;;
2560 esac
2561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2562   (eval "$ac_compile") 2>conftest.er1
2563   ac_status=$?
2564   grep -v '^ *+' conftest.er1 >conftest.err
2565   rm -f conftest.er1
2566   cat conftest.err >&5
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); } &&
2569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2570   { (case "(($ac_try" in
2571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572   *) ac_try_echo=$ac_try;;
2573 esac
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575   (eval "$ac_try") 2>&5
2576   ac_status=$?
2577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578   (exit $ac_status); }; } &&
2579          { ac_try='test -s conftest.$ac_objext'
2580   { (case "(($ac_try" in
2581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582   *) ac_try_echo=$ac_try;;
2583 esac
2584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2585   (eval "$ac_try") 2>&5
2586   ac_status=$?
2587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588   (exit $ac_status); }; }; then
2589   ac_cv_prog_cc_g=yes
2590 else
2591   echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2593
2594
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 fi
2602
2603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604    ac_c_werror_flag=$ac_save_c_werror_flag
2605 fi
2606 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2607 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2608 if test "$ac_test_CFLAGS" = set; then
2609   CFLAGS=$ac_save_CFLAGS
2610 elif test $ac_cv_prog_cc_g = yes; then
2611   if test "$GCC" = yes; then
2612     CFLAGS="-g -O2"
2613   else
2614     CFLAGS="-g"
2615   fi
2616 else
2617   if test "$GCC" = yes; then
2618     CFLAGS="-O2"
2619   else
2620     CFLAGS=
2621   fi
2622 fi
2623 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2624 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2625 if test "${ac_cv_prog_cc_c89+set}" = set; then
2626   echo $ECHO_N "(cached) $ECHO_C" >&6
2627 else
2628   ac_cv_prog_cc_c89=no
2629 ac_save_CC=$CC
2630 cat >conftest.$ac_ext <<_ACEOF
2631 /* confdefs.h.  */
2632 _ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h.  */
2636 #include <stdarg.h>
2637 #include <stdio.h>
2638 #include <sys/types.h>
2639 #include <sys/stat.h>
2640 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2641 struct buf { int x; };
2642 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2643 static char *e (p, i)
2644      char **p;
2645      int i;
2646 {
2647   return p[i];
2648 }
2649 static char *f (char * (*g) (char **, int), char **p, ...)
2650 {
2651   char *s;
2652   va_list v;
2653   va_start (v,p);
2654   s = g (p, va_arg (v,int));
2655   va_end (v);
2656   return s;
2657 }
2658
2659 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2660    function prototypes and stuff, but not '\xHH' hex character constants.
2661    These don't provoke an error unfortunately, instead are silently treated
2662    as 'x'.  The following induces an error, until -std is added to get
2663    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2664    array size at least.  It's necessary to write '\x00'==0 to get something
2665    that's true only with -std.  */
2666 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2667
2668 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2669    inside strings and character constants.  */
2670 #define FOO(x) 'x'
2671 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2672
2673 int test (int i, double x);
2674 struct s1 {int (*f) (int a);};
2675 struct s2 {int (*f) (double a);};
2676 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2677 int argc;
2678 char **argv;
2679 int
2680 main ()
2681 {
2682 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2683   ;
2684   return 0;
2685 }
2686 _ACEOF
2687 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2688         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2689 do
2690   CC="$ac_save_CC $ac_arg"
2691   rm -f conftest.$ac_objext
2692 if { (ac_try="$ac_compile"
2693 case "(($ac_try" in
2694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695   *) ac_try_echo=$ac_try;;
2696 esac
2697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2698   (eval "$ac_compile") 2>conftest.er1
2699   ac_status=$?
2700   grep -v '^ *+' conftest.er1 >conftest.err
2701   rm -f conftest.er1
2702   cat conftest.err >&5
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); } &&
2705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2706   { (case "(($ac_try" in
2707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708   *) ac_try_echo=$ac_try;;
2709 esac
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711   (eval "$ac_try") 2>&5
2712   ac_status=$?
2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); }; } &&
2715          { ac_try='test -s conftest.$ac_objext'
2716   { (case "(($ac_try" in
2717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718   *) ac_try_echo=$ac_try;;
2719 esac
2720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721   (eval "$ac_try") 2>&5
2722   ac_status=$?
2723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); }; }; then
2725   ac_cv_prog_cc_c89=$ac_arg
2726 else
2727   echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2729
2730
2731 fi
2732
2733 rm -f core conftest.err conftest.$ac_objext
2734   test "x$ac_cv_prog_cc_c89" != "xno" && break
2735 done
2736 rm -f conftest.$ac_ext
2737 CC=$ac_save_CC
2738
2739 fi
2740 # AC_CACHE_VAL
2741 case "x$ac_cv_prog_cc_c89" in
2742   x)
2743     { echo "$as_me:$LINENO: result: none needed" >&5
2744 echo "${ECHO_T}none needed" >&6; } ;;
2745   xno)
2746     { echo "$as_me:$LINENO: result: unsupported" >&5
2747 echo "${ECHO_T}unsupported" >&6; } ;;
2748   *)
2749     CC="$CC $ac_cv_prog_cc_c89"
2750     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2751 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2752 esac
2753
2754
2755 ac_ext=c
2756 ac_cpp='$CPP $CPPFLAGS'
2757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2760
2761 ac_ext=cpp
2762 ac_cpp='$CXXCPP $CPPFLAGS'
2763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2766 if test -z "$CXX"; then
2767   if test -n "$CCC"; then
2768     CXX=$CCC
2769   else
2770     if test -n "$ac_tool_prefix"; then
2771   for ac_prog in clang++ llvm-g++ g++
2772   do
2773     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2774 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2777 if test "${ac_cv_prog_CXX+set}" = set; then
2778   echo $ECHO_N "(cached) $ECHO_C" >&6
2779 else
2780   if test -n "$CXX"; then
2781   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2782 else
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2785 do
2786   IFS=$as_save_IFS
2787   test -z "$as_dir" && as_dir=.
2788   for ac_exec_ext in '' $ac_executable_extensions; do
2789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2790     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2792     break 2
2793   fi
2794 done
2795 done
2796 IFS=$as_save_IFS
2797
2798 fi
2799 fi
2800 CXX=$ac_cv_prog_CXX
2801 if test -n "$CXX"; then
2802   { echo "$as_me:$LINENO: result: $CXX" >&5
2803 echo "${ECHO_T}$CXX" >&6; }
2804 else
2805   { echo "$as_me:$LINENO: result: no" >&5
2806 echo "${ECHO_T}no" >&6; }
2807 fi
2808
2809
2810     test -n "$CXX" && break
2811   done
2812 fi
2813 if test -z "$CXX"; then
2814   ac_ct_CXX=$CXX
2815   for ac_prog in clang++ llvm-g++ g++
2816 do
2817   # Extract the first word of "$ac_prog", so it can be a program name with args.
2818 set dummy $ac_prog; ac_word=$2
2819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2821 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2822   echo $ECHO_N "(cached) $ECHO_C" >&6
2823 else
2824   if test -n "$ac_ct_CXX"; then
2825   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2826 else
2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 for as_dir in $PATH
2829 do
2830   IFS=$as_save_IFS
2831   test -z "$as_dir" && as_dir=.
2832   for ac_exec_ext in '' $ac_executable_extensions; do
2833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2834     ac_cv_prog_ac_ct_CXX="$ac_prog"
2835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2836     break 2
2837   fi
2838 done
2839 done
2840 IFS=$as_save_IFS
2841
2842 fi
2843 fi
2844 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2845 if test -n "$ac_ct_CXX"; then
2846   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2847 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2848 else
2849   { echo "$as_me:$LINENO: result: no" >&5
2850 echo "${ECHO_T}no" >&6; }
2851 fi
2852
2853
2854   test -n "$ac_ct_CXX" && break
2855 done
2856
2857   if test "x$ac_ct_CXX" = x; then
2858     CXX="g++"
2859   else
2860     case $cross_compiling:$ac_tool_warned in
2861 yes:)
2862 { echo "$as_me:$LINENO: 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." >&5
2865 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2866 whose name does not start with the host triplet.  If you think this
2867 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2868 ac_tool_warned=yes ;;
2869 esac
2870     CXX=$ac_ct_CXX
2871   fi
2872 fi
2873
2874   fi
2875 fi
2876 # Provide some information about the compiler.
2877 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2878 ac_compiler=`set X $ac_compile; echo $2`
2879 { (ac_try="$ac_compiler --version >&5"
2880 case "(($ac_try" in
2881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882   *) ac_try_echo=$ac_try;;
2883 esac
2884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2885   (eval "$ac_compiler --version >&5") 2>&5
2886   ac_status=$?
2887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888   (exit $ac_status); }
2889 { (ac_try="$ac_compiler -v >&5"
2890 case "(($ac_try" in
2891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892   *) ac_try_echo=$ac_try;;
2893 esac
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895   (eval "$ac_compiler -v >&5") 2>&5
2896   ac_status=$?
2897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898   (exit $ac_status); }
2899 { (ac_try="$ac_compiler -V >&5"
2900 case "(($ac_try" in
2901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902   *) ac_try_echo=$ac_try;;
2903 esac
2904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905   (eval "$ac_compiler -V >&5") 2>&5
2906   ac_status=$?
2907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908   (exit $ac_status); }
2909
2910 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2911 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2912 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2913   echo $ECHO_N "(cached) $ECHO_C" >&6
2914 else
2915   cat >conftest.$ac_ext <<_ACEOF
2916 /* confdefs.h.  */
2917 _ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h.  */
2921
2922 int
2923 main ()
2924 {
2925 #ifndef __GNUC__
2926        choke me
2927 #endif
2928
2929   ;
2930   return 0;
2931 }
2932 _ACEOF
2933 rm -f conftest.$ac_objext
2934 if { (ac_try="$ac_compile"
2935 case "(($ac_try" in
2936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937   *) ac_try_echo=$ac_try;;
2938 esac
2939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2940   (eval "$ac_compile") 2>conftest.er1
2941   ac_status=$?
2942   grep -v '^ *+' conftest.er1 >conftest.err
2943   rm -f conftest.er1
2944   cat conftest.err >&5
2945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946   (exit $ac_status); } &&
2947          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2948   { (case "(($ac_try" in
2949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950   *) ac_try_echo=$ac_try;;
2951 esac
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953   (eval "$ac_try") 2>&5
2954   ac_status=$?
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); }; } &&
2957          { ac_try='test -s conftest.$ac_objext'
2958   { (case "(($ac_try" in
2959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960   *) ac_try_echo=$ac_try;;
2961 esac
2962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963   (eval "$ac_try") 2>&5
2964   ac_status=$?
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); }; }; then
2967   ac_compiler_gnu=yes
2968 else
2969   echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2971
2972         ac_compiler_gnu=no
2973 fi
2974
2975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2976 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2977
2978 fi
2979 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2980 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2981 GXX=`test $ac_compiler_gnu = yes && echo yes`
2982 ac_test_CXXFLAGS=${CXXFLAGS+set}
2983 ac_save_CXXFLAGS=$CXXFLAGS
2984 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2985 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2986 if test "${ac_cv_prog_cxx_g+set}" = set; then
2987   echo $ECHO_N "(cached) $ECHO_C" >&6
2988 else
2989   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2990    ac_cxx_werror_flag=yes
2991    ac_cv_prog_cxx_g=no
2992    CXXFLAGS="-g"
2993    cat >conftest.$ac_ext <<_ACEOF
2994 /* confdefs.h.  */
2995 _ACEOF
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h.  */
2999
3000 int
3001 main ()
3002 {
3003
3004   ;
3005   return 0;
3006 }
3007 _ACEOF
3008 rm -f conftest.$ac_objext
3009 if { (ac_try="$ac_compile"
3010 case "(($ac_try" in
3011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012   *) ac_try_echo=$ac_try;;
3013 esac
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015   (eval "$ac_compile") 2>conftest.er1
3016   ac_status=$?
3017   grep -v '^ *+' conftest.er1 >conftest.err
3018   rm -f conftest.er1
3019   cat conftest.err >&5
3020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021   (exit $ac_status); } &&
3022          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3023   { (case "(($ac_try" in
3024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025   *) ac_try_echo=$ac_try;;
3026 esac
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028   (eval "$ac_try") 2>&5
3029   ac_status=$?
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); }; } &&
3032          { ac_try='test -s conftest.$ac_objext'
3033   { (case "(($ac_try" in
3034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035   *) ac_try_echo=$ac_try;;
3036 esac
3037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038   (eval "$ac_try") 2>&5
3039   ac_status=$?
3040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041   (exit $ac_status); }; }; then
3042   ac_cv_prog_cxx_g=yes
3043 else
3044   echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3046
3047         CXXFLAGS=""
3048       cat >conftest.$ac_ext <<_ACEOF
3049 /* confdefs.h.  */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h.  */
3054
3055 int
3056 main ()
3057 {
3058
3059   ;
3060   return 0;
3061 }
3062 _ACEOF
3063 rm -f conftest.$ac_objext
3064 if { (ac_try="$ac_compile"
3065 case "(($ac_try" in
3066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067   *) ac_try_echo=$ac_try;;
3068 esac
3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070   (eval "$ac_compile") 2>conftest.er1
3071   ac_status=$?
3072   grep -v '^ *+' conftest.er1 >conftest.err
3073   rm -f conftest.er1
3074   cat conftest.err >&5
3075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076   (exit $ac_status); } &&
3077          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3078   { (case "(($ac_try" in
3079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080   *) ac_try_echo=$ac_try;;
3081 esac
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083   (eval "$ac_try") 2>&5
3084   ac_status=$?
3085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086   (exit $ac_status); }; } &&
3087          { ac_try='test -s conftest.$ac_objext'
3088   { (case "(($ac_try" in
3089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090   *) ac_try_echo=$ac_try;;
3091 esac
3092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093   (eval "$ac_try") 2>&5
3094   ac_status=$?
3095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096   (exit $ac_status); }; }; then
3097   :
3098 else
3099   echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3101
3102         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3103          CXXFLAGS="-g"
3104          cat >conftest.$ac_ext <<_ACEOF
3105 /* confdefs.h.  */
3106 _ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h.  */
3110
3111 int
3112 main ()
3113 {
3114
3115   ;
3116   return 0;
3117 }
3118 _ACEOF
3119 rm -f conftest.$ac_objext
3120 if { (ac_try="$ac_compile"
3121 case "(($ac_try" in
3122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123   *) ac_try_echo=$ac_try;;
3124 esac
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126   (eval "$ac_compile") 2>conftest.er1
3127   ac_status=$?
3128   grep -v '^ *+' conftest.er1 >conftest.err
3129   rm -f conftest.er1
3130   cat conftest.err >&5
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); } &&
3133          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3134   { (case "(($ac_try" in
3135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136   *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139   (eval "$ac_try") 2>&5
3140   ac_status=$?
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); }; } &&
3143          { ac_try='test -s conftest.$ac_objext'
3144   { (case "(($ac_try" in
3145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146   *) ac_try_echo=$ac_try;;
3147 esac
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149   (eval "$ac_try") 2>&5
3150   ac_status=$?
3151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152   (exit $ac_status); }; }; then
3153   ac_cv_prog_cxx_g=yes
3154 else
3155   echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3157
3158
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 fi
3166
3167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3168    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3169 fi
3170 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3171 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3172 if test "$ac_test_CXXFLAGS" = set; then
3173   CXXFLAGS=$ac_save_CXXFLAGS
3174 elif test $ac_cv_prog_cxx_g = yes; then
3175   if test "$GXX" = yes; then
3176     CXXFLAGS="-g -O2"
3177   else
3178     CXXFLAGS="-g"
3179   fi
3180 else
3181   if test "$GXX" = yes; then
3182     CXXFLAGS="-O2"
3183   else
3184     CXXFLAGS=
3185   fi
3186 fi
3187 ac_ext=c
3188 ac_cpp='$CPP $CPPFLAGS'
3189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3192
3193 ac_ext=c
3194 ac_cpp='$CPP $CPPFLAGS'
3195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3198 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3199 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3200 # On Suns, sometimes $CPP names a directory.
3201 if test -n "$CPP" && test -d "$CPP"; then
3202   CPP=
3203 fi
3204 if test -z "$CPP"; then
3205   if test "${ac_cv_prog_CPP+set}" = set; then
3206   echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208       # Double quotes because CPP needs to be expanded
3209     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3210     do
3211       ac_preproc_ok=false
3212 for ac_c_preproc_warn_flag in '' yes
3213 do
3214   # Use a header file that comes with gcc, so configuring glibc
3215   # with a fresh cross-compiler works.
3216   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3217   # <limits.h> exists even on freestanding compilers.
3218   # On the NeXT, cc -E runs the code through the compiler's parser,
3219   # not just through cpp. "Syntax error" is here to catch this case.
3220   cat >conftest.$ac_ext <<_ACEOF
3221 /* confdefs.h.  */
3222 _ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h.  */
3226 #ifdef __STDC__
3227 # include <limits.h>
3228 #else
3229 # include <assert.h>
3230 #endif
3231                      Syntax error
3232 _ACEOF
3233 if { (ac_try="$ac_cpp conftest.$ac_ext"
3234 case "(($ac_try" in
3235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236   *) ac_try_echo=$ac_try;;
3237 esac
3238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3239   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3240   ac_status=$?
3241   grep -v '^ *+' conftest.er1 >conftest.err
3242   rm -f conftest.er1
3243   cat conftest.err >&5
3244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245   (exit $ac_status); } >/dev/null; then
3246   if test -s conftest.err; then
3247     ac_cpp_err=$ac_c_preproc_warn_flag
3248     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3249   else
3250     ac_cpp_err=
3251   fi
3252 else
3253   ac_cpp_err=yes
3254 fi
3255 if test -z "$ac_cpp_err"; then
3256   :
3257 else
3258   echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3260
3261   # Broken: fails on valid input.
3262 continue
3263 fi
3264
3265 rm -f conftest.err conftest.$ac_ext
3266
3267   # OK, works on sane cases.  Now check whether nonexistent headers
3268   # can be detected and how.
3269   cat >conftest.$ac_ext <<_ACEOF
3270 /* confdefs.h.  */
3271 _ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h.  */
3275 #include <ac_nonexistent.h>
3276 _ACEOF
3277 if { (ac_try="$ac_cpp conftest.$ac_ext"
3278 case "(($ac_try" in
3279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280   *) ac_try_echo=$ac_try;;
3281 esac
3282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3283   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3284   ac_status=$?
3285   grep -v '^ *+' conftest.er1 >conftest.err
3286   rm -f conftest.er1
3287   cat conftest.err >&5
3288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289   (exit $ac_status); } >/dev/null; then
3290   if test -s conftest.err; then
3291     ac_cpp_err=$ac_c_preproc_warn_flag
3292     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3293   else
3294     ac_cpp_err=
3295   fi
3296 else
3297   ac_cpp_err=yes
3298 fi
3299 if test -z "$ac_cpp_err"; then
3300   # Broken: success on invalid input.
3301 continue
3302 else
3303   echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3305
3306   # Passes both tests.
3307 ac_preproc_ok=:
3308 break
3309 fi
3310
3311 rm -f conftest.err conftest.$ac_ext
3312
3313 done
3314 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3315 rm -f conftest.err conftest.$ac_ext
3316 if $ac_preproc_ok; then
3317   break
3318 fi
3319
3320     done
3321     ac_cv_prog_CPP=$CPP
3322
3323 fi
3324   CPP=$ac_cv_prog_CPP
3325 else
3326   ac_cv_prog_CPP=$CPP
3327 fi
3328 { echo "$as_me:$LINENO: result: $CPP" >&5
3329 echo "${ECHO_T}$CPP" >&6; }
3330 ac_preproc_ok=false
3331 for ac_c_preproc_warn_flag in '' yes
3332 do
3333   # Use a header file that comes with gcc, so configuring glibc
3334   # with a fresh cross-compiler works.
3335   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3336   # <limits.h> exists even on freestanding compilers.
3337   # On the NeXT, cc -E runs the code through the compiler's parser,
3338   # not just through cpp. "Syntax error" is here to catch this case.
3339   cat >conftest.$ac_ext <<_ACEOF
3340 /* confdefs.h.  */
3341 _ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h.  */
3345 #ifdef __STDC__
3346 # include <limits.h>
3347 #else
3348 # include <assert.h>
3349 #endif
3350                      Syntax error
3351 _ACEOF
3352 if { (ac_try="$ac_cpp conftest.$ac_ext"
3353 case "(($ac_try" in
3354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355   *) ac_try_echo=$ac_try;;
3356 esac
3357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3358   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3359   ac_status=$?
3360   grep -v '^ *+' conftest.er1 >conftest.err
3361   rm -f conftest.er1
3362   cat conftest.err >&5
3363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364   (exit $ac_status); } >/dev/null; then
3365   if test -s conftest.err; then
3366     ac_cpp_err=$ac_c_preproc_warn_flag
3367     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3368   else
3369     ac_cpp_err=
3370   fi
3371 else
3372   ac_cpp_err=yes
3373 fi
3374 if test -z "$ac_cpp_err"; then
3375   :
3376 else
3377   echo "$as_me: failed program was:" >&5
3378 sed 's/^/| /' conftest.$ac_ext >&5
3379
3380   # Broken: fails on valid input.
3381 continue
3382 fi
3383
3384 rm -f conftest.err conftest.$ac_ext
3385
3386   # OK, works on sane cases.  Now check whether nonexistent headers
3387   # can be detected and how.
3388   cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h.  */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h.  */
3394 #include <ac_nonexistent.h>
3395 _ACEOF
3396 if { (ac_try="$ac_cpp conftest.$ac_ext"
3397 case "(($ac_try" in
3398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399   *) ac_try_echo=$ac_try;;
3400 esac
3401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3402   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3403   ac_status=$?
3404   grep -v '^ *+' conftest.er1 >conftest.err
3405   rm -f conftest.er1
3406   cat conftest.err >&5
3407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408   (exit $ac_status); } >/dev/null; then
3409   if test -s conftest.err; then
3410     ac_cpp_err=$ac_c_preproc_warn_flag
3411     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3412   else
3413     ac_cpp_err=
3414   fi
3415 else
3416   ac_cpp_err=yes
3417 fi
3418 if test -z "$ac_cpp_err"; then
3419   # Broken: success on invalid input.
3420 continue
3421 else
3422   echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3424
3425   # Passes both tests.
3426 ac_preproc_ok=:
3427 break
3428 fi
3429
3430 rm -f conftest.err conftest.$ac_ext
3431
3432 done
3433 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3434 rm -f conftest.err conftest.$ac_ext
3435 if $ac_preproc_ok; then
3436   :
3437 else
3438   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3439 See \`config.log' for more details." >&5
3440 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3441 See \`config.log' for more details." >&2;}
3442    { (exit 1); exit 1; }; }
3443 fi
3444
3445 ac_ext=c
3446 ac_cpp='$CPP $CPPFLAGS'
3447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3450
3451
3452
3453
3454 if test -d ${srcdir}/projects/llvm-gcc ; then
3455   subdirs="$subdirs projects/llvm-gcc"
3456
3457 fi
3458
3459 if test -d ${srcdir}/projects/test-suite ; then
3460   subdirs="$subdirs projects/test-suite"
3461
3462 fi
3463
3464 if test -d ${srcdir}/projects/llvm-test ; then
3465   subdirs="$subdirs projects/llvm-test"
3466
3467 fi
3468
3469 if test -d ${srcdir}/projects/poolalloc ; then
3470   subdirs="$subdirs projects/poolalloc"
3471
3472 fi
3473
3474 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3475   subdirs="$subdirs projects/llvm-poolalloc"
3476
3477 fi
3478
3479 for i in `ls ${srcdir}/projects`
3480 do
3481   if test -d ${srcdir}/projects/${i} ; then
3482     case ${i} in
3483       sample)       subdirs="$subdirs projects/sample"
3484     ;;
3485       privbracket)  subdirs="$subdirs projects/privbracket"
3486  ;;
3487       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3488  ;;
3489       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3490 ;;
3491       llvm-java)    subdirs="$subdirs projects/llvm-java"
3492  ;;
3493       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3494    ;;
3495       safecode)     subdirs="$subdirs projects/safecode"
3496  ;;
3497       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3498  ;;
3499       compiler-rt)       ;;
3500       llvm-gcc)       ;;
3501       test-suite)     ;;
3502       llvm-test)      ;;
3503       poolalloc)      ;;
3504       llvm-poolalloc) ;;
3505       *)
3506         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3507 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3508         ;;
3509     esac
3510   fi
3511 done
3512
3513 # Check whether --enable-polly was given.
3514 if test "${enable_polly+set}" = set; then
3515   enableval=$enable_polly;
3516 else
3517   enableval=default
3518 fi
3519
3520 case "$enableval" in
3521   yes) ENABLE_POLLY=1
3522  ;;
3523   no)  ENABLE_POLLY=0
3524  ;;
3525   default) ENABLE_POLLY=1
3526  ;;
3527   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3528 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3529    { (exit 1); exit 1; }; } ;;
3530 esac
3531
3532
3533 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3534   LLVM_HAS_POLLY=1
3535
3536   subdirs="$subdirs tools/polly"
3537
3538 fi
3539
3540
3541 # Make sure we can run config.sub.
3542 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3543   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3544 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3545    { (exit 1); exit 1; }; }
3546
3547 { echo "$as_me:$LINENO: checking build system type" >&5
3548 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3549 if test "${ac_cv_build+set}" = set; then
3550   echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552   ac_build_alias=$build_alias
3553 test "x$ac_build_alias" = x &&
3554   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3555 test "x$ac_build_alias" = x &&
3556   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3557 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3558    { (exit 1); exit 1; }; }
3559 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3560   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3561 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3562    { (exit 1); exit 1; }; }
3563
3564 fi
3565 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3566 echo "${ECHO_T}$ac_cv_build" >&6; }
3567 case $ac_cv_build in
3568 *-*-*) ;;
3569 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3570 echo "$as_me: error: invalid value of canonical build" >&2;}
3571    { (exit 1); exit 1; }; };;
3572 esac
3573 build=$ac_cv_build
3574 ac_save_IFS=$IFS; IFS='-'
3575 set x $ac_cv_build
3576 shift
3577 build_cpu=$1
3578 build_vendor=$2
3579 shift; shift
3580 # Remember, the first character of IFS is used to create $*,
3581 # except with old shells:
3582 build_os=$*
3583 IFS=$ac_save_IFS
3584 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3585
3586
3587 { echo "$as_me:$LINENO: checking host system type" >&5
3588 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3589 if test "${ac_cv_host+set}" = set; then
3590   echo $ECHO_N "(cached) $ECHO_C" >&6
3591 else
3592   if test "x$host_alias" = x; then
3593   ac_cv_host=$ac_cv_build
3594 else
3595   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3596     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3597 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3598    { (exit 1); exit 1; }; }
3599 fi
3600
3601 fi
3602 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3603 echo "${ECHO_T}$ac_cv_host" >&6; }
3604 case $ac_cv_host in
3605 *-*-*) ;;
3606 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3607 echo "$as_me: error: invalid value of canonical host" >&2;}
3608    { (exit 1); exit 1; }; };;
3609 esac
3610 host=$ac_cv_host
3611 ac_save_IFS=$IFS; IFS='-'
3612 set x $ac_cv_host
3613 shift
3614 host_cpu=$1
3615 host_vendor=$2
3616 shift; shift
3617 # Remember, the first character of IFS is used to create $*,
3618 # except with old shells:
3619 host_os=$*
3620 IFS=$ac_save_IFS
3621 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3622
3623
3624 { echo "$as_me:$LINENO: checking target system type" >&5
3625 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3626 if test "${ac_cv_target+set}" = set; then
3627   echo $ECHO_N "(cached) $ECHO_C" >&6
3628 else
3629   if test "x$target_alias" = x; then
3630   ac_cv_target=$ac_cv_host
3631 else
3632   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3633     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3634 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3635    { (exit 1); exit 1; }; }
3636 fi
3637
3638 fi
3639 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3640 echo "${ECHO_T}$ac_cv_target" >&6; }
3641 case $ac_cv_target in
3642 *-*-*) ;;
3643 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3644 echo "$as_me: error: invalid value of canonical target" >&2;}
3645    { (exit 1); exit 1; }; };;
3646 esac
3647 target=$ac_cv_target
3648 ac_save_IFS=$IFS; IFS='-'
3649 set x $ac_cv_target
3650 shift
3651 target_cpu=$1
3652 target_vendor=$2
3653 shift; shift
3654 # Remember, the first character of IFS is used to create $*,
3655 # except with old shells:
3656 target_os=$*
3657 IFS=$ac_save_IFS
3658 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3659
3660
3661 # The aliases save the names the user supplied, while $host etc.
3662 # will get canonicalized.
3663 test -n "$target_alias" &&
3664   test "$program_prefix$program_suffix$program_transform_name" = \
3665     NONENONEs,x,x, &&
3666   program_prefix=${target_alias}-
3667
3668 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3669 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3670 if test "${llvm_cv_os_type+set}" = set; then
3671   echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3673   case $host in
3674   *-*-aix*)
3675     llvm_cv_link_all_option="-Wl,--whole-archive"
3676     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3677     llvm_cv_os_type="AIX"
3678     llvm_cv_platform_type="Unix" ;;
3679   *-*-irix*)
3680     llvm_cv_link_all_option="-Wl,--whole-archive"
3681     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3682     llvm_cv_os_type="IRIX"
3683     llvm_cv_platform_type="Unix" ;;
3684   *-*-cygwin*)
3685     llvm_cv_link_all_option="-Wl,--whole-archive"
3686     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3687     llvm_cv_os_type="Cygwin"
3688     llvm_cv_platform_type="Unix" ;;
3689   *-*-darwin*)
3690     llvm_cv_link_all_option="-Wl,-all_load"
3691     llvm_cv_no_link_all_option="-Wl,-noall_load"
3692     llvm_cv_os_type="Darwin"
3693     llvm_cv_platform_type="Unix" ;;
3694   *-*-minix*)
3695     llvm_cv_link_all_option="-Wl,-all_load"
3696     llvm_cv_no_link_all_option="-Wl,-noall_load"
3697     llvm_cv_os_type="Minix"
3698     llvm_cv_platform_type="Unix" ;;
3699   *-*-freebsd* | *-*-kfreebsd-gnu)
3700     llvm_cv_link_all_option="-Wl,--whole-archive"
3701     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3702     llvm_cv_os_type="FreeBSD"
3703     llvm_cv_platform_type="Unix" ;;
3704   *-*-openbsd*)
3705     llvm_cv_link_all_option="-Wl,--whole-archive"
3706     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3707     llvm_cv_os_type="OpenBSD"
3708     llvm_cv_platform_type="Unix" ;;
3709   *-*-netbsd*)
3710     llvm_cv_link_all_option="-Wl,--whole-archive"
3711     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3712     llvm_cv_os_type="NetBSD"
3713     llvm_cv_platform_type="Unix" ;;
3714   *-*-dragonfly*)
3715     llvm_cv_link_all_option="-Wl,--whole-archive"
3716     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3717     llvm_cv_os_type="DragonFly"
3718     llvm_cv_platform_type="Unix" ;;
3719   *-*-hpux*)
3720     llvm_cv_link_all_option="-Wl,--whole-archive"
3721     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3722     llvm_cv_os_type="HP-UX"
3723     llvm_cv_platform_type="Unix" ;;
3724   *-*-interix*)
3725     llvm_cv_link_all_option="-Wl,--whole-archive"
3726     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3727     llvm_cv_os_type="Interix"
3728     llvm_cv_platform_type="Unix" ;;
3729   *-*-linux*)
3730     llvm_cv_link_all_option="-Wl,--whole-archive"
3731     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3732     llvm_cv_os_type="Linux"
3733     llvm_cv_platform_type="Unix" ;;
3734   *-*-gnu*)
3735     llvm_cv_link_all_option="-Wl,--whole-archive"
3736     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3737     llvm_cv_os_type="GNU"
3738     llvm_cv_platform_type="Unix" ;;
3739   *-*-solaris*)
3740     llvm_cv_link_all_option="-Wl,-z,allextract"
3741     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3742     llvm_cv_os_type="SunOS"
3743     llvm_cv_platform_type="Unix" ;;
3744   *-*-auroraux*)
3745     llvm_cv_link_all_option="-Wl,-z,allextract"
3746     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3747     llvm_cv_os_type="AuroraUX"
3748     llvm_cv_platform_type="Unix" ;;
3749   *-*-win32*)
3750     llvm_cv_link_all_option="-Wl,--whole-archive"
3751     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3752     llvm_cv_os_type="Win32"
3753     llvm_cv_platform_type="Win32" ;;
3754   *-*-mingw*)
3755     llvm_cv_link_all_option="-Wl,--whole-archive"
3756     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3757     llvm_cv_os_type="MingW"
3758     llvm_cv_platform_type="Win32" ;;
3759   *-*-haiku*)
3760     llvm_cv_link_all_option="-Wl,--whole-archive"
3761     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3762     llvm_cv_os_type="Haiku"
3763     llvm_cv_platform_type="Unix" ;;
3764   *-unknown-eabi*)
3765     llvm_cv_link_all_option="-Wl,--whole-archive"
3766     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3767     llvm_cv_os_type="Freestanding"
3768     llvm_cv_platform_type="Unix" ;;
3769   *-unknown-elf*)
3770     llvm_cv_link_all_option="-Wl,--whole-archive"
3771     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3772     llvm_cv_os_type="Freestanding"
3773     llvm_cv_platform_type="Unix" ;;
3774   *)
3775     llvm_cv_link_all_option=""
3776     llvm_cv_no_link_all_option=""
3777     llvm_cv_os_type="Unknown"
3778     llvm_cv_platform_type="Unknown" ;;
3779 esac
3780 fi
3781 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3782 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3783
3784 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3785 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3786 if test "${llvm_cv_target_os_type+set}" = set; then
3787   echo $ECHO_N "(cached) $ECHO_C" >&6
3788 else
3789   case $target in
3790   *-*-aix*)
3791     llvm_cv_target_os_type="AIX" ;;
3792   *-*-irix*)
3793     llvm_cv_target_os_type="IRIX" ;;
3794   *-*-cygwin*)
3795     llvm_cv_target_os_type="Cygwin" ;;
3796   *-*-darwin*)
3797     llvm_cv_target_os_type="Darwin" ;;
3798   *-*-minix*)
3799     llvm_cv_target_os_type="Minix" ;;
3800   *-*-freebsd* | *-*-kfreebsd-gnu)
3801     llvm_cv_target_os_type="FreeBSD" ;;
3802   *-*-openbsd*)
3803     llvm_cv_target_os_type="OpenBSD" ;;
3804   *-*-netbsd*)
3805     llvm_cv_target_os_type="NetBSD" ;;
3806   *-*-dragonfly*)
3807     llvm_cv_target_os_type="DragonFly" ;;
3808   *-*-hpux*)
3809     llvm_cv_target_os_type="HP-UX" ;;
3810   *-*-interix*)
3811     llvm_cv_target_os_type="Interix" ;;
3812   *-*-linux*)
3813     llvm_cv_target_os_type="Linux" ;;
3814   *-*-gnu*)
3815     llvm_cv_target_os_type="GNU" ;;
3816   *-*-solaris*)
3817     llvm_cv_target_os_type="SunOS" ;;
3818   *-*-auroraux*)
3819     llvm_cv_target_os_type="AuroraUX" ;;
3820   *-*-win32*)
3821     llvm_cv_target_os_type="Win32" ;;
3822   *-*-mingw*)
3823     llvm_cv_target_os_type="MingW" ;;
3824   *-*-haiku*)
3825     llvm_cv_target_os_type="Haiku" ;;
3826   *-*-rtems*)
3827     llvm_cv_target_os_type="RTEMS" ;;
3828   *-*-nacl*)
3829     llvm_cv_target_os_type="NativeClient" ;;
3830   *-unknown-eabi*)
3831     llvm_cv_target_os_type="Freestanding" ;;
3832   *)
3833     llvm_cv_target_os_type="Unknown" ;;
3834 esac
3835 fi
3836 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3837 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3838
3839 if test "$llvm_cv_os_type" = "Unknown" ; then
3840   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3841 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3842    { (exit 1); exit 1; }; }
3843 fi
3844
3845 OS=$llvm_cv_os_type
3846
3847 HOST_OS=$llvm_cv_os_type
3848
3849 TARGET_OS=$llvm_cv_target_os_type
3850
3851
3852 LINKALL=$llvm_cv_link_all_option
3853
3854 NOLINKALL=$llvm_cv_no_link_all_option
3855
3856
3857 case $llvm_cv_platform_type in
3858   Unix)
3859
3860 cat >>confdefs.h <<\_ACEOF
3861 #define LLVM_ON_UNIX 1
3862 _ACEOF
3863
3864     LLVM_ON_UNIX=1
3865
3866     LLVM_ON_WIN32=0
3867
3868     ;;
3869   Win32)
3870
3871 cat >>confdefs.h <<\_ACEOF
3872 #define LLVM_ON_WIN32 1
3873 _ACEOF
3874
3875     LLVM_ON_UNIX=0
3876
3877     LLVM_ON_WIN32=1
3878
3879     ;;
3880 esac
3881
3882 { echo "$as_me:$LINENO: checking target architecture" >&5
3883 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3884 if test "${llvm_cv_target_arch+set}" = set; then
3885   echo $ECHO_N "(cached) $ECHO_C" >&6
3886 else
3887   case $target in
3888   i?86-*)                 llvm_cv_target_arch="x86" ;;
3889   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3890   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3891   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3892   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3893   mips-*)                 llvm_cv_target_arch="Mips" ;;
3894   mipsel-*)               llvm_cv_target_arch="Mips" ;;
3895   xcore-*)                llvm_cv_target_arch="XCore" ;;
3896   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3897   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3898   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3899   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3900   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3901   *)                      llvm_cv_target_arch="Unknown" ;;
3902 esac
3903 fi
3904 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3905 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3906
3907 if test "$llvm_cv_target_arch" = "Unknown" ; then
3908   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3909 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3910 fi
3911
3912 case "$llvm_cv_target_arch" in
3913     x86)     LLVM_NATIVE_ARCH="X86" ;;
3914     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3915     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3916 esac
3917
3918 ARCH=$llvm_cv_target_arch
3919
3920
3921
3922
3923 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3924 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3925 if test "${ac_cv_path_GREP+set}" = set; then
3926   echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928   # Extract the first word of "grep ggrep" to use in msg output
3929 if test -z "$GREP"; then
3930 set dummy grep ggrep; ac_prog_name=$2
3931 if test "${ac_cv_path_GREP+set}" = set; then
3932   echo $ECHO_N "(cached) $ECHO_C" >&6
3933 else
3934   ac_path_GREP_found=false
3935 # Loop through the user's path and test for each of PROGNAME-LIST
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3938 do
3939   IFS=$as_save_IFS
3940   test -z "$as_dir" && as_dir=.
3941   for ac_prog in grep ggrep; do
3942   for ac_exec_ext in '' $ac_executable_extensions; do
3943     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3944     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3945     # Check for GNU ac_path_GREP and select it if it is found.
3946   # Check for GNU $ac_path_GREP
3947 case `"$ac_path_GREP" --version 2>&1` in
3948 *GNU*)
3949   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3950 *)
3951   ac_count=0
3952   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3953   while :
3954   do
3955     cat "conftest.in" "conftest.in" >"conftest.tmp"
3956     mv "conftest.tmp" "conftest.in"
3957     cp "conftest.in" "conftest.nl"
3958     echo 'GREP' >> "conftest.nl"
3959     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3960     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3961     ac_count=`expr $ac_count + 1`
3962     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3963       # Best one so far, save it but keep looking for a better one
3964       ac_cv_path_GREP="$ac_path_GREP"
3965       ac_path_GREP_max=$ac_count
3966     fi
3967     # 10*(2^10) chars as input seems more than enough
3968     test $ac_count -gt 10 && break
3969   done
3970   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3971 esac
3972
3973
3974     $ac_path_GREP_found && break 3
3975   done
3976 done
3977
3978 done
3979 IFS=$as_save_IFS
3980
3981
3982 fi
3983
3984 GREP="$ac_cv_path_GREP"
3985 if test -z "$GREP"; then
3986   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3987 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3988    { (exit 1); exit 1; }; }
3989 fi
3990
3991 else
3992   ac_cv_path_GREP=$GREP
3993 fi
3994
3995
3996 fi
3997 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3998 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3999  GREP="$ac_cv_path_GREP"
4000
4001
4002 { echo "$as_me:$LINENO: checking for egrep" >&5
4003 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4004 if test "${ac_cv_path_EGREP+set}" = set; then
4005   echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4008    then ac_cv_path_EGREP="$GREP -E"
4009    else
4010      # Extract the first word of "egrep" to use in msg output
4011 if test -z "$EGREP"; then
4012 set dummy egrep; ac_prog_name=$2
4013 if test "${ac_cv_path_EGREP+set}" = set; then
4014   echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016   ac_path_EGREP_found=false
4017 # Loop through the user's path and test for each of PROGNAME-LIST
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4020 do
4021   IFS=$as_save_IFS
4022   test -z "$as_dir" && as_dir=.
4023   for ac_prog in egrep; do
4024   for ac_exec_ext in '' $ac_executable_extensions; do
4025     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4026     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4027     # Check for GNU ac_path_EGREP and select it if it is found.
4028   # Check for GNU $ac_path_EGREP
4029 case `"$ac_path_EGREP" --version 2>&1` in
4030 *GNU*)
4031   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4032 *)
4033   ac_count=0
4034   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4035   while :
4036   do
4037     cat "conftest.in" "conftest.in" >"conftest.tmp"
4038     mv "conftest.tmp" "conftest.in"
4039     cp "conftest.in" "conftest.nl"
4040     echo 'EGREP' >> "conftest.nl"
4041     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4042     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4043     ac_count=`expr $ac_count + 1`
4044     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4045       # Best one so far, save it but keep looking for a better one
4046       ac_cv_path_EGREP="$ac_path_EGREP"
4047       ac_path_EGREP_max=$ac_count
4048     fi
4049     # 10*(2^10) chars as input seems more than enough
4050     test $ac_count -gt 10 && break
4051   done
4052   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4053 esac
4054
4055
4056     $ac_path_EGREP_found && break 3
4057   done
4058 done
4059
4060 done
4061 IFS=$as_save_IFS
4062
4063
4064 fi
4065
4066 EGREP="$ac_cv_path_EGREP"
4067 if test -z "$EGREP"; then
4068   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4069 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4070    { (exit 1); exit 1; }; }
4071 fi
4072
4073 else
4074   ac_cv_path_EGREP=$EGREP
4075 fi
4076
4077
4078    fi
4079 fi
4080 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4081 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4082  EGREP="$ac_cv_path_EGREP"
4083
4084
4085 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4086 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4087 if test "${ac_cv_header_stdc+set}" = set; then
4088   echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090   cat >conftest.$ac_ext <<_ACEOF
4091 /* confdefs.h.  */
4092 _ACEOF
4093 cat confdefs.h >>conftest.$ac_ext
4094 cat >>conftest.$ac_ext <<_ACEOF
4095 /* end confdefs.h.  */
4096 #include <stdlib.h>
4097 #include <stdarg.h>
4098 #include <string.h>
4099 #include <float.h>
4100
4101 int
4102 main ()
4103 {
4104
4105   ;
4106   return 0;
4107 }
4108 _ACEOF
4109 rm -f conftest.$ac_objext
4110 if { (ac_try="$ac_compile"
4111 case "(($ac_try" in
4112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113   *) ac_try_echo=$ac_try;;
4114 esac
4115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4116   (eval "$ac_compile") 2>conftest.er1
4117   ac_status=$?
4118   grep -v '^ *+' conftest.er1 >conftest.err
4119   rm -f conftest.er1
4120   cat conftest.err >&5
4121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122   (exit $ac_status); } &&
4123          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4124   { (case "(($ac_try" in
4125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126   *) ac_try_echo=$ac_try;;
4127 esac
4128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4129   (eval "$ac_try") 2>&5
4130   ac_status=$?
4131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132   (exit $ac_status); }; } &&
4133          { ac_try='test -s conftest.$ac_objext'
4134   { (case "(($ac_try" in
4135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136   *) ac_try_echo=$ac_try;;
4137 esac
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139   (eval "$ac_try") 2>&5
4140   ac_status=$?
4141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142   (exit $ac_status); }; }; then
4143   ac_cv_header_stdc=yes
4144 else
4145   echo "$as_me: failed program was:" >&5
4146 sed 's/^/| /' conftest.$ac_ext >&5
4147
4148         ac_cv_header_stdc=no
4149 fi
4150
4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4152
4153 if test $ac_cv_header_stdc = yes; then
4154   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4155   cat >conftest.$ac_ext <<_ACEOF
4156 /* confdefs.h.  */
4157 _ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h.  */
4161 #include <string.h>
4162
4163 _ACEOF
4164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4165   $EGREP "memchr" >/dev/null 2>&1; then
4166   :
4167 else
4168   ac_cv_header_stdc=no
4169 fi
4170 rm -f conftest*
4171
4172 fi
4173
4174 if test $ac_cv_header_stdc = yes; then
4175   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4176   cat >conftest.$ac_ext <<_ACEOF
4177 /* confdefs.h.  */
4178 _ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h.  */
4182 #include <stdlib.h>
4183
4184 _ACEOF
4185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4186   $EGREP "free" >/dev/null 2>&1; then
4187   :
4188 else
4189   ac_cv_header_stdc=no
4190 fi
4191 rm -f conftest*
4192
4193 fi
4194
4195 if test $ac_cv_header_stdc = yes; then
4196   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4197   if test "$cross_compiling" = yes; then
4198   :
4199 else
4200   cat >conftest.$ac_ext <<_ACEOF
4201 /* confdefs.h.  */
4202 _ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h.  */
4206 #include <ctype.h>
4207 #include <stdlib.h>
4208 #if ((' ' & 0x0FF) == 0x020)
4209 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4210 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4211 #else
4212 # define ISLOWER(c) \
4213                    (('a' <= (c) && (c) <= 'i') \
4214                      || ('j' <= (c) && (c) <= 'r') \
4215                      || ('s' <= (c) && (c) <= 'z'))
4216 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4217 #endif
4218
4219 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4220 int
4221 main ()
4222 {
4223   int i;
4224   for (i = 0; i < 256; i++)
4225     if (XOR (islower (i), ISLOWER (i))
4226         || toupper (i) != TOUPPER (i))
4227       return 2;
4228   return 0;
4229 }
4230 _ACEOF
4231 rm -f conftest$ac_exeext
4232 if { (ac_try="$ac_link"
4233 case "(($ac_try" in
4234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235   *) ac_try_echo=$ac_try;;
4236 esac
4237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238   (eval "$ac_link") 2>&5
4239   ac_status=$?
4240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4242   { (case "(($ac_try" in
4243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244   *) ac_try_echo=$ac_try;;
4245 esac
4246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247   (eval "$ac_try") 2>&5
4248   ac_status=$?
4249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250   (exit $ac_status); }; }; then
4251   :
4252 else
4253   echo "$as_me: program exited with status $ac_status" >&5
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4256
4257 ( exit $ac_status )
4258 ac_cv_header_stdc=no
4259 fi
4260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4261 fi
4262
4263
4264 fi
4265 fi
4266 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4267 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4268 if test $ac_cv_header_stdc = yes; then
4269
4270 cat >>confdefs.h <<\_ACEOF
4271 #define STDC_HEADERS 1
4272 _ACEOF
4273
4274 fi
4275
4276 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4287                   inttypes.h stdint.h unistd.h
4288 do
4289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4293   echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295   cat >conftest.$ac_ext <<_ACEOF
4296 /* confdefs.h.  */
4297 _ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h.  */
4301 $ac_includes_default
4302
4303 #include <$ac_header>
4304 _ACEOF
4305 rm -f conftest.$ac_objext
4306 if { (ac_try="$ac_compile"
4307 case "(($ac_try" in
4308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309   *) ac_try_echo=$ac_try;;
4310 esac
4311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312   (eval "$ac_compile") 2>conftest.er1
4313   ac_status=$?
4314   grep -v '^ *+' conftest.er1 >conftest.err
4315   rm -f conftest.er1
4316   cat conftest.err >&5
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); } &&
4319          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4320   { (case "(($ac_try" in
4321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322   *) ac_try_echo=$ac_try;;
4323 esac
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325   (eval "$ac_try") 2>&5
4326   ac_status=$?
4327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328   (exit $ac_status); }; } &&
4329          { ac_try='test -s conftest.$ac_objext'
4330   { (case "(($ac_try" in
4331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332   *) ac_try_echo=$ac_try;;
4333 esac
4334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4335   (eval "$ac_try") 2>&5
4336   ac_status=$?
4337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338   (exit $ac_status); }; }; then
4339   eval "$as_ac_Header=yes"
4340 else
4341   echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4343
4344         eval "$as_ac_Header=no"
4345 fi
4346
4347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4348 fi
4349 ac_res=`eval echo '${'$as_ac_Header'}'`
4350                { echo "$as_me:$LINENO: result: $ac_res" >&5
4351 echo "${ECHO_T}$ac_res" >&6; }
4352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4353   cat >>confdefs.h <<_ACEOF
4354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4355 _ACEOF
4356
4357 fi
4358
4359 done
4360
4361
4362 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4363 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4364 if test "${ac_cv_c_bigendian+set}" = set; then
4365   echo $ECHO_N "(cached) $ECHO_C" >&6
4366 else
4367   # See if sys/param.h defines the BYTE_ORDER macro.
4368 cat >conftest.$ac_ext <<_ACEOF
4369 /* confdefs.h.  */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h.  */
4374 #include <sys/types.h>
4375 #include <sys/param.h>
4376
4377 int
4378 main ()
4379 {
4380 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4381  bogus endian macros
4382 #endif
4383
4384   ;
4385   return 0;
4386 }
4387 _ACEOF
4388 rm -f conftest.$ac_objext
4389 if { (ac_try="$ac_compile"
4390 case "(($ac_try" in
4391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392   *) ac_try_echo=$ac_try;;
4393 esac
4394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4395   (eval "$ac_compile") 2>conftest.er1
4396   ac_status=$?
4397   grep -v '^ *+' conftest.er1 >conftest.err
4398   rm -f conftest.er1
4399   cat conftest.err >&5
4400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401   (exit $ac_status); } &&
4402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4403   { (case "(($ac_try" in
4404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405   *) ac_try_echo=$ac_try;;
4406 esac
4407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4408   (eval "$ac_try") 2>&5
4409   ac_status=$?
4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); }; } &&
4412          { ac_try='test -s conftest.$ac_objext'
4413   { (case "(($ac_try" in
4414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415   *) ac_try_echo=$ac_try;;
4416 esac
4417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4418   (eval "$ac_try") 2>&5
4419   ac_status=$?
4420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421   (exit $ac_status); }; }; then
4422   # It does; now see whether it defined to BIG_ENDIAN or not.
4423 cat >conftest.$ac_ext <<_ACEOF
4424 /* confdefs.h.  */
4425 _ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h.  */
4429 #include <sys/types.h>
4430 #include <sys/param.h>
4431
4432 int
4433 main ()
4434 {
4435 #if BYTE_ORDER != BIG_ENDIAN
4436  not big endian
4437 #endif
4438
4439   ;
4440   return 0;
4441 }
4442 _ACEOF
4443 rm -f conftest.$ac_objext
4444 if { (ac_try="$ac_compile"
4445 case "(($ac_try" in
4446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447   *) ac_try_echo=$ac_try;;
4448 esac
4449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4450   (eval "$ac_compile") 2>conftest.er1
4451   ac_status=$?
4452   grep -v '^ *+' conftest.er1 >conftest.err
4453   rm -f conftest.er1
4454   cat conftest.err >&5
4455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456   (exit $ac_status); } &&
4457          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4458   { (case "(($ac_try" in
4459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460   *) ac_try_echo=$ac_try;;
4461 esac
4462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463   (eval "$ac_try") 2>&5
4464   ac_status=$?
4465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466   (exit $ac_status); }; } &&
4467          { ac_try='test -s conftest.$ac_objext'
4468   { (case "(($ac_try" in
4469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470   *) ac_try_echo=$ac_try;;
4471 esac
4472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473   (eval "$ac_try") 2>&5
4474   ac_status=$?
4475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476   (exit $ac_status); }; }; then
4477   ac_cv_c_bigendian=yes
4478 else
4479   echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4481
4482         ac_cv_c_bigendian=no
4483 fi
4484
4485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4486 else
4487   echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4489
4490         # It does not; compile a test program.
4491 if test "$cross_compiling" = yes; then
4492   # try to guess the endianness by grepping values into an object file
4493   ac_cv_c_bigendian=unknown
4494   cat >conftest.$ac_ext <<_ACEOF
4495 /* confdefs.h.  */
4496 _ACEOF
4497 cat confdefs.h >>conftest.$ac_ext
4498 cat >>conftest.$ac_ext <<_ACEOF
4499 /* end confdefs.h.  */
4500 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4501 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4502 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4503 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4504 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4505 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4506 int
4507 main ()
4508 {
4509  _ascii (); _ebcdic ();
4510   ;
4511   return 0;
4512 }
4513 _ACEOF
4514 rm -f conftest.$ac_objext
4515 if { (ac_try="$ac_compile"
4516 case "(($ac_try" in
4517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518   *) ac_try_echo=$ac_try;;
4519 esac
4520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4521   (eval "$ac_compile") 2>conftest.er1
4522   ac_status=$?
4523   grep -v '^ *+' conftest.er1 >conftest.err
4524   rm -f conftest.er1
4525   cat conftest.err >&5
4526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527   (exit $ac_status); } &&
4528          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4529   { (case "(($ac_try" in
4530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531   *) ac_try_echo=$ac_try;;
4532 esac
4533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4534   (eval "$ac_try") 2>&5
4535   ac_status=$?
4536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537   (exit $ac_status); }; } &&
4538          { ac_try='test -s conftest.$ac_objext'
4539   { (case "(($ac_try" in
4540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541   *) ac_try_echo=$ac_try;;
4542 esac
4543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544   (eval "$ac_try") 2>&5
4545   ac_status=$?
4546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547   (exit $ac_status); }; }; then
4548   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4549   ac_cv_c_bigendian=yes
4550 fi
4551 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4552   if test "$ac_cv_c_bigendian" = unknown; then
4553     ac_cv_c_bigendian=no
4554   else
4555     # finding both strings is unlikely to happen, but who knows?
4556     ac_cv_c_bigendian=unknown
4557   fi
4558 fi
4559 else
4560   echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4562
4563
4564 fi
4565
4566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4567 else
4568   cat >conftest.$ac_ext <<_ACEOF
4569 /* confdefs.h.  */
4570 _ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h.  */
4574 $ac_includes_default
4575 int
4576 main ()
4577 {
4578
4579   /* Are we little or big endian?  From Harbison&Steele.  */
4580   union
4581   {
4582     long int l;
4583     char c[sizeof (long int)];
4584   } u;
4585   u.l = 1;
4586   return u.c[sizeof (long int) - 1] == 1;
4587
4588   ;
4589   return 0;
4590 }
4591 _ACEOF
4592 rm -f conftest$ac_exeext
4593 if { (ac_try="$ac_link"
4594 case "(($ac_try" in
4595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596   *) ac_try_echo=$ac_try;;
4597 esac
4598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599   (eval "$ac_link") 2>&5
4600   ac_status=$?
4601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4603   { (case "(($ac_try" in
4604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4605   *) ac_try_echo=$ac_try;;
4606 esac
4607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4608   (eval "$ac_try") 2>&5
4609   ac_status=$?
4610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611   (exit $ac_status); }; }; then
4612   ac_cv_c_bigendian=no
4613 else
4614   echo "$as_me: program exited with status $ac_status" >&5
4615 echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4617
4618 ( exit $ac_status )
4619 ac_cv_c_bigendian=yes
4620 fi
4621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4622 fi
4623
4624
4625 fi
4626
4627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4628 fi
4629 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4630 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4631 case $ac_cv_c_bigendian in
4632   yes)
4633     ENDIAN=big
4634  ;;
4635   no)
4636     ENDIAN=little
4637  ;;
4638   *)
4639     { { echo "$as_me:$LINENO: error: unknown endianness
4640 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4641 echo "$as_me: error: unknown endianness
4642 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4643    { (exit 1); exit 1; }; } ;;
4644 esac
4645
4646
4647 if test "$cross_compiling" = yes; then
4648   LLVM_CROSS_COMPILING=1
4649
4650
4651 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4652 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4653 if test "${ac_cv_build_exeext+set}" = set; then
4654   echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4657   ac_cv_build_exeext=.exe
4658 else
4659   ac_build_prefix=${build_alias}-
4660
4661   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4662 set dummy ${ac_build_prefix}gcc; ac_word=$2
4663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4665 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4666   echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668   if test -n "$BUILD_CC"; then
4669   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4670 else
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4673 do
4674   IFS=$as_save_IFS
4675   test -z "$as_dir" && as_dir=.
4676   for ac_exec_ext in '' $ac_executable_extensions; do
4677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4678     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680     break 2
4681   fi
4682 done
4683 done
4684 IFS=$as_save_IFS
4685
4686 fi
4687 fi
4688 BUILD_CC=$ac_cv_prog_BUILD_CC
4689 if test -n "$BUILD_CC"; then
4690   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4691 echo "${ECHO_T}$BUILD_CC" >&6; }
4692 else
4693   { echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6; }
4695 fi
4696
4697
4698   if test -z "$BUILD_CC"; then
4699      # Extract the first word of "gcc", so it can be a program name with args.
4700 set dummy gcc; ac_word=$2
4701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4703 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4704   echo $ECHO_N "(cached) $ECHO_C" >&6
4705 else
4706   if test -n "$BUILD_CC"; then
4707   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4708 else
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712   IFS=$as_save_IFS
4713   test -z "$as_dir" && as_dir=.
4714   for ac_exec_ext in '' $ac_executable_extensions; do
4715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4716     ac_cv_prog_BUILD_CC="gcc"
4717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718     break 2
4719   fi
4720 done
4721 done
4722 IFS=$as_save_IFS
4723
4724 fi
4725 fi
4726 BUILD_CC=$ac_cv_prog_BUILD_CC
4727 if test -n "$BUILD_CC"; then
4728   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4729 echo "${ECHO_T}$BUILD_CC" >&6; }
4730 else
4731   { echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6; }
4733 fi
4734
4735
4736      if test -z "$BUILD_CC"; then
4737        # Extract the first word of "cc", so it can be a program name with args.
4738 set dummy cc; ac_word=$2
4739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4741 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4742   echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744   if test -n "$BUILD_CC"; then
4745   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4746 else
4747   ac_prog_rejected=no
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 for as_dir in $PATH
4750 do
4751   IFS=$as_save_IFS
4752   test -z "$as_dir" && as_dir=.
4753   for ac_exec_ext in '' $ac_executable_extensions; do
4754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4755     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4756        ac_prog_rejected=yes
4757        continue
4758      fi
4759     ac_cv_prog_BUILD_CC="cc"
4760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761     break 2
4762   fi
4763 done
4764 done
4765 IFS=$as_save_IFS
4766
4767 if test $ac_prog_rejected = yes; then
4768   # We found a bogon in the path, so make sure we never use it.
4769   set dummy $ac_cv_prog_BUILD_CC
4770   shift
4771   if test $# != 0; then
4772     # We chose a different compiler from the bogus one.
4773     # However, it has the same basename, so the bogon will be chosen
4774     # first if we set BUILD_CC to just the basename; use the full file name.
4775     shift
4776     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4777   fi
4778 fi
4779 fi
4780 fi
4781 BUILD_CC=$ac_cv_prog_BUILD_CC
4782 if test -n "$BUILD_CC"; then
4783   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4784 echo "${ECHO_T}$BUILD_CC" >&6; }
4785 else
4786   { echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6; }
4788 fi
4789
4790
4791      fi
4792   fi
4793   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4794 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4795    { (exit 1); exit 1; }; }
4796   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4797   rm -f conftest*
4798   echo 'int main () { return 0; }' > conftest.$ac_ext
4799   ac_cv_build_exeext=
4800   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4801   (eval $ac_build_link) 2>&5
4802   ac_status=$?
4803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804   (exit $ac_status); }; then
4805     for file in conftest.*; do
4806       case $file in
4807       *.c | *.o | *.obj | *.dSYM) ;;
4808       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4809       esac
4810     done
4811   else
4812     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4813 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4814    { (exit 1); exit 1; }; }
4815   fi
4816   rm -f conftest*
4817   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4818 fi
4819 fi
4820
4821 BUILD_EXEEXT=""
4822 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4823 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4824 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4825 ac_build_exeext=$BUILD_EXEEXT
4826
4827   ac_build_prefix=${build_alias}-
4828   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4829 set dummy ${ac_build_prefix}g++; ac_word=$2
4830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4832 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4833   echo $ECHO_N "(cached) $ECHO_C" >&6
4834 else
4835   if test -n "$BUILD_CXX"; then
4836   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4837 else
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4840 do
4841   IFS=$as_save_IFS
4842   test -z "$as_dir" && as_dir=.
4843   for ac_exec_ext in '' $ac_executable_extensions; do
4844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4845     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4847     break 2
4848   fi
4849 done
4850 done
4851 IFS=$as_save_IFS
4852
4853 fi
4854 fi
4855 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4856 if test -n "$BUILD_CXX"; then
4857   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4858 echo "${ECHO_T}$BUILD_CXX" >&6; }
4859 else
4860   { echo "$as_me:$LINENO: result: no" >&5
4861 echo "${ECHO_T}no" >&6; }
4862 fi
4863
4864
4865   if test -z "$BUILD_CXX"; then
4866      # Extract the first word of "g++", so it can be a program name with args.
4867 set dummy g++; ac_word=$2
4868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4870 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4871   echo $ECHO_N "(cached) $ECHO_C" >&6
4872 else
4873   if test -n "$BUILD_CXX"; then
4874   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4875 else
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4878 do
4879   IFS=$as_save_IFS
4880   test -z "$as_dir" && as_dir=.
4881   for ac_exec_ext in '' $ac_executable_extensions; do
4882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4883     ac_cv_prog_BUILD_CXX="g++"
4884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4885     break 2
4886   fi
4887 done
4888 done
4889 IFS=$as_save_IFS
4890
4891 fi
4892 fi
4893 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4894 if test -n "$BUILD_CXX"; then
4895   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4896 echo "${ECHO_T}$BUILD_CXX" >&6; }
4897 else
4898   { echo "$as_me:$LINENO: result: no" >&5
4899 echo "${ECHO_T}no" >&6; }
4900 fi
4901
4902
4903      if test -z "$BUILD_CXX"; then
4904        # Extract the first word of "c++", so it can be a program name with args.
4905 set dummy c++; ac_word=$2
4906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4908 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4909   echo $ECHO_N "(cached) $ECHO_C" >&6
4910 else
4911   if test -n "$BUILD_CXX"; then
4912   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4913 else
4914   ac_prog_rejected=no
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 for as_dir in $PATH
4917 do
4918   IFS=$as_save_IFS
4919   test -z "$as_dir" && as_dir=.
4920   for ac_exec_ext in '' $ac_executable_extensions; do
4921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4922     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4923        ac_prog_rejected=yes
4924        continue
4925      fi
4926     ac_cv_prog_BUILD_CXX="c++"
4927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4928     break 2
4929   fi
4930 done
4931 done
4932 IFS=$as_save_IFS
4933
4934 if test $ac_prog_rejected = yes; then
4935   # We found a bogon in the path, so make sure we never use it.
4936   set dummy $ac_cv_prog_BUILD_CXX
4937   shift
4938   if test $# != 0; then
4939     # We chose a different compiler from the bogus one.
4940     # However, it has the same basename, so the bogon will be chosen
4941     # first if we set BUILD_CXX to just the basename; use the full file name.
4942     shift
4943     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4944   fi
4945 fi
4946 fi
4947 fi
4948 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4949 if test -n "$BUILD_CXX"; then
4950   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4951 echo "${ECHO_T}$BUILD_CXX" >&6; }
4952 else
4953   { echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6; }
4955 fi
4956
4957
4958      fi
4959   fi
4960 else
4961   LLVM_CROSS_COMPILING=0
4962
4963 fi
4964
4965 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4966   cvsbuild="yes"
4967   optimize="no"
4968   CVSBUILD=CVSBUILD=1
4969
4970 else
4971   cvsbuild="no"
4972   optimize="yes"
4973 fi
4974
4975
4976 # Check whether --enable-libcpp was given.
4977 if test "${enable_libcpp+set}" = set; then
4978   enableval=$enable_libcpp;
4979 else
4980   enableval=default
4981 fi
4982
4983 case "$enableval" in
4984   yes) ENABLE_LIBCPP=1
4985  ;;
4986   no)  ENABLE_LIBCPP=0
4987  ;;
4988   default) ENABLE_LIBCPP=0
4989 ;;
4990   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4991 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4992    { (exit 1); exit 1; }; } ;;
4993 esac
4994
4995 # Check whether --enable-optimized was given.
4996 if test "${enable_optimized+set}" = set; then
4997   enableval=$enable_optimized;
4998 else
4999   enableval=$optimize
5000 fi
5001
5002 if test ${enableval} = "no" ; then
5003   ENABLE_OPTIMIZED=
5004
5005 else
5006   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5007
5008 fi
5009
5010 # Check whether --enable-profiling was given.
5011 if test "${enable_profiling+set}" = set; then
5012   enableval=$enable_profiling;
5013 else
5014   enableval="no"
5015 fi
5016
5017 if test ${enableval} = "no" ; then
5018   ENABLE_PROFILING=
5019
5020 else
5021   ENABLE_PROFILING=ENABLE_PROFILING=1
5022
5023 fi
5024
5025 # Check whether --enable-assertions was given.
5026 if test "${enable_assertions+set}" = set; then
5027   enableval=$enable_assertions;
5028 else
5029   enableval="yes"
5030 fi
5031
5032 if test ${enableval} = "yes" ; then
5033   DISABLE_ASSERTIONS=
5034
5035 else
5036   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5037
5038 fi
5039
5040 # Check whether --enable-expensive-checks was given.
5041 if test "${enable_expensive_checks+set}" = set; then
5042   enableval=$enable_expensive_checks;
5043 else
5044   enableval="no"
5045 fi
5046
5047 if test ${enableval} = "yes" ; then
5048   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5049
5050   EXPENSIVE_CHECKS=yes
5051
5052 else
5053   ENABLE_EXPENSIVE_CHECKS=
5054
5055   EXPENSIVE_CHECKS=no
5056
5057 fi
5058
5059 # Check whether --enable-debug-runtime was given.
5060 if test "${enable_debug_runtime+set}" = set; then
5061   enableval=$enable_debug_runtime;
5062 else
5063   enableval=no
5064 fi
5065
5066 if test ${enableval} = "no" ; then
5067   DEBUG_RUNTIME=
5068
5069 else
5070   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5071
5072 fi
5073
5074 # Check whether --enable-debug-symbols was given.
5075 if test "${enable_debug_symbols+set}" = set; then
5076   enableval=$enable_debug_symbols;
5077 else
5078   enableval=no
5079 fi
5080
5081 if test ${enableval} = "no" ; then
5082   DEBUG_SYMBOLS=
5083
5084 else
5085   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5086
5087 fi
5088
5089 # Check whether --enable-jit was given.
5090 if test "${enable_jit+set}" = set; then
5091   enableval=$enable_jit;
5092 else
5093   enableval=default
5094 fi
5095
5096 if test ${enableval} = "no"
5097 then
5098   JIT=
5099
5100 else
5101   case "$llvm_cv_target_arch" in
5102     x86)         TARGET_HAS_JIT=1
5103  ;;
5104     Sparc)       TARGET_HAS_JIT=0
5105  ;;
5106     PowerPC)     TARGET_HAS_JIT=1
5107  ;;
5108     x86_64)      TARGET_HAS_JIT=1
5109  ;;
5110     ARM)         TARGET_HAS_JIT=1
5111  ;;
5112     Mips)        TARGET_HAS_JIT=1
5113  ;;
5114     XCore)       TARGET_HAS_JIT=0
5115  ;;
5116     MSP430)      TARGET_HAS_JIT=0
5117  ;;
5118     Hexagon)     TARGET_HAS_JIT=0
5119  ;;
5120     MBlaze)      TARGET_HAS_JIT=0
5121  ;;
5122     PTX)         TARGET_HAS_JIT=0
5123  ;;
5124     NVPTX)       TARGET_HAS_JIT=0
5125  ;;
5126     *)           TARGET_HAS_JIT=0
5127  ;;
5128   esac
5129 fi
5130
5131 # Check whether --enable-docs was given.
5132 if test "${enable_docs+set}" = set; then
5133   enableval=$enable_docs;
5134 else
5135   enableval=default
5136 fi
5137
5138 case "$enableval" in
5139   yes) ENABLE_DOCS=1
5140  ;;
5141   no)  ENABLE_DOCS=0
5142  ;;
5143   default) ENABLE_DOCS=1
5144  ;;
5145   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5146 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5147    { (exit 1); exit 1; }; } ;;
5148 esac
5149
5150 # Check whether --enable-doxygen was given.
5151 if test "${enable_doxygen+set}" = set; then
5152   enableval=$enable_doxygen;
5153 else
5154   enableval=default
5155 fi
5156
5157 case "$enableval" in
5158   yes) ENABLE_DOXYGEN=1
5159  ;;
5160   no)  ENABLE_DOXYGEN=0
5161  ;;
5162   default) ENABLE_DOXYGEN=0
5163  ;;
5164   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5165 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5166    { (exit 1); exit 1; }; } ;;
5167 esac
5168
5169 # Check whether --enable-threads was given.
5170 if test "${enable_threads+set}" = set; then
5171   enableval=$enable_threads;
5172 else
5173   enableval=default
5174 fi
5175
5176 case "$enableval" in
5177   yes) LLVM_ENABLE_THREADS=1
5178  ;;
5179   no)  LLVM_ENABLE_THREADS=0
5180  ;;
5181   default) LLVM_ENABLE_THREADS=1
5182  ;;
5183   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5184 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5185    { (exit 1); exit 1; }; } ;;
5186 esac
5187
5188 cat >>confdefs.h <<_ACEOF
5189 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5190 _ACEOF
5191
5192
5193 # Check whether --enable-pthreads was given.
5194 if test "${enable_pthreads+set}" = set; then
5195   enableval=$enable_pthreads;
5196 else
5197   enableval=default
5198 fi
5199
5200 case "$enableval" in
5201   yes) ENABLE_PTHREADS=1
5202  ;;
5203   no)  ENABLE_PTHREADS=0
5204  ;;
5205   default) ENABLE_PTHREADS=1
5206  ;;
5207   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5208 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5209    { (exit 1); exit 1; }; } ;;
5210 esac
5211
5212 # Check whether --enable-pic was given.
5213 if test "${enable_pic+set}" = set; then
5214   enableval=$enable_pic;
5215 else
5216   enableval=default
5217 fi
5218
5219 case "$enableval" in
5220   yes) ENABLE_PIC=1
5221  ;;
5222   no)  ENABLE_PIC=0
5223  ;;
5224   default) ENABLE_PIC=1
5225  ;;
5226   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5227 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5228    { (exit 1); exit 1; }; } ;;
5229 esac
5230
5231 cat >>confdefs.h <<_ACEOF
5232 #define ENABLE_PIC $ENABLE_PIC
5233 _ACEOF
5234
5235
5236 # Check whether --enable-shared was given.
5237 if test "${enable_shared+set}" = set; then
5238   enableval=$enable_shared;
5239 else
5240   enableval=default
5241 fi
5242
5243 case "$enableval" in
5244   yes) ENABLE_SHARED=1
5245  ;;
5246   no)  ENABLE_SHARED=0
5247  ;;
5248   default) ENABLE_SHARED=0
5249  ;;
5250   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5251 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5252    { (exit 1); exit 1; }; } ;;
5253 esac
5254
5255 # Check whether --enable-embed-stdcxx was given.
5256 if test "${enable_embed_stdcxx+set}" = set; then
5257   enableval=$enable_embed_stdcxx;
5258 else
5259   enableval=default
5260 fi
5261
5262 case "$enableval" in
5263   yes) ENABLE_EMBED_STDCXX=1
5264  ;;
5265   no)  ENABLE_EMBED_STDCXX=0
5266  ;;
5267   default) ENABLE_EMBED_STDCXX=0
5268  ;;
5269   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5270 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5271    { (exit 1); exit 1; }; } ;;
5272 esac
5273
5274 # Check whether --enable-timestamps was given.
5275 if test "${enable_timestamps+set}" = set; then
5276   enableval=$enable_timestamps;
5277 else
5278   enableval=default
5279 fi
5280
5281 case "$enableval" in
5282   yes) ENABLE_TIMESTAMPS=1
5283  ;;
5284   no)  ENABLE_TIMESTAMPS=0
5285  ;;
5286   default) ENABLE_TIMESTAMPS=1
5287  ;;
5288   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5289 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5290    { (exit 1); exit 1; }; } ;;
5291 esac
5292
5293 cat >>confdefs.h <<_ACEOF
5294 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5295 _ACEOF
5296
5297
5298 TARGETS_TO_BUILD=""
5299 # Check whether --enable-targets was given.
5300 if test "${enable_targets+set}" = set; then
5301   enableval=$enable_targets;
5302 else
5303   enableval=all
5304 fi
5305
5306 if test "$enableval" = host-only ; then
5307   enableval=host
5308 fi
5309 case "$enableval" in
5310   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze PTX NVPTX Hexagon" ;;
5311   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5312       case "$a_target" in
5313         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5314         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5315         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5316         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5317         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5318         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5319         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5320         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5321         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5322         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5323         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5324         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5325         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5326         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5327         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5328         host) case "$llvm_cv_target_arch" in
5329             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5330             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5331             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5332             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5333             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5334             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5335             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5336             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5337             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5338             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5339             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5340             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5341             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5342             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5343 echo "$as_me: error: Can not set target to build" >&2;}
5344    { (exit 1); exit 1; }; } ;;
5345           esac ;;
5346         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5347 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5348    { (exit 1); exit 1; }; } ;;
5349       esac
5350   done
5351   ;;
5352 esac
5353 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5354
5355
5356 for a_target in $TARGETS_TO_BUILD; do
5357   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5358
5359 cat >>confdefs.h <<_ACEOF
5360 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5361 _ACEOF
5362
5363     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5364     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5365     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5366     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5367     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5368       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5369     fi
5370     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5371       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5372     fi
5373
5374 cat >>confdefs.h <<_ACEOF
5375 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5376 _ACEOF
5377
5378
5379 cat >>confdefs.h <<_ACEOF
5380 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5381 _ACEOF
5382
5383
5384 cat >>confdefs.h <<_ACEOF
5385 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5386 _ACEOF
5387
5388
5389 cat >>confdefs.h <<_ACEOF
5390 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5391 _ACEOF
5392
5393     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5394
5395 cat >>confdefs.h <<_ACEOF
5396 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5397 _ACEOF
5398
5399     fi
5400     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5401
5402 cat >>confdefs.h <<_ACEOF
5403 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5404 _ACEOF
5405
5406     fi
5407   fi
5408 done
5409
5410 LLVM_ENUM_TARGETS=""
5411 LLVM_ENUM_ASM_PRINTERS=""
5412 LLVM_ENUM_ASM_PARSERS=""
5413 LLVM_ENUM_DISASSEMBLERS=""
5414 for target_to_build in $TARGETS_TO_BUILD; do
5415   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5416   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5417     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5418   fi
5419   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5420     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5421   fi
5422   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5423     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5424   fi
5425 done
5426
5427
5428
5429
5430
5431
5432 # Check whether --with-optimize-option was given.
5433 if test "${with_optimize_option+set}" = set; then
5434   withval=$with_optimize_option;
5435 else
5436   withval=default
5437 fi
5438
5439 { echo "$as_me:$LINENO: checking optimization flags" >&5
5440 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5441 case "$withval" in
5442   default)
5443     case "$llvm_cv_os_type" in
5444     FreeBSD) optimize_option=-O2 ;;
5445     MingW) optimize_option=-O2 ;;
5446     *)     optimize_option=-O3 ;;
5447     esac ;;
5448   *) optimize_option="$withval" ;;
5449 esac
5450 OPTIMIZE_OPTION=$optimize_option
5451
5452 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5453 echo "${ECHO_T}$optimize_option" >&6; }
5454
5455
5456 # Check whether --with-extra-options was given.
5457 if test "${with_extra_options+set}" = set; then
5458   withval=$with_extra_options;
5459 else
5460   withval=default
5461 fi
5462
5463 case "$withval" in
5464   default) EXTRA_OPTIONS= ;;
5465   *) EXTRA_OPTIONS=$withval ;;
5466 esac
5467 EXTRA_OPTIONS=$EXTRA_OPTIONS
5468
5469
5470
5471 # Check whether --with-extra-ld-options was given.
5472 if test "${with_extra_ld_options+set}" = set; then
5473   withval=$with_extra_ld_options;
5474 else
5475   withval=default
5476 fi
5477
5478 case "$withval" in
5479   default) EXTRA_LD_OPTIONS= ;;
5480   *) EXTRA_LD_OPTIONS=$withval ;;
5481 esac
5482 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5483
5484
5485 # Check whether --enable-bindings was given.
5486 if test "${enable_bindings+set}" = set; then
5487   enableval=$enable_bindings;
5488 else
5489   enableval=default
5490 fi
5491
5492 BINDINGS_TO_BUILD=""
5493 case "$enableval" in
5494   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5495   all ) BINDINGS_TO_BUILD="ocaml" ;;
5496   none | no) BINDINGS_TO_BUILD="" ;;
5497   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5498       case "$a_binding" in
5499         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5500         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5501 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5502    { (exit 1); exit 1; }; } ;;
5503       esac
5504   done
5505   ;;
5506 esac
5507
5508
5509 # Check whether --with-ocaml-libdir was given.
5510 if test "${with_ocaml_libdir+set}" = set; then
5511   withval=$with_ocaml_libdir;
5512 else
5513   withval=auto
5514 fi
5515
5516 case "$withval" in
5517   auto) with_ocaml_libdir="$withval" ;;
5518   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5519   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5520 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5521    { (exit 1); exit 1; }; } ;;
5522 esac
5523
5524
5525 # Check whether --with-clang-srcdir was given.
5526 if test "${with_clang_srcdir+set}" = set; then
5527   withval=$with_clang_srcdir;
5528 else
5529   withval="-"
5530 fi
5531
5532 case "$withval" in
5533   -) clang_src_root="" ;;
5534   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5535   *) clang_src_root="$ac_pwd/$withval" ;;
5536 esac
5537 CLANG_SRC_ROOT=$clang_src_root
5538
5539
5540
5541 # Check whether --with-clang-resource-dir was given.
5542 if test "${with_clang_resource_dir+set}" = set; then
5543   withval=$with_clang_resource_dir;
5544 else
5545   withval=""
5546 fi
5547
5548
5549 cat >>confdefs.h <<_ACEOF
5550 #define CLANG_RESOURCE_DIR "$withval"
5551 _ACEOF
5552
5553
5554
5555 # Check whether --with-c-include-dirs was given.
5556 if test "${with_c_include_dirs+set}" = set; then
5557   withval=$with_c_include_dirs;
5558 else
5559   withval=""
5560 fi
5561
5562
5563 cat >>confdefs.h <<_ACEOF
5564 #define C_INCLUDE_DIRS "$withval"
5565 _ACEOF
5566
5567
5568 # Clang normally uses the system c++ headers and libraries. With this option,
5569 # clang will use the ones provided by a gcc installation instead. This option should
5570 # be passed the same value that was used with --prefix when configuring gcc.
5571
5572 # Check whether --with-gcc-toolchain was given.
5573 if test "${with_gcc_toolchain+set}" = set; then
5574   withval=$with_gcc_toolchain;
5575 else
5576   withval=""
5577 fi
5578
5579
5580 cat >>confdefs.h <<_ACEOF
5581 #define GCC_INSTALL_PREFIX "$withval"
5582 _ACEOF
5583
5584
5585
5586 # Check whether --with-default-sysroot was given.
5587 if test "${with_default_sysroot+set}" = set; then
5588   withval=$with_default_sysroot;
5589 else
5590   withval=""
5591 fi
5592
5593
5594 cat >>confdefs.h <<_ACEOF
5595 #define DEFAULT_SYSROOT "$withval"
5596 _ACEOF
5597
5598
5599
5600 # Check whether --with-binutils-include was given.
5601 if test "${with_binutils_include+set}" = set; then
5602   withval=$with_binutils_include;
5603 else
5604   withval=default
5605 fi
5606
5607 case "$withval" in
5608   default) WITH_BINUTILS_INCDIR=default ;;
5609   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5610   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5611 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5612    { (exit 1); exit 1; }; } ;;
5613 esac
5614 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5615   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5616
5617   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5618      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5619      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5620 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5621    { (exit 1); exit 1; }; };
5622   fi
5623 fi
5624
5625
5626 # Check whether --with-bug-report-url was given.
5627 if test "${with_bug_report_url+set}" = set; then
5628   withval=$with_bug_report_url;
5629 else
5630   withval="http://llvm.org/bugs/"
5631 fi
5632
5633
5634 cat >>confdefs.h <<_ACEOF
5635 #define BUG_REPORT_URL "$withval"
5636 _ACEOF
5637
5638
5639 # Check whether --enable-libffi was given.
5640 if test "${enable_libffi+set}" = set; then
5641   enableval=$enable_libffi; case "$enableval" in
5642     yes) llvm_cv_enable_libffi="yes" ;;
5643     no)  llvm_cv_enable_libffi="no"  ;;
5644     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5645 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5646    { (exit 1); exit 1; }; } ;;
5647   esac
5648 else
5649   llvm_cv_enable_libffi=no
5650 fi
5651
5652
5653
5654 # Check whether --with-internal-prefix was given.
5655 if test "${with_internal_prefix+set}" = set; then
5656   withval=$with_internal_prefix;
5657 else
5658   withval=""
5659 fi
5660
5661 INTERNAL_PREFIX=$withval
5662
5663
5664
5665 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5666 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5667 if test "${lt_cv_path_NM+set}" = set; then
5668   echo $ECHO_N "(cached) $ECHO_C" >&6
5669 else
5670   if test -n "$NM"; then
5671   # Let the user override the test.
5672   lt_cv_path_NM="$NM"
5673 else
5674   lt_nm_to_check="${ac_tool_prefix}nm"
5675   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5676     lt_nm_to_check="$lt_nm_to_check nm"
5677   fi
5678   for lt_tmp_nm in $lt_nm_to_check; do
5679     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5680     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5681       IFS="$lt_save_ifs"
5682       test -z "$ac_dir" && ac_dir=.
5683       tmp_nm="$ac_dir/$lt_tmp_nm"
5684       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5685         # Check to see if the nm accepts a BSD-compat flag.
5686         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5687         #   nm: unknown option "B" ignored
5688         # Tru64's nm complains that /dev/null is an invalid object file
5689         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5690         */dev/null* | *'Invalid file or object type'*)
5691           lt_cv_path_NM="$tmp_nm -B"
5692           break
5693           ;;
5694         *)
5695           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5696           */dev/null*)
5697             lt_cv_path_NM="$tmp_nm -p"
5698             break
5699             ;;
5700           *)
5701             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5702             continue # so that we can try to find one that supports BSD flags
5703             ;;
5704           esac
5705           ;;
5706         esac
5707       fi
5708     done
5709     IFS="$lt_save_ifs"
5710   done
5711   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5712 fi
5713 fi
5714 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5715 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5716 NM="$lt_cv_path_NM"
5717
5718
5719
5720 { echo "$as_me:$LINENO: checking for GNU make" >&5
5721 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5722 if test "${llvm_cv_gnu_make_command+set}" = set; then
5723   echo $ECHO_N "(cached) $ECHO_C" >&6
5724 else
5725   llvm_cv_gnu_make_command=''
5726  for a in "$MAKE" make gmake gnumake ; do
5727   if test -z "$a" ; then continue ; fi ;
5728   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5729   then
5730    llvm_cv_gnu_make_command=$a ;
5731    break;
5732   fi
5733  done
5734 fi
5735 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5736 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5737  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5738    ifGNUmake='' ;
5739  else
5740    ifGNUmake='#' ;
5741    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5742 echo "${ECHO_T}\"Not found\"" >&6; };
5743  fi
5744
5745
5746 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5747 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5748 LN_S=$as_ln_s
5749 if test "$LN_S" = "ln -s"; then
5750   { echo "$as_me:$LINENO: result: yes" >&5
5751 echo "${ECHO_T}yes" >&6; }
5752 else
5753   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5754 echo "${ECHO_T}no, using $LN_S" >&6; }
5755 fi
5756
5757 # Extract the first word of "cmp", so it can be a program name with args.
5758 set dummy cmp; ac_word=$2
5759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5761 if test "${ac_cv_path_CMP+set}" = set; then
5762   echo $ECHO_N "(cached) $ECHO_C" >&6
5763 else
5764   case $CMP in
5765   [\\/]* | ?:[\\/]*)
5766   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5767   ;;
5768   *)
5769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 for as_dir in $PATH
5771 do
5772   IFS=$as_save_IFS
5773   test -z "$as_dir" && as_dir=.
5774   for ac_exec_ext in '' $ac_executable_extensions; do
5775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5776     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5778     break 2
5779   fi
5780 done
5781 done
5782 IFS=$as_save_IFS
5783
5784   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5785   ;;
5786 esac
5787 fi
5788 CMP=$ac_cv_path_CMP
5789 if test -n "$CMP"; then
5790   { echo "$as_me:$LINENO: result: $CMP" >&5
5791 echo "${ECHO_T}$CMP" >&6; }
5792 else
5793   { echo "$as_me:$LINENO: result: no" >&5
5794 echo "${ECHO_T}no" >&6; }
5795 fi
5796
5797
5798 # Extract the first word of "cp", so it can be a program name with args.
5799 set dummy cp; ac_word=$2
5800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5802 if test "${ac_cv_path_CP+set}" = set; then
5803   echo $ECHO_N "(cached) $ECHO_C" >&6
5804 else
5805   case $CP in
5806   [\\/]* | ?:[\\/]*)
5807   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5808   ;;
5809   *)
5810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 for as_dir in $PATH
5812 do
5813   IFS=$as_save_IFS
5814   test -z "$as_dir" && as_dir=.
5815   for ac_exec_ext in '' $ac_executable_extensions; do
5816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5817     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5819     break 2
5820   fi
5821 done
5822 done
5823 IFS=$as_save_IFS
5824
5825   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5826   ;;
5827 esac
5828 fi
5829 CP=$ac_cv_path_CP
5830 if test -n "$CP"; then
5831   { echo "$as_me:$LINENO: result: $CP" >&5
5832 echo "${ECHO_T}$CP" >&6; }
5833 else
5834   { echo "$as_me:$LINENO: result: no" >&5
5835 echo "${ECHO_T}no" >&6; }
5836 fi
5837
5838
5839 # Extract the first word of "date", so it can be a program name with args.
5840 set dummy date; ac_word=$2
5841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5843 if test "${ac_cv_path_DATE+set}" = set; then
5844   echo $ECHO_N "(cached) $ECHO_C" >&6
5845 else
5846   case $DATE in
5847   [\\/]* | ?:[\\/]*)
5848   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5849   ;;
5850   *)
5851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5853 do
5854   IFS=$as_save_IFS
5855   test -z "$as_dir" && as_dir=.
5856   for ac_exec_ext in '' $ac_executable_extensions; do
5857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5858     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5860     break 2
5861   fi
5862 done
5863 done
5864 IFS=$as_save_IFS
5865
5866   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5867   ;;
5868 esac
5869 fi
5870 DATE=$ac_cv_path_DATE
5871 if test -n "$DATE"; then
5872   { echo "$as_me:$LINENO: result: $DATE" >&5
5873 echo "${ECHO_T}$DATE" >&6; }
5874 else
5875   { echo "$as_me:$LINENO: result: no" >&5
5876 echo "${ECHO_T}no" >&6; }
5877 fi
5878
5879
5880 # Extract the first word of "find", so it can be a program name with args.
5881 set dummy find; ac_word=$2
5882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5884 if test "${ac_cv_path_FIND+set}" = set; then
5885   echo $ECHO_N "(cached) $ECHO_C" >&6
5886 else
5887   case $FIND in
5888   [\\/]* | ?:[\\/]*)
5889   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5890   ;;
5891   *)
5892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893 for as_dir in $PATH
5894 do
5895   IFS=$as_save_IFS
5896   test -z "$as_dir" && as_dir=.
5897   for ac_exec_ext in '' $ac_executable_extensions; do
5898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5899     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5901     break 2
5902   fi
5903 done
5904 done
5905 IFS=$as_save_IFS
5906
5907   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5908   ;;
5909 esac
5910 fi
5911 FIND=$ac_cv_path_FIND
5912 if test -n "$FIND"; then
5913   { echo "$as_me:$LINENO: result: $FIND" >&5
5914 echo "${ECHO_T}$FIND" >&6; }
5915 else
5916   { echo "$as_me:$LINENO: result: no" >&5
5917 echo "${ECHO_T}no" >&6; }
5918 fi
5919
5920
5921 # Extract the first word of "grep", so it can be a program name with args.
5922 set dummy grep; ac_word=$2
5923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5925 if test "${ac_cv_path_GREP+set}" = set; then
5926   echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928   case $GREP in
5929   [\\/]* | ?:[\\/]*)
5930   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5931   ;;
5932   *)
5933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 for as_dir in $PATH
5935 do
5936   IFS=$as_save_IFS
5937   test -z "$as_dir" && as_dir=.
5938   for ac_exec_ext in '' $ac_executable_extensions; do
5939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5940     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5942     break 2
5943   fi
5944 done
5945 done
5946 IFS=$as_save_IFS
5947
5948   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5949   ;;
5950 esac
5951 fi
5952 GREP=$ac_cv_path_GREP
5953 if test -n "$GREP"; then
5954   { echo "$as_me:$LINENO: result: $GREP" >&5
5955 echo "${ECHO_T}$GREP" >&6; }
5956 else
5957   { echo "$as_me:$LINENO: result: no" >&5
5958 echo "${ECHO_T}no" >&6; }
5959 fi
5960
5961
5962 # Extract the first word of "mkdir", so it can be a program name with args.
5963 set dummy mkdir; ac_word=$2
5964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5966 if test "${ac_cv_path_MKDIR+set}" = set; then
5967   echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969   case $MKDIR in
5970   [\\/]* | ?:[\\/]*)
5971   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5972   ;;
5973   *)
5974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975 for as_dir in $PATH
5976 do
5977   IFS=$as_save_IFS
5978   test -z "$as_dir" && as_dir=.
5979   for ac_exec_ext in '' $ac_executable_extensions; do
5980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5981     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5983     break 2
5984   fi
5985 done
5986 done
5987 IFS=$as_save_IFS
5988
5989   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5990   ;;
5991 esac
5992 fi
5993 MKDIR=$ac_cv_path_MKDIR
5994 if test -n "$MKDIR"; then
5995   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5996 echo "${ECHO_T}$MKDIR" >&6; }
5997 else
5998   { echo "$as_me:$LINENO: result: no" >&5
5999 echo "${ECHO_T}no" >&6; }
6000 fi
6001
6002
6003 # Extract the first word of "mv", so it can be a program name with args.
6004 set dummy mv; ac_word=$2
6005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6007 if test "${ac_cv_path_MV+set}" = set; then
6008   echo $ECHO_N "(cached) $ECHO_C" >&6
6009 else
6010   case $MV in
6011   [\\/]* | ?:[\\/]*)
6012   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6013   ;;
6014   *)
6015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 for as_dir in $PATH
6017 do
6018   IFS=$as_save_IFS
6019   test -z "$as_dir" && as_dir=.
6020   for ac_exec_ext in '' $ac_executable_extensions; do
6021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6022     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6024     break 2
6025   fi
6026 done
6027 done
6028 IFS=$as_save_IFS
6029
6030   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6031   ;;
6032 esac
6033 fi
6034 MV=$ac_cv_path_MV
6035 if test -n "$MV"; then
6036   { echo "$as_me:$LINENO: result: $MV" >&5
6037 echo "${ECHO_T}$MV" >&6; }
6038 else
6039   { echo "$as_me:$LINENO: result: no" >&5
6040 echo "${ECHO_T}no" >&6; }
6041 fi
6042
6043
6044 if test -n "$ac_tool_prefix"; then
6045   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6046 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6049 if test "${ac_cv_prog_RANLIB+set}" = set; then
6050   echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052   if test -n "$RANLIB"; then
6053   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6054 else
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH
6057 do
6058   IFS=$as_save_IFS
6059   test -z "$as_dir" && as_dir=.
6060   for ac_exec_ext in '' $ac_executable_extensions; do
6061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6062     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6064     break 2
6065   fi
6066 done
6067 done
6068 IFS=$as_save_IFS
6069
6070 fi
6071 fi
6072 RANLIB=$ac_cv_prog_RANLIB
6073 if test -n "$RANLIB"; then
6074   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6075 echo "${ECHO_T}$RANLIB" >&6; }
6076 else
6077   { echo "$as_me:$LINENO: result: no" >&5
6078 echo "${ECHO_T}no" >&6; }
6079 fi
6080
6081
6082 fi
6083 if test -z "$ac_cv_prog_RANLIB"; then
6084   ac_ct_RANLIB=$RANLIB
6085   # Extract the first word of "ranlib", so it can be a program name with args.
6086 set dummy ranlib; ac_word=$2
6087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6089 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6090   echo $ECHO_N "(cached) $ECHO_C" >&6
6091 else
6092   if test -n "$ac_ct_RANLIB"; then
6093   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6094 else
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 for as_dir in $PATH
6097 do
6098   IFS=$as_save_IFS
6099   test -z "$as_dir" && as_dir=.
6100   for ac_exec_ext in '' $ac_executable_extensions; do
6101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6102     ac_cv_prog_ac_ct_RANLIB="ranlib"
6103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6104     break 2
6105   fi
6106 done
6107 done
6108 IFS=$as_save_IFS
6109
6110 fi
6111 fi
6112 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6113 if test -n "$ac_ct_RANLIB"; then
6114   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6115 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6116 else
6117   { echo "$as_me:$LINENO: result: no" >&5
6118 echo "${ECHO_T}no" >&6; }
6119 fi
6120
6121   if test "x$ac_ct_RANLIB" = x; then
6122     RANLIB=":"
6123   else
6124     case $cross_compiling:$ac_tool_warned in
6125 yes:)
6126 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6127 whose name does not start with the host triplet.  If you think this
6128 configuration is useful to you, please write to autoconf@gnu.org." >&5
6129 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6130 whose name does not start with the host triplet.  If you think this
6131 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6132 ac_tool_warned=yes ;;
6133 esac
6134     RANLIB=$ac_ct_RANLIB
6135   fi
6136 else
6137   RANLIB="$ac_cv_prog_RANLIB"
6138 fi
6139
6140 if test -n "$ac_tool_prefix"; then
6141   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6142 set dummy ${ac_tool_prefix}ar; ac_word=$2
6143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6145 if test "${ac_cv_prog_AR+set}" = set; then
6146   echo $ECHO_N "(cached) $ECHO_C" >&6
6147 else
6148   if test -n "$AR"; then
6149   ac_cv_prog_AR="$AR" # Let the user override the test.
6150 else
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in $PATH
6153 do
6154   IFS=$as_save_IFS
6155   test -z "$as_dir" && as_dir=.
6156   for ac_exec_ext in '' $ac_executable_extensions; do
6157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6158     ac_cv_prog_AR="${ac_tool_prefix}ar"
6159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6160     break 2
6161   fi
6162 done
6163 done
6164 IFS=$as_save_IFS
6165
6166 fi
6167 fi
6168 AR=$ac_cv_prog_AR
6169 if test -n "$AR"; then
6170   { echo "$as_me:$LINENO: result: $AR" >&5
6171 echo "${ECHO_T}$AR" >&6; }
6172 else
6173   { echo "$as_me:$LINENO: result: no" >&5
6174 echo "${ECHO_T}no" >&6; }
6175 fi
6176
6177
6178 fi
6179 if test -z "$ac_cv_prog_AR"; then
6180   ac_ct_AR=$AR
6181   # Extract the first word of "ar", so it can be a program name with args.
6182 set dummy ar; ac_word=$2
6183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6185 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6186   echo $ECHO_N "(cached) $ECHO_C" >&6
6187 else
6188   if test -n "$ac_ct_AR"; then
6189   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6190 else
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6193 do
6194   IFS=$as_save_IFS
6195   test -z "$as_dir" && as_dir=.
6196   for ac_exec_ext in '' $ac_executable_extensions; do
6197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6198     ac_cv_prog_ac_ct_AR="ar"
6199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6200     break 2
6201   fi
6202 done
6203 done
6204 IFS=$as_save_IFS
6205
6206 fi
6207 fi
6208 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6209 if test -n "$ac_ct_AR"; then
6210   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6211 echo "${ECHO_T}$ac_ct_AR" >&6; }
6212 else
6213   { echo "$as_me:$LINENO: result: no" >&5
6214 echo "${ECHO_T}no" >&6; }
6215 fi
6216
6217   if test "x$ac_ct_AR" = x; then
6218     AR="false"
6219   else
6220     case $cross_compiling:$ac_tool_warned in
6221 yes:)
6222 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6223 whose name does not start with the host triplet.  If you think this
6224 configuration is useful to you, please write to autoconf@gnu.org." >&5
6225 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6226 whose name does not start with the host triplet.  If you think this
6227 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6228 ac_tool_warned=yes ;;
6229 esac
6230     AR=$ac_ct_AR
6231   fi
6232 else
6233   AR="$ac_cv_prog_AR"
6234 fi
6235
6236 # Extract the first word of "rm", so it can be a program name with args.
6237 set dummy rm; ac_word=$2
6238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6240 if test "${ac_cv_path_RM+set}" = set; then
6241   echo $ECHO_N "(cached) $ECHO_C" >&6
6242 else
6243   case $RM in
6244   [\\/]* | ?:[\\/]*)
6245   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6246   ;;
6247   *)
6248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 for as_dir in $PATH
6250 do
6251   IFS=$as_save_IFS
6252   test -z "$as_dir" && as_dir=.
6253   for ac_exec_ext in '' $ac_executable_extensions; do
6254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6255     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6256     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6257     break 2
6258   fi
6259 done
6260 done
6261 IFS=$as_save_IFS
6262
6263   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6264   ;;
6265 esac
6266 fi
6267 RM=$ac_cv_path_RM
6268 if test -n "$RM"; then
6269   { echo "$as_me:$LINENO: result: $RM" >&5
6270 echo "${ECHO_T}$RM" >&6; }
6271 else
6272   { echo "$as_me:$LINENO: result: no" >&5
6273 echo "${ECHO_T}no" >&6; }
6274 fi
6275
6276
6277 # Extract the first word of "sed", so it can be a program name with args.
6278 set dummy sed; ac_word=$2
6279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6281 if test "${ac_cv_path_SED+set}" = set; then
6282   echo $ECHO_N "(cached) $ECHO_C" >&6
6283 else
6284   case $SED in
6285   [\\/]* | ?:[\\/]*)
6286   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6287   ;;
6288   *)
6289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290 for as_dir in $PATH
6291 do
6292   IFS=$as_save_IFS
6293   test -z "$as_dir" && as_dir=.
6294   for ac_exec_ext in '' $ac_executable_extensions; do
6295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6296     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298     break 2
6299   fi
6300 done
6301 done
6302 IFS=$as_save_IFS
6303
6304   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6305   ;;
6306 esac
6307 fi
6308 SED=$ac_cv_path_SED
6309 if test -n "$SED"; then
6310   { echo "$as_me:$LINENO: result: $SED" >&5
6311 echo "${ECHO_T}$SED" >&6; }
6312 else
6313   { echo "$as_me:$LINENO: result: no" >&5
6314 echo "${ECHO_T}no" >&6; }
6315 fi
6316
6317
6318 # Extract the first word of "tar", so it can be a program name with args.
6319 set dummy tar; ac_word=$2
6320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6322 if test "${ac_cv_path_TAR+set}" = set; then
6323   echo $ECHO_N "(cached) $ECHO_C" >&6
6324 else
6325   case $TAR in
6326   [\\/]* | ?:[\\/]*)
6327   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6328   ;;
6329   *)
6330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 for as_dir in $PATH
6332 do
6333   IFS=$as_save_IFS
6334   test -z "$as_dir" && as_dir=.
6335   for ac_exec_ext in '' $ac_executable_extensions; do
6336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6337     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6339     break 2
6340   fi
6341 done
6342 done
6343 IFS=$as_save_IFS
6344
6345   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6346   ;;
6347 esac
6348 fi
6349 TAR=$ac_cv_path_TAR
6350 if test -n "$TAR"; then
6351   { echo "$as_me:$LINENO: result: $TAR" >&5
6352 echo "${ECHO_T}$TAR" >&6; }
6353 else
6354   { echo "$as_me:$LINENO: result: no" >&5
6355 echo "${ECHO_T}no" >&6; }
6356 fi
6357
6358
6359 # Extract the first word of "pwd", so it can be a program name with args.
6360 set dummy pwd; ac_word=$2
6361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6363 if test "${ac_cv_path_BINPWD+set}" = set; then
6364   echo $ECHO_N "(cached) $ECHO_C" >&6
6365 else
6366   case $BINPWD in
6367   [\\/]* | ?:[\\/]*)
6368   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6369   ;;
6370   *)
6371   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372 for as_dir in $PATH
6373 do
6374   IFS=$as_save_IFS
6375   test -z "$as_dir" && as_dir=.
6376   for ac_exec_ext in '' $ac_executable_extensions; do
6377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6378     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6380     break 2
6381   fi
6382 done
6383 done
6384 IFS=$as_save_IFS
6385
6386   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6387   ;;
6388 esac
6389 fi
6390 BINPWD=$ac_cv_path_BINPWD
6391 if test -n "$BINPWD"; then
6392   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6393 echo "${ECHO_T}$BINPWD" >&6; }
6394 else
6395   { echo "$as_me:$LINENO: result: no" >&5
6396 echo "${ECHO_T}no" >&6; }
6397 fi
6398
6399
6400
6401 # Extract the first word of "Graphviz", so it can be a program name with args.
6402 set dummy Graphviz; ac_word=$2
6403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6405 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6406   echo $ECHO_N "(cached) $ECHO_C" >&6
6407 else
6408   case $GRAPHVIZ in
6409   [\\/]* | ?:[\\/]*)
6410   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6411   ;;
6412   *)
6413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 for as_dir in $PATH
6415 do
6416   IFS=$as_save_IFS
6417   test -z "$as_dir" && as_dir=.
6418   for ac_exec_ext in '' $ac_executable_extensions; do
6419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6420     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6422     break 2
6423   fi
6424 done
6425 done
6426 IFS=$as_save_IFS
6427
6428   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6429   ;;
6430 esac
6431 fi
6432 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6433 if test -n "$GRAPHVIZ"; then
6434   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6435 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6436 else
6437   { echo "$as_me:$LINENO: result: no" >&5
6438 echo "${ECHO_T}no" >&6; }
6439 fi
6440
6441
6442 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6443
6444 cat >>confdefs.h <<\_ACEOF
6445 #define HAVE_GRAPHVIZ 1
6446 _ACEOF
6447
6448     if test "$llvm_cv_os_type" = "MingW" ; then
6449     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6450   fi
6451
6452 cat >>confdefs.h <<_ACEOF
6453 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6454 _ACEOF
6455
6456 fi
6457 # Extract the first word of "dot", so it can be a program name with args.
6458 set dummy dot; ac_word=$2
6459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6461 if test "${ac_cv_path_DOT+set}" = set; then
6462   echo $ECHO_N "(cached) $ECHO_C" >&6
6463 else
6464   case $DOT in
6465   [\\/]* | ?:[\\/]*)
6466   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6467   ;;
6468   *)
6469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 for as_dir in $PATH
6471 do
6472   IFS=$as_save_IFS
6473   test -z "$as_dir" && as_dir=.
6474   for ac_exec_ext in '' $ac_executable_extensions; do
6475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6476     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6478     break 2
6479   fi
6480 done
6481 done
6482 IFS=$as_save_IFS
6483
6484   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6485   ;;
6486 esac
6487 fi
6488 DOT=$ac_cv_path_DOT
6489 if test -n "$DOT"; then
6490   { echo "$as_me:$LINENO: result: $DOT" >&5
6491 echo "${ECHO_T}$DOT" >&6; }
6492 else
6493   { echo "$as_me:$LINENO: result: no" >&5
6494 echo "${ECHO_T}no" >&6; }
6495 fi
6496
6497
6498 if test "$DOT" != "echo dot" ; then
6499
6500 cat >>confdefs.h <<\_ACEOF
6501 #define HAVE_DOT 1
6502 _ACEOF
6503
6504     if test "$llvm_cv_os_type" = "MingW" ; then
6505     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6506   fi
6507
6508 cat >>confdefs.h <<_ACEOF
6509 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6510 _ACEOF
6511
6512 fi
6513 # Extract the first word of "fdp", so it can be a program name with args.
6514 set dummy fdp; ac_word=$2
6515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6517 if test "${ac_cv_path_FDP+set}" = set; then
6518   echo $ECHO_N "(cached) $ECHO_C" >&6
6519 else
6520   case $FDP in
6521   [\\/]* | ?:[\\/]*)
6522   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6523   ;;
6524   *)
6525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH
6527 do
6528   IFS=$as_save_IFS
6529   test -z "$as_dir" && as_dir=.
6530   for ac_exec_ext in '' $ac_executable_extensions; do
6531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6532     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6534     break 2
6535   fi
6536 done
6537 done
6538 IFS=$as_save_IFS
6539
6540   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6541   ;;
6542 esac
6543 fi
6544 FDP=$ac_cv_path_FDP
6545 if test -n "$FDP"; then
6546   { echo "$as_me:$LINENO: result: $FDP" >&5
6547 echo "${ECHO_T}$FDP" >&6; }
6548 else
6549   { echo "$as_me:$LINENO: result: no" >&5
6550 echo "${ECHO_T}no" >&6; }
6551 fi
6552
6553
6554 if test "$FDP" != "echo fdp" ; then
6555
6556 cat >>confdefs.h <<\_ACEOF
6557 #define HAVE_FDP 1
6558 _ACEOF
6559
6560     if test "$llvm_cv_os_type" = "MingW" ; then
6561     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6562   fi
6563
6564 cat >>confdefs.h <<_ACEOF
6565 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6566 _ACEOF
6567
6568 fi
6569 # Extract the first word of "neato", so it can be a program name with args.
6570 set dummy neato; ac_word=$2
6571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6573 if test "${ac_cv_path_NEATO+set}" = set; then
6574   echo $ECHO_N "(cached) $ECHO_C" >&6
6575 else
6576   case $NEATO in
6577   [\\/]* | ?:[\\/]*)
6578   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6579   ;;
6580   *)
6581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6583 do
6584   IFS=$as_save_IFS
6585   test -z "$as_dir" && as_dir=.
6586   for ac_exec_ext in '' $ac_executable_extensions; do
6587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6588     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590     break 2
6591   fi
6592 done
6593 done
6594 IFS=$as_save_IFS
6595
6596   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6597   ;;
6598 esac
6599 fi
6600 NEATO=$ac_cv_path_NEATO
6601 if test -n "$NEATO"; then
6602   { echo "$as_me:$LINENO: result: $NEATO" >&5
6603 echo "${ECHO_T}$NEATO" >&6; }
6604 else
6605   { echo "$as_me:$LINENO: result: no" >&5
6606 echo "${ECHO_T}no" >&6; }
6607 fi
6608
6609
6610 if test "$NEATO" != "echo neato" ; then
6611
6612 cat >>confdefs.h <<\_ACEOF
6613 #define HAVE_NEATO 1
6614 _ACEOF
6615
6616     if test "$llvm_cv_os_type" = "MingW" ; then
6617     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6618   fi
6619
6620 cat >>confdefs.h <<_ACEOF
6621 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6622 _ACEOF
6623
6624 fi
6625 # Extract the first word of "twopi", so it can be a program name with args.
6626 set dummy twopi; ac_word=$2
6627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6629 if test "${ac_cv_path_TWOPI+set}" = set; then
6630   echo $ECHO_N "(cached) $ECHO_C" >&6
6631 else
6632   case $TWOPI in
6633   [\\/]* | ?:[\\/]*)
6634   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6635   ;;
6636   *)
6637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6639 do
6640   IFS=$as_save_IFS
6641   test -z "$as_dir" && as_dir=.
6642   for ac_exec_ext in '' $ac_executable_extensions; do
6643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6644     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6646     break 2
6647   fi
6648 done
6649 done
6650 IFS=$as_save_IFS
6651
6652   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6653   ;;
6654 esac
6655 fi
6656 TWOPI=$ac_cv_path_TWOPI
6657 if test -n "$TWOPI"; then
6658   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6659 echo "${ECHO_T}$TWOPI" >&6; }
6660 else
6661   { echo "$as_me:$LINENO: result: no" >&5
6662 echo "${ECHO_T}no" >&6; }
6663 fi
6664
6665
6666 if test "$TWOPI" != "echo twopi" ; then
6667
6668 cat >>confdefs.h <<\_ACEOF
6669 #define HAVE_TWOPI 1
6670 _ACEOF
6671
6672     if test "$llvm_cv_os_type" = "MingW" ; then
6673     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6674   fi
6675
6676 cat >>confdefs.h <<_ACEOF
6677 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6678 _ACEOF
6679
6680 fi
6681 # Extract the first word of "circo", so it can be a program name with args.
6682 set dummy circo; ac_word=$2
6683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6685 if test "${ac_cv_path_CIRCO+set}" = set; then
6686   echo $ECHO_N "(cached) $ECHO_C" >&6
6687 else
6688   case $CIRCO in
6689   [\\/]* | ?:[\\/]*)
6690   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6691   ;;
6692   *)
6693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 for as_dir in $PATH
6695 do
6696   IFS=$as_save_IFS
6697   test -z "$as_dir" && as_dir=.
6698   for ac_exec_ext in '' $ac_executable_extensions; do
6699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6700     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6702     break 2
6703   fi
6704 done
6705 done
6706 IFS=$as_save_IFS
6707
6708   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6709   ;;
6710 esac
6711 fi
6712 CIRCO=$ac_cv_path_CIRCO
6713 if test -n "$CIRCO"; then
6714   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6715 echo "${ECHO_T}$CIRCO" >&6; }
6716 else
6717   { echo "$as_me:$LINENO: result: no" >&5
6718 echo "${ECHO_T}no" >&6; }
6719 fi
6720
6721
6722 if test "$CIRCO" != "echo circo" ; then
6723
6724 cat >>confdefs.h <<\_ACEOF
6725 #define HAVE_CIRCO 1
6726 _ACEOF
6727
6728     if test "$llvm_cv_os_type" = "MingW" ; then
6729     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6730   fi
6731
6732 cat >>confdefs.h <<_ACEOF
6733 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6734 _ACEOF
6735
6736 fi
6737 for ac_prog in gv gsview32
6738 do
6739   # Extract the first word of "$ac_prog", so it can be a program name with args.
6740 set dummy $ac_prog; ac_word=$2
6741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6743 if test "${ac_cv_path_GV+set}" = set; then
6744   echo $ECHO_N "(cached) $ECHO_C" >&6
6745 else
6746   case $GV in
6747   [\\/]* | ?:[\\/]*)
6748   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6749   ;;
6750   *)
6751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752 for as_dir in $PATH
6753 do
6754   IFS=$as_save_IFS
6755   test -z "$as_dir" && as_dir=.
6756   for ac_exec_ext in '' $ac_executable_extensions; do
6757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6758     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6760     break 2
6761   fi
6762 done
6763 done
6764 IFS=$as_save_IFS
6765
6766   ;;
6767 esac
6768 fi
6769 GV=$ac_cv_path_GV
6770 if test -n "$GV"; then
6771   { echo "$as_me:$LINENO: result: $GV" >&5
6772 echo "${ECHO_T}$GV" >&6; }
6773 else
6774   { echo "$as_me:$LINENO: result: no" >&5
6775 echo "${ECHO_T}no" >&6; }
6776 fi
6777
6778
6779   test -n "$GV" && break
6780 done
6781 test -n "$GV" || GV="echo gv"
6782
6783 if test "$GV" != "echo gv" ; then
6784
6785 cat >>confdefs.h <<\_ACEOF
6786 #define HAVE_GV 1
6787 _ACEOF
6788
6789     if test "$llvm_cv_os_type" = "MingW" ; then
6790     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6791   fi
6792
6793 cat >>confdefs.h <<_ACEOF
6794 #define LLVM_PATH_GV "$GV${EXEEXT}"
6795 _ACEOF
6796
6797 fi
6798 # Extract the first word of "dotty", so it can be a program name with args.
6799 set dummy dotty; ac_word=$2
6800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6802 if test "${ac_cv_path_DOTTY+set}" = set; then
6803   echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805   case $DOTTY in
6806   [\\/]* | ?:[\\/]*)
6807   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6808   ;;
6809   *)
6810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6812 do
6813   IFS=$as_save_IFS
6814   test -z "$as_dir" && as_dir=.
6815   for ac_exec_ext in '' $ac_executable_extensions; do
6816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6817     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819     break 2
6820   fi
6821 done
6822 done
6823 IFS=$as_save_IFS
6824
6825   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6826   ;;
6827 esac
6828 fi
6829 DOTTY=$ac_cv_path_DOTTY
6830 if test -n "$DOTTY"; then
6831   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6832 echo "${ECHO_T}$DOTTY" >&6; }
6833 else
6834   { echo "$as_me:$LINENO: result: no" >&5
6835 echo "${ECHO_T}no" >&6; }
6836 fi
6837
6838
6839 if test "$DOTTY" != "echo dotty" ; then
6840
6841 cat >>confdefs.h <<\_ACEOF
6842 #define HAVE_DOTTY 1
6843 _ACEOF
6844
6845     if test "$llvm_cv_os_type" = "MingW" ; then
6846     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6847   fi
6848
6849 cat >>confdefs.h <<_ACEOF
6850 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6851 _ACEOF
6852
6853 fi
6854 # Extract the first word of "xdot.py", so it can be a program name with args.
6855 set dummy xdot.py; ac_word=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6859   echo $ECHO_N "(cached) $ECHO_C" >&6
6860 else
6861   case $XDOT_PY in
6862   [\\/]* | ?:[\\/]*)
6863   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6864   ;;
6865   *)
6866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6868 do
6869   IFS=$as_save_IFS
6870   test -z "$as_dir" && as_dir=.
6871   for ac_exec_ext in '' $ac_executable_extensions; do
6872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6873     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6875     break 2
6876   fi
6877 done
6878 done
6879 IFS=$as_save_IFS
6880
6881   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6882   ;;
6883 esac
6884 fi
6885 XDOT_PY=$ac_cv_path_XDOT_PY
6886 if test -n "$XDOT_PY"; then
6887   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6888 echo "${ECHO_T}$XDOT_PY" >&6; }
6889 else
6890   { echo "$as_me:$LINENO: result: no" >&5
6891 echo "${ECHO_T}no" >&6; }
6892 fi
6893
6894
6895 if test "$XDOT_PY" != "echo xdot.py" ; then
6896
6897 cat >>confdefs.h <<\_ACEOF
6898 #define HAVE_XDOT_PY 1
6899 _ACEOF
6900
6901     if test "$llvm_cv_os_type" = "MingW" ; then
6902     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6903   fi
6904
6905 cat >>confdefs.h <<_ACEOF
6906 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6907 _ACEOF
6908
6909 fi
6910
6911 # Find a good install program.  We prefer a C program (faster),
6912 # so one script is as good as another.  But avoid the broken or
6913 # incompatible versions:
6914 # SysV /etc/install, /usr/sbin/install
6915 # SunOS /usr/etc/install
6916 # IRIX /sbin/install
6917 # AIX /bin/install
6918 # AmigaOS /C/install, which installs bootblocks on floppy discs
6919 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6920 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6921 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6922 # OS/2's system install, which has a completely different semantic
6923 # ./install, which can be erroneously created by make from ./install.sh.
6924 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6925 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6926 if test -z "$INSTALL"; then
6927 if test "${ac_cv_path_install+set}" = set; then
6928   echo $ECHO_N "(cached) $ECHO_C" >&6
6929 else
6930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931 for as_dir in $PATH
6932 do
6933   IFS=$as_save_IFS
6934   test -z "$as_dir" && as_dir=.
6935   # Account for people who put trailing slashes in PATH elements.
6936 case $as_dir/ in
6937   ./ | .// | /cC/* | \
6938   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6939   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6940   /usr/ucb/* ) ;;
6941   *)
6942     # OSF1 and SCO ODT 3.0 have their own names for install.
6943     # Don't use installbsd from OSF since it installs stuff as root
6944     # by default.
6945     for ac_prog in ginstall scoinst install; do
6946       for ac_exec_ext in '' $ac_executable_extensions; do
6947         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6948           if test $ac_prog = install &&
6949             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6950             # AIX install.  It has an incompatible calling convention.
6951             :
6952           elif test $ac_prog = install &&
6953             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6954             # program-specific install script used by HP pwplus--don't use.
6955             :
6956           else
6957             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6958             break 3
6959           fi
6960         fi
6961       done
6962     done
6963     ;;
6964 esac
6965 done
6966 IFS=$as_save_IFS
6967
6968
6969 fi
6970   if test "${ac_cv_path_install+set}" = set; then
6971     INSTALL=$ac_cv_path_install
6972   else
6973     # As a last resort, use the slow shell script.  Don't cache a
6974     # value for INSTALL within a source directory, because that will
6975     # break other packages using the cache if that directory is
6976     # removed, or if the value is a relative name.
6977     INSTALL=$ac_install_sh
6978   fi
6979 fi
6980 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6981 echo "${ECHO_T}$INSTALL" >&6; }
6982
6983 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6984 # It thinks the first close brace ends the variable substitution.
6985 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6986
6987 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6988
6989 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6990
6991 case "$INSTALL" in
6992  [\\/$]* | ?:[\\/]* ) ;;
6993  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6994 esac
6995
6996 # Extract the first word of "bzip2", so it can be a program name with args.
6997 set dummy bzip2; ac_word=$2
6998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7000 if test "${ac_cv_path_BZIP2+set}" = set; then
7001   echo $ECHO_N "(cached) $ECHO_C" >&6
7002 else
7003   case $BZIP2 in
7004   [\\/]* | ?:[\\/]*)
7005   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7006   ;;
7007   *)
7008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 for as_dir in $PATH
7010 do
7011   IFS=$as_save_IFS
7012   test -z "$as_dir" && as_dir=.
7013   for ac_exec_ext in '' $ac_executable_extensions; do
7014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7015     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7017     break 2
7018   fi
7019 done
7020 done
7021 IFS=$as_save_IFS
7022
7023   ;;
7024 esac
7025 fi
7026 BZIP2=$ac_cv_path_BZIP2
7027 if test -n "$BZIP2"; then
7028   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7029 echo "${ECHO_T}$BZIP2" >&6; }
7030 else
7031   { echo "$as_me:$LINENO: result: no" >&5
7032 echo "${ECHO_T}no" >&6; }
7033 fi
7034
7035
7036 # Extract the first word of "cat", so it can be a program name with args.
7037 set dummy cat; ac_word=$2
7038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7040 if test "${ac_cv_path_CAT+set}" = set; then
7041   echo $ECHO_N "(cached) $ECHO_C" >&6
7042 else
7043   case $CAT in
7044   [\\/]* | ?:[\\/]*)
7045   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7046   ;;
7047   *)
7048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 for as_dir in $PATH
7050 do
7051   IFS=$as_save_IFS
7052   test -z "$as_dir" && as_dir=.
7053   for ac_exec_ext in '' $ac_executable_extensions; do
7054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7055     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7057     break 2
7058   fi
7059 done
7060 done
7061 IFS=$as_save_IFS
7062
7063   ;;
7064 esac
7065 fi
7066 CAT=$ac_cv_path_CAT
7067 if test -n "$CAT"; then
7068   { echo "$as_me:$LINENO: result: $CAT" >&5
7069 echo "${ECHO_T}$CAT" >&6; }
7070 else
7071   { echo "$as_me:$LINENO: result: no" >&5
7072 echo "${ECHO_T}no" >&6; }
7073 fi
7074
7075
7076 # Extract the first word of "doxygen", so it can be a program name with args.
7077 set dummy doxygen; ac_word=$2
7078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7080 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7081   echo $ECHO_N "(cached) $ECHO_C" >&6
7082 else
7083   case $DOXYGEN in
7084   [\\/]* | ?:[\\/]*)
7085   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7086   ;;
7087   *)
7088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 for as_dir in $PATH
7090 do
7091   IFS=$as_save_IFS
7092   test -z "$as_dir" && as_dir=.
7093   for ac_exec_ext in '' $ac_executable_extensions; do
7094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7095     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7097     break 2
7098   fi
7099 done
7100 done
7101 IFS=$as_save_IFS
7102
7103   ;;
7104 esac
7105 fi
7106 DOXYGEN=$ac_cv_path_DOXYGEN
7107 if test -n "$DOXYGEN"; then
7108   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7109 echo "${ECHO_T}$DOXYGEN" >&6; }
7110 else
7111   { echo "$as_me:$LINENO: result: no" >&5
7112 echo "${ECHO_T}no" >&6; }
7113 fi
7114
7115
7116 # Extract the first word of "gzip", so it can be a program name with args.
7117 set dummy gzip; ac_word=$2
7118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7120 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7121   echo $ECHO_N "(cached) $ECHO_C" >&6
7122 else
7123   case $GZIPBIN in
7124   [\\/]* | ?:[\\/]*)
7125   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7126   ;;
7127   *)
7128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 for as_dir in $PATH
7130 do
7131   IFS=$as_save_IFS
7132   test -z "$as_dir" && as_dir=.
7133   for ac_exec_ext in '' $ac_executable_extensions; do
7134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7135     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7136     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7137     break 2
7138   fi
7139 done
7140 done
7141 IFS=$as_save_IFS
7142
7143   ;;
7144 esac
7145 fi
7146 GZIPBIN=$ac_cv_path_GZIPBIN
7147 if test -n "$GZIPBIN"; then
7148   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7149 echo "${ECHO_T}$GZIPBIN" >&6; }
7150 else
7151   { echo "$as_me:$LINENO: result: no" >&5
7152 echo "${ECHO_T}no" >&6; }
7153 fi
7154
7155
7156
7157 no_itcl=true
7158 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7159 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7160
7161 # Check whether --with-tclinclude was given.
7162 if test "${with_tclinclude+set}" = set; then
7163   withval=$with_tclinclude; with_tclinclude=${withval}
7164 else
7165   with_tclinclude=''
7166 fi
7167
7168 if test "${ac_cv_path_tclsh+set}" = set; then
7169   echo $ECHO_N "(cached) $ECHO_C" >&6
7170 else
7171
7172 if test x"${with_tclinclude}" != x ; then
7173   if test -f ${with_tclinclude}/tclsh ; then
7174     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7175   elif test -f ${with_tclinclude}/src/tclsh ; then
7176     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7177   else
7178     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7179 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7180    { (exit 1); exit 1; }; }
7181   fi
7182 fi
7183 fi
7184
7185
7186 if test x"${ac_cv_path_tclsh}" = x ; then
7187   { echo "$as_me:$LINENO: result: none" >&5
7188 echo "${ECHO_T}none" >&6; }
7189   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
7190 do
7191   # Extract the first word of "$ac_prog", so it can be a program name with args.
7192 set dummy $ac_prog; ac_word=$2
7193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7195 if test "${ac_cv_path_TCLSH+set}" = set; then
7196   echo $ECHO_N "(cached) $ECHO_C" >&6
7197 else
7198   case $TCLSH in
7199   [\\/]* | ?:[\\/]*)
7200   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7201   ;;
7202   *)
7203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204 for as_dir in $PATH
7205 do
7206   IFS=$as_save_IFS
7207   test -z "$as_dir" && as_dir=.
7208   for ac_exec_ext in '' $ac_executable_extensions; do
7209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7210     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7212     break 2
7213   fi
7214 done
7215 done
7216 IFS=$as_save_IFS
7217
7218   ;;
7219 esac
7220 fi
7221 TCLSH=$ac_cv_path_TCLSH
7222 if test -n "$TCLSH"; then
7223   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7224 echo "${ECHO_T}$TCLSH" >&6; }
7225 else
7226   { echo "$as_me:$LINENO: result: no" >&5
7227 echo "${ECHO_T}no" >&6; }
7228 fi
7229
7230
7231   test -n "$TCLSH" && break
7232 done
7233
7234   if test x"${TCLSH}" = x ; then
7235     ac_cv_path_tclsh='';
7236   else
7237     ac_cv_path_tclsh="${TCLSH}";
7238   fi
7239 else
7240   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7241 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7242   TCLSH="${ac_cv_path_tclsh}"
7243
7244 fi
7245
7246 # Extract the first word of "zip", so it can be a program name with args.
7247 set dummy zip; ac_word=$2
7248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7250 if test "${ac_cv_path_ZIP+set}" = set; then
7251   echo $ECHO_N "(cached) $ECHO_C" >&6
7252 else
7253   case $ZIP in
7254   [\\/]* | ?:[\\/]*)
7255   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7256   ;;
7257   *)
7258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 for as_dir in $PATH
7260 do
7261   IFS=$as_save_IFS
7262   test -z "$as_dir" && as_dir=.
7263   for ac_exec_ext in '' $ac_executable_extensions; do
7264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7265     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7267     break 2
7268   fi
7269 done
7270 done
7271 IFS=$as_save_IFS
7272
7273   ;;
7274 esac
7275 fi
7276 ZIP=$ac_cv_path_ZIP
7277 if test -n "$ZIP"; then
7278   { echo "$as_me:$LINENO: result: $ZIP" >&5
7279 echo "${ECHO_T}$ZIP" >&6; }
7280 else
7281   { echo "$as_me:$LINENO: result: no" >&5
7282 echo "${ECHO_T}no" >&6; }
7283 fi
7284
7285
7286 for ac_prog in ocamlc
7287 do
7288   # Extract the first word of "$ac_prog", so it can be a program name with args.
7289 set dummy $ac_prog; ac_word=$2
7290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7292 if test "${ac_cv_path_OCAMLC+set}" = set; then
7293   echo $ECHO_N "(cached) $ECHO_C" >&6
7294 else
7295   case $OCAMLC in
7296   [\\/]* | ?:[\\/]*)
7297   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7298   ;;
7299   *)
7300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 for as_dir in $PATH
7302 do
7303   IFS=$as_save_IFS
7304   test -z "$as_dir" && as_dir=.
7305   for ac_exec_ext in '' $ac_executable_extensions; do
7306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7307     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7309     break 2
7310   fi
7311 done
7312 done
7313 IFS=$as_save_IFS
7314
7315   ;;
7316 esac
7317 fi
7318 OCAMLC=$ac_cv_path_OCAMLC
7319 if test -n "$OCAMLC"; then
7320   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7321 echo "${ECHO_T}$OCAMLC" >&6; }
7322 else
7323   { echo "$as_me:$LINENO: result: no" >&5
7324 echo "${ECHO_T}no" >&6; }
7325 fi
7326
7327
7328   test -n "$OCAMLC" && break
7329 done
7330
7331 for ac_prog in ocamlopt
7332 do
7333   # Extract the first word of "$ac_prog", so it can be a program name with args.
7334 set dummy $ac_prog; ac_word=$2
7335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7337 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7338   echo $ECHO_N "(cached) $ECHO_C" >&6
7339 else
7340   case $OCAMLOPT in
7341   [\\/]* | ?:[\\/]*)
7342   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7343   ;;
7344   *)
7345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 for as_dir in $PATH
7347 do
7348   IFS=$as_save_IFS
7349   test -z "$as_dir" && as_dir=.
7350   for ac_exec_ext in '' $ac_executable_extensions; do
7351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7352     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7354     break 2
7355   fi
7356 done
7357 done
7358 IFS=$as_save_IFS
7359
7360   ;;
7361 esac
7362 fi
7363 OCAMLOPT=$ac_cv_path_OCAMLOPT
7364 if test -n "$OCAMLOPT"; then
7365   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7366 echo "${ECHO_T}$OCAMLOPT" >&6; }
7367 else
7368   { echo "$as_me:$LINENO: result: no" >&5
7369 echo "${ECHO_T}no" >&6; }
7370 fi
7371
7372
7373   test -n "$OCAMLOPT" && break
7374 done
7375
7376 for ac_prog in ocamldep
7377 do
7378   # Extract the first word of "$ac_prog", so it can be a program name with args.
7379 set dummy $ac_prog; 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_OCAMLDEP+set}" = set; then
7383   echo $ECHO_N "(cached) $ECHO_C" >&6
7384 else
7385   case $OCAMLDEP in
7386   [\\/]* | ?:[\\/]*)
7387   ac_cv_path_OCAMLDEP="$OCAMLDEP" # 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_OCAMLDEP="$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 OCAMLDEP=$ac_cv_path_OCAMLDEP
7409 if test -n "$OCAMLDEP"; then
7410   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7411 echo "${ECHO_T}$OCAMLDEP" >&6; }
7412 else
7413   { echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6; }
7415 fi
7416
7417
7418   test -n "$OCAMLDEP" && break
7419 done
7420
7421 for ac_prog in ocamldoc
7422 do
7423   # Extract the first word of "$ac_prog", so it can be a program name with args.
7424 set dummy $ac_prog; ac_word=$2
7425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7427 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7428   echo $ECHO_N "(cached) $ECHO_C" >&6
7429 else
7430   case $OCAMLDOC in
7431   [\\/]* | ?:[\\/]*)
7432   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7433   ;;
7434   *)
7435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 for as_dir in $PATH
7437 do
7438   IFS=$as_save_IFS
7439   test -z "$as_dir" && as_dir=.
7440   for ac_exec_ext in '' $ac_executable_extensions; do
7441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7442     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7444     break 2
7445   fi
7446 done
7447 done
7448 IFS=$as_save_IFS
7449
7450   ;;
7451 esac
7452 fi
7453 OCAMLDOC=$ac_cv_path_OCAMLDOC
7454 if test -n "$OCAMLDOC"; then
7455   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7456 echo "${ECHO_T}$OCAMLDOC" >&6; }
7457 else
7458   { echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6; }
7460 fi
7461
7462
7463   test -n "$OCAMLDOC" && break
7464 done
7465
7466
7467 { echo "$as_me:$LINENO: checking for linker version" >&5
7468 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7469 if test "${llvm_cv_link_version+set}" = set; then
7470   echo $ECHO_N "(cached) $ECHO_C" >&6
7471 else
7472
7473    version_string="$(ld -v 2>&1 | head -1)"
7474
7475    # Check for ld64.
7476    if (echo "$version_string" | grep -q "ld64"); then
7477      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7478    else
7479      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7480    fi
7481
7482 fi
7483 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7484 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7485
7486 cat >>confdefs.h <<_ACEOF
7487 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7488 _ACEOF
7489
7490
7491
7492 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7493 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7494 if test "${llvm_cv_link_use_r+set}" = set; then
7495   echo $ECHO_N "(cached) $ECHO_C" >&6
7496 else
7497    ac_ext=c
7498 ac_cpp='$CPP $CPPFLAGS'
7499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7502
7503   oldcflags="$CFLAGS"
7504   CFLAGS="$CFLAGS -Wl,-R."
7505   cat >conftest.$ac_ext <<_ACEOF
7506 /* confdefs.h.  */
7507 _ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h.  */
7511
7512 int
7513 main ()
7514 {
7515
7516   ;
7517   return 0;
7518 }
7519 _ACEOF
7520 rm -f conftest.$ac_objext conftest$ac_exeext
7521 if { (ac_try="$ac_link"
7522 case "(($ac_try" in
7523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7524   *) ac_try_echo=$ac_try;;
7525 esac
7526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7527   (eval "$ac_link") 2>conftest.er1
7528   ac_status=$?
7529   grep -v '^ *+' conftest.er1 >conftest.err
7530   rm -f conftest.er1
7531   cat conftest.err >&5
7532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533   (exit $ac_status); } &&
7534          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7535   { (case "(($ac_try" in
7536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537   *) ac_try_echo=$ac_try;;
7538 esac
7539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540   (eval "$ac_try") 2>&5
7541   ac_status=$?
7542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543   (exit $ac_status); }; } &&
7544          { ac_try='test -s conftest$ac_exeext'
7545   { (case "(($ac_try" in
7546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547   *) ac_try_echo=$ac_try;;
7548 esac
7549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7550   (eval "$ac_try") 2>&5
7551   ac_status=$?
7552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553   (exit $ac_status); }; }; then
7554   llvm_cv_link_use_r=yes
7555 else
7556   echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7558
7559         llvm_cv_link_use_r=no
7560 fi
7561
7562 rm -f core conftest.err conftest.$ac_objext \
7563       conftest$ac_exeext conftest.$ac_ext
7564   CFLAGS="$oldcflags"
7565   ac_ext=c
7566 ac_cpp='$CPP $CPPFLAGS'
7567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7570
7571
7572 fi
7573 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7574 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7575 if test "$llvm_cv_link_use_r" = yes ; then
7576
7577 cat >>confdefs.h <<\_ACEOF
7578 #define HAVE_LINK_R 1
7579 _ACEOF
7580
7581   fi
7582
7583
7584 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7585 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7586 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7587   echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589    ac_ext=c
7590 ac_cpp='$CPP $CPPFLAGS'
7591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7594
7595   oldcflags="$CFLAGS"
7596   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7597   cat >conftest.$ac_ext <<_ACEOF
7598 /* confdefs.h.  */
7599 _ACEOF
7600 cat confdefs.h >>conftest.$ac_ext
7601 cat >>conftest.$ac_ext <<_ACEOF
7602 /* end confdefs.h.  */
7603
7604 int
7605 main ()
7606 {
7607
7608   ;
7609   return 0;
7610 }
7611 _ACEOF
7612 rm -f conftest.$ac_objext conftest$ac_exeext
7613 if { (ac_try="$ac_link"
7614 case "(($ac_try" in
7615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616   *) ac_try_echo=$ac_try;;
7617 esac
7618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7619   (eval "$ac_link") 2>conftest.er1
7620   ac_status=$?
7621   grep -v '^ *+' conftest.er1 >conftest.err
7622   rm -f conftest.er1
7623   cat conftest.err >&5
7624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625   (exit $ac_status); } &&
7626          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7627   { (case "(($ac_try" in
7628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7629   *) ac_try_echo=$ac_try;;
7630 esac
7631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7632   (eval "$ac_try") 2>&5
7633   ac_status=$?
7634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635   (exit $ac_status); }; } &&
7636          { ac_try='test -s conftest$ac_exeext'
7637   { (case "(($ac_try" in
7638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7639   *) ac_try_echo=$ac_try;;
7640 esac
7641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7642   (eval "$ac_try") 2>&5
7643   ac_status=$?
7644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645   (exit $ac_status); }; }; then
7646   llvm_cv_link_use_export_dynamic=yes
7647 else
7648   echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.$ac_ext >&5
7650
7651         llvm_cv_link_use_export_dynamic=no
7652 fi
7653
7654 rm -f core conftest.err conftest.$ac_objext \
7655       conftest$ac_exeext conftest.$ac_ext
7656   CFLAGS="$oldcflags"
7657   ac_ext=c
7658 ac_cpp='$CPP $CPPFLAGS'
7659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7662
7663
7664 fi
7665 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7666 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7667 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7668
7669 cat >>confdefs.h <<\_ACEOF
7670 #define HAVE_LINK_EXPORT_DYNAMIC 1
7671 _ACEOF
7672
7673   fi
7674
7675
7676 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7677 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7678 if test "${llvm_cv_link_use_version_script+set}" = set; then
7679   echo $ECHO_N "(cached) $ECHO_C" >&6
7680 else
7681    ac_ext=c
7682 ac_cpp='$CPP $CPPFLAGS'
7683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7686
7687   oldcflags="$CFLAGS"
7688
7689   # The following code is from the autoconf manual,
7690   # "11.13: Limitations of Usual Tools".
7691   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7692   # Use mktemp if possible; otherwise fall back on mkdir,
7693   # with $RANDOM to make collisions less likely.
7694   : ${TMPDIR=/tmp}
7695   {
7696     tmp=`
7697       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7698     ` &&
7699     test -n "$tmp" && test -d "$tmp"
7700   } || {
7701     tmp=$TMPDIR/foo$$-$RANDOM
7702     (umask 077 && mkdir "$tmp")
7703   } || exit $?
7704
7705   echo "{" > "$tmp/export.map"
7706   echo "  global: main;" >> "$tmp/export.map"
7707   echo "  local: *;" >> "$tmp/export.map"
7708   echo "};" >> "$tmp/export.map"
7709
7710   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7711   cat >conftest.$ac_ext <<_ACEOF
7712 /* confdefs.h.  */
7713 _ACEOF
7714 cat confdefs.h >>conftest.$ac_ext
7715 cat >>conftest.$ac_ext <<_ACEOF
7716 /* end confdefs.h.  */
7717
7718 int
7719 main ()
7720 {
7721
7722   ;
7723   return 0;
7724 }
7725 _ACEOF
7726 rm -f conftest.$ac_objext conftest$ac_exeext
7727 if { (ac_try="$ac_link"
7728 case "(($ac_try" in
7729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730   *) ac_try_echo=$ac_try;;
7731 esac
7732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7733   (eval "$ac_link") 2>conftest.er1
7734   ac_status=$?
7735   grep -v '^ *+' conftest.er1 >conftest.err
7736   rm -f conftest.er1
7737   cat conftest.err >&5
7738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739   (exit $ac_status); } &&
7740          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7741   { (case "(($ac_try" in
7742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7743   *) ac_try_echo=$ac_try;;
7744 esac
7745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7746   (eval "$ac_try") 2>&5
7747   ac_status=$?
7748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749   (exit $ac_status); }; } &&
7750          { ac_try='test -s conftest$ac_exeext'
7751   { (case "(($ac_try" in
7752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753   *) ac_try_echo=$ac_try;;
7754 esac
7755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7756   (eval "$ac_try") 2>&5
7757   ac_status=$?
7758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759   (exit $ac_status); }; }; then
7760   llvm_cv_link_use_version_script=yes
7761 else
7762   echo "$as_me: failed program was:" >&5
7763 sed 's/^/| /' conftest.$ac_ext >&5
7764
7765         llvm_cv_link_use_version_script=no
7766 fi
7767
7768 rm -f core conftest.err conftest.$ac_objext \
7769       conftest$ac_exeext conftest.$ac_ext
7770   rm "$tmp/export.map"
7771   rmdir "$tmp"
7772   CFLAGS="$oldcflags"
7773   ac_ext=c
7774 ac_cpp='$CPP $CPPFLAGS'
7775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7778
7779
7780 fi
7781 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7782 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7783 if test "$llvm_cv_link_use_version_script" = yes ; then
7784   HAVE_LINK_VERSION_SCRIPT=1
7785
7786   fi
7787
7788
7789
7790
7791 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7792 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7793 if test "${ac_cv_c_const+set}" = set; then
7794   echo $ECHO_N "(cached) $ECHO_C" >&6
7795 else
7796   cat >conftest.$ac_ext <<_ACEOF
7797 /* confdefs.h.  */
7798 _ACEOF
7799 cat confdefs.h >>conftest.$ac_ext
7800 cat >>conftest.$ac_ext <<_ACEOF
7801 /* end confdefs.h.  */
7802
7803 int
7804 main ()
7805 {
7806 /* FIXME: Include the comments suggested by Paul. */
7807 #ifndef __cplusplus
7808   /* Ultrix mips cc rejects this.  */
7809   typedef int charset[2];
7810   const charset x;
7811   /* SunOS 4.1.1 cc rejects this.  */
7812   char const *const *ccp;
7813   char **p;
7814   /* NEC SVR4.0.2 mips cc rejects this.  */
7815   struct point {int x, y;};
7816   static struct point const zero = {0,0};
7817   /* AIX XL C 1.02.0.0 rejects this.
7818      It does not let you subtract one const X* pointer from another in
7819      an arm of an if-expression whose if-part is not a constant
7820      expression */
7821   const char *g = "string";
7822   ccp = &g + (g ? g-g : 0);
7823   /* HPUX 7.0 cc rejects these. */
7824   ++ccp;
7825   p = (char**) ccp;
7826   ccp = (char const *const *) p;
7827   { /* SCO 3.2v4 cc rejects this.  */
7828     char *t;
7829     char const *s = 0 ? (char *) 0 : (char const *) 0;
7830
7831     *t++ = 0;
7832     if (s) return 0;
7833   }
7834   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7835     int x[] = {25, 17};
7836     const int *foo = &x[0];
7837     ++foo;
7838   }
7839   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7840     typedef const int *iptr;
7841     iptr p = 0;
7842     ++p;
7843   }
7844   { /* AIX XL C 1.02.0.0 rejects this saying
7845        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7846     struct s { int j; const int *ap[3]; };
7847     struct s *b; b->j = 5;
7848   }
7849   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7850     const int foo = 10;
7851     if (!foo) return 0;
7852   }
7853   return !x[0] && !zero.x;
7854 #endif
7855
7856   ;
7857   return 0;
7858 }
7859 _ACEOF
7860 rm -f conftest.$ac_objext
7861 if { (ac_try="$ac_compile"
7862 case "(($ac_try" in
7863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864   *) ac_try_echo=$ac_try;;
7865 esac
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867   (eval "$ac_compile") 2>conftest.er1
7868   ac_status=$?
7869   grep -v '^ *+' conftest.er1 >conftest.err
7870   rm -f conftest.er1
7871   cat conftest.err >&5
7872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873   (exit $ac_status); } &&
7874          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7875   { (case "(($ac_try" in
7876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877   *) ac_try_echo=$ac_try;;
7878 esac
7879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7880   (eval "$ac_try") 2>&5
7881   ac_status=$?
7882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883   (exit $ac_status); }; } &&
7884          { ac_try='test -s conftest.$ac_objext'
7885   { (case "(($ac_try" in
7886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887   *) ac_try_echo=$ac_try;;
7888 esac
7889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7890   (eval "$ac_try") 2>&5
7891   ac_status=$?
7892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893   (exit $ac_status); }; }; then
7894   ac_cv_c_const=yes
7895 else
7896   echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.$ac_ext >&5
7898
7899         ac_cv_c_const=no
7900 fi
7901
7902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7903 fi
7904 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7905 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7906 if test $ac_cv_c_const = no; then
7907
7908 cat >>confdefs.h <<\_ACEOF
7909 #define const
7910 _ACEOF
7911
7912 fi
7913
7914
7915
7916
7917
7918
7919 ac_header_dirent=no
7920 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7921   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7922 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7923 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7925   echo $ECHO_N "(cached) $ECHO_C" >&6
7926 else
7927   cat >conftest.$ac_ext <<_ACEOF
7928 /* confdefs.h.  */
7929 _ACEOF
7930 cat confdefs.h >>conftest.$ac_ext
7931 cat >>conftest.$ac_ext <<_ACEOF
7932 /* end confdefs.h.  */
7933 #include <sys/types.h>
7934 #include <$ac_hdr>
7935
7936 int
7937 main ()
7938 {
7939 if ((DIR *) 0)
7940 return 0;
7941   ;
7942   return 0;
7943 }
7944 _ACEOF
7945 rm -f conftest.$ac_objext
7946 if { (ac_try="$ac_compile"
7947 case "(($ac_try" in
7948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949   *) ac_try_echo=$ac_try;;
7950 esac
7951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7952   (eval "$ac_compile") 2>conftest.er1
7953   ac_status=$?
7954   grep -v '^ *+' conftest.er1 >conftest.err
7955   rm -f conftest.er1
7956   cat conftest.err >&5
7957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958   (exit $ac_status); } &&
7959          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7960   { (case "(($ac_try" in
7961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7962   *) ac_try_echo=$ac_try;;
7963 esac
7964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7965   (eval "$ac_try") 2>&5
7966   ac_status=$?
7967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968   (exit $ac_status); }; } &&
7969          { ac_try='test -s conftest.$ac_objext'
7970   { (case "(($ac_try" in
7971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972   *) ac_try_echo=$ac_try;;
7973 esac
7974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975   (eval "$ac_try") 2>&5
7976   ac_status=$?
7977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978   (exit $ac_status); }; }; then
7979   eval "$as_ac_Header=yes"
7980 else
7981   echo "$as_me: failed program was:" >&5
7982 sed 's/^/| /' conftest.$ac_ext >&5
7983
7984         eval "$as_ac_Header=no"
7985 fi
7986
7987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7988 fi
7989 ac_res=`eval echo '${'$as_ac_Header'}'`
7990                { echo "$as_me:$LINENO: result: $ac_res" >&5
7991 echo "${ECHO_T}$ac_res" >&6; }
7992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7993   cat >>confdefs.h <<_ACEOF
7994 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7995 _ACEOF
7996
7997 ac_header_dirent=$ac_hdr; break
7998 fi
7999
8000 done
8001 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8002 if test $ac_header_dirent = dirent.h; then
8003   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8004 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8005 if test "${ac_cv_search_opendir+set}" = set; then
8006   echo $ECHO_N "(cached) $ECHO_C" >&6
8007 else
8008   ac_func_search_save_LIBS=$LIBS
8009 cat >conftest.$ac_ext <<_ACEOF
8010 /* confdefs.h.  */
8011 _ACEOF
8012 cat confdefs.h >>conftest.$ac_ext
8013 cat >>conftest.$ac_ext <<_ACEOF
8014 /* end confdefs.h.  */
8015
8016 /* Override any GCC internal prototype to avoid an error.
8017    Use char because int might match the return type of a GCC
8018    builtin and then its argument prototype would still apply.  */
8019 #ifdef __cplusplus
8020 extern "C"
8021 #endif
8022 char opendir ();
8023 int
8024 main ()
8025 {
8026 return opendir ();
8027   ;
8028   return 0;
8029 }
8030 _ACEOF
8031 for ac_lib in '' dir; do
8032   if test -z "$ac_lib"; then
8033     ac_res="none required"
8034   else
8035     ac_res=-l$ac_lib
8036     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8037   fi
8038   rm -f conftest.$ac_objext conftest$ac_exeext
8039 if { (ac_try="$ac_link"
8040 case "(($ac_try" in
8041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042   *) ac_try_echo=$ac_try;;
8043 esac
8044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8045   (eval "$ac_link") 2>conftest.er1
8046   ac_status=$?
8047   grep -v '^ *+' conftest.er1 >conftest.err
8048   rm -f conftest.er1
8049   cat conftest.err >&5
8050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051   (exit $ac_status); } &&
8052          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8053   { (case "(($ac_try" in
8054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8055   *) ac_try_echo=$ac_try;;
8056 esac
8057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8058   (eval "$ac_try") 2>&5
8059   ac_status=$?
8060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061   (exit $ac_status); }; } &&
8062          { ac_try='test -s conftest$ac_exeext'
8063   { (case "(($ac_try" in
8064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065   *) ac_try_echo=$ac_try;;
8066 esac
8067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068   (eval "$ac_try") 2>&5
8069   ac_status=$?
8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071   (exit $ac_status); }; }; then
8072   ac_cv_search_opendir=$ac_res
8073 else
8074   echo "$as_me: failed program was:" >&5
8075 sed 's/^/| /' conftest.$ac_ext >&5
8076
8077
8078 fi
8079
8080 rm -f core conftest.err conftest.$ac_objext \
8081       conftest$ac_exeext
8082   if test "${ac_cv_search_opendir+set}" = set; then
8083   break
8084 fi
8085 done
8086 if test "${ac_cv_search_opendir+set}" = set; then
8087   :
8088 else
8089   ac_cv_search_opendir=no
8090 fi
8091 rm conftest.$ac_ext
8092 LIBS=$ac_func_search_save_LIBS
8093 fi
8094 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8095 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8096 ac_res=$ac_cv_search_opendir
8097 if test "$ac_res" != no; then
8098   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8099
8100 fi
8101
8102 else
8103   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8104 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8105 if test "${ac_cv_search_opendir+set}" = set; then
8106   echo $ECHO_N "(cached) $ECHO_C" >&6
8107 else
8108   ac_func_search_save_LIBS=$LIBS
8109 cat >conftest.$ac_ext <<_ACEOF
8110 /* confdefs.h.  */
8111 _ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h.  */
8115
8116 /* Override any GCC internal prototype to avoid an error.
8117    Use char because int might match the return type of a GCC
8118    builtin and then its argument prototype would still apply.  */
8119 #ifdef __cplusplus
8120 extern "C"
8121 #endif
8122 char opendir ();
8123 int
8124 main ()
8125 {
8126 return opendir ();
8127   ;
8128   return 0;
8129 }
8130 _ACEOF
8131 for ac_lib in '' x; do
8132   if test -z "$ac_lib"; then
8133     ac_res="none required"
8134   else
8135     ac_res=-l$ac_lib
8136     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8137   fi
8138   rm -f conftest.$ac_objext conftest$ac_exeext
8139 if { (ac_try="$ac_link"
8140 case "(($ac_try" in
8141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142   *) ac_try_echo=$ac_try;;
8143 esac
8144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145   (eval "$ac_link") 2>conftest.er1
8146   ac_status=$?
8147   grep -v '^ *+' conftest.er1 >conftest.err
8148   rm -f conftest.er1
8149   cat conftest.err >&5
8150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151   (exit $ac_status); } &&
8152          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8153   { (case "(($ac_try" in
8154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8155   *) ac_try_echo=$ac_try;;
8156 esac
8157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8158   (eval "$ac_try") 2>&5
8159   ac_status=$?
8160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161   (exit $ac_status); }; } &&
8162          { ac_try='test -s conftest$ac_exeext'
8163   { (case "(($ac_try" in
8164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165   *) ac_try_echo=$ac_try;;
8166 esac
8167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8168   (eval "$ac_try") 2>&5
8169   ac_status=$?
8170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171   (exit $ac_status); }; }; then
8172   ac_cv_search_opendir=$ac_res
8173 else
8174   echo "$as_me: failed program was:" >&5
8175 sed 's/^/| /' conftest.$ac_ext >&5
8176
8177
8178 fi
8179
8180 rm -f core conftest.err conftest.$ac_objext \
8181       conftest$ac_exeext
8182   if test "${ac_cv_search_opendir+set}" = set; then
8183   break
8184 fi
8185 done
8186 if test "${ac_cv_search_opendir+set}" = set; then
8187   :
8188 else
8189   ac_cv_search_opendir=no
8190 fi
8191 rm conftest.$ac_ext
8192 LIBS=$ac_func_search_save_LIBS
8193 fi
8194 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8195 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8196 ac_res=$ac_cv_search_opendir
8197 if test "$ac_res" != no; then
8198   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8199
8200 fi
8201
8202 fi
8203
8204
8205 for ac_header in dlfcn.h
8206 do
8207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8209   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8212   echo $ECHO_N "(cached) $ECHO_C" >&6
8213 fi
8214 ac_res=`eval echo '${'$as_ac_Header'}'`
8215                { echo "$as_me:$LINENO: result: $ac_res" >&5
8216 echo "${ECHO_T}$ac_res" >&6; }
8217 else
8218   # Is the header compilable?
8219 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8221 cat >conftest.$ac_ext <<_ACEOF
8222 /* confdefs.h.  */
8223 _ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h.  */
8227 $ac_includes_default
8228 #include <$ac_header>
8229 _ACEOF
8230 rm -f conftest.$ac_objext
8231 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
8238   ac_status=$?
8239   grep -v '^ *+' conftest.er1 >conftest.err
8240   rm -f conftest.er1
8241   cat conftest.err >&5
8242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243   (exit $ac_status); } &&
8244          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8245   { (case "(($ac_try" in
8246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8247   *) ac_try_echo=$ac_try;;
8248 esac
8249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8250   (eval "$ac_try") 2>&5
8251   ac_status=$?
8252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253   (exit $ac_status); }; } &&
8254          { ac_try='test -s conftest.$ac_objext'
8255   { (case "(($ac_try" in
8256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8257   *) ac_try_echo=$ac_try;;
8258 esac
8259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8260   (eval "$ac_try") 2>&5
8261   ac_status=$?
8262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263   (exit $ac_status); }; }; then
8264   ac_header_compiler=yes
8265 else
8266   echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8268
8269         ac_header_compiler=no
8270 fi
8271
8272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8274 echo "${ECHO_T}$ac_header_compiler" >&6; }
8275
8276 # Is the header present?
8277 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8279 cat >conftest.$ac_ext <<_ACEOF
8280 /* confdefs.h.  */
8281 _ACEOF
8282 cat confdefs.h >>conftest.$ac_ext
8283 cat >>conftest.$ac_ext <<_ACEOF
8284 /* end confdefs.h.  */
8285 #include <$ac_header>
8286 _ACEOF
8287 if { (ac_try="$ac_cpp conftest.$ac_ext"
8288 case "(($ac_try" in
8289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8290   *) ac_try_echo=$ac_try;;
8291 esac
8292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8293   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8294   ac_status=$?
8295   grep -v '^ *+' conftest.er1 >conftest.err
8296   rm -f conftest.er1
8297   cat conftest.err >&5
8298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299   (exit $ac_status); } >/dev/null; then
8300   if test -s conftest.err; then
8301     ac_cpp_err=$ac_c_preproc_warn_flag
8302     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8303   else
8304     ac_cpp_err=
8305   fi
8306 else
8307   ac_cpp_err=yes
8308 fi
8309 if test -z "$ac_cpp_err"; then
8310   ac_header_preproc=yes
8311 else
8312   echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8314
8315   ac_header_preproc=no
8316 fi
8317
8318 rm -f conftest.err conftest.$ac_ext
8319 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8320 echo "${ECHO_T}$ac_header_preproc" >&6; }
8321
8322 # So?  What about this header?
8323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8324   yes:no: )
8325     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8326 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8327     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8328 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8329     ac_header_preproc=yes
8330     ;;
8331   no:yes:* )
8332     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8333 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8334     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8335 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8336     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8337 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8338     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8339 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8340     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8342     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8343 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8344     ( cat <<\_ASBOX
8345 ## ------------------------------------ ##
8346 ## Report this to http://llvm.org/bugs/ ##
8347 ## ------------------------------------ ##
8348 _ASBOX
8349      ) | sed "s/^/$as_me: WARNING:     /" >&2
8350     ;;
8351 esac
8352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8355   echo $ECHO_N "(cached) $ECHO_C" >&6
8356 else
8357   eval "$as_ac_Header=\$ac_header_preproc"
8358 fi
8359 ac_res=`eval echo '${'$as_ac_Header'}'`
8360                { echo "$as_me:$LINENO: result: $ac_res" >&5
8361 echo "${ECHO_T}$ac_res" >&6; }
8362
8363 fi
8364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8365   cat >>confdefs.h <<_ACEOF
8366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8367 _ACEOF
8368
8369 fi
8370
8371 done
8372
8373 # Check whether --enable-ltdl-install was given.
8374 if test "${enable_ltdl_install+set}" = set; then
8375   enableval=$enable_ltdl_install;
8376 fi
8377
8378
8379
8380
8381 if test x"${enable_ltdl_install-no}" != xno; then
8382   INSTALL_LTDL_TRUE=
8383   INSTALL_LTDL_FALSE='#'
8384 else
8385   INSTALL_LTDL_TRUE='#'
8386   INSTALL_LTDL_FALSE=
8387 fi
8388
8389
8390
8391 if test x"${enable_ltdl_convenience-no}" != xno; then
8392   CONVENIENCE_LTDL_TRUE=
8393   CONVENIENCE_LTDL_FALSE='#'
8394 else
8395   CONVENIENCE_LTDL_TRUE='#'
8396   CONVENIENCE_LTDL_FALSE=
8397 fi
8398
8399
8400 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8401 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8402 library_names_spec=
8403 libname_spec='lib$name'
8404 soname_spec=
8405 shrext_cmds=".so"
8406 postinstall_cmds=
8407 postuninstall_cmds=
8408 finish_cmds=
8409 finish_eval=
8410 shlibpath_var=
8411 shlibpath_overrides_runpath=unknown
8412 version_type=none
8413 dynamic_linker="$host_os ld.so"
8414 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8415 if test "$GCC" = yes; then
8416   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8417   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8418     # if the path contains ";" then we assume it to be the separator
8419     # otherwise default to the standard path separator (i.e. ":") - it is
8420     # assumed that no part of a normal pathname contains ";" but that should
8421     # okay in the real world where ";" in dirpaths is itself problematic.
8422     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8423   else
8424     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8425   fi
8426 else
8427   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8428 fi
8429 need_lib_prefix=unknown
8430 hardcode_into_libs=no
8431
8432 # when you set need_version to no, make sure it does not cause -set_version
8433 # flags to be left without arguments
8434 need_version=unknown
8435
8436 case $host_os in
8437 aix3*)
8438   version_type=linux
8439   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8440   shlibpath_var=LIBPATH
8441
8442   # AIX 3 has no versioning support, so we append a major version to the name.
8443   soname_spec='${libname}${release}${shared_ext}$major'
8444   ;;
8445
8446 aix4* | aix5*)
8447   version_type=linux
8448   need_lib_prefix=no
8449   need_version=no
8450   hardcode_into_libs=yes
8451   if test "$host_cpu" = ia64; then
8452     # AIX 5 supports IA64
8453     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8454     shlibpath_var=LD_LIBRARY_PATH
8455   else
8456     # With GCC up to 2.95.x, collect2 would create an import file
8457     # for dependence libraries.  The import file would start with
8458     # the line `#! .'.  This would cause the generated library to
8459     # depend on `.', always an invalid library.  This was fixed in
8460     # development snapshots of GCC prior to 3.0.
8461     case $host_os in
8462       aix4 | aix4.[01] | aix4.[01].*)
8463       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8464            echo ' yes '
8465            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8466         :
8467       else
8468         can_build_shared=no
8469       fi
8470       ;;
8471     esac
8472     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8473     # soname into executable. Probably we can add versioning support to
8474     # collect2, so additional links can be useful in future.
8475     if test "$aix_use_runtimelinking" = yes; then
8476       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8477       # instead of lib<name>.a to let people know that these are not
8478       # typical AIX shared libraries.
8479       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8480     else
8481       # We preserve .a as extension for shared libraries through AIX4.2
8482       # and later when we are not doing run time linking.
8483       library_names_spec='${libname}${release}.a $libname.a'
8484       soname_spec='${libname}${release}${shared_ext}$major'
8485     fi
8486     shlibpath_var=LIBPATH
8487   fi
8488   ;;
8489
8490 amigaos*)
8491   library_names_spec='$libname.ixlibrary $libname.a'
8492   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8493   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'
8494   ;;
8495
8496 beos*)
8497   library_names_spec='${libname}${shared_ext}'
8498   dynamic_linker="$host_os ld.so"
8499   shlibpath_var=LIBRARY_PATH
8500   ;;
8501
8502 bsdi[45]*)
8503   version_type=linux
8504   need_version=no
8505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8506   soname_spec='${libname}${release}${shared_ext}$major'
8507   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8508   shlibpath_var=LD_LIBRARY_PATH
8509   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8510   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8511   # the default ld.so.conf also contains /usr/contrib/lib and
8512   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8513   # libtool to hard-code these into programs
8514   ;;
8515
8516 cygwin* | mingw* | pw32*)
8517   version_type=windows
8518   shrext_cmds=".dll"
8519   need_version=no
8520   need_lib_prefix=no
8521
8522   case $GCC,$host_os in
8523   yes,cygwin* | yes,mingw* | yes,pw32*)
8524     library_names_spec='$libname.dll.a'
8525     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8526     postinstall_cmds='base_file=`basename \${file}`~
8527       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8528       dldir=$destdir/`dirname \$dlpath`~
8529       test -d \$dldir || mkdir -p \$dldir~
8530       $install_prog $dir/$dlname \$dldir/$dlname~
8531       chmod a+x \$dldir/$dlname'
8532     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8533       dlpath=$dir/\$dldll~
8534        $rm \$dlpath'
8535     shlibpath_overrides_runpath=yes
8536
8537     case $host_os in
8538     cygwin*)
8539       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8540       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8541       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8542       ;;
8543     mingw*)
8544       # MinGW DLLs use traditional 'lib' prefix
8545       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8546       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8547       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8548         # It is most probably a Windows format PATH printed by
8549         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8550         # path with ; separators, and with drive letters. We can handle the
8551         # drive letters (cygwin fileutils understands them), so leave them,
8552         # especially as we might pass files found there to a mingw objdump,
8553         # which wouldn't understand a cygwinified path. Ahh.
8554         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8555       else
8556         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8557       fi
8558       ;;
8559     pw32*)
8560       # pw32 DLLs use 'pw' prefix rather than 'lib'
8561       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8562       ;;
8563     esac
8564     ;;
8565
8566   *)
8567     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8568     ;;
8569   esac
8570   dynamic_linker='Win32 ld.exe'
8571   # FIXME: first we should search . and the directory the executable is in
8572   shlibpath_var=PATH
8573   ;;
8574
8575 darwin* | rhapsody*)
8576   dynamic_linker="$host_os dyld"
8577   version_type=darwin
8578   need_lib_prefix=no
8579   need_version=no
8580   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8581   soname_spec='${libname}${release}${major}$shared_ext'
8582   shlibpath_overrides_runpath=yes
8583   shlibpath_var=DYLD_LIBRARY_PATH
8584   shrext_cmds='.dylib'
8585   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8586   if test "$GCC" = yes; then
8587     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"`
8588   else
8589     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8590   fi
8591   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8592   ;;
8593
8594 dgux*)
8595   version_type=linux
8596   need_lib_prefix=no
8597   need_version=no
8598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8599   soname_spec='${libname}${release}${shared_ext}$major'
8600   shlibpath_var=LD_LIBRARY_PATH
8601   ;;
8602
8603 freebsd1.*)
8604   dynamic_linker=no
8605   ;;
8606
8607 kfreebsd*-gnu)
8608   version_type=linux
8609   need_lib_prefix=no
8610   need_version=no
8611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8612   soname_spec='${libname}${release}${shared_ext}$major'
8613   shlibpath_var=LD_LIBRARY_PATH
8614   shlibpath_overrides_runpath=no
8615   hardcode_into_libs=yes
8616   dynamic_linker='GNU ld.so'
8617   ;;
8618
8619 freebsd* | dragonfly*)
8620   # DragonFly does not have aout.  When/if they implement a new
8621   # versioning mechanism, adjust this.
8622   if test -x /usr/bin/objformat; then
8623     objformat=`/usr/bin/objformat`
8624   else
8625     case $host_os in
8626     freebsd[123].*) objformat=aout ;;
8627     *) objformat=elf ;;
8628     esac
8629   fi
8630   version_type=freebsd-$objformat
8631   case $version_type in
8632     freebsd-elf*)
8633       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8634       need_version=no
8635       need_lib_prefix=no
8636       ;;
8637     freebsd-*)
8638       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8639       need_version=yes
8640       ;;
8641   esac
8642   shlibpath_var=LD_LIBRARY_PATH
8643   case $host_os in
8644   freebsd2.*)
8645     shlibpath_overrides_runpath=yes
8646     ;;
8647   freebsd3.[01]* | freebsdelf3.[01]*)
8648     shlibpath_overrides_runpath=yes
8649     hardcode_into_libs=yes
8650     ;;
8651   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8652   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8653     shlibpath_overrides_runpath=no
8654     hardcode_into_libs=yes
8655     ;;
8656   freebsd*) # from 4.6 on
8657     shlibpath_overrides_runpath=yes
8658     hardcode_into_libs=yes
8659     ;;
8660   esac
8661   ;;
8662
8663 gnu*)
8664   version_type=linux
8665   need_lib_prefix=no
8666   need_version=no
8667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8668   soname_spec='${libname}${release}${shared_ext}$major'
8669   shlibpath_var=LD_LIBRARY_PATH
8670   hardcode_into_libs=yes
8671   ;;
8672
8673 hpux9* | hpux10* | hpux11*)
8674   # Give a soname corresponding to the major version so that dld.sl refuses to
8675   # link against other versions.
8676   version_type=sunos
8677   need_lib_prefix=no
8678   need_version=no
8679   case $host_cpu in
8680   ia64*)
8681     shrext_cmds='.so'
8682     hardcode_into_libs=yes
8683     dynamic_linker="$host_os dld.so"
8684     shlibpath_var=LD_LIBRARY_PATH
8685     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8686     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8687     soname_spec='${libname}${release}${shared_ext}$major'
8688     if test "X$HPUX_IA64_MODE" = X32; then
8689       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8690     else
8691       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8692     fi
8693     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8694     ;;
8695    hppa*64*)
8696      shrext_cmds='.sl'
8697      hardcode_into_libs=yes
8698      dynamic_linker="$host_os dld.sl"
8699      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8700      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8701      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8702      soname_spec='${libname}${release}${shared_ext}$major'
8703      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8704      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8705      ;;
8706    *)
8707     shrext_cmds='.sl'
8708     dynamic_linker="$host_os dld.sl"
8709     shlibpath_var=SHLIB_PATH
8710     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8711     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8712     soname_spec='${libname}${release}${shared_ext}$major'
8713     ;;
8714   esac
8715   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8716   postinstall_cmds='chmod 555 $lib'
8717   ;;
8718
8719 interix3*)
8720   version_type=linux
8721   need_lib_prefix=no
8722   need_version=no
8723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8724   soname_spec='${libname}${release}${shared_ext}$major'
8725   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8726   shlibpath_var=LD_LIBRARY_PATH
8727   shlibpath_overrides_runpath=no
8728   hardcode_into_libs=yes
8729   ;;
8730
8731 irix5* | irix6* | nonstopux*)
8732   case $host_os in
8733     nonstopux*) version_type=nonstopux ;;
8734     *)
8735         if test "$lt_cv_prog_gnu_ld" = yes; then
8736                 version_type=linux
8737         else
8738                 version_type=irix
8739         fi ;;
8740   esac
8741   need_lib_prefix=no
8742   need_version=no
8743   soname_spec='${libname}${release}${shared_ext}$major'
8744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8745   case $host_os in
8746   irix5* | nonstopux*)
8747     libsuff= shlibsuff=
8748     ;;
8749   *)
8750     case $LD in # libtool.m4 will add one of these switches to LD
8751     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8752       libsuff= shlibsuff= libmagic=32-bit;;
8753     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8754       libsuff=32 shlibsuff=N32 libmagic=N32;;
8755     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8756       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8757     *) libsuff= shlibsuff= libmagic=never-match;;
8758     esac
8759     ;;
8760   esac
8761   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8762   shlibpath_overrides_runpath=no
8763   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8764   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8765   hardcode_into_libs=yes
8766   ;;
8767
8768 # No shared lib support for Linux oldld, aout, or coff.
8769 linux*oldld* | linux*aout* | linux*coff*)
8770   dynamic_linker=no
8771   ;;
8772
8773 # This must be Linux ELF.
8774 linux*)
8775   version_type=linux
8776   need_lib_prefix=no
8777   need_version=no
8778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8779   soname_spec='${libname}${release}${shared_ext}$major'
8780   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8781   shlibpath_var=LD_LIBRARY_PATH
8782   shlibpath_overrides_runpath=no
8783   # This implies no fast_install, which is unacceptable.
8784   # Some rework will be needed to allow for fast_install
8785   # before this can be enabled.
8786   hardcode_into_libs=yes
8787
8788   # Append ld.so.conf contents to the search path
8789   if test -f /etc/ld.so.conf; then
8790     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' ' '`
8791     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8792   fi
8793
8794   # We used to test for /lib/ld.so.1 and disable shared libraries on
8795   # powerpc, because MkLinux only supported shared libraries with the
8796   # GNU dynamic linker.  Since this was broken with cross compilers,
8797   # most powerpc-linux boxes support dynamic linking these days and
8798   # people can always --disable-shared, the test was removed, and we
8799   # assume the GNU/Linux dynamic linker is in use.
8800   dynamic_linker='GNU/Linux ld.so'
8801   ;;
8802
8803 knetbsd*-gnu)
8804   version_type=linux
8805   need_lib_prefix=no
8806   need_version=no
8807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8808   soname_spec='${libname}${release}${shared_ext}$major'
8809   shlibpath_var=LD_LIBRARY_PATH
8810   shlibpath_overrides_runpath=no
8811   hardcode_into_libs=yes
8812   dynamic_linker='GNU ld.so'
8813   ;;
8814
8815 netbsd*)
8816   version_type=sunos
8817   need_lib_prefix=no
8818   need_version=no
8819   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8820     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8821     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8822     dynamic_linker='NetBSD (a.out) ld.so'
8823   else
8824     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8825     soname_spec='${libname}${release}${shared_ext}$major'
8826     dynamic_linker='NetBSD ld.elf_so'
8827   fi
8828   shlibpath_var=LD_LIBRARY_PATH
8829   shlibpath_overrides_runpath=yes
8830   hardcode_into_libs=yes
8831   ;;
8832
8833 newsos6)
8834   version_type=linux
8835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8836   shlibpath_var=LD_LIBRARY_PATH
8837   shlibpath_overrides_runpath=yes
8838   ;;
8839
8840 nto-qnx*)
8841   version_type=linux
8842   need_lib_prefix=no
8843   need_version=no
8844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8845   soname_spec='${libname}${release}${shared_ext}$major'
8846   shlibpath_var=LD_LIBRARY_PATH
8847   shlibpath_overrides_runpath=yes
8848   ;;
8849
8850 openbsd*)
8851   version_type=sunos
8852   sys_lib_dlsearch_path_spec="/usr/lib"
8853   need_lib_prefix=no
8854   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8855   case $host_os in
8856     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8857     *)                         need_version=no  ;;
8858   esac
8859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8860   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8861   shlibpath_var=LD_LIBRARY_PATH
8862   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8863     case $host_os in
8864       openbsd2.[89] | openbsd2.[89].*)
8865         shlibpath_overrides_runpath=no
8866         ;;
8867       *)
8868         shlibpath_overrides_runpath=yes
8869         ;;
8870       esac
8871   else
8872     shlibpath_overrides_runpath=yes
8873   fi
8874   ;;
8875
8876 os2*)
8877   libname_spec='$name'
8878   shrext_cmds=".dll"
8879   need_lib_prefix=no
8880   library_names_spec='$libname${shared_ext} $libname.a'
8881   dynamic_linker='OS/2 ld.exe'
8882   shlibpath_var=LIBPATH
8883   ;;
8884
8885 osf3* | osf4* | osf5*)
8886   version_type=osf
8887   need_lib_prefix=no
8888   need_version=no
8889   soname_spec='${libname}${release}${shared_ext}$major'
8890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8891   shlibpath_var=LD_LIBRARY_PATH
8892   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8893   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8894   ;;
8895
8896 solaris*)
8897   version_type=linux
8898   need_lib_prefix=no
8899   need_version=no
8900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8901   soname_spec='${libname}${release}${shared_ext}$major'
8902   shlibpath_var=LD_LIBRARY_PATH
8903   shlibpath_overrides_runpath=yes
8904   hardcode_into_libs=yes
8905   # ldd complains unless libraries are executable
8906   postinstall_cmds='chmod +x $lib'
8907   ;;
8908
8909 sunos4*)
8910   version_type=sunos
8911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8912   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8913   shlibpath_var=LD_LIBRARY_PATH
8914   shlibpath_overrides_runpath=yes
8915   if test "$with_gnu_ld" = yes; then
8916     need_lib_prefix=no
8917   fi
8918   need_version=yes
8919   ;;
8920
8921 sysv4 | sysv4.3*)
8922   version_type=linux
8923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8924   soname_spec='${libname}${release}${shared_ext}$major'
8925   shlibpath_var=LD_LIBRARY_PATH
8926   case $host_vendor in
8927     sni)
8928       shlibpath_overrides_runpath=no
8929       need_lib_prefix=no
8930       export_dynamic_flag_spec='${wl}-Blargedynsym'
8931       runpath_var=LD_RUN_PATH
8932       ;;
8933     siemens)
8934       need_lib_prefix=no
8935       ;;
8936     motorola)
8937       need_lib_prefix=no
8938       need_version=no
8939       shlibpath_overrides_runpath=no
8940       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8941       ;;
8942   esac
8943   ;;
8944
8945 sysv4*MP*)
8946   if test -d /usr/nec ;then
8947     version_type=linux
8948     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8949     soname_spec='$libname${shared_ext}.$major'
8950     shlibpath_var=LD_LIBRARY_PATH
8951   fi
8952   ;;
8953
8954 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8955   version_type=freebsd-elf
8956   need_lib_prefix=no
8957   need_version=no
8958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8959   soname_spec='${libname}${release}${shared_ext}$major'
8960   shlibpath_var=LD_LIBRARY_PATH
8961   hardcode_into_libs=yes
8962   if test "$with_gnu_ld" = yes; then
8963     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8964     shlibpath_overrides_runpath=no
8965   else
8966     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8967     shlibpath_overrides_runpath=yes
8968     case $host_os in
8969       sco3.2v5*)
8970         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8971         ;;
8972     esac
8973   fi
8974   sys_lib_dlsearch_path_spec='/usr/lib'
8975   ;;
8976
8977 uts4*)
8978   version_type=linux
8979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8980   soname_spec='${libname}${release}${shared_ext}$major'
8981   shlibpath_var=LD_LIBRARY_PATH
8982   ;;
8983
8984 *)
8985   dynamic_linker=no
8986   ;;
8987 esac
8988 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8989 echo "${ECHO_T}$dynamic_linker" >&6; }
8990 test "$dynamic_linker" = no && can_build_shared=no
8991
8992 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8993 if test "$GCC" = yes; then
8994   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8995 fi
8996
8997
8998 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
8999 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9000 if test "${libltdl_cv_shlibext+set}" = set; then
9001   echo $ECHO_N "(cached) $ECHO_C" >&6
9002 else
9003
9004 module=yes
9005 eval libltdl_cv_shlibext=$shrext_cmds
9006
9007 fi
9008 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9009 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9010 if test -n "$libltdl_cv_shlibext"; then
9011
9012 cat >>confdefs.h <<_ACEOF
9013 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9014 _ACEOF
9015
9016 fi
9017
9018
9019 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9020 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9021 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9022   echo $ECHO_N "(cached) $ECHO_C" >&6
9023 else
9024   libltdl_cv_shlibpath_var="$shlibpath_var"
9025 fi
9026 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9027 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9028 if test -n "$libltdl_cv_shlibpath_var"; then
9029
9030 cat >>confdefs.h <<_ACEOF
9031 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9032 _ACEOF
9033
9034 fi
9035
9036
9037 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9038 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9039 if test "${libltdl_cv_sys_search_path+set}" = set; then
9040   echo $ECHO_N "(cached) $ECHO_C" >&6
9041 else
9042   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9043 fi
9044 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9045 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9046 if test -n "$libltdl_cv_sys_search_path"; then
9047   sys_search_path=
9048   for dir in $libltdl_cv_sys_search_path; do
9049     if test -z "$sys_search_path"; then
9050       sys_search_path="$dir"
9051     else
9052       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9053     fi
9054   done
9055
9056 cat >>confdefs.h <<_ACEOF
9057 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9058 _ACEOF
9059
9060 fi
9061
9062 { echo "$as_me:$LINENO: checking for objdir" >&5
9063 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9064 if test "${libltdl_cv_objdir+set}" = set; then
9065   echo $ECHO_N "(cached) $ECHO_C" >&6
9066 else
9067   libltdl_cv_objdir="$objdir"
9068   if test -n "$objdir"; then
9069     :
9070   else
9071     rm -f .libs 2>/dev/null
9072     mkdir .libs 2>/dev/null
9073     if test -d .libs; then
9074       libltdl_cv_objdir=.libs
9075     else
9076       # MS-DOS does not allow filenames that begin with a dot.
9077       libltdl_cv_objdir=_libs
9078     fi
9079   rmdir .libs 2>/dev/null
9080   fi
9081
9082 fi
9083 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9084 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9085
9086 cat >>confdefs.h <<_ACEOF
9087 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9088 _ACEOF
9089
9090
9091
9092
9093
9094
9095 # Check for command to grab the raw symbol name followed by C symbol from nm.
9096 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9097 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9098 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9099   echo $ECHO_N "(cached) $ECHO_C" >&6
9100 else
9101
9102 # These are sane defaults that work on at least a few old systems.
9103 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9104
9105 # Character class describing NM global symbol codes.
9106 symcode='[BCDEGRST]'
9107
9108 # Regexp to match symbols that can be accessed directly from C.
9109 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9110
9111 # Transform an extracted symbol line into a proper C declaration
9112 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9113
9114 # Transform an extracted symbol line into symbol name and symbol address
9115 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'"
9116
9117 # Define system-specific variables.
9118 case $host_os in
9119 aix*)
9120   symcode='[BCDT]'
9121   ;;
9122 cygwin* | mingw* | pw32*)
9123   symcode='[ABCDGISTW]'
9124   ;;
9125 hpux*) # Its linker distinguishes data from code symbols
9126   if test "$host_cpu" = ia64; then
9127     symcode='[ABCDEGRST]'
9128   fi
9129   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9130   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'"
9131   ;;
9132 linux*)
9133   if test "$host_cpu" = ia64; then
9134     symcode='[ABCDGIRSTW]'
9135     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9136     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'"
9137   fi
9138   ;;
9139 irix* | nonstopux*)
9140   symcode='[BCDEGRST]'
9141   ;;
9142 osf*)
9143   symcode='[BCDEGQRST]'
9144   ;;
9145 solaris*)
9146   symcode='[BDRT]'
9147   ;;
9148 sco3.2v5*)
9149   symcode='[DT]'
9150   ;;
9151 sysv4.2uw2*)
9152   symcode='[DT]'
9153   ;;
9154 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9155   symcode='[ABDT]'
9156   ;;
9157 sysv4)
9158   symcode='[DFNSTU]'
9159   ;;
9160 esac
9161
9162 # Handle CRLF in mingw tool chain
9163 opt_cr=
9164 case $build_os in
9165 mingw*)
9166   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9167   ;;
9168 esac
9169
9170 # If we're using GNU nm, then use its standard symbol codes.
9171 case `$NM -V 2>&1` in
9172 *GNU* | *'with BFD'*)
9173   symcode='[ABCDGIRSTW]' ;;
9174 esac
9175
9176 # Try without a prefix undercore, then with it.
9177 for ac_symprfx in "" "_"; do
9178
9179   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9180   symxfrm="\\1 $ac_symprfx\\2 \\2"
9181
9182   # Write the raw and C identifiers.
9183   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9184
9185   # Check to see that the pipe works correctly.
9186   pipe_works=no
9187
9188   rm -f conftest*
9189   cat > conftest.$ac_ext <<EOF
9190 #ifdef __cplusplus
9191 extern "C" {
9192 #endif
9193 char nm_test_var;
9194 void nm_test_func(){}
9195 #ifdef __cplusplus
9196 }
9197 #endif
9198 int main(){nm_test_var='a';nm_test_func();return(0);}
9199 EOF
9200
9201   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9202   (eval $ac_compile) 2>&5
9203   ac_status=$?
9204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205   (exit $ac_status); }; then
9206     # Now try to grab the symbols.
9207     nlist=conftest.nm
9208     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9209   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9210   ac_status=$?
9211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212   (exit $ac_status); } && test -s "$nlist"; then
9213       # Try sorting and uniquifying the output.
9214       if sort "$nlist" | uniq > "$nlist"T; then
9215         mv -f "$nlist"T "$nlist"
9216       else
9217         rm -f "$nlist"T
9218       fi
9219
9220       # Make sure that we snagged all the symbols we need.
9221       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9222         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9223           cat <<EOF > conftest.$ac_ext
9224 #ifdef __cplusplus
9225 extern "C" {
9226 #endif
9227
9228 EOF
9229           # Now generate the symbol file.
9230           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9231
9232           cat <<EOF >> conftest.$ac_ext
9233 #if defined (__STDC__) && __STDC__
9234 # define lt_ptr_t void *
9235 #else
9236 # define lt_ptr_t char *
9237 # define const
9238 #endif
9239
9240 /* The mapping between symbol names and symbols. */
9241 const struct {
9242   const char *name;
9243   lt_ptr_t address;
9244 }
9245 lt_preloaded_symbols[] =
9246 {
9247 EOF
9248           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9249           cat <<\EOF >> conftest.$ac_ext
9250   {0, (lt_ptr_t) 0}
9251 };
9252
9253 #ifdef __cplusplus
9254 }
9255 #endif
9256 EOF
9257           # Now try linking the two files.
9258           mv conftest.$ac_objext conftstm.$ac_objext
9259           lt_save_LIBS="$LIBS"
9260           lt_save_CFLAGS="$CFLAGS"
9261           LIBS="conftstm.$ac_objext"
9262           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9263           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9264   (eval $ac_link) 2>&5
9265   ac_status=$?
9266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9268             pipe_works=yes
9269           fi
9270           LIBS="$lt_save_LIBS"
9271           CFLAGS="$lt_save_CFLAGS"
9272         else
9273           echo "cannot find nm_test_func in $nlist" >&5
9274         fi
9275       else
9276         echo "cannot find nm_test_var in $nlist" >&5
9277       fi
9278     else
9279       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9280     fi
9281   else
9282     echo "$progname: failed program was:" >&5
9283     cat conftest.$ac_ext >&5
9284   fi
9285   rm -f conftest* conftst*
9286
9287   # Do not use the global_symbol_pipe unless it works.
9288   if test "$pipe_works" = yes; then
9289     break
9290   else
9291     lt_cv_sys_global_symbol_pipe=
9292   fi
9293 done
9294
9295 fi
9296
9297 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9298   lt_cv_sys_global_symbol_to_cdecl=
9299 fi
9300 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9301   { echo "$as_me:$LINENO: result: failed" >&5
9302 echo "${ECHO_T}failed" >&6; }
9303 else
9304   { echo "$as_me:$LINENO: result: ok" >&5
9305 echo "${ECHO_T}ok" >&6; }
9306 fi
9307
9308
9309 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9310 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9311 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9312   echo $ECHO_N "(cached) $ECHO_C" >&6
9313 else
9314   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9315     libltdl_cv_preloaded_symbols=yes
9316   else
9317     libltdl_cv_preloaded_symbols=no
9318   fi
9319
9320 fi
9321 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9322 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9323 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9324
9325 cat >>confdefs.h <<\_ACEOF
9326 #define HAVE_PRELOADED_SYMBOLS 1
9327 _ACEOF
9328
9329 fi
9330
9331 LIBADD_DL=
9332
9333 ac_ext=c
9334 ac_cpp='$CPP $CPPFLAGS'
9335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9338
9339
9340 { echo "$as_me:$LINENO: checking for shl_load" >&5
9341 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9342 if test "${ac_cv_func_shl_load+set}" = set; then
9343   echo $ECHO_N "(cached) $ECHO_C" >&6
9344 else
9345   cat >conftest.$ac_ext <<_ACEOF
9346 /* confdefs.h.  */
9347 _ACEOF
9348 cat confdefs.h >>conftest.$ac_ext
9349 cat >>conftest.$ac_ext <<_ACEOF
9350 /* end confdefs.h.  */
9351 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9352    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9353 #define shl_load innocuous_shl_load
9354
9355 /* System header to define __stub macros and hopefully few prototypes,
9356     which can conflict with char shl_load (); below.
9357     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9358     <limits.h> exists even on freestanding compilers.  */
9359
9360 #ifdef __STDC__
9361 # include <limits.h>
9362 #else
9363 # include <assert.h>
9364 #endif
9365
9366 #undef shl_load
9367
9368 /* Override any GCC internal prototype to avoid an error.
9369    Use char because int might match the return type of a GCC
9370    builtin and then its argument prototype would still apply.  */
9371 #ifdef __cplusplus
9372 extern "C"
9373 #endif
9374 char shl_load ();
9375 /* The GNU C library defines this for functions which it implements
9376     to always fail with ENOSYS.  Some functions are actually named
9377     something starting with __ and the normal name is an alias.  */
9378 #if defined __stub_shl_load || defined __stub___shl_load
9379 choke me
9380 #endif
9381
9382 int
9383 main ()
9384 {
9385 return shl_load ();
9386   ;
9387   return 0;
9388 }
9389 _ACEOF
9390 rm -f conftest.$ac_objext conftest$ac_exeext
9391 if { (ac_try="$ac_link"
9392 case "(($ac_try" in
9393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9394   *) ac_try_echo=$ac_try;;
9395 esac
9396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9397   (eval "$ac_link") 2>conftest.er1
9398   ac_status=$?
9399   grep -v '^ *+' conftest.er1 >conftest.err
9400   rm -f conftest.er1
9401   cat conftest.err >&5
9402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403   (exit $ac_status); } &&
9404          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9405   { (case "(($ac_try" in
9406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9407   *) ac_try_echo=$ac_try;;
9408 esac
9409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9410   (eval "$ac_try") 2>&5
9411   ac_status=$?
9412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413   (exit $ac_status); }; } &&
9414          { ac_try='test -s conftest$ac_exeext'
9415   { (case "(($ac_try" in
9416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9417   *) ac_try_echo=$ac_try;;
9418 esac
9419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9420   (eval "$ac_try") 2>&5
9421   ac_status=$?
9422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423   (exit $ac_status); }; }; then
9424   ac_cv_func_shl_load=yes
9425 else
9426   echo "$as_me: failed program was:" >&5
9427 sed 's/^/| /' conftest.$ac_ext >&5
9428
9429         ac_cv_func_shl_load=no
9430 fi
9431
9432 rm -f core conftest.err conftest.$ac_objext \
9433       conftest$ac_exeext conftest.$ac_ext
9434 fi
9435 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9436 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9437 if test $ac_cv_func_shl_load = yes; then
9438
9439 cat >>confdefs.h <<\_ACEOF
9440 #define HAVE_SHL_LOAD 1
9441 _ACEOF
9442
9443 else
9444   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9445 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9446 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9447   echo $ECHO_N "(cached) $ECHO_C" >&6
9448 else
9449   ac_check_lib_save_LIBS=$LIBS
9450 LIBS="-ldld  $LIBS"
9451 cat >conftest.$ac_ext <<_ACEOF
9452 /* confdefs.h.  */
9453 _ACEOF
9454 cat confdefs.h >>conftest.$ac_ext
9455 cat >>conftest.$ac_ext <<_ACEOF
9456 /* end confdefs.h.  */
9457
9458 /* Override any GCC internal prototype to avoid an error.
9459    Use char because int might match the return type of a GCC
9460    builtin and then its argument prototype would still apply.  */
9461 #ifdef __cplusplus
9462 extern "C"
9463 #endif
9464 char shl_load ();
9465 int
9466 main ()
9467 {
9468 return shl_load ();
9469   ;
9470   return 0;
9471 }
9472 _ACEOF
9473 rm -f conftest.$ac_objext conftest$ac_exeext
9474 if { (ac_try="$ac_link"
9475 case "(($ac_try" in
9476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9477   *) ac_try_echo=$ac_try;;
9478 esac
9479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9480   (eval "$ac_link") 2>conftest.er1
9481   ac_status=$?
9482   grep -v '^ *+' conftest.er1 >conftest.err
9483   rm -f conftest.er1
9484   cat conftest.err >&5
9485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486   (exit $ac_status); } &&
9487          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9488   { (case "(($ac_try" in
9489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9490   *) ac_try_echo=$ac_try;;
9491 esac
9492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9493   (eval "$ac_try") 2>&5
9494   ac_status=$?
9495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496   (exit $ac_status); }; } &&
9497          { ac_try='test -s conftest$ac_exeext'
9498   { (case "(($ac_try" in
9499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9500   *) ac_try_echo=$ac_try;;
9501 esac
9502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9503   (eval "$ac_try") 2>&5
9504   ac_status=$?
9505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506   (exit $ac_status); }; }; then
9507   ac_cv_lib_dld_shl_load=yes
9508 else
9509   echo "$as_me: failed program was:" >&5
9510 sed 's/^/| /' conftest.$ac_ext >&5
9511
9512         ac_cv_lib_dld_shl_load=no
9513 fi
9514
9515 rm -f core conftest.err conftest.$ac_objext \
9516       conftest$ac_exeext conftest.$ac_ext
9517 LIBS=$ac_check_lib_save_LIBS
9518 fi
9519 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9520 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9521 if test $ac_cv_lib_dld_shl_load = yes; then
9522
9523 cat >>confdefs.h <<\_ACEOF
9524 #define HAVE_SHL_LOAD 1
9525 _ACEOF
9526
9527         LIBADD_DL="$LIBADD_DL -ldld"
9528 else
9529   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9530 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9531 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9532   echo $ECHO_N "(cached) $ECHO_C" >&6
9533 else
9534   ac_check_lib_save_LIBS=$LIBS
9535 LIBS="-ldl  $LIBS"
9536 cat >conftest.$ac_ext <<_ACEOF
9537 /* confdefs.h.  */
9538 _ACEOF
9539 cat confdefs.h >>conftest.$ac_ext
9540 cat >>conftest.$ac_ext <<_ACEOF
9541 /* end confdefs.h.  */
9542
9543 /* Override any GCC internal prototype to avoid an error.
9544    Use char because int might match the return type of a GCC
9545    builtin and then its argument prototype would still apply.  */
9546 #ifdef __cplusplus
9547 extern "C"
9548 #endif
9549 char dlopen ();
9550 int
9551 main ()
9552 {
9553 return dlopen ();
9554   ;
9555   return 0;
9556 }
9557 _ACEOF
9558 rm -f conftest.$ac_objext conftest$ac_exeext
9559 if { (ac_try="$ac_link"
9560 case "(($ac_try" in
9561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9562   *) ac_try_echo=$ac_try;;
9563 esac
9564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9565   (eval "$ac_link") 2>conftest.er1
9566   ac_status=$?
9567   grep -v '^ *+' conftest.er1 >conftest.err
9568   rm -f conftest.er1
9569   cat conftest.err >&5
9570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571   (exit $ac_status); } &&
9572          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9573   { (case "(($ac_try" in
9574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575   *) ac_try_echo=$ac_try;;
9576 esac
9577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9578   (eval "$ac_try") 2>&5
9579   ac_status=$?
9580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581   (exit $ac_status); }; } &&
9582          { ac_try='test -s conftest$ac_exeext'
9583   { (case "(($ac_try" in
9584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9585   *) ac_try_echo=$ac_try;;
9586 esac
9587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9588   (eval "$ac_try") 2>&5
9589   ac_status=$?
9590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591   (exit $ac_status); }; }; then
9592   ac_cv_lib_dl_dlopen=yes
9593 else
9594   echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9596
9597         ac_cv_lib_dl_dlopen=no
9598 fi
9599
9600 rm -f core conftest.err conftest.$ac_objext \
9601       conftest$ac_exeext conftest.$ac_ext
9602 LIBS=$ac_check_lib_save_LIBS
9603 fi
9604 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9605 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9606 if test $ac_cv_lib_dl_dlopen = yes; then
9607
9608 cat >>confdefs.h <<\_ACEOF
9609 #define HAVE_LIBDL 1
9610 _ACEOF
9611
9612                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9613 else
9614   cat >conftest.$ac_ext <<_ACEOF
9615 /* confdefs.h.  */
9616 _ACEOF
9617 cat confdefs.h >>conftest.$ac_ext
9618 cat >>conftest.$ac_ext <<_ACEOF
9619 /* end confdefs.h.  */
9620 #if HAVE_DLFCN_H
9621 #  include <dlfcn.h>
9622 #endif
9623
9624 int
9625 main ()
9626 {
9627 dlopen(0, 0);
9628   ;
9629   return 0;
9630 }
9631 _ACEOF
9632 rm -f conftest.$ac_objext conftest$ac_exeext
9633 if { (ac_try="$ac_link"
9634 case "(($ac_try" in
9635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9636   *) ac_try_echo=$ac_try;;
9637 esac
9638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9639   (eval "$ac_link") 2>conftest.er1
9640   ac_status=$?
9641   grep -v '^ *+' conftest.er1 >conftest.err
9642   rm -f conftest.er1
9643   cat conftest.err >&5
9644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645   (exit $ac_status); } &&
9646          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9647   { (case "(($ac_try" in
9648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9649   *) ac_try_echo=$ac_try;;
9650 esac
9651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9652   (eval "$ac_try") 2>&5
9653   ac_status=$?
9654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655   (exit $ac_status); }; } &&
9656          { ac_try='test -s conftest$ac_exeext'
9657   { (case "(($ac_try" in
9658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9659   *) ac_try_echo=$ac_try;;
9660 esac
9661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9662   (eval "$ac_try") 2>&5
9663   ac_status=$?
9664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665   (exit $ac_status); }; }; then
9666
9667 cat >>confdefs.h <<\_ACEOF
9668 #define HAVE_LIBDL 1
9669 _ACEOF
9670  libltdl_cv_func_dlopen="yes"
9671 else
9672   echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9674
9675         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9676 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9677 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9678   echo $ECHO_N "(cached) $ECHO_C" >&6
9679 else
9680   ac_check_lib_save_LIBS=$LIBS
9681 LIBS="-lsvld  $LIBS"
9682 cat >conftest.$ac_ext <<_ACEOF
9683 /* confdefs.h.  */
9684 _ACEOF
9685 cat confdefs.h >>conftest.$ac_ext
9686 cat >>conftest.$ac_ext <<_ACEOF
9687 /* end confdefs.h.  */
9688
9689 /* Override any GCC internal prototype to avoid an error.
9690    Use char because int might match the return type of a GCC
9691    builtin and then its argument prototype would still apply.  */
9692 #ifdef __cplusplus
9693 extern "C"
9694 #endif
9695 char dlopen ();
9696 int
9697 main ()
9698 {
9699 return dlopen ();
9700   ;
9701   return 0;
9702 }
9703 _ACEOF
9704 rm -f conftest.$ac_objext conftest$ac_exeext
9705 if { (ac_try="$ac_link"
9706 case "(($ac_try" in
9707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9708   *) ac_try_echo=$ac_try;;
9709 esac
9710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9711   (eval "$ac_link") 2>conftest.er1
9712   ac_status=$?
9713   grep -v '^ *+' conftest.er1 >conftest.err
9714   rm -f conftest.er1
9715   cat conftest.err >&5
9716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717   (exit $ac_status); } &&
9718          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9719   { (case "(($ac_try" in
9720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721   *) ac_try_echo=$ac_try;;
9722 esac
9723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9724   (eval "$ac_try") 2>&5
9725   ac_status=$?
9726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727   (exit $ac_status); }; } &&
9728          { ac_try='test -s conftest$ac_exeext'
9729   { (case "(($ac_try" in
9730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9731   *) ac_try_echo=$ac_try;;
9732 esac
9733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9734   (eval "$ac_try") 2>&5
9735   ac_status=$?
9736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737   (exit $ac_status); }; }; then
9738   ac_cv_lib_svld_dlopen=yes
9739 else
9740   echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9742
9743         ac_cv_lib_svld_dlopen=no
9744 fi
9745
9746 rm -f core conftest.err conftest.$ac_objext \
9747       conftest$ac_exeext conftest.$ac_ext
9748 LIBS=$ac_check_lib_save_LIBS
9749 fi
9750 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9751 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9752 if test $ac_cv_lib_svld_dlopen = yes; then
9753
9754 cat >>confdefs.h <<\_ACEOF
9755 #define HAVE_LIBDL 1
9756 _ACEOF
9757
9758                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9759 else
9760   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9761 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9762 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9763   echo $ECHO_N "(cached) $ECHO_C" >&6
9764 else
9765   ac_check_lib_save_LIBS=$LIBS
9766 LIBS="-ldld  $LIBS"
9767 cat >conftest.$ac_ext <<_ACEOF
9768 /* confdefs.h.  */
9769 _ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h.  */
9773
9774 /* Override any GCC internal prototype to avoid an error.
9775    Use char because int might match the return type of a GCC
9776    builtin and then its argument prototype would still apply.  */
9777 #ifdef __cplusplus
9778 extern "C"
9779 #endif
9780 char dld_link ();
9781 int
9782 main ()
9783 {
9784 return dld_link ();
9785   ;
9786   return 0;
9787 }
9788 _ACEOF
9789 rm -f conftest.$ac_objext conftest$ac_exeext
9790 if { (ac_try="$ac_link"
9791 case "(($ac_try" in
9792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793   *) ac_try_echo=$ac_try;;
9794 esac
9795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9796   (eval "$ac_link") 2>conftest.er1
9797   ac_status=$?
9798   grep -v '^ *+' conftest.er1 >conftest.err
9799   rm -f conftest.er1
9800   cat conftest.err >&5
9801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802   (exit $ac_status); } &&
9803          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9804   { (case "(($ac_try" in
9805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9806   *) ac_try_echo=$ac_try;;
9807 esac
9808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9809   (eval "$ac_try") 2>&5
9810   ac_status=$?
9811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812   (exit $ac_status); }; } &&
9813          { ac_try='test -s conftest$ac_exeext'
9814   { (case "(($ac_try" in
9815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816   *) ac_try_echo=$ac_try;;
9817 esac
9818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819   (eval "$ac_try") 2>&5
9820   ac_status=$?
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); }; }; then
9823   ac_cv_lib_dld_dld_link=yes
9824 else
9825   echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.$ac_ext >&5
9827
9828         ac_cv_lib_dld_dld_link=no
9829 fi
9830
9831 rm -f core conftest.err conftest.$ac_objext \
9832       conftest$ac_exeext conftest.$ac_ext
9833 LIBS=$ac_check_lib_save_LIBS
9834 fi
9835 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9836 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9837 if test $ac_cv_lib_dld_dld_link = yes; then
9838
9839 cat >>confdefs.h <<\_ACEOF
9840 #define HAVE_DLD 1
9841 _ACEOF
9842
9843                 LIBADD_DL="$LIBADD_DL -ldld"
9844 else
9845   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9846 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9847 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9848   echo $ECHO_N "(cached) $ECHO_C" >&6
9849 else
9850   cat >conftest.$ac_ext <<_ACEOF
9851 /* confdefs.h.  */
9852 _ACEOF
9853 cat confdefs.h >>conftest.$ac_ext
9854 cat >>conftest.$ac_ext <<_ACEOF
9855 /* end confdefs.h.  */
9856 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9858 #define _dyld_func_lookup innocuous__dyld_func_lookup
9859
9860 /* System header to define __stub macros and hopefully few prototypes,
9861     which can conflict with char _dyld_func_lookup (); below.
9862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9863     <limits.h> exists even on freestanding compilers.  */
9864
9865 #ifdef __STDC__
9866 # include <limits.h>
9867 #else
9868 # include <assert.h>
9869 #endif
9870
9871 #undef _dyld_func_lookup
9872
9873 /* Override any GCC internal prototype to avoid an error.
9874    Use char because int might match the return type of a GCC
9875    builtin and then its argument prototype would still apply.  */
9876 #ifdef __cplusplus
9877 extern "C"
9878 #endif
9879 char _dyld_func_lookup ();
9880 /* The GNU C library defines this for functions which it implements
9881     to always fail with ENOSYS.  Some functions are actually named
9882     something starting with __ and the normal name is an alias.  */
9883 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9884 choke me
9885 #endif
9886
9887 int
9888 main ()
9889 {
9890 return _dyld_func_lookup ();
9891   ;
9892   return 0;
9893 }
9894 _ACEOF
9895 rm -f conftest.$ac_objext conftest$ac_exeext
9896 if { (ac_try="$ac_link"
9897 case "(($ac_try" in
9898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899   *) ac_try_echo=$ac_try;;
9900 esac
9901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902   (eval "$ac_link") 2>conftest.er1
9903   ac_status=$?
9904   grep -v '^ *+' conftest.er1 >conftest.err
9905   rm -f conftest.er1
9906   cat conftest.err >&5
9907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908   (exit $ac_status); } &&
9909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9910   { (case "(($ac_try" in
9911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9912   *) ac_try_echo=$ac_try;;
9913 esac
9914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9915   (eval "$ac_try") 2>&5
9916   ac_status=$?
9917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918   (exit $ac_status); }; } &&
9919          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9929   ac_cv_func__dyld_func_lookup=yes
9930 else
9931   echo "$as_me: failed program was:" >&5
9932 sed 's/^/| /' conftest.$ac_ext >&5
9933
9934         ac_cv_func__dyld_func_lookup=no
9935 fi
9936
9937 rm -f core conftest.err conftest.$ac_objext \
9938       conftest$ac_exeext conftest.$ac_ext
9939 fi
9940 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9941 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
9942 if test $ac_cv_func__dyld_func_lookup = yes; then
9943
9944 cat >>confdefs.h <<\_ACEOF
9945 #define HAVE_DYLD 1
9946 _ACEOF
9947
9948 fi
9949
9950
9951 fi
9952
9953
9954 fi
9955
9956
9957 fi
9958
9959 rm -f core conftest.err conftest.$ac_objext \
9960       conftest$ac_exeext conftest.$ac_ext
9961
9962 fi
9963
9964
9965 fi
9966
9967
9968 fi
9969
9970
9971 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
9972 then
9973   lt_save_LIBS="$LIBS"
9974   LIBS="$LIBS $LIBADD_DL"
9975
9976 for ac_func in dlerror
9977 do
9978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9982   echo $ECHO_N "(cached) $ECHO_C" >&6
9983 else
9984   cat >conftest.$ac_ext <<_ACEOF
9985 /* confdefs.h.  */
9986 _ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h.  */
9990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9991    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9992 #define $ac_func innocuous_$ac_func
9993
9994 /* System header to define __stub macros and hopefully few prototypes,
9995     which can conflict with char $ac_func (); below.
9996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9997     <limits.h> exists even on freestanding compilers.  */
9998
9999 #ifdef __STDC__
10000 # include <limits.h>
10001 #else
10002 # include <assert.h>
10003 #endif
10004
10005 #undef $ac_func
10006
10007 /* Override any GCC internal prototype to avoid an error.
10008    Use char because int might match the return type of a GCC
10009    builtin and then its argument prototype would still apply.  */
10010 #ifdef __cplusplus
10011 extern "C"
10012 #endif
10013 char $ac_func ();
10014 /* The GNU C library defines this for functions which it implements
10015     to always fail with ENOSYS.  Some functions are actually named
10016     something starting with __ and the normal name is an alias.  */
10017 #if defined __stub_$ac_func || defined __stub___$ac_func
10018 choke me
10019 #endif
10020
10021 int
10022 main ()
10023 {
10024 return $ac_func ();
10025   ;
10026   return 0;
10027 }
10028 _ACEOF
10029 rm -f conftest.$ac_objext conftest$ac_exeext
10030 if { (ac_try="$ac_link"
10031 case "(($ac_try" in
10032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10033   *) ac_try_echo=$ac_try;;
10034 esac
10035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10036   (eval "$ac_link") 2>conftest.er1
10037   ac_status=$?
10038   grep -v '^ *+' conftest.er1 >conftest.err
10039   rm -f conftest.er1
10040   cat conftest.err >&5
10041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042   (exit $ac_status); } &&
10043          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10044   { (case "(($ac_try" in
10045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046   *) ac_try_echo=$ac_try;;
10047 esac
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049   (eval "$ac_try") 2>&5
10050   ac_status=$?
10051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052   (exit $ac_status); }; } &&
10053          { ac_try='test -s conftest$ac_exeext'
10054   { (case "(($ac_try" in
10055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056   *) ac_try_echo=$ac_try;;
10057 esac
10058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059   (eval "$ac_try") 2>&5
10060   ac_status=$?
10061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062   (exit $ac_status); }; }; then
10063   eval "$as_ac_var=yes"
10064 else
10065   echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10067
10068         eval "$as_ac_var=no"
10069 fi
10070
10071 rm -f core conftest.err conftest.$ac_objext \
10072       conftest$ac_exeext conftest.$ac_ext
10073 fi
10074 ac_res=`eval echo '${'$as_ac_var'}'`
10075                { echo "$as_me:$LINENO: result: $ac_res" >&5
10076 echo "${ECHO_T}$ac_res" >&6; }
10077 if test `eval echo '${'$as_ac_var'}'` = yes; then
10078   cat >>confdefs.h <<_ACEOF
10079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10080 _ACEOF
10081
10082 fi
10083 done
10084
10085   LIBS="$lt_save_LIBS"
10086 fi
10087 ac_ext=c
10088 ac_cpp='$CPP $CPPFLAGS'
10089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10092
10093
10094
10095 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10096 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10097 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10098   echo $ECHO_N "(cached) $ECHO_C" >&6
10099 else
10100   ac_cv_sys_symbol_underscore=no
10101   cat > conftest.$ac_ext <<EOF
10102 void nm_test_func(){}
10103 int main(){nm_test_func;return 0;}
10104 EOF
10105   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10106   (eval $ac_compile) 2>&5
10107   ac_status=$?
10108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109   (exit $ac_status); }; then
10110     # Now try to grab the symbols.
10111     ac_nlist=conftest.nm
10112     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10113   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10114   ac_status=$?
10115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116   (exit $ac_status); } && test -s "$ac_nlist"; then
10117       # See whether the symbols have a leading underscore.
10118       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10119         ac_cv_sys_symbol_underscore=yes
10120       else
10121         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10122           :
10123         else
10124           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10125         fi
10126       fi
10127     else
10128       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10129     fi
10130   else
10131     echo "configure: failed program was:" >&5
10132     cat conftest.c >&5
10133   fi
10134   rm -rf conftest*
10135
10136 fi
10137 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10138 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10139
10140
10141 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10142   if test x"$libltdl_cv_func_dlopen" = xyes ||
10143      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10144         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10145 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10146 if test "${libltdl_cv_need_uscore+set}" = set; then
10147   echo $ECHO_N "(cached) $ECHO_C" >&6
10148 else
10149   libltdl_cv_need_uscore=unknown
10150           save_LIBS="$LIBS"
10151           LIBS="$LIBS $LIBADD_DL"
10152           if test "$cross_compiling" = yes; then :
10153   libltdl_cv_need_uscore=cross
10154 else
10155   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10156   lt_status=$lt_dlunknown
10157   cat > conftest.$ac_ext <<EOF
10158 #line 10158 "configure"
10159 #include "confdefs.h"
10160
10161 #if HAVE_DLFCN_H
10162 #include <dlfcn.h>
10163 #endif
10164
10165 #include <stdio.h>
10166
10167 #ifdef RTLD_GLOBAL
10168 #  define LT_DLGLOBAL           RTLD_GLOBAL
10169 #else
10170 #  ifdef DL_GLOBAL
10171 #    define LT_DLGLOBAL         DL_GLOBAL
10172 #  else
10173 #    define LT_DLGLOBAL         0
10174 #  endif
10175 #endif
10176
10177 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10178    find out it does not work in some platform. */
10179 #ifndef LT_DLLAZY_OR_NOW
10180 #  ifdef RTLD_LAZY
10181 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10182 #  else
10183 #    ifdef DL_LAZY
10184 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10185 #    else
10186 #      ifdef RTLD_NOW
10187 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10188 #      else
10189 #        ifdef DL_NOW
10190 #          define LT_DLLAZY_OR_NOW      DL_NOW
10191 #        else
10192 #          define LT_DLLAZY_OR_NOW      0
10193 #        endif
10194 #      endif
10195 #    endif
10196 #  endif
10197 #endif
10198
10199 #ifdef __cplusplus
10200 extern "C" void exit (int);
10201 #endif
10202
10203 void fnord() { int i=42;}
10204 int main ()
10205 {
10206   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10207   int status = $lt_dlunknown;
10208
10209   if (self)
10210     {
10211       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10212       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10213       /* dlclose (self); */
10214     }
10215   else
10216     puts (dlerror ());
10217
10218     exit (status);
10219 }
10220 EOF
10221   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10222   (eval $ac_link) 2>&5
10223   ac_status=$?
10224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10226     (./conftest; exit; ) >&5 2>/dev/null
10227     lt_status=$?
10228     case x$lt_status in
10229       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10230       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10231       x$lt_dlunknown|x*)  ;;
10232     esac
10233   else :
10234     # compilation failed
10235
10236   fi
10237 fi
10238 rm -fr conftest*
10239
10240           LIBS="$save_LIBS"
10241
10242 fi
10243 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10244 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10245   fi
10246 fi
10247
10248 if test x"$libltdl_cv_need_uscore" = xyes; then
10249
10250 cat >>confdefs.h <<\_ACEOF
10251 #define NEED_USCORE 1
10252 _ACEOF
10253
10254 fi
10255
10256
10257 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10258 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10259 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10260   echo $ECHO_N "(cached) $ECHO_C" >&6
10261 else
10262   # PORTME does your system automatically load deplibs for dlopen?
10263   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10264   # For now, we just catch OSes we know something about -- in the
10265   # future, we'll try test this programmatically.
10266   libltdl_cv_sys_dlopen_deplibs=unknown
10267   case "$host_os" in
10268   aix3*|aix4.1.*|aix4.2.*)
10269     # Unknown whether this is true for these versions of AIX, but
10270     # we want this `case' here to explicitly catch those versions.
10271     libltdl_cv_sys_dlopen_deplibs=unknown
10272     ;;
10273   aix[45]*)
10274     libltdl_cv_sys_dlopen_deplibs=yes
10275     ;;
10276   darwin*)
10277     # Assuming the user has installed a libdl from somewhere, this is true
10278     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10279     libltdl_cv_sys_dlopen_deplibs=yes
10280     ;;
10281   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10282     # GNU and its variants, using gnu ld.so (Glibc)
10283     libltdl_cv_sys_dlopen_deplibs=yes
10284     ;;
10285   hpux10*|hpux11*)
10286     libltdl_cv_sys_dlopen_deplibs=yes
10287     ;;
10288   interix*)
10289     libltdl_cv_sys_dlopen_deplibs=yes
10290     ;;
10291   irix[12345]*|irix6.[01]*)
10292     # Catch all versions of IRIX before 6.2, and indicate that we don't
10293     # know how it worked for any of those versions.
10294     libltdl_cv_sys_dlopen_deplibs=unknown
10295     ;;
10296   irix*)
10297     # The case above catches anything before 6.2, and it's known that
10298     # at 6.2 and later dlopen does load deplibs.
10299     libltdl_cv_sys_dlopen_deplibs=yes
10300     ;;
10301   netbsd*)
10302     libltdl_cv_sys_dlopen_deplibs=yes
10303     ;;
10304   openbsd*)
10305     libltdl_cv_sys_dlopen_deplibs=yes
10306     ;;
10307   osf[1234]*)
10308     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10309     # it did *not* use an RPATH in a shared library to find objects the
10310     # library depends on, so we explicitly say `no'.
10311     libltdl_cv_sys_dlopen_deplibs=no
10312     ;;
10313   osf5.0|osf5.0a|osf5.1)
10314     # dlopen *does* load deplibs and with the right loader patch applied
10315     # it even uses RPATH in a shared library to search for shared objects
10316     # that the library depends on, but there's no easy way to know if that
10317     # patch is installed.  Since this is the case, all we can really
10318     # say is unknown -- it depends on the patch being installed.  If
10319     # it is, this changes to `yes'.  Without it, it would be `no'.
10320     libltdl_cv_sys_dlopen_deplibs=unknown
10321     ;;
10322   osf*)
10323     # the two cases above should catch all versions of osf <= 5.1.  Read
10324     # the comments above for what we know about them.
10325     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10326     # is used to find them so we can finally say `yes'.
10327     libltdl_cv_sys_dlopen_deplibs=yes
10328     ;;
10329   solaris*)
10330     libltdl_cv_sys_dlopen_deplibs=yes
10331     ;;
10332   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10333     libltdl_cv_sys_dlopen_deplibs=yes
10334     ;;
10335   esac
10336
10337 fi
10338 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10339 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10340 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10341
10342 cat >>confdefs.h <<\_ACEOF
10343 #define LTDL_DLOPEN_DEPLIBS 1
10344 _ACEOF
10345
10346 fi
10347
10348
10349 for ac_header in argz.h
10350 do
10351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10353   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10356   echo $ECHO_N "(cached) $ECHO_C" >&6
10357 fi
10358 ac_res=`eval echo '${'$as_ac_Header'}'`
10359                { echo "$as_me:$LINENO: result: $ac_res" >&5
10360 echo "${ECHO_T}$ac_res" >&6; }
10361 else
10362   # Is the header compilable?
10363 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10365 cat >conftest.$ac_ext <<_ACEOF
10366 /* confdefs.h.  */
10367 _ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h.  */
10371 $ac_includes_default
10372 #include <$ac_header>
10373 _ACEOF
10374 rm -f conftest.$ac_objext
10375 if { (ac_try="$ac_compile"
10376 case "(($ac_try" in
10377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10378   *) ac_try_echo=$ac_try;;
10379 esac
10380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10381   (eval "$ac_compile") 2>conftest.er1
10382   ac_status=$?
10383   grep -v '^ *+' conftest.er1 >conftest.err
10384   rm -f conftest.er1
10385   cat conftest.err >&5
10386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387   (exit $ac_status); } &&
10388          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10389   { (case "(($ac_try" in
10390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10391   *) ac_try_echo=$ac_try;;
10392 esac
10393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394   (eval "$ac_try") 2>&5
10395   ac_status=$?
10396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397   (exit $ac_status); }; } &&
10398          { ac_try='test -s conftest.$ac_objext'
10399   { (case "(($ac_try" in
10400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10401   *) ac_try_echo=$ac_try;;
10402 esac
10403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10404   (eval "$ac_try") 2>&5
10405   ac_status=$?
10406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407   (exit $ac_status); }; }; then
10408   ac_header_compiler=yes
10409 else
10410   echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10412
10413         ac_header_compiler=no
10414 fi
10415
10416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10417 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10418 echo "${ECHO_T}$ac_header_compiler" >&6; }
10419
10420 # Is the header present?
10421 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10423 cat >conftest.$ac_ext <<_ACEOF
10424 /* confdefs.h.  */
10425 _ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h.  */
10429 #include <$ac_header>
10430 _ACEOF
10431 if { (ac_try="$ac_cpp conftest.$ac_ext"
10432 case "(($ac_try" in
10433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434   *) ac_try_echo=$ac_try;;
10435 esac
10436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10438   ac_status=$?
10439   grep -v '^ *+' conftest.er1 >conftest.err
10440   rm -f conftest.er1
10441   cat conftest.err >&5
10442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443   (exit $ac_status); } >/dev/null; then
10444   if test -s conftest.err; then
10445     ac_cpp_err=$ac_c_preproc_warn_flag
10446     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10447   else
10448     ac_cpp_err=
10449   fi
10450 else
10451   ac_cpp_err=yes
10452 fi
10453 if test -z "$ac_cpp_err"; then
10454   ac_header_preproc=yes
10455 else
10456   echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.$ac_ext >&5
10458
10459   ac_header_preproc=no
10460 fi
10461
10462 rm -f conftest.err conftest.$ac_ext
10463 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10464 echo "${ECHO_T}$ac_header_preproc" >&6; }
10465
10466 # So?  What about this header?
10467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10468   yes:no: )
10469     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10471     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10472 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10473     ac_header_preproc=yes
10474     ;;
10475   no:yes:* )
10476     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10478     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10479 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10480     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10481 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10482     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10483 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10484     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10485 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10486     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10487 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10488     ( cat <<\_ASBOX
10489 ## ------------------------------------ ##
10490 ## Report this to http://llvm.org/bugs/ ##
10491 ## ------------------------------------ ##
10492 _ASBOX
10493      ) | sed "s/^/$as_me: WARNING:     /" >&2
10494     ;;
10495 esac
10496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10499   echo $ECHO_N "(cached) $ECHO_C" >&6
10500 else
10501   eval "$as_ac_Header=\$ac_header_preproc"
10502 fi
10503 ac_res=`eval echo '${'$as_ac_Header'}'`
10504                { echo "$as_me:$LINENO: result: $ac_res" >&5
10505 echo "${ECHO_T}$ac_res" >&6; }
10506
10507 fi
10508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10509   cat >>confdefs.h <<_ACEOF
10510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10511 _ACEOF
10512
10513 fi
10514
10515 done
10516
10517
10518 { echo "$as_me:$LINENO: checking for error_t" >&5
10519 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10520 if test "${ac_cv_type_error_t+set}" = set; then
10521   echo $ECHO_N "(cached) $ECHO_C" >&6
10522 else
10523   cat >conftest.$ac_ext <<_ACEOF
10524 /* confdefs.h.  */
10525 _ACEOF
10526 cat confdefs.h >>conftest.$ac_ext
10527 cat >>conftest.$ac_ext <<_ACEOF
10528 /* end confdefs.h.  */
10529 #if HAVE_ARGZ_H
10530 #  include <argz.h>
10531 #endif
10532
10533 typedef error_t ac__type_new_;
10534 int
10535 main ()
10536 {
10537 if ((ac__type_new_ *) 0)
10538   return 0;
10539 if (sizeof (ac__type_new_))
10540   return 0;
10541   ;
10542   return 0;
10543 }
10544 _ACEOF
10545 rm -f conftest.$ac_objext
10546 if { (ac_try="$ac_compile"
10547 case "(($ac_try" in
10548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549   *) ac_try_echo=$ac_try;;
10550 esac
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552   (eval "$ac_compile") 2>conftest.er1
10553   ac_status=$?
10554   grep -v '^ *+' conftest.er1 >conftest.err
10555   rm -f conftest.er1
10556   cat conftest.err >&5
10557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558   (exit $ac_status); } &&
10559          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10560   { (case "(($ac_try" in
10561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562   *) ac_try_echo=$ac_try;;
10563 esac
10564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10565   (eval "$ac_try") 2>&5
10566   ac_status=$?
10567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568   (exit $ac_status); }; } &&
10569          { ac_try='test -s conftest.$ac_objext'
10570   { (case "(($ac_try" in
10571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572   *) ac_try_echo=$ac_try;;
10573 esac
10574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10575   (eval "$ac_try") 2>&5
10576   ac_status=$?
10577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578   (exit $ac_status); }; }; then
10579   ac_cv_type_error_t=yes
10580 else
10581   echo "$as_me: failed program was:" >&5
10582 sed 's/^/| /' conftest.$ac_ext >&5
10583
10584         ac_cv_type_error_t=no
10585 fi
10586
10587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10588 fi
10589 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10590 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10591 if test $ac_cv_type_error_t = yes; then
10592
10593 cat >>confdefs.h <<_ACEOF
10594 #define HAVE_ERROR_T 1
10595 _ACEOF
10596
10597
10598 else
10599
10600 cat >>confdefs.h <<\_ACEOF
10601 #define error_t int
10602 _ACEOF
10603
10604 fi
10605
10606
10607
10608
10609
10610
10611
10612 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10613 do
10614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10615 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10617 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10618   echo $ECHO_N "(cached) $ECHO_C" >&6
10619 else
10620   cat >conftest.$ac_ext <<_ACEOF
10621 /* confdefs.h.  */
10622 _ACEOF
10623 cat confdefs.h >>conftest.$ac_ext
10624 cat >>conftest.$ac_ext <<_ACEOF
10625 /* end confdefs.h.  */
10626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10627    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10628 #define $ac_func innocuous_$ac_func
10629
10630 /* System header to define __stub macros and hopefully few prototypes,
10631     which can conflict with char $ac_func (); below.
10632     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10633     <limits.h> exists even on freestanding compilers.  */
10634
10635 #ifdef __STDC__
10636 # include <limits.h>
10637 #else
10638 # include <assert.h>
10639 #endif
10640
10641 #undef $ac_func
10642
10643 /* Override any GCC internal prototype to avoid an error.
10644    Use char because int might match the return type of a GCC
10645    builtin and then its argument prototype would still apply.  */
10646 #ifdef __cplusplus
10647 extern "C"
10648 #endif
10649 char $ac_func ();
10650 /* The GNU C library defines this for functions which it implements
10651     to always fail with ENOSYS.  Some functions are actually named
10652     something starting with __ and the normal name is an alias.  */
10653 #if defined __stub_$ac_func || defined __stub___$ac_func
10654 choke me
10655 #endif
10656
10657 int
10658 main ()
10659 {
10660 return $ac_func ();
10661   ;
10662   return 0;
10663 }
10664 _ACEOF
10665 rm -f conftest.$ac_objext conftest$ac_exeext
10666 if { (ac_try="$ac_link"
10667 case "(($ac_try" in
10668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669   *) ac_try_echo=$ac_try;;
10670 esac
10671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10672   (eval "$ac_link") 2>conftest.er1
10673   ac_status=$?
10674   grep -v '^ *+' conftest.er1 >conftest.err
10675   rm -f conftest.er1
10676   cat conftest.err >&5
10677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678   (exit $ac_status); } &&
10679          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10680   { (case "(($ac_try" in
10681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682   *) ac_try_echo=$ac_try;;
10683 esac
10684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10685   (eval "$ac_try") 2>&5
10686   ac_status=$?
10687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688   (exit $ac_status); }; } &&
10689          { ac_try='test -s conftest$ac_exeext'
10690   { (case "(($ac_try" in
10691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692   *) ac_try_echo=$ac_try;;
10693 esac
10694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695   (eval "$ac_try") 2>&5
10696   ac_status=$?
10697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698   (exit $ac_status); }; }; then
10699   eval "$as_ac_var=yes"
10700 else
10701   echo "$as_me: failed program was:" >&5
10702 sed 's/^/| /' conftest.$ac_ext >&5
10703
10704         eval "$as_ac_var=no"
10705 fi
10706
10707 rm -f core conftest.err conftest.$ac_objext \
10708       conftest$ac_exeext conftest.$ac_ext
10709 fi
10710 ac_res=`eval echo '${'$as_ac_var'}'`
10711                { echo "$as_me:$LINENO: result: $ac_res" >&5
10712 echo "${ECHO_T}$ac_res" >&6; }
10713 if test `eval echo '${'$as_ac_var'}'` = yes; then
10714   cat >>confdefs.h <<_ACEOF
10715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10716 _ACEOF
10717
10718 fi
10719 done
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10749                   stdio.h unistd.h
10750 do
10751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10753   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10756   echo $ECHO_N "(cached) $ECHO_C" >&6
10757 fi
10758 ac_res=`eval echo '${'$as_ac_Header'}'`
10759                { echo "$as_me:$LINENO: result: $ac_res" >&5
10760 echo "${ECHO_T}$ac_res" >&6; }
10761 else
10762   # Is the header compilable?
10763 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10765 cat >conftest.$ac_ext <<_ACEOF
10766 /* confdefs.h.  */
10767 _ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h.  */
10771 $ac_includes_default
10772 #include <$ac_header>
10773 _ACEOF
10774 rm -f conftest.$ac_objext
10775 if { (ac_try="$ac_compile"
10776 case "(($ac_try" in
10777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778   *) ac_try_echo=$ac_try;;
10779 esac
10780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10781   (eval "$ac_compile") 2>conftest.er1
10782   ac_status=$?
10783   grep -v '^ *+' conftest.er1 >conftest.err
10784   rm -f conftest.er1
10785   cat conftest.err >&5
10786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787   (exit $ac_status); } &&
10788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10789   { (case "(($ac_try" in
10790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791   *) ac_try_echo=$ac_try;;
10792 esac
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794   (eval "$ac_try") 2>&5
10795   ac_status=$?
10796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797   (exit $ac_status); }; } &&
10798          { ac_try='test -s conftest.$ac_objext'
10799   { (case "(($ac_try" in
10800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10801   *) ac_try_echo=$ac_try;;
10802 esac
10803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10804   (eval "$ac_try") 2>&5
10805   ac_status=$?
10806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807   (exit $ac_status); }; }; then
10808   ac_header_compiler=yes
10809 else
10810   echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10812
10813         ac_header_compiler=no
10814 fi
10815
10816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10817 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10818 echo "${ECHO_T}$ac_header_compiler" >&6; }
10819
10820 # Is the header present?
10821 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10823 cat >conftest.$ac_ext <<_ACEOF
10824 /* confdefs.h.  */
10825 _ACEOF
10826 cat confdefs.h >>conftest.$ac_ext
10827 cat >>conftest.$ac_ext <<_ACEOF
10828 /* end confdefs.h.  */
10829 #include <$ac_header>
10830 _ACEOF
10831 if { (ac_try="$ac_cpp conftest.$ac_ext"
10832 case "(($ac_try" in
10833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10834   *) ac_try_echo=$ac_try;;
10835 esac
10836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10837   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10838   ac_status=$?
10839   grep -v '^ *+' conftest.er1 >conftest.err
10840   rm -f conftest.er1
10841   cat conftest.err >&5
10842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843   (exit $ac_status); } >/dev/null; then
10844   if test -s conftest.err; then
10845     ac_cpp_err=$ac_c_preproc_warn_flag
10846     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10847   else
10848     ac_cpp_err=
10849   fi
10850 else
10851   ac_cpp_err=yes
10852 fi
10853 if test -z "$ac_cpp_err"; then
10854   ac_header_preproc=yes
10855 else
10856   echo "$as_me: failed program was:" >&5
10857 sed 's/^/| /' conftest.$ac_ext >&5
10858
10859   ac_header_preproc=no
10860 fi
10861
10862 rm -f conftest.err conftest.$ac_ext
10863 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10864 echo "${ECHO_T}$ac_header_preproc" >&6; }
10865
10866 # So?  What about this header?
10867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10868   yes:no: )
10869     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10871     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10872 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10873     ac_header_preproc=yes
10874     ;;
10875   no:yes:* )
10876     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10878     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10879 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10880     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10881 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10882     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10883 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10884     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10886     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10887 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10888     ( cat <<\_ASBOX
10889 ## ------------------------------------ ##
10890 ## Report this to http://llvm.org/bugs/ ##
10891 ## ------------------------------------ ##
10892 _ASBOX
10893      ) | sed "s/^/$as_me: WARNING:     /" >&2
10894     ;;
10895 esac
10896 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10899   echo $ECHO_N "(cached) $ECHO_C" >&6
10900 else
10901   eval "$as_ac_Header=\$ac_header_preproc"
10902 fi
10903 ac_res=`eval echo '${'$as_ac_Header'}'`
10904                { echo "$as_me:$LINENO: result: $ac_res" >&5
10905 echo "${ECHO_T}$ac_res" >&6; }
10906
10907 fi
10908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10909   cat >>confdefs.h <<_ACEOF
10910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10911 _ACEOF
10912
10913 fi
10914
10915 done
10916
10917
10918
10919
10920
10921 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10922 do
10923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10925   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10928   echo $ECHO_N "(cached) $ECHO_C" >&6
10929 fi
10930 ac_res=`eval echo '${'$as_ac_Header'}'`
10931                { echo "$as_me:$LINENO: result: $ac_res" >&5
10932 echo "${ECHO_T}$ac_res" >&6; }
10933 else
10934   # Is the header compilable?
10935 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10937 cat >conftest.$ac_ext <<_ACEOF
10938 /* confdefs.h.  */
10939 _ACEOF
10940 cat confdefs.h >>conftest.$ac_ext
10941 cat >>conftest.$ac_ext <<_ACEOF
10942 /* end confdefs.h.  */
10943 $ac_includes_default
10944 #include <$ac_header>
10945 _ACEOF
10946 rm -f conftest.$ac_objext
10947 if { (ac_try="$ac_compile"
10948 case "(($ac_try" in
10949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950   *) ac_try_echo=$ac_try;;
10951 esac
10952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953   (eval "$ac_compile") 2>conftest.er1
10954   ac_status=$?
10955   grep -v '^ *+' conftest.er1 >conftest.err
10956   rm -f conftest.er1
10957   cat conftest.err >&5
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); } &&
10960          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10961   { (case "(($ac_try" in
10962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963   *) ac_try_echo=$ac_try;;
10964 esac
10965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966   (eval "$ac_try") 2>&5
10967   ac_status=$?
10968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969   (exit $ac_status); }; } &&
10970          { ac_try='test -s conftest.$ac_objext'
10971   { (case "(($ac_try" in
10972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10973   *) ac_try_echo=$ac_try;;
10974 esac
10975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10976   (eval "$ac_try") 2>&5
10977   ac_status=$?
10978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979   (exit $ac_status); }; }; then
10980   ac_header_compiler=yes
10981 else
10982   echo "$as_me: failed program was:" >&5
10983 sed 's/^/| /' conftest.$ac_ext >&5
10984
10985         ac_header_compiler=no
10986 fi
10987
10988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10990 echo "${ECHO_T}$ac_header_compiler" >&6; }
10991
10992 # Is the header present?
10993 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10995 cat >conftest.$ac_ext <<_ACEOF
10996 /* confdefs.h.  */
10997 _ACEOF
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h.  */
11001 #include <$ac_header>
11002 _ACEOF
11003 if { (ac_try="$ac_cpp conftest.$ac_ext"
11004 case "(($ac_try" in
11005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006   *) ac_try_echo=$ac_try;;
11007 esac
11008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11010   ac_status=$?
11011   grep -v '^ *+' conftest.er1 >conftest.err
11012   rm -f conftest.er1
11013   cat conftest.err >&5
11014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015   (exit $ac_status); } >/dev/null; then
11016   if test -s conftest.err; then
11017     ac_cpp_err=$ac_c_preproc_warn_flag
11018     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11019   else
11020     ac_cpp_err=
11021   fi
11022 else
11023   ac_cpp_err=yes
11024 fi
11025 if test -z "$ac_cpp_err"; then
11026   ac_header_preproc=yes
11027 else
11028   echo "$as_me: failed program was:" >&5
11029 sed 's/^/| /' conftest.$ac_ext >&5
11030
11031   ac_header_preproc=no
11032 fi
11033
11034 rm -f conftest.err conftest.$ac_ext
11035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11036 echo "${ECHO_T}$ac_header_preproc" >&6; }
11037
11038 # So?  What about this header?
11039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11040   yes:no: )
11041     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11043     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11045     ac_header_preproc=yes
11046     ;;
11047   no:yes:* )
11048     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11050     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11051 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11052     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11054     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11055 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11056     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11058     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11060     ( cat <<\_ASBOX
11061 ## ------------------------------------ ##
11062 ## Report this to http://llvm.org/bugs/ ##
11063 ## ------------------------------------ ##
11064 _ASBOX
11065      ) | sed "s/^/$as_me: WARNING:     /" >&2
11066     ;;
11067 esac
11068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11071   echo $ECHO_N "(cached) $ECHO_C" >&6
11072 else
11073   eval "$as_ac_Header=\$ac_header_preproc"
11074 fi
11075 ac_res=`eval echo '${'$as_ac_Header'}'`
11076                { echo "$as_me:$LINENO: result: $ac_res" >&5
11077 echo "${ECHO_T}$ac_res" >&6; }
11078
11079 fi
11080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11081   cat >>confdefs.h <<_ACEOF
11082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11083 _ACEOF
11084
11085 fi
11086
11087 done
11088
11089
11090
11091 for ac_header in string.h strings.h
11092 do
11093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11095   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11098   echo $ECHO_N "(cached) $ECHO_C" >&6
11099 fi
11100 ac_res=`eval echo '${'$as_ac_Header'}'`
11101                { echo "$as_me:$LINENO: result: $ac_res" >&5
11102 echo "${ECHO_T}$ac_res" >&6; }
11103 else
11104   # Is the header compilable?
11105 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11107 cat >conftest.$ac_ext <<_ACEOF
11108 /* confdefs.h.  */
11109 _ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h.  */
11113 $ac_includes_default
11114 #include <$ac_header>
11115 _ACEOF
11116 rm -f conftest.$ac_objext
11117 if { (ac_try="$ac_compile"
11118 case "(($ac_try" in
11119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120   *) ac_try_echo=$ac_try;;
11121 esac
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123   (eval "$ac_compile") 2>conftest.er1
11124   ac_status=$?
11125   grep -v '^ *+' conftest.er1 >conftest.err
11126   rm -f conftest.er1
11127   cat conftest.err >&5
11128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129   (exit $ac_status); } &&
11130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11131   { (case "(($ac_try" in
11132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133   *) ac_try_echo=$ac_try;;
11134 esac
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136   (eval "$ac_try") 2>&5
11137   ac_status=$?
11138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139   (exit $ac_status); }; } &&
11140          { ac_try='test -s conftest.$ac_objext'
11141   { (case "(($ac_try" in
11142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143   *) ac_try_echo=$ac_try;;
11144 esac
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146   (eval "$ac_try") 2>&5
11147   ac_status=$?
11148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149   (exit $ac_status); }; }; then
11150   ac_header_compiler=yes
11151 else
11152   echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11154
11155         ac_header_compiler=no
11156 fi
11157
11158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11159 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11160 echo "${ECHO_T}$ac_header_compiler" >&6; }
11161
11162 # Is the header present?
11163 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11165 cat >conftest.$ac_ext <<_ACEOF
11166 /* confdefs.h.  */
11167 _ACEOF
11168 cat confdefs.h >>conftest.$ac_ext
11169 cat >>conftest.$ac_ext <<_ACEOF
11170 /* end confdefs.h.  */
11171 #include <$ac_header>
11172 _ACEOF
11173 if { (ac_try="$ac_cpp conftest.$ac_ext"
11174 case "(($ac_try" in
11175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176   *) ac_try_echo=$ac_try;;
11177 esac
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11180   ac_status=$?
11181   grep -v '^ *+' conftest.er1 >conftest.err
11182   rm -f conftest.er1
11183   cat conftest.err >&5
11184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185   (exit $ac_status); } >/dev/null; then
11186   if test -s conftest.err; then
11187     ac_cpp_err=$ac_c_preproc_warn_flag
11188     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11189   else
11190     ac_cpp_err=
11191   fi
11192 else
11193   ac_cpp_err=yes
11194 fi
11195 if test -z "$ac_cpp_err"; then
11196   ac_header_preproc=yes
11197 else
11198   echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11200
11201   ac_header_preproc=no
11202 fi
11203
11204 rm -f conftest.err conftest.$ac_ext
11205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11206 echo "${ECHO_T}$ac_header_preproc" >&6; }
11207
11208 # So?  What about this header?
11209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11210   yes:no: )
11211     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11213     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11215     ac_header_preproc=yes
11216     ;;
11217   no:yes:* )
11218     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11220     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11221 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11222     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11224     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11225 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11226     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11228     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11230     ( cat <<\_ASBOX
11231 ## ------------------------------------ ##
11232 ## Report this to http://llvm.org/bugs/ ##
11233 ## ------------------------------------ ##
11234 _ASBOX
11235      ) | sed "s/^/$as_me: WARNING:     /" >&2
11236     ;;
11237 esac
11238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11241   echo $ECHO_N "(cached) $ECHO_C" >&6
11242 else
11243   eval "$as_ac_Header=\$ac_header_preproc"
11244 fi
11245 ac_res=`eval echo '${'$as_ac_Header'}'`
11246                { echo "$as_me:$LINENO: result: $ac_res" >&5
11247 echo "${ECHO_T}$ac_res" >&6; }
11248
11249 fi
11250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11251   cat >>confdefs.h <<_ACEOF
11252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11253 _ACEOF
11254  break
11255 fi
11256
11257 done
11258
11259
11260
11261
11262 for ac_func in strchr index
11263 do
11264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11265 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11267 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11268   echo $ECHO_N "(cached) $ECHO_C" >&6
11269 else
11270   cat >conftest.$ac_ext <<_ACEOF
11271 /* confdefs.h.  */
11272 _ACEOF
11273 cat confdefs.h >>conftest.$ac_ext
11274 cat >>conftest.$ac_ext <<_ACEOF
11275 /* end confdefs.h.  */
11276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11277    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11278 #define $ac_func innocuous_$ac_func
11279
11280 /* System header to define __stub macros and hopefully few prototypes,
11281     which can conflict with char $ac_func (); below.
11282     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11283     <limits.h> exists even on freestanding compilers.  */
11284
11285 #ifdef __STDC__
11286 # include <limits.h>
11287 #else
11288 # include <assert.h>
11289 #endif
11290
11291 #undef $ac_func
11292
11293 /* Override any GCC internal prototype to avoid an error.
11294    Use char because int might match the return type of a GCC
11295    builtin and then its argument prototype would still apply.  */
11296 #ifdef __cplusplus
11297 extern "C"
11298 #endif
11299 char $ac_func ();
11300 /* The GNU C library defines this for functions which it implements
11301     to always fail with ENOSYS.  Some functions are actually named
11302     something starting with __ and the normal name is an alias.  */
11303 #if defined __stub_$ac_func || defined __stub___$ac_func
11304 choke me
11305 #endif
11306
11307 int
11308 main ()
11309 {
11310 return $ac_func ();
11311   ;
11312   return 0;
11313 }
11314 _ACEOF
11315 rm -f conftest.$ac_objext conftest$ac_exeext
11316 if { (ac_try="$ac_link"
11317 case "(($ac_try" in
11318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11319   *) ac_try_echo=$ac_try;;
11320 esac
11321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11322   (eval "$ac_link") 2>conftest.er1
11323   ac_status=$?
11324   grep -v '^ *+' conftest.er1 >conftest.err
11325   rm -f conftest.er1
11326   cat conftest.err >&5
11327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328   (exit $ac_status); } &&
11329          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11330   { (case "(($ac_try" in
11331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332   *) ac_try_echo=$ac_try;;
11333 esac
11334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335   (eval "$ac_try") 2>&5
11336   ac_status=$?
11337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338   (exit $ac_status); }; } &&
11339          { ac_try='test -s conftest$ac_exeext'
11340   { (case "(($ac_try" in
11341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342   *) ac_try_echo=$ac_try;;
11343 esac
11344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345   (eval "$ac_try") 2>&5
11346   ac_status=$?
11347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348   (exit $ac_status); }; }; then
11349   eval "$as_ac_var=yes"
11350 else
11351   echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.$ac_ext >&5
11353
11354         eval "$as_ac_var=no"
11355 fi
11356
11357 rm -f core conftest.err conftest.$ac_objext \
11358       conftest$ac_exeext conftest.$ac_ext
11359 fi
11360 ac_res=`eval echo '${'$as_ac_var'}'`
11361                { echo "$as_me:$LINENO: result: $ac_res" >&5
11362 echo "${ECHO_T}$ac_res" >&6; }
11363 if test `eval echo '${'$as_ac_var'}'` = yes; then
11364   cat >>confdefs.h <<_ACEOF
11365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11366 _ACEOF
11367  break
11368 fi
11369 done
11370
11371
11372
11373 for ac_func in strrchr rindex
11374 do
11375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11376 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11378 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11379   echo $ECHO_N "(cached) $ECHO_C" >&6
11380 else
11381   cat >conftest.$ac_ext <<_ACEOF
11382 /* confdefs.h.  */
11383 _ACEOF
11384 cat confdefs.h >>conftest.$ac_ext
11385 cat >>conftest.$ac_ext <<_ACEOF
11386 /* end confdefs.h.  */
11387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11388    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11389 #define $ac_func innocuous_$ac_func
11390
11391 /* System header to define __stub macros and hopefully few prototypes,
11392     which can conflict with char $ac_func (); below.
11393     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11394     <limits.h> exists even on freestanding compilers.  */
11395
11396 #ifdef __STDC__
11397 # include <limits.h>
11398 #else
11399 # include <assert.h>
11400 #endif
11401
11402 #undef $ac_func
11403
11404 /* Override any GCC internal prototype to avoid an error.
11405    Use char because int might match the return type of a GCC
11406    builtin and then its argument prototype would still apply.  */
11407 #ifdef __cplusplus
11408 extern "C"
11409 #endif
11410 char $ac_func ();
11411 /* The GNU C library defines this for functions which it implements
11412     to always fail with ENOSYS.  Some functions are actually named
11413     something starting with __ and the normal name is an alias.  */
11414 #if defined __stub_$ac_func || defined __stub___$ac_func
11415 choke me
11416 #endif
11417
11418 int
11419 main ()
11420 {
11421 return $ac_func ();
11422   ;
11423   return 0;
11424 }
11425 _ACEOF
11426 rm -f conftest.$ac_objext conftest$ac_exeext
11427 if { (ac_try="$ac_link"
11428 case "(($ac_try" in
11429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11430   *) ac_try_echo=$ac_try;;
11431 esac
11432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11433   (eval "$ac_link") 2>conftest.er1
11434   ac_status=$?
11435   grep -v '^ *+' conftest.er1 >conftest.err
11436   rm -f conftest.er1
11437   cat conftest.err >&5
11438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439   (exit $ac_status); } &&
11440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11441   { (case "(($ac_try" in
11442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443   *) ac_try_echo=$ac_try;;
11444 esac
11445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446   (eval "$ac_try") 2>&5
11447   ac_status=$?
11448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449   (exit $ac_status); }; } &&
11450          { ac_try='test -s conftest$ac_exeext'
11451   { (case "(($ac_try" in
11452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11453   *) ac_try_echo=$ac_try;;
11454 esac
11455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11456   (eval "$ac_try") 2>&5
11457   ac_status=$?
11458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459   (exit $ac_status); }; }; then
11460   eval "$as_ac_var=yes"
11461 else
11462   echo "$as_me: failed program was:" >&5
11463 sed 's/^/| /' conftest.$ac_ext >&5
11464
11465         eval "$as_ac_var=no"
11466 fi
11467
11468 rm -f core conftest.err conftest.$ac_objext \
11469       conftest$ac_exeext conftest.$ac_ext
11470 fi
11471 ac_res=`eval echo '${'$as_ac_var'}'`
11472                { echo "$as_me:$LINENO: result: $ac_res" >&5
11473 echo "${ECHO_T}$ac_res" >&6; }
11474 if test `eval echo '${'$as_ac_var'}'` = yes; then
11475   cat >>confdefs.h <<_ACEOF
11476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11477 _ACEOF
11478  break
11479 fi
11480 done
11481
11482
11483
11484 for ac_func in memcpy bcopy
11485 do
11486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11487 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11489 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11490   echo $ECHO_N "(cached) $ECHO_C" >&6
11491 else
11492   cat >conftest.$ac_ext <<_ACEOF
11493 /* confdefs.h.  */
11494 _ACEOF
11495 cat confdefs.h >>conftest.$ac_ext
11496 cat >>conftest.$ac_ext <<_ACEOF
11497 /* end confdefs.h.  */
11498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11499    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11500 #define $ac_func innocuous_$ac_func
11501
11502 /* System header to define __stub macros and hopefully few prototypes,
11503     which can conflict with char $ac_func (); below.
11504     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11505     <limits.h> exists even on freestanding compilers.  */
11506
11507 #ifdef __STDC__
11508 # include <limits.h>
11509 #else
11510 # include <assert.h>
11511 #endif
11512
11513 #undef $ac_func
11514
11515 /* Override any GCC internal prototype to avoid an error.
11516    Use char because int might match the return type of a GCC
11517    builtin and then its argument prototype would still apply.  */
11518 #ifdef __cplusplus
11519 extern "C"
11520 #endif
11521 char $ac_func ();
11522 /* The GNU C library defines this for functions which it implements
11523     to always fail with ENOSYS.  Some functions are actually named
11524     something starting with __ and the normal name is an alias.  */
11525 #if defined __stub_$ac_func || defined __stub___$ac_func
11526 choke me
11527 #endif
11528
11529 int
11530 main ()
11531 {
11532 return $ac_func ();
11533   ;
11534   return 0;
11535 }
11536 _ACEOF
11537 rm -f conftest.$ac_objext conftest$ac_exeext
11538 if { (ac_try="$ac_link"
11539 case "(($ac_try" in
11540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11541   *) ac_try_echo=$ac_try;;
11542 esac
11543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11544   (eval "$ac_link") 2>conftest.er1
11545   ac_status=$?
11546   grep -v '^ *+' conftest.er1 >conftest.err
11547   rm -f conftest.er1
11548   cat conftest.err >&5
11549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550   (exit $ac_status); } &&
11551          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11552   { (case "(($ac_try" in
11553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554   *) ac_try_echo=$ac_try;;
11555 esac
11556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11557   (eval "$ac_try") 2>&5
11558   ac_status=$?
11559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560   (exit $ac_status); }; } &&
11561          { ac_try='test -s conftest$ac_exeext'
11562   { (case "(($ac_try" in
11563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564   *) ac_try_echo=$ac_try;;
11565 esac
11566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11567   (eval "$ac_try") 2>&5
11568   ac_status=$?
11569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570   (exit $ac_status); }; }; then
11571   eval "$as_ac_var=yes"
11572 else
11573   echo "$as_me: failed program was:" >&5
11574 sed 's/^/| /' conftest.$ac_ext >&5
11575
11576         eval "$as_ac_var=no"
11577 fi
11578
11579 rm -f core conftest.err conftest.$ac_objext \
11580       conftest$ac_exeext conftest.$ac_ext
11581 fi
11582 ac_res=`eval echo '${'$as_ac_var'}'`
11583                { echo "$as_me:$LINENO: result: $ac_res" >&5
11584 echo "${ECHO_T}$ac_res" >&6; }
11585 if test `eval echo '${'$as_ac_var'}'` = yes; then
11586   cat >>confdefs.h <<_ACEOF
11587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11588 _ACEOF
11589  break
11590 fi
11591 done
11592
11593
11594
11595 for ac_func in memmove strcmp
11596 do
11597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11598 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11600 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11601   echo $ECHO_N "(cached) $ECHO_C" >&6
11602 else
11603   cat >conftest.$ac_ext <<_ACEOF
11604 /* confdefs.h.  */
11605 _ACEOF
11606 cat confdefs.h >>conftest.$ac_ext
11607 cat >>conftest.$ac_ext <<_ACEOF
11608 /* end confdefs.h.  */
11609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11610    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11611 #define $ac_func innocuous_$ac_func
11612
11613 /* System header to define __stub macros and hopefully few prototypes,
11614     which can conflict with char $ac_func (); below.
11615     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11616     <limits.h> exists even on freestanding compilers.  */
11617
11618 #ifdef __STDC__
11619 # include <limits.h>
11620 #else
11621 # include <assert.h>
11622 #endif
11623
11624 #undef $ac_func
11625
11626 /* Override any GCC internal prototype to avoid an error.
11627    Use char because int might match the return type of a GCC
11628    builtin and then its argument prototype would still apply.  */
11629 #ifdef __cplusplus
11630 extern "C"
11631 #endif
11632 char $ac_func ();
11633 /* The GNU C library defines this for functions which it implements
11634     to always fail with ENOSYS.  Some functions are actually named
11635     something starting with __ and the normal name is an alias.  */
11636 #if defined __stub_$ac_func || defined __stub___$ac_func
11637 choke me
11638 #endif
11639
11640 int
11641 main ()
11642 {
11643 return $ac_func ();
11644   ;
11645   return 0;
11646 }
11647 _ACEOF
11648 rm -f conftest.$ac_objext conftest$ac_exeext
11649 if { (ac_try="$ac_link"
11650 case "(($ac_try" in
11651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11652   *) ac_try_echo=$ac_try;;
11653 esac
11654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11655   (eval "$ac_link") 2>conftest.er1
11656   ac_status=$?
11657   grep -v '^ *+' conftest.er1 >conftest.err
11658   rm -f conftest.er1
11659   cat conftest.err >&5
11660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661   (exit $ac_status); } &&
11662          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11663   { (case "(($ac_try" in
11664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11665   *) ac_try_echo=$ac_try;;
11666 esac
11667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11668   (eval "$ac_try") 2>&5
11669   ac_status=$?
11670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671   (exit $ac_status); }; } &&
11672          { ac_try='test -s conftest$ac_exeext'
11673   { (case "(($ac_try" in
11674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11675   *) ac_try_echo=$ac_try;;
11676 esac
11677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11678   (eval "$ac_try") 2>&5
11679   ac_status=$?
11680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681   (exit $ac_status); }; }; then
11682   eval "$as_ac_var=yes"
11683 else
11684   echo "$as_me: failed program was:" >&5
11685 sed 's/^/| /' conftest.$ac_ext >&5
11686
11687         eval "$as_ac_var=no"
11688 fi
11689
11690 rm -f core conftest.err conftest.$ac_objext \
11691       conftest$ac_exeext conftest.$ac_ext
11692 fi
11693 ac_res=`eval echo '${'$as_ac_var'}'`
11694                { echo "$as_me:$LINENO: result: $ac_res" >&5
11695 echo "${ECHO_T}$ac_res" >&6; }
11696 if test `eval echo '${'$as_ac_var'}'` = yes; then
11697   cat >>confdefs.h <<_ACEOF
11698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11699 _ACEOF
11700
11701 fi
11702 done
11703
11704
11705
11706
11707 for ac_func in closedir opendir readdir
11708 do
11709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11713   echo $ECHO_N "(cached) $ECHO_C" >&6
11714 else
11715   cat >conftest.$ac_ext <<_ACEOF
11716 /* confdefs.h.  */
11717 _ACEOF
11718 cat confdefs.h >>conftest.$ac_ext
11719 cat >>conftest.$ac_ext <<_ACEOF
11720 /* end confdefs.h.  */
11721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11723 #define $ac_func innocuous_$ac_func
11724
11725 /* System header to define __stub macros and hopefully few prototypes,
11726     which can conflict with char $ac_func (); below.
11727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11728     <limits.h> exists even on freestanding compilers.  */
11729
11730 #ifdef __STDC__
11731 # include <limits.h>
11732 #else
11733 # include <assert.h>
11734 #endif
11735
11736 #undef $ac_func
11737
11738 /* Override any GCC internal prototype to avoid an error.
11739    Use char because int might match the return type of a GCC
11740    builtin and then its argument prototype would still apply.  */
11741 #ifdef __cplusplus
11742 extern "C"
11743 #endif
11744 char $ac_func ();
11745 /* The GNU C library defines this for functions which it implements
11746     to always fail with ENOSYS.  Some functions are actually named
11747     something starting with __ and the normal name is an alias.  */
11748 #if defined __stub_$ac_func || defined __stub___$ac_func
11749 choke me
11750 #endif
11751
11752 int
11753 main ()
11754 {
11755 return $ac_func ();
11756   ;
11757   return 0;
11758 }
11759 _ACEOF
11760 rm -f conftest.$ac_objext conftest$ac_exeext
11761 if { (ac_try="$ac_link"
11762 case "(($ac_try" in
11763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764   *) ac_try_echo=$ac_try;;
11765 esac
11766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767   (eval "$ac_link") 2>conftest.er1
11768   ac_status=$?
11769   grep -v '^ *+' conftest.er1 >conftest.err
11770   rm -f conftest.er1
11771   cat conftest.err >&5
11772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773   (exit $ac_status); } &&
11774          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
11781   ac_status=$?
11782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783   (exit $ac_status); }; } &&
11784          { ac_try='test -s conftest$ac_exeext'
11785   { (case "(($ac_try" in
11786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787   *) ac_try_echo=$ac_try;;
11788 esac
11789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790   (eval "$ac_try") 2>&5
11791   ac_status=$?
11792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793   (exit $ac_status); }; }; then
11794   eval "$as_ac_var=yes"
11795 else
11796   echo "$as_me: failed program was:" >&5
11797 sed 's/^/| /' conftest.$ac_ext >&5
11798
11799         eval "$as_ac_var=no"
11800 fi
11801
11802 rm -f core conftest.err conftest.$ac_objext \
11803       conftest$ac_exeext conftest.$ac_ext
11804 fi
11805 ac_res=`eval echo '${'$as_ac_var'}'`
11806                { echo "$as_me:$LINENO: result: $ac_res" >&5
11807 echo "${ECHO_T}$ac_res" >&6; }
11808 if test `eval echo '${'$as_ac_var'}'` = yes; then
11809   cat >>confdefs.h <<_ACEOF
11810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11811 _ACEOF
11812
11813 fi
11814 done
11815
11816
11817
11818 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11819 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11820
11821 ICC=no
11822 IXX=no
11823 case $CC in
11824   icc*|icpc*)
11825     ICC=yes
11826     IXX=yes
11827     ;;
11828    *)
11829     ;;
11830 esac
11831
11832 if test "$GCC" != "yes" && test "$ICC" != "yes"
11833 then
11834   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11835 echo "$as_me: error: gcc|icc required but not found" >&2;}
11836    { (exit 1); exit 1; }; }
11837 fi
11838
11839 if test "$GXX" != "yes" && test "$IXX" != "yes"
11840 then
11841   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11842 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11843    { (exit 1); exit 1; }; }
11844 fi
11845
11846 if test "$GCC" = "yes"
11847 then
11848   cat >conftest.$ac_ext <<_ACEOF
11849 #if !defined(__GNUC__) || __GNUC__ < 3
11850 #error Unsupported GCC version
11851 #endif
11852
11853 _ACEOF
11854 rm -f conftest.$ac_objext
11855 if { (ac_try="$ac_compile"
11856 case "(($ac_try" in
11857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858   *) ac_try_echo=$ac_try;;
11859 esac
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861   (eval "$ac_compile") 2>conftest.er1
11862   ac_status=$?
11863   grep -v '^ *+' conftest.er1 >conftest.err
11864   rm -f conftest.er1
11865   cat conftest.err >&5
11866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867   (exit $ac_status); } &&
11868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11869   { (case "(($ac_try" in
11870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871   *) ac_try_echo=$ac_try;;
11872 esac
11873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11874   (eval "$ac_try") 2>&5
11875   ac_status=$?
11876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877   (exit $ac_status); }; } &&
11878          { ac_try='test -s conftest.$ac_objext'
11879   { (case "(($ac_try" in
11880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11881   *) ac_try_echo=$ac_try;;
11882 esac
11883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11884   (eval "$ac_try") 2>&5
11885   ac_status=$?
11886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887   (exit $ac_status); }; }; then
11888   :
11889 else
11890   echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.$ac_ext >&5
11892
11893         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11894 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11895    { (exit 1); exit 1; }; }
11896 fi
11897
11898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11899 fi
11900
11901 if test -z "$llvm_cv_gnu_make_command"
11902 then
11903   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11904 echo "$as_me: error: GNU Make required but not found" >&2;}
11905    { (exit 1); exit 1; }; }
11906 fi
11907
11908 { echo "$as_me:$LINENO: result: ok" >&5
11909 echo "${ECHO_T}ok" >&6; }
11910
11911 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11912 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11913 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11914
11915 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11916
11917 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11918
11919 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
11920 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
11921
11922
11923
11924 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11925 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11926 if test "${ac_cv_lib_m_sin+set}" = set; then
11927   echo $ECHO_N "(cached) $ECHO_C" >&6
11928 else
11929   ac_check_lib_save_LIBS=$LIBS
11930 LIBS="-lm  $LIBS"
11931 cat >conftest.$ac_ext <<_ACEOF
11932 /* confdefs.h.  */
11933 _ACEOF
11934 cat confdefs.h >>conftest.$ac_ext
11935 cat >>conftest.$ac_ext <<_ACEOF
11936 /* end confdefs.h.  */
11937
11938 /* Override any GCC internal prototype to avoid an error.
11939    Use char because int might match the return type of a GCC
11940    builtin and then its argument prototype would still apply.  */
11941 #ifdef __cplusplus
11942 extern "C"
11943 #endif
11944 char sin ();
11945 int
11946 main ()
11947 {
11948 return sin ();
11949   ;
11950   return 0;
11951 }
11952 _ACEOF
11953 rm -f conftest.$ac_objext conftest$ac_exeext
11954 if { (ac_try="$ac_link"
11955 case "(($ac_try" in
11956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957   *) ac_try_echo=$ac_try;;
11958 esac
11959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11960   (eval "$ac_link") 2>conftest.er1
11961   ac_status=$?
11962   grep -v '^ *+' conftest.er1 >conftest.err
11963   rm -f conftest.er1
11964   cat conftest.err >&5
11965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966   (exit $ac_status); } &&
11967          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11968   { (case "(($ac_try" in
11969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970   *) ac_try_echo=$ac_try;;
11971 esac
11972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11973   (eval "$ac_try") 2>&5
11974   ac_status=$?
11975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976   (exit $ac_status); }; } &&
11977          { ac_try='test -s conftest$ac_exeext'
11978   { (case "(($ac_try" in
11979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11980   *) ac_try_echo=$ac_try;;
11981 esac
11982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11983   (eval "$ac_try") 2>&5
11984   ac_status=$?
11985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986   (exit $ac_status); }; }; then
11987   ac_cv_lib_m_sin=yes
11988 else
11989   echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.$ac_ext >&5
11991
11992         ac_cv_lib_m_sin=no
11993 fi
11994
11995 rm -f core conftest.err conftest.$ac_objext \
11996       conftest$ac_exeext conftest.$ac_ext
11997 LIBS=$ac_check_lib_save_LIBS
11998 fi
11999 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12000 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12001 if test $ac_cv_lib_m_sin = yes; then
12002   cat >>confdefs.h <<_ACEOF
12003 #define HAVE_LIBM 1
12004 _ACEOF
12005
12006   LIBS="-lm $LIBS"
12007
12008 fi
12009
12010 if test "$llvm_cv_os_type" = "MingW" ; then
12011
12012 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12013 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12014 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12015   echo $ECHO_N "(cached) $ECHO_C" >&6
12016 else
12017   ac_check_lib_save_LIBS=$LIBS
12018 LIBS="-limagehlp  $LIBS"
12019 cat >conftest.$ac_ext <<_ACEOF
12020 /* confdefs.h.  */
12021 _ACEOF
12022 cat confdefs.h >>conftest.$ac_ext
12023 cat >>conftest.$ac_ext <<_ACEOF
12024 /* end confdefs.h.  */
12025
12026
12027 int
12028 main ()
12029 {
12030 return main ();
12031   ;
12032   return 0;
12033 }
12034 _ACEOF
12035 rm -f conftest.$ac_objext conftest$ac_exeext
12036 if { (ac_try="$ac_link"
12037 case "(($ac_try" in
12038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039   *) ac_try_echo=$ac_try;;
12040 esac
12041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12042   (eval "$ac_link") 2>conftest.er1
12043   ac_status=$?
12044   grep -v '^ *+' conftest.er1 >conftest.err
12045   rm -f conftest.er1
12046   cat conftest.err >&5
12047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048   (exit $ac_status); } &&
12049          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12050   { (case "(($ac_try" in
12051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12052   *) ac_try_echo=$ac_try;;
12053 esac
12054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12055   (eval "$ac_try") 2>&5
12056   ac_status=$?
12057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058   (exit $ac_status); }; } &&
12059          { ac_try='test -s conftest$ac_exeext'
12060   { (case "(($ac_try" in
12061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12062   *) ac_try_echo=$ac_try;;
12063 esac
12064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12065   (eval "$ac_try") 2>&5
12066   ac_status=$?
12067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068   (exit $ac_status); }; }; then
12069   ac_cv_lib_imagehlp_main=yes
12070 else
12071   echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.$ac_ext >&5
12073
12074         ac_cv_lib_imagehlp_main=no
12075 fi
12076
12077 rm -f core conftest.err conftest.$ac_objext \
12078       conftest$ac_exeext conftest.$ac_ext
12079 LIBS=$ac_check_lib_save_LIBS
12080 fi
12081 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12082 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12083 if test $ac_cv_lib_imagehlp_main = yes; then
12084   cat >>confdefs.h <<_ACEOF
12085 #define HAVE_LIBIMAGEHLP 1
12086 _ACEOF
12087
12088   LIBS="-limagehlp $LIBS"
12089
12090 fi
12091
12092
12093 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12094 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12095 if test "${ac_cv_lib_psapi_main+set}" = set; then
12096   echo $ECHO_N "(cached) $ECHO_C" >&6
12097 else
12098   ac_check_lib_save_LIBS=$LIBS
12099 LIBS="-lpsapi  $LIBS"
12100 cat >conftest.$ac_ext <<_ACEOF
12101 /* confdefs.h.  */
12102 _ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h.  */
12106
12107
12108 int
12109 main ()
12110 {
12111 return main ();
12112   ;
12113   return 0;
12114 }
12115 _ACEOF
12116 rm -f conftest.$ac_objext conftest$ac_exeext
12117 if { (ac_try="$ac_link"
12118 case "(($ac_try" in
12119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12120   *) ac_try_echo=$ac_try;;
12121 esac
12122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12123   (eval "$ac_link") 2>conftest.er1
12124   ac_status=$?
12125   grep -v '^ *+' conftest.er1 >conftest.err
12126   rm -f conftest.er1
12127   cat conftest.err >&5
12128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129   (exit $ac_status); } &&
12130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12131   { (case "(($ac_try" in
12132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133   *) ac_try_echo=$ac_try;;
12134 esac
12135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12136   (eval "$ac_try") 2>&5
12137   ac_status=$?
12138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139   (exit $ac_status); }; } &&
12140          { ac_try='test -s conftest$ac_exeext'
12141   { (case "(($ac_try" in
12142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12143   *) ac_try_echo=$ac_try;;
12144 esac
12145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12146   (eval "$ac_try") 2>&5
12147   ac_status=$?
12148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149   (exit $ac_status); }; }; then
12150   ac_cv_lib_psapi_main=yes
12151 else
12152   echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12154
12155         ac_cv_lib_psapi_main=no
12156 fi
12157
12158 rm -f core conftest.err conftest.$ac_objext \
12159       conftest$ac_exeext conftest.$ac_ext
12160 LIBS=$ac_check_lib_save_LIBS
12161 fi
12162 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12163 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12164 if test $ac_cv_lib_psapi_main = yes; then
12165   cat >>confdefs.h <<_ACEOF
12166 #define HAVE_LIBPSAPI 1
12167 _ACEOF
12168
12169   LIBS="-lpsapi $LIBS"
12170
12171 fi
12172
12173 fi
12174
12175 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12176 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12177 if test "${ac_cv_search_dlopen+set}" = set; then
12178   echo $ECHO_N "(cached) $ECHO_C" >&6
12179 else
12180   ac_func_search_save_LIBS=$LIBS
12181 cat >conftest.$ac_ext <<_ACEOF
12182 /* confdefs.h.  */
12183 _ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h.  */
12187
12188 /* Override any GCC internal prototype to avoid an error.
12189    Use char because int might match the return type of a GCC
12190    builtin and then its argument prototype would still apply.  */
12191 #ifdef __cplusplus
12192 extern "C"
12193 #endif
12194 char dlopen ();
12195 int
12196 main ()
12197 {
12198 return dlopen ();
12199   ;
12200   return 0;
12201 }
12202 _ACEOF
12203 for ac_lib in '' dl; do
12204   if test -z "$ac_lib"; then
12205     ac_res="none required"
12206   else
12207     ac_res=-l$ac_lib
12208     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12209   fi
12210   rm -f conftest.$ac_objext conftest$ac_exeext
12211 if { (ac_try="$ac_link"
12212 case "(($ac_try" in
12213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214   *) ac_try_echo=$ac_try;;
12215 esac
12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217   (eval "$ac_link") 2>conftest.er1
12218   ac_status=$?
12219   grep -v '^ *+' conftest.er1 >conftest.err
12220   rm -f conftest.er1
12221   cat conftest.err >&5
12222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223   (exit $ac_status); } &&
12224          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12225   { (case "(($ac_try" in
12226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227   *) ac_try_echo=$ac_try;;
12228 esac
12229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230   (eval "$ac_try") 2>&5
12231   ac_status=$?
12232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233   (exit $ac_status); }; } &&
12234          { ac_try='test -s conftest$ac_exeext'
12235   { (case "(($ac_try" in
12236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237   *) ac_try_echo=$ac_try;;
12238 esac
12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240   (eval "$ac_try") 2>&5
12241   ac_status=$?
12242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243   (exit $ac_status); }; }; then
12244   ac_cv_search_dlopen=$ac_res
12245 else
12246   echo "$as_me: failed program was:" >&5
12247 sed 's/^/| /' conftest.$ac_ext >&5
12248
12249
12250 fi
12251
12252 rm -f core conftest.err conftest.$ac_objext \
12253       conftest$ac_exeext
12254   if test "${ac_cv_search_dlopen+set}" = set; then
12255   break
12256 fi
12257 done
12258 if test "${ac_cv_search_dlopen+set}" = set; then
12259   :
12260 else
12261   ac_cv_search_dlopen=no
12262 fi
12263 rm conftest.$ac_ext
12264 LIBS=$ac_func_search_save_LIBS
12265 fi
12266 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12267 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12268 ac_res=$ac_cv_search_dlopen
12269 if test "$ac_res" != no; then
12270   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12271
12272 cat >>confdefs.h <<\_ACEOF
12273 #define HAVE_DLOPEN 1
12274 _ACEOF
12275
12276 else
12277   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12278 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12279 fi
12280
12281
12282 if test "$llvm_cv_enable_libffi" = "yes" ; then
12283   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12284 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12285 if test "${ac_cv_search_ffi_call+set}" = set; then
12286   echo $ECHO_N "(cached) $ECHO_C" >&6
12287 else
12288   ac_func_search_save_LIBS=$LIBS
12289 cat >conftest.$ac_ext <<_ACEOF
12290 /* confdefs.h.  */
12291 _ACEOF
12292 cat confdefs.h >>conftest.$ac_ext
12293 cat >>conftest.$ac_ext <<_ACEOF
12294 /* end confdefs.h.  */
12295
12296 /* Override any GCC internal prototype to avoid an error.
12297    Use char because int might match the return type of a GCC
12298    builtin and then its argument prototype would still apply.  */
12299 #ifdef __cplusplus
12300 extern "C"
12301 #endif
12302 char ffi_call ();
12303 int
12304 main ()
12305 {
12306 return ffi_call ();
12307   ;
12308   return 0;
12309 }
12310 _ACEOF
12311 for ac_lib in '' ffi; do
12312   if test -z "$ac_lib"; then
12313     ac_res="none required"
12314   else
12315     ac_res=-l$ac_lib
12316     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12317   fi
12318   rm -f conftest.$ac_objext conftest$ac_exeext
12319 if { (ac_try="$ac_link"
12320 case "(($ac_try" in
12321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322   *) ac_try_echo=$ac_try;;
12323 esac
12324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12325   (eval "$ac_link") 2>conftest.er1
12326   ac_status=$?
12327   grep -v '^ *+' conftest.er1 >conftest.err
12328   rm -f conftest.er1
12329   cat conftest.err >&5
12330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331   (exit $ac_status); } &&
12332          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12333   { (case "(($ac_try" in
12334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12335   *) ac_try_echo=$ac_try;;
12336 esac
12337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338   (eval "$ac_try") 2>&5
12339   ac_status=$?
12340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341   (exit $ac_status); }; } &&
12342          { ac_try='test -s conftest$ac_exeext'
12343   { (case "(($ac_try" in
12344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345   *) ac_try_echo=$ac_try;;
12346 esac
12347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348   (eval "$ac_try") 2>&5
12349   ac_status=$?
12350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351   (exit $ac_status); }; }; then
12352   ac_cv_search_ffi_call=$ac_res
12353 else
12354   echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12356
12357
12358 fi
12359
12360 rm -f core conftest.err conftest.$ac_objext \
12361       conftest$ac_exeext
12362   if test "${ac_cv_search_ffi_call+set}" = set; then
12363   break
12364 fi
12365 done
12366 if test "${ac_cv_search_ffi_call+set}" = set; then
12367   :
12368 else
12369   ac_cv_search_ffi_call=no
12370 fi
12371 rm conftest.$ac_ext
12372 LIBS=$ac_func_search_save_LIBS
12373 fi
12374 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12375 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12376 ac_res=$ac_cv_search_ffi_call
12377 if test "$ac_res" != no; then
12378   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12379
12380 cat >>confdefs.h <<\_ACEOF
12381 #define HAVE_FFI_CALL 1
12382 _ACEOF
12383
12384 else
12385   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12386 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12387    { (exit 1); exit 1; }; }
12388 fi
12389
12390 fi
12391
12392 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12393 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12394 if test "${ac_cv_search_mallinfo+set}" = set; then
12395   echo $ECHO_N "(cached) $ECHO_C" >&6
12396 else
12397   ac_func_search_save_LIBS=$LIBS
12398 cat >conftest.$ac_ext <<_ACEOF
12399 /* confdefs.h.  */
12400 _ACEOF
12401 cat confdefs.h >>conftest.$ac_ext
12402 cat >>conftest.$ac_ext <<_ACEOF
12403 /* end confdefs.h.  */
12404
12405 /* Override any GCC internal prototype to avoid an error.
12406    Use char because int might match the return type of a GCC
12407    builtin and then its argument prototype would still apply.  */
12408 #ifdef __cplusplus
12409 extern "C"
12410 #endif
12411 char mallinfo ();
12412 int
12413 main ()
12414 {
12415 return mallinfo ();
12416   ;
12417   return 0;
12418 }
12419 _ACEOF
12420 for ac_lib in '' malloc; do
12421   if test -z "$ac_lib"; then
12422     ac_res="none required"
12423   else
12424     ac_res=-l$ac_lib
12425     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12426   fi
12427   rm -f conftest.$ac_objext conftest$ac_exeext
12428 if { (ac_try="$ac_link"
12429 case "(($ac_try" in
12430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431   *) ac_try_echo=$ac_try;;
12432 esac
12433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434   (eval "$ac_link") 2>conftest.er1
12435   ac_status=$?
12436   grep -v '^ *+' conftest.er1 >conftest.err
12437   rm -f conftest.er1
12438   cat conftest.err >&5
12439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440   (exit $ac_status); } &&
12441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12442   { (case "(($ac_try" in
12443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12444   *) ac_try_echo=$ac_try;;
12445 esac
12446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12447   (eval "$ac_try") 2>&5
12448   ac_status=$?
12449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450   (exit $ac_status); }; } &&
12451          { ac_try='test -s conftest$ac_exeext'
12452   { (case "(($ac_try" in
12453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12454   *) ac_try_echo=$ac_try;;
12455 esac
12456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12457   (eval "$ac_try") 2>&5
12458   ac_status=$?
12459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460   (exit $ac_status); }; }; then
12461   ac_cv_search_mallinfo=$ac_res
12462 else
12463   echo "$as_me: failed program was:" >&5
12464 sed 's/^/| /' conftest.$ac_ext >&5
12465
12466
12467 fi
12468
12469 rm -f core conftest.err conftest.$ac_objext \
12470       conftest$ac_exeext
12471   if test "${ac_cv_search_mallinfo+set}" = set; then
12472   break
12473 fi
12474 done
12475 if test "${ac_cv_search_mallinfo+set}" = set; then
12476   :
12477 else
12478   ac_cv_search_mallinfo=no
12479 fi
12480 rm conftest.$ac_ext
12481 LIBS=$ac_func_search_save_LIBS
12482 fi
12483 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12484 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12485 ac_res=$ac_cv_search_mallinfo
12486 if test "$ac_res" != no; then
12487   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12488
12489 cat >>confdefs.h <<\_ACEOF
12490 #define HAVE_MALLINFO 1
12491 _ACEOF
12492
12493 fi
12494
12495
12496 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12497
12498 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12499 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12500 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12501   echo $ECHO_N "(cached) $ECHO_C" >&6
12502 else
12503   ac_check_lib_save_LIBS=$LIBS
12504 LIBS="-lpthread  $LIBS"
12505 cat >conftest.$ac_ext <<_ACEOF
12506 /* confdefs.h.  */
12507 _ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h.  */
12511
12512 /* Override any GCC internal prototype to avoid an error.
12513    Use char because int might match the return type of a GCC
12514    builtin and then its argument prototype would still apply.  */
12515 #ifdef __cplusplus
12516 extern "C"
12517 #endif
12518 char pthread_mutex_init ();
12519 int
12520 main ()
12521 {
12522 return pthread_mutex_init ();
12523   ;
12524   return 0;
12525 }
12526 _ACEOF
12527 rm -f conftest.$ac_objext conftest$ac_exeext
12528 if { (ac_try="$ac_link"
12529 case "(($ac_try" in
12530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531   *) ac_try_echo=$ac_try;;
12532 esac
12533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12534   (eval "$ac_link") 2>conftest.er1
12535   ac_status=$?
12536   grep -v '^ *+' conftest.er1 >conftest.err
12537   rm -f conftest.er1
12538   cat conftest.err >&5
12539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540   (exit $ac_status); } &&
12541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12542   { (case "(($ac_try" in
12543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544   *) ac_try_echo=$ac_try;;
12545 esac
12546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12547   (eval "$ac_try") 2>&5
12548   ac_status=$?
12549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550   (exit $ac_status); }; } &&
12551          { ac_try='test -s conftest$ac_exeext'
12552   { (case "(($ac_try" in
12553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12554   *) ac_try_echo=$ac_try;;
12555 esac
12556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12557   (eval "$ac_try") 2>&5
12558   ac_status=$?
12559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560   (exit $ac_status); }; }; then
12561   ac_cv_lib_pthread_pthread_mutex_init=yes
12562 else
12563   echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12565
12566         ac_cv_lib_pthread_pthread_mutex_init=no
12567 fi
12568
12569 rm -f core conftest.err conftest.$ac_objext \
12570       conftest$ac_exeext conftest.$ac_ext
12571 LIBS=$ac_check_lib_save_LIBS
12572 fi
12573 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12574 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12575 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12576   cat >>confdefs.h <<_ACEOF
12577 #define HAVE_LIBPTHREAD 1
12578 _ACEOF
12579
12580   LIBS="-lpthread $LIBS"
12581
12582 fi
12583
12584   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12585 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12586 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12587   echo $ECHO_N "(cached) $ECHO_C" >&6
12588 else
12589   ac_func_search_save_LIBS=$LIBS
12590 cat >conftest.$ac_ext <<_ACEOF
12591 /* confdefs.h.  */
12592 _ACEOF
12593 cat confdefs.h >>conftest.$ac_ext
12594 cat >>conftest.$ac_ext <<_ACEOF
12595 /* end confdefs.h.  */
12596
12597 /* Override any GCC internal prototype to avoid an error.
12598    Use char because int might match the return type of a GCC
12599    builtin and then its argument prototype would still apply.  */
12600 #ifdef __cplusplus
12601 extern "C"
12602 #endif
12603 char pthread_mutex_lock ();
12604 int
12605 main ()
12606 {
12607 return pthread_mutex_lock ();
12608   ;
12609   return 0;
12610 }
12611 _ACEOF
12612 for ac_lib in '' pthread; do
12613   if test -z "$ac_lib"; then
12614     ac_res="none required"
12615   else
12616     ac_res=-l$ac_lib
12617     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12618   fi
12619   rm -f conftest.$ac_objext conftest$ac_exeext
12620 if { (ac_try="$ac_link"
12621 case "(($ac_try" in
12622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623   *) ac_try_echo=$ac_try;;
12624 esac
12625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12626   (eval "$ac_link") 2>conftest.er1
12627   ac_status=$?
12628   grep -v '^ *+' conftest.er1 >conftest.err
12629   rm -f conftest.er1
12630   cat conftest.err >&5
12631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632   (exit $ac_status); } &&
12633          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12634   { (case "(($ac_try" in
12635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12636   *) ac_try_echo=$ac_try;;
12637 esac
12638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12639   (eval "$ac_try") 2>&5
12640   ac_status=$?
12641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642   (exit $ac_status); }; } &&
12643          { ac_try='test -s conftest$ac_exeext'
12644   { (case "(($ac_try" in
12645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12646   *) ac_try_echo=$ac_try;;
12647 esac
12648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12649   (eval "$ac_try") 2>&5
12650   ac_status=$?
12651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652   (exit $ac_status); }; }; then
12653   ac_cv_search_pthread_mutex_lock=$ac_res
12654 else
12655   echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12657
12658
12659 fi
12660
12661 rm -f core conftest.err conftest.$ac_objext \
12662       conftest$ac_exeext
12663   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12664   break
12665 fi
12666 done
12667 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12668   :
12669 else
12670   ac_cv_search_pthread_mutex_lock=no
12671 fi
12672 rm conftest.$ac_ext
12673 LIBS=$ac_func_search_save_LIBS
12674 fi
12675 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12676 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12677 ac_res=$ac_cv_search_pthread_mutex_lock
12678 if test "$ac_res" != no; then
12679   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12680
12681 cat >>confdefs.h <<\_ACEOF
12682 #define HAVE_PTHREAD_MUTEX_LOCK 1
12683 _ACEOF
12684
12685 fi
12686
12687   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12688 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12689 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12690   echo $ECHO_N "(cached) $ECHO_C" >&6
12691 else
12692   ac_func_search_save_LIBS=$LIBS
12693 cat >conftest.$ac_ext <<_ACEOF
12694 /* confdefs.h.  */
12695 _ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h.  */
12699
12700 /* Override any GCC internal prototype to avoid an error.
12701    Use char because int might match the return type of a GCC
12702    builtin and then its argument prototype would still apply.  */
12703 #ifdef __cplusplus
12704 extern "C"
12705 #endif
12706 char pthread_rwlock_init ();
12707 int
12708 main ()
12709 {
12710 return pthread_rwlock_init ();
12711   ;
12712   return 0;
12713 }
12714 _ACEOF
12715 for ac_lib in '' pthread; do
12716   if test -z "$ac_lib"; then
12717     ac_res="none required"
12718   else
12719     ac_res=-l$ac_lib
12720     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12721   fi
12722   rm -f conftest.$ac_objext conftest$ac_exeext
12723 if { (ac_try="$ac_link"
12724 case "(($ac_try" in
12725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726   *) ac_try_echo=$ac_try;;
12727 esac
12728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729   (eval "$ac_link") 2>conftest.er1
12730   ac_status=$?
12731   grep -v '^ *+' conftest.er1 >conftest.err
12732   rm -f conftest.er1
12733   cat conftest.err >&5
12734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735   (exit $ac_status); } &&
12736          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12737   { (case "(($ac_try" in
12738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739   *) ac_try_echo=$ac_try;;
12740 esac
12741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742   (eval "$ac_try") 2>&5
12743   ac_status=$?
12744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745   (exit $ac_status); }; } &&
12746          { ac_try='test -s conftest$ac_exeext'
12747   { (case "(($ac_try" in
12748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12749   *) ac_try_echo=$ac_try;;
12750 esac
12751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12752   (eval "$ac_try") 2>&5
12753   ac_status=$?
12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); }; }; then
12756   ac_cv_search_pthread_rwlock_init=$ac_res
12757 else
12758   echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12760
12761
12762 fi
12763
12764 rm -f core conftest.err conftest.$ac_objext \
12765       conftest$ac_exeext
12766   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12767   break
12768 fi
12769 done
12770 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12771   :
12772 else
12773   ac_cv_search_pthread_rwlock_init=no
12774 fi
12775 rm conftest.$ac_ext
12776 LIBS=$ac_func_search_save_LIBS
12777 fi
12778 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12779 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12780 ac_res=$ac_cv_search_pthread_rwlock_init
12781 if test "$ac_res" != no; then
12782   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12783
12784 cat >>confdefs.h <<\_ACEOF
12785 #define HAVE_PTHREAD_RWLOCK_INIT 1
12786 _ACEOF
12787
12788 fi
12789
12790   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12791 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12792 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12793   echo $ECHO_N "(cached) $ECHO_C" >&6
12794 else
12795   ac_func_search_save_LIBS=$LIBS
12796 cat >conftest.$ac_ext <<_ACEOF
12797 /* confdefs.h.  */
12798 _ACEOF
12799 cat confdefs.h >>conftest.$ac_ext
12800 cat >>conftest.$ac_ext <<_ACEOF
12801 /* end confdefs.h.  */
12802
12803 /* Override any GCC internal prototype to avoid an error.
12804    Use char because int might match the return type of a GCC
12805    builtin and then its argument prototype would still apply.  */
12806 #ifdef __cplusplus
12807 extern "C"
12808 #endif
12809 char pthread_getspecific ();
12810 int
12811 main ()
12812 {
12813 return pthread_getspecific ();
12814   ;
12815   return 0;
12816 }
12817 _ACEOF
12818 for ac_lib in '' pthread; do
12819   if test -z "$ac_lib"; then
12820     ac_res="none required"
12821   else
12822     ac_res=-l$ac_lib
12823     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12824   fi
12825   rm -f conftest.$ac_objext conftest$ac_exeext
12826 if { (ac_try="$ac_link"
12827 case "(($ac_try" in
12828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829   *) ac_try_echo=$ac_try;;
12830 esac
12831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12832   (eval "$ac_link") 2>conftest.er1
12833   ac_status=$?
12834   grep -v '^ *+' conftest.er1 >conftest.err
12835   rm -f conftest.er1
12836   cat conftest.err >&5
12837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838   (exit $ac_status); } &&
12839          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12840   { (case "(($ac_try" in
12841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12842   *) ac_try_echo=$ac_try;;
12843 esac
12844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12845   (eval "$ac_try") 2>&5
12846   ac_status=$?
12847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848   (exit $ac_status); }; } &&
12849          { ac_try='test -s conftest$ac_exeext'
12850   { (case "(($ac_try" in
12851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12852   *) ac_try_echo=$ac_try;;
12853 esac
12854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12855   (eval "$ac_try") 2>&5
12856   ac_status=$?
12857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858   (exit $ac_status); }; }; then
12859   ac_cv_search_pthread_getspecific=$ac_res
12860 else
12861   echo "$as_me: failed program was:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12863
12864
12865 fi
12866
12867 rm -f core conftest.err conftest.$ac_objext \
12868       conftest$ac_exeext
12869   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12870   break
12871 fi
12872 done
12873 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12874   :
12875 else
12876   ac_cv_search_pthread_getspecific=no
12877 fi
12878 rm conftest.$ac_ext
12879 LIBS=$ac_func_search_save_LIBS
12880 fi
12881 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12882 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12883 ac_res=$ac_cv_search_pthread_getspecific
12884 if test "$ac_res" != no; then
12885   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12886
12887 cat >>confdefs.h <<\_ACEOF
12888 #define HAVE_PTHREAD_GETSPECIFIC 1
12889 _ACEOF
12890
12891 fi
12892
12893 fi
12894
12895
12896 # Check whether --with-udis86 was given.
12897 if test "${with_udis86+set}" = set; then
12898   withval=$with_udis86;
12899       USE_UDIS86=1
12900
12901       case "$withval" in
12902         /usr/lib|yes) ;;
12903         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
12904       esac
12905
12906 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
12907 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
12908 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
12909   echo $ECHO_N "(cached) $ECHO_C" >&6
12910 else
12911   ac_check_lib_save_LIBS=$LIBS
12912 LIBS="-ludis86  $LIBS"
12913 cat >conftest.$ac_ext <<_ACEOF
12914 /* confdefs.h.  */
12915 _ACEOF
12916 cat confdefs.h >>conftest.$ac_ext
12917 cat >>conftest.$ac_ext <<_ACEOF
12918 /* end confdefs.h.  */
12919
12920 /* Override any GCC internal prototype to avoid an error.
12921    Use char because int might match the return type of a GCC
12922    builtin and then its argument prototype would still apply.  */
12923 #ifdef __cplusplus
12924 extern "C"
12925 #endif
12926 char ud_init ();
12927 int
12928 main ()
12929 {
12930 return ud_init ();
12931   ;
12932   return 0;
12933 }
12934 _ACEOF
12935 rm -f conftest.$ac_objext conftest$ac_exeext
12936 if { (ac_try="$ac_link"
12937 case "(($ac_try" in
12938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12939   *) ac_try_echo=$ac_try;;
12940 esac
12941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12942   (eval "$ac_link") 2>conftest.er1
12943   ac_status=$?
12944   grep -v '^ *+' conftest.er1 >conftest.err
12945   rm -f conftest.er1
12946   cat conftest.err >&5
12947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948   (exit $ac_status); } &&
12949          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12950   { (case "(($ac_try" in
12951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12952   *) ac_try_echo=$ac_try;;
12953 esac
12954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12955   (eval "$ac_try") 2>&5
12956   ac_status=$?
12957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958   (exit $ac_status); }; } &&
12959          { ac_try='test -s conftest$ac_exeext'
12960   { (case "(($ac_try" in
12961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12962   *) ac_try_echo=$ac_try;;
12963 esac
12964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12965   (eval "$ac_try") 2>&5
12966   ac_status=$?
12967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968   (exit $ac_status); }; }; then
12969   ac_cv_lib_udis86_ud_init=yes
12970 else
12971   echo "$as_me: failed program was:" >&5
12972 sed 's/^/| /' conftest.$ac_ext >&5
12973
12974         ac_cv_lib_udis86_ud_init=no
12975 fi
12976
12977 rm -f core conftest.err conftest.$ac_objext \
12978       conftest$ac_exeext conftest.$ac_ext
12979 LIBS=$ac_check_lib_save_LIBS
12980 fi
12981 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
12982 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
12983 if test $ac_cv_lib_udis86_ud_init = yes; then
12984   cat >>confdefs.h <<_ACEOF
12985 #define HAVE_LIBUDIS86 1
12986 _ACEOF
12987
12988   LIBS="-ludis86 $LIBS"
12989
12990 else
12991
12992         echo "Error! You need to have libudis86 around."
12993         exit -1
12994
12995 fi
12996
12997
12998 else
12999   USE_UDIS86=0
13000
13001 fi
13002
13003
13004 cat >>confdefs.h <<_ACEOF
13005 #define USE_UDIS86 $USE_UDIS86
13006 _ACEOF
13007
13008
13009
13010 # Check whether --with-oprofile was given.
13011 if test "${with_oprofile+set}" = set; then
13012   withval=$with_oprofile;
13013       USE_OPROFILE=1
13014
13015       case "$withval" in
13016         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13017         no) llvm_cv_oppath=
13018             USE_OPROFILE=0
13019  ;;
13020         *) llvm_cv_oppath="${withval}/lib/oprofile"
13021            CPPFLAGS="-I${withval}/include";;
13022       esac
13023       case $llvm_cv_os_type in
13024         Linux)
13025           if test -n "$llvm_cv_oppath" ; then
13026             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13027                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13028 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13029 if test "${ac_cv_search_bfd_init+set}" = set; then
13030   echo $ECHO_N "(cached) $ECHO_C" >&6
13031 else
13032   ac_func_search_save_LIBS=$LIBS
13033 cat >conftest.$ac_ext <<_ACEOF
13034 /* confdefs.h.  */
13035 _ACEOF
13036 cat confdefs.h >>conftest.$ac_ext
13037 cat >>conftest.$ac_ext <<_ACEOF
13038 /* end confdefs.h.  */
13039
13040 /* Override any GCC internal prototype to avoid an error.
13041    Use char because int might match the return type of a GCC
13042    builtin and then its argument prototype would still apply.  */
13043 #ifdef __cplusplus
13044 extern "C"
13045 #endif
13046 char bfd_init ();
13047 int
13048 main ()
13049 {
13050 return bfd_init ();
13051   ;
13052   return 0;
13053 }
13054 _ACEOF
13055 for ac_lib in '' bfd; do
13056   if test -z "$ac_lib"; then
13057     ac_res="none required"
13058   else
13059     ac_res=-l$ac_lib
13060     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13061   fi
13062   rm -f conftest.$ac_objext conftest$ac_exeext
13063 if { (ac_try="$ac_link"
13064 case "(($ac_try" in
13065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066   *) ac_try_echo=$ac_try;;
13067 esac
13068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069   (eval "$ac_link") 2>conftest.er1
13070   ac_status=$?
13071   grep -v '^ *+' conftest.er1 >conftest.err
13072   rm -f conftest.er1
13073   cat conftest.err >&5
13074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075   (exit $ac_status); } &&
13076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13077   { (case "(($ac_try" in
13078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079   *) ac_try_echo=$ac_try;;
13080 esac
13081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082   (eval "$ac_try") 2>&5
13083   ac_status=$?
13084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085   (exit $ac_status); }; } &&
13086          { ac_try='test -s conftest$ac_exeext'
13087   { (case "(($ac_try" in
13088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089   *) ac_try_echo=$ac_try;;
13090 esac
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092   (eval "$ac_try") 2>&5
13093   ac_status=$?
13094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095   (exit $ac_status); }; }; then
13096   ac_cv_search_bfd_init=$ac_res
13097 else
13098   echo "$as_me: failed program was:" >&5
13099 sed 's/^/| /' conftest.$ac_ext >&5
13100
13101
13102 fi
13103
13104 rm -f core conftest.err conftest.$ac_objext \
13105       conftest$ac_exeext
13106   if test "${ac_cv_search_bfd_init+set}" = set; then
13107   break
13108 fi
13109 done
13110 if test "${ac_cv_search_bfd_init+set}" = set; then
13111   :
13112 else
13113   ac_cv_search_bfd_init=no
13114 fi
13115 rm conftest.$ac_ext
13116 LIBS=$ac_func_search_save_LIBS
13117 fi
13118 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13119 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13120 ac_res=$ac_cv_search_bfd_init
13121 if test "$ac_res" != no; then
13122   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13123
13124 fi
13125
13126             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13127 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13128 if test "${ac_cv_search_op_open_agent+set}" = set; then
13129   echo $ECHO_N "(cached) $ECHO_C" >&6
13130 else
13131   ac_func_search_save_LIBS=$LIBS
13132 cat >conftest.$ac_ext <<_ACEOF
13133 /* confdefs.h.  */
13134 _ACEOF
13135 cat confdefs.h >>conftest.$ac_ext
13136 cat >>conftest.$ac_ext <<_ACEOF
13137 /* end confdefs.h.  */
13138
13139 /* Override any GCC internal prototype to avoid an error.
13140    Use char because int might match the return type of a GCC
13141    builtin and then its argument prototype would still apply.  */
13142 #ifdef __cplusplus
13143 extern "C"
13144 #endif
13145 char op_open_agent ();
13146 int
13147 main ()
13148 {
13149 return op_open_agent ();
13150   ;
13151   return 0;
13152 }
13153 _ACEOF
13154 for ac_lib in '' opagent; do
13155   if test -z "$ac_lib"; then
13156     ac_res="none required"
13157   else
13158     ac_res=-l$ac_lib
13159     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13160   fi
13161   rm -f conftest.$ac_objext conftest$ac_exeext
13162 if { (ac_try="$ac_link"
13163 case "(($ac_try" in
13164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13165   *) ac_try_echo=$ac_try;;
13166 esac
13167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13168   (eval "$ac_link") 2>conftest.er1
13169   ac_status=$?
13170   grep -v '^ *+' conftest.er1 >conftest.err
13171   rm -f conftest.er1
13172   cat conftest.err >&5
13173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174   (exit $ac_status); } &&
13175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13176   { (case "(($ac_try" in
13177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178   *) ac_try_echo=$ac_try;;
13179 esac
13180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13181   (eval "$ac_try") 2>&5
13182   ac_status=$?
13183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184   (exit $ac_status); }; } &&
13185          { ac_try='test -s conftest$ac_exeext'
13186   { (case "(($ac_try" in
13187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13188   *) ac_try_echo=$ac_try;;
13189 esac
13190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13191   (eval "$ac_try") 2>&5
13192   ac_status=$?
13193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194   (exit $ac_status); }; }; then
13195   ac_cv_search_op_open_agent=$ac_res
13196 else
13197   echo "$as_me: failed program was:" >&5
13198 sed 's/^/| /' conftest.$ac_ext >&5
13199
13200
13201 fi
13202
13203 rm -f core conftest.err conftest.$ac_objext \
13204       conftest$ac_exeext
13205   if test "${ac_cv_search_op_open_agent+set}" = set; then
13206   break
13207 fi
13208 done
13209 if test "${ac_cv_search_op_open_agent+set}" = set; then
13210   :
13211 else
13212   ac_cv_search_op_open_agent=no
13213 fi
13214 rm conftest.$ac_ext
13215 LIBS=$ac_func_search_save_LIBS
13216 fi
13217 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13218 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13219 ac_res=$ac_cv_search_op_open_agent
13220 if test "$ac_res" != no; then
13221   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13222
13223 else
13224
13225               echo "Error! You need to have libopagent around."
13226               exit -1
13227
13228 fi
13229
13230             if test "${ac_cv_header_opagent_h+set}" = set; then
13231   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13232 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13233 if test "${ac_cv_header_opagent_h+set}" = set; then
13234   echo $ECHO_N "(cached) $ECHO_C" >&6
13235 fi
13236 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13237 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13238 else
13239   # Is the header compilable?
13240 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13241 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13242 cat >conftest.$ac_ext <<_ACEOF
13243 /* confdefs.h.  */
13244 _ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h.  */
13248 $ac_includes_default
13249 #include <opagent.h>
13250 _ACEOF
13251 rm -f conftest.$ac_objext
13252 if { (ac_try="$ac_compile"
13253 case "(($ac_try" in
13254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13255   *) ac_try_echo=$ac_try;;
13256 esac
13257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13258   (eval "$ac_compile") 2>conftest.er1
13259   ac_status=$?
13260   grep -v '^ *+' conftest.er1 >conftest.err
13261   rm -f conftest.er1
13262   cat conftest.err >&5
13263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264   (exit $ac_status); } &&
13265          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13266   { (case "(($ac_try" in
13267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13268   *) ac_try_echo=$ac_try;;
13269 esac
13270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13271   (eval "$ac_try") 2>&5
13272   ac_status=$?
13273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274   (exit $ac_status); }; } &&
13275          { ac_try='test -s conftest.$ac_objext'
13276   { (case "(($ac_try" in
13277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13278   *) ac_try_echo=$ac_try;;
13279 esac
13280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13281   (eval "$ac_try") 2>&5
13282   ac_status=$?
13283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284   (exit $ac_status); }; }; then
13285   ac_header_compiler=yes
13286 else
13287   echo "$as_me: failed program was:" >&5
13288 sed 's/^/| /' conftest.$ac_ext >&5
13289
13290         ac_header_compiler=no
13291 fi
13292
13293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13294 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13295 echo "${ECHO_T}$ac_header_compiler" >&6; }
13296
13297 # Is the header present?
13298 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13299 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13300 cat >conftest.$ac_ext <<_ACEOF
13301 /* confdefs.h.  */
13302 _ACEOF
13303 cat confdefs.h >>conftest.$ac_ext
13304 cat >>conftest.$ac_ext <<_ACEOF
13305 /* end confdefs.h.  */
13306 #include <opagent.h>
13307 _ACEOF
13308 if { (ac_try="$ac_cpp conftest.$ac_ext"
13309 case "(($ac_try" in
13310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13311   *) ac_try_echo=$ac_try;;
13312 esac
13313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13314   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13315   ac_status=$?
13316   grep -v '^ *+' conftest.er1 >conftest.err
13317   rm -f conftest.er1
13318   cat conftest.err >&5
13319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320   (exit $ac_status); } >/dev/null; then
13321   if test -s conftest.err; then
13322     ac_cpp_err=$ac_c_preproc_warn_flag
13323     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13324   else
13325     ac_cpp_err=
13326   fi
13327 else
13328   ac_cpp_err=yes
13329 fi
13330 if test -z "$ac_cpp_err"; then
13331   ac_header_preproc=yes
13332 else
13333   echo "$as_me: failed program was:" >&5
13334 sed 's/^/| /' conftest.$ac_ext >&5
13335
13336   ac_header_preproc=no
13337 fi
13338
13339 rm -f conftest.err conftest.$ac_ext
13340 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13341 echo "${ECHO_T}$ac_header_preproc" >&6; }
13342
13343 # So?  What about this header?
13344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13345   yes:no: )
13346     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13347 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13348     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13349 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13350     ac_header_preproc=yes
13351     ;;
13352   no:yes:* )
13353     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13354 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13355     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13356 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13357     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13358 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13359     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13360 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13361     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13362 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13363     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13364 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13365     ( cat <<\_ASBOX
13366 ## ------------------------------------ ##
13367 ## Report this to http://llvm.org/bugs/ ##
13368 ## ------------------------------------ ##
13369 _ASBOX
13370      ) | sed "s/^/$as_me: WARNING:     /" >&2
13371     ;;
13372 esac
13373 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13374 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13375 if test "${ac_cv_header_opagent_h+set}" = set; then
13376   echo $ECHO_N "(cached) $ECHO_C" >&6
13377 else
13378   ac_cv_header_opagent_h=$ac_header_preproc
13379 fi
13380 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13381 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13382
13383 fi
13384 if test $ac_cv_header_opagent_h = yes; then
13385   :
13386 else
13387
13388               echo "Error! You need to have opagent.h around."
13389               exit -1
13390
13391 fi
13392
13393
13394           fi ;;
13395         *)
13396           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13397 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13398    { (exit 1); exit 1; }; } ;;
13399       esac
13400
13401 else
13402
13403       USE_OPROFILE=0
13404
13405
13406 fi
13407
13408
13409 cat >>confdefs.h <<_ACEOF
13410 #define LLVM_USE_OPROFILE $USE_OPROFILE
13411 _ACEOF
13412
13413
13414
13415 # Check whether --with-intel-jitevents was given.
13416 if test "${with_intel_jitevents+set}" = set; then
13417   withval=$with_intel_jitevents;
13418       case $llvm_cv_os_type in
13419         Linux|Win32|Cygwin|MingW) ;;
13420         *)
13421           { { echo "$as_me:$LINENO: error:
13422             Intel JIT API support is available on Linux and Windows only.\"" >&5
13423 echo "$as_me: error:
13424             Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13425    { (exit 1); exit 1; }; } ;;
13426       esac
13427
13428       USE_INTEL_JITEVENTS=1
13429
13430       case "$llvm_cv_target_arch" in
13431         x86)    llvm_intel_jitevents_archdir="lib32";;
13432         x86_64) llvm_intel_jitevents_archdir="lib64";;
13433         *)      echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13434                 exit -1;;
13435       esac
13436       INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13437       INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13438       case "$withval" in
13439         /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13440                                   INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13441         *) ;;
13442       esac
13443
13444
13445
13446
13447       LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13448       CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13449
13450       { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13451 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13452 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13453   echo $ECHO_N "(cached) $ECHO_C" >&6
13454 else
13455   ac_func_search_save_LIBS=$LIBS
13456 cat >conftest.$ac_ext <<_ACEOF
13457 /* confdefs.h.  */
13458 _ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h.  */
13462
13463 /* Override any GCC internal prototype to avoid an error.
13464    Use char because int might match the return type of a GCC
13465    builtin and then its argument prototype would still apply.  */
13466 #ifdef __cplusplus
13467 extern "C"
13468 #endif
13469 char iJIT_IsProfilingActive ();
13470 int
13471 main ()
13472 {
13473 return iJIT_IsProfilingActive ();
13474   ;
13475   return 0;
13476 }
13477 _ACEOF
13478 for ac_lib in '' jitprofiling; do
13479   if test -z "$ac_lib"; then
13480     ac_res="none required"
13481   else
13482     ac_res=-l$ac_lib
13483     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13484   fi
13485   rm -f conftest.$ac_objext conftest$ac_exeext
13486 if { (ac_try="$ac_link"
13487 case "(($ac_try" in
13488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489   *) ac_try_echo=$ac_try;;
13490 esac
13491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13492   (eval "$ac_link") 2>conftest.er1
13493   ac_status=$?
13494   grep -v '^ *+' conftest.er1 >conftest.err
13495   rm -f conftest.er1
13496   cat conftest.err >&5
13497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498   (exit $ac_status); } &&
13499          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13500   { (case "(($ac_try" in
13501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13502   *) ac_try_echo=$ac_try;;
13503 esac
13504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13505   (eval "$ac_try") 2>&5
13506   ac_status=$?
13507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508   (exit $ac_status); }; } &&
13509          { ac_try='test -s conftest$ac_exeext'
13510   { (case "(($ac_try" in
13511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13512   *) ac_try_echo=$ac_try;;
13513 esac
13514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13515   (eval "$ac_try") 2>&5
13516   ac_status=$?
13517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518   (exit $ac_status); }; }; then
13519   ac_cv_search_iJIT_IsProfilingActive=$ac_res
13520 else
13521   echo "$as_me: failed program was:" >&5
13522 sed 's/^/| /' conftest.$ac_ext >&5
13523
13524
13525 fi
13526
13527 rm -f core conftest.err conftest.$ac_objext \
13528       conftest$ac_exeext
13529   if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13530   break
13531 fi
13532 done
13533 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13534   :
13535 else
13536   ac_cv_search_iJIT_IsProfilingActive=no
13537 fi
13538 rm conftest.$ac_ext
13539 LIBS=$ac_func_search_save_LIBS
13540 fi
13541 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13542 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13543 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13544 if test "$ac_res" != no; then
13545   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13546
13547 else
13548
13549         echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13550         exit -1
13551
13552 fi
13553
13554       if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13555   { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13556 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13557 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13558   echo $ECHO_N "(cached) $ECHO_C" >&6
13559 fi
13560 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13561 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13562 else
13563   # Is the header compilable?
13564 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13565 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13566 cat >conftest.$ac_ext <<_ACEOF
13567 /* confdefs.h.  */
13568 _ACEOF
13569 cat confdefs.h >>conftest.$ac_ext
13570 cat >>conftest.$ac_ext <<_ACEOF
13571 /* end confdefs.h.  */
13572 $ac_includes_default
13573 #include <jitprofiling.h>
13574 _ACEOF
13575 rm -f conftest.$ac_objext
13576 if { (ac_try="$ac_compile"
13577 case "(($ac_try" in
13578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13579   *) ac_try_echo=$ac_try;;
13580 esac
13581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13582   (eval "$ac_compile") 2>conftest.er1
13583   ac_status=$?
13584   grep -v '^ *+' conftest.er1 >conftest.err
13585   rm -f conftest.er1
13586   cat conftest.err >&5
13587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588   (exit $ac_status); } &&
13589          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13590   { (case "(($ac_try" in
13591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13592   *) ac_try_echo=$ac_try;;
13593 esac
13594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13595   (eval "$ac_try") 2>&5
13596   ac_status=$?
13597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598   (exit $ac_status); }; } &&
13599          { ac_try='test -s conftest.$ac_objext'
13600   { (case "(($ac_try" in
13601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13602   *) ac_try_echo=$ac_try;;
13603 esac
13604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13605   (eval "$ac_try") 2>&5
13606   ac_status=$?
13607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608   (exit $ac_status); }; }; then
13609   ac_header_compiler=yes
13610 else
13611   echo "$as_me: failed program was:" >&5
13612 sed 's/^/| /' conftest.$ac_ext >&5
13613
13614         ac_header_compiler=no
13615 fi
13616
13617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13619 echo "${ECHO_T}$ac_header_compiler" >&6; }
13620
13621 # Is the header present?
13622 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13623 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13624 cat >conftest.$ac_ext <<_ACEOF
13625 /* confdefs.h.  */
13626 _ACEOF
13627 cat confdefs.h >>conftest.$ac_ext
13628 cat >>conftest.$ac_ext <<_ACEOF
13629 /* end confdefs.h.  */
13630 #include <jitprofiling.h>
13631 _ACEOF
13632 if { (ac_try="$ac_cpp conftest.$ac_ext"
13633 case "(($ac_try" in
13634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13635   *) ac_try_echo=$ac_try;;
13636 esac
13637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13638   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13639   ac_status=$?
13640   grep -v '^ *+' conftest.er1 >conftest.err
13641   rm -f conftest.er1
13642   cat conftest.err >&5
13643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644   (exit $ac_status); } >/dev/null; then
13645   if test -s conftest.err; then
13646     ac_cpp_err=$ac_c_preproc_warn_flag
13647     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13648   else
13649     ac_cpp_err=
13650   fi
13651 else
13652   ac_cpp_err=yes
13653 fi
13654 if test -z "$ac_cpp_err"; then
13655   ac_header_preproc=yes
13656 else
13657   echo "$as_me: failed program was:" >&5
13658 sed 's/^/| /' conftest.$ac_ext >&5
13659
13660   ac_header_preproc=no
13661 fi
13662
13663 rm -f conftest.err conftest.$ac_ext
13664 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13665 echo "${ECHO_T}$ac_header_preproc" >&6; }
13666
13667 # So?  What about this header?
13668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13669   yes:no: )
13670     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13671 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13672     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13673 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13674     ac_header_preproc=yes
13675     ;;
13676   no:yes:* )
13677     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13678 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13679     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&5
13680 echo "$as_me: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&2;}
13681     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13682 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13683     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&5
13684 echo "$as_me: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13685     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13686 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13687     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13688 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13689     ( cat <<\_ASBOX
13690 ## ------------------------------------ ##
13691 ## Report this to http://llvm.org/bugs/ ##
13692 ## ------------------------------------ ##
13693 _ASBOX
13694      ) | sed "s/^/$as_me: WARNING:     /" >&2
13695     ;;
13696 esac
13697 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13698 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13699 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13700   echo $ECHO_N "(cached) $ECHO_C" >&6
13701 else
13702   ac_cv_header_jitprofiling_h=$ac_header_preproc
13703 fi
13704 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13705 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13706
13707 fi
13708 if test $ac_cv_header_jitprofiling_h = yes; then
13709   :
13710 else
13711
13712         echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13713         exit -1
13714
13715 fi
13716
13717
13718
13719
13720 else
13721
13722       USE_INTEL_JITEVENTS=0
13723
13724
13725 fi
13726
13727
13728 cat >>confdefs.h <<_ACEOF
13729 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13730 _ACEOF
13731
13732
13733
13734
13735
13736
13737
13738
13739 ac_header_dirent=no
13740 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13741   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13742 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13743 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13745   echo $ECHO_N "(cached) $ECHO_C" >&6
13746 else
13747   cat >conftest.$ac_ext <<_ACEOF
13748 /* confdefs.h.  */
13749 _ACEOF
13750 cat confdefs.h >>conftest.$ac_ext
13751 cat >>conftest.$ac_ext <<_ACEOF
13752 /* end confdefs.h.  */
13753 #include <sys/types.h>
13754 #include <$ac_hdr>
13755
13756 int
13757 main ()
13758 {
13759 if ((DIR *) 0)
13760 return 0;
13761   ;
13762   return 0;
13763 }
13764 _ACEOF
13765 rm -f conftest.$ac_objext
13766 if { (ac_try="$ac_compile"
13767 case "(($ac_try" in
13768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769   *) ac_try_echo=$ac_try;;
13770 esac
13771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772   (eval "$ac_compile") 2>conftest.er1
13773   ac_status=$?
13774   grep -v '^ *+' conftest.er1 >conftest.err
13775   rm -f conftest.er1
13776   cat conftest.err >&5
13777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778   (exit $ac_status); } &&
13779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13780   { (case "(($ac_try" in
13781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782   *) ac_try_echo=$ac_try;;
13783 esac
13784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13785   (eval "$ac_try") 2>&5
13786   ac_status=$?
13787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788   (exit $ac_status); }; } &&
13789          { ac_try='test -s conftest.$ac_objext'
13790   { (case "(($ac_try" in
13791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792   *) ac_try_echo=$ac_try;;
13793 esac
13794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13795   (eval "$ac_try") 2>&5
13796   ac_status=$?
13797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798   (exit $ac_status); }; }; then
13799   eval "$as_ac_Header=yes"
13800 else
13801   echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13803
13804         eval "$as_ac_Header=no"
13805 fi
13806
13807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13808 fi
13809 ac_res=`eval echo '${'$as_ac_Header'}'`
13810                { echo "$as_me:$LINENO: result: $ac_res" >&5
13811 echo "${ECHO_T}$ac_res" >&6; }
13812 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13813   cat >>confdefs.h <<_ACEOF
13814 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13815 _ACEOF
13816
13817 ac_header_dirent=$ac_hdr; break
13818 fi
13819
13820 done
13821 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13822 if test $ac_header_dirent = dirent.h; then
13823   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13824 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13825 if test "${ac_cv_search_opendir+set}" = set; then
13826   echo $ECHO_N "(cached) $ECHO_C" >&6
13827 else
13828   ac_func_search_save_LIBS=$LIBS
13829 cat >conftest.$ac_ext <<_ACEOF
13830 /* confdefs.h.  */
13831 _ACEOF
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h.  */
13835
13836 /* Override any GCC internal prototype to avoid an error.
13837    Use char because int might match the return type of a GCC
13838    builtin and then its argument prototype would still apply.  */
13839 #ifdef __cplusplus
13840 extern "C"
13841 #endif
13842 char opendir ();
13843 int
13844 main ()
13845 {
13846 return opendir ();
13847   ;
13848   return 0;
13849 }
13850 _ACEOF
13851 for ac_lib in '' dir; do
13852   if test -z "$ac_lib"; then
13853     ac_res="none required"
13854   else
13855     ac_res=-l$ac_lib
13856     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13857   fi
13858   rm -f conftest.$ac_objext conftest$ac_exeext
13859 if { (ac_try="$ac_link"
13860 case "(($ac_try" in
13861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13862   *) ac_try_echo=$ac_try;;
13863 esac
13864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13865   (eval "$ac_link") 2>conftest.er1
13866   ac_status=$?
13867   grep -v '^ *+' conftest.er1 >conftest.err
13868   rm -f conftest.er1
13869   cat conftest.err >&5
13870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871   (exit $ac_status); } &&
13872          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13873   { (case "(($ac_try" in
13874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13875   *) ac_try_echo=$ac_try;;
13876 esac
13877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13878   (eval "$ac_try") 2>&5
13879   ac_status=$?
13880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881   (exit $ac_status); }; } &&
13882          { ac_try='test -s conftest$ac_exeext'
13883   { (case "(($ac_try" in
13884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885   *) ac_try_echo=$ac_try;;
13886 esac
13887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888   (eval "$ac_try") 2>&5
13889   ac_status=$?
13890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891   (exit $ac_status); }; }; then
13892   ac_cv_search_opendir=$ac_res
13893 else
13894   echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13896
13897
13898 fi
13899
13900 rm -f core conftest.err conftest.$ac_objext \
13901       conftest$ac_exeext
13902   if test "${ac_cv_search_opendir+set}" = set; then
13903   break
13904 fi
13905 done
13906 if test "${ac_cv_search_opendir+set}" = set; then
13907   :
13908 else
13909   ac_cv_search_opendir=no
13910 fi
13911 rm conftest.$ac_ext
13912 LIBS=$ac_func_search_save_LIBS
13913 fi
13914 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13915 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13916 ac_res=$ac_cv_search_opendir
13917 if test "$ac_res" != no; then
13918   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13919
13920 fi
13921
13922 else
13923   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13924 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13925 if test "${ac_cv_search_opendir+set}" = set; then
13926   echo $ECHO_N "(cached) $ECHO_C" >&6
13927 else
13928   ac_func_search_save_LIBS=$LIBS
13929 cat >conftest.$ac_ext <<_ACEOF
13930 /* confdefs.h.  */
13931 _ACEOF
13932 cat confdefs.h >>conftest.$ac_ext
13933 cat >>conftest.$ac_ext <<_ACEOF
13934 /* end confdefs.h.  */
13935
13936 /* Override any GCC internal prototype to avoid an error.
13937    Use char because int might match the return type of a GCC
13938    builtin and then its argument prototype would still apply.  */
13939 #ifdef __cplusplus
13940 extern "C"
13941 #endif
13942 char opendir ();
13943 int
13944 main ()
13945 {
13946 return opendir ();
13947   ;
13948   return 0;
13949 }
13950 _ACEOF
13951 for ac_lib in '' x; do
13952   if test -z "$ac_lib"; then
13953     ac_res="none required"
13954   else
13955     ac_res=-l$ac_lib
13956     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13957   fi
13958   rm -f conftest.$ac_objext conftest$ac_exeext
13959 if { (ac_try="$ac_link"
13960 case "(($ac_try" in
13961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13962   *) ac_try_echo=$ac_try;;
13963 esac
13964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13965   (eval "$ac_link") 2>conftest.er1
13966   ac_status=$?
13967   grep -v '^ *+' conftest.er1 >conftest.err
13968   rm -f conftest.er1
13969   cat conftest.err >&5
13970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971   (exit $ac_status); } &&
13972          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13973   { (case "(($ac_try" in
13974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975   *) ac_try_echo=$ac_try;;
13976 esac
13977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978   (eval "$ac_try") 2>&5
13979   ac_status=$?
13980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981   (exit $ac_status); }; } &&
13982          { ac_try='test -s conftest$ac_exeext'
13983   { (case "(($ac_try" in
13984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13985   *) ac_try_echo=$ac_try;;
13986 esac
13987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13988   (eval "$ac_try") 2>&5
13989   ac_status=$?
13990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991   (exit $ac_status); }; }; then
13992   ac_cv_search_opendir=$ac_res
13993 else
13994   echo "$as_me: failed program was:" >&5
13995 sed 's/^/| /' conftest.$ac_ext >&5
13996
13997
13998 fi
13999
14000 rm -f core conftest.err conftest.$ac_objext \
14001       conftest$ac_exeext
14002   if test "${ac_cv_search_opendir+set}" = set; then
14003   break
14004 fi
14005 done
14006 if test "${ac_cv_search_opendir+set}" = set; then
14007   :
14008 else
14009   ac_cv_search_opendir=no
14010 fi
14011 rm conftest.$ac_ext
14012 LIBS=$ac_func_search_save_LIBS
14013 fi
14014 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14015 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14016 ac_res=$ac_cv_search_opendir
14017 if test "$ac_res" != no; then
14018   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14019
14020 fi
14021
14022 fi
14023
14024 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14025 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14026 if test "${ac_cv_header_mmap_anon+set}" = set; then
14027   echo $ECHO_N "(cached) $ECHO_C" >&6
14028 else
14029    ac_ext=c
14030 ac_cpp='$CPP $CPPFLAGS'
14031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14034
14035   cat >conftest.$ac_ext <<_ACEOF
14036 /* confdefs.h.  */
14037 _ACEOF
14038 cat confdefs.h >>conftest.$ac_ext
14039 cat >>conftest.$ac_ext <<_ACEOF
14040 /* end confdefs.h.  */
14041 #include <sys/mman.h>
14042 #include <unistd.h>
14043 #include <fcntl.h>
14044 int
14045 main ()
14046 {
14047 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14048   ;
14049   return 0;
14050 }
14051 _ACEOF
14052 rm -f conftest.$ac_objext
14053 if { (ac_try="$ac_compile"
14054 case "(($ac_try" in
14055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14056   *) ac_try_echo=$ac_try;;
14057 esac
14058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14059   (eval "$ac_compile") 2>conftest.er1
14060   ac_status=$?
14061   grep -v '^ *+' conftest.er1 >conftest.err
14062   rm -f conftest.er1
14063   cat conftest.err >&5
14064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065   (exit $ac_status); } &&
14066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14067   { (case "(($ac_try" in
14068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14069   *) ac_try_echo=$ac_try;;
14070 esac
14071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14072   (eval "$ac_try") 2>&5
14073   ac_status=$?
14074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075   (exit $ac_status); }; } &&
14076          { ac_try='test -s conftest.$ac_objext'
14077   { (case "(($ac_try" in
14078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14079   *) ac_try_echo=$ac_try;;
14080 esac
14081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14082   (eval "$ac_try") 2>&5
14083   ac_status=$?
14084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085   (exit $ac_status); }; }; then
14086   ac_cv_header_mmap_anon=yes
14087 else
14088   echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14090
14091         ac_cv_header_mmap_anon=no
14092 fi
14093
14094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14095   ac_ext=c
14096 ac_cpp='$CPP $CPPFLAGS'
14097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14100
14101
14102 fi
14103 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14104 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14105 if test "$ac_cv_header_mmap_anon" = yes; then
14106
14107 cat >>confdefs.h <<\_ACEOF
14108 #define HAVE_MMAP_ANONYMOUS 1
14109 _ACEOF
14110
14111 fi
14112
14113 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14114 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14115 if test "${ac_cv_header_stat_broken+set}" = set; then
14116   echo $ECHO_N "(cached) $ECHO_C" >&6
14117 else
14118   cat >conftest.$ac_ext <<_ACEOF
14119 /* confdefs.h.  */
14120 _ACEOF
14121 cat confdefs.h >>conftest.$ac_ext
14122 cat >>conftest.$ac_ext <<_ACEOF
14123 /* end confdefs.h.  */
14124 #include <sys/types.h>
14125 #include <sys/stat.h>
14126
14127 #if defined S_ISBLK && defined S_IFDIR
14128 # if S_ISBLK (S_IFDIR)
14129 You lose.
14130 # endif
14131 #endif
14132
14133 #if defined S_ISBLK && defined S_IFCHR
14134 # if S_ISBLK (S_IFCHR)
14135 You lose.
14136 # endif
14137 #endif
14138
14139 #if defined S_ISLNK && defined S_IFREG
14140 # if S_ISLNK (S_IFREG)
14141 You lose.
14142 # endif
14143 #endif
14144
14145 #if defined S_ISSOCK && defined S_IFREG
14146 # if S_ISSOCK (S_IFREG)
14147 You lose.
14148 # endif
14149 #endif
14150
14151 _ACEOF
14152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14153   $EGREP "You lose" >/dev/null 2>&1; then
14154   ac_cv_header_stat_broken=yes
14155 else
14156   ac_cv_header_stat_broken=no
14157 fi
14158 rm -f conftest*
14159
14160 fi
14161 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14162 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14163 if test $ac_cv_header_stat_broken = yes; then
14164
14165 cat >>confdefs.h <<\_ACEOF
14166 #define STAT_MACROS_BROKEN 1
14167 _ACEOF
14168
14169 fi
14170
14171 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14172 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14173 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14174   echo $ECHO_N "(cached) $ECHO_C" >&6
14175 else
14176   cat >conftest.$ac_ext <<_ACEOF
14177 /* confdefs.h.  */
14178 _ACEOF
14179 cat confdefs.h >>conftest.$ac_ext
14180 cat >>conftest.$ac_ext <<_ACEOF
14181 /* end confdefs.h.  */
14182 #include <sys/types.h>
14183 #include <sys/wait.h>
14184 #ifndef WEXITSTATUS
14185 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14186 #endif
14187 #ifndef WIFEXITED
14188 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14189 #endif
14190
14191 int
14192 main ()
14193 {
14194   int s;
14195   wait (&s);
14196   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14197   ;
14198   return 0;
14199 }
14200 _ACEOF
14201 rm -f conftest.$ac_objext
14202 if { (ac_try="$ac_compile"
14203 case "(($ac_try" in
14204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14205   *) ac_try_echo=$ac_try;;
14206 esac
14207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14208   (eval "$ac_compile") 2>conftest.er1
14209   ac_status=$?
14210   grep -v '^ *+' conftest.er1 >conftest.err
14211   rm -f conftest.er1
14212   cat conftest.err >&5
14213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214   (exit $ac_status); } &&
14215          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14216   { (case "(($ac_try" in
14217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14218   *) ac_try_echo=$ac_try;;
14219 esac
14220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14221   (eval "$ac_try") 2>&5
14222   ac_status=$?
14223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224   (exit $ac_status); }; } &&
14225          { ac_try='test -s conftest.$ac_objext'
14226   { (case "(($ac_try" in
14227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14228   *) ac_try_echo=$ac_try;;
14229 esac
14230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14231   (eval "$ac_try") 2>&5
14232   ac_status=$?
14233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234   (exit $ac_status); }; }; then
14235   ac_cv_header_sys_wait_h=yes
14236 else
14237   echo "$as_me: failed program was:" >&5
14238 sed 's/^/| /' conftest.$ac_ext >&5
14239
14240         ac_cv_header_sys_wait_h=no
14241 fi
14242
14243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14244 fi
14245 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14246 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14247 if test $ac_cv_header_sys_wait_h = yes; then
14248
14249 cat >>confdefs.h <<\_ACEOF
14250 #define HAVE_SYS_WAIT_H 1
14251 _ACEOF
14252
14253 fi
14254
14255 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14256 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14257 if test "${ac_cv_header_time+set}" = set; then
14258   echo $ECHO_N "(cached) $ECHO_C" >&6
14259 else
14260   cat >conftest.$ac_ext <<_ACEOF
14261 /* confdefs.h.  */
14262 _ACEOF
14263 cat confdefs.h >>conftest.$ac_ext
14264 cat >>conftest.$ac_ext <<_ACEOF
14265 /* end confdefs.h.  */
14266 #include <sys/types.h>
14267 #include <sys/time.h>
14268 #include <time.h>
14269
14270 int
14271 main ()
14272 {
14273 if ((struct tm *) 0)
14274 return 0;
14275   ;
14276   return 0;
14277 }
14278 _ACEOF
14279 rm -f conftest.$ac_objext
14280 if { (ac_try="$ac_compile"
14281 case "(($ac_try" in
14282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14283   *) ac_try_echo=$ac_try;;
14284 esac
14285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14286   (eval "$ac_compile") 2>conftest.er1
14287   ac_status=$?
14288   grep -v '^ *+' conftest.er1 >conftest.err
14289   rm -f conftest.er1
14290   cat conftest.err >&5
14291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292   (exit $ac_status); } &&
14293          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14294   { (case "(($ac_try" in
14295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14296   *) ac_try_echo=$ac_try;;
14297 esac
14298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14299   (eval "$ac_try") 2>&5
14300   ac_status=$?
14301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302   (exit $ac_status); }; } &&
14303          { ac_try='test -s conftest.$ac_objext'
14304   { (case "(($ac_try" in
14305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306   *) ac_try_echo=$ac_try;;
14307 esac
14308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309   (eval "$ac_try") 2>&5
14310   ac_status=$?
14311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312   (exit $ac_status); }; }; then
14313   ac_cv_header_time=yes
14314 else
14315   echo "$as_me: failed program was:" >&5
14316 sed 's/^/| /' conftest.$ac_ext >&5
14317
14318         ac_cv_header_time=no
14319 fi
14320
14321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14322 fi
14323 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14324 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14325 if test $ac_cv_header_time = yes; then
14326
14327 cat >>confdefs.h <<\_ACEOF
14328 #define TIME_WITH_SYS_TIME 1
14329 _ACEOF
14330
14331 fi
14332
14333
14334
14335
14336
14337
14338
14339
14340 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14341 do
14342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14344   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14347   echo $ECHO_N "(cached) $ECHO_C" >&6
14348 fi
14349 ac_res=`eval echo '${'$as_ac_Header'}'`
14350                { echo "$as_me:$LINENO: result: $ac_res" >&5
14351 echo "${ECHO_T}$ac_res" >&6; }
14352 else
14353   # Is the header compilable?
14354 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14356 cat >conftest.$ac_ext <<_ACEOF
14357 /* confdefs.h.  */
14358 _ACEOF
14359 cat confdefs.h >>conftest.$ac_ext
14360 cat >>conftest.$ac_ext <<_ACEOF
14361 /* end confdefs.h.  */
14362 $ac_includes_default
14363 #include <$ac_header>
14364 _ACEOF
14365 rm -f conftest.$ac_objext
14366 if { (ac_try="$ac_compile"
14367 case "(($ac_try" in
14368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14369   *) ac_try_echo=$ac_try;;
14370 esac
14371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14372   (eval "$ac_compile") 2>conftest.er1
14373   ac_status=$?
14374   grep -v '^ *+' conftest.er1 >conftest.err
14375   rm -f conftest.er1
14376   cat conftest.err >&5
14377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378   (exit $ac_status); } &&
14379          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14380   { (case "(($ac_try" in
14381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14382   *) ac_try_echo=$ac_try;;
14383 esac
14384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14385   (eval "$ac_try") 2>&5
14386   ac_status=$?
14387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388   (exit $ac_status); }; } &&
14389          { ac_try='test -s conftest.$ac_objext'
14390   { (case "(($ac_try" in
14391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392   *) ac_try_echo=$ac_try;;
14393 esac
14394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14395   (eval "$ac_try") 2>&5
14396   ac_status=$?
14397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398   (exit $ac_status); }; }; then
14399   ac_header_compiler=yes
14400 else
14401   echo "$as_me: failed program was:" >&5
14402 sed 's/^/| /' conftest.$ac_ext >&5
14403
14404         ac_header_compiler=no
14405 fi
14406
14407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14408 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14409 echo "${ECHO_T}$ac_header_compiler" >&6; }
14410
14411 # Is the header present?
14412 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14414 cat >conftest.$ac_ext <<_ACEOF
14415 /* confdefs.h.  */
14416 _ACEOF
14417 cat confdefs.h >>conftest.$ac_ext
14418 cat >>conftest.$ac_ext <<_ACEOF
14419 /* end confdefs.h.  */
14420 #include <$ac_header>
14421 _ACEOF
14422 if { (ac_try="$ac_cpp conftest.$ac_ext"
14423 case "(($ac_try" in
14424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425   *) ac_try_echo=$ac_try;;
14426 esac
14427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14429   ac_status=$?
14430   grep -v '^ *+' conftest.er1 >conftest.err
14431   rm -f conftest.er1
14432   cat conftest.err >&5
14433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434   (exit $ac_status); } >/dev/null; then
14435   if test -s conftest.err; then
14436     ac_cpp_err=$ac_c_preproc_warn_flag
14437     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14438   else
14439     ac_cpp_err=
14440   fi
14441 else
14442   ac_cpp_err=yes
14443 fi
14444 if test -z "$ac_cpp_err"; then
14445   ac_header_preproc=yes
14446 else
14447   echo "$as_me: failed program was:" >&5
14448 sed 's/^/| /' conftest.$ac_ext >&5
14449
14450   ac_header_preproc=no
14451 fi
14452
14453 rm -f conftest.err conftest.$ac_ext
14454 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14455 echo "${ECHO_T}$ac_header_preproc" >&6; }
14456
14457 # So?  What about this header?
14458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14459   yes:no: )
14460     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14462     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14463 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14464     ac_header_preproc=yes
14465     ;;
14466   no:yes:* )
14467     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14468 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14469     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14470 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14471     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14472 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14473     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14474 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14475     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14477     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14478 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14479     ( cat <<\_ASBOX
14480 ## ------------------------------------ ##
14481 ## Report this to http://llvm.org/bugs/ ##
14482 ## ------------------------------------ ##
14483 _ASBOX
14484      ) | sed "s/^/$as_me: WARNING:     /" >&2
14485     ;;
14486 esac
14487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14490   echo $ECHO_N "(cached) $ECHO_C" >&6
14491 else
14492   eval "$as_ac_Header=\$ac_header_preproc"
14493 fi
14494 ac_res=`eval echo '${'$as_ac_Header'}'`
14495                { echo "$as_me:$LINENO: result: $ac_res" >&5
14496 echo "${ECHO_T}$ac_res" >&6; }
14497
14498 fi
14499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14500   cat >>confdefs.h <<_ACEOF
14501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14502 _ACEOF
14503
14504 fi
14505
14506 done
14507
14508
14509
14510
14511
14512
14513
14514 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14515 do
14516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14518   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14521   echo $ECHO_N "(cached) $ECHO_C" >&6
14522 fi
14523 ac_res=`eval echo '${'$as_ac_Header'}'`
14524                { echo "$as_me:$LINENO: result: $ac_res" >&5
14525 echo "${ECHO_T}$ac_res" >&6; }
14526 else
14527   # Is the header compilable?
14528 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14530 cat >conftest.$ac_ext <<_ACEOF
14531 /* confdefs.h.  */
14532 _ACEOF
14533 cat confdefs.h >>conftest.$ac_ext
14534 cat >>conftest.$ac_ext <<_ACEOF
14535 /* end confdefs.h.  */
14536 $ac_includes_default
14537 #include <$ac_header>
14538 _ACEOF
14539 rm -f conftest.$ac_objext
14540 if { (ac_try="$ac_compile"
14541 case "(($ac_try" in
14542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14543   *) ac_try_echo=$ac_try;;
14544 esac
14545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14546   (eval "$ac_compile") 2>conftest.er1
14547   ac_status=$?
14548   grep -v '^ *+' conftest.er1 >conftest.err
14549   rm -f conftest.er1
14550   cat conftest.err >&5
14551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552   (exit $ac_status); } &&
14553          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14554   { (case "(($ac_try" in
14555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14556   *) ac_try_echo=$ac_try;;
14557 esac
14558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14559   (eval "$ac_try") 2>&5
14560   ac_status=$?
14561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562   (exit $ac_status); }; } &&
14563          { ac_try='test -s conftest.$ac_objext'
14564   { (case "(($ac_try" in
14565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566   *) ac_try_echo=$ac_try;;
14567 esac
14568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14569   (eval "$ac_try") 2>&5
14570   ac_status=$?
14571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572   (exit $ac_status); }; }; then
14573   ac_header_compiler=yes
14574 else
14575   echo "$as_me: failed program was:" >&5
14576 sed 's/^/| /' conftest.$ac_ext >&5
14577
14578         ac_header_compiler=no
14579 fi
14580
14581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14583 echo "${ECHO_T}$ac_header_compiler" >&6; }
14584
14585 # Is the header present?
14586 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14588 cat >conftest.$ac_ext <<_ACEOF
14589 /* confdefs.h.  */
14590 _ACEOF
14591 cat confdefs.h >>conftest.$ac_ext
14592 cat >>conftest.$ac_ext <<_ACEOF
14593 /* end confdefs.h.  */
14594 #include <$ac_header>
14595 _ACEOF
14596 if { (ac_try="$ac_cpp conftest.$ac_ext"
14597 case "(($ac_try" in
14598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599   *) ac_try_echo=$ac_try;;
14600 esac
14601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14603   ac_status=$?
14604   grep -v '^ *+' conftest.er1 >conftest.err
14605   rm -f conftest.er1
14606   cat conftest.err >&5
14607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608   (exit $ac_status); } >/dev/null; then
14609   if test -s conftest.err; then
14610     ac_cpp_err=$ac_c_preproc_warn_flag
14611     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14612   else
14613     ac_cpp_err=
14614   fi
14615 else
14616   ac_cpp_err=yes
14617 fi
14618 if test -z "$ac_cpp_err"; then
14619   ac_header_preproc=yes
14620 else
14621   echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14623
14624   ac_header_preproc=no
14625 fi
14626
14627 rm -f conftest.err conftest.$ac_ext
14628 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14629 echo "${ECHO_T}$ac_header_preproc" >&6; }
14630
14631 # So?  What about this header?
14632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14633   yes:no: )
14634     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14636     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14638     ac_header_preproc=yes
14639     ;;
14640   no:yes:* )
14641     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14643     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14644 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14645     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14647     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14648 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14649     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14651     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14653     ( cat <<\_ASBOX
14654 ## ------------------------------------ ##
14655 ## Report this to http://llvm.org/bugs/ ##
14656 ## ------------------------------------ ##
14657 _ASBOX
14658      ) | sed "s/^/$as_me: WARNING:     /" >&2
14659     ;;
14660 esac
14661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14664   echo $ECHO_N "(cached) $ECHO_C" >&6
14665 else
14666   eval "$as_ac_Header=\$ac_header_preproc"
14667 fi
14668 ac_res=`eval echo '${'$as_ac_Header'}'`
14669                { echo "$as_me:$LINENO: result: $ac_res" >&5
14670 echo "${ECHO_T}$ac_res" >&6; }
14671
14672 fi
14673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14674   cat >>confdefs.h <<_ACEOF
14675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14676 _ACEOF
14677
14678 fi
14679
14680 done
14681
14682
14683
14684 for ac_header in utime.h windows.h
14685 do
14686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14688   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14691   echo $ECHO_N "(cached) $ECHO_C" >&6
14692 fi
14693 ac_res=`eval echo '${'$as_ac_Header'}'`
14694                { echo "$as_me:$LINENO: result: $ac_res" >&5
14695 echo "${ECHO_T}$ac_res" >&6; }
14696 else
14697   # Is the header compilable?
14698 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14700 cat >conftest.$ac_ext <<_ACEOF
14701 /* confdefs.h.  */
14702 _ACEOF
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h.  */
14706 $ac_includes_default
14707 #include <$ac_header>
14708 _ACEOF
14709 rm -f conftest.$ac_objext
14710 if { (ac_try="$ac_compile"
14711 case "(($ac_try" in
14712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14713   *) ac_try_echo=$ac_try;;
14714 esac
14715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14716   (eval "$ac_compile") 2>conftest.er1
14717   ac_status=$?
14718   grep -v '^ *+' conftest.er1 >conftest.err
14719   rm -f conftest.er1
14720   cat conftest.err >&5
14721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722   (exit $ac_status); } &&
14723          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14724   { (case "(($ac_try" in
14725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726   *) ac_try_echo=$ac_try;;
14727 esac
14728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729   (eval "$ac_try") 2>&5
14730   ac_status=$?
14731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732   (exit $ac_status); }; } &&
14733          { ac_try='test -s conftest.$ac_objext'
14734   { (case "(($ac_try" in
14735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736   *) ac_try_echo=$ac_try;;
14737 esac
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739   (eval "$ac_try") 2>&5
14740   ac_status=$?
14741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742   (exit $ac_status); }; }; then
14743   ac_header_compiler=yes
14744 else
14745   echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14747
14748         ac_header_compiler=no
14749 fi
14750
14751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14752 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14753 echo "${ECHO_T}$ac_header_compiler" >&6; }
14754
14755 # Is the header present?
14756 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14758 cat >conftest.$ac_ext <<_ACEOF
14759 /* confdefs.h.  */
14760 _ACEOF
14761 cat confdefs.h >>conftest.$ac_ext
14762 cat >>conftest.$ac_ext <<_ACEOF
14763 /* end confdefs.h.  */
14764 #include <$ac_header>
14765 _ACEOF
14766 if { (ac_try="$ac_cpp conftest.$ac_ext"
14767 case "(($ac_try" in
14768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14769   *) ac_try_echo=$ac_try;;
14770 esac
14771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14772   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14773   ac_status=$?
14774   grep -v '^ *+' conftest.er1 >conftest.err
14775   rm -f conftest.er1
14776   cat conftest.err >&5
14777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778   (exit $ac_status); } >/dev/null; then
14779   if test -s conftest.err; then
14780     ac_cpp_err=$ac_c_preproc_warn_flag
14781     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14782   else
14783     ac_cpp_err=
14784   fi
14785 else
14786   ac_cpp_err=yes
14787 fi
14788 if test -z "$ac_cpp_err"; then
14789   ac_header_preproc=yes
14790 else
14791   echo "$as_me: failed program was:" >&5
14792 sed 's/^/| /' conftest.$ac_ext >&5
14793
14794   ac_header_preproc=no
14795 fi
14796
14797 rm -f conftest.err conftest.$ac_ext
14798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14799 echo "${ECHO_T}$ac_header_preproc" >&6; }
14800
14801 # So?  What about this header?
14802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14803   yes:no: )
14804     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14806     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14808     ac_header_preproc=yes
14809     ;;
14810   no:yes:* )
14811     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14813     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14814 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14815     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14817     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14818 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14819     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14821     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14823     ( cat <<\_ASBOX
14824 ## ------------------------------------ ##
14825 ## Report this to http://llvm.org/bugs/ ##
14826 ## ------------------------------------ ##
14827 _ASBOX
14828      ) | sed "s/^/$as_me: WARNING:     /" >&2
14829     ;;
14830 esac
14831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14834   echo $ECHO_N "(cached) $ECHO_C" >&6
14835 else
14836   eval "$as_ac_Header=\$ac_header_preproc"
14837 fi
14838 ac_res=`eval echo '${'$as_ac_Header'}'`
14839                { echo "$as_me:$LINENO: result: $ac_res" >&5
14840 echo "${ECHO_T}$ac_res" >&6; }
14841
14842 fi
14843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14844   cat >>confdefs.h <<_ACEOF
14845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14846 _ACEOF
14847
14848 fi
14849
14850 done
14851
14852
14853
14854
14855
14856
14857 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14858 do
14859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14861   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14864   echo $ECHO_N "(cached) $ECHO_C" >&6
14865 fi
14866 ac_res=`eval echo '${'$as_ac_Header'}'`
14867                { echo "$as_me:$LINENO: result: $ac_res" >&5
14868 echo "${ECHO_T}$ac_res" >&6; }
14869 else
14870   # Is the header compilable?
14871 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14873 cat >conftest.$ac_ext <<_ACEOF
14874 /* confdefs.h.  */
14875 _ACEOF
14876 cat confdefs.h >>conftest.$ac_ext
14877 cat >>conftest.$ac_ext <<_ACEOF
14878 /* end confdefs.h.  */
14879 $ac_includes_default
14880 #include <$ac_header>
14881 _ACEOF
14882 rm -f conftest.$ac_objext
14883 if { (ac_try="$ac_compile"
14884 case "(($ac_try" in
14885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886   *) ac_try_echo=$ac_try;;
14887 esac
14888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889   (eval "$ac_compile") 2>conftest.er1
14890   ac_status=$?
14891   grep -v '^ *+' conftest.er1 >conftest.err
14892   rm -f conftest.er1
14893   cat conftest.err >&5
14894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895   (exit $ac_status); } &&
14896          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14897   { (case "(($ac_try" in
14898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899   *) ac_try_echo=$ac_try;;
14900 esac
14901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14902   (eval "$ac_try") 2>&5
14903   ac_status=$?
14904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905   (exit $ac_status); }; } &&
14906          { ac_try='test -s conftest.$ac_objext'
14907   { (case "(($ac_try" in
14908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909   *) ac_try_echo=$ac_try;;
14910 esac
14911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14912   (eval "$ac_try") 2>&5
14913   ac_status=$?
14914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915   (exit $ac_status); }; }; then
14916   ac_header_compiler=yes
14917 else
14918   echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14920
14921         ac_header_compiler=no
14922 fi
14923
14924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14925 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14926 echo "${ECHO_T}$ac_header_compiler" >&6; }
14927
14928 # Is the header present?
14929 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14931 cat >conftest.$ac_ext <<_ACEOF
14932 /* confdefs.h.  */
14933 _ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h.  */
14937 #include <$ac_header>
14938 _ACEOF
14939 if { (ac_try="$ac_cpp conftest.$ac_ext"
14940 case "(($ac_try" in
14941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14942   *) ac_try_echo=$ac_try;;
14943 esac
14944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14945   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14946   ac_status=$?
14947   grep -v '^ *+' conftest.er1 >conftest.err
14948   rm -f conftest.er1
14949   cat conftest.err >&5
14950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951   (exit $ac_status); } >/dev/null; then
14952   if test -s conftest.err; then
14953     ac_cpp_err=$ac_c_preproc_warn_flag
14954     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14955   else
14956     ac_cpp_err=
14957   fi
14958 else
14959   ac_cpp_err=yes
14960 fi
14961 if test -z "$ac_cpp_err"; then
14962   ac_header_preproc=yes
14963 else
14964   echo "$as_me: failed program was:" >&5
14965 sed 's/^/| /' conftest.$ac_ext >&5
14966
14967   ac_header_preproc=no
14968 fi
14969
14970 rm -f conftest.err conftest.$ac_ext
14971 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14972 echo "${ECHO_T}$ac_header_preproc" >&6; }
14973
14974 # So?  What about this header?
14975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14976   yes:no: )
14977     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14979     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14980 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14981     ac_header_preproc=yes
14982     ;;
14983   no:yes:* )
14984     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14985 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14986     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14987 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14988     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14989 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14990     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14991 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14992     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14994     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14995 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14996     ( cat <<\_ASBOX
14997 ## ------------------------------------ ##
14998 ## Report this to http://llvm.org/bugs/ ##
14999 ## ------------------------------------ ##
15000 _ASBOX
15001      ) | sed "s/^/$as_me: WARNING:     /" >&2
15002     ;;
15003 esac
15004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15007   echo $ECHO_N "(cached) $ECHO_C" >&6
15008 else
15009   eval "$as_ac_Header=\$ac_header_preproc"
15010 fi
15011 ac_res=`eval echo '${'$as_ac_Header'}'`
15012                { echo "$as_me:$LINENO: result: $ac_res" >&5
15013 echo "${ECHO_T}$ac_res" >&6; }
15014
15015 fi
15016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15017   cat >>confdefs.h <<_ACEOF
15018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15019 _ACEOF
15020
15021 fi
15022
15023 done
15024
15025
15026
15027
15028
15029 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15030 do
15031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15033   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15036   echo $ECHO_N "(cached) $ECHO_C" >&6
15037 fi
15038 ac_res=`eval echo '${'$as_ac_Header'}'`
15039                { echo "$as_me:$LINENO: result: $ac_res" >&5
15040 echo "${ECHO_T}$ac_res" >&6; }
15041 else
15042   # Is the header compilable?
15043 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15045 cat >conftest.$ac_ext <<_ACEOF
15046 /* confdefs.h.  */
15047 _ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h.  */
15051 $ac_includes_default
15052 #include <$ac_header>
15053 _ACEOF
15054 rm -f conftest.$ac_objext
15055 if { (ac_try="$ac_compile"
15056 case "(($ac_try" in
15057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15058   *) ac_try_echo=$ac_try;;
15059 esac
15060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15061   (eval "$ac_compile") 2>conftest.er1
15062   ac_status=$?
15063   grep -v '^ *+' conftest.er1 >conftest.err
15064   rm -f conftest.er1
15065   cat conftest.err >&5
15066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067   (exit $ac_status); } &&
15068          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15069   { (case "(($ac_try" in
15070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071   *) ac_try_echo=$ac_try;;
15072 esac
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074   (eval "$ac_try") 2>&5
15075   ac_status=$?
15076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077   (exit $ac_status); }; } &&
15078          { ac_try='test -s conftest.$ac_objext'
15079   { (case "(($ac_try" in
15080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15081   *) ac_try_echo=$ac_try;;
15082 esac
15083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15084   (eval "$ac_try") 2>&5
15085   ac_status=$?
15086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087   (exit $ac_status); }; }; then
15088   ac_header_compiler=yes
15089 else
15090   echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.$ac_ext >&5
15092
15093         ac_header_compiler=no
15094 fi
15095
15096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15097 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15098 echo "${ECHO_T}$ac_header_compiler" >&6; }
15099
15100 # Is the header present?
15101 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15103 cat >conftest.$ac_ext <<_ACEOF
15104 /* confdefs.h.  */
15105 _ACEOF
15106 cat confdefs.h >>conftest.$ac_ext
15107 cat >>conftest.$ac_ext <<_ACEOF
15108 /* end confdefs.h.  */
15109 #include <$ac_header>
15110 _ACEOF
15111 if { (ac_try="$ac_cpp conftest.$ac_ext"
15112 case "(($ac_try" in
15113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15114   *) ac_try_echo=$ac_try;;
15115 esac
15116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15117   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15118   ac_status=$?
15119   grep -v '^ *+' conftest.er1 >conftest.err
15120   rm -f conftest.er1
15121   cat conftest.err >&5
15122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123   (exit $ac_status); } >/dev/null; then
15124   if test -s conftest.err; then
15125     ac_cpp_err=$ac_c_preproc_warn_flag
15126     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15127   else
15128     ac_cpp_err=
15129   fi
15130 else
15131   ac_cpp_err=yes
15132 fi
15133 if test -z "$ac_cpp_err"; then
15134   ac_header_preproc=yes
15135 else
15136   echo "$as_me: failed program was:" >&5
15137 sed 's/^/| /' conftest.$ac_ext >&5
15138
15139   ac_header_preproc=no
15140 fi
15141
15142 rm -f conftest.err conftest.$ac_ext
15143 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15144 echo "${ECHO_T}$ac_header_preproc" >&6; }
15145
15146 # So?  What about this header?
15147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15148   yes:no: )
15149     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15150 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15151     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15152 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15153     ac_header_preproc=yes
15154     ;;
15155   no:yes:* )
15156     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15157 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15158     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15159 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15160     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15161 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15162     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15163 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15164     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15165 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15166     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15167 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15168     ( cat <<\_ASBOX
15169 ## ------------------------------------ ##
15170 ## Report this to http://llvm.org/bugs/ ##
15171 ## ------------------------------------ ##
15172 _ASBOX
15173      ) | sed "s/^/$as_me: WARNING:     /" >&2
15174     ;;
15175 esac
15176 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15179   echo $ECHO_N "(cached) $ECHO_C" >&6
15180 else
15181   eval "$as_ac_Header=\$ac_header_preproc"
15182 fi
15183 ac_res=`eval echo '${'$as_ac_Header'}'`
15184                { echo "$as_me:$LINENO: result: $ac_res" >&5
15185 echo "${ECHO_T}$ac_res" >&6; }
15186
15187 fi
15188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15189   cat >>confdefs.h <<_ACEOF
15190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15191 _ACEOF
15192
15193 fi
15194
15195 done
15196
15197
15198 for ac_header in valgrind/valgrind.h
15199 do
15200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15202   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15205   echo $ECHO_N "(cached) $ECHO_C" >&6
15206 fi
15207 ac_res=`eval echo '${'$as_ac_Header'}'`
15208                { echo "$as_me:$LINENO: result: $ac_res" >&5
15209 echo "${ECHO_T}$ac_res" >&6; }
15210 else
15211   # Is the header compilable?
15212 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15213 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15214 cat >conftest.$ac_ext <<_ACEOF
15215 /* confdefs.h.  */
15216 _ACEOF
15217 cat confdefs.h >>conftest.$ac_ext
15218 cat >>conftest.$ac_ext <<_ACEOF
15219 /* end confdefs.h.  */
15220 $ac_includes_default
15221 #include <$ac_header>
15222 _ACEOF
15223 rm -f conftest.$ac_objext
15224 if { (ac_try="$ac_compile"
15225 case "(($ac_try" in
15226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227   *) ac_try_echo=$ac_try;;
15228 esac
15229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230   (eval "$ac_compile") 2>conftest.er1
15231   ac_status=$?
15232   grep -v '^ *+' conftest.er1 >conftest.err
15233   rm -f conftest.er1
15234   cat conftest.err >&5
15235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236   (exit $ac_status); } &&
15237          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15238   { (case "(($ac_try" in
15239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15240   *) ac_try_echo=$ac_try;;
15241 esac
15242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15243   (eval "$ac_try") 2>&5
15244   ac_status=$?
15245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246   (exit $ac_status); }; } &&
15247          { ac_try='test -s conftest.$ac_objext'
15248   { (case "(($ac_try" in
15249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250   *) ac_try_echo=$ac_try;;
15251 esac
15252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15253   (eval "$ac_try") 2>&5
15254   ac_status=$?
15255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256   (exit $ac_status); }; }; then
15257   ac_header_compiler=yes
15258 else
15259   echo "$as_me: failed program was:" >&5
15260 sed 's/^/| /' conftest.$ac_ext >&5
15261
15262         ac_header_compiler=no
15263 fi
15264
15265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15266 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15267 echo "${ECHO_T}$ac_header_compiler" >&6; }
15268
15269 # Is the header present?
15270 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15271 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15272 cat >conftest.$ac_ext <<_ACEOF
15273 /* confdefs.h.  */
15274 _ACEOF
15275 cat confdefs.h >>conftest.$ac_ext
15276 cat >>conftest.$ac_ext <<_ACEOF
15277 /* end confdefs.h.  */
15278 #include <$ac_header>
15279 _ACEOF
15280 if { (ac_try="$ac_cpp conftest.$ac_ext"
15281 case "(($ac_try" in
15282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15283   *) ac_try_echo=$ac_try;;
15284 esac
15285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15286   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15287   ac_status=$?
15288   grep -v '^ *+' conftest.er1 >conftest.err
15289   rm -f conftest.er1
15290   cat conftest.err >&5
15291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292   (exit $ac_status); } >/dev/null; then
15293   if test -s conftest.err; then
15294     ac_cpp_err=$ac_c_preproc_warn_flag
15295     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15296   else
15297     ac_cpp_err=
15298   fi
15299 else
15300   ac_cpp_err=yes
15301 fi
15302 if test -z "$ac_cpp_err"; then
15303   ac_header_preproc=yes
15304 else
15305   echo "$as_me: failed program was:" >&5
15306 sed 's/^/| /' conftest.$ac_ext >&5
15307
15308   ac_header_preproc=no
15309 fi
15310
15311 rm -f conftest.err conftest.$ac_ext
15312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15313 echo "${ECHO_T}$ac_header_preproc" >&6; }
15314
15315 # So?  What about this header?
15316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15317   yes:no: )
15318     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15319 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15320     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15321 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15322     ac_header_preproc=yes
15323     ;;
15324   no:yes:* )
15325     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15326 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15327     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15328 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15329     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15330 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15331     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15332 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15333     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15335     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15336 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15337     ( cat <<\_ASBOX
15338 ## ------------------------------------ ##
15339 ## Report this to http://llvm.org/bugs/ ##
15340 ## ------------------------------------ ##
15341 _ASBOX
15342      ) | sed "s/^/$as_me: WARNING:     /" >&2
15343     ;;
15344 esac
15345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15348   echo $ECHO_N "(cached) $ECHO_C" >&6
15349 else
15350   eval "$as_ac_Header=\$ac_header_preproc"
15351 fi
15352 ac_res=`eval echo '${'$as_ac_Header'}'`
15353                { echo "$as_me:$LINENO: result: $ac_res" >&5
15354 echo "${ECHO_T}$ac_res" >&6; }
15355
15356 fi
15357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15358   cat >>confdefs.h <<_ACEOF
15359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15360 _ACEOF
15361
15362 fi
15363
15364 done
15365
15366
15367 for ac_header in fenv.h
15368 do
15369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15371   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15374   echo $ECHO_N "(cached) $ECHO_C" >&6
15375 fi
15376 ac_res=`eval echo '${'$as_ac_Header'}'`
15377                { echo "$as_me:$LINENO: result: $ac_res" >&5
15378 echo "${ECHO_T}$ac_res" >&6; }
15379 else
15380   # Is the header compilable?
15381 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15383 cat >conftest.$ac_ext <<_ACEOF
15384 /* confdefs.h.  */
15385 _ACEOF
15386 cat confdefs.h >>conftest.$ac_ext
15387 cat >>conftest.$ac_ext <<_ACEOF
15388 /* end confdefs.h.  */
15389 $ac_includes_default
15390 #include <$ac_header>
15391 _ACEOF
15392 rm -f conftest.$ac_objext
15393 if { (ac_try="$ac_compile"
15394 case "(($ac_try" in
15395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15396   *) ac_try_echo=$ac_try;;
15397 esac
15398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15399   (eval "$ac_compile") 2>conftest.er1
15400   ac_status=$?
15401   grep -v '^ *+' conftest.er1 >conftest.err
15402   rm -f conftest.er1
15403   cat conftest.err >&5
15404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405   (exit $ac_status); } &&
15406          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15407   { (case "(($ac_try" in
15408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409   *) ac_try_echo=$ac_try;;
15410 esac
15411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15412   (eval "$ac_try") 2>&5
15413   ac_status=$?
15414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415   (exit $ac_status); }; } &&
15416          { ac_try='test -s conftest.$ac_objext'
15417   { (case "(($ac_try" in
15418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15419   *) ac_try_echo=$ac_try;;
15420 esac
15421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15422   (eval "$ac_try") 2>&5
15423   ac_status=$?
15424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425   (exit $ac_status); }; }; then
15426   ac_header_compiler=yes
15427 else
15428   echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15430
15431         ac_header_compiler=no
15432 fi
15433
15434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15436 echo "${ECHO_T}$ac_header_compiler" >&6; }
15437
15438 # Is the header present?
15439 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15441 cat >conftest.$ac_ext <<_ACEOF
15442 /* confdefs.h.  */
15443 _ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h.  */
15447 #include <$ac_header>
15448 _ACEOF
15449 if { (ac_try="$ac_cpp conftest.$ac_ext"
15450 case "(($ac_try" in
15451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15452   *) ac_try_echo=$ac_try;;
15453 esac
15454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15455   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15456   ac_status=$?
15457   grep -v '^ *+' conftest.er1 >conftest.err
15458   rm -f conftest.er1
15459   cat conftest.err >&5
15460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461   (exit $ac_status); } >/dev/null; then
15462   if test -s conftest.err; then
15463     ac_cpp_err=$ac_c_preproc_warn_flag
15464     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15465   else
15466     ac_cpp_err=
15467   fi
15468 else
15469   ac_cpp_err=yes
15470 fi
15471 if test -z "$ac_cpp_err"; then
15472   ac_header_preproc=yes
15473 else
15474   echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.$ac_ext >&5
15476
15477   ac_header_preproc=no
15478 fi
15479
15480 rm -f conftest.err conftest.$ac_ext
15481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15482 echo "${ECHO_T}$ac_header_preproc" >&6; }
15483
15484 # So?  What about this header?
15485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15486   yes:no: )
15487     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15489     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15491     ac_header_preproc=yes
15492     ;;
15493   no:yes:* )
15494     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15496     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15497 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15498     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15500     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15501 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15504     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15506     ( cat <<\_ASBOX
15507 ## ------------------------------------ ##
15508 ## Report this to http://llvm.org/bugs/ ##
15509 ## ------------------------------------ ##
15510 _ASBOX
15511      ) | sed "s/^/$as_me: WARNING:     /" >&2
15512     ;;
15513 esac
15514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15517   echo $ECHO_N "(cached) $ECHO_C" >&6
15518 else
15519   eval "$as_ac_Header=\$ac_header_preproc"
15520 fi
15521 ac_res=`eval echo '${'$as_ac_Header'}'`
15522                { echo "$as_me:$LINENO: result: $ac_res" >&5
15523 echo "${ECHO_T}$ac_res" >&6; }
15524
15525 fi
15526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15527   cat >>confdefs.h <<_ACEOF
15528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15529 _ACEOF
15530
15531 fi
15532
15533 done
15534
15535 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15536
15537 for ac_header in pthread.h
15538 do
15539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15541   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15544   echo $ECHO_N "(cached) $ECHO_C" >&6
15545 fi
15546 ac_res=`eval echo '${'$as_ac_Header'}'`
15547                { echo "$as_me:$LINENO: result: $ac_res" >&5
15548 echo "${ECHO_T}$ac_res" >&6; }
15549 else
15550   # Is the header compilable?
15551 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15553 cat >conftest.$ac_ext <<_ACEOF
15554 /* confdefs.h.  */
15555 _ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h.  */
15559 $ac_includes_default
15560 #include <$ac_header>
15561 _ACEOF
15562 rm -f conftest.$ac_objext
15563 if { (ac_try="$ac_compile"
15564 case "(($ac_try" in
15565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15566   *) ac_try_echo=$ac_try;;
15567 esac
15568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15569   (eval "$ac_compile") 2>conftest.er1
15570   ac_status=$?
15571   grep -v '^ *+' conftest.er1 >conftest.err
15572   rm -f conftest.er1
15573   cat conftest.err >&5
15574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575   (exit $ac_status); } &&
15576          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15577   { (case "(($ac_try" in
15578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15579   *) ac_try_echo=$ac_try;;
15580 esac
15581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15582   (eval "$ac_try") 2>&5
15583   ac_status=$?
15584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585   (exit $ac_status); }; } &&
15586          { ac_try='test -s conftest.$ac_objext'
15587   { (case "(($ac_try" in
15588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15589   *) ac_try_echo=$ac_try;;
15590 esac
15591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15592   (eval "$ac_try") 2>&5
15593   ac_status=$?
15594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595   (exit $ac_status); }; }; then
15596   ac_header_compiler=yes
15597 else
15598   echo "$as_me: failed program was:" >&5
15599 sed 's/^/| /' conftest.$ac_ext >&5
15600
15601         ac_header_compiler=no
15602 fi
15603
15604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15605 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15606 echo "${ECHO_T}$ac_header_compiler" >&6; }
15607
15608 # Is the header present?
15609 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15611 cat >conftest.$ac_ext <<_ACEOF
15612 /* confdefs.h.  */
15613 _ACEOF
15614 cat confdefs.h >>conftest.$ac_ext
15615 cat >>conftest.$ac_ext <<_ACEOF
15616 /* end confdefs.h.  */
15617 #include <$ac_header>
15618 _ACEOF
15619 if { (ac_try="$ac_cpp conftest.$ac_ext"
15620 case "(($ac_try" in
15621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15622   *) ac_try_echo=$ac_try;;
15623 esac
15624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15625   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15626   ac_status=$?
15627   grep -v '^ *+' conftest.er1 >conftest.err
15628   rm -f conftest.er1
15629   cat conftest.err >&5
15630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631   (exit $ac_status); } >/dev/null; then
15632   if test -s conftest.err; then
15633     ac_cpp_err=$ac_c_preproc_warn_flag
15634     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15635   else
15636     ac_cpp_err=
15637   fi
15638 else
15639   ac_cpp_err=yes
15640 fi
15641 if test -z "$ac_cpp_err"; then
15642   ac_header_preproc=yes
15643 else
15644   echo "$as_me: failed program was:" >&5
15645 sed 's/^/| /' conftest.$ac_ext >&5
15646
15647   ac_header_preproc=no
15648 fi
15649
15650 rm -f conftest.err conftest.$ac_ext
15651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15652 echo "${ECHO_T}$ac_header_preproc" >&6; }
15653
15654 # So?  What about this header?
15655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15656   yes:no: )
15657     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15659     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15661     ac_header_preproc=yes
15662     ;;
15663   no:yes:* )
15664     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15666     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15667 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15668     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15670     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15671 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15672     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15674     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15676     ( cat <<\_ASBOX
15677 ## ------------------------------------ ##
15678 ## Report this to http://llvm.org/bugs/ ##
15679 ## ------------------------------------ ##
15680 _ASBOX
15681      ) | sed "s/^/$as_me: WARNING:     /" >&2
15682     ;;
15683 esac
15684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15687   echo $ECHO_N "(cached) $ECHO_C" >&6
15688 else
15689   eval "$as_ac_Header=\$ac_header_preproc"
15690 fi
15691 ac_res=`eval echo '${'$as_ac_Header'}'`
15692                { echo "$as_me:$LINENO: result: $ac_res" >&5
15693 echo "${ECHO_T}$ac_res" >&6; }
15694
15695 fi
15696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15697   cat >>confdefs.h <<_ACEOF
15698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15699 _ACEOF
15700  HAVE_PTHREAD=1
15701
15702 else
15703   HAVE_PTHREAD=0
15704
15705 fi
15706
15707 done
15708
15709 else
15710   HAVE_PTHREAD=0
15711
15712 fi
15713
15714 if test "$llvm_cv_enable_libffi" = "yes" ; then
15715
15716
15717 for ac_header in ffi.h ffi/ffi.h
15718 do
15719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15721   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15724   echo $ECHO_N "(cached) $ECHO_C" >&6
15725 fi
15726 ac_res=`eval echo '${'$as_ac_Header'}'`
15727                { echo "$as_me:$LINENO: result: $ac_res" >&5
15728 echo "${ECHO_T}$ac_res" >&6; }
15729 else
15730   # Is the header compilable?
15731 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15733 cat >conftest.$ac_ext <<_ACEOF
15734 /* confdefs.h.  */
15735 _ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h.  */
15739 $ac_includes_default
15740 #include <$ac_header>
15741 _ACEOF
15742 rm -f conftest.$ac_objext
15743 if { (ac_try="$ac_compile"
15744 case "(($ac_try" in
15745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746   *) ac_try_echo=$ac_try;;
15747 esac
15748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15749   (eval "$ac_compile") 2>conftest.er1
15750   ac_status=$?
15751   grep -v '^ *+' conftest.er1 >conftest.err
15752   rm -f conftest.er1
15753   cat conftest.err >&5
15754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755   (exit $ac_status); } &&
15756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15757   { (case "(($ac_try" in
15758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15759   *) ac_try_echo=$ac_try;;
15760 esac
15761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15762   (eval "$ac_try") 2>&5
15763   ac_status=$?
15764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765   (exit $ac_status); }; } &&
15766          { ac_try='test -s conftest.$ac_objext'
15767   { (case "(($ac_try" in
15768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769   *) ac_try_echo=$ac_try;;
15770 esac
15771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772   (eval "$ac_try") 2>&5
15773   ac_status=$?
15774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775   (exit $ac_status); }; }; then
15776   ac_header_compiler=yes
15777 else
15778   echo "$as_me: failed program was:" >&5
15779 sed 's/^/| /' conftest.$ac_ext >&5
15780
15781         ac_header_compiler=no
15782 fi
15783
15784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15786 echo "${ECHO_T}$ac_header_compiler" >&6; }
15787
15788 # Is the header present?
15789 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15791 cat >conftest.$ac_ext <<_ACEOF
15792 /* confdefs.h.  */
15793 _ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h.  */
15797 #include <$ac_header>
15798 _ACEOF
15799 if { (ac_try="$ac_cpp conftest.$ac_ext"
15800 case "(($ac_try" in
15801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802   *) ac_try_echo=$ac_try;;
15803 esac
15804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15805   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15806   ac_status=$?
15807   grep -v '^ *+' conftest.er1 >conftest.err
15808   rm -f conftest.er1
15809   cat conftest.err >&5
15810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811   (exit $ac_status); } >/dev/null; then
15812   if test -s conftest.err; then
15813     ac_cpp_err=$ac_c_preproc_warn_flag
15814     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15815   else
15816     ac_cpp_err=
15817   fi
15818 else
15819   ac_cpp_err=yes
15820 fi
15821 if test -z "$ac_cpp_err"; then
15822   ac_header_preproc=yes
15823 else
15824   echo "$as_me: failed program was:" >&5
15825 sed 's/^/| /' conftest.$ac_ext >&5
15826
15827   ac_header_preproc=no
15828 fi
15829
15830 rm -f conftest.err conftest.$ac_ext
15831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15832 echo "${ECHO_T}$ac_header_preproc" >&6; }
15833
15834 # So?  What about this header?
15835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15836   yes:no: )
15837     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15839     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15841     ac_header_preproc=yes
15842     ;;
15843   no:yes:* )
15844     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15846     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15847 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15848     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15850     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15851 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15852     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15854     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15856     ( cat <<\_ASBOX
15857 ## ------------------------------------ ##
15858 ## Report this to http://llvm.org/bugs/ ##
15859 ## ------------------------------------ ##
15860 _ASBOX
15861      ) | sed "s/^/$as_me: WARNING:     /" >&2
15862     ;;
15863 esac
15864 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15867   echo $ECHO_N "(cached) $ECHO_C" >&6
15868 else
15869   eval "$as_ac_Header=\$ac_header_preproc"
15870 fi
15871 ac_res=`eval echo '${'$as_ac_Header'}'`
15872                { echo "$as_me:$LINENO: result: $ac_res" >&5
15873 echo "${ECHO_T}$ac_res" >&6; }
15874
15875 fi
15876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15877   cat >>confdefs.h <<_ACEOF
15878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15879 _ACEOF
15880
15881 fi
15882
15883 done
15884
15885 fi
15886
15887
15888 for ac_header in CrashReporterClient.h
15889 do
15890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15892   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15895   echo $ECHO_N "(cached) $ECHO_C" >&6
15896 fi
15897 ac_res=`eval echo '${'$as_ac_Header'}'`
15898                { echo "$as_me:$LINENO: result: $ac_res" >&5
15899 echo "${ECHO_T}$ac_res" >&6; }
15900 else
15901   # Is the header compilable?
15902 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15903 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15904 cat >conftest.$ac_ext <<_ACEOF
15905 /* confdefs.h.  */
15906 _ACEOF
15907 cat confdefs.h >>conftest.$ac_ext
15908 cat >>conftest.$ac_ext <<_ACEOF
15909 /* end confdefs.h.  */
15910 $ac_includes_default
15911 #include <$ac_header>
15912 _ACEOF
15913 rm -f conftest.$ac_objext
15914 if { (ac_try="$ac_compile"
15915 case "(($ac_try" in
15916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15917   *) ac_try_echo=$ac_try;;
15918 esac
15919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15920   (eval "$ac_compile") 2>conftest.er1
15921   ac_status=$?
15922   grep -v '^ *+' conftest.er1 >conftest.err
15923   rm -f conftest.er1
15924   cat conftest.err >&5
15925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926   (exit $ac_status); } &&
15927          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15928   { (case "(($ac_try" in
15929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930   *) ac_try_echo=$ac_try;;
15931 esac
15932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15933   (eval "$ac_try") 2>&5
15934   ac_status=$?
15935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936   (exit $ac_status); }; } &&
15937          { ac_try='test -s conftest.$ac_objext'
15938   { (case "(($ac_try" in
15939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940   *) ac_try_echo=$ac_try;;
15941 esac
15942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15943   (eval "$ac_try") 2>&5
15944   ac_status=$?
15945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946   (exit $ac_status); }; }; then
15947   ac_header_compiler=yes
15948 else
15949   echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15951
15952         ac_header_compiler=no
15953 fi
15954
15955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15956 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15957 echo "${ECHO_T}$ac_header_compiler" >&6; }
15958
15959 # Is the header present?
15960 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15962 cat >conftest.$ac_ext <<_ACEOF
15963 /* confdefs.h.  */
15964 _ACEOF
15965 cat confdefs.h >>conftest.$ac_ext
15966 cat >>conftest.$ac_ext <<_ACEOF
15967 /* end confdefs.h.  */
15968 #include <$ac_header>
15969 _ACEOF
15970 if { (ac_try="$ac_cpp conftest.$ac_ext"
15971 case "(($ac_try" in
15972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15973   *) ac_try_echo=$ac_try;;
15974 esac
15975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15976   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15977   ac_status=$?
15978   grep -v '^ *+' conftest.er1 >conftest.err
15979   rm -f conftest.er1
15980   cat conftest.err >&5
15981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982   (exit $ac_status); } >/dev/null; then
15983   if test -s conftest.err; then
15984     ac_cpp_err=$ac_c_preproc_warn_flag
15985     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15986   else
15987     ac_cpp_err=
15988   fi
15989 else
15990   ac_cpp_err=yes
15991 fi
15992 if test -z "$ac_cpp_err"; then
15993   ac_header_preproc=yes
15994 else
15995   echo "$as_me: failed program was:" >&5
15996 sed 's/^/| /' conftest.$ac_ext >&5
15997
15998   ac_header_preproc=no
15999 fi
16000
16001 rm -f conftest.err conftest.$ac_ext
16002 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16003 echo "${ECHO_T}$ac_header_preproc" >&6; }
16004
16005 # So?  What about this header?
16006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16007   yes:no: )
16008     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16010     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16011 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16012     ac_header_preproc=yes
16013     ;;
16014   no:yes:* )
16015     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16016 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16017     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16018 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16019     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16020 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16021     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16022 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16023     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16024 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16025     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16026 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16027     ( cat <<\_ASBOX
16028 ## ------------------------------------ ##
16029 ## Report this to http://llvm.org/bugs/ ##
16030 ## ------------------------------------ ##
16031 _ASBOX
16032      ) | sed "s/^/$as_me: WARNING:     /" >&2
16033     ;;
16034 esac
16035 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16038   echo $ECHO_N "(cached) $ECHO_C" >&6
16039 else
16040   eval "$as_ac_Header=\$ac_header_preproc"
16041 fi
16042 ac_res=`eval echo '${'$as_ac_Header'}'`
16043                { echo "$as_me:$LINENO: result: $ac_res" >&5
16044 echo "${ECHO_T}$ac_res" >&6; }
16045
16046 fi
16047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16048   cat >>confdefs.h <<_ACEOF
16049 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16050 _ACEOF
16051
16052 fi
16053
16054 done
16055
16056
16057 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16058 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16059 cat >conftest.$ac_ext <<_ACEOF
16060 /* confdefs.h.  */
16061 _ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h.  */
16065 extern const char *__crashreporter_info__;
16066       int main() {
16067         __crashreporter_info__ = "test";
16068         return 0;
16069       }
16070
16071 _ACEOF
16072 rm -f conftest.$ac_objext conftest$ac_exeext
16073 if { (ac_try="$ac_link"
16074 case "(($ac_try" in
16075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16076   *) ac_try_echo=$ac_try;;
16077 esac
16078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16079   (eval "$ac_link") 2>conftest.er1
16080   ac_status=$?
16081   grep -v '^ *+' conftest.er1 >conftest.err
16082   rm -f conftest.er1
16083   cat conftest.err >&5
16084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085   (exit $ac_status); } &&
16086          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16087   { (case "(($ac_try" in
16088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16089   *) ac_try_echo=$ac_try;;
16090 esac
16091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16092   (eval "$ac_try") 2>&5
16093   ac_status=$?
16094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095   (exit $ac_status); }; } &&
16096          { ac_try='test -s conftest$ac_exeext'
16097   { (case "(($ac_try" in
16098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16099   *) ac_try_echo=$ac_try;;
16100 esac
16101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16102   (eval "$ac_try") 2>&5
16103   ac_status=$?
16104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105   (exit $ac_status); }; }; then
16106   { echo "$as_me:$LINENO: result: yes" >&5
16107 echo "${ECHO_T}yes" >&6; }
16108
16109 cat >>confdefs.h <<\_ACEOF
16110 #define HAVE_CRASHREPORTER_INFO 1
16111 _ACEOF
16112
16113 else
16114   echo "$as_me: failed program was:" >&5
16115 sed 's/^/| /' conftest.$ac_ext >&5
16116
16117         { echo "$as_me:$LINENO: result: no" >&5
16118 echo "${ECHO_T}no" >&6; }
16119
16120 cat >>confdefs.h <<\_ACEOF
16121 #define HAVE_CRASHREPORTER_INFO 0
16122 _ACEOF
16123
16124 fi
16125
16126 rm -f core conftest.err conftest.$ac_objext \
16127       conftest$ac_exeext conftest.$ac_ext
16128
16129
16130
16131
16132   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16133 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16134 if test "${ac_cv_huge_val_sanity+set}" = set; then
16135   echo $ECHO_N "(cached) $ECHO_C" >&6
16136 else
16137
16138     ac_ext=cpp
16139 ac_cpp='$CXXCPP $CPPFLAGS'
16140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16143
16144     ac_save_CXXFLAGS=$CXXFLAGS
16145     CXXFLAGS="$CXXFLAGS -pedantic"
16146     if test "$cross_compiling" = yes; then
16147   ac_cv_huge_val_sanity=yes
16148 else
16149   cat >conftest.$ac_ext <<_ACEOF
16150 /* confdefs.h.  */
16151 _ACEOF
16152 cat confdefs.h >>conftest.$ac_ext
16153 cat >>conftest.$ac_ext <<_ACEOF
16154 /* end confdefs.h.  */
16155 #include <math.h>
16156 int
16157 main ()
16158 {
16159 double x = HUGE_VAL; return x != x;
16160   ;
16161   return 0;
16162 }
16163 _ACEOF
16164 rm -f conftest$ac_exeext
16165 if { (ac_try="$ac_link"
16166 case "(($ac_try" in
16167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16168   *) ac_try_echo=$ac_try;;
16169 esac
16170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16171   (eval "$ac_link") 2>&5
16172   ac_status=$?
16173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16175   { (case "(($ac_try" in
16176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16177   *) ac_try_echo=$ac_try;;
16178 esac
16179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16180   (eval "$ac_try") 2>&5
16181   ac_status=$?
16182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183   (exit $ac_status); }; }; then
16184   ac_cv_huge_val_sanity=yes
16185 else
16186   echo "$as_me: program exited with status $ac_status" >&5
16187 echo "$as_me: failed program was:" >&5
16188 sed 's/^/| /' conftest.$ac_ext >&5
16189
16190 ( exit $ac_status )
16191 ac_cv_huge_val_sanity=no
16192 fi
16193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16194 fi
16195
16196
16197     CXXFLAGS=$ac_save_CXXFLAGS
16198     ac_ext=c
16199 ac_cpp='$CPP $CPPFLAGS'
16200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16203
16204
16205 fi
16206 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16207 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16208   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16209
16210
16211 { echo "$as_me:$LINENO: checking for pid_t" >&5
16212 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16213 if test "${ac_cv_type_pid_t+set}" = set; then
16214   echo $ECHO_N "(cached) $ECHO_C" >&6
16215 else
16216   cat >conftest.$ac_ext <<_ACEOF
16217 /* confdefs.h.  */
16218 _ACEOF
16219 cat confdefs.h >>conftest.$ac_ext
16220 cat >>conftest.$ac_ext <<_ACEOF
16221 /* end confdefs.h.  */
16222 $ac_includes_default
16223 typedef pid_t ac__type_new_;
16224 int
16225 main ()
16226 {
16227 if ((ac__type_new_ *) 0)
16228   return 0;
16229 if (sizeof (ac__type_new_))
16230   return 0;
16231   ;
16232   return 0;
16233 }
16234 _ACEOF
16235 rm -f conftest.$ac_objext
16236 if { (ac_try="$ac_compile"
16237 case "(($ac_try" in
16238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16239   *) ac_try_echo=$ac_try;;
16240 esac
16241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16242   (eval "$ac_compile") 2>conftest.er1
16243   ac_status=$?
16244   grep -v '^ *+' conftest.er1 >conftest.err
16245   rm -f conftest.er1
16246   cat conftest.err >&5
16247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248   (exit $ac_status); } &&
16249          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16250   { (case "(($ac_try" in
16251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16252   *) ac_try_echo=$ac_try;;
16253 esac
16254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16255   (eval "$ac_try") 2>&5
16256   ac_status=$?
16257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258   (exit $ac_status); }; } &&
16259          { ac_try='test -s conftest.$ac_objext'
16260   { (case "(($ac_try" in
16261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16262   *) ac_try_echo=$ac_try;;
16263 esac
16264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16265   (eval "$ac_try") 2>&5
16266   ac_status=$?
16267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268   (exit $ac_status); }; }; then
16269   ac_cv_type_pid_t=yes
16270 else
16271   echo "$as_me: failed program was:" >&5
16272 sed 's/^/| /' conftest.$ac_ext >&5
16273
16274         ac_cv_type_pid_t=no
16275 fi
16276
16277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16278 fi
16279 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16280 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16281 if test $ac_cv_type_pid_t = yes; then
16282   :
16283 else
16284
16285 cat >>confdefs.h <<_ACEOF
16286 #define pid_t int
16287 _ACEOF
16288
16289 fi
16290
16291 { echo "$as_me:$LINENO: checking for size_t" >&5
16292 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16293 if test "${ac_cv_type_size_t+set}" = set; then
16294   echo $ECHO_N "(cached) $ECHO_C" >&6
16295 else
16296   cat >conftest.$ac_ext <<_ACEOF
16297 /* confdefs.h.  */
16298 _ACEOF
16299 cat confdefs.h >>conftest.$ac_ext
16300 cat >>conftest.$ac_ext <<_ACEOF
16301 /* end confdefs.h.  */
16302 $ac_includes_default
16303 typedef size_t ac__type_new_;
16304 int
16305 main ()
16306 {
16307 if ((ac__type_new_ *) 0)
16308   return 0;
16309 if (sizeof (ac__type_new_))
16310   return 0;
16311   ;
16312   return 0;
16313 }
16314 _ACEOF
16315 rm -f conftest.$ac_objext
16316 if { (ac_try="$ac_compile"
16317 case "(($ac_try" in
16318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16319   *) ac_try_echo=$ac_try;;
16320 esac
16321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16322   (eval "$ac_compile") 2>conftest.er1
16323   ac_status=$?
16324   grep -v '^ *+' conftest.er1 >conftest.err
16325   rm -f conftest.er1
16326   cat conftest.err >&5
16327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328   (exit $ac_status); } &&
16329          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16330   { (case "(($ac_try" in
16331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16332   *) ac_try_echo=$ac_try;;
16333 esac
16334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16335   (eval "$ac_try") 2>&5
16336   ac_status=$?
16337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338   (exit $ac_status); }; } &&
16339          { ac_try='test -s conftest.$ac_objext'
16340   { (case "(($ac_try" in
16341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16342   *) ac_try_echo=$ac_try;;
16343 esac
16344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16345   (eval "$ac_try") 2>&5
16346   ac_status=$?
16347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348   (exit $ac_status); }; }; then
16349   ac_cv_type_size_t=yes
16350 else
16351   echo "$as_me: failed program was:" >&5
16352 sed 's/^/| /' conftest.$ac_ext >&5
16353
16354         ac_cv_type_size_t=no
16355 fi
16356
16357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16358 fi
16359 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16360 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16361 if test $ac_cv_type_size_t = yes; then
16362   :
16363 else
16364
16365 cat >>confdefs.h <<_ACEOF
16366 #define size_t unsigned int
16367 _ACEOF
16368
16369 fi
16370
16371
16372 cat >>confdefs.h <<_ACEOF
16373 #define RETSIGTYPE void
16374 _ACEOF
16375
16376 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16377 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16378 if test "${ac_cv_struct_tm+set}" = set; then
16379   echo $ECHO_N "(cached) $ECHO_C" >&6
16380 else
16381   cat >conftest.$ac_ext <<_ACEOF
16382 /* confdefs.h.  */
16383 _ACEOF
16384 cat confdefs.h >>conftest.$ac_ext
16385 cat >>conftest.$ac_ext <<_ACEOF
16386 /* end confdefs.h.  */
16387 #include <sys/types.h>
16388 #include <time.h>
16389
16390 int
16391 main ()
16392 {
16393 struct tm *tp; tp->tm_sec;
16394   ;
16395   return 0;
16396 }
16397 _ACEOF
16398 rm -f conftest.$ac_objext
16399 if { (ac_try="$ac_compile"
16400 case "(($ac_try" in
16401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402   *) ac_try_echo=$ac_try;;
16403 esac
16404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16405   (eval "$ac_compile") 2>conftest.er1
16406   ac_status=$?
16407   grep -v '^ *+' conftest.er1 >conftest.err
16408   rm -f conftest.er1
16409   cat conftest.err >&5
16410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411   (exit $ac_status); } &&
16412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16413   { (case "(($ac_try" in
16414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16415   *) ac_try_echo=$ac_try;;
16416 esac
16417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16418   (eval "$ac_try") 2>&5
16419   ac_status=$?
16420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421   (exit $ac_status); }; } &&
16422          { ac_try='test -s conftest.$ac_objext'
16423   { (case "(($ac_try" in
16424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425   *) ac_try_echo=$ac_try;;
16426 esac
16427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428   (eval "$ac_try") 2>&5
16429   ac_status=$?
16430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431   (exit $ac_status); }; }; then
16432   ac_cv_struct_tm=time.h
16433 else
16434   echo "$as_me: failed program was:" >&5
16435 sed 's/^/| /' conftest.$ac_ext >&5
16436
16437         ac_cv_struct_tm=sys/time.h
16438 fi
16439
16440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16441 fi
16442 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16443 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16444 if test $ac_cv_struct_tm = sys/time.h; then
16445
16446 cat >>confdefs.h <<\_ACEOF
16447 #define TM_IN_SYS_TIME 1
16448 _ACEOF
16449
16450 fi
16451
16452 { echo "$as_me:$LINENO: checking for int64_t" >&5
16453 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16454 if test "${ac_cv_type_int64_t+set}" = set; then
16455   echo $ECHO_N "(cached) $ECHO_C" >&6
16456 else
16457   cat >conftest.$ac_ext <<_ACEOF
16458 /* confdefs.h.  */
16459 _ACEOF
16460 cat confdefs.h >>conftest.$ac_ext
16461 cat >>conftest.$ac_ext <<_ACEOF
16462 /* end confdefs.h.  */
16463 $ac_includes_default
16464 typedef int64_t ac__type_new_;
16465 int
16466 main ()
16467 {
16468 if ((ac__type_new_ *) 0)
16469   return 0;
16470 if (sizeof (ac__type_new_))
16471   return 0;
16472   ;
16473   return 0;
16474 }
16475 _ACEOF
16476 rm -f conftest.$ac_objext
16477 if { (ac_try="$ac_compile"
16478 case "(($ac_try" in
16479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16480   *) ac_try_echo=$ac_try;;
16481 esac
16482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16483   (eval "$ac_compile") 2>conftest.er1
16484   ac_status=$?
16485   grep -v '^ *+' conftest.er1 >conftest.err
16486   rm -f conftest.er1
16487   cat conftest.err >&5
16488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489   (exit $ac_status); } &&
16490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16491   { (case "(($ac_try" in
16492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16493   *) ac_try_echo=$ac_try;;
16494 esac
16495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16496   (eval "$ac_try") 2>&5
16497   ac_status=$?
16498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499   (exit $ac_status); }; } &&
16500          { ac_try='test -s conftest.$ac_objext'
16501   { (case "(($ac_try" in
16502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16503   *) ac_try_echo=$ac_try;;
16504 esac
16505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16506   (eval "$ac_try") 2>&5
16507   ac_status=$?
16508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509   (exit $ac_status); }; }; then
16510   ac_cv_type_int64_t=yes
16511 else
16512   echo "$as_me: failed program was:" >&5
16513 sed 's/^/| /' conftest.$ac_ext >&5
16514
16515         ac_cv_type_int64_t=no
16516 fi
16517
16518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16519 fi
16520 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16521 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16522 if test $ac_cv_type_int64_t = yes; then
16523
16524 cat >>confdefs.h <<_ACEOF
16525 #define HAVE_INT64_T 1
16526 _ACEOF
16527
16528
16529 else
16530   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16531 echo "$as_me: error: Type int64_t required but not found" >&2;}
16532    { (exit 1); exit 1; }; }
16533 fi
16534
16535 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16536 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16537 if test "${ac_cv_type_uint64_t+set}" = set; then
16538   echo $ECHO_N "(cached) $ECHO_C" >&6
16539 else
16540   cat >conftest.$ac_ext <<_ACEOF
16541 /* confdefs.h.  */
16542 _ACEOF
16543 cat confdefs.h >>conftest.$ac_ext
16544 cat >>conftest.$ac_ext <<_ACEOF
16545 /* end confdefs.h.  */
16546 $ac_includes_default
16547 typedef uint64_t ac__type_new_;
16548 int
16549 main ()
16550 {
16551 if ((ac__type_new_ *) 0)
16552   return 0;
16553 if (sizeof (ac__type_new_))
16554   return 0;
16555   ;
16556   return 0;
16557 }
16558 _ACEOF
16559 rm -f conftest.$ac_objext
16560 if { (ac_try="$ac_compile"
16561 case "(($ac_try" in
16562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16563   *) ac_try_echo=$ac_try;;
16564 esac
16565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16566   (eval "$ac_compile") 2>conftest.er1
16567   ac_status=$?
16568   grep -v '^ *+' conftest.er1 >conftest.err
16569   rm -f conftest.er1
16570   cat conftest.err >&5
16571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572   (exit $ac_status); } &&
16573          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16574   { (case "(($ac_try" in
16575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576   *) ac_try_echo=$ac_try;;
16577 esac
16578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16579   (eval "$ac_try") 2>&5
16580   ac_status=$?
16581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582   (exit $ac_status); }; } &&
16583          { ac_try='test -s conftest.$ac_objext'
16584   { (case "(($ac_try" in
16585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586   *) ac_try_echo=$ac_try;;
16587 esac
16588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589   (eval "$ac_try") 2>&5
16590   ac_status=$?
16591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592   (exit $ac_status); }; }; then
16593   ac_cv_type_uint64_t=yes
16594 else
16595   echo "$as_me: failed program was:" >&5
16596 sed 's/^/| /' conftest.$ac_ext >&5
16597
16598         ac_cv_type_uint64_t=no
16599 fi
16600
16601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16602 fi
16603 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16604 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16605 if test $ac_cv_type_uint64_t = yes; then
16606
16607 cat >>confdefs.h <<_ACEOF
16608 #define HAVE_UINT64_T 1
16609 _ACEOF
16610
16611
16612 else
16613   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16614 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16615 if test "${ac_cv_type_u_int64_t+set}" = set; then
16616   echo $ECHO_N "(cached) $ECHO_C" >&6
16617 else
16618   cat >conftest.$ac_ext <<_ACEOF
16619 /* confdefs.h.  */
16620 _ACEOF
16621 cat confdefs.h >>conftest.$ac_ext
16622 cat >>conftest.$ac_ext <<_ACEOF
16623 /* end confdefs.h.  */
16624 $ac_includes_default
16625 typedef u_int64_t ac__type_new_;
16626 int
16627 main ()
16628 {
16629 if ((ac__type_new_ *) 0)
16630   return 0;
16631 if (sizeof (ac__type_new_))
16632   return 0;
16633   ;
16634   return 0;
16635 }
16636 _ACEOF
16637 rm -f conftest.$ac_objext
16638 if { (ac_try="$ac_compile"
16639 case "(($ac_try" in
16640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641   *) ac_try_echo=$ac_try;;
16642 esac
16643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16644   (eval "$ac_compile") 2>conftest.er1
16645   ac_status=$?
16646   grep -v '^ *+' conftest.er1 >conftest.err
16647   rm -f conftest.er1
16648   cat conftest.err >&5
16649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650   (exit $ac_status); } &&
16651          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16652   { (case "(($ac_try" in
16653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16654   *) ac_try_echo=$ac_try;;
16655 esac
16656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16657   (eval "$ac_try") 2>&5
16658   ac_status=$?
16659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660   (exit $ac_status); }; } &&
16661          { ac_try='test -s conftest.$ac_objext'
16662   { (case "(($ac_try" in
16663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16664   *) ac_try_echo=$ac_try;;
16665 esac
16666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16667   (eval "$ac_try") 2>&5
16668   ac_status=$?
16669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670   (exit $ac_status); }; }; then
16671   ac_cv_type_u_int64_t=yes
16672 else
16673   echo "$as_me: failed program was:" >&5
16674 sed 's/^/| /' conftest.$ac_ext >&5
16675
16676         ac_cv_type_u_int64_t=no
16677 fi
16678
16679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16680 fi
16681 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16682 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16683 if test $ac_cv_type_u_int64_t = yes; then
16684
16685 cat >>confdefs.h <<_ACEOF
16686 #define HAVE_U_INT64_T 1
16687 _ACEOF
16688
16689
16690 else
16691   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16692 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16693    { (exit 1); exit 1; }; }
16694 fi
16695
16696 fi
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16708 do
16709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16713   echo $ECHO_N "(cached) $ECHO_C" >&6
16714 else
16715   cat >conftest.$ac_ext <<_ACEOF
16716 /* confdefs.h.  */
16717 _ACEOF
16718 cat confdefs.h >>conftest.$ac_ext
16719 cat >>conftest.$ac_ext <<_ACEOF
16720 /* end confdefs.h.  */
16721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16723 #define $ac_func innocuous_$ac_func
16724
16725 /* System header to define __stub macros and hopefully few prototypes,
16726     which can conflict with char $ac_func (); below.
16727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16728     <limits.h> exists even on freestanding compilers.  */
16729
16730 #ifdef __STDC__
16731 # include <limits.h>
16732 #else
16733 # include <assert.h>
16734 #endif
16735
16736 #undef $ac_func
16737
16738 /* Override any GCC internal prototype to avoid an error.
16739    Use char because int might match the return type of a GCC
16740    builtin and then its argument prototype would still apply.  */
16741 #ifdef __cplusplus
16742 extern "C"
16743 #endif
16744 char $ac_func ();
16745 /* The GNU C library defines this for functions which it implements
16746     to always fail with ENOSYS.  Some functions are actually named
16747     something starting with __ and the normal name is an alias.  */
16748 #if defined __stub_$ac_func || defined __stub___$ac_func
16749 choke me
16750 #endif
16751
16752 int
16753 main ()
16754 {
16755 return $ac_func ();
16756   ;
16757   return 0;
16758 }
16759 _ACEOF
16760 rm -f conftest.$ac_objext conftest$ac_exeext
16761 if { (ac_try="$ac_link"
16762 case "(($ac_try" in
16763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764   *) ac_try_echo=$ac_try;;
16765 esac
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767   (eval "$ac_link") 2>conftest.er1
16768   ac_status=$?
16769   grep -v '^ *+' conftest.er1 >conftest.err
16770   rm -f conftest.er1
16771   cat conftest.err >&5
16772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773   (exit $ac_status); } &&
16774          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16775   { (case "(($ac_try" in
16776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16777   *) ac_try_echo=$ac_try;;
16778 esac
16779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16780   (eval "$ac_try") 2>&5
16781   ac_status=$?
16782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783   (exit $ac_status); }; } &&
16784          { ac_try='test -s conftest$ac_exeext'
16785   { (case "(($ac_try" in
16786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16787   *) ac_try_echo=$ac_try;;
16788 esac
16789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16790   (eval "$ac_try") 2>&5
16791   ac_status=$?
16792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793   (exit $ac_status); }; }; then
16794   eval "$as_ac_var=yes"
16795 else
16796   echo "$as_me: failed program was:" >&5
16797 sed 's/^/| /' conftest.$ac_ext >&5
16798
16799         eval "$as_ac_var=no"
16800 fi
16801
16802 rm -f core conftest.err conftest.$ac_objext \
16803       conftest$ac_exeext conftest.$ac_ext
16804 fi
16805 ac_res=`eval echo '${'$as_ac_var'}'`
16806                { echo "$as_me:$LINENO: result: $ac_res" >&5
16807 echo "${ECHO_T}$ac_res" >&6; }
16808 if test `eval echo '${'$as_ac_var'}'` = yes; then
16809   cat >>confdefs.h <<_ACEOF
16810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16811 _ACEOF
16812
16813 fi
16814 done
16815
16816
16817
16818
16819
16820 for ac_func in powf fmodf strtof round
16821 do
16822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16826   echo $ECHO_N "(cached) $ECHO_C" >&6
16827 else
16828   cat >conftest.$ac_ext <<_ACEOF
16829 /* confdefs.h.  */
16830 _ACEOF
16831 cat confdefs.h >>conftest.$ac_ext
16832 cat >>conftest.$ac_ext <<_ACEOF
16833 /* end confdefs.h.  */
16834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16836 #define $ac_func innocuous_$ac_func
16837
16838 /* System header to define __stub macros and hopefully few prototypes,
16839     which can conflict with char $ac_func (); below.
16840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16841     <limits.h> exists even on freestanding compilers.  */
16842
16843 #ifdef __STDC__
16844 # include <limits.h>
16845 #else
16846 # include <assert.h>
16847 #endif
16848
16849 #undef $ac_func
16850
16851 /* Override any GCC internal prototype to avoid an error.
16852    Use char because int might match the return type of a GCC
16853    builtin and then its argument prototype would still apply.  */
16854 #ifdef __cplusplus
16855 extern "C"
16856 #endif
16857 char $ac_func ();
16858 /* The GNU C library defines this for functions which it implements
16859     to always fail with ENOSYS.  Some functions are actually named
16860     something starting with __ and the normal name is an alias.  */
16861 #if defined __stub_$ac_func || defined __stub___$ac_func
16862 choke me
16863 #endif
16864
16865 int
16866 main ()
16867 {
16868 return $ac_func ();
16869   ;
16870   return 0;
16871 }
16872 _ACEOF
16873 rm -f conftest.$ac_objext conftest$ac_exeext
16874 if { (ac_try="$ac_link"
16875 case "(($ac_try" in
16876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877   *) ac_try_echo=$ac_try;;
16878 esac
16879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880   (eval "$ac_link") 2>conftest.er1
16881   ac_status=$?
16882   grep -v '^ *+' conftest.er1 >conftest.err
16883   rm -f conftest.er1
16884   cat conftest.err >&5
16885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886   (exit $ac_status); } &&
16887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16888   { (case "(($ac_try" in
16889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16890   *) ac_try_echo=$ac_try;;
16891 esac
16892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16893   (eval "$ac_try") 2>&5
16894   ac_status=$?
16895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896   (exit $ac_status); }; } &&
16897          { ac_try='test -s conftest$ac_exeext'
16898   { (case "(($ac_try" in
16899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16900   *) ac_try_echo=$ac_try;;
16901 esac
16902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16903   (eval "$ac_try") 2>&5
16904   ac_status=$?
16905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906   (exit $ac_status); }; }; then
16907   eval "$as_ac_var=yes"
16908 else
16909   echo "$as_me: failed program was:" >&5
16910 sed 's/^/| /' conftest.$ac_ext >&5
16911
16912         eval "$as_ac_var=no"
16913 fi
16914
16915 rm -f core conftest.err conftest.$ac_objext \
16916       conftest$ac_exeext conftest.$ac_ext
16917 fi
16918 ac_res=`eval echo '${'$as_ac_var'}'`
16919                { echo "$as_me:$LINENO: result: $ac_res" >&5
16920 echo "${ECHO_T}$ac_res" >&6; }
16921 if test `eval echo '${'$as_ac_var'}'` = yes; then
16922   cat >>confdefs.h <<_ACEOF
16923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16924 _ACEOF
16925
16926 fi
16927 done
16928
16929
16930
16931
16932
16933
16934 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16935 do
16936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16940   echo $ECHO_N "(cached) $ECHO_C" >&6
16941 else
16942   cat >conftest.$ac_ext <<_ACEOF
16943 /* confdefs.h.  */
16944 _ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h.  */
16948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16949    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16950 #define $ac_func innocuous_$ac_func
16951
16952 /* System header to define __stub macros and hopefully few prototypes,
16953     which can conflict with char $ac_func (); below.
16954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16955     <limits.h> exists even on freestanding compilers.  */
16956
16957 #ifdef __STDC__
16958 # include <limits.h>
16959 #else
16960 # include <assert.h>
16961 #endif
16962
16963 #undef $ac_func
16964
16965 /* Override any GCC internal prototype to avoid an error.
16966    Use char because int might match the return type of a GCC
16967    builtin and then its argument prototype would still apply.  */
16968 #ifdef __cplusplus
16969 extern "C"
16970 #endif
16971 char $ac_func ();
16972 /* The GNU C library defines this for functions which it implements
16973     to always fail with ENOSYS.  Some functions are actually named
16974     something starting with __ and the normal name is an alias.  */
16975 #if defined __stub_$ac_func || defined __stub___$ac_func
16976 choke me
16977 #endif
16978
16979 int
16980 main ()
16981 {
16982 return $ac_func ();
16983   ;
16984   return 0;
16985 }
16986 _ACEOF
16987 rm -f conftest.$ac_objext conftest$ac_exeext
16988 if { (ac_try="$ac_link"
16989 case "(($ac_try" in
16990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16991   *) ac_try_echo=$ac_try;;
16992 esac
16993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994   (eval "$ac_link") 2>conftest.er1
16995   ac_status=$?
16996   grep -v '^ *+' conftest.er1 >conftest.err
16997   rm -f conftest.er1
16998   cat conftest.err >&5
16999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000   (exit $ac_status); } &&
17001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17002   { (case "(($ac_try" in
17003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004   *) ac_try_echo=$ac_try;;
17005 esac
17006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17007   (eval "$ac_try") 2>&5
17008   ac_status=$?
17009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010   (exit $ac_status); }; } &&
17011          { ac_try='test -s conftest$ac_exeext'
17012   { (case "(($ac_try" in
17013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014   *) ac_try_echo=$ac_try;;
17015 esac
17016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17017   (eval "$ac_try") 2>&5
17018   ac_status=$?
17019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020   (exit $ac_status); }; }; then
17021   eval "$as_ac_var=yes"
17022 else
17023   echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17025
17026         eval "$as_ac_var=no"
17027 fi
17028
17029 rm -f core conftest.err conftest.$ac_objext \
17030       conftest$ac_exeext conftest.$ac_ext
17031 fi
17032 ac_res=`eval echo '${'$as_ac_var'}'`
17033                { echo "$as_me:$LINENO: result: $ac_res" >&5
17034 echo "${ECHO_T}$ac_res" >&6; }
17035 if test `eval echo '${'$as_ac_var'}'` = yes; then
17036   cat >>confdefs.h <<_ACEOF
17037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17038 _ACEOF
17039
17040 fi
17041 done
17042
17043
17044
17045
17046 for ac_func in isatty mkdtemp mkstemp
17047 do
17048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17049 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17051 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17052   echo $ECHO_N "(cached) $ECHO_C" >&6
17053 else
17054   cat >conftest.$ac_ext <<_ACEOF
17055 /* confdefs.h.  */
17056 _ACEOF
17057 cat confdefs.h >>conftest.$ac_ext
17058 cat >>conftest.$ac_ext <<_ACEOF
17059 /* end confdefs.h.  */
17060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17061    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17062 #define $ac_func innocuous_$ac_func
17063
17064 /* System header to define __stub macros and hopefully few prototypes,
17065     which can conflict with char $ac_func (); below.
17066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17067     <limits.h> exists even on freestanding compilers.  */
17068
17069 #ifdef __STDC__
17070 # include <limits.h>
17071 #else
17072 # include <assert.h>
17073 #endif
17074
17075 #undef $ac_func
17076
17077 /* Override any GCC internal prototype to avoid an error.
17078    Use char because int might match the return type of a GCC
17079    builtin and then its argument prototype would still apply.  */
17080 #ifdef __cplusplus
17081 extern "C"
17082 #endif
17083 char $ac_func ();
17084 /* The GNU C library defines this for functions which it implements
17085     to always fail with ENOSYS.  Some functions are actually named
17086     something starting with __ and the normal name is an alias.  */
17087 #if defined __stub_$ac_func || defined __stub___$ac_func
17088 choke me
17089 #endif
17090
17091 int
17092 main ()
17093 {
17094 return $ac_func ();
17095   ;
17096   return 0;
17097 }
17098 _ACEOF
17099 rm -f conftest.$ac_objext conftest$ac_exeext
17100 if { (ac_try="$ac_link"
17101 case "(($ac_try" in
17102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103   *) ac_try_echo=$ac_try;;
17104 esac
17105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106   (eval "$ac_link") 2>conftest.er1
17107   ac_status=$?
17108   grep -v '^ *+' conftest.er1 >conftest.err
17109   rm -f conftest.er1
17110   cat conftest.err >&5
17111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112   (exit $ac_status); } &&
17113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17114   { (case "(($ac_try" in
17115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17116   *) ac_try_echo=$ac_try;;
17117 esac
17118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17119   (eval "$ac_try") 2>&5
17120   ac_status=$?
17121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122   (exit $ac_status); }; } &&
17123          { ac_try='test -s conftest$ac_exeext'
17124   { (case "(($ac_try" in
17125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126   *) ac_try_echo=$ac_try;;
17127 esac
17128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17129   (eval "$ac_try") 2>&5
17130   ac_status=$?
17131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132   (exit $ac_status); }; }; then
17133   eval "$as_ac_var=yes"
17134 else
17135   echo "$as_me: failed program was:" >&5
17136 sed 's/^/| /' conftest.$ac_ext >&5
17137
17138         eval "$as_ac_var=no"
17139 fi
17140
17141 rm -f core conftest.err conftest.$ac_objext \
17142       conftest$ac_exeext conftest.$ac_ext
17143 fi
17144 ac_res=`eval echo '${'$as_ac_var'}'`
17145                { echo "$as_me:$LINENO: result: $ac_res" >&5
17146 echo "${ECHO_T}$ac_res" >&6; }
17147 if test `eval echo '${'$as_ac_var'}'` = yes; then
17148   cat >>confdefs.h <<_ACEOF
17149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17150 _ACEOF
17151
17152 fi
17153 done
17154
17155
17156
17157
17158
17159
17160
17161
17162 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17163 do
17164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17165 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17167 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17168   echo $ECHO_N "(cached) $ECHO_C" >&6
17169 else
17170   cat >conftest.$ac_ext <<_ACEOF
17171 /* confdefs.h.  */
17172 _ACEOF
17173 cat confdefs.h >>conftest.$ac_ext
17174 cat >>conftest.$ac_ext <<_ACEOF
17175 /* end confdefs.h.  */
17176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17177    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17178 #define $ac_func innocuous_$ac_func
17179
17180 /* System header to define __stub macros and hopefully few prototypes,
17181     which can conflict with char $ac_func (); below.
17182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17183     <limits.h> exists even on freestanding compilers.  */
17184
17185 #ifdef __STDC__
17186 # include <limits.h>
17187 #else
17188 # include <assert.h>
17189 #endif
17190
17191 #undef $ac_func
17192
17193 /* Override any GCC internal prototype to avoid an error.
17194    Use char because int might match the return type of a GCC
17195    builtin and then its argument prototype would still apply.  */
17196 #ifdef __cplusplus
17197 extern "C"
17198 #endif
17199 char $ac_func ();
17200 /* The GNU C library defines this for functions which it implements
17201     to always fail with ENOSYS.  Some functions are actually named
17202     something starting with __ and the normal name is an alias.  */
17203 #if defined __stub_$ac_func || defined __stub___$ac_func
17204 choke me
17205 #endif
17206
17207 int
17208 main ()
17209 {
17210 return $ac_func ();
17211   ;
17212   return 0;
17213 }
17214 _ACEOF
17215 rm -f conftest.$ac_objext conftest$ac_exeext
17216 if { (ac_try="$ac_link"
17217 case "(($ac_try" in
17218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17219   *) ac_try_echo=$ac_try;;
17220 esac
17221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17222   (eval "$ac_link") 2>conftest.er1
17223   ac_status=$?
17224   grep -v '^ *+' conftest.er1 >conftest.err
17225   rm -f conftest.er1
17226   cat conftest.err >&5
17227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228   (exit $ac_status); } &&
17229          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17230   { (case "(($ac_try" in
17231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17232   *) ac_try_echo=$ac_try;;
17233 esac
17234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17235   (eval "$ac_try") 2>&5
17236   ac_status=$?
17237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238   (exit $ac_status); }; } &&
17239          { ac_try='test -s conftest$ac_exeext'
17240   { (case "(($ac_try" in
17241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17242   *) ac_try_echo=$ac_try;;
17243 esac
17244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17245   (eval "$ac_try") 2>&5
17246   ac_status=$?
17247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248   (exit $ac_status); }; }; then
17249   eval "$as_ac_var=yes"
17250 else
17251   echo "$as_me: failed program was:" >&5
17252 sed 's/^/| /' conftest.$ac_ext >&5
17253
17254         eval "$as_ac_var=no"
17255 fi
17256
17257 rm -f core conftest.err conftest.$ac_objext \
17258       conftest$ac_exeext conftest.$ac_ext
17259 fi
17260 ac_res=`eval echo '${'$as_ac_var'}'`
17261                { echo "$as_me:$LINENO: result: $ac_res" >&5
17262 echo "${ECHO_T}$ac_res" >&6; }
17263 if test `eval echo '${'$as_ac_var'}'` = yes; then
17264   cat >>confdefs.h <<_ACEOF
17265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17266 _ACEOF
17267
17268 fi
17269 done
17270
17271
17272
17273
17274
17275 for ac_func in strerror strerror_r setenv arc4random
17276 do
17277 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17278 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17279 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17280 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17281   echo $ECHO_N "(cached) $ECHO_C" >&6
17282 else
17283   cat >conftest.$ac_ext <<_ACEOF
17284 /* confdefs.h.  */
17285 _ACEOF
17286 cat confdefs.h >>conftest.$ac_ext
17287 cat >>conftest.$ac_ext <<_ACEOF
17288 /* end confdefs.h.  */
17289 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17290    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17291 #define $ac_func innocuous_$ac_func
17292
17293 /* System header to define __stub macros and hopefully few prototypes,
17294     which can conflict with char $ac_func (); below.
17295     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17296     <limits.h> exists even on freestanding compilers.  */
17297
17298 #ifdef __STDC__
17299 # include <limits.h>
17300 #else
17301 # include <assert.h>
17302 #endif
17303
17304 #undef $ac_func
17305
17306 /* Override any GCC internal prototype to avoid an error.
17307    Use char because int might match the return type of a GCC
17308    builtin and then its argument prototype would still apply.  */
17309 #ifdef __cplusplus
17310 extern "C"
17311 #endif
17312 char $ac_func ();
17313 /* The GNU C library defines this for functions which it implements
17314     to always fail with ENOSYS.  Some functions are actually named
17315     something starting with __ and the normal name is an alias.  */
17316 #if defined __stub_$ac_func || defined __stub___$ac_func
17317 choke me
17318 #endif
17319
17320 int
17321 main ()
17322 {
17323 return $ac_func ();
17324   ;
17325   return 0;
17326 }
17327 _ACEOF
17328 rm -f conftest.$ac_objext conftest$ac_exeext
17329 if { (ac_try="$ac_link"
17330 case "(($ac_try" in
17331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17332   *) ac_try_echo=$ac_try;;
17333 esac
17334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17335   (eval "$ac_link") 2>conftest.er1
17336   ac_status=$?
17337   grep -v '^ *+' conftest.er1 >conftest.err
17338   rm -f conftest.er1
17339   cat conftest.err >&5
17340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341   (exit $ac_status); } &&
17342          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17343   { (case "(($ac_try" in
17344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17345   *) ac_try_echo=$ac_try;;
17346 esac
17347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17348   (eval "$ac_try") 2>&5
17349   ac_status=$?
17350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351   (exit $ac_status); }; } &&
17352          { ac_try='test -s conftest$ac_exeext'
17353   { (case "(($ac_try" in
17354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355   *) ac_try_echo=$ac_try;;
17356 esac
17357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358   (eval "$ac_try") 2>&5
17359   ac_status=$?
17360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361   (exit $ac_status); }; }; then
17362   eval "$as_ac_var=yes"
17363 else
17364   echo "$as_me: failed program was:" >&5
17365 sed 's/^/| /' conftest.$ac_ext >&5
17366
17367         eval "$as_ac_var=no"
17368 fi
17369
17370 rm -f core conftest.err conftest.$ac_objext \
17371       conftest$ac_exeext conftest.$ac_ext
17372 fi
17373 ac_res=`eval echo '${'$as_ac_var'}'`
17374                { echo "$as_me:$LINENO: result: $ac_res" >&5
17375 echo "${ECHO_T}$ac_res" >&6; }
17376 if test `eval echo '${'$as_ac_var'}'` = yes; then
17377   cat >>confdefs.h <<_ACEOF
17378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17379 _ACEOF
17380
17381 fi
17382 done
17383
17384
17385
17386
17387
17388 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17389 do
17390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17391 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17393 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17394   echo $ECHO_N "(cached) $ECHO_C" >&6
17395 else
17396   cat >conftest.$ac_ext <<_ACEOF
17397 /* confdefs.h.  */
17398 _ACEOF
17399 cat confdefs.h >>conftest.$ac_ext
17400 cat >>conftest.$ac_ext <<_ACEOF
17401 /* end confdefs.h.  */
17402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17403    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17404 #define $ac_func innocuous_$ac_func
17405
17406 /* System header to define __stub macros and hopefully few prototypes,
17407     which can conflict with char $ac_func (); below.
17408     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17409     <limits.h> exists even on freestanding compilers.  */
17410
17411 #ifdef __STDC__
17412 # include <limits.h>
17413 #else
17414 # include <assert.h>
17415 #endif
17416
17417 #undef $ac_func
17418
17419 /* Override any GCC internal prototype to avoid an error.
17420    Use char because int might match the return type of a GCC
17421    builtin and then its argument prototype would still apply.  */
17422 #ifdef __cplusplus
17423 extern "C"
17424 #endif
17425 char $ac_func ();
17426 /* The GNU C library defines this for functions which it implements
17427     to always fail with ENOSYS.  Some functions are actually named
17428     something starting with __ and the normal name is an alias.  */
17429 #if defined __stub_$ac_func || defined __stub___$ac_func
17430 choke me
17431 #endif
17432
17433 int
17434 main ()
17435 {
17436 return $ac_func ();
17437   ;
17438   return 0;
17439 }
17440 _ACEOF
17441 rm -f conftest.$ac_objext conftest$ac_exeext
17442 if { (ac_try="$ac_link"
17443 case "(($ac_try" in
17444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445   *) ac_try_echo=$ac_try;;
17446 esac
17447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448   (eval "$ac_link") 2>conftest.er1
17449   ac_status=$?
17450   grep -v '^ *+' conftest.er1 >conftest.err
17451   rm -f conftest.er1
17452   cat conftest.err >&5
17453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454   (exit $ac_status); } &&
17455          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17456   { (case "(($ac_try" in
17457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17458   *) ac_try_echo=$ac_try;;
17459 esac
17460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17461   (eval "$ac_try") 2>&5
17462   ac_status=$?
17463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464   (exit $ac_status); }; } &&
17465          { ac_try='test -s conftest$ac_exeext'
17466   { (case "(($ac_try" in
17467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17468   *) ac_try_echo=$ac_try;;
17469 esac
17470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17471   (eval "$ac_try") 2>&5
17472   ac_status=$?
17473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474   (exit $ac_status); }; }; then
17475   eval "$as_ac_var=yes"
17476 else
17477   echo "$as_me: failed program was:" >&5
17478 sed 's/^/| /' conftest.$ac_ext >&5
17479
17480         eval "$as_ac_var=no"
17481 fi
17482
17483 rm -f core conftest.err conftest.$ac_objext \
17484       conftest$ac_exeext conftest.$ac_ext
17485 fi
17486 ac_res=`eval echo '${'$as_ac_var'}'`
17487                { echo "$as_me:$LINENO: result: $ac_res" >&5
17488 echo "${ECHO_T}$ac_res" >&6; }
17489 if test `eval echo '${'$as_ac_var'}'` = yes; then
17490   cat >>confdefs.h <<_ACEOF
17491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17492 _ACEOF
17493
17494 fi
17495 done
17496
17497
17498
17499
17500
17501
17502 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17503 do
17504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17505 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17507 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17508   echo $ECHO_N "(cached) $ECHO_C" >&6
17509 else
17510   cat >conftest.$ac_ext <<_ACEOF
17511 /* confdefs.h.  */
17512 _ACEOF
17513 cat confdefs.h >>conftest.$ac_ext
17514 cat >>conftest.$ac_ext <<_ACEOF
17515 /* end confdefs.h.  */
17516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17517    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17518 #define $ac_func innocuous_$ac_func
17519
17520 /* System header to define __stub macros and hopefully few prototypes,
17521     which can conflict with char $ac_func (); below.
17522     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17523     <limits.h> exists even on freestanding compilers.  */
17524
17525 #ifdef __STDC__
17526 # include <limits.h>
17527 #else
17528 # include <assert.h>
17529 #endif
17530
17531 #undef $ac_func
17532
17533 /* Override any GCC internal prototype to avoid an error.
17534    Use char because int might match the return type of a GCC
17535    builtin and then its argument prototype would still apply.  */
17536 #ifdef __cplusplus
17537 extern "C"
17538 #endif
17539 char $ac_func ();
17540 /* The GNU C library defines this for functions which it implements
17541     to always fail with ENOSYS.  Some functions are actually named
17542     something starting with __ and the normal name is an alias.  */
17543 #if defined __stub_$ac_func || defined __stub___$ac_func
17544 choke me
17545 #endif
17546
17547 int
17548 main ()
17549 {
17550 return $ac_func ();
17551   ;
17552   return 0;
17553 }
17554 _ACEOF
17555 rm -f conftest.$ac_objext conftest$ac_exeext
17556 if { (ac_try="$ac_link"
17557 case "(($ac_try" in
17558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17559   *) ac_try_echo=$ac_try;;
17560 esac
17561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17562   (eval "$ac_link") 2>conftest.er1
17563   ac_status=$?
17564   grep -v '^ *+' conftest.er1 >conftest.err
17565   rm -f conftest.er1
17566   cat conftest.err >&5
17567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568   (exit $ac_status); } &&
17569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17570   { (case "(($ac_try" in
17571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572   *) ac_try_echo=$ac_try;;
17573 esac
17574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575   (eval "$ac_try") 2>&5
17576   ac_status=$?
17577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578   (exit $ac_status); }; } &&
17579          { ac_try='test -s conftest$ac_exeext'
17580   { (case "(($ac_try" in
17581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17582   *) ac_try_echo=$ac_try;;
17583 esac
17584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17585   (eval "$ac_try") 2>&5
17586   ac_status=$?
17587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588   (exit $ac_status); }; }; then
17589   eval "$as_ac_var=yes"
17590 else
17591   echo "$as_me: failed program was:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17593
17594         eval "$as_ac_var=no"
17595 fi
17596
17597 rm -f core conftest.err conftest.$ac_objext \
17598       conftest$ac_exeext conftest.$ac_ext
17599 fi
17600 ac_res=`eval echo '${'$as_ac_var'}'`
17601                { echo "$as_me:$LINENO: result: $ac_res" >&5
17602 echo "${ECHO_T}$ac_res" >&6; }
17603 if test `eval echo '${'$as_ac_var'}'` = yes; then
17604   cat >>confdefs.h <<_ACEOF
17605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17606 _ACEOF
17607
17608 fi
17609 done
17610
17611 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17612 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17613 if test "${llvm_cv_c_printf_a+set}" = set; then
17614   echo $ECHO_N "(cached) $ECHO_C" >&6
17615 else
17616   ac_ext=c
17617 ac_cpp='$CPP $CPPFLAGS'
17618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17621
17622  if test "$cross_compiling" = yes; then
17623   llvmac_cv_c_printf_a=no
17624 else
17625   cat >conftest.$ac_ext <<_ACEOF
17626
17627   /* confdefs.h.  */
17628 _ACEOF
17629 cat confdefs.h >>conftest.$ac_ext
17630 cat >>conftest.$ac_ext <<_ACEOF
17631 /* end confdefs.h.  */
17632
17633 #include <stdio.h>
17634 #include <stdlib.h>
17635
17636 int
17637 main ()
17638 {
17639
17640 volatile double A, B;
17641 char Buffer[100];
17642 A = 1;
17643 A /= 10.0;
17644 sprintf(Buffer, "%a", A);
17645 B = atof(Buffer);
17646 if (A != B)
17647   return (1);
17648 if (A != 0x1.999999999999ap-4)
17649   return (1);
17650 return (0);
17651   ;
17652   return 0;
17653 }
17654 _ACEOF
17655 rm -f conftest$ac_exeext
17656 if { (ac_try="$ac_link"
17657 case "(($ac_try" in
17658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659   *) ac_try_echo=$ac_try;;
17660 esac
17661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662   (eval "$ac_link") 2>&5
17663   ac_status=$?
17664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17666   { (case "(($ac_try" in
17667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17668   *) ac_try_echo=$ac_try;;
17669 esac
17670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17671   (eval "$ac_try") 2>&5
17672   ac_status=$?
17673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674   (exit $ac_status); }; }; then
17675   llvm_cv_c_printf_a=yes
17676 else
17677   echo "$as_me: program exited with status $ac_status" >&5
17678 echo "$as_me: failed program was:" >&5
17679 sed 's/^/| /' conftest.$ac_ext >&5
17680
17681 ( exit $ac_status )
17682 llvmac_cv_c_printf_a=no
17683 fi
17684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17685 fi
17686
17687
17688  ac_ext=c
17689 ac_cpp='$CPP $CPPFLAGS'
17690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17693
17694 fi
17695 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17696 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17697  if test "$llvm_cv_c_printf_a" = "yes"; then
17698
17699 cat >>confdefs.h <<\_ACEOF
17700 #define HAVE_PRINTF_A 1
17701 _ACEOF
17702
17703  fi
17704
17705
17706 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17707 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17708 if test "${ac_cv_func_rand48+set}" = set; then
17709   echo $ECHO_N "(cached) $ECHO_C" >&6
17710 else
17711   ac_ext=cpp
17712 ac_cpp='$CXXCPP $CPPFLAGS'
17713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17716
17717    cat >conftest.$ac_ext <<_ACEOF
17718 /* confdefs.h.  */
17719 _ACEOF
17720 cat confdefs.h >>conftest.$ac_ext
17721 cat >>conftest.$ac_ext <<_ACEOF
17722 /* end confdefs.h.  */
17723 #include <stdlib.h>
17724 int
17725 main ()
17726 {
17727 srand48(0);lrand48();drand48();
17728   ;
17729   return 0;
17730 }
17731 _ACEOF
17732 rm -f conftest.$ac_objext
17733 if { (ac_try="$ac_compile"
17734 case "(($ac_try" in
17735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17736   *) ac_try_echo=$ac_try;;
17737 esac
17738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17739   (eval "$ac_compile") 2>conftest.er1
17740   ac_status=$?
17741   grep -v '^ *+' conftest.er1 >conftest.err
17742   rm -f conftest.er1
17743   cat conftest.err >&5
17744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745   (exit $ac_status); } &&
17746          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17747   { (case "(($ac_try" in
17748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17749   *) ac_try_echo=$ac_try;;
17750 esac
17751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17752   (eval "$ac_try") 2>&5
17753   ac_status=$?
17754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755   (exit $ac_status); }; } &&
17756          { ac_try='test -s conftest.$ac_objext'
17757   { (case "(($ac_try" in
17758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759   *) ac_try_echo=$ac_try;;
17760 esac
17761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762   (eval "$ac_try") 2>&5
17763   ac_status=$?
17764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765   (exit $ac_status); }; }; then
17766   ac_cv_func_rand48=yes
17767 else
17768   echo "$as_me: failed program was:" >&5
17769 sed 's/^/| /' conftest.$ac_ext >&5
17770
17771         ac_cv_func_rand48=no
17772 fi
17773
17774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17775   ac_ext=c
17776 ac_cpp='$CPP $CPPFLAGS'
17777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17780
17781 fi
17782 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17783 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17784
17785 if test "$ac_cv_func_rand48" = "yes" ; then
17786
17787 cat >>confdefs.h <<\_ACEOF
17788 #define HAVE_RAND48 1
17789 _ACEOF
17790
17791 fi
17792
17793
17794 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17795 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17796 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17797   echo $ECHO_N "(cached) $ECHO_C" >&6
17798 else
17799   cat >conftest.$ac_ext <<_ACEOF
17800 /* confdefs.h.  */
17801 _ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h.  */
17805 $ac_includes_default
17806 int
17807 main ()
17808 {
17809 #ifndef strerror_s
17810   char *p = (char *) strerror_s;
17811   return !p;
17812 #endif
17813
17814   ;
17815   return 0;
17816 }
17817 _ACEOF
17818 rm -f conftest.$ac_objext
17819 if { (ac_try="$ac_compile"
17820 case "(($ac_try" in
17821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17822   *) ac_try_echo=$ac_try;;
17823 esac
17824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17825   (eval "$ac_compile") 2>conftest.er1
17826   ac_status=$?
17827   grep -v '^ *+' conftest.er1 >conftest.err
17828   rm -f conftest.er1
17829   cat conftest.err >&5
17830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831   (exit $ac_status); } &&
17832          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17833   { (case "(($ac_try" in
17834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835   *) ac_try_echo=$ac_try;;
17836 esac
17837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838   (eval "$ac_try") 2>&5
17839   ac_status=$?
17840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841   (exit $ac_status); }; } &&
17842          { ac_try='test -s conftest.$ac_objext'
17843   { (case "(($ac_try" in
17844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845   *) ac_try_echo=$ac_try;;
17846 esac
17847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848   (eval "$ac_try") 2>&5
17849   ac_status=$?
17850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851   (exit $ac_status); }; }; then
17852   ac_cv_have_decl_strerror_s=yes
17853 else
17854   echo "$as_me: failed program was:" >&5
17855 sed 's/^/| /' conftest.$ac_ext >&5
17856
17857         ac_cv_have_decl_strerror_s=no
17858 fi
17859
17860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17861 fi
17862 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17863 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17864 if test $ac_cv_have_decl_strerror_s = yes; then
17865
17866 cat >>confdefs.h <<_ACEOF
17867 #define HAVE_DECL_STRERROR_S 1
17868 _ACEOF
17869
17870
17871 else
17872   cat >>confdefs.h <<_ACEOF
17873 #define HAVE_DECL_STRERROR_S 0
17874 _ACEOF
17875
17876
17877 fi
17878
17879
17880
17881 if test "$llvm_cv_os_type" = "MingW" ; then
17882   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17883 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17884 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17885   echo $ECHO_N "(cached) $ECHO_C" >&6
17886 else
17887   ac_check_lib_save_LIBS=$LIBS
17888 LIBS="-lgcc  $LIBS"
17889 cat >conftest.$ac_ext <<_ACEOF
17890 /* confdefs.h.  */
17891 _ACEOF
17892 cat confdefs.h >>conftest.$ac_ext
17893 cat >>conftest.$ac_ext <<_ACEOF
17894 /* end confdefs.h.  */
17895
17896 /* Override any GCC internal prototype to avoid an error.
17897    Use char because int might match the return type of a GCC
17898    builtin and then its argument prototype would still apply.  */
17899 #ifdef __cplusplus
17900 extern "C"
17901 #endif
17902 char _alloca ();
17903 int
17904 main ()
17905 {
17906 return _alloca ();
17907   ;
17908   return 0;
17909 }
17910 _ACEOF
17911 rm -f conftest.$ac_objext conftest$ac_exeext
17912 if { (ac_try="$ac_link"
17913 case "(($ac_try" in
17914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17915   *) ac_try_echo=$ac_try;;
17916 esac
17917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17918   (eval "$ac_link") 2>conftest.er1
17919   ac_status=$?
17920   grep -v '^ *+' conftest.er1 >conftest.err
17921   rm -f conftest.er1
17922   cat conftest.err >&5
17923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924   (exit $ac_status); } &&
17925          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17926   { (case "(($ac_try" in
17927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928   *) ac_try_echo=$ac_try;;
17929 esac
17930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17931   (eval "$ac_try") 2>&5
17932   ac_status=$?
17933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934   (exit $ac_status); }; } &&
17935          { ac_try='test -s conftest$ac_exeext'
17936   { (case "(($ac_try" in
17937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17938   *) ac_try_echo=$ac_try;;
17939 esac
17940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17941   (eval "$ac_try") 2>&5
17942   ac_status=$?
17943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944   (exit $ac_status); }; }; then
17945   ac_cv_lib_gcc__alloca=yes
17946 else
17947   echo "$as_me: failed program was:" >&5
17948 sed 's/^/| /' conftest.$ac_ext >&5
17949
17950         ac_cv_lib_gcc__alloca=no
17951 fi
17952
17953 rm -f core conftest.err conftest.$ac_objext \
17954       conftest$ac_exeext conftest.$ac_ext
17955 LIBS=$ac_check_lib_save_LIBS
17956 fi
17957 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17958 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17959 if test $ac_cv_lib_gcc__alloca = yes; then
17960
17961 cat >>confdefs.h <<\_ACEOF
17962 #define HAVE__ALLOCA 1
17963 _ACEOF
17964
17965 fi
17966
17967   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17968 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17969 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17970   echo $ECHO_N "(cached) $ECHO_C" >&6
17971 else
17972   ac_check_lib_save_LIBS=$LIBS
17973 LIBS="-lgcc  $LIBS"
17974 cat >conftest.$ac_ext <<_ACEOF
17975 /* confdefs.h.  */
17976 _ACEOF
17977 cat confdefs.h >>conftest.$ac_ext
17978 cat >>conftest.$ac_ext <<_ACEOF
17979 /* end confdefs.h.  */
17980
17981 /* Override any GCC internal prototype to avoid an error.
17982    Use char because int might match the return type of a GCC
17983    builtin and then its argument prototype would still apply.  */
17984 #ifdef __cplusplus
17985 extern "C"
17986 #endif
17987 char __alloca ();
17988 int
17989 main ()
17990 {
17991 return __alloca ();
17992   ;
17993   return 0;
17994 }
17995 _ACEOF
17996 rm -f conftest.$ac_objext conftest$ac_exeext
17997 if { (ac_try="$ac_link"
17998 case "(($ac_try" in
17999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000   *) ac_try_echo=$ac_try;;
18001 esac
18002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003   (eval "$ac_link") 2>conftest.er1
18004   ac_status=$?
18005   grep -v '^ *+' conftest.er1 >conftest.err
18006   rm -f conftest.er1
18007   cat conftest.err >&5
18008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009   (exit $ac_status); } &&
18010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18011   { (case "(($ac_try" in
18012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013   *) ac_try_echo=$ac_try;;
18014 esac
18015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016   (eval "$ac_try") 2>&5
18017   ac_status=$?
18018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019   (exit $ac_status); }; } &&
18020          { ac_try='test -s conftest$ac_exeext'
18021   { (case "(($ac_try" in
18022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023   *) ac_try_echo=$ac_try;;
18024 esac
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026   (eval "$ac_try") 2>&5
18027   ac_status=$?
18028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029   (exit $ac_status); }; }; then
18030   ac_cv_lib_gcc___alloca=yes
18031 else
18032   echo "$as_me: failed program was:" >&5
18033 sed 's/^/| /' conftest.$ac_ext >&5
18034
18035         ac_cv_lib_gcc___alloca=no
18036 fi
18037
18038 rm -f core conftest.err conftest.$ac_objext \
18039       conftest$ac_exeext conftest.$ac_ext
18040 LIBS=$ac_check_lib_save_LIBS
18041 fi
18042 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18043 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18044 if test $ac_cv_lib_gcc___alloca = yes; then
18045
18046 cat >>confdefs.h <<\_ACEOF
18047 #define HAVE___ALLOCA 1
18048 _ACEOF
18049
18050 fi
18051
18052   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18053 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18054 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18055   echo $ECHO_N "(cached) $ECHO_C" >&6
18056 else
18057   ac_check_lib_save_LIBS=$LIBS
18058 LIBS="-lgcc  $LIBS"
18059 cat >conftest.$ac_ext <<_ACEOF
18060 /* confdefs.h.  */
18061 _ACEOF
18062 cat confdefs.h >>conftest.$ac_ext
18063 cat >>conftest.$ac_ext <<_ACEOF
18064 /* end confdefs.h.  */
18065
18066 /* Override any GCC internal prototype to avoid an error.
18067    Use char because int might match the return type of a GCC
18068    builtin and then its argument prototype would still apply.  */
18069 #ifdef __cplusplus
18070 extern "C"
18071 #endif
18072 char __chkstk ();
18073 int
18074 main ()
18075 {
18076 return __chkstk ();
18077   ;
18078   return 0;
18079 }
18080 _ACEOF
18081 rm -f conftest.$ac_objext conftest$ac_exeext
18082 if { (ac_try="$ac_link"
18083 case "(($ac_try" in
18084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18085   *) ac_try_echo=$ac_try;;
18086 esac
18087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18088   (eval "$ac_link") 2>conftest.er1
18089   ac_status=$?
18090   grep -v '^ *+' conftest.er1 >conftest.err
18091   rm -f conftest.er1
18092   cat conftest.err >&5
18093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094   (exit $ac_status); } &&
18095          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18096   { (case "(($ac_try" in
18097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18098   *) ac_try_echo=$ac_try;;
18099 esac
18100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18101   (eval "$ac_try") 2>&5
18102   ac_status=$?
18103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104   (exit $ac_status); }; } &&
18105          { ac_try='test -s conftest$ac_exeext'
18106   { (case "(($ac_try" in
18107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18108   *) ac_try_echo=$ac_try;;
18109 esac
18110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18111   (eval "$ac_try") 2>&5
18112   ac_status=$?
18113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114   (exit $ac_status); }; }; then
18115   ac_cv_lib_gcc___chkstk=yes
18116 else
18117   echo "$as_me: failed program was:" >&5
18118 sed 's/^/| /' conftest.$ac_ext >&5
18119
18120         ac_cv_lib_gcc___chkstk=no
18121 fi
18122
18123 rm -f core conftest.err conftest.$ac_objext \
18124       conftest$ac_exeext conftest.$ac_ext
18125 LIBS=$ac_check_lib_save_LIBS
18126 fi
18127 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18128 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18129 if test $ac_cv_lib_gcc___chkstk = yes; then
18130
18131 cat >>confdefs.h <<\_ACEOF
18132 #define HAVE___CHKSTK 1
18133 _ACEOF
18134
18135 fi
18136
18137   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18138 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18139 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18140   echo $ECHO_N "(cached) $ECHO_C" >&6
18141 else
18142   ac_check_lib_save_LIBS=$LIBS
18143 LIBS="-lgcc  $LIBS"
18144 cat >conftest.$ac_ext <<_ACEOF
18145 /* confdefs.h.  */
18146 _ACEOF
18147 cat confdefs.h >>conftest.$ac_ext
18148 cat >>conftest.$ac_ext <<_ACEOF
18149 /* end confdefs.h.  */
18150
18151 /* Override any GCC internal prototype to avoid an error.
18152    Use char because int might match the return type of a GCC
18153    builtin and then its argument prototype would still apply.  */
18154 #ifdef __cplusplus
18155 extern "C"
18156 #endif
18157 char ___chkstk ();
18158 int
18159 main ()
18160 {
18161 return ___chkstk ();
18162   ;
18163   return 0;
18164 }
18165 _ACEOF
18166 rm -f conftest.$ac_objext conftest$ac_exeext
18167 if { (ac_try="$ac_link"
18168 case "(($ac_try" in
18169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18170   *) ac_try_echo=$ac_try;;
18171 esac
18172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18173   (eval "$ac_link") 2>conftest.er1
18174   ac_status=$?
18175   grep -v '^ *+' conftest.er1 >conftest.err
18176   rm -f conftest.er1
18177   cat conftest.err >&5
18178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179   (exit $ac_status); } &&
18180          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18181   { (case "(($ac_try" in
18182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18183   *) ac_try_echo=$ac_try;;
18184 esac
18185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18186   (eval "$ac_try") 2>&5
18187   ac_status=$?
18188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189   (exit $ac_status); }; } &&
18190          { ac_try='test -s conftest$ac_exeext'
18191   { (case "(($ac_try" in
18192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18193   *) ac_try_echo=$ac_try;;
18194 esac
18195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18196   (eval "$ac_try") 2>&5
18197   ac_status=$?
18198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199   (exit $ac_status); }; }; then
18200   ac_cv_lib_gcc____chkstk=yes
18201 else
18202   echo "$as_me: failed program was:" >&5
18203 sed 's/^/| /' conftest.$ac_ext >&5
18204
18205         ac_cv_lib_gcc____chkstk=no
18206 fi
18207
18208 rm -f core conftest.err conftest.$ac_objext \
18209       conftest$ac_exeext conftest.$ac_ext
18210 LIBS=$ac_check_lib_save_LIBS
18211 fi
18212 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18213 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18214 if test $ac_cv_lib_gcc____chkstk = yes; then
18215
18216 cat >>confdefs.h <<\_ACEOF
18217 #define HAVE____CHKSTK 1
18218 _ACEOF
18219
18220 fi
18221
18222
18223   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18224 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18225 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18226   echo $ECHO_N "(cached) $ECHO_C" >&6
18227 else
18228   ac_check_lib_save_LIBS=$LIBS
18229 LIBS="-lgcc  $LIBS"
18230 cat >conftest.$ac_ext <<_ACEOF
18231 /* confdefs.h.  */
18232 _ACEOF
18233 cat confdefs.h >>conftest.$ac_ext
18234 cat >>conftest.$ac_ext <<_ACEOF
18235 /* end confdefs.h.  */
18236
18237 /* Override any GCC internal prototype to avoid an error.
18238    Use char because int might match the return type of a GCC
18239    builtin and then its argument prototype would still apply.  */
18240 #ifdef __cplusplus
18241 extern "C"
18242 #endif
18243 char __ashldi3 ();
18244 int
18245 main ()
18246 {
18247 return __ashldi3 ();
18248   ;
18249   return 0;
18250 }
18251 _ACEOF
18252 rm -f conftest.$ac_objext conftest$ac_exeext
18253 if { (ac_try="$ac_link"
18254 case "(($ac_try" in
18255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18256   *) ac_try_echo=$ac_try;;
18257 esac
18258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18259   (eval "$ac_link") 2>conftest.er1
18260   ac_status=$?
18261   grep -v '^ *+' conftest.er1 >conftest.err
18262   rm -f conftest.er1
18263   cat conftest.err >&5
18264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265   (exit $ac_status); } &&
18266          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18267   { (case "(($ac_try" in
18268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18269   *) ac_try_echo=$ac_try;;
18270 esac
18271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18272   (eval "$ac_try") 2>&5
18273   ac_status=$?
18274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275   (exit $ac_status); }; } &&
18276          { ac_try='test -s conftest$ac_exeext'
18277   { (case "(($ac_try" in
18278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279   *) ac_try_echo=$ac_try;;
18280 esac
18281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282   (eval "$ac_try") 2>&5
18283   ac_status=$?
18284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285   (exit $ac_status); }; }; then
18286   ac_cv_lib_gcc___ashldi3=yes
18287 else
18288   echo "$as_me: failed program was:" >&5
18289 sed 's/^/| /' conftest.$ac_ext >&5
18290
18291         ac_cv_lib_gcc___ashldi3=no
18292 fi
18293
18294 rm -f core conftest.err conftest.$ac_objext \
18295       conftest$ac_exeext conftest.$ac_ext
18296 LIBS=$ac_check_lib_save_LIBS
18297 fi
18298 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18299 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18300 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18301
18302 cat >>confdefs.h <<\_ACEOF
18303 #define HAVE___ASHLDI3 1
18304 _ACEOF
18305
18306 fi
18307
18308   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18309 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18310 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18311   echo $ECHO_N "(cached) $ECHO_C" >&6
18312 else
18313   ac_check_lib_save_LIBS=$LIBS
18314 LIBS="-lgcc  $LIBS"
18315 cat >conftest.$ac_ext <<_ACEOF
18316 /* confdefs.h.  */
18317 _ACEOF
18318 cat confdefs.h >>conftest.$ac_ext
18319 cat >>conftest.$ac_ext <<_ACEOF
18320 /* end confdefs.h.  */
18321
18322 /* Override any GCC internal prototype to avoid an error.
18323    Use char because int might match the return type of a GCC
18324    builtin and then its argument prototype would still apply.  */
18325 #ifdef __cplusplus
18326 extern "C"
18327 #endif
18328 char __ashrdi3 ();
18329 int
18330 main ()
18331 {
18332 return __ashrdi3 ();
18333   ;
18334   return 0;
18335 }
18336 _ACEOF
18337 rm -f conftest.$ac_objext conftest$ac_exeext
18338 if { (ac_try="$ac_link"
18339 case "(($ac_try" in
18340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18341   *) ac_try_echo=$ac_try;;
18342 esac
18343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18344   (eval "$ac_link") 2>conftest.er1
18345   ac_status=$?
18346   grep -v '^ *+' conftest.er1 >conftest.err
18347   rm -f conftest.er1
18348   cat conftest.err >&5
18349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350   (exit $ac_status); } &&
18351          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18352   { (case "(($ac_try" in
18353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18354   *) ac_try_echo=$ac_try;;
18355 esac
18356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18357   (eval "$ac_try") 2>&5
18358   ac_status=$?
18359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360   (exit $ac_status); }; } &&
18361          { ac_try='test -s conftest$ac_exeext'
18362   { (case "(($ac_try" in
18363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364   *) ac_try_echo=$ac_try;;
18365 esac
18366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367   (eval "$ac_try") 2>&5
18368   ac_status=$?
18369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370   (exit $ac_status); }; }; then
18371   ac_cv_lib_gcc___ashrdi3=yes
18372 else
18373   echo "$as_me: failed program was:" >&5
18374 sed 's/^/| /' conftest.$ac_ext >&5
18375
18376         ac_cv_lib_gcc___ashrdi3=no
18377 fi
18378
18379 rm -f core conftest.err conftest.$ac_objext \
18380       conftest$ac_exeext conftest.$ac_ext
18381 LIBS=$ac_check_lib_save_LIBS
18382 fi
18383 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18384 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18385 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18386
18387 cat >>confdefs.h <<\_ACEOF
18388 #define HAVE___ASHRDI3 1
18389 _ACEOF
18390
18391 fi
18392
18393   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18394 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18395 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18396   echo $ECHO_N "(cached) $ECHO_C" >&6
18397 else
18398   ac_check_lib_save_LIBS=$LIBS
18399 LIBS="-lgcc  $LIBS"
18400 cat >conftest.$ac_ext <<_ACEOF
18401 /* confdefs.h.  */
18402 _ACEOF
18403 cat confdefs.h >>conftest.$ac_ext
18404 cat >>conftest.$ac_ext <<_ACEOF
18405 /* end confdefs.h.  */
18406
18407 /* Override any GCC internal prototype to avoid an error.
18408    Use char because int might match the return type of a GCC
18409    builtin and then its argument prototype would still apply.  */
18410 #ifdef __cplusplus
18411 extern "C"
18412 #endif
18413 char __divdi3 ();
18414 int
18415 main ()
18416 {
18417 return __divdi3 ();
18418   ;
18419   return 0;
18420 }
18421 _ACEOF
18422 rm -f conftest.$ac_objext conftest$ac_exeext
18423 if { (ac_try="$ac_link"
18424 case "(($ac_try" in
18425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18426   *) ac_try_echo=$ac_try;;
18427 esac
18428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18429   (eval "$ac_link") 2>conftest.er1
18430   ac_status=$?
18431   grep -v '^ *+' conftest.er1 >conftest.err
18432   rm -f conftest.er1
18433   cat conftest.err >&5
18434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435   (exit $ac_status); } &&
18436          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18437   { (case "(($ac_try" in
18438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18439   *) ac_try_echo=$ac_try;;
18440 esac
18441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18442   (eval "$ac_try") 2>&5
18443   ac_status=$?
18444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445   (exit $ac_status); }; } &&
18446          { ac_try='test -s conftest$ac_exeext'
18447   { (case "(($ac_try" in
18448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18449   *) ac_try_echo=$ac_try;;
18450 esac
18451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18452   (eval "$ac_try") 2>&5
18453   ac_status=$?
18454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455   (exit $ac_status); }; }; then
18456   ac_cv_lib_gcc___divdi3=yes
18457 else
18458   echo "$as_me: failed program was:" >&5
18459 sed 's/^/| /' conftest.$ac_ext >&5
18460
18461         ac_cv_lib_gcc___divdi3=no
18462 fi
18463
18464 rm -f core conftest.err conftest.$ac_objext \
18465       conftest$ac_exeext conftest.$ac_ext
18466 LIBS=$ac_check_lib_save_LIBS
18467 fi
18468 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18469 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18470 if test $ac_cv_lib_gcc___divdi3 = yes; then
18471
18472 cat >>confdefs.h <<\_ACEOF
18473 #define HAVE___DIVDI3 1
18474 _ACEOF
18475
18476 fi
18477
18478   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18479 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18480 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18481   echo $ECHO_N "(cached) $ECHO_C" >&6
18482 else
18483   ac_check_lib_save_LIBS=$LIBS
18484 LIBS="-lgcc  $LIBS"
18485 cat >conftest.$ac_ext <<_ACEOF
18486 /* confdefs.h.  */
18487 _ACEOF
18488 cat confdefs.h >>conftest.$ac_ext
18489 cat >>conftest.$ac_ext <<_ACEOF
18490 /* end confdefs.h.  */
18491
18492 /* Override any GCC internal prototype to avoid an error.
18493    Use char because int might match the return type of a GCC
18494    builtin and then its argument prototype would still apply.  */
18495 #ifdef __cplusplus
18496 extern "C"
18497 #endif
18498 char __fixdfdi ();
18499 int
18500 main ()
18501 {
18502 return __fixdfdi ();
18503   ;
18504   return 0;
18505 }
18506 _ACEOF
18507 rm -f conftest.$ac_objext conftest$ac_exeext
18508 if { (ac_try="$ac_link"
18509 case "(($ac_try" in
18510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511   *) ac_try_echo=$ac_try;;
18512 esac
18513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514   (eval "$ac_link") 2>conftest.er1
18515   ac_status=$?
18516   grep -v '^ *+' conftest.er1 >conftest.err
18517   rm -f conftest.er1
18518   cat conftest.err >&5
18519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520   (exit $ac_status); } &&
18521          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18522   { (case "(($ac_try" in
18523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18524   *) ac_try_echo=$ac_try;;
18525 esac
18526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18527   (eval "$ac_try") 2>&5
18528   ac_status=$?
18529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530   (exit $ac_status); }; } &&
18531          { ac_try='test -s conftest$ac_exeext'
18532   { (case "(($ac_try" in
18533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18534   *) ac_try_echo=$ac_try;;
18535 esac
18536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18537   (eval "$ac_try") 2>&5
18538   ac_status=$?
18539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540   (exit $ac_status); }; }; then
18541   ac_cv_lib_gcc___fixdfdi=yes
18542 else
18543   echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18545
18546         ac_cv_lib_gcc___fixdfdi=no
18547 fi
18548
18549 rm -f core conftest.err conftest.$ac_objext \
18550       conftest$ac_exeext conftest.$ac_ext
18551 LIBS=$ac_check_lib_save_LIBS
18552 fi
18553 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18554 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18555 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18556
18557 cat >>confdefs.h <<\_ACEOF
18558 #define HAVE___FIXDFDI 1
18559 _ACEOF
18560
18561 fi
18562
18563   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18564 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18565 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18566   echo $ECHO_N "(cached) $ECHO_C" >&6
18567 else
18568   ac_check_lib_save_LIBS=$LIBS
18569 LIBS="-lgcc  $LIBS"
18570 cat >conftest.$ac_ext <<_ACEOF
18571 /* confdefs.h.  */
18572 _ACEOF
18573 cat confdefs.h >>conftest.$ac_ext
18574 cat >>conftest.$ac_ext <<_ACEOF
18575 /* end confdefs.h.  */
18576
18577 /* Override any GCC internal prototype to avoid an error.
18578    Use char because int might match the return type of a GCC
18579    builtin and then its argument prototype would still apply.  */
18580 #ifdef __cplusplus
18581 extern "C"
18582 #endif
18583 char __fixsfdi ();
18584 int
18585 main ()
18586 {
18587 return __fixsfdi ();
18588   ;
18589   return 0;
18590 }
18591 _ACEOF
18592 rm -f conftest.$ac_objext conftest$ac_exeext
18593 if { (ac_try="$ac_link"
18594 case "(($ac_try" in
18595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596   *) ac_try_echo=$ac_try;;
18597 esac
18598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599   (eval "$ac_link") 2>conftest.er1
18600   ac_status=$?
18601   grep -v '^ *+' conftest.er1 >conftest.err
18602   rm -f conftest.er1
18603   cat conftest.err >&5
18604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605   (exit $ac_status); } &&
18606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18607   { (case "(($ac_try" in
18608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18609   *) ac_try_echo=$ac_try;;
18610 esac
18611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18612   (eval "$ac_try") 2>&5
18613   ac_status=$?
18614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615   (exit $ac_status); }; } &&
18616          { ac_try='test -s conftest$ac_exeext'
18617   { (case "(($ac_try" in
18618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619   *) ac_try_echo=$ac_try;;
18620 esac
18621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18622   (eval "$ac_try") 2>&5
18623   ac_status=$?
18624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625   (exit $ac_status); }; }; then
18626   ac_cv_lib_gcc___fixsfdi=yes
18627 else
18628   echo "$as_me: failed program was:" >&5
18629 sed 's/^/| /' conftest.$ac_ext >&5
18630
18631         ac_cv_lib_gcc___fixsfdi=no
18632 fi
18633
18634 rm -f core conftest.err conftest.$ac_objext \
18635       conftest$ac_exeext conftest.$ac_ext
18636 LIBS=$ac_check_lib_save_LIBS
18637 fi
18638 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18639 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18640 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18641
18642 cat >>confdefs.h <<\_ACEOF
18643 #define HAVE___FIXSFDI 1
18644 _ACEOF
18645
18646 fi
18647
18648   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18649 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18650 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18651   echo $ECHO_N "(cached) $ECHO_C" >&6
18652 else
18653   ac_check_lib_save_LIBS=$LIBS
18654 LIBS="-lgcc  $LIBS"
18655 cat >conftest.$ac_ext <<_ACEOF
18656 /* confdefs.h.  */
18657 _ACEOF
18658 cat confdefs.h >>conftest.$ac_ext
18659 cat >>conftest.$ac_ext <<_ACEOF
18660 /* end confdefs.h.  */
18661
18662 /* Override any GCC internal prototype to avoid an error.
18663    Use char because int might match the return type of a GCC
18664    builtin and then its argument prototype would still apply.  */
18665 #ifdef __cplusplus
18666 extern "C"
18667 #endif
18668 char __floatdidf ();
18669 int
18670 main ()
18671 {
18672 return __floatdidf ();
18673   ;
18674   return 0;
18675 }
18676 _ACEOF
18677 rm -f conftest.$ac_objext conftest$ac_exeext
18678 if { (ac_try="$ac_link"
18679 case "(($ac_try" in
18680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18681   *) ac_try_echo=$ac_try;;
18682 esac
18683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18684   (eval "$ac_link") 2>conftest.er1
18685   ac_status=$?
18686   grep -v '^ *+' conftest.er1 >conftest.err
18687   rm -f conftest.er1
18688   cat conftest.err >&5
18689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690   (exit $ac_status); } &&
18691          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18692   { (case "(($ac_try" in
18693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694   *) ac_try_echo=$ac_try;;
18695 esac
18696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18697   (eval "$ac_try") 2>&5
18698   ac_status=$?
18699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700   (exit $ac_status); }; } &&
18701          { ac_try='test -s conftest$ac_exeext'
18702   { (case "(($ac_try" in
18703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18704   *) ac_try_echo=$ac_try;;
18705 esac
18706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18707   (eval "$ac_try") 2>&5
18708   ac_status=$?
18709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710   (exit $ac_status); }; }; then
18711   ac_cv_lib_gcc___floatdidf=yes
18712 else
18713   echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18715
18716         ac_cv_lib_gcc___floatdidf=no
18717 fi
18718
18719 rm -f core conftest.err conftest.$ac_objext \
18720       conftest$ac_exeext conftest.$ac_ext
18721 LIBS=$ac_check_lib_save_LIBS
18722 fi
18723 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18724 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18725 if test $ac_cv_lib_gcc___floatdidf = yes; then
18726
18727 cat >>confdefs.h <<\_ACEOF
18728 #define HAVE___FLOATDIDF 1
18729 _ACEOF
18730
18731 fi
18732
18733   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18734 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18735 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18736   echo $ECHO_N "(cached) $ECHO_C" >&6
18737 else
18738   ac_check_lib_save_LIBS=$LIBS
18739 LIBS="-lgcc  $LIBS"
18740 cat >conftest.$ac_ext <<_ACEOF
18741 /* confdefs.h.  */
18742 _ACEOF
18743 cat confdefs.h >>conftest.$ac_ext
18744 cat >>conftest.$ac_ext <<_ACEOF
18745 /* end confdefs.h.  */
18746
18747 /* Override any GCC internal prototype to avoid an error.
18748    Use char because int might match the return type of a GCC
18749    builtin and then its argument prototype would still apply.  */
18750 #ifdef __cplusplus
18751 extern "C"
18752 #endif
18753 char __lshrdi3 ();
18754 int
18755 main ()
18756 {
18757 return __lshrdi3 ();
18758   ;
18759   return 0;
18760 }
18761 _ACEOF
18762 rm -f conftest.$ac_objext conftest$ac_exeext
18763 if { (ac_try="$ac_link"
18764 case "(($ac_try" in
18765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766   *) ac_try_echo=$ac_try;;
18767 esac
18768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18769   (eval "$ac_link") 2>conftest.er1
18770   ac_status=$?
18771   grep -v '^ *+' conftest.er1 >conftest.err
18772   rm -f conftest.er1
18773   cat conftest.err >&5
18774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775   (exit $ac_status); } &&
18776          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18777   { (case "(($ac_try" in
18778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779   *) ac_try_echo=$ac_try;;
18780 esac
18781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782   (eval "$ac_try") 2>&5
18783   ac_status=$?
18784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785   (exit $ac_status); }; } &&
18786          { ac_try='test -s conftest$ac_exeext'
18787   { (case "(($ac_try" in
18788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789   *) ac_try_echo=$ac_try;;
18790 esac
18791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792   (eval "$ac_try") 2>&5
18793   ac_status=$?
18794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795   (exit $ac_status); }; }; then
18796   ac_cv_lib_gcc___lshrdi3=yes
18797 else
18798   echo "$as_me: failed program was:" >&5
18799 sed 's/^/| /' conftest.$ac_ext >&5
18800
18801         ac_cv_lib_gcc___lshrdi3=no
18802 fi
18803
18804 rm -f core conftest.err conftest.$ac_objext \
18805       conftest$ac_exeext conftest.$ac_ext
18806 LIBS=$ac_check_lib_save_LIBS
18807 fi
18808 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18809 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18810 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18811
18812 cat >>confdefs.h <<\_ACEOF
18813 #define HAVE___LSHRDI3 1
18814 _ACEOF
18815
18816 fi
18817
18818   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18819 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18820 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18821   echo $ECHO_N "(cached) $ECHO_C" >&6
18822 else
18823   ac_check_lib_save_LIBS=$LIBS
18824 LIBS="-lgcc  $LIBS"
18825 cat >conftest.$ac_ext <<_ACEOF
18826 /* confdefs.h.  */
18827 _ACEOF
18828 cat confdefs.h >>conftest.$ac_ext
18829 cat >>conftest.$ac_ext <<_ACEOF
18830 /* end confdefs.h.  */
18831
18832 /* Override any GCC internal prototype to avoid an error.
18833    Use char because int might match the return type of a GCC
18834    builtin and then its argument prototype would still apply.  */
18835 #ifdef __cplusplus
18836 extern "C"
18837 #endif
18838 char __moddi3 ();
18839 int
18840 main ()
18841 {
18842 return __moddi3 ();
18843   ;
18844   return 0;
18845 }
18846 _ACEOF
18847 rm -f conftest.$ac_objext conftest$ac_exeext
18848 if { (ac_try="$ac_link"
18849 case "(($ac_try" in
18850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851   *) ac_try_echo=$ac_try;;
18852 esac
18853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854   (eval "$ac_link") 2>conftest.er1
18855   ac_status=$?
18856   grep -v '^ *+' conftest.er1 >conftest.err
18857   rm -f conftest.er1
18858   cat conftest.err >&5
18859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860   (exit $ac_status); } &&
18861          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18862   { (case "(($ac_try" in
18863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18864   *) ac_try_echo=$ac_try;;
18865 esac
18866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18867   (eval "$ac_try") 2>&5
18868   ac_status=$?
18869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870   (exit $ac_status); }; } &&
18871          { ac_try='test -s conftest$ac_exeext'
18872   { (case "(($ac_try" in
18873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874   *) ac_try_echo=$ac_try;;
18875 esac
18876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877   (eval "$ac_try") 2>&5
18878   ac_status=$?
18879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880   (exit $ac_status); }; }; then
18881   ac_cv_lib_gcc___moddi3=yes
18882 else
18883   echo "$as_me: failed program was:" >&5
18884 sed 's/^/| /' conftest.$ac_ext >&5
18885
18886         ac_cv_lib_gcc___moddi3=no
18887 fi
18888
18889 rm -f core conftest.err conftest.$ac_objext \
18890       conftest$ac_exeext conftest.$ac_ext
18891 LIBS=$ac_check_lib_save_LIBS
18892 fi
18893 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18894 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18895 if test $ac_cv_lib_gcc___moddi3 = yes; then
18896
18897 cat >>confdefs.h <<\_ACEOF
18898 #define HAVE___MODDI3 1
18899 _ACEOF
18900
18901 fi
18902
18903   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18904 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18905 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18906   echo $ECHO_N "(cached) $ECHO_C" >&6
18907 else
18908   ac_check_lib_save_LIBS=$LIBS
18909 LIBS="-lgcc  $LIBS"
18910 cat >conftest.$ac_ext <<_ACEOF
18911 /* confdefs.h.  */
18912 _ACEOF
18913 cat confdefs.h >>conftest.$ac_ext
18914 cat >>conftest.$ac_ext <<_ACEOF
18915 /* end confdefs.h.  */
18916
18917 /* Override any GCC internal prototype to avoid an error.
18918    Use char because int might match the return type of a GCC
18919    builtin and then its argument prototype would still apply.  */
18920 #ifdef __cplusplus
18921 extern "C"
18922 #endif
18923 char __udivdi3 ();
18924 int
18925 main ()
18926 {
18927 return __udivdi3 ();
18928   ;
18929   return 0;
18930 }
18931 _ACEOF
18932 rm -f conftest.$ac_objext conftest$ac_exeext
18933 if { (ac_try="$ac_link"
18934 case "(($ac_try" in
18935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18936   *) ac_try_echo=$ac_try;;
18937 esac
18938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18939   (eval "$ac_link") 2>conftest.er1
18940   ac_status=$?
18941   grep -v '^ *+' conftest.er1 >conftest.err
18942   rm -f conftest.er1
18943   cat conftest.err >&5
18944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945   (exit $ac_status); } &&
18946          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18947   { (case "(($ac_try" in
18948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949   *) ac_try_echo=$ac_try;;
18950 esac
18951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18952   (eval "$ac_try") 2>&5
18953   ac_status=$?
18954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955   (exit $ac_status); }; } &&
18956          { ac_try='test -s conftest$ac_exeext'
18957   { (case "(($ac_try" in
18958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18959   *) ac_try_echo=$ac_try;;
18960 esac
18961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18962   (eval "$ac_try") 2>&5
18963   ac_status=$?
18964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965   (exit $ac_status); }; }; then
18966   ac_cv_lib_gcc___udivdi3=yes
18967 else
18968   echo "$as_me: failed program was:" >&5
18969 sed 's/^/| /' conftest.$ac_ext >&5
18970
18971         ac_cv_lib_gcc___udivdi3=no
18972 fi
18973
18974 rm -f core conftest.err conftest.$ac_objext \
18975       conftest$ac_exeext conftest.$ac_ext
18976 LIBS=$ac_check_lib_save_LIBS
18977 fi
18978 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18979 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18980 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18981
18982 cat >>confdefs.h <<\_ACEOF
18983 #define HAVE___UDIVDI3 1
18984 _ACEOF
18985
18986 fi
18987
18988   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18989 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18990 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18991   echo $ECHO_N "(cached) $ECHO_C" >&6
18992 else
18993   ac_check_lib_save_LIBS=$LIBS
18994 LIBS="-lgcc  $LIBS"
18995 cat >conftest.$ac_ext <<_ACEOF
18996 /* confdefs.h.  */
18997 _ACEOF
18998 cat confdefs.h >>conftest.$ac_ext
18999 cat >>conftest.$ac_ext <<_ACEOF
19000 /* end confdefs.h.  */
19001
19002 /* Override any GCC internal prototype to avoid an error.
19003    Use char because int might match the return type of a GCC
19004    builtin and then its argument prototype would still apply.  */
19005 #ifdef __cplusplus
19006 extern "C"
19007 #endif
19008 char __umoddi3 ();
19009 int
19010 main ()
19011 {
19012 return __umoddi3 ();
19013   ;
19014   return 0;
19015 }
19016 _ACEOF
19017 rm -f conftest.$ac_objext conftest$ac_exeext
19018 if { (ac_try="$ac_link"
19019 case "(($ac_try" in
19020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021   *) ac_try_echo=$ac_try;;
19022 esac
19023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024   (eval "$ac_link") 2>conftest.er1
19025   ac_status=$?
19026   grep -v '^ *+' conftest.er1 >conftest.err
19027   rm -f conftest.er1
19028   cat conftest.err >&5
19029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030   (exit $ac_status); } &&
19031          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19032   { (case "(($ac_try" in
19033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19034   *) ac_try_echo=$ac_try;;
19035 esac
19036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19037   (eval "$ac_try") 2>&5
19038   ac_status=$?
19039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040   (exit $ac_status); }; } &&
19041          { ac_try='test -s conftest$ac_exeext'
19042   { (case "(($ac_try" in
19043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19044   *) ac_try_echo=$ac_try;;
19045 esac
19046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19047   (eval "$ac_try") 2>&5
19048   ac_status=$?
19049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050   (exit $ac_status); }; }; then
19051   ac_cv_lib_gcc___umoddi3=yes
19052 else
19053   echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19055
19056         ac_cv_lib_gcc___umoddi3=no
19057 fi
19058
19059 rm -f core conftest.err conftest.$ac_objext \
19060       conftest$ac_exeext conftest.$ac_ext
19061 LIBS=$ac_check_lib_save_LIBS
19062 fi
19063 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19064 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19065 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19066
19067 cat >>confdefs.h <<\_ACEOF
19068 #define HAVE___UMODDI3 1
19069 _ACEOF
19070
19071 fi
19072
19073
19074   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19075 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19076 if test "${ac_cv_lib_gcc___main+set}" = set; then
19077   echo $ECHO_N "(cached) $ECHO_C" >&6
19078 else
19079   ac_check_lib_save_LIBS=$LIBS
19080 LIBS="-lgcc  $LIBS"
19081 cat >conftest.$ac_ext <<_ACEOF
19082 /* confdefs.h.  */
19083 _ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h.  */
19087
19088 /* Override any GCC internal prototype to avoid an error.
19089    Use char because int might match the return type of a GCC
19090    builtin and then its argument prototype would still apply.  */
19091 #ifdef __cplusplus
19092 extern "C"
19093 #endif
19094 char __main ();
19095 int
19096 main ()
19097 {
19098 return __main ();
19099   ;
19100   return 0;
19101 }
19102 _ACEOF
19103 rm -f conftest.$ac_objext conftest$ac_exeext
19104 if { (ac_try="$ac_link"
19105 case "(($ac_try" in
19106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19107   *) ac_try_echo=$ac_try;;
19108 esac
19109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19110   (eval "$ac_link") 2>conftest.er1
19111   ac_status=$?
19112   grep -v '^ *+' conftest.er1 >conftest.err
19113   rm -f conftest.er1
19114   cat conftest.err >&5
19115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116   (exit $ac_status); } &&
19117          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19118   { (case "(($ac_try" in
19119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120   *) ac_try_echo=$ac_try;;
19121 esac
19122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19123   (eval "$ac_try") 2>&5
19124   ac_status=$?
19125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126   (exit $ac_status); }; } &&
19127          { ac_try='test -s conftest$ac_exeext'
19128   { (case "(($ac_try" in
19129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130   *) ac_try_echo=$ac_try;;
19131 esac
19132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133   (eval "$ac_try") 2>&5
19134   ac_status=$?
19135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136   (exit $ac_status); }; }; then
19137   ac_cv_lib_gcc___main=yes
19138 else
19139   echo "$as_me: failed program was:" >&5
19140 sed 's/^/| /' conftest.$ac_ext >&5
19141
19142         ac_cv_lib_gcc___main=no
19143 fi
19144
19145 rm -f core conftest.err conftest.$ac_objext \
19146       conftest$ac_exeext conftest.$ac_ext
19147 LIBS=$ac_check_lib_save_LIBS
19148 fi
19149 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19150 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19151 if test $ac_cv_lib_gcc___main = yes; then
19152
19153 cat >>confdefs.h <<\_ACEOF
19154 #define HAVE___MAIN 1
19155 _ACEOF
19156
19157 fi
19158
19159   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19160 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19161 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19162   echo $ECHO_N "(cached) $ECHO_C" >&6
19163 else
19164   ac_check_lib_save_LIBS=$LIBS
19165 LIBS="-lgcc  $LIBS"
19166 cat >conftest.$ac_ext <<_ACEOF
19167 /* confdefs.h.  */
19168 _ACEOF
19169 cat confdefs.h >>conftest.$ac_ext
19170 cat >>conftest.$ac_ext <<_ACEOF
19171 /* end confdefs.h.  */
19172
19173 /* Override any GCC internal prototype to avoid an error.
19174    Use char because int might match the return type of a GCC
19175    builtin and then its argument prototype would still apply.  */
19176 #ifdef __cplusplus
19177 extern "C"
19178 #endif
19179 char __cmpdi2 ();
19180 int
19181 main ()
19182 {
19183 return __cmpdi2 ();
19184   ;
19185   return 0;
19186 }
19187 _ACEOF
19188 rm -f conftest.$ac_objext conftest$ac_exeext
19189 if { (ac_try="$ac_link"
19190 case "(($ac_try" in
19191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192   *) ac_try_echo=$ac_try;;
19193 esac
19194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195   (eval "$ac_link") 2>conftest.er1
19196   ac_status=$?
19197   grep -v '^ *+' conftest.er1 >conftest.err
19198   rm -f conftest.er1
19199   cat conftest.err >&5
19200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201   (exit $ac_status); } &&
19202          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19203   { (case "(($ac_try" in
19204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19205   *) ac_try_echo=$ac_try;;
19206 esac
19207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19208   (eval "$ac_try") 2>&5
19209   ac_status=$?
19210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211   (exit $ac_status); }; } &&
19212          { ac_try='test -s conftest$ac_exeext'
19213   { (case "(($ac_try" in
19214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215   *) ac_try_echo=$ac_try;;
19216 esac
19217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19218   (eval "$ac_try") 2>&5
19219   ac_status=$?
19220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221   (exit $ac_status); }; }; then
19222   ac_cv_lib_gcc___cmpdi2=yes
19223 else
19224   echo "$as_me: failed program was:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19226
19227         ac_cv_lib_gcc___cmpdi2=no
19228 fi
19229
19230 rm -f core conftest.err conftest.$ac_objext \
19231       conftest$ac_exeext conftest.$ac_ext
19232 LIBS=$ac_check_lib_save_LIBS
19233 fi
19234 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19235 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19236 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19237
19238 cat >>confdefs.h <<\_ACEOF
19239 #define HAVE___CMPDI2 1
19240 _ACEOF
19241
19242 fi
19243
19244 fi
19245
19246 if test "$llvm_cv_os_type" = "MingW" ; then
19247   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19248 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19249   cat >conftest.$ac_ext <<_ACEOF
19250 #include <windows.h>
19251 #include <imagehlp.h>
19252 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19253 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19254 _ACEOF
19255 rm -f conftest.$ac_objext
19256 if { (ac_try="$ac_compile"
19257 case "(($ac_try" in
19258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19259   *) ac_try_echo=$ac_try;;
19260 esac
19261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19262   (eval "$ac_compile") 2>conftest.er1
19263   ac_status=$?
19264   grep -v '^ *+' conftest.er1 >conftest.err
19265   rm -f conftest.er1
19266   cat conftest.err >&5
19267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268   (exit $ac_status); } &&
19269          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19270   { (case "(($ac_try" in
19271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272   *) ac_try_echo=$ac_try;;
19273 esac
19274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19275   (eval "$ac_try") 2>&5
19276   ac_status=$?
19277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278   (exit $ac_status); }; } &&
19279          { ac_try='test -s conftest.$ac_objext'
19280   { (case "(($ac_try" in
19281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282   *) ac_try_echo=$ac_try;;
19283 esac
19284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285   (eval "$ac_try") 2>&5
19286   ac_status=$?
19287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288   (exit $ac_status); }; }; then
19289
19290   { echo "$as_me:$LINENO: result: yes" >&5
19291 echo "${ECHO_T}yes" >&6; }
19292   llvm_cv_win32_elmcb_pcstr="PCSTR"
19293
19294 else
19295   echo "$as_me: failed program was:" >&5
19296 sed 's/^/| /' conftest.$ac_ext >&5
19297
19298
19299   { echo "$as_me:$LINENO: result: no" >&5
19300 echo "${ECHO_T}no" >&6; }
19301   llvm_cv_win32_elmcb_pcstr="PSTR"
19302
19303 fi
19304
19305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19306
19307 cat >>confdefs.h <<_ACEOF
19308 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19309 _ACEOF
19310
19311 fi
19312
19313
19314 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19315 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19316 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19317   echo $ECHO_N "(cached) $ECHO_C" >&6
19318 else
19319   ac_ext=cpp
19320 ac_cpp='$CXXCPP $CPPFLAGS'
19321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19324
19325    cat >conftest.$ac_ext <<_ACEOF
19326 /* confdefs.h.  */
19327 _ACEOF
19328 cat confdefs.h >>conftest.$ac_ext
19329 cat >>conftest.$ac_ext <<_ACEOF
19330 /* end confdefs.h.  */
19331 #include <math.h>
19332 int
19333 main ()
19334 {
19335 float f; isnan(f);
19336   ;
19337   return 0;
19338 }
19339 _ACEOF
19340 rm -f conftest.$ac_objext
19341 if { (ac_try="$ac_compile"
19342 case "(($ac_try" in
19343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344   *) ac_try_echo=$ac_try;;
19345 esac
19346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19347   (eval "$ac_compile") 2>conftest.er1
19348   ac_status=$?
19349   grep -v '^ *+' conftest.er1 >conftest.err
19350   rm -f conftest.er1
19351   cat conftest.err >&5
19352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353   (exit $ac_status); } &&
19354          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19355   { (case "(($ac_try" in
19356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19357   *) ac_try_echo=$ac_try;;
19358 esac
19359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19360   (eval "$ac_try") 2>&5
19361   ac_status=$?
19362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363   (exit $ac_status); }; } &&
19364          { ac_try='test -s conftest.$ac_objext'
19365   { (case "(($ac_try" in
19366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19367   *) ac_try_echo=$ac_try;;
19368 esac
19369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19370   (eval "$ac_try") 2>&5
19371   ac_status=$?
19372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373   (exit $ac_status); }; }; then
19374   ac_cv_func_isnan_in_math_h=yes
19375 else
19376   echo "$as_me: failed program was:" >&5
19377 sed 's/^/| /' conftest.$ac_ext >&5
19378
19379         ac_cv_func_isnan_in_math_h=no
19380 fi
19381
19382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19383   ac_ext=c
19384 ac_cpp='$CPP $CPPFLAGS'
19385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19388
19389 fi
19390 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19391 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19392
19393
19394 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19395
19396 cat >>confdefs.h <<\_ACEOF
19397 #define HAVE_ISNAN_IN_MATH_H 1
19398 _ACEOF
19399
19400 fi
19401
19402 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19403 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19404 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19405   echo $ECHO_N "(cached) $ECHO_C" >&6
19406 else
19407   ac_ext=cpp
19408 ac_cpp='$CXXCPP $CPPFLAGS'
19409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19412
19413    cat >conftest.$ac_ext <<_ACEOF
19414 /* confdefs.h.  */
19415 _ACEOF
19416 cat confdefs.h >>conftest.$ac_ext
19417 cat >>conftest.$ac_ext <<_ACEOF
19418 /* end confdefs.h.  */
19419 #include <cmath>
19420 int
19421 main ()
19422 {
19423 float f; isnan(f);
19424   ;
19425   return 0;
19426 }
19427 _ACEOF
19428 rm -f conftest.$ac_objext
19429 if { (ac_try="$ac_compile"
19430 case "(($ac_try" in
19431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432   *) ac_try_echo=$ac_try;;
19433 esac
19434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19435   (eval "$ac_compile") 2>conftest.er1
19436   ac_status=$?
19437   grep -v '^ *+' conftest.er1 >conftest.err
19438   rm -f conftest.er1
19439   cat conftest.err >&5
19440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441   (exit $ac_status); } &&
19442          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19443   { (case "(($ac_try" in
19444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19445   *) ac_try_echo=$ac_try;;
19446 esac
19447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19448   (eval "$ac_try") 2>&5
19449   ac_status=$?
19450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451   (exit $ac_status); }; } &&
19452          { ac_try='test -s conftest.$ac_objext'
19453   { (case "(($ac_try" in
19454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19455   *) ac_try_echo=$ac_try;;
19456 esac
19457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19458   (eval "$ac_try") 2>&5
19459   ac_status=$?
19460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461   (exit $ac_status); }; }; then
19462   ac_cv_func_isnan_in_cmath=yes
19463 else
19464   echo "$as_me: failed program was:" >&5
19465 sed 's/^/| /' conftest.$ac_ext >&5
19466
19467         ac_cv_func_isnan_in_cmath=no
19468 fi
19469
19470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19471   ac_ext=c
19472 ac_cpp='$CPP $CPPFLAGS'
19473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19476
19477 fi
19478 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19479 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19480
19481 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19482
19483 cat >>confdefs.h <<\_ACEOF
19484 #define HAVE_ISNAN_IN_CMATH 1
19485 _ACEOF
19486
19487 fi
19488
19489 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19490 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19491 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19492   echo $ECHO_N "(cached) $ECHO_C" >&6
19493 else
19494   ac_ext=cpp
19495 ac_cpp='$CXXCPP $CPPFLAGS'
19496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19499
19500    cat >conftest.$ac_ext <<_ACEOF
19501 /* confdefs.h.  */
19502 _ACEOF
19503 cat confdefs.h >>conftest.$ac_ext
19504 cat >>conftest.$ac_ext <<_ACEOF
19505 /* end confdefs.h.  */
19506 #include <cmath>
19507 int
19508 main ()
19509 {
19510 float f; std::isnan(f);
19511   ;
19512   return 0;
19513 }
19514 _ACEOF
19515 rm -f conftest.$ac_objext
19516 if { (ac_try="$ac_compile"
19517 case "(($ac_try" in
19518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19519   *) ac_try_echo=$ac_try;;
19520 esac
19521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522   (eval "$ac_compile") 2>conftest.er1
19523   ac_status=$?
19524   grep -v '^ *+' conftest.er1 >conftest.err
19525   rm -f conftest.er1
19526   cat conftest.err >&5
19527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528   (exit $ac_status); } &&
19529          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19530   { (case "(($ac_try" in
19531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532   *) ac_try_echo=$ac_try;;
19533 esac
19534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535   (eval "$ac_try") 2>&5
19536   ac_status=$?
19537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538   (exit $ac_status); }; } &&
19539          { ac_try='test -s conftest.$ac_objext'
19540   { (case "(($ac_try" in
19541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542   *) ac_try_echo=$ac_try;;
19543 esac
19544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19545   (eval "$ac_try") 2>&5
19546   ac_status=$?
19547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548   (exit $ac_status); }; }; then
19549   ac_cv_func_std_isnan_in_cmath=yes
19550 else
19551   echo "$as_me: failed program was:" >&5
19552 sed 's/^/| /' conftest.$ac_ext >&5
19553
19554         ac_cv_func_std_isnan_in_cmath=no
19555 fi
19556
19557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19558   ac_ext=c
19559 ac_cpp='$CPP $CPPFLAGS'
19560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19563
19564 fi
19565 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19566 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19567
19568 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19569
19570 cat >>confdefs.h <<\_ACEOF
19571 #define HAVE_STD_ISNAN_IN_CMATH 1
19572 _ACEOF
19573
19574 fi
19575
19576
19577 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19578 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19579 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19580   echo $ECHO_N "(cached) $ECHO_C" >&6
19581 else
19582   ac_ext=cpp
19583 ac_cpp='$CXXCPP $CPPFLAGS'
19584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19587
19588    cat >conftest.$ac_ext <<_ACEOF
19589 /* confdefs.h.  */
19590 _ACEOF
19591 cat confdefs.h >>conftest.$ac_ext
19592 cat >>conftest.$ac_ext <<_ACEOF
19593 /* end confdefs.h.  */
19594 #include <math.h>
19595 int
19596 main ()
19597 {
19598 float f; isinf(f);
19599   ;
19600   return 0;
19601 }
19602 _ACEOF
19603 rm -f conftest.$ac_objext
19604 if { (ac_try="$ac_compile"
19605 case "(($ac_try" in
19606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19607   *) ac_try_echo=$ac_try;;
19608 esac
19609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19610   (eval "$ac_compile") 2>conftest.er1
19611   ac_status=$?
19612   grep -v '^ *+' conftest.er1 >conftest.err
19613   rm -f conftest.er1
19614   cat conftest.err >&5
19615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616   (exit $ac_status); } &&
19617          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19618   { (case "(($ac_try" in
19619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620   *) ac_try_echo=$ac_try;;
19621 esac
19622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623   (eval "$ac_try") 2>&5
19624   ac_status=$?
19625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626   (exit $ac_status); }; } &&
19627          { ac_try='test -s conftest.$ac_objext'
19628   { (case "(($ac_try" in
19629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630   *) ac_try_echo=$ac_try;;
19631 esac
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633   (eval "$ac_try") 2>&5
19634   ac_status=$?
19635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636   (exit $ac_status); }; }; then
19637   ac_cv_func_isinf_in_math_h=yes
19638 else
19639   echo "$as_me: failed program was:" >&5
19640 sed 's/^/| /' conftest.$ac_ext >&5
19641
19642         ac_cv_func_isinf_in_math_h=no
19643 fi
19644
19645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19646   ac_ext=c
19647 ac_cpp='$CPP $CPPFLAGS'
19648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19651
19652 fi
19653 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19654 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19655
19656 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19657
19658 cat >>confdefs.h <<\_ACEOF
19659 #define HAVE_ISINF_IN_MATH_H 1
19660 _ACEOF
19661
19662 fi
19663
19664 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19665 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19666 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19667   echo $ECHO_N "(cached) $ECHO_C" >&6
19668 else
19669   ac_ext=cpp
19670 ac_cpp='$CXXCPP $CPPFLAGS'
19671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19674
19675    cat >conftest.$ac_ext <<_ACEOF
19676 /* confdefs.h.  */
19677 _ACEOF
19678 cat confdefs.h >>conftest.$ac_ext
19679 cat >>conftest.$ac_ext <<_ACEOF
19680 /* end confdefs.h.  */
19681 #include <cmath>
19682 int
19683 main ()
19684 {
19685 float f; isinf(f);
19686   ;
19687   return 0;
19688 }
19689 _ACEOF
19690 rm -f conftest.$ac_objext
19691 if { (ac_try="$ac_compile"
19692 case "(($ac_try" in
19693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19694   *) ac_try_echo=$ac_try;;
19695 esac
19696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19697   (eval "$ac_compile") 2>conftest.er1
19698   ac_status=$?
19699   grep -v '^ *+' conftest.er1 >conftest.err
19700   rm -f conftest.er1
19701   cat conftest.err >&5
19702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703   (exit $ac_status); } &&
19704          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19705   { (case "(($ac_try" in
19706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707   *) ac_try_echo=$ac_try;;
19708 esac
19709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710   (eval "$ac_try") 2>&5
19711   ac_status=$?
19712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713   (exit $ac_status); }; } &&
19714          { ac_try='test -s conftest.$ac_objext'
19715   { (case "(($ac_try" in
19716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19717   *) ac_try_echo=$ac_try;;
19718 esac
19719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19720   (eval "$ac_try") 2>&5
19721   ac_status=$?
19722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723   (exit $ac_status); }; }; then
19724   ac_cv_func_isinf_in_cmath=yes
19725 else
19726   echo "$as_me: failed program was:" >&5
19727 sed 's/^/| /' conftest.$ac_ext >&5
19728
19729         ac_cv_func_isinf_in_cmath=no
19730 fi
19731
19732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19733   ac_ext=c
19734 ac_cpp='$CPP $CPPFLAGS'
19735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19738
19739 fi
19740 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19741 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19742
19743 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19744
19745 cat >>confdefs.h <<\_ACEOF
19746 #define HAVE_ISINF_IN_CMATH 1
19747 _ACEOF
19748
19749 fi
19750
19751 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19752 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19753 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19754   echo $ECHO_N "(cached) $ECHO_C" >&6
19755 else
19756   ac_ext=cpp
19757 ac_cpp='$CXXCPP $CPPFLAGS'
19758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19761
19762    cat >conftest.$ac_ext <<_ACEOF
19763 /* confdefs.h.  */
19764 _ACEOF
19765 cat confdefs.h >>conftest.$ac_ext
19766 cat >>conftest.$ac_ext <<_ACEOF
19767 /* end confdefs.h.  */
19768 #include <cmath>
19769 int
19770 main ()
19771 {
19772 float f; std::isinf(f);
19773   ;
19774   return 0;
19775 }
19776 _ACEOF
19777 rm -f conftest.$ac_objext
19778 if { (ac_try="$ac_compile"
19779 case "(($ac_try" in
19780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19781   *) ac_try_echo=$ac_try;;
19782 esac
19783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19784   (eval "$ac_compile") 2>conftest.er1
19785   ac_status=$?
19786   grep -v '^ *+' conftest.er1 >conftest.err
19787   rm -f conftest.er1
19788   cat conftest.err >&5
19789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790   (exit $ac_status); } &&
19791          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19792   { (case "(($ac_try" in
19793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794   *) ac_try_echo=$ac_try;;
19795 esac
19796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797   (eval "$ac_try") 2>&5
19798   ac_status=$?
19799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800   (exit $ac_status); }; } &&
19801          { ac_try='test -s conftest.$ac_objext'
19802   { (case "(($ac_try" in
19803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804   *) ac_try_echo=$ac_try;;
19805 esac
19806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19807   (eval "$ac_try") 2>&5
19808   ac_status=$?
19809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810   (exit $ac_status); }; }; then
19811   ac_cv_func_std_isinf_in_cmath=yes
19812 else
19813   echo "$as_me: failed program was:" >&5
19814 sed 's/^/| /' conftest.$ac_ext >&5
19815
19816         ac_cv_func_std_isinf_in_cmath=no
19817 fi
19818
19819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19820   ac_ext=c
19821 ac_cpp='$CPP $CPPFLAGS'
19822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19825
19826 fi
19827 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19828 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19829
19830 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19831
19832 cat >>confdefs.h <<\_ACEOF
19833 #define HAVE_STD_ISINF_IN_CMATH 1
19834 _ACEOF
19835
19836 fi
19837
19838 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19839 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19840 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19841   echo $ECHO_N "(cached) $ECHO_C" >&6
19842 else
19843   ac_ext=cpp
19844 ac_cpp='$CXXCPP $CPPFLAGS'
19845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19848
19849    cat >conftest.$ac_ext <<_ACEOF
19850 /* confdefs.h.  */
19851 _ACEOF
19852 cat confdefs.h >>conftest.$ac_ext
19853 cat >>conftest.$ac_ext <<_ACEOF
19854 /* end confdefs.h.  */
19855 #include <ieeefp.h>
19856 int
19857 main ()
19858 {
19859 float f; finite(f);
19860   ;
19861   return 0;
19862 }
19863 _ACEOF
19864 rm -f conftest.$ac_objext
19865 if { (ac_try="$ac_compile"
19866 case "(($ac_try" in
19867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19868   *) ac_try_echo=$ac_try;;
19869 esac
19870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19871   (eval "$ac_compile") 2>conftest.er1
19872   ac_status=$?
19873   grep -v '^ *+' conftest.er1 >conftest.err
19874   rm -f conftest.er1
19875   cat conftest.err >&5
19876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877   (exit $ac_status); } &&
19878          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19879   { (case "(($ac_try" in
19880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881   *) ac_try_echo=$ac_try;;
19882 esac
19883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884   (eval "$ac_try") 2>&5
19885   ac_status=$?
19886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887   (exit $ac_status); }; } &&
19888          { ac_try='test -s conftest.$ac_objext'
19889   { (case "(($ac_try" in
19890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19891   *) ac_try_echo=$ac_try;;
19892 esac
19893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19894   (eval "$ac_try") 2>&5
19895   ac_status=$?
19896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897   (exit $ac_status); }; }; then
19898   ac_cv_func_finite_in_ieeefp_h=yes
19899 else
19900   echo "$as_me: failed program was:" >&5
19901 sed 's/^/| /' conftest.$ac_ext >&5
19902
19903         ac_cv_func_finite_in_ieeefp_h=no
19904 fi
19905
19906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19907   ac_ext=c
19908 ac_cpp='$CPP $CPPFLAGS'
19909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19912
19913 fi
19914 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19915 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19916
19917 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19918
19919 cat >>confdefs.h <<\_ACEOF
19920 #define HAVE_FINITE_IN_IEEEFP_H 1
19921 _ACEOF
19922
19923 fi
19924
19925
19926
19927 if test "$llvm_cv_platform_type" = "Unix" ; then
19928
19929
19930 for ac_header in stdlib.h unistd.h
19931 do
19932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19934   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19937   echo $ECHO_N "(cached) $ECHO_C" >&6
19938 fi
19939 ac_res=`eval echo '${'$as_ac_Header'}'`
19940                { echo "$as_me:$LINENO: result: $ac_res" >&5
19941 echo "${ECHO_T}$ac_res" >&6; }
19942 else
19943   # Is the header compilable?
19944 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19945 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19946 cat >conftest.$ac_ext <<_ACEOF
19947 /* confdefs.h.  */
19948 _ACEOF
19949 cat confdefs.h >>conftest.$ac_ext
19950 cat >>conftest.$ac_ext <<_ACEOF
19951 /* end confdefs.h.  */
19952 $ac_includes_default
19953 #include <$ac_header>
19954 _ACEOF
19955 rm -f conftest.$ac_objext
19956 if { (ac_try="$ac_compile"
19957 case "(($ac_try" in
19958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19959   *) ac_try_echo=$ac_try;;
19960 esac
19961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19962   (eval "$ac_compile") 2>conftest.er1
19963   ac_status=$?
19964   grep -v '^ *+' conftest.er1 >conftest.err
19965   rm -f conftest.er1
19966   cat conftest.err >&5
19967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968   (exit $ac_status); } &&
19969          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19970   { (case "(($ac_try" in
19971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19972   *) ac_try_echo=$ac_try;;
19973 esac
19974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19975   (eval "$ac_try") 2>&5
19976   ac_status=$?
19977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978   (exit $ac_status); }; } &&
19979          { ac_try='test -s conftest.$ac_objext'
19980   { (case "(($ac_try" in
19981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982   *) ac_try_echo=$ac_try;;
19983 esac
19984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19985   (eval "$ac_try") 2>&5
19986   ac_status=$?
19987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988   (exit $ac_status); }; }; then
19989   ac_header_compiler=yes
19990 else
19991   echo "$as_me: failed program was:" >&5
19992 sed 's/^/| /' conftest.$ac_ext >&5
19993
19994         ac_header_compiler=no
19995 fi
19996
19997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19998 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19999 echo "${ECHO_T}$ac_header_compiler" >&6; }
20000
20001 # Is the header present?
20002 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20004 cat >conftest.$ac_ext <<_ACEOF
20005 /* confdefs.h.  */
20006 _ACEOF
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h.  */
20010 #include <$ac_header>
20011 _ACEOF
20012 if { (ac_try="$ac_cpp conftest.$ac_ext"
20013 case "(($ac_try" in
20014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20015   *) ac_try_echo=$ac_try;;
20016 esac
20017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20018   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20019   ac_status=$?
20020   grep -v '^ *+' conftest.er1 >conftest.err
20021   rm -f conftest.er1
20022   cat conftest.err >&5
20023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024   (exit $ac_status); } >/dev/null; then
20025   if test -s conftest.err; then
20026     ac_cpp_err=$ac_c_preproc_warn_flag
20027     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20028   else
20029     ac_cpp_err=
20030   fi
20031 else
20032   ac_cpp_err=yes
20033 fi
20034 if test -z "$ac_cpp_err"; then
20035   ac_header_preproc=yes
20036 else
20037   echo "$as_me: failed program was:" >&5
20038 sed 's/^/| /' conftest.$ac_ext >&5
20039
20040   ac_header_preproc=no
20041 fi
20042
20043 rm -f conftest.err conftest.$ac_ext
20044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20045 echo "${ECHO_T}$ac_header_preproc" >&6; }
20046
20047 # So?  What about this header?
20048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20049   yes:no: )
20050     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20052     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20054     ac_header_preproc=yes
20055     ;;
20056   no:yes:* )
20057     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20059     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20060 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20061     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20063     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20064 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20065     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20067     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20069     ( cat <<\_ASBOX
20070 ## ------------------------------------ ##
20071 ## Report this to http://llvm.org/bugs/ ##
20072 ## ------------------------------------ ##
20073 _ASBOX
20074      ) | sed "s/^/$as_me: WARNING:     /" >&2
20075     ;;
20076 esac
20077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20080   echo $ECHO_N "(cached) $ECHO_C" >&6
20081 else
20082   eval "$as_ac_Header=\$ac_header_preproc"
20083 fi
20084 ac_res=`eval echo '${'$as_ac_Header'}'`
20085                { echo "$as_me:$LINENO: result: $ac_res" >&5
20086 echo "${ECHO_T}$ac_res" >&6; }
20087
20088 fi
20089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20090   cat >>confdefs.h <<_ACEOF
20091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20092 _ACEOF
20093
20094 fi
20095
20096 done
20097
20098
20099 for ac_func in getpagesize
20100 do
20101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20102 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20104 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20105   echo $ECHO_N "(cached) $ECHO_C" >&6
20106 else
20107   cat >conftest.$ac_ext <<_ACEOF
20108 /* confdefs.h.  */
20109 _ACEOF
20110 cat confdefs.h >>conftest.$ac_ext
20111 cat >>conftest.$ac_ext <<_ACEOF
20112 /* end confdefs.h.  */
20113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20114    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20115 #define $ac_func innocuous_$ac_func
20116
20117 /* System header to define __stub macros and hopefully few prototypes,
20118     which can conflict with char $ac_func (); below.
20119     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20120     <limits.h> exists even on freestanding compilers.  */
20121
20122 #ifdef __STDC__
20123 # include <limits.h>
20124 #else
20125 # include <assert.h>
20126 #endif
20127
20128 #undef $ac_func
20129
20130 /* Override any GCC internal prototype to avoid an error.
20131    Use char because int might match the return type of a GCC
20132    builtin and then its argument prototype would still apply.  */
20133 #ifdef __cplusplus
20134 extern "C"
20135 #endif
20136 char $ac_func ();
20137 /* The GNU C library defines this for functions which it implements
20138     to always fail with ENOSYS.  Some functions are actually named
20139     something starting with __ and the normal name is an alias.  */
20140 #if defined __stub_$ac_func || defined __stub___$ac_func
20141 choke me
20142 #endif
20143
20144 int
20145 main ()
20146 {
20147 return $ac_func ();
20148   ;
20149   return 0;
20150 }
20151 _ACEOF
20152 rm -f conftest.$ac_objext conftest$ac_exeext
20153 if { (ac_try="$ac_link"
20154 case "(($ac_try" in
20155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20156   *) ac_try_echo=$ac_try;;
20157 esac
20158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20159   (eval "$ac_link") 2>conftest.er1
20160   ac_status=$?
20161   grep -v '^ *+' conftest.er1 >conftest.err
20162   rm -f conftest.er1
20163   cat conftest.err >&5
20164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165   (exit $ac_status); } &&
20166          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20167   { (case "(($ac_try" in
20168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20169   *) ac_try_echo=$ac_try;;
20170 esac
20171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20172   (eval "$ac_try") 2>&5
20173   ac_status=$?
20174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175   (exit $ac_status); }; } &&
20176          { ac_try='test -s conftest$ac_exeext'
20177   { (case "(($ac_try" in
20178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20179   *) ac_try_echo=$ac_try;;
20180 esac
20181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20182   (eval "$ac_try") 2>&5
20183   ac_status=$?
20184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185   (exit $ac_status); }; }; then
20186   eval "$as_ac_var=yes"
20187 else
20188   echo "$as_me: failed program was:" >&5
20189 sed 's/^/| /' conftest.$ac_ext >&5
20190
20191         eval "$as_ac_var=no"
20192 fi
20193
20194 rm -f core conftest.err conftest.$ac_objext \
20195       conftest$ac_exeext conftest.$ac_ext
20196 fi
20197 ac_res=`eval echo '${'$as_ac_var'}'`
20198                { echo "$as_me:$LINENO: result: $ac_res" >&5
20199 echo "${ECHO_T}$ac_res" >&6; }
20200 if test `eval echo '${'$as_ac_var'}'` = yes; then
20201   cat >>confdefs.h <<_ACEOF
20202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20203 _ACEOF
20204
20205 fi
20206 done
20207
20208 { echo "$as_me:$LINENO: checking for working mmap" >&5
20209 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20210 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20211   echo $ECHO_N "(cached) $ECHO_C" >&6
20212 else
20213   if test "$cross_compiling" = yes; then
20214   ac_cv_func_mmap_fixed_mapped=no
20215 else
20216   cat >conftest.$ac_ext <<_ACEOF
20217 /* confdefs.h.  */
20218 _ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h.  */
20222 $ac_includes_default
20223 /* malloc might have been renamed as rpl_malloc. */
20224 #undef malloc
20225
20226 /* Thanks to Mike Haertel and Jim Avera for this test.
20227    Here is a matrix of mmap possibilities:
20228         mmap private not fixed
20229         mmap private fixed at somewhere currently unmapped
20230         mmap private fixed at somewhere already mapped
20231         mmap shared not fixed
20232         mmap shared fixed at somewhere currently unmapped
20233         mmap shared fixed at somewhere already mapped
20234    For private mappings, we should verify that changes cannot be read()
20235    back from the file, nor mmap's back from the file at a different
20236    address.  (There have been systems where private was not correctly
20237    implemented like the infamous i386 svr4.0, and systems where the
20238    VM page cache was not coherent with the file system buffer cache
20239    like early versions of FreeBSD and possibly contemporary NetBSD.)
20240    For shared mappings, we should conversely verify that changes get
20241    propagated back to all the places they're supposed to be.
20242
20243    Grep wants private fixed already mapped.
20244    The main things grep needs to know about mmap are:
20245    * does it exist and is it safe to write into the mmap'd area
20246    * how to use it (BSD variants)  */
20247
20248 #include <fcntl.h>
20249 #include <sys/mman.h>
20250
20251 #if !STDC_HEADERS && !HAVE_STDLIB_H
20252 char *malloc ();
20253 #endif
20254
20255 /* This mess was copied from the GNU getpagesize.h.  */
20256 #if !HAVE_GETPAGESIZE
20257 /* Assume that all systems that can run configure have sys/param.h.  */
20258 # if !HAVE_SYS_PARAM_H
20259 #  define HAVE_SYS_PARAM_H 1
20260 # endif
20261
20262 # ifdef _SC_PAGESIZE
20263 #  define getpagesize() sysconf(_SC_PAGESIZE)
20264 # else /* no _SC_PAGESIZE */
20265 #  if HAVE_SYS_PARAM_H
20266 #   include <sys/param.h>
20267 #   ifdef EXEC_PAGESIZE
20268 #    define getpagesize() EXEC_PAGESIZE
20269 #   else /* no EXEC_PAGESIZE */
20270 #    ifdef NBPG
20271 #     define getpagesize() NBPG * CLSIZE
20272 #     ifndef CLSIZE
20273 #      define CLSIZE 1
20274 #     endif /* no CLSIZE */
20275 #    else /* no NBPG */
20276 #     ifdef NBPC
20277 #      define getpagesize() NBPC
20278 #     else /* no NBPC */
20279 #      ifdef PAGESIZE
20280 #       define getpagesize() PAGESIZE
20281 #      endif /* PAGESIZE */
20282 #     endif /* no NBPC */
20283 #    endif /* no NBPG */
20284 #   endif /* no EXEC_PAGESIZE */
20285 #  else /* no HAVE_SYS_PARAM_H */
20286 #   define getpagesize() 8192   /* punt totally */
20287 #  endif /* no HAVE_SYS_PARAM_H */
20288 # endif /* no _SC_PAGESIZE */
20289
20290 #endif /* no HAVE_GETPAGESIZE */
20291
20292 int
20293 main ()
20294 {
20295   char *data, *data2, *data3;
20296   int i, pagesize;
20297   int fd;
20298
20299   pagesize = getpagesize ();
20300
20301   /* First, make a file with some known garbage in it. */
20302   data = (char *) malloc (pagesize);
20303   if (!data)
20304     return 1;
20305   for (i = 0; i < pagesize; ++i)
20306     *(data + i) = rand ();
20307   umask (0);
20308   fd = creat ("conftest.mmap", 0600);
20309   if (fd < 0)
20310     return 1;
20311   if (write (fd, data, pagesize) != pagesize)
20312     return 1;
20313   close (fd);
20314
20315   /* Next, try to mmap the file at a fixed address which already has
20316      something else allocated at it.  If we can, also make sure that
20317      we see the same garbage.  */
20318   fd = open ("conftest.mmap", O_RDWR);
20319   if (fd < 0)
20320     return 1;
20321   data2 = (char *) malloc (2 * pagesize);
20322   if (!data2)
20323     return 1;
20324   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20325   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20326                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20327     return 1;
20328   for (i = 0; i < pagesize; ++i)
20329     if (*(data + i) != *(data2 + i))
20330       return 1;
20331
20332   /* Finally, make sure that changes to the mapped area do not
20333      percolate back to the file as seen by read().  (This is a bug on
20334      some variants of i386 svr4.0.)  */
20335   for (i = 0; i < pagesize; ++i)
20336     *(data2 + i) = *(data2 + i) + 1;
20337   data3 = (char *) malloc (pagesize);
20338   if (!data3)
20339     return 1;
20340   if (read (fd, data3, pagesize) != pagesize)
20341     return 1;
20342   for (i = 0; i < pagesize; ++i)
20343     if (*(data + i) != *(data3 + i))
20344       return 1;
20345   close (fd);
20346   return 0;
20347 }
20348 _ACEOF
20349 rm -f conftest$ac_exeext
20350 if { (ac_try="$ac_link"
20351 case "(($ac_try" in
20352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20353   *) ac_try_echo=$ac_try;;
20354 esac
20355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20356   (eval "$ac_link") 2>&5
20357   ac_status=$?
20358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20360   { (case "(($ac_try" in
20361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362   *) ac_try_echo=$ac_try;;
20363 esac
20364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365   (eval "$ac_try") 2>&5
20366   ac_status=$?
20367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368   (exit $ac_status); }; }; then
20369   ac_cv_func_mmap_fixed_mapped=yes
20370 else
20371   echo "$as_me: program exited with status $ac_status" >&5
20372 echo "$as_me: failed program was:" >&5
20373 sed 's/^/| /' conftest.$ac_ext >&5
20374
20375 ( exit $ac_status )
20376 ac_cv_func_mmap_fixed_mapped=no
20377 fi
20378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20379 fi
20380
20381
20382 fi
20383 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20384 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20385 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20386
20387 cat >>confdefs.h <<\_ACEOF
20388 #define HAVE_MMAP 1
20389 _ACEOF
20390
20391 fi
20392 rm -f conftest.mmap
20393
20394   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20395 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20396 if test "${ac_cv_func_mmap_file+set}" = set; then
20397   echo $ECHO_N "(cached) $ECHO_C" >&6
20398 else
20399    ac_ext=c
20400 ac_cpp='$CPP $CPPFLAGS'
20401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20404
20405   if test "$cross_compiling" = yes; then
20406   ac_cv_func_mmap_file=no
20407 else
20408   cat >conftest.$ac_ext <<_ACEOF
20409
20410     /* confdefs.h.  */
20411 _ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h.  */
20415
20416 #include <sys/types.h>
20417 #include <sys/mman.h>
20418 #include <fcntl.h>
20419
20420 int
20421 main ()
20422 {
20423
20424   int fd;
20425   fd = creat ("foo",0777);
20426   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20427   unlink ("foo");
20428   return (fd != (int) MAP_FAILED);
20429   ;
20430   return 0;
20431 }
20432 _ACEOF
20433 rm -f conftest$ac_exeext
20434 if { (ac_try="$ac_link"
20435 case "(($ac_try" in
20436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20437   *) ac_try_echo=$ac_try;;
20438 esac
20439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20440   (eval "$ac_link") 2>&5
20441   ac_status=$?
20442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20444   { (case "(($ac_try" in
20445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20446   *) ac_try_echo=$ac_try;;
20447 esac
20448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20449   (eval "$ac_try") 2>&5
20450   ac_status=$?
20451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452   (exit $ac_status); }; }; then
20453   ac_cv_func_mmap_file=yes
20454 else
20455   echo "$as_me: program exited with status $ac_status" >&5
20456 echo "$as_me: failed program was:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20458
20459 ( exit $ac_status )
20460 ac_cv_func_mmap_file=no
20461 fi
20462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20463 fi
20464
20465
20466   ac_ext=c
20467 ac_cpp='$CPP $CPPFLAGS'
20468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20471
20472
20473 fi
20474 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20475 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20476 if test "$ac_cv_func_mmap_file" = yes; then
20477
20478 cat >>confdefs.h <<\_ACEOF
20479 #define HAVE_MMAP_FILE
20480 _ACEOF
20481
20482    MMAP_FILE=yes
20483
20484 fi
20485
20486   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20487 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20488 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20489   echo $ECHO_N "(cached) $ECHO_C" >&6
20490 else
20491   if test "$llvm_cv_os_type" = "Interix" ; then
20492    ac_cv_need_dev_zero_for_mmap=yes
20493  else
20494    ac_cv_need_dev_zero_for_mmap=no
20495  fi
20496
20497 fi
20498 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20499 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20500 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20501
20502 cat >>confdefs.h <<\_ACEOF
20503 #define NEED_DEV_ZERO_FOR_MMAP 1
20504 _ACEOF
20505
20506 fi
20507
20508   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20509   then
20510     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20511 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20512   fi
20513   if test "$ac_cv_func_mmap_file" = "no"
20514   then
20515     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20516 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20517   fi
20518 fi
20519
20520 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20521 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20522 ac_ext=cpp
20523 ac_cpp='$CXXCPP $CPPFLAGS'
20524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20527
20528 cat >conftest.$ac_ext <<_ACEOF
20529 /* confdefs.h.  */
20530 _ACEOF
20531 cat confdefs.h >>conftest.$ac_ext
20532 cat >>conftest.$ac_ext <<_ACEOF
20533 /* end confdefs.h.  */
20534 int main() {
20535         volatile unsigned long val = 1;
20536         __sync_synchronize();
20537         __sync_val_compare_and_swap(&val, 1, 0);
20538         __sync_add_and_fetch(&val, 1);
20539         __sync_sub_and_fetch(&val, 1);
20540         return 0;
20541       }
20542
20543 _ACEOF
20544 rm -f conftest.$ac_objext conftest$ac_exeext
20545 if { (ac_try="$ac_link"
20546 case "(($ac_try" in
20547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20548   *) ac_try_echo=$ac_try;;
20549 esac
20550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20551   (eval "$ac_link") 2>conftest.er1
20552   ac_status=$?
20553   grep -v '^ *+' conftest.er1 >conftest.err
20554   rm -f conftest.er1
20555   cat conftest.err >&5
20556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557   (exit $ac_status); } &&
20558          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20559   { (case "(($ac_try" in
20560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561   *) ac_try_echo=$ac_try;;
20562 esac
20563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20564   (eval "$ac_try") 2>&5
20565   ac_status=$?
20566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567   (exit $ac_status); }; } &&
20568          { ac_try='test -s conftest$ac_exeext'
20569   { (case "(($ac_try" in
20570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571   *) ac_try_echo=$ac_try;;
20572 esac
20573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574   (eval "$ac_try") 2>&5
20575   ac_status=$?
20576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577   (exit $ac_status); }; }; then
20578   ac_ext=c
20579 ac_cpp='$CPP $CPPFLAGS'
20580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20583
20584   { echo "$as_me:$LINENO: result: yes" >&5
20585 echo "${ECHO_T}yes" >&6; }
20586
20587 cat >>confdefs.h <<\_ACEOF
20588 #define LLVM_HAS_ATOMICS 1
20589 _ACEOF
20590
20591 else
20592   echo "$as_me: failed program was:" >&5
20593 sed 's/^/| /' conftest.$ac_ext >&5
20594
20595         { echo "$as_me:$LINENO: result: no" >&5
20596 echo "${ECHO_T}no" >&6; }
20597
20598 cat >>confdefs.h <<\_ACEOF
20599 #define LLVM_HAS_ATOMICS 0
20600 _ACEOF
20601
20602   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20603 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20604 fi
20605
20606 rm -f core conftest.err conftest.$ac_objext \
20607       conftest$ac_exeext conftest.$ac_ext
20608
20609
20610 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20611   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20612 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20613 if test "${llvm_cv_linux_mixed+set}" = set; then
20614   echo $ECHO_N "(cached) $ECHO_C" >&6
20615 else
20616    ac_ext=c
20617 ac_cpp='$CPP $CPPFLAGS'
20618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20621
20622   cat >conftest.$ac_ext <<_ACEOF
20623 /* confdefs.h.  */
20624 _ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h.  */
20628 #ifndef __x86_64__
20629        error: Not x86-64 even if uname says so!
20630       #endif
20631
20632 int
20633 main ()
20634 {
20635
20636   ;
20637   return 0;
20638 }
20639 _ACEOF
20640 rm -f conftest.$ac_objext
20641 if { (ac_try="$ac_compile"
20642 case "(($ac_try" in
20643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20644   *) ac_try_echo=$ac_try;;
20645 esac
20646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20647   (eval "$ac_compile") 2>conftest.er1
20648   ac_status=$?
20649   grep -v '^ *+' conftest.er1 >conftest.err
20650   rm -f conftest.er1
20651   cat conftest.err >&5
20652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653   (exit $ac_status); } &&
20654          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20655   { (case "(($ac_try" in
20656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20657   *) ac_try_echo=$ac_try;;
20658 esac
20659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20660   (eval "$ac_try") 2>&5
20661   ac_status=$?
20662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663   (exit $ac_status); }; } &&
20664          { ac_try='test -s conftest.$ac_objext'
20665   { (case "(($ac_try" in
20666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667   *) ac_try_echo=$ac_try;;
20668 esac
20669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20670   (eval "$ac_try") 2>&5
20671   ac_status=$?
20672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673   (exit $ac_status); }; }; then
20674   llvm_cv_linux_mixed=no
20675 else
20676   echo "$as_me: failed program was:" >&5
20677 sed 's/^/| /' conftest.$ac_ext >&5
20678
20679         llvm_cv_linux_mixed=yes
20680 fi
20681
20682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20683   ac_ext=c
20684 ac_cpp='$CPP $CPPFLAGS'
20685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20688
20689
20690 fi
20691 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20692 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20693
20694   if test "$llvm_cv_linux_mixed" = "yes"; then
20695     llvm_cv_target_arch="x86"
20696     ARCH="x86"
20697   fi
20698 fi
20699
20700
20701 for ac_func in __dso_handle
20702 do
20703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20704 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20706 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20707   echo $ECHO_N "(cached) $ECHO_C" >&6
20708 else
20709   cat >conftest.$ac_ext <<_ACEOF
20710 /* confdefs.h.  */
20711 _ACEOF
20712 cat confdefs.h >>conftest.$ac_ext
20713 cat >>conftest.$ac_ext <<_ACEOF
20714 /* end confdefs.h.  */
20715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20716    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20717 #define $ac_func innocuous_$ac_func
20718
20719 /* System header to define __stub macros and hopefully few prototypes,
20720     which can conflict with char $ac_func (); below.
20721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20722     <limits.h> exists even on freestanding compilers.  */
20723
20724 #ifdef __STDC__
20725 # include <limits.h>
20726 #else
20727 # include <assert.h>
20728 #endif
20729
20730 #undef $ac_func
20731
20732 /* Override any GCC internal prototype to avoid an error.
20733    Use char because int might match the return type of a GCC
20734    builtin and then its argument prototype would still apply.  */
20735 #ifdef __cplusplus
20736 extern "C"
20737 #endif
20738 char $ac_func ();
20739 /* The GNU C library defines this for functions which it implements
20740     to always fail with ENOSYS.  Some functions are actually named
20741     something starting with __ and the normal name is an alias.  */
20742 #if defined __stub_$ac_func || defined __stub___$ac_func
20743 choke me
20744 #endif
20745
20746 int
20747 main ()
20748 {
20749 return $ac_func ();
20750   ;
20751   return 0;
20752 }
20753 _ACEOF
20754 rm -f conftest.$ac_objext conftest$ac_exeext
20755 if { (ac_try="$ac_link"
20756 case "(($ac_try" in
20757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20758   *) ac_try_echo=$ac_try;;
20759 esac
20760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20761   (eval "$ac_link") 2>conftest.er1
20762   ac_status=$?
20763   grep -v '^ *+' conftest.er1 >conftest.err
20764   rm -f conftest.er1
20765   cat conftest.err >&5
20766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767   (exit $ac_status); } &&
20768          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20769   { (case "(($ac_try" in
20770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20771   *) ac_try_echo=$ac_try;;
20772 esac
20773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20774   (eval "$ac_try") 2>&5
20775   ac_status=$?
20776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777   (exit $ac_status); }; } &&
20778          { ac_try='test -s conftest$ac_exeext'
20779   { (case "(($ac_try" in
20780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20781   *) ac_try_echo=$ac_try;;
20782 esac
20783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20784   (eval "$ac_try") 2>&5
20785   ac_status=$?
20786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787   (exit $ac_status); }; }; then
20788   eval "$as_ac_var=yes"
20789 else
20790   echo "$as_me: failed program was:" >&5
20791 sed 's/^/| /' conftest.$ac_ext >&5
20792
20793         eval "$as_ac_var=no"
20794 fi
20795
20796 rm -f core conftest.err conftest.$ac_objext \
20797       conftest$ac_exeext conftest.$ac_ext
20798 fi
20799 ac_res=`eval echo '${'$as_ac_var'}'`
20800                { echo "$as_me:$LINENO: result: $ac_res" >&5
20801 echo "${ECHO_T}$ac_res" >&6; }
20802 if test `eval echo '${'$as_ac_var'}'` = yes; then
20803   cat >>confdefs.h <<_ACEOF
20804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20805 _ACEOF
20806
20807 fi
20808 done
20809
20810
20811 SHLIBEXT=$libltdl_cv_shlibext
20812
20813
20814 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20815
20816
20817 if test "${prefix}" = "NONE" ; then
20818   prefix="/usr/local"
20819 fi
20820 eval LLVM_PREFIX="${prefix}";
20821 eval LLVM_BINDIR="${prefix}/bin";
20822 eval LLVM_LIBDIR="${prefix}/lib";
20823 eval LLVM_DATADIR="${prefix}/share/llvm";
20824 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20825 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20826 eval LLVM_INCLUDEDIR="${prefix}/include";
20827 eval LLVM_INFODIR="${prefix}/info";
20828 eval LLVM_MANDIR="${prefix}/man";
20829 LLVM_CONFIGTIME=`date`
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841 if test "${ENABLE_TIMESTAMPS}" = "0"; then
20842   LLVM_CONFIGTIME="(timestamp not enabled)"
20843 fi
20844
20845
20846 cat >>confdefs.h <<_ACEOF
20847 #define LLVM_PREFIX "$LLVM_PREFIX"
20848 _ACEOF
20849
20850
20851 cat >>confdefs.h <<_ACEOF
20852 #define LLVM_BINDIR "$LLVM_BINDIR"
20853 _ACEOF
20854
20855
20856 cat >>confdefs.h <<_ACEOF
20857 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20858 _ACEOF
20859
20860
20861 cat >>confdefs.h <<_ACEOF
20862 #define LLVM_DATADIR "$LLVM_DATADIR"
20863 _ACEOF
20864
20865
20866 cat >>confdefs.h <<_ACEOF
20867 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20868 _ACEOF
20869
20870
20871 cat >>confdefs.h <<_ACEOF
20872 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20873 _ACEOF
20874
20875
20876 cat >>confdefs.h <<_ACEOF
20877 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20878 _ACEOF
20879
20880
20881 cat >>confdefs.h <<_ACEOF
20882 #define LLVM_INFODIR "$LLVM_INFODIR"
20883 _ACEOF
20884
20885
20886 cat >>confdefs.h <<_ACEOF
20887 #define LLVM_MANDIR "$LLVM_MANDIR"
20888 _ACEOF
20889
20890
20891 cat >>confdefs.h <<_ACEOF
20892 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20893 _ACEOF
20894
20895
20896 cat >>confdefs.h <<_ACEOF
20897 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20898 _ACEOF
20899
20900
20901 if test "$BINDINGS_TO_BUILD" = auto ; then
20902   BINDINGS_TO_BUILD=""
20903   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20904     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20905   fi
20906 fi
20907 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20908
20909
20910 ALL_BINDINGS=ocaml
20911
20912
20913 binding_prereqs_failed=0
20914 for a_binding in $BINDINGS_TO_BUILD ; do
20915   case "$a_binding" in
20916   ocaml)
20917     if test "x$OCAMLC" = x ; then
20918       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20919 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20920       binding_prereqs_failed=1
20921     fi
20922     if test "x$OCAMLDEP" = x ; then
20923       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20924 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20925       binding_prereqs_failed=1
20926     fi
20927     if test "x$OCAMLOPT" = x ; then
20928       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20929 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20930           fi
20931     if test "x$with_ocaml_libdir" != xauto ; then
20932       OCAML_LIBDIR=$with_ocaml_libdir
20933
20934     else
20935       ocaml_stdlib="`"$OCAMLC" -where`"
20936       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20937       then
20938         # ocaml stdlib is beneath our prefix; use stdlib
20939         OCAML_LIBDIR=$ocaml_stdlib
20940
20941       else
20942         # ocaml stdlib is outside our prefix; use libdir/ocaml
20943         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20944
20945       fi
20946     fi
20947     ;;
20948   esac
20949 done
20950 if test "$binding_prereqs_failed" = 1 ; then
20951   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20952 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20953    { (exit 1); exit 1; }; }
20954 fi
20955
20956 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20957 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20958 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20959   echo $ECHO_N "(cached) $ECHO_C" >&6
20960 else
20961    ac_ext=cpp
20962 ac_cpp='$CXXCPP $CPPFLAGS'
20963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20966
20967   oldcxxflags="$CXXFLAGS"
20968   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20969   cat >conftest.$ac_ext <<_ACEOF
20970 /* confdefs.h.  */
20971 _ACEOF
20972 cat confdefs.h >>conftest.$ac_ext
20973 cat >>conftest.$ac_ext <<_ACEOF
20974 /* end confdefs.h.  */
20975 template <typename T> struct X { void __attribute__((noinline)) f() {} };
20976 int
20977 main ()
20978 {
20979 X<int>().f();
20980   ;
20981   return 0;
20982 }
20983 _ACEOF
20984 rm -f conftest.$ac_objext
20985 if { (ac_try="$ac_compile"
20986 case "(($ac_try" in
20987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20988   *) ac_try_echo=$ac_try;;
20989 esac
20990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20991   (eval "$ac_compile") 2>conftest.er1
20992   ac_status=$?
20993   grep -v '^ *+' conftest.er1 >conftest.err
20994   rm -f conftest.er1
20995   cat conftest.err >&5
20996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997   (exit $ac_status); } &&
20998          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20999   { (case "(($ac_try" in
21000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21001   *) ac_try_echo=$ac_try;;
21002 esac
21003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21004   (eval "$ac_try") 2>&5
21005   ac_status=$?
21006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007   (exit $ac_status); }; } &&
21008          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
21015   ac_status=$?
21016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017   (exit $ac_status); }; }; then
21018   llvm_cv_cxx_visibility_inlines_hidden=yes
21019 else
21020   echo "$as_me: failed program was:" >&5
21021 sed 's/^/| /' conftest.$ac_ext >&5
21022
21023         llvm_cv_cxx_visibility_inlines_hidden=no
21024 fi
21025
21026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21027   CXXFLAGS="$oldcxxflags"
21028   ac_ext=c
21029 ac_cpp='$CPP $CPPFLAGS'
21030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21033
21034
21035 fi
21036 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21037 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21038 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21039   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21040
21041 else
21042   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21043
21044 fi
21045
21046
21047 if test "$llvm_cv_link_use_r" = "yes" ; then
21048   RPATH="-Wl,-R"
21049 else
21050   RPATH="-Wl,-rpath"
21051 fi
21052
21053
21054 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21055   RDYNAMIC="-Wl,-export-dynamic"
21056 else
21057   RDYNAMIC=""
21058 fi
21059
21060
21061
21062 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21063
21064
21065
21066
21067
21068
21069 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21070
21071 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21072
21073 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21074
21075 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21076
21077 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21078
21079
21080 ac_config_files="$ac_config_files Makefile.config"
21081
21082
21083 ac_config_files="$ac_config_files llvm.spec"
21084
21085
21086 ac_config_files="$ac_config_files docs/doxygen.cfg"
21087
21088
21089 if test "${clang_src_root}" = ""; then
21090   clang_src_root="$srcdir/tools/clang"
21091 fi
21092 if test -f ${clang_src_root}/README.txt; then
21093     configh="include/clang/Config/config.h"
21094   doxy="docs/doxygen.cfg"
21095   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21096
21097   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21098
21099 fi
21100
21101 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21102
21103
21104 ac_config_commands="$ac_config_commands setup"
21105
21106 ac_config_commands="$ac_config_commands Makefile"
21107
21108
21109 ac_config_commands="$ac_config_commands Makefile.common"
21110
21111
21112 ac_config_commands="$ac_config_commands examples/Makefile"
21113
21114
21115 ac_config_commands="$ac_config_commands lib/Makefile"
21116
21117
21118 ac_config_commands="$ac_config_commands runtime/Makefile"
21119
21120
21121 ac_config_commands="$ac_config_commands test/Makefile"
21122
21123
21124 ac_config_commands="$ac_config_commands test/Makefile.tests"
21125
21126
21127 ac_config_commands="$ac_config_commands unittests/Makefile"
21128
21129
21130 ac_config_commands="$ac_config_commands tools/Makefile"
21131
21132
21133 ac_config_commands="$ac_config_commands utils/Makefile"
21134
21135
21136 ac_config_commands="$ac_config_commands projects/Makefile"
21137
21138
21139 ac_config_commands="$ac_config_commands bindings/Makefile"
21140
21141
21142 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21143
21144
21145
21146 cat >confcache <<\_ACEOF
21147 # This file is a shell script that caches the results of configure
21148 # tests run on this system so they can be shared between configure
21149 # scripts and configure runs, see configure's option --config-cache.
21150 # It is not useful on other systems.  If it contains results you don't
21151 # want to keep, you may remove or edit it.
21152 #
21153 # config.status only pays attention to the cache file if you give it
21154 # the --recheck option to rerun configure.
21155 #
21156 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21157 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21158 # following values.
21159
21160 _ACEOF
21161
21162 # The following way of writing the cache mishandles newlines in values,
21163 # but we know of no workaround that is simple, portable, and efficient.
21164 # So, we kill variables containing newlines.
21165 # Ultrix sh set writes to stderr and can't be redirected directly,
21166 # and sets the high bit in the cache file unless we assign to the vars.
21167 (
21168   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21169     eval ac_val=\$$ac_var
21170     case $ac_val in #(
21171     *${as_nl}*)
21172       case $ac_var in #(
21173       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21174 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21175       esac
21176       case $ac_var in #(
21177       _ | IFS | as_nl) ;; #(
21178       *) $as_unset $ac_var ;;
21179       esac ;;
21180     esac
21181   done
21182
21183   (set) 2>&1 |
21184     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21185     *${as_nl}ac_space=\ *)
21186       # `set' does not quote correctly, so add quotes (double-quote
21187       # substitution turns \\\\ into \\, and sed turns \\ into \).
21188       sed -n \
21189         "s/'/'\\\\''/g;
21190           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21191       ;; #(
21192     *)
21193       # `set' quotes correctly as required by POSIX, so do not add quotes.
21194       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21195       ;;
21196     esac |
21197     sort
21198 ) |
21199   sed '
21200      /^ac_cv_env_/b end
21201      t clear
21202      :clear
21203      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21204      t end
21205      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21206      :end' >>confcache
21207 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21208   if test -w "$cache_file"; then
21209     test "x$cache_file" != "x/dev/null" &&
21210       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21211 echo "$as_me: updating cache $cache_file" >&6;}
21212     cat confcache >$cache_file
21213   else
21214     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21215 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21216   fi
21217 fi
21218 rm -f confcache
21219
21220 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21221 # Let make expand exec_prefix.
21222 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21223
21224 DEFS=-DHAVE_CONFIG_H
21225
21226 ac_libobjs=
21227 ac_ltlibobjs=
21228 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21229   # 1. Remove the extension, and $U if already installed.
21230   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21231   ac_i=`echo "$ac_i" | sed "$ac_script"`
21232   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21233   #    will be set to the directory where LIBOBJS objects are built.
21234   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21235   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21236 done
21237 LIBOBJS=$ac_libobjs
21238
21239 LTLIBOBJS=$ac_ltlibobjs
21240
21241
21242 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21243   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21244 Usually this means the macro was only invoked conditionally." >&5
21245 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21246 Usually this means the macro was only invoked conditionally." >&2;}
21247    { (exit 1); exit 1; }; }
21248 fi
21249 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21250   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21251 Usually this means the macro was only invoked conditionally." >&5
21252 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21253 Usually this means the macro was only invoked conditionally." >&2;}
21254    { (exit 1); exit 1; }; }
21255 fi
21256
21257 : ${CONFIG_STATUS=./config.status}
21258 ac_clean_files_save=$ac_clean_files
21259 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21260 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21261 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21262 cat >$CONFIG_STATUS <<_ACEOF
21263 #! $SHELL
21264 # Generated by $as_me.
21265 # Run this file to recreate the current configuration.
21266 # Compiler output produced by configure, useful for debugging
21267 # configure, is in config.log if it exists.
21268
21269 debug=false
21270 ac_cs_recheck=false
21271 ac_cs_silent=false
21272 SHELL=\${CONFIG_SHELL-$SHELL}
21273 _ACEOF
21274
21275 cat >>$CONFIG_STATUS <<\_ACEOF
21276 ## --------------------- ##
21277 ## M4sh Initialization.  ##
21278 ## --------------------- ##
21279
21280 # Be Bourne compatible
21281 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21282   emulate sh
21283   NULLCMD=:
21284   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21285   # is contrary to our usage.  Disable this feature.
21286   alias -g '${1+"$@"}'='"$@"'
21287   setopt NO_GLOB_SUBST
21288 else
21289   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21290 fi
21291 BIN_SH=xpg4; export BIN_SH # for Tru64
21292 DUALCASE=1; export DUALCASE # for MKS sh
21293
21294
21295 # PATH needs CR
21296 # Avoid depending upon Character Ranges.
21297 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21298 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21299 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21300 as_cr_digits='0123456789'
21301 as_cr_alnum=$as_cr_Letters$as_cr_digits
21302
21303 # The user is always right.
21304 if test "${PATH_SEPARATOR+set}" != set; then
21305   echo "#! /bin/sh" >conf$$.sh
21306   echo  "exit 0"   >>conf$$.sh
21307   chmod +x conf$$.sh
21308   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21309     PATH_SEPARATOR=';'
21310   else
21311     PATH_SEPARATOR=:
21312   fi
21313   rm -f conf$$.sh
21314 fi
21315
21316 # Support unset when possible.
21317 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21318   as_unset=unset
21319 else
21320   as_unset=false
21321 fi
21322
21323
21324 # IFS
21325 # We need space, tab and new line, in precisely that order.  Quoting is
21326 # there to prevent editors from complaining about space-tab.
21327 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21328 # splitting by setting IFS to empty value.)
21329 as_nl='
21330 '
21331 IFS=" ""        $as_nl"
21332
21333 # Find who we are.  Look in the path if we contain no directory separator.
21334 case $0 in
21335   *[\\/]* ) as_myself=$0 ;;
21336   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21337 for as_dir in $PATH
21338 do
21339   IFS=$as_save_IFS
21340   test -z "$as_dir" && as_dir=.
21341   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21342 done
21343 IFS=$as_save_IFS
21344
21345      ;;
21346 esac
21347 # We did not find ourselves, most probably we were run as `sh COMMAND'
21348 # in which case we are not to be found in the path.
21349 if test "x$as_myself" = x; then
21350   as_myself=$0
21351 fi
21352 if test ! -f "$as_myself"; then
21353   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21354   { (exit 1); exit 1; }
21355 fi
21356
21357 # Work around bugs in pre-3.0 UWIN ksh.
21358 for as_var in ENV MAIL MAILPATH
21359 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21360 done
21361 PS1='$ '
21362 PS2='> '
21363 PS4='+ '
21364
21365 # NLS nuisances.
21366 for as_var in \
21367   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21368   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21369   LC_TELEPHONE LC_TIME
21370 do
21371   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21372     eval $as_var=C; export $as_var
21373   else
21374     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21375   fi
21376 done
21377
21378 # Required to use basename.
21379 if expr a : '\(a\)' >/dev/null 2>&1 &&
21380    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21381   as_expr=expr
21382 else
21383   as_expr=false
21384 fi
21385
21386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21387   as_basename=basename
21388 else
21389   as_basename=false
21390 fi
21391
21392
21393 # Name of the executable.
21394 as_me=`$as_basename -- "$0" ||
21395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21396          X"$0" : 'X\(//\)$' \| \
21397          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21398 echo X/"$0" |
21399     sed '/^.*\/\([^/][^/]*\)\/*$/{
21400             s//\1/
21401             q
21402           }
21403           /^X\/\(\/\/\)$/{
21404             s//\1/
21405             q
21406           }
21407           /^X\/\(\/\).*/{
21408             s//\1/
21409             q
21410           }
21411           s/.*/./; q'`
21412
21413 # CDPATH.
21414 $as_unset CDPATH
21415
21416
21417
21418   as_lineno_1=$LINENO
21419   as_lineno_2=$LINENO
21420   test "x$as_lineno_1" != "x$as_lineno_2" &&
21421   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21422
21423   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21424   # uniformly replaced by the line number.  The first 'sed' inserts a
21425   # line-number line after each line using $LINENO; the second 'sed'
21426   # does the real work.  The second script uses 'N' to pair each
21427   # line-number line with the line containing $LINENO, and appends
21428   # trailing '-' during substitution so that $LINENO is not a special
21429   # case at line end.
21430   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21431   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21432   # E. McMahon (1931-1989) for sed's syntax.  :-)
21433   sed -n '
21434     p
21435     /[$]LINENO/=
21436   ' <$as_myself |
21437     sed '
21438       s/[$]LINENO.*/&-/
21439       t lineno
21440       b
21441       :lineno
21442       N
21443       :loop
21444       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21445       t loop
21446       s/-\n.*//
21447     ' >$as_me.lineno &&
21448   chmod +x "$as_me.lineno" ||
21449     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21450    { (exit 1); exit 1; }; }
21451
21452   # Don't try to exec as it changes $[0], causing all sort of problems
21453   # (the dirname of $[0] is not the place where we might find the
21454   # original and so on.  Autoconf is especially sensitive to this).
21455   . "./$as_me.lineno"
21456   # Exit status is that of the last command.
21457   exit
21458 }
21459
21460
21461 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21462   as_dirname=dirname
21463 else
21464   as_dirname=false
21465 fi
21466
21467 ECHO_C= ECHO_N= ECHO_T=
21468 case `echo -n x` in
21469 -n*)
21470   case `echo 'x\c'` in
21471   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21472   *)   ECHO_C='\c';;
21473   esac;;
21474 *)
21475   ECHO_N='-n';;
21476 esac
21477
21478 if expr a : '\(a\)' >/dev/null 2>&1 &&
21479    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21480   as_expr=expr
21481 else
21482   as_expr=false
21483 fi
21484
21485 rm -f conf$$ conf$$.exe conf$$.file
21486 if test -d conf$$.dir; then
21487   rm -f conf$$.dir/conf$$.file
21488 else
21489   rm -f conf$$.dir
21490   mkdir conf$$.dir
21491 fi
21492 echo >conf$$.file
21493 if ln -s conf$$.file conf$$ 2>/dev/null; then
21494   as_ln_s='ln -s'
21495   # ... but there are two gotchas:
21496   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21497   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21498   # In both cases, we have to default to `cp -p'.
21499   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21500     as_ln_s='cp -p'
21501 elif ln conf$$.file conf$$ 2>/dev/null; then
21502   as_ln_s=ln
21503 else
21504   as_ln_s='cp -p'
21505 fi
21506 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21507 rmdir conf$$.dir 2>/dev/null
21508
21509 if mkdir -p . 2>/dev/null; then
21510   as_mkdir_p=:
21511 else
21512   test -d ./-p && rmdir ./-p
21513   as_mkdir_p=false
21514 fi
21515
21516 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21517 # systems may use methods other than mode bits to determine executability.
21518 cat >conf$$.file <<_ASEOF
21519 #! /bin/sh
21520 exit 0
21521 _ASEOF
21522 chmod +x conf$$.file
21523 if test -x conf$$.file >/dev/null 2>&1; then
21524   as_executable_p="test -x"
21525 else
21526   as_executable_p=:
21527 fi
21528 rm -f conf$$.file
21529
21530 # Sed expression to map a string onto a valid CPP name.
21531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21532
21533 # Sed expression to map a string onto a valid variable name.
21534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21535
21536
21537 exec 6>&1
21538
21539 # Save the log message, to keep $[0] and so on meaningful, and to
21540 # report actual input values of CONFIG_FILES etc. instead of their
21541 # values after options handling.
21542 ac_log="
21543 This file was extended by LLVM $as_me 3.2svn, which was
21544 generated by GNU Autoconf 2.60.  Invocation command line was
21545
21546   CONFIG_FILES    = $CONFIG_FILES
21547   CONFIG_HEADERS  = $CONFIG_HEADERS
21548   CONFIG_LINKS    = $CONFIG_LINKS
21549   CONFIG_COMMANDS = $CONFIG_COMMANDS
21550   $ $0 $@
21551
21552 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21553 "
21554
21555 _ACEOF
21556
21557 cat >>$CONFIG_STATUS <<_ACEOF
21558 # Files that config.status was made for.
21559 config_files="$ac_config_files"
21560 config_headers="$ac_config_headers"
21561 config_commands="$ac_config_commands"
21562
21563 _ACEOF
21564
21565 cat >>$CONFIG_STATUS <<\_ACEOF
21566 ac_cs_usage="\
21567 \`$as_me' instantiates files from templates according to the
21568 current configuration.
21569
21570 Usage: $0 [OPTIONS] [FILE]...
21571
21572   -h, --help       print this help, then exit
21573   -V, --version    print version number, then exit
21574   -q, --quiet      do not print progress messages
21575   -d, --debug      don't remove temporary files
21576       --recheck    update $as_me by reconfiguring in the same conditions
21577   --file=FILE[:TEMPLATE]
21578                    instantiate the configuration file FILE
21579   --header=FILE[:TEMPLATE]
21580                    instantiate the configuration header FILE
21581
21582 Configuration files:
21583 $config_files
21584
21585 Configuration headers:
21586 $config_headers
21587
21588 Configuration commands:
21589 $config_commands
21590
21591 Report bugs to <bug-autoconf@gnu.org>."
21592
21593 _ACEOF
21594 cat >>$CONFIG_STATUS <<_ACEOF
21595 ac_cs_version="\\
21596 LLVM config.status 3.2svn
21597 configured by $0, generated by GNU Autoconf 2.60,
21598   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21599
21600 Copyright (C) 2006 Free Software Foundation, Inc.
21601 This config.status script is free software; the Free Software Foundation
21602 gives unlimited permission to copy, distribute and modify it."
21603
21604 ac_pwd='$ac_pwd'
21605 srcdir='$srcdir'
21606 INSTALL='$INSTALL'
21607 _ACEOF
21608
21609 cat >>$CONFIG_STATUS <<\_ACEOF
21610 # If no file are specified by the user, then we need to provide default
21611 # value.  By we need to know if files were specified by the user.
21612 ac_need_defaults=:
21613 while test $# != 0
21614 do
21615   case $1 in
21616   --*=*)
21617     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21618     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21619     ac_shift=:
21620     ;;
21621   *)
21622     ac_option=$1
21623     ac_optarg=$2
21624     ac_shift=shift
21625     ;;
21626   esac
21627
21628   case $ac_option in
21629   # Handling of the options.
21630   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21631     ac_cs_recheck=: ;;
21632   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21633     echo "$ac_cs_version"; exit ;;
21634   --debug | --debu | --deb | --de | --d | -d )
21635     debug=: ;;
21636   --file | --fil | --fi | --f )
21637     $ac_shift
21638     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21639     ac_need_defaults=false;;
21640   --header | --heade | --head | --hea )
21641     $ac_shift
21642     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21643     ac_need_defaults=false;;
21644   --he | --h)
21645     # Conflict between --help and --header
21646     { echo "$as_me: error: ambiguous option: $1
21647 Try \`$0 --help' for more information." >&2
21648    { (exit 1); exit 1; }; };;
21649   --help | --hel | -h )
21650     echo "$ac_cs_usage"; exit ;;
21651   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21652   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21653     ac_cs_silent=: ;;
21654
21655   # This is an error.
21656   -*) { echo "$as_me: error: unrecognized option: $1
21657 Try \`$0 --help' for more information." >&2
21658    { (exit 1); exit 1; }; } ;;
21659
21660   *) ac_config_targets="$ac_config_targets $1"
21661      ac_need_defaults=false ;;
21662
21663   esac
21664   shift
21665 done
21666
21667 ac_configure_extra_args=
21668
21669 if $ac_cs_silent; then
21670   exec 6>/dev/null
21671   ac_configure_extra_args="$ac_configure_extra_args --silent"
21672 fi
21673
21674 _ACEOF
21675 cat >>$CONFIG_STATUS <<_ACEOF
21676 if \$ac_cs_recheck; then
21677   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21678   CONFIG_SHELL=$SHELL
21679   export CONFIG_SHELL
21680   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21681 fi
21682
21683 _ACEOF
21684 cat >>$CONFIG_STATUS <<\_ACEOF
21685 exec 5>>config.log
21686 {
21687   echo
21688   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21689 ## Running $as_me. ##
21690 _ASBOX
21691   echo "$ac_log"
21692 } >&5
21693
21694 _ACEOF
21695 cat >>$CONFIG_STATUS <<_ACEOF
21696 #
21697 # INIT-COMMANDS
21698 #
21699 llvm_src="${srcdir}"
21700
21701 _ACEOF
21702
21703 cat >>$CONFIG_STATUS <<\_ACEOF
21704
21705 # Handling of arguments.
21706 for ac_config_target in $ac_config_targets
21707 do
21708   case $ac_config_target in
21709     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21710     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21711     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21712     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21713     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21714     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21715     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21716     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21717     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21718     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21719     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21720     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21721     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21722     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21723     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21724     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21725     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21726     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21727     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21728     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21729     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21730     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21731     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21732     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21733     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21734     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21735     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21736
21737   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21738 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21739    { (exit 1); exit 1; }; };;
21740   esac
21741 done
21742
21743
21744 # If the user did not use the arguments to specify the items to instantiate,
21745 # then the envvar interface is used.  Set only those that are not.
21746 # We use the long form for the default assignment because of an extremely
21747 # bizarre bug on SunOS 4.1.3.
21748 if $ac_need_defaults; then
21749   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21750   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21751   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21752 fi
21753
21754 # Have a temporary directory for convenience.  Make it in the build tree
21755 # simply because there is no reason against having it here, and in addition,
21756 # creating and moving files from /tmp can sometimes cause problems.
21757 # Hook for its removal unless debugging.
21758 # Note that there is a small window in which the directory will not be cleaned:
21759 # after its creation but before its name has been assigned to `$tmp'.
21760 $debug ||
21761 {
21762   tmp=
21763   trap 'exit_status=$?
21764   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21765 ' 0
21766   trap '{ (exit 1); exit 1; }' 1 2 13 15
21767 }
21768 # Create a (secure) tmp directory for tmp files.
21769
21770 {
21771   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21772   test -n "$tmp" && test -d "$tmp"
21773 }  ||
21774 {
21775   tmp=./conf$$-$RANDOM
21776   (umask 077 && mkdir "$tmp")
21777 } ||
21778 {
21779    echo "$me: cannot create a temporary directory in ." >&2
21780    { (exit 1); exit 1; }
21781 }
21782
21783 #
21784 # Set up the sed scripts for CONFIG_FILES section.
21785 #
21786
21787 # No need to generate the scripts if there are no CONFIG_FILES.
21788 # This happens for instance when ./config.status config.h
21789 if test -n "$CONFIG_FILES"; then
21790
21791 _ACEOF
21792
21793
21794
21795 ac_delim='%!_!# '
21796 for ac_last_try in false false false false false :; do
21797   cat >conf$$subs.sed <<_ACEOF
21798 SHELL!$SHELL$ac_delim
21799 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21800 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21801 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21802 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21803 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21804 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21805 exec_prefix!$exec_prefix$ac_delim
21806 prefix!$prefix$ac_delim
21807 program_transform_name!$program_transform_name$ac_delim
21808 bindir!$bindir$ac_delim
21809 sbindir!$sbindir$ac_delim
21810 libexecdir!$libexecdir$ac_delim
21811 datarootdir!$datarootdir$ac_delim
21812 datadir!$datadir$ac_delim
21813 sysconfdir!$sysconfdir$ac_delim
21814 sharedstatedir!$sharedstatedir$ac_delim
21815 localstatedir!$localstatedir$ac_delim
21816 includedir!$includedir$ac_delim
21817 oldincludedir!$oldincludedir$ac_delim
21818 docdir!$docdir$ac_delim
21819 infodir!$infodir$ac_delim
21820 htmldir!$htmldir$ac_delim
21821 dvidir!$dvidir$ac_delim
21822 pdfdir!$pdfdir$ac_delim
21823 psdir!$psdir$ac_delim
21824 libdir!$libdir$ac_delim
21825 localedir!$localedir$ac_delim
21826 mandir!$mandir$ac_delim
21827 DEFS!$DEFS$ac_delim
21828 ECHO_C!$ECHO_C$ac_delim
21829 ECHO_N!$ECHO_N$ac_delim
21830 ECHO_T!$ECHO_T$ac_delim
21831 LIBS!$LIBS$ac_delim
21832 build_alias!$build_alias$ac_delim
21833 host_alias!$host_alias$ac_delim
21834 target_alias!$target_alias$ac_delim
21835 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21836 CC!$CC$ac_delim
21837 CFLAGS!$CFLAGS$ac_delim
21838 LDFLAGS!$LDFLAGS$ac_delim
21839 CPPFLAGS!$CPPFLAGS$ac_delim
21840 ac_ct_CC!$ac_ct_CC$ac_delim
21841 EXEEXT!$EXEEXT$ac_delim
21842 OBJEXT!$OBJEXT$ac_delim
21843 CXX!$CXX$ac_delim
21844 CXXFLAGS!$CXXFLAGS$ac_delim
21845 ac_ct_CXX!$ac_ct_CXX$ac_delim
21846 CPP!$CPP$ac_delim
21847 subdirs!$subdirs$ac_delim
21848 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21849 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21850 build!$build$ac_delim
21851 build_cpu!$build_cpu$ac_delim
21852 build_vendor!$build_vendor$ac_delim
21853 build_os!$build_os$ac_delim
21854 host!$host$ac_delim
21855 host_cpu!$host_cpu$ac_delim
21856 host_vendor!$host_vendor$ac_delim
21857 host_os!$host_os$ac_delim
21858 target!$target$ac_delim
21859 target_cpu!$target_cpu$ac_delim
21860 target_vendor!$target_vendor$ac_delim
21861 target_os!$target_os$ac_delim
21862 OS!$OS$ac_delim
21863 HOST_OS!$HOST_OS$ac_delim
21864 TARGET_OS!$TARGET_OS$ac_delim
21865 LINKALL!$LINKALL$ac_delim
21866 NOLINKALL!$NOLINKALL$ac_delim
21867 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21868 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21869 ARCH!$ARCH$ac_delim
21870 ENDIAN!$ENDIAN$ac_delim
21871 GREP!$GREP$ac_delim
21872 EGREP!$EGREP$ac_delim
21873 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21874 BUILD_CC!$BUILD_CC$ac_delim
21875 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21876 BUILD_CXX!$BUILD_CXX$ac_delim
21877 CVSBUILD!$CVSBUILD$ac_delim
21878 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21879 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21880 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21881 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21882 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21883 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21884 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21885 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21886 JIT!$JIT$ac_delim
21887 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21888 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21889 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21890 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21891 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21892 ENABLE_PIC!$ENABLE_PIC$ac_delim
21893 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21894 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21895 _ACEOF
21896
21897   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21898     break
21899   elif $ac_last_try; then
21900     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21901 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21902    { (exit 1); exit 1; }; }
21903   else
21904     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21905   fi
21906 done
21907
21908 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21909 if test -n "$ac_eof"; then
21910   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21911   ac_eof=`expr $ac_eof + 1`
21912 fi
21913
21914 cat >>$CONFIG_STATUS <<_ACEOF
21915 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21916 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21917 _ACEOF
21918 sed '
21919 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21920 s/^/s,@/; s/!/@,|#_!!_#|/
21921 :n
21922 t n
21923 s/'"$ac_delim"'$/,g/; t
21924 s/$/\\/; p
21925 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21926 ' >>$CONFIG_STATUS <conf$$subs.sed
21927 rm -f conf$$subs.sed
21928 cat >>$CONFIG_STATUS <<_ACEOF
21929 CEOF$ac_eof
21930 _ACEOF
21931
21932
21933 ac_delim='%!_!# '
21934 for ac_last_try in false false false false false :; do
21935   cat >conf$$subs.sed <<_ACEOF
21936 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21937 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21938 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21939 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21940 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21941 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21942 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21943 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21944 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21945 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21946 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21947 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21948 NM!$NM$ac_delim
21949 ifGNUmake!$ifGNUmake$ac_delim
21950 LN_S!$LN_S$ac_delim
21951 CMP!$CMP$ac_delim
21952 CP!$CP$ac_delim
21953 DATE!$DATE$ac_delim
21954 FIND!$FIND$ac_delim
21955 MKDIR!$MKDIR$ac_delim
21956 MV!$MV$ac_delim
21957 RANLIB!$RANLIB$ac_delim
21958 AR!$AR$ac_delim
21959 RM!$RM$ac_delim
21960 SED!$SED$ac_delim
21961 TAR!$TAR$ac_delim
21962 BINPWD!$BINPWD$ac_delim
21963 GRAPHVIZ!$GRAPHVIZ$ac_delim
21964 DOT!$DOT$ac_delim
21965 FDP!$FDP$ac_delim
21966 NEATO!$NEATO$ac_delim
21967 TWOPI!$TWOPI$ac_delim
21968 CIRCO!$CIRCO$ac_delim
21969 GV!$GV$ac_delim
21970 DOTTY!$DOTTY$ac_delim
21971 XDOT_PY!$XDOT_PY$ac_delim
21972 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21973 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21974 INSTALL_DATA!$INSTALL_DATA$ac_delim
21975 BZIP2!$BZIP2$ac_delim
21976 CAT!$CAT$ac_delim
21977 DOXYGEN!$DOXYGEN$ac_delim
21978 GZIPBIN!$GZIPBIN$ac_delim
21979 TCLSH!$TCLSH$ac_delim
21980 ZIP!$ZIP$ac_delim
21981 OCAMLC!$OCAMLC$ac_delim
21982 OCAMLOPT!$OCAMLOPT$ac_delim
21983 OCAMLDEP!$OCAMLDEP$ac_delim
21984 OCAMLDOC!$OCAMLDOC$ac_delim
21985 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21986 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21987 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21988 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21989 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21990 LIBADD_DL!$LIBADD_DL$ac_delim
21991 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21992 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21993 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
21994 USE_UDIS86!$USE_UDIS86$ac_delim
21995 USE_OPROFILE!$USE_OPROFILE$ac_delim
21996 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
21997 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
21998 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
21999 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22000 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22001 MMAP_FILE!$MMAP_FILE$ac_delim
22002 SHLIBEXT!$SHLIBEXT$ac_delim
22003 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22004 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22005 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22006 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22007 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22008 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22009 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22010 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22011 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22012 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22013 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22014 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22015 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22016 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22017 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22018 RPATH!$RPATH$ac_delim
22019 RDYNAMIC!$RDYNAMIC$ac_delim
22020 LIBOBJS!$LIBOBJS$ac_delim
22021 LTLIBOBJS!$LTLIBOBJS$ac_delim
22022 _ACEOF
22023
22024   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 86; then
22025     break
22026   elif $ac_last_try; then
22027     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22028 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22029    { (exit 1); exit 1; }; }
22030   else
22031     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22032   fi
22033 done
22034
22035 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22036 if test -n "$ac_eof"; then
22037   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22038   ac_eof=`expr $ac_eof + 1`
22039 fi
22040
22041 cat >>$CONFIG_STATUS <<_ACEOF
22042 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22043 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22044 _ACEOF
22045 sed '
22046 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22047 s/^/s,@/; s/!/@,|#_!!_#|/
22048 :n
22049 t n
22050 s/'"$ac_delim"'$/,g/; t
22051 s/$/\\/; p
22052 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22053 ' >>$CONFIG_STATUS <conf$$subs.sed
22054 rm -f conf$$subs.sed
22055 cat >>$CONFIG_STATUS <<_ACEOF
22056 :end
22057 s/|#_!!_#|//g
22058 CEOF$ac_eof
22059 _ACEOF
22060
22061
22062 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22063 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22064 # trailing colons and then remove the whole line if VPATH becomes empty
22065 # (actually we leave an empty line to preserve line numbers).
22066 if test "x$srcdir" = x.; then
22067   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22068 s/:*\$(srcdir):*/:/
22069 s/:*\${srcdir}:*/:/
22070 s/:*@srcdir@:*/:/
22071 s/^\([^=]*=[     ]*\):*/\1/
22072 s/:*$//
22073 s/^[^=]*=[       ]*$//
22074 }'
22075 fi
22076
22077 cat >>$CONFIG_STATUS <<\_ACEOF
22078 fi # test -n "$CONFIG_FILES"
22079
22080
22081 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22082 do
22083   case $ac_tag in
22084   :[FHLC]) ac_mode=$ac_tag; continue;;
22085   esac
22086   case $ac_mode$ac_tag in
22087   :[FHL]*:*);;
22088   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22089 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22090    { (exit 1); exit 1; }; };;
22091   :[FH]-) ac_tag=-:-;;
22092   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22093   esac
22094   ac_save_IFS=$IFS
22095   IFS=:
22096   set x $ac_tag
22097   IFS=$ac_save_IFS
22098   shift
22099   ac_file=$1
22100   shift
22101
22102   case $ac_mode in
22103   :L) ac_source=$1;;
22104   :[FH])
22105     ac_file_inputs=
22106     for ac_f
22107     do
22108       case $ac_f in
22109       -) ac_f="$tmp/stdin";;
22110       *) # Look for the file first in the build tree, then in the source tree
22111          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22112          # because $ac_f cannot contain `:'.
22113          test -f "$ac_f" ||
22114            case $ac_f in
22115            [\\/$]*) false;;
22116            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22117            esac ||
22118            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22119 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22120    { (exit 1); exit 1; }; };;
22121       esac
22122       ac_file_inputs="$ac_file_inputs $ac_f"
22123     done
22124
22125     # Let's still pretend it is `configure' which instantiates (i.e., don't
22126     # use $as_me), people would be surprised to read:
22127     #    /* config.h.  Generated by config.status.  */
22128     configure_input="Generated from "`IFS=:
22129           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22130     if test x"$ac_file" != x-; then
22131       configure_input="$ac_file.  $configure_input"
22132       { echo "$as_me:$LINENO: creating $ac_file" >&5
22133 echo "$as_me: creating $ac_file" >&6;}
22134     fi
22135
22136     case $ac_tag in
22137     *:-:* | *:-) cat >"$tmp/stdin";;
22138     esac
22139     ;;
22140   esac
22141
22142   ac_dir=`$as_dirname -- "$ac_file" ||
22143 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22144          X"$ac_file" : 'X\(//\)[^/]' \| \
22145          X"$ac_file" : 'X\(//\)$' \| \
22146          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22147 echo X"$ac_file" |
22148     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22149             s//\1/
22150             q
22151           }
22152           /^X\(\/\/\)[^/].*/{
22153             s//\1/
22154             q
22155           }
22156           /^X\(\/\/\)$/{
22157             s//\1/
22158             q
22159           }
22160           /^X\(\/\).*/{
22161             s//\1/
22162             q
22163           }
22164           s/.*/./; q'`
22165   { as_dir="$ac_dir"
22166   case $as_dir in #(
22167   -*) as_dir=./$as_dir;;
22168   esac
22169   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22170     as_dirs=
22171     while :; do
22172       case $as_dir in #(
22173       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22174       *) as_qdir=$as_dir;;
22175       esac
22176       as_dirs="'$as_qdir' $as_dirs"
22177       as_dir=`$as_dirname -- "$as_dir" ||
22178 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22179          X"$as_dir" : 'X\(//\)[^/]' \| \
22180          X"$as_dir" : 'X\(//\)$' \| \
22181          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22182 echo X"$as_dir" |
22183     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22184             s//\1/
22185             q
22186           }
22187           /^X\(\/\/\)[^/].*/{
22188             s//\1/
22189             q
22190           }
22191           /^X\(\/\/\)$/{
22192             s//\1/
22193             q
22194           }
22195           /^X\(\/\).*/{
22196             s//\1/
22197             q
22198           }
22199           s/.*/./; q'`
22200       test -d "$as_dir" && break
22201     done
22202     test -z "$as_dirs" || eval "mkdir $as_dirs"
22203   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22204 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22205    { (exit 1); exit 1; }; }; }
22206   ac_builddir=.
22207
22208 case "$ac_dir" in
22209 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22210 *)
22211   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22212   # A ".." for each directory in $ac_dir_suffix.
22213   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22214   case $ac_top_builddir_sub in
22215   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22216   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22217   esac ;;
22218 esac
22219 ac_abs_top_builddir=$ac_pwd
22220 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22221 # for backward compatibility:
22222 ac_top_builddir=$ac_top_build_prefix
22223
22224 case $srcdir in
22225   .)  # We are building in place.
22226     ac_srcdir=.
22227     ac_top_srcdir=$ac_top_builddir_sub
22228     ac_abs_top_srcdir=$ac_pwd ;;
22229   [\\/]* | ?:[\\/]* )  # Absolute name.
22230     ac_srcdir=$srcdir$ac_dir_suffix;
22231     ac_top_srcdir=$srcdir
22232     ac_abs_top_srcdir=$srcdir ;;
22233   *) # Relative name.
22234     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22235     ac_top_srcdir=$ac_top_build_prefix$srcdir
22236     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22237 esac
22238 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22239
22240
22241   case $ac_mode in
22242   :F)
22243   #
22244   # CONFIG_FILE
22245   #
22246
22247   case $INSTALL in
22248   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22249   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22250   esac
22251 _ACEOF
22252
22253 cat >>$CONFIG_STATUS <<\_ACEOF
22254 # If the template does not know about datarootdir, expand it.
22255 # FIXME: This hack should be removed a few years after 2.60.
22256 ac_datarootdir_hack=; ac_datarootdir_seen=
22257
22258 case `sed -n '/datarootdir/ {
22259   p
22260   q
22261 }
22262 /@datadir@/p
22263 /@docdir@/p
22264 /@infodir@/p
22265 /@localedir@/p
22266 /@mandir@/p
22267 ' $ac_file_inputs` in
22268 *datarootdir*) ac_datarootdir_seen=yes;;
22269 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22270   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22271 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22272 _ACEOF
22273 cat >>$CONFIG_STATUS <<_ACEOF
22274   ac_datarootdir_hack='
22275   s&@datadir@&$datadir&g
22276   s&@docdir@&$docdir&g
22277   s&@infodir@&$infodir&g
22278   s&@localedir@&$localedir&g
22279   s&@mandir@&$mandir&g
22280     s&\\\${datarootdir}&$datarootdir&g' ;;
22281 esac
22282 _ACEOF
22283
22284 # Neutralize VPATH when `$srcdir' = `.'.
22285 # Shell code in configure.ac might set extrasub.
22286 # FIXME: do we really want to maintain this feature?
22287 cat >>$CONFIG_STATUS <<_ACEOF
22288   sed "$ac_vpsub
22289 $extrasub
22290 _ACEOF
22291 cat >>$CONFIG_STATUS <<\_ACEOF
22292 :t
22293 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22294 s&@configure_input@&$configure_input&;t t
22295 s&@top_builddir@&$ac_top_builddir_sub&;t t
22296 s&@srcdir@&$ac_srcdir&;t t
22297 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22298 s&@top_srcdir@&$ac_top_srcdir&;t t
22299 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22300 s&@builddir@&$ac_builddir&;t t
22301 s&@abs_builddir@&$ac_abs_builddir&;t t
22302 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22303 s&@INSTALL@&$ac_INSTALL&;t t
22304 $ac_datarootdir_hack
22305 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22306
22307 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22308   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22309   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22310   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22311 which seems to be undefined.  Please make sure it is defined." >&5
22312 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22313 which seems to be undefined.  Please make sure it is defined." >&2;}
22314
22315   rm -f "$tmp/stdin"
22316   case $ac_file in
22317   -) cat "$tmp/out"; rm -f "$tmp/out";;
22318   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22319   esac
22320  ;;
22321   :H)
22322   #
22323   # CONFIG_HEADER
22324   #
22325 _ACEOF
22326
22327 # Transform confdefs.h into a sed script `conftest.defines', that
22328 # substitutes the proper values into config.h.in to produce config.h.
22329 rm -f conftest.defines conftest.tail
22330 # First, append a space to every undef/define line, to ease matching.
22331 echo 's/$/ /' >conftest.defines
22332 # Then, protect against being on the right side of a sed subst, or in
22333 # an unquoted here document, in config.status.  If some macros were
22334 # called several times there might be several #defines for the same
22335 # symbol, which is useless.  But do not sort them, since the last
22336 # AC_DEFINE must be honored.
22337 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22338 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22339 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22340 # PARAMS is the parameter list in the macro definition--in most cases, it's
22341 # just an empty string.
22342 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22343 ac_dB='\\)[      (].*,\\1define\\2'
22344 ac_dC=' '
22345 ac_dD=' ,'
22346
22347 uniq confdefs.h |
22348   sed -n '
22349         t rset
22350         :rset
22351         s/^[     ]*#[    ]*define[       ][      ]*//
22352         t ok
22353         d
22354         :ok
22355         s/[\\&,]/\\&/g
22356         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22357         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22358   ' >>conftest.defines
22359
22360 # Remove the space that was appended to ease matching.
22361 # Then replace #undef with comments.  This is necessary, for
22362 # example, in the case of _POSIX_SOURCE, which is predefined and required
22363 # on some systems where configure will not decide to define it.
22364 # (The regexp can be short, since the line contains either #define or #undef.)
22365 echo 's/ $//
22366 s,^[     #]*u.*,/* & */,' >>conftest.defines
22367
22368 # Break up conftest.defines:
22369 ac_max_sed_lines=50
22370
22371 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22372 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22373 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22374 # et cetera.
22375 ac_in='$ac_file_inputs'
22376 ac_out='"$tmp/out1"'
22377 ac_nxt='"$tmp/out2"'
22378
22379 while :
22380 do
22381   # Write a here document:
22382     cat >>$CONFIG_STATUS <<_ACEOF
22383     # First, check the format of the line:
22384     cat >"\$tmp/defines.sed" <<\\CEOF
22385 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22386 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22387 b
22388 :def
22389 _ACEOF
22390   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22391   echo 'CEOF
22392     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22393   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22394   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22395   grep . conftest.tail >/dev/null || break
22396   rm -f conftest.defines
22397   mv conftest.tail conftest.defines
22398 done
22399 rm -f conftest.defines conftest.tail
22400
22401 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22402 cat >>$CONFIG_STATUS <<\_ACEOF
22403   if test x"$ac_file" != x-; then
22404     echo "/* $configure_input  */" >"$tmp/config.h"
22405     cat "$ac_result" >>"$tmp/config.h"
22406     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22407       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22408 echo "$as_me: $ac_file is unchanged" >&6;}
22409     else
22410       rm -f $ac_file
22411       mv "$tmp/config.h" $ac_file
22412     fi
22413   else
22414     echo "/* $configure_input  */"
22415     cat "$ac_result"
22416   fi
22417   rm -f "$tmp/out12"
22418  ;;
22419
22420   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22421 echo "$as_me: executing $ac_file commands" >&6;}
22422  ;;
22423   esac
22424
22425
22426   case $ac_file$ac_mode in
22427     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22428    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22429     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22430    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22431     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22432    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22433     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22434    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22435     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22436    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22437     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22438    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22439     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22440    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22441     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22442    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22443     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22444    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22445     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22446    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22447     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22448    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22449     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22450    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22451     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22452    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22453
22454   esac
22455 done # for ac_tag
22456
22457
22458 { (exit 0); exit 0; }
22459 _ACEOF
22460 chmod +x $CONFIG_STATUS
22461 ac_clean_files=$ac_clean_files_save
22462
22463
22464 # configure is writing to config.log, and then calls config.status.
22465 # config.status does its own redirection, appending to config.log.
22466 # Unfortunately, on DOS this fails, as config.log is still kept open
22467 # by configure, so config.status won't be able to write to it; its
22468 # output is simply discarded.  So we exec the FD to /dev/null,
22469 # effectively closing config.log, so it can be properly (re)opened and
22470 # appended to by config.status.  When coming back to configure, we
22471 # need to make the FD available again.
22472 if test "$no_create" != yes; then
22473   ac_cs_success=:
22474   ac_config_status_args=
22475   test "$silent" = yes &&
22476     ac_config_status_args="$ac_config_status_args --quiet"
22477   exec 5>/dev/null
22478   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22479   exec 5>>config.log
22480   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22481   # would make configure fail if this is the last instruction.
22482   $ac_cs_success || { (exit 1); exit 1; }
22483 fi
22484
22485 #
22486 # CONFIG_SUBDIRS section.
22487 #
22488 if test "$no_recursion" != yes; then
22489
22490   # Remove --cache-file and --srcdir arguments so they do not pile up.
22491   ac_sub_configure_args=
22492   ac_prev=
22493   eval "set x $ac_configure_args"
22494   shift
22495   for ac_arg
22496   do
22497     if test -n "$ac_prev"; then
22498       ac_prev=
22499       continue
22500     fi
22501     case $ac_arg in
22502     -cache-file | --cache-file | --cache-fil | --cache-fi \
22503     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22504       ac_prev=cache_file ;;
22505     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22506     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22507     | --c=*)
22508       ;;
22509     --config-cache | -C)
22510       ;;
22511     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22512       ac_prev=srcdir ;;
22513     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22514       ;;
22515     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22516       ac_prev=prefix ;;
22517     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22518       ;;
22519     *)
22520       case $ac_arg in
22521       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22522       esac
22523       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22524     esac
22525   done
22526
22527   # Always prepend --prefix to ensure using the same prefix
22528   # in subdir configurations.
22529   ac_arg="--prefix=$prefix"
22530   case $ac_arg in
22531   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22532   esac
22533   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22534
22535   ac_popdir=`pwd`
22536   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22537
22538     # Do not complain, so a configure script can configure whichever
22539     # parts of a large source tree are present.
22540     test -d "$srcdir/$ac_dir" || continue
22541
22542     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22543     echo "$as_me:$LINENO: $ac_msg" >&5
22544     echo "$ac_msg" >&6
22545     { as_dir="$ac_dir"
22546   case $as_dir in #(
22547   -*) as_dir=./$as_dir;;
22548   esac
22549   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22550     as_dirs=
22551     while :; do
22552       case $as_dir in #(
22553       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22554       *) as_qdir=$as_dir;;
22555       esac
22556       as_dirs="'$as_qdir' $as_dirs"
22557       as_dir=`$as_dirname -- "$as_dir" ||
22558 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22559          X"$as_dir" : 'X\(//\)[^/]' \| \
22560          X"$as_dir" : 'X\(//\)$' \| \
22561          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22562 echo X"$as_dir" |
22563     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22564             s//\1/
22565             q
22566           }
22567           /^X\(\/\/\)[^/].*/{
22568             s//\1/
22569             q
22570           }
22571           /^X\(\/\/\)$/{
22572             s//\1/
22573             q
22574           }
22575           /^X\(\/\).*/{
22576             s//\1/
22577             q
22578           }
22579           s/.*/./; q'`
22580       test -d "$as_dir" && break
22581     done
22582     test -z "$as_dirs" || eval "mkdir $as_dirs"
22583   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22584 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22585    { (exit 1); exit 1; }; }; }
22586     ac_builddir=.
22587
22588 case "$ac_dir" in
22589 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22590 *)
22591   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22592   # A ".." for each directory in $ac_dir_suffix.
22593   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22594   case $ac_top_builddir_sub in
22595   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22596   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22597   esac ;;
22598 esac
22599 ac_abs_top_builddir=$ac_pwd
22600 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22601 # for backward compatibility:
22602 ac_top_builddir=$ac_top_build_prefix
22603
22604 case $srcdir in
22605   .)  # We are building in place.
22606     ac_srcdir=.
22607     ac_top_srcdir=$ac_top_builddir_sub
22608     ac_abs_top_srcdir=$ac_pwd ;;
22609   [\\/]* | ?:[\\/]* )  # Absolute name.
22610     ac_srcdir=$srcdir$ac_dir_suffix;
22611     ac_top_srcdir=$srcdir
22612     ac_abs_top_srcdir=$srcdir ;;
22613   *) # Relative name.
22614     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22615     ac_top_srcdir=$ac_top_build_prefix$srcdir
22616     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22617 esac
22618 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22619
22620
22621     cd "$ac_dir"
22622
22623     # Check for guested configure; otherwise get Cygnus style configure.
22624     if test -f "$ac_srcdir/configure.gnu"; then
22625       ac_sub_configure=$ac_srcdir/configure.gnu
22626     elif test -f "$ac_srcdir/configure"; then
22627       ac_sub_configure=$ac_srcdir/configure
22628     elif test -f "$ac_srcdir/configure.in"; then
22629       # This should be Cygnus configure.
22630       ac_sub_configure=$ac_aux_dir/configure
22631     else
22632       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22633 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22634       ac_sub_configure=
22635     fi
22636
22637     # The recursion is here.
22638     if test -n "$ac_sub_configure"; then
22639       # Make the cache file name correct relative to the subdirectory.
22640       case $cache_file in
22641       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22642       *) # Relative name.
22643         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22644       esac
22645
22646       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22647 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22648       # The eval makes quoting arguments work.
22649       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22650            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22651         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22652 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22653    { (exit 1); exit 1; }; }
22654     fi
22655
22656     cd "$ac_popdir"
22657   done
22658 fi
22659